/* Command Center 19.2 Alerts (nt19.css). ALL new notification styling lives here; the old .nt17 blocks in index.html stay and are overridden below (same class names where the swipe code needs them).
   Layout: dark floating pill header (Alerts + gold "N need you" + mark-all-read + ... menu), a 3-pill segmented control + search pill, 22px pill cards, dark day pills.
   Status colors come from status192.css (.st-warn amber/gold, .st-urgent red, .st-good green, .st-info blue, .st-fyi grey). Only transform and opacity animate; no backdrop-filter is added here. */
:root{--nt-pill:var(--shell,#14262f);--nt-pill-fg:var(--shell-text,#fff);--nt-gold:var(--gold,#c5a467);--nt-on-gold:var(--on-gold,#241a08)}
/* ---- the sheet: Done on top, no title band ---- */
.sheet.nt19-sheet .sheet-head{grid-template-columns:1fr;min-height:44px;padding:4px 10px 0;border:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.sheet.nt19-sheet .sheet-head::before{display:none}
.sheet.nt19-sheet .sheet-head #sheetTitle{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sheet.nt19-sheet .sheet-head .btn.ghost{justify-self:end;padding:0 12px;min-height:44px;font-weight:600;color:var(--accent)}
.sheet.nt19-sheet .sheet-body{padding:0 12px calc(24px + env(safe-area-inset-bottom));gap:0}
/* ---- header pill ---- */
.nt19w{display:block;min-width:0;font-family:"Archivo",var(--body,system-ui,sans-serif)}
.nt19-top2{display:grid;gap:8px;margin:0 0 8px}
.nt19-hd{position:relative;display:flex;align-items:center;gap:8px;min-height:52px;margin:0;padding:4px 6px 4px 18px;border-radius:999px;background:var(--nt-pill);color:var(--nt-pill-fg);flex-wrap:nowrap}
.nt19-ttl{font-size:17px;font-weight:700;letter-spacing:-.01em}
.nt19-n{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;background:var(--nt-gold);color:var(--nt-on-gold);font-size:12px;font-weight:700;white-space:nowrap}
.nt19-sp{flex:1}
.nt19-ic{flex:none;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:var(--nt-pill-fg);cursor:pointer;-webkit-tap-highlight-color:transparent}
.nt19-ic .i{width:20px;height:20px}
.nt19-ic[disabled]{opacity:.45;cursor:default}
.nt19-ic:focus-visible,.nt19-mi:focus-visible,.nt19-seg button:focus-visible,.nt19-got:focus-visible,.nt19-xp:focus-visible,.nt19-open:focus-visible,.nt19-sc:focus-visible,.nt19-px:focus-visible,.nt19-pb:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* the ... menu: an 18px popover under the pill */
.nt19-menu{position:absolute;z-index:6;top:calc(100% + 6px);right:0;left:auto;width:min(300px,calc(100vw - 32px));display:grid;gap:2px;padding:8px;border:var(--d-hair,1px solid var(--line));border-radius:var(--d-r-pop,18px);background:var(--surface);color:var(--fg);box-shadow:var(--shadow-lg);animation:nt17in .18s cubic-bezier(.32,.72,0,1);max-height:max(200px,calc(100vh - 150px));max-height:max(200px,calc(100dvh - 150px));overflow-y:auto;overscroll-behavior:contain}   /* 19.2.3: on a short screen (Duo sideways) the menu scrolls instead of running off the bottom */
.nt19-menu p{margin:2px 8px 4px;flex-basis:auto}
.nt19-menu hr{border:0;border-top:1px solid var(--line);margin:4px 0}
.nt19-mi{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:var(--d-r-row,14px);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.nt19-mi .n{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:600}
.nt19-mi[disabled]{opacity:.5;cursor:default}
@media (hover:hover) and (pointer:fine){.nt19-mi:not([disabled]):hover{background:var(--fill)}}
/* ---- segmented control + search pill ---- */
.nt19-bar{display:grid;min-width:0}
.nt19-seg{display:flex;align-items:center;gap:4px;margin:0;padding:3px;border-radius:999px;background:var(--fill)}
.nt19-seg button[role="tab"]{flex:1;min-width:0;min-height:36px;padding:0 6px;border:0;border-radius:999px;background:transparent;color:var(--fg-2);font:inherit;font-size:14px;font-weight:500;white-space:nowrap}
.nt19-seg button[aria-selected="true"]{background:var(--surface);color:var(--fg);font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.1)}
.nt19-sb{flex:none;width:40px;height:36px;display:grid;place-items:center;border:0;border-radius:999px;background:transparent;color:var(--fg-2)}
.nt19-sb .i{width:18px;height:18px}
@media (pointer:coarse){.nt19-seg button[role="tab"]{min-height:44px}.nt19-sb{width:44px;height:44px}}
.nt19w.srch .nt19-seg{display:none}
.nt19-sq{display:flex;align-items:center;gap:6px}
.nt19-sq .nt17-search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:0 14px;min-height:44px;border:1px solid var(--line);border-radius:999px;background:var(--surface);box-shadow:none}
.nt19-sq .nt17-search input,.nt17-search input[data-ntq]{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;border-radius:0;padding:0;min-height:0;height:100%;font:inherit;font-size:16px;color:inherit}
.nt19-sq .nt17-search:focus-within{border-color:var(--accent)}
.nt19-sc{flex:none;min-height:44px;padding:0 10px;border:0;background:transparent;color:var(--accent);font:inherit;font-weight:600}
.nt19w .nt17-tools{margin:0 0 8px}
.nt19w .nt17-cats button{min-height:36px;border-radius:999px}
@media (pointer:coarse){.nt19w .nt17-cats button{min-height:44px}}
/* ---- push notice: one dismissible line ---- */
.nt19-push{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-height:44px;margin:8px 0 0;padding:0 4px 0 14px;border-radius:999px;font-size:13px}
.nt19-push span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nt19-pb{flex:none;min-height:44px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--accent);font:inherit;font-weight:700}
.nt19-px{flex:none;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted)}
.nt19-px .i{width:16px;height:16px}
/* ---- day pills ---- */
.nt19w .nt17-day{display:inline-flex;align-items:center;min-height:26px;margin:10px 0 6px;padding:0 12px;border-radius:999px;background:var(--nt-pill);color:var(--nt-pill-fg);font-size:12px;font-weight:700;letter-spacing:0;text-transform:none}
.nt19w .nt17-day:first-child{margin-top:4px}
/* ---- cards ---- */
.nt19w .nt17-wrap,.nt19w #nt17list{min-width:0}
.nt19w .nt17.nt19{margin:0 0 8px;border-radius:var(--d-r-card,22px);background:var(--fill)}
.nt19w .nt17.nt19 .nt17-row{align-items:flex-start;gap:4px;padding:10px 4px 10px 6px;border:var(--d-hair,1px solid var(--line));border-left-width:1px;border-radius:var(--d-r-card,22px);background:var(--surface)}
.nt19w .nt17.nt19.urgent .nt17-row{border-left:var(--d-hair,1px solid var(--line))}
.nt19w .nt17.nt19.sel .nt17-row{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.nt19w .nt17.nt19 .nt17-dot{margin:-4px 0 -4px 0;width:36px;height:44px}
@media (pointer:coarse){.nt19w .nt17.nt19 .nt17-dot{width:44px}}
.nt19w .nt17.nt19 .nt17-dot .d{width:10px;height:10px;border:2px solid var(--st-ink,var(--faint));background:var(--st-ink,var(--faint))}
.nt19w .nt17.nt19.read .nt17-dot .d{background:transparent}
.nt19w .nt17.nt19.unread .nt17-dot .d{border-color:var(--st-ink,var(--accent))}
.nt19w .nt17.nt19 .nt17-more{margin:-4px 0 -4px 0;width:36px;height:44px}
@media (pointer:coarse){.nt19w .nt17.nt19 .nt17-more{width:44px}}
.nt19w .nt17-body{font-size:13px;line-height:1.35}
.nt19-top{display:flex;align-items:baseline;gap:8px}
.nt19-job{flex:1;min-width:0;font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:anywhere}   /* 19.2.1 final: the job name may take two lines (it was cut to "21337 Sample..." in the narrow two-pane list); ellipsis after two */
.nt19-meta{flex:none;font-size:11.5px;color:var(--muted);white-space:nowrap}
.nt19-kind{color:var(--fg-2);font-size:12.5px}
.nt19w .nt17.read .nt17-body .nt19-job{font-weight:600}
.nt19w .nt17-unr{margin:0 0 0 6px;padding:0 7px;font-size:.6875rem}
.nt19-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;min-width:0}
.nt19-chips,.nt19-rest{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.nt19-rest{display:none;margin-top:6px}
.nt19.xp .nt19-rest{display:flex}
.nt19-c{min-height:22px;max-width:100%;font-size:12px;white-space:normal}
.nt19-c i{font-style:normal;opacity:.8}.nt19-c em{font-style:normal;opacity:.85}
.nt19-got{flex:none;margin-left:auto;min-height:30px;padding:0 14px;border:0;border-radius:999px;background:var(--nt-pill);color:var(--nt-pill-fg);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
@media (pointer:coarse){.nt19-got{min-height:44px;padding:0 16px}}
.nt19-seen{flex:none;margin-left:auto;white-space:nowrap}
.nt19-xp{display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:0;border:0;background:transparent;color:var(--accent);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.nt19-xp .i{width:14px;height:14px;transition:transform .2s}
.nt19.xp .nt19-xp .i{transform:rotate(180deg)}
@media (pointer:coarse){.nt19-xp{min-height:44px}}
.nt19-s{margin-top:4px}
/* swipe layers use tokens, not raw hex */
.nt19w .nt17-a.snz{background:var(--steel)}.nt19w .nt17-a.dis,.nt19w .nt17-cmt{background:var(--bad)}.nt19w .nt17-a.rd,.nt19w .nt17-lead{background:var(--accent)}
.nt19w .nt17-a.dis,.nt19w .nt17-cmt{color:var(--on-bad,#fff)}
/* ---- empty and loading ---- */
.nt19-empty{display:grid;justify-items:center;gap:4px;padding:36px 12px;color:var(--fg-2)}
.nt19-empty p{margin:0}.nt19-empty b{font-size:17px;color:var(--fg)}
.nt19-ok{display:grid;place-items:center;width:56px;height:56px;margin-bottom:6px;border-radius:50%;background:var(--st-soft);color:var(--st-ink)}
.nt19-ok .i{width:26px;height:26px}
.nt19-skel{display:grid;gap:8px}
.nt19-sk{display:grid;gap:8px;padding:14px;border:var(--d-hair,1px solid var(--line));border-radius:var(--d-r-card,22px);background:var(--surface)}
.nt19-sk i{display:block;height:12px;border-radius:999px;background:var(--fill);animation:nt19sk 1.3s ease-in-out infinite}
.nt19-sk .a{width:46%}.nt19-sk .b{width:72%}.nt19-sk .c{width:30%;height:22px}
@keyframes nt19sk{0%,100%{opacity:.5}50%{opacity:1}}
.nt19-slow{text-align:center}
/* ---- detail pane (only on wide, tall screens) ---- */
.nt19-detail{display:none}
.nt19-dcard{display:grid;gap:8px;padding:16px;border:var(--d-hair,1px solid var(--line));border-radius:var(--d-r-card,22px);background:var(--surface)}
.nt19-dcard .nt19-job{font-size:19px;white-space:normal}
.nt19-drows{display:grid;gap:2px;margin-top:4px}
.nt19-dr{display:flex;align-items:center;gap:8px;min-height:38px;border-top:1px solid var(--line);font-size:14px}
.nt19-dr .k{flex:1;color:var(--fg-2)}
.nt19-dr s{color:var(--muted)}.nt19-dr i{font-style:normal;color:var(--muted)}.nt19-dr b{color:var(--st-ink)}
.nt19-dact{display:flex;gap:8px;align-items:center;margin-top:6px}
.nt19-open{min-height:44px;padding:0 20px;border:0;border-radius:999px;background:var(--nt-pill);color:var(--nt-pill-fg);font:inherit;font-weight:700;cursor:pointer}
.nt19-dact .nt19-got{margin-left:0;min-height:44px;background:var(--fill);color:var(--fg)}
@media (min-width:669px) and (min-height:700px){
  .sheet.nt19-sheet .sheet-card{width:min(980px,calc(100% - 24px))}
  .nt19-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:14px;align-items:start}
  .nt19-detail{display:block;position:sticky;top:0}
}
/* ---- short screens (closed Duo 594x368, landscape 951x585): header and controls share one row, cards in two columns ---- */
@media (max-height:640px){
  .sheet.nt19-sheet .sheet-card{margin-top:0;margin-bottom:0;height:100%}
  .sheet.nt19-sheet .sheet-head{min-height:36px;padding-top:0}
  .sheet.nt19-sheet .sheet-head .btn.ghost{min-height:36px}
  .nt19-top2{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin-bottom:6px}
  .nt19-hd{min-height:44px;padding-left:14px}
  .nt19-ic{width:36px;height:36px}
  .nt19-ttl{font-size:15px}
  .nt19-seg button[role="tab"]{min-height:36px;font-size:13px}
  #nt17list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;align-items:start}
  #nt17list .nt17-day,#nt17list .nt19-empty,#nt17list .nt19-skel,#nt17list .nt17-natools,#nt17list .nt17-clear{grid-column:1/-1}
  #nt17list .nt17-day{margin:2px 0 0;min-height:22px}
  .nt19w .nt17.nt19{margin:0}
  .nt19-kind{display:none}
  .nt19-xp{min-height:28px}
  .nt19-menu{right:auto;left:0}
}
/* ---- undo capsule: two readable lines on the same dark pill as the nav ---- */
html #undo185,html #nt17undo{background:var(--nt-pill);color:var(--nt-pill-fg);border:0;border-radius:26px;-webkit-backdrop-filter:none;backdrop-filter:none;align-items:center}
html #undo185 .t{display:block;white-space:pre-line;overflow:visible;text-overflow:clip;font-size:12.5px;font-weight:500;line-height:1.35;padding:6px 0}
html #undo185 .t::first-line{font-size:14px;font-weight:700}
html #undo185 .u,html #nt17undo button{background:var(--nt-gold);color:var(--nt-on-gold);font-weight:700;border-radius:999px;min-width:56px}
html #undo185 .c{color:inherit;opacity:.7}
html #nt17undo{white-space:normal;line-height:1.35}html #nt17undo small{opacity:.8;font-size:12px}
/* ---- one badge color everywhere: the Alerts count is gold with dark text on the bell, the nav capsule and rail, the Field bar and the old tab bar ---- */
html #schedBell .ct,html .ct[data-n2ct],html #nav2 .ct,html #mbar .ct,html body.field #fieldbar .ct,html .tabbar .ct{background:var(--nt-gold)!important;color:var(--nt-on-gold)!important}
@media (prefers-reduced-motion:reduce){.nt19-sk i,.nt19-menu,.nt19-xp .i{animation:none!important;transition:none!important}}
/* the swipe layers stay hidden until a finger drags the card (no colored sliver at the rounded corners) */
.nt19w .nt17.nt19:not(.drag):not(.leaving):not(.lcommit) .nt17-lead{visibility:hidden}
html .sheet.nt19-sheet .sheet-card{margin-top:12px;height:calc(100% - 12px)}
@media (min-width:861px){html .sheet.nt19-sheet .sheet-card{margin:12px 12px 12px auto;height:calc(100% - 24px)}}
/* fit fixes: chip rows wrap, "Got it" is its own right-aligned pill that wraps under the chip rather than over it */
.nt19-foot{flex-wrap:wrap}
.nt19-chips{flex:1 1 120px}
.nt19-c{border-radius:11px}
.nt19-got{margin-left:auto}
@media (max-height:640px){
  .nt19-seg{gap:2px}.nt19-seg button[role="tab"]{font-size:12px;padding:0 2px;overflow:hidden;text-overflow:ellipsis}
  .nt19-sb{width:34px}.nt19-ic{width:34px;height:34px}.nt19-hd{gap:6px;padding-right:5px}
  .nt19-chips{flex:1 1 100%}
  .nt19-got{min-height:36px}
  .nt19-top2{grid-template-columns:auto minmax(0,1fr)}
}
/* dark: the dark "Got it" / "Open job" pills would melt into the dark cards, so they are gold (like the sketch) */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) :is(.nt19-got,.nt19-open){background:var(--nt-gold);color:var(--nt-on-gold)}:root:not([data-theme="light"]) .nt19-dact .nt19-got{background:var(--fill);color:var(--fg)}}
:root[data-theme="dark"] :is(.nt19-got,.nt19-open){background:var(--nt-gold);color:var(--nt-on-gold)}
:root[data-theme="dark"] .nt19-dact .nt19-got{background:var(--fill);color:var(--fg)}
@media (max-height:640px){.nt19-ttl{font-size:14px}.nt19-n{font-size:11px;padding:0 7px;min-height:22px}.nt19-ic{width:32px;height:32px}.nt19-hd{padding-left:12px;gap:5px}.nt19-seg button[role="tab"]{font-size:11.5px}}
