:root{ --ink:#e8eef7; --bg:#0f131a; --card:#151b24; --muted:#93a0b4; --accent:#00ffff }
*{box-sizing:border-box} body{margin:0;background:var(--bg);color:#fff;font-family:Roboto,system-ui,Arial}
.sw-header{padding:8px 20px;border-bottom:1px solid #1f2732; background: #355e76;}
.container{max-width:980px;margin:20px auto;padding:0 12px;}
.card{background:#355e76;border:1px solid #1f2732;border-radius:14px;padding:16px;margin-bottom:16px}
.list .item{border:1px solid #263043;border-radius:12px;padding:12px;margin-bottom:12px;background:#0e1219}
.item .row{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.item .note{color:#cfe9ff}
.actions{display:flex;gap:8px;margin-top:10px}
button{border:0;border-radius:10px;padding:8px 12px;font-weight:600;cursor:pointer}
.btn-accept{background:#7DF9FF;color:#001018}
.btn-decline{background:#354253}
input[type="text"]{width:100%;border-radius:10px;border:1px solid #263043;background:#0e1219;color:#e8eef7;padding:8px}
.timeline .entry{padding:10px;border:1px solid #263043;border-radius:10px;background:#0e1219;margin-bottom:8px}
.muted{color:#93a0b4}
.chat-list{max-height:340px;overflow:auto;border:1px solid #263043;border-radius:10px;background:#0e1219;padding:10px;margin-top:8px}
.chat-msg{margin-bottom:10px;padding:8px 10px;border-radius:10px;max-width:80%}
.chat-me{background:#153042; margin-left:auto}
.chat-them{background:#1b2330; margin-right:auto}
.chat-meta{font-size:11px;color:#93a0b4;margin-top:4px}
.chat-input{display:flex;gap:8px;margin-top:8px}
.chat-input input{flex:1;border-radius:10px;border:1px solid #263043;background:#0e1219;color:#e8eef7;padding:10px}


#eng-app, #attn-app { max-width: 980px; margin: 0 auto; }
.list .req { border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 10px; margin: 8px 0; cursor: pointer; }
.list .req.chosen { outline: 2px solid rgba(0,255,255,0.5); }
.row { display:flex; gap:8px; align-items:center; justify-content:space-between; }
.muted { opacity:.7; font-size:.9em; }
.small { font-size:.9em; }
.badge { padding:2px 8px; border-radius:14px; background:rgba(0,255,255,.12); }
.note, .decline { margin-top:6px; }
.chatlog { border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:8px; height:260px; overflow:auto; }
.msg { margin:6px 0; }
.msg .bubble { display:inline-block; padding:6px 10px; border-radius:12px; background:rgba(255,255,255,.06); }
.msg.mine .bubble { background:rgba(0,255,255,.12); }
.msg .meta { font-size:.8em; opacity:.7; margin-top:2px; }
.chatbox { display:flex; gap:8px; margin-top:6px; }
.chatbox input { flex:1; }
.btn-primary, .btn-danger, .btn-success { padding:8px 12px; border-radius:10px; border:none; cursor:pointer; }
.btn-primary { background:#00bcd4; }
.btn-danger { background:#e53935; }
.btn-success { background:#43a047; }
.empty { opacity:.7; padding:8px; border:1px dashed rgba(255,255,255,.2); border-radius:8px; }


/* --- Presentation polish: badges + human timeline --- */
.badge {
  display:inline-block; padding:2px 8px; border-radius:999px;
  background:rgba(125,249,255,.14); border:1px solid rgba(125,249,255,.35);
  font-weight:600; font-size:.9rem;
}

.timeline .event {
  border:1px solid #263043; background:#0e1219; border-radius:12px;
  padding:10px; margin-bottom:10px;
}
.timeline .event .row {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-size:0.95rem;
}
.timeline .note { margin-top:6px; color:#cfe9ff; }
.timeline .decline { margin-top:6px; color:#ffb3b3; }

/* Higher-contrast decline button */
.btn-decline { background:#d9534f !important; color:#fff !important; }
.btn-decline:hover { filter:brightness(1.1); }




  .sw-header .sw-back-pill{
    display:inline-flex; align-items:center; gap:8px;
    padding:6px 12px; border-radius:999px;
    border:1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    text-decoration:none; font-size:0.92rem; line-height:1;
    color:#1d2433;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    margin-top:8px;
  }
  .sw-header .sw-back-pill .chev{ font-weight:600; }
  @media (hover:hover){
    .sw-header .sw-back-pill:hover{
      background:rgba(255,255,255,.85);
      box-shadow:0 2px 6px rgba(0,0,0,.08);
    }
    .sw-header .sw-back-pill:active{
      transform: translateY(1px);
    }
  }



  /* === Request card header: robust 3-column layout === */
/* === Readable request card layout === */
.list .req{
  display: grid;
  grid-auto-rows: min-content;
  row-gap: 8px;
  padding: 12px 14px;
  background: #0e1219;
  border: 1px solid #263043;
  border-radius: 12px;
}
.list .req.chosen{ outline: 2px solid rgba(0,255,255,.45); }

/* header row: status left, time right */
.list .req .head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* time: mono-ish spacing for readability */
.list .req .time{
  font-variant-numeric: tabular-nums;
  opacity:.85;
}

/* big, clear name line */
.list .req .name{
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

/* note: its own block for readability */
.list .req .note{
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid #263043;
  border-radius: 10px;
  background: #0f151f;
  line-height: 1.4;
  color: #cfe9ff;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* confirmations/meta */
.list .req .meta{
  color: var(--muted);
  font-size: .92rem;
  margin-top: 2px;
}

/* keep badge neat */
.list .req .badge{
  display:inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(125,249,255,.14);
  border: 1px solid rgba(125,249,255,.35);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}

/* small screens: keep the same rhythm, just tighter gaps */
@media (max-width: 480px){
  .list .req{ row-gap: 6px; }
  .list .req .name{ font-size: 1rem; }
  .list .req .note{ padding: 9px 10px; }
}
/* Confirmed hire states */
.list .req .meta.confirmed-ok {
  color: #74e59a;
  opacity: 1;
  font-weight: 700;
}

.timeline .event.timeline-confirmed {
  border-color: rgba(116, 229, 154, .48);
  background: rgba(24, 57, 38, .28);
}

.timeline .event.timeline-confirmed strong,
.timeline .event.timeline-confirmed .time-confirmed {
  color: #74e59a;
  opacity: 1;
  font-weight: 800;
}
/* Numbered timeline checkpoints */
.timeline .event .timeline-row {
  align-items: center;
}

.timeline .timeline-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.timeline .timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(125,249,255,.45);
  background: rgba(125,249,255,.12);
  color: #dffcff;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
}

.timeline .event.timeline-confirmed .timeline-step {
  border-color: rgba(116, 229, 154, .62);
  background: rgba(116, 229, 154, .16);
  color: #b8ffd0;
}

@media (max-width: 560px) {
  .timeline .event .timeline-row {
    align-items: flex-start;
  }

  .timeline .event .timeline-row > span:last-child {
    margin-left: 30px;
  }
}

/* Compact pill buttons inside each request card */
.list .req .request-actions{
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.list .req .request-actions .btn-accept,
.list .req .request-actions .btn-decline{
  border-radius: 999px;
  padding: 4px 12px;
  min-height: 0;
  line-height: 1.15;
  font-size: .9rem;
  font-weight: 700;
  box-shadow: none;
}

.list .req .context-badge{
  margin-left: 6px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  color: #d8e9f5;
}

.list .req .incident-key,
.list .req .incident-video{
  margin-top: 4px;
}

/* === Responsive request placards: compact and contained === */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: min(100%, 980px);
  padding-left: clamp(8px, 2.8vw, 16px);
  padding-right: clamp(8px, 2.8vw, 16px);
}

.card {
  padding: clamp(12px, 2.8vw, 18px);
  border-radius: 12px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 4.6vw, 1.65rem);
  line-height: 1.15;
}

.list {
  display: grid;
  gap: 10px;
}

.list .req {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(10px, 2.8vw, 14px);
  row-gap: 7px;
  overflow: hidden;
}

.list .req .head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.list .req .request-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.list .req .badge {
  max-width: 100%;
  padding: 3px 10px;
  font-size: clamp(0.74rem, 2.7vw, 0.9rem);
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.list .req .context-badge {
  margin-left: 0;
}

.list .req .time {
  justify-self: end;
  max-width: 9.5rem;
  color: #aab7c8;
  font-size: clamp(0.72rem, 2.6vw, 0.84rem);
  line-height: 1.2;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

.list .req .name {
  margin-top: 2px;
  font-size: clamp(0.98rem, 3.5vw, 1.08rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.list .req .meta {
  font-size: clamp(0.82rem, 3vw, 0.92rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.list .req .incident-key,
.list .req .incident-video {
  margin-top: 0;
}

.list .req .note {
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: clamp(0.86rem, 3.2vw, 0.96rem);
  line-height: 1.32;
  max-width: 100%;
}

.list .req .decline {
  font-size: 0.9rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .sw-header {
    padding: 8px 12px;
  }

  .sw-header h1 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .container {
    margin: 12px auto;
  }

  .list .req .head {
    grid-template-columns: 1fr;
  }

  .list .req .time {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .container {
    margin-top: 10px;
  }

  .card {
    margin-bottom: 10px;
  }

  .list .req {
    row-gap: 5px;
  }

  .list .req .note {
    padding: 7px 9px;
  }
}

/* Compact selected-request summary on the messaging page */
.request-context-card {
  padding-top: 12px;
  padding-bottom: 12px;
}

.request-context {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.request-context-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.context-eyebrow,
.context-grid span,
.context-note span {
  color: #aab7c8;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-title {
  margin-top: 2px;
  color: #f4f8fc;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.context-status {
  justify-self: end;
  max-width: 16rem;
  padding: 4px 9px;
  border: 1px solid #314052;
  border-radius: 999px;
  background: #101722;
  color: #dce8f6;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.context-grid div {
  min-width: 0;
}

.context-grid strong {
  display: block;
  margin-top: 2px;
  color: #eef5fb;
  font-size: .9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-note {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid #263043;
}

.context-note p {
  margin: 0;
  color: #d6e7f6;
  font-size: .92rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.full-context-details {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #263043;
}

.detail-section-title {
  color: #f4f8fc;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
}

.detail-grid,
.detail-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.detail-cell {
  min-width: 0;
}

.detail-cell.detail-wide {
  grid-column: 1 / -1;
}

.detail-cell span,
.artifact-row span {
  display: block;
  color: #aab7c8;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-cell strong,
.detail-cell a,
.artifact-row strong {
  display: block;
  margin-top: 2px;
  color: #eef5fb;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.detail-cell a {
  color: #9bdde8;
  text-decoration: none;
}

.detail-cell a:hover {
  text-decoration: underline;
}

.emergency-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-subblock {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.detail-subtitle {
  color: #f4f8fc;
  font-size: .82rem;
  font-weight: 800;
}

.artifact-row,
.details-locked {
  padding-top: 8px;
  border-top: 1px solid #263043;
}

.details-locked {
  color: #c7d3e2;
  font-size: .88rem;
  line-height: 1.3;
}

.active-prospect-message-card {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid #263043;
}

.active-prospect-message-card .incident-card {
  display: grid;
  gap: 9px;
}

.active-prospect-message-card .kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.active-prospect-message-card .kv {
  min-width: 0;
}

.active-prospect-message-card .kv.address-row {
  grid-column: 1 / -1;
}

.active-prospect-message-card .kv strong,
.active-prospect-message-card .detail-line strong {
  color: #aab7c8;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.active-prospect-message-card .kv .v,
.active-prospect-message-card .detail-line,
.active-prospect-message-card .checkpoint-value,
.active-prospect-message-card .redacted-note {
  color: #eef5fb;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.active-prospect-message-card .detail-line {
  margin: 3px 0;
}

.active-prospect-message-card a {
  color: #9bdde8;
  text-decoration: none;
}

.active-prospect-message-card a:hover {
  text-decoration: underline;
}

.active-prospect-message-card .divider {
  border-top: 1px solid #263043;
  height: 0;
  margin: 2px 0;
}

.active-prospect-message-card .paywall-hint {
  margin: 0;
  color: #c7d3e2;
  font-size: .88rem;
  line-height: 1.3;
}

.active-prospect-message-card .masked-part,
.active-prospect-message-card .masked-value {
  color: #8fa0b4;
}

.active-prospect-message-card .full-details {
  display: grid;
  gap: 5px;
}

.active-prospect-message-card .emergency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.active-prospect-message-card .artifact-notice {
  margin: 0;
}

.active-prospect-message-card .artifact-header {
  color: #f4f8fc;
  font-size: .86rem;
  font-weight: 800;
}

.active-prospect-message-card .artifact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.active-prospect-message-card .artifact-item {
  display: grid;
  justify-items: start;
  align-content: start;
  color: #eef5fb;
  font-size: .84rem;
  line-height: 1.25;
}

.active-prospect-message-card .artifact-status {
  display: block;
  color: #aab7c8;
  font-size: .78rem;
  font-weight: 700;
}

.active-prospect-message-card .incident-checkpoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.active-prospect-message-card .checkpoint-row {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.active-prospect-message-card .checkpoint-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid #314052;
  border-radius: 999px;
  color: #dce8f6;
  font-size: .72rem;
  font-weight: 800;
}

.active-prospect-message-card .checkpoint-label {
  color: #aab7c8;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .request-context-main {
    grid-template-columns: 1fr;
  }

  .context-status {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .context-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .detail-mini-grid,
  .emergency-context-grid {
    grid-template-columns: 1fr;
  }

  .active-prospect-message-card .kv-grid,
  .active-prospect-message-card .emergency-grid,
  .active-prospect-message-card .artifact-list,
  .active-prospect-message-card .incident-checkpoints {
    grid-template-columns: 1fr;
  }
}

/* Selected-record color coding and cleaner labels */
.list .req.context-incident.chosen {
  background: #102432;
  outline: 2px solid #4fb3d1;
}

.list .req.context-general.chosen {
  background: #142b24;
  outline: 2px solid #62c08e;
}

.selected-tone-incident {
  background: #315f78;
}

.selected-tone-general {
  background: #315f52;
}

.request-context-incident .context-status,
.selected-tone-incident .timeline-step {
  border-color: #72c4df;
  background: #102432;
}

.request-context-general .context-status,
.selected-tone-general .timeline-step {
  border-color: #78cca0;
  background: #142b24;
}

.context-eyebrow,
.context-grid span,
.context-note span,
.detail-cell span,
.artifact-row span,
.active-prospect-message-card .kv strong,
.active-prospect-message-card .detail-line strong,
.active-prospect-message-card .checkpoint-label {
  text-transform: none;
  color: #c3d2df;
}

.active-prospect-message-card .kv strong {
  margin-right: 4px;
}

.active-prospect-message-card .kv .v {
  display: inline;
}

.active-prospect-message-card .countdown-remaining {
  color: #d7f3e3;
  font-weight: 800;
}

.selected-confirm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #263043;
}

.selected-confirm-row .selected-confirm-hire {
  border-radius: 10px;
  padding: 7px 12px;
  box-shadow: none;
}

.request-id-line {
  font-weight: 700;
}

.access-extension-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #19384a;
  color: #eaf6fb;
}

.access-extension-panel.is-expired {
  background: #3d3433;
}

.access-extension-panel strong,
.access-extension-panel span {
  display: block;
}

.access-extension-panel strong {
  margin-bottom: 3px;
}

.access-extension-panel span {
  color: #c9dce6;
  font-size: 0.92rem;
}

.access-extension-panel .selected-request-extension {
  flex: 0 0 auto;
}

.request-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.request-pager[hidden] {
  display: none !important;
}

.request-pager button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #3a5a72;
  border-radius: 8px;
  background: #102231;
  color: #edf8fb;
  font-weight: 750;
  cursor: pointer;
}

.request-pager button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.request-pager span {
  color: #c9dce6;
  font-size: .9rem;
  font-weight: 700;
}

/* Compact attorney request inbox: display-only, keeps existing .req behavior */
.list {
  gap: 8px;
}

.list .req.request-inbox-row {
  padding: 10px 12px;
  border-radius: 10px;
  border-color: rgba(125,249,255,.24);
  background: #0d151f;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.list .req.request-inbox-row:hover {
  border-color: rgba(125,249,255,.46);
  background: #102030;
}

.list .req.request-inbox-row.chosen {
  outline: none;
  border-color: #62d3ef;
  background: #10283a;
  box-shadow: inset 3px 0 0 #62d3ef, 0 8px 20px rgba(0,0,0,.14);
}

.list .req.request-inbox-row.context-general.chosen {
  border-color: #78cca0;
  background: #10291f;
  box-shadow: inset 3px 0 0 #78cca0, 0 8px 20px rgba(0,0,0,.14);
}

.request-row-main {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(220px, 1.25fr) minmax(150px, .72fr);
  gap: 10px 14px;
  align-items: center;
}

.request-row-left,
.request-row-middle,
.request-row-right {
  min-width: 0;
}

.request-row-left {
  display: grid;
  gap: 5px;
}

.request-row-middle {
  display: grid;
  gap: 4px;
}

.request-row-right {
  display: grid;
  gap: 7px;
  justify-items: end;
  text-align: right;
}

.list .req.request-inbox-row .request-badges {
  gap: 5px;
}

.list .req.request-inbox-row .badge {
  padding: 2px 8px;
  font-size: .78rem;
  line-height: 1.1;
  white-space: nowrap;
}

.list .req.request-inbox-row .name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.12;
}

.list .req.request-inbox-row .meta {
  margin: 0;
  font-size: .83rem;
  line-height: 1.2;
}

.list .req.request-inbox-row .time {
  max-width: 100%;
  font-size: .78rem;
  line-height: 1.2;
}

.list .req.request-inbox-row .note.request-note-preview {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #bfd6e7;
  font-size: .82rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list .req.request-inbox-row .request-actions {
  justify-content: flex-end;
  margin-top: 0;
  gap: 6px;
}

.list .req.request-inbox-row .request-actions .btn-accept,
.list .req.request-inbox-row .request-actions .btn-decline {
  padding: 4px 10px;
  font-size: .8rem;
}

/* Keep many requests from taking over the page */
.card:has(#requests) {
  padding-bottom: 12px;
}

#requests.list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #5caec7 #102231;
}

#requests.list::-webkit-scrollbar {
  width: 8px;
}

#requests.list::-webkit-scrollbar-track {
  background: #102231;
  border-radius: 999px;
}

#requests.list::-webkit-scrollbar-thumb {
  background: #5caec7;
  border-radius: 999px;
}

.list .req.request-inbox-row {
  padding: 8px 10px;
}

.request-row-main {
  grid-template-columns: minmax(180px, 1.1fr) minmax(210px, 1.35fr) minmax(135px, .65fr);
  gap: 7px 12px;
}

.list .req.request-inbox-row .badge {
  font-size: .74rem;
}

.list .req.request-inbox-row .name {
  font-size: .94rem;
}

.list .req.request-inbox-row .meta {
  font-size: .78rem;
}

.list .req.request-inbox-row .time {
  font-size: .74rem;
}

.list .req.request-inbox-row .note.request-note-preview {
  display: none;
}

.list .req.request-inbox-row.chosen .note.request-note-preview {
  display: block;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .request-row-main {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .request-row-right {
    justify-items: start;
    text-align: left;
  }

  .list .req.request-inbox-row .note.request-note-preview {
    white-space: normal;
  }
}

/* Selected request contact cleanup */
.active-prospect-message-card .full-details {
  gap: 4px;
}

.active-prospect-message-card .emergency-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  align-items: start;
}

.active-prospect-message-card .emergency-contact-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.active-prospect-message-card .emergency-contact-card .detail-subtitle {
  margin-bottom: 5px;
  color: #eef5fb;
  font-size: .82rem;
  font-weight: 800;
}

.active-prospect-message-card .emergency-contact-card .detail-line {
  margin: 2px 0;
  color: #eef5fb;
  font-size: .8rem;
  line-height: 1.22;
  font-weight: 700;
}

.active-prospect-message-card .emergency-contact-card .detail-line strong {
  display: inline-block;
  min-width: 44px;
  color: #c3d2df;
  font-size: .72rem;
  font-weight: 750;
  text-transform: none;
}

.active-prospect-message-card .emergency-contact-card a {
  color: #9bdde8;
  font-size: .8rem;
}

.active-prospect-message-card .countdown-remaining {
  display: block;
  margin-top: 2px;
  color: #d7f3e3;
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.15;
}

/* Emergency contact composer shortcut */
.active-prospect-message-card .emergency-message-button {
  width: fit-content;
  justify-self: start;
  margin-top: 4px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid #a5cbd8;
  border-radius: 999px;
  background: #dceef3;
  color: #163746;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}
.active-prospect-message-card .emergency-message-button:hover {
  background: #eef8fb;
}
.active-prospect-message-card .emergency-message-button:focus-visible {
  outline: 2px solid #7df9ff;
  outline-offset: 3px;
}

/* Compact video shortcut and in-page watermarked playback. */
.active-prospect-message-card .incident-video-pill {
  display: inline-block;
  width: fit-content;
  justify-self: start;
  margin-top: 4px;
  padding: 4px 9px;
  border: 1px solid #a5cbd8;
  border-radius: 999px;
  background: #dceef3;
  color: #163746;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
}
.incident-player-dialog {
  width: min(860px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 16px;
  border: 1px solid #526d80;
  border-radius: 14px;
  background: #151b24;
  color: #eef5fb;
  overflow: auto;
}
.incident-player-dialog::backdrop { background: rgb(0 0 0 / 78%); }
.incident-player-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.incident-player-heading h2 { margin: 0; font-size: 1rem; }
.incident-player-dialog button { width: auto; padding: 7px 12px; background: #dceef3; color: #163746; }
.incident-player-stage { position: relative; background: #000; overflow: hidden; }
.incident-player-stage video { display: block; width: 100%; max-height: 65dvh; object-fit: contain; }
.incident-player-watermark {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42%;
  padding: 8px;
  color: rgb(255 255 255 / 72%);
  background: rgb(0 0 0 / 18%);
  text-shadow: 0 1px 3px #000;
  font-size: clamp(11px, 2vw, 16px);
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.incident-player-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.incident-player-seek { flex: 1; min-width: 80px; width: 100px; accent-color: #7df9ff; }
.incident-player-time { font-size: .75rem; font-variant-numeric: tabular-nums; }
.incident-player-status { font-size: .8rem; margin: 8px 0 0; }
.incident-player-status:empty { display: none; }
.incident-player-dialog button:focus-visible, .incident-player-seek:focus-visible, .incident-video-pill:focus-visible { outline: 2px solid #7df9ff; outline-offset: 3px; }

/* Timeline disclosure keeps the existing card and event spacing. */
.timeline-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.timeline-disclosure > summary::-webkit-details-marker { display: none; }
.timeline-disclosure > summary h2 { margin: 0; }
.timeline-disclosure > summary:focus-visible { outline: 2px solid #7df9ff; outline-offset: 5px; }
.timeline-disclosure-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #a5cbd8;
  border-radius: 50%;
  background: #dceef3;
  color: #163746;
  font-size: 20px;
  line-height: 1;
}
.timeline-disclosure-icon::before { content: "+"; }
.timeline-disclosure[open] .timeline-disclosure-icon::before { content: "−"; }
.timeline-disclosure > summary:hover .timeline-disclosure-icon { background: #eef8fb; }
.timeline-disclosure[open] > summary { margin-bottom: 12px; }
