/* claude-today-more-20261118: the notifications popover (#bellPanel) and the notifications inbox drawer.
   Presentation only, on top of account-center-20261028's .bnc-* anatomy and tokens. Nothing here changes
   a read, a write, a count or a handler. */

/* 1. Titles and previews are no longer cut to one line: the title wraps to two lines, the preview to two,
      so "Dana assigned you: review the transport quote for …" keeps the words that say what to do.
      The full text stays in each row's accessible name. */
#bellPanel.bnc-panel .bnc-title,#bellPanel.bnc-panel .bnc-preview,
.bnc-ib-host .bnc-title,.bnc-ib-host .bnc-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow:hidden;text-overflow:clip;overflow-wrap:anywhere}
#bellPanel.bnc-panel .bnc-title,.bnc-ib-host .bnc-title{font-size:14px;line-height:1.4}
#bellPanel.bnc-panel .bnc-preview,.bnc-ib-host .bnc-preview{margin-top:2px;font-size:13px;line-height:1.4}
#bellPanel.bnc-panel .bnc-slide,.bnc-ib-host .bnc-slide{align-items:start;min-height:64px;padding-top:12px;padding-bottom:12px}
#bellPanel.bnc-panel .bnc-av,.bnc-ib-host .bnc-av,.bnc-ib-host .bnc-pick{margin-top:2px}
#bellPanel.bnc-panel .bnc-side,.bnc-ib-host .bnc-side{align-self:start;min-height:20px}
/* Phones: the title gets up to four lines and the preview keeps two, so the car and the deadline survive. */
@media (max-width:640px){
  #bellPanel.bnc-panel .bnc-title,.bnc-ib-host .bnc-title{-webkit-line-clamp:4;line-clamp:4}
}
/* Read and unread differ by more than a dot: read titles are regular weight, unread ones semibold. */
#bellPanel.bnc-panel .bnc-row:not(.is-unread)>.bnc-slide .bnc-title,.bnc-ib-host .bnc-row:not(.is-unread)>.bnc-slide .bnc-title{font-weight:400}
#bellPanel.bnc-panel .is-unread>.bnc-slide .bnc-title,.bnc-ib-host .is-unread>.bnc-slide .bnc-title{font-weight:600}

/* The popover never hangs off the bottom of the screen: it scrolls inside itself instead. (Phones keep
   the native max-height, which already leaves room for the tab bar.) */
@media (min-width:861px){#bellPanel.bnc-panel{max-height:min(600px,calc(100dvh - 72px));overflow:auto}}

/* 2. The segmented control does not print "0": an empty pile says so in the list below it. */
#bellPanel.bnc-panel .bnc-seg .bnc-n[data-ctm-zero]{display:none}

/* 3. Quiet states (no notifications, nothing in this pile, a failed read) read as one calm block,
      left-aligned with normal line height, and Try again is a real button. */
#bellPanel.bnc-panel>.bnc-empty{padding:24px 16px;text-align:left}
#bellPanel.bnc-panel>.bnc-empty .submut{display:block;color:var(--bnc-muted);font-size:13px;line-height:1.5}
#bellPanel.bnc-panel>.notifrow[role=status]{margin:12px 16px;padding:16px;text-align:left;border:1px solid var(--bnc-line);border-left:3px solid var(--bnc-alert);border-radius:8px}
#bellPanel.bnc-panel>.notifrow[role=status] .submut{display:block;color:var(--bnc-ink);font-size:13px;line-height:1.5}
#bellPanel.bnc-panel [data-bellretry]{display:flex;align-items:center;justify-content:center;width:max-content;min-height:36px;margin-top:12px;padding:6px 14px;border:1px solid var(--bnc-line)!important;border-radius:6px;background:var(--bnc-card)!important;color:var(--bnc-ink)!important;font:500 13px/1.2 var(--bnc-sans);cursor:pointer;text-decoration:none!important}
#bellPanel.bnc-panel [data-bellretry]:hover{background:var(--bnc-chip)}
#bellPanel.bnc-panel [data-bellretry]:focus-visible{outline:2px solid var(--bnc-accent);outline-offset:2px}
.bnc-ib-host .bnc-empty{gap:12px;padding:56px 24px}
.bnc-ib-host .bnc-empty p{font-size:14px;line-height:1.5;color:var(--bnc-muted)}
.bnc-ib-host .bnc-empty[role=alert]{align-items:flex-start;gap:12px;margin:12px 16px;padding:16px;border:1px solid var(--bnc-line);border-left:3px solid var(--bnc-alert);border-radius:8px;text-align:left}
.bnc-ib-host .bnc-empty[role=alert] p{font-size:13px;line-height:1.5}
.bnc-ib-host .bnc-empty[role=alert] .bnc-btn{min-height:36px;padding:6px 14px;color:var(--bnc-ink)}
.bnc-ib-host .bnc-empty[role=alert] p{color:var(--bnc-ink)}

/* 4. The inbox header: its title is a focus target for the drawer, not a field, so it never draws an
      input-like ring; search and filters share one control height. */
#drawer .bnc-ib-host .bnc-ib-title:focus,#drawer .bnc-ib-host .bnc-ib-title:focus-visible{outline:none!important;box-shadow:none!important}
/* A keyboard user still sees where focus is: a quiet accent underline, not a field ring. */
#drawer .bnc-ib-host .bnc-ib-title:focus-visible{text-decoration:underline 2px var(--bnc-accent);text-underline-offset:6px}
.bnc-ib-host .bnc-ib-tools{gap:12px}
.bnc-ib-host .bnc-search{height:36px}
#drawer .bnc-ib-host .bnc-chip{min-height:32px!important;height:32px;padding:0 12px}
#drawer .bnc-ib-host .bnc-chip[aria-pressed=true]{border-color:var(--bnc-ink);background:var(--bnc-chip);font-weight:600}
.bnc-ib-host .bnc-chips{scroll-padding-inline:16px;padding-block:4px;margin-block:-4px}
#drawer .bnc-ib-host .bnc-chip:focus-visible{outline:2px solid var(--bnc-accent);outline-offset:1px}
.bnc-ib-host .bnc-ib-foot .bnc-link{min-height:36px}
.bnc-ib-host .bnc-keys{font-size:12px}
.bnc-ib-host .bnc-keys kbd{min-width:20px;height:20px;font-size:12px}

/* 5. Touch: every control in the popover and the inbox is at least 44px. */
@media (pointer:coarse){
  #bellPanel.bnc-panel .bnc-iconbtn,.bnc-ib-host .bnc-iconbtn{width:44px;height:44px;min-height:44px!important}
  #bellPanel.bnc-panel .bnc-seg button{min-height:44px!important}
  #bellPanel.bnc-panel .bnc-brief>summary{min-height:44px}
  #bellPanel.bnc-panel .bnc-link,#bellPanel.bnc-panel>.push-context button,#bellPanel.bnc-panel [data-bellretry]{min-height:44px}
  .bnc-ib-host .bnc-search{height:44px}
  #drawer .bnc-ib-host .bnc-chip{min-height:44px!important;height:44px;padding:0 14px}
  .bnc-ib-host .bnc-ib-foot .bnc-link,.bnc-ib-host .bnc-btn{min-height:44px}
  #bellPanel.bnc-panel .bnc-menu [role=menuitem],.bnc-ib-host .bnc-menu [role=menuitem],#bellPanel.bnc-panel .bnc-pop button,.bnc-ib-host .bnc-pop button{min-height:44px!important}
  #bellPanel.bnc-panel .bnc-act,.bnc-ib-host .bnc-act{width:44px;height:44px;min-height:44px!important}
  #bellPanel.bnc-panel .bnc-open,.bnc-ib-host .bnc-open{min-height:44px!important;justify-content:center}
  #bellPanel.bnc-panel .bnc-dup,.bnc-ib-host .bnc-dup{min-width:44px;min-height:44px!important;justify-content:center}
  /* Selection: the checkbox itself is the 44px hit area (invisible), and the visible 20px box is drawn
     by its wrapper, so a tap anywhere in the 44px square toggles it. */
  .bnc-ib-host .bnc-pick{width:44px;height:44px;margin:-6px}
  .bnc-ib-host .bnc-pick .bnc-check{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
  .bnc-ib-host .bnc-pick::before{content:"";width:20px;height:20px;border:2px solid var(--bnc-muted);border-radius:5px;background:var(--bnc-card);box-sizing:border-box}
  .bnc-ib-host .bnc-pick:has(.bnc-check:checked)::before{border-color:var(--bnc-ink);background:var(--bnc-ink)}
  .bnc-ib-host .bnc-pick:has(.bnc-check:checked)::after{content:"";position:absolute;left:50%;top:50%;width:5px;height:10px;border:solid var(--bnc-card);border-width:0 2px 2px 0;transform:translate(-50%,-62%) rotate(45deg)}
  .bnc-ib-host .bnc-pick:has(.bnc-check:focus-visible)::before{outline:2px solid var(--bnc-accent);outline-offset:2px}
}
/* Keyboard shortcuts only where there is a keyboard to press them. */
@media (hover:none),(max-width:640px){.bnc-ib-host .bnc-keys{display:none}}

/* 6. High contrast and forced colours: every boundary and state stays visible. */
@media (prefers-contrast:more){
  #bellPanel.bnc-panel,.bnc-ib-host{--bnc-line:var(--ink,#071A3D);--bnc-muted:var(--ink,#071A3D)}
  #bellPanel.bnc-panel .bnc-seg button[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--bnc-ink)}
  #drawer .bnc-ib-host .bnc-chip[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--bnc-ink)}
}
@media (forced-colors:active){
  #bellPanel.bnc-panel .bnc-seg button[aria-pressed=true],#drawer .bnc-ib-host .bnc-chip[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-2px}
  #bellPanel.bnc-panel .bnc-dot,.bnc-ib-host .bnc-dot{forced-color-adjust:none;background:CanvasText}
  #bellPanel.bnc-panel>.notifrow[role=status],.bnc-ib-host .bnc-empty[role=alert]{border-left-color:CanvasText}
  .bnc-ib-host .bnc-pick::before{forced-color-adjust:none;border-color:CanvasText;background:Canvas}
  .bnc-ib-host .bnc-pick:has(.bnc-check:checked)::before{background:Highlight;border-color:Highlight}
  .bnc-ib-host .bnc-pick:has(.bnc-check:checked)::after{forced-color-adjust:none;border-color:HighlightText}
}

/* ── Ask (#/ask and the Ask drawer): presentation on top of the live ask-workspace layer ─────────── */

/* A1. One card, not three: once a conversation starts, the workbench drops its own card chrome, so the
       answer card is the only frame (it was a card inside a card inside the page). */
.ask-workspace-page .ask-workbench.ask-experience.ask-has-conversation{border-color:transparent!important;background:transparent!important;box-shadow:none!important;padding-inline:0!important}

/* A2. Nothing under 12px: labels, the photo placeholder, the freshness line, disclosures, the trust line. */
.ask-experience .ask-ws-record-facts dt{font-size:12px!important;line-height:1.35}
.ask-experience .ask-ws-record-facts dd{font-size:14px!important;line-height:1.4}
.ask-experience .ask-ws-record-photo{font-size:12px!important;line-height:1.35;text-align:center}
.ask-experience .ask-ws-refresh [data-ask-freshness]{font-size:13px}
.ask-experience .ask-ws-disclosure>summary{font-size:13px!important;min-height:44px}
.ask-experience .ask-trust{font-size:13px!important;line-height:1.5}
.ask-experience .ask-ws-record-actions button,.ask-experience .ask-ws-evidence button{font-size:13px!important}

/* A3. Refresh reads as a button, on the freshness line. */
.ask-experience .ask-ws-refresh{flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.ask-experience .ask-ws-refresh>button[data-ask-refresh]{min-height:36px;padding:6px 12px!important;border:1px solid var(--hairline,#D6DEE8)!important;border-radius:8px!important;background:var(--card,#fff)!important;color:var(--ink,#071A3D)!important;font-size:13px!important;font-weight:500}
.ask-experience .ask-ws-refresh>button[data-ask-refresh]:hover{background:var(--chip,#F1ECE3)!important}
.ask-experience .ask-ws-refresh>button[data-ask-refresh]:focus-visible{outline:2px solid var(--bleu,#0075E1);outline-offset:2px}

/* After a starter on touch, focus rests on the question echo (a programmatic target): no field ring. */
.ask-experience .ask-question-label[data-ctm-focus]:focus:not(:focus-visible){outline:none}

/* A4. Starters are compact: the question and its arrow on one line, no tall empty card. */
.ask-experience .ask-suggestions button{min-height:0!important;gap:6px!important;padding:14px 44px 14px 16px!important}
.ask-experience .ask-suggestions .ask-start-arrow{position:absolute;right:14px;top:50%;translate:0 -50%;margin:0}
.ask-experience .ask-start-question{font-size:15px;line-height:1.4}
.ask-experience .ask-start-label{font-size:12px!important}
.ask-experience .ask-compose-foot>span{font-size:12px!important}

/* A5. After an answer, the starters and the trust line follow the composer at the workbench's own gap
       (measured at 390 and 1440: composer to starters 54px -> 18px, starters to trust line 42px -> 18px). */
.ask-experience.ask-has-conversation .ask-examples{margin-top:0!important;padding-top:0!important}
.ask-experience.ask-has-conversation .ask-trust{margin-top:0!important}

/* A6. Phones and narrow windows. */
@media (max-width:640px){
  /* Labels in one column so every value starts at the same place. */
  .ask-experience .ask-ws-record-facts{grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
  .ask-experience .ask-ws-record-facts>div{display:grid!important;grid-template-columns:7.5rem minmax(0,1fr);gap:8px;align-items:baseline}
  .ask-experience .ask-ws-record-facts dd{margin:0!important;overflow-wrap:anywhere}
  /* A record is one column: a photo spans the card; a missing photo is one quiet line, not a box that
     squeezes the record into half the width. */
  .ask-experience .ask-ws-record{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .ask-experience .ask-ws-record-photo{width:100%!important;height:auto!important;aspect-ratio:16/9;max-height:200px}
  .ask-experience .ask-ws-record-photo:not(:has(img)){aspect-ratio:auto;min-height:0;height:auto!important;padding:8px 12px!important;justify-content:flex-start;text-align:left}
  .ask-experience .ask-ws-related>section{padding-left:12px!important}
}
/* The follow-up composer stays above the phone tab bar instead of sliding under it
   (--ctm-tabbar-clear is the visible tab bar height, set by the runtime; 0 when there is none). */
.ask-workspace-page .ask-experience.ask-has-conversation .ask-compose{bottom:calc(12px + var(--ctm-tabbar-clear,0px))!important}
/* ...and a control that takes focus is scrolled clear of the composer and the tab bar
   (--ctm-ask-bottom = tab bar + 12px + composer height + 8px, set by the runtime). */
html:has(.ask-workspace-page .ask-has-conversation){scroll-padding-bottom:var(--ctm-ask-bottom,160px)}

@media (pointer:coarse){
  .ask-experience .ask-ws-refresh>button[data-ask-refresh]{min-height:44px}
}
@media (prefers-contrast:more){
  .ask-experience .ask-ws-record,.ask-experience .ask-answer{border-color:var(--ink,#071A3D)!important}
  .ask-experience .ask-ws-refresh>button[data-ask-refresh]{border-color:var(--ink,#071A3D)!important}
}
@media (forced-colors:active){
  .ask-experience .ask-ws-refresh>button[data-ask-refresh]{border:1px solid ButtonText!important}
}
