/* Pulse — "Showroom" look: black top menu, black title bar with a red line, grey page, white rounded cards. */
@font-face{font-family:"Plus Jakarta Sans";font-weight:400;font-display:swap;src:url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-weight:500;font-display:swap;src:url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-weight:600;font-display:swap;src:url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-weight:700;font-display:swap;src:url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-weight:800;font-display:swap;src:url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2")}
:root{--ink:#141414;--ink-2:#404040;--ink-3:#636363;--page:#F4F4F2;--surface:#FFFFFF;--surface-2:#FAFAF9;--fill:rgba(20,20,20,.07);--line:#EEEEEC;--line-2:#E5E5E3;--input-bd:#E5E5E3;--placeholder:#8A8A88;
--accent:#047857;--accent-hover:#065F46;--accent-soft:#ECFDF5;--red:#B91C1C;--red-soft:#FEF2F2;--link:#047857;
--ok-t:#166534;--ok-b:#DCFCE7;--warn-t:#92400E;--warn-b:#FEF3C7;--bad-t:#991B1B;--bad-b:#FEE2E2;--info-t:#1E40AF;--info-b:#DBEAFE;--mute-t:#404040;--mute-b:#F0F0EE;
--card-bd:rgba(20,20,20,.06);--shadow:0 1px 2px rgba(20,20,20,.05),0 8px 24px rgba(20,20,20,.07);--shadow-lg:0 24px 60px -18px rgba(20,20,20,.35);--ring:0 0 0 4px rgba(4,120,87,.18);--dot:rgba(20,20,20,.05)}
html[data-theme=dark]{--ink:#F5F5F4;--ink-2:#D4D4D4;--ink-3:#A3A3A3;--page:#0A0A0A;--surface:#171717;--surface-2:#1F1F1F;--fill:rgba(255,255,255,.08);--line:#262626;--line-2:#333333;--input-bd:#333333;--placeholder:#8A8A8A;
--accent-soft:rgba(16,185,129,.14);--red:#FCA5A5;--red-soft:rgba(252,165,165,.14);--link:#6EE7B7;
--ok-t:#4ADE80;--ok-b:rgba(74,222,128,.16);--warn-t:#FBBF24;--warn-b:rgba(251,191,36,.16);--bad-t:#FCA5A5;--bad-b:rgba(252,165,165,.16);--info-t:#93C5FD;--info-b:rgba(147,197,253,.18);--mute-t:#D4D4D4;--mute-b:#262626;
--card-bd:#262626;--shadow:none;--ring:0 0 0 4px rgba(16,185,129,.3);--dot:rgba(255,255,255,.04)}
*{box-sizing:border-box}
body{margin:0;font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14.5px;line-height:1.45;color:var(--ink);background:var(--page) radial-gradient(var(--dot) 1px,transparent 1px) 0 0/18px 18px;font-variant-numeric:tabular-nums}
h1,h2,p{margin:0}h2{font-size:16px;font-weight:700;letter-spacing:-.01em}
a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}
svg{flex:none}

/* black bands */
.menubar{background:#141414;min-height:60px;display:flex;align-items:center;gap:6px;padding:10px 28px;flex-wrap:wrap;position:sticky;top:0;z-index:20;border-bottom:1px solid #262626}
.wordmark{display:flex;align-items:center;gap:9px;color:#fff;font-weight:800;font-size:17px;letter-spacing:-.01em;margin-right:14px}.wordmark:hover{text-decoration:none}
.mark{width:30px;height:30px;border-radius:9px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px}
.menubar nav{display:flex;gap:6px;flex-wrap:wrap}
.menubar nav a{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 13px;border-radius:10px;background:#2A2A2E;color:#EDEDED;font-size:12px;font-weight:700}
.menubar nav a:hover{background:#3A3A3F;text-decoration:none}.menubar nav a.on{background:#fff;color:#141414}
.bubble{background:var(--accent);color:#fff;font-size:11px;font-weight:700;min-width:18px;height:18px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center}
.titlebar{background:#141414;min-height:64px;padding:10px 28px;border-bottom:3px solid var(--accent);display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.titlebar h1{color:#fff;font-size:21px;font-weight:800;letter-spacing:-.01em;line-height:1.25;overflow-wrap:anywhere;flex:1 1 240px;min-width:0}.titlebar h1 span{color:#A3A3A3;font-weight:700}
.tb-right{display:flex;align-items:center;gap:10px}
.round{width:40px;height:40px;border-radius:50%;background:#262626;border:1px solid #333;color:#fff;display:inline-flex;align-items:center;justify-content:center;position:relative;cursor:pointer}
.round .bubble{position:absolute;top:-4px;right:-4px}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--accent);color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none}
.avatar::-webkit-details-marker{display:none}
.usermenu{position:relative}.usermenu .pop{position:absolute;right:0;top:46px;width:230px;background:var(--surface);color:var(--ink);border:1px solid var(--line-2);border-radius:14px;box-shadow:var(--shadow-lg);padding:8px;z-index:30;display:flex;flex-direction:column}
.usermenu .pop p{padding:8px 10px}.usermenu .pop a,.usermenu .pop button{display:flex;align-items:center;min-height:42px;padding:0 10px;border-radius:10px;color:var(--ink);font:600 14px inherit;font-family:inherit;background:none;border:0;cursor:pointer;text-align:left}
.usermenu .pop a:hover,.usermenu .pop button:hover{background:var(--fill);text-decoration:none}

main{padding:24px 28px 64px;display:flex;flex-direction:column;gap:18px;max-width:1500px;margin:0 auto}
.card{background:var(--surface);border:1px solid var(--card-bd);border-radius:20px;box-shadow:var(--shadow)}
.pad{padding:18px 20px}.stack{display:flex;flex-direction:column;gap:12px}
.hd{padding:16px 20px}.hd .lbl{margin-top:3px}.cnt{color:var(--ink-3);font-weight:600}
.lbl{font-size:12.5px;color:var(--ink-3);font-weight:500}.blk{display:block}
label.lbl,label.f{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:700;color:var(--ink-2)}
.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.badge.dn::before{content:"✓";width:auto;height:auto;background:none;font-weight:800}.badge.ex::before{content:"!";width:auto;height:auto;background:none;font-weight:800}.badge.clk::before{background:none;border:1.5px solid currentColor;width:7px;height:7px}
.badge.ok{color:var(--ok-t);background:var(--ok-b)}.badge.warn{color:var(--warn-t);background:var(--warn-b)}.badge.bad{color:var(--bad-t);background:var(--bad-b)}.badge.info{color:var(--info-t);background:var(--info-b)}.badge.mute{color:var(--mute-t);background:var(--mute-b)}
.pills{display:flex;gap:8px;flex-wrap:wrap}
.row{display:flex;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid var(--line);flex-wrap:wrap}
.row.unread{background:var(--accent-soft)}
.grow{flex:1 1 220px;min-width:0}
.ttl{font-weight:700;color:var(--ink);font-size:14.5px;overflow-wrap:anywhere}a.ttl{display:inline-block;padding:4px 0}a.ttl:hover{color:var(--link);text-decoration:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 16px;border-radius:12px;border:1.5px solid var(--line-2);background:var(--surface);color:var(--ink);font:700 13.5px inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
.btn:hover{background:var(--surface-2);text-decoration:none}
.btn-primary,.btn-red{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover,.btn-red:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}
.btn-ghost,.btn.quiet{background:none;border-color:transparent;color:var(--link)}
.btn.pillb{border-radius:999px}
.btns{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.fld{min-height:46px;padding:9px 12px;border:1px solid var(--input-bd);border-radius:12px;font:400 15.5px inherit;font-family:inherit;background:var(--surface-2);color:var(--ink);max-width:100%}
.fld::placeholder{color:var(--placeholder)}
.fld:focus,.btn:focus-visible,a:focus-visible,summary:focus-visible,button:focus-visible{outline:none;border-color:var(--accent);box-shadow:var(--ring)}
label .fld,.stack>.fld,textarea.fld{width:100%}
.capture{padding:12px 14px;display:flex;gap:8px;flex-wrap:wrap}.capture .big,.capture .grow{flex:1 1 280px;min-width:0}
.flash{background:var(--warn-b);border:1px solid var(--warn-b);color:var(--warn-t);border-radius:12px;padding:12px 16px;font-weight:600}.flash a{color:inherit;text-decoration:underline}
.top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.cols{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start}
.col{flex:2 1 320px;min-width:0;display:flex;flex-direction:column;gap:18px}.col.wide{flex:3 1 460px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.inl{display:flex;flex-direction:column;gap:10px}
.chkf{margin:0 -6px 0 -12px}
.chk{width:44px;height:44px;border:0;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;border-radius:50%}
.chk span{width:20px;height:20px;border-radius:50%;border:2px solid var(--placeholder)}.chk:hover span{border-color:var(--ok-t);background:var(--ok-b)}
.chkl{display:flex;gap:8px;align-items:center;font-size:13px;min-height:44px;font-weight:500}.chkl input{accent-color:var(--accent);width:18px;height:18px}
.quote{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.ev{display:flex;gap:14px;padding:12px 20px;border-top:1px solid var(--line)}.ev time{flex:0 0 88px;font-size:12px;color:var(--ink-3);font-weight:600;padding-top:2px}.ev p{overflow-wrap:anywhere}
details summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;gap:12px;border-radius:10px}
details.det{display:block}details.det summary{flex-wrap:wrap}

/* login */
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:#141414}
.login .card{width:100%;max-width:400px;border-radius:22px;border-top:4px solid var(--accent)}
.login .wordmark{color:var(--ink);font-size:20px}.caps{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}

/* phone: drawer + glass bottom bar */
.bottombar,.scrim,.drawer-head{display:none}
@media (max-width:1199px){
 .menubar{position:fixed;top:0;bottom:0;left:0;width:288px;max-width:84vw;flex-direction:column;align-items:stretch;padding:18px 12px;border-radius:0 20px 20px 0;transform:translateX(-105%);transition:transform .25s cubic-bezier(.22,1,.36,1);z-index:60;flex-wrap:nowrap;overflow-y:auto;border:0}
 body.drawer .menubar{transform:none}
 body.drawer .scrim{display:block;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:55}
 .menubar .wordmark{margin:0 8px 14px}.menubar nav{flex-direction:column;gap:4px}
 .menubar nav a{height:44px;background:none;font-size:14.5px;font-weight:600;justify-content:space-between;border-radius:12px}
 .titlebar{min-height:56px;padding:8px 14px}.titlebar h1{font-size:18px}
 main{padding:14px 12px 96px}.card{border-radius:18px}
 .bottombar{display:flex;position:fixed;left:0;right:0;bottom:0;height:65px;background:rgba(22,23,28,.82);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);z-index:50;justify-content:space-around;align-items:center;padding-bottom:env(safe-area-inset-bottom)}
 .bottombar a,.bottombar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;color:#C9C9C9;font:600 11.5px inherit;font-family:inherit;background:none;border:0;min-height:48px;justify-content:center;cursor:pointer;position:relative}
 .bottombar a:hover{text-decoration:none}.bottombar .on{color:#34D399}
 .bottombar .plus{flex:0 0 58px;height:58px;border-radius:50%;background:var(--accent);color:#fff;margin-top:-22px;box-shadow:0 8px 22px rgba(4,120,87,.5)}
 .bottombar .bubble{position:absolute;top:2px;left:calc(50% + 6px)}
 .tb-capture{display:none}
}
.row>form.inl{flex:1 1 100%}

/* 1.2.0: motion, table with inline editing, split view, palette, toasts */
.btn,.fld,.cell,.round,.menubar nav a,.chk span{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease}
.round.lite{background:var(--surface);border-color:var(--line-2);color:var(--ink)}
.star svg{width:16px;height:16px}.star.on{color:var(--accent);border-color:var(--accent)}.star.on svg{fill:currentColor}
.tbl-wrap{overflow-x:auto;border-radius:20px}
.tbl{width:100%;border-collapse:collapse;min-width:760px}
.tbl th{background:var(--surface-2);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--ink-3);padding:11px 16px;text-align:left;white-space:nowrap}
.tbl td{padding:10px 16px;border-top:1px solid var(--line);vertical-align:middle}
.tbl td:first-child{min-width:260px}
.cell{min-height:40px;padding:6px 8px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink);font:500 14px inherit;font-family:inherit;max-width:170px;cursor:pointer}
.cell:hover:not(:disabled){border-color:var(--input-bd);background:var(--surface-2)}.cell:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);background:var(--surface-2)}
.cell:disabled{cursor:default;opacity:1;color:var(--ink-2);-webkit-appearance:none;appearance:none}
.cell.late{color:var(--red);font-weight:700}
tr.saving,.row.saving{opacity:.55}.row.gone{display:none}
.panel{position:fixed;top:0;right:0;bottom:0;width:560px;max-width:100vw;background:var(--page);border-left:1px solid var(--line-2);box-shadow:var(--shadow-lg);z-index:40;overflow-y:auto;padding:16px;animation:slidein .2s cubic-bezier(.22,1,.36,1)}
@keyframes slidein{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
.panel-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}.panel-head h2{flex:1;font-size:18px;font-weight:800;overflow-wrap:anywhere}
#panelbody{display:flex;flex-direction:column;gap:14px}
@media (min-width:1200px){body.split main{margin-right:560px;max-width:none}body.split .titlebar,body.split .menubar{padding-right:588px}}
.palette{position:fixed;inset:0;background:rgba(15,17,20,.46);z-index:80;display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px}
.palette[hidden],.panel[hidden]{display:none}
.pbox{width:100%;max-width:620px;background:var(--surface);border:1px solid var(--line-2);border-radius:22px;box-shadow:var(--shadow-lg);padding:12px;display:flex;flex-direction:column;gap:8px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.pbox .fld{width:100%;font-size:16px}
#plist{display:flex;flex-direction:column;max-height:50vh;overflow-y:auto}
.pitem{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;cursor:pointer;color:var(--ink);text-align:left;background:none;border:0;font:inherit;font-family:inherit;min-height:44px;justify-content:center}
.pitem strong{font-weight:700}.pitem.sel{background:var(--accent-soft)}.pgroup{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);padding:10px 12px 4px}
.phint{padding:4px 12px}
#toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:90;display:flex;flex-direction:column;gap:8px;align-items:center;width:max-content;max-width:calc(100vw - 24px)}
.toast{background:#141414;color:#fff;border-radius:12px;padding:12px 16px 12px 18px;border-left:4px solid #22C55E;box-shadow:var(--shadow-lg);display:flex;gap:14px;align-items:center;font-weight:600;animation:slidein .2s ease}
.toast.err{border-left-color:#EF4444}.toast button{background:none;border:0;color:#6EE7B7;font:700 13.5px inherit;font-family:inherit;cursor:pointer;min-height:32px;padding:0 6px;border-radius:8px}
html[data-theme=dark] .toast{border:1px solid #333;border-left:4px solid #22C55E}html[data-theme=dark] .toast.err{border-left-color:#EF4444}
@media (max-width:1199px){#toasts{bottom:84px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.avatar{min-height:36px}
@media (max-width:1199px){.titlebar{flex-wrap:nowrap}.titlebar h1{flex:1 1 0;font-size:17px}.tb-right{gap:8px}}
