/* Sender view (27 Nov): a drawer that opens when a sender tag is clicked. Coexa Aura: solid white glass, navy ink, the tag colours from style.css. Opens over the right side so the Inbox list stays beside it. */
.sb-chip[data-sender], .chip[data-sender] { cursor: pointer; }
.sb-chip[data-sender]:hover, .chip[data-sender]:hover { box-shadow: 0 0 0 2px rgba(139,92,246,.35); }
.sb-chip[data-sender]:focus-visible, .chip[data-sender]:focus-visible { outline: 2px solid #8B5CF6; outline-offset: 2px; }
.sv { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); z-index: 70; display: none; flex-direction: column; gap: 12px; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; background: #F8F8F6; border-left: 1px solid rgba(18,21,28,.16); box-shadow: -30px 0 60px -30px rgba(40,52,100,.45); color: #12151C; }
.sv.open { display: flex; }
.sv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sv-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.sv-cap { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: rgba(18,21,28,.7); }
.sv-close { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid rgba(18,21,28,.3); background: #fff; font-size: 24px; line-height: 1; cursor: pointer; color: #12151C; }
.sv-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid rgba(18,21,28,.16); align-self: flex-start; }
.sv-tabs button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: 500 12px var(--font, inherit); letter-spacing: .06em; text-transform: uppercase; color: rgba(18,21,28,.72); cursor: pointer; }
.sv-tabs button.on { background: #fff; color: #12151C; box-shadow: 0 6px 14px -8px rgba(28,39,64,.5); }
.sv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(18,21,28,.3); background: rgba(255,255,255,.8); color: #12151C; font: 500 14px var(--font, inherit); cursor: pointer; }
.sv-chip.on { background: #12151C; border-color: #12151C; color: #fff; }
.sv-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.sv-k { border: 1px solid rgba(18,21,28,.16); border-radius: 14px; background: rgba(255,255,255,.85); padding: 9px 12px; }
.sv-k b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; } .sv-k span { font-size: 12.5px; color: rgba(18,21,28,.72); }
.sv-list { display: flex; flex-direction: column; }
.sv-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: start; width: 100%; text-align: left; padding: 10px 6px; border: 0; border-top: 1px solid rgba(18,21,28,.09); background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 12px; min-height: 44px; }
.sv-row:hover, .sv-row:focus-visible { background: #fff; outline: none; }
.sv-av { position: relative; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: linear-gradient(140deg, #F3B596, #FF6FA8 55%, #8B5CF6); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.sv-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-m { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .sv-top small { color: rgba(18,21,28,.7); font-size: 12px; }
.sv-bub { display: inline-block; max-width: 100%; font-size: 14px; padding: 6px 10px; border-radius: 12px; border: 1px solid rgba(18,21,28,.16); background: #fff; overflow-wrap: anywhere; }
.sv-end { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.sv-out { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; border: 1px solid transparent; }
.sv-out.ok { background: rgba(24,138,84,.09); color: #0b6b3c; border-color: rgba(24,138,84,.34); } .sv-out.no { background: rgba(18,21,28,.05); color: #4a4f5a; border-color: rgba(18,21,28,.2); } .sv-out.wait { background: rgba(18,21,28,.03); color: #4a4f5a; border: 1px dashed rgba(18,21,28,.25); } .sv-out.ed { background: rgba(163,105,10,.08); color: #7d5004; border-color: rgba(163,105,10,.34); }
.sv-note, .sv-foot { margin: 0; font-size: 13.5px; color: rgba(18,21,28,.72); }
@media (max-width: 640px) { .sv-row { grid-template-columns: 36px minmax(0, 1fr); } .sv-end { grid-column: 2; flex-direction: row; align-items: center; } }
/* The Senders page (27 Nov): a card per sender, the same message list underneath */
.sp { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.sp h2 { margin: 0; font-size: clamp(24px, 4vw, 32px); font-weight: 500; letter-spacing: -.035em; } .sp .muted { margin: 4px 0 0; max-width: 62ch; }
.sp-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.sp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.sp-card { text-align: left; border: 1px solid rgba(18,21,28,.16); border-radius: 16px; background: rgba(255,255,255,.85); padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; cursor: pointer; font: inherit; color: inherit; min-height: 44px; }
.sp-card.on { border-color: #12151C; box-shadow: 0 12px 24px -18px rgba(28,39,64,.55); }
.sp-n { font-size: 28px; font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; } .sp-card small { color: rgba(18,21,28,.72); font-size: 12.5px; }
.sp-main { border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: inset 0 1px 0 #fff, 0 20px 40px -30px rgba(40,52,100,.42); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
