/* VBI Nexus CRM - flat, one-accent UI. Touch-first (44px min targets). */
:root{
  --ac:#5b5bd6; --ac-2:#4a4ac2; --ac-t:#ececfd; --ac-tx:#3b3bb0;
  --bg:#f5f6fb; --card:#fff; --tx:#1b1c2e; --mu:#6b6c85; --bd:#e5e6f1; --hover:#f0f1f9;
  --ok:#17a05d; --ok-t:#e5f6ed; --warn:#c77a0a; --warn-t:#fdf1dc; --err:#d1243b; --err-t:#fde8ea;
  --r:16px; --r-s:12px; --sh:0 1px 2px #1b1c2e0d,0 8px 24px -12px #1b1c2e1f;
  --nav-w:236px; --bar-h:64px;
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--tx);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;-webkit-tap-highlight-color:transparent}
h1,h2,h3{line-height:1.25;margin:0}
h1{font-size:1.5rem;letter-spacing:-.01em}h2{font-size:1.1rem}h3{font-size:1rem}
a{color:var(--ac-tx);text-decoration:none}
.muted{color:var(--mu)}.small{font-size:.85rem}.right{text-align:right}.nowrap{white-space:nowrap}
.ic{width:22px;height:22px;fill:currentColor;flex:none}
.ic.sm{width:18px;height:18px}.ic.lg{width:30px;height:30px}

/* Shell */
.shell{min-height:100vh;display:grid;grid-template-columns:var(--nav-w) 1fr;grid-template-rows:auto 1fr;grid-template-areas:"nav top" "nav main"}
.topbar{grid-area:top;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 24px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--bd)}
.brand{display:flex;align-items:center;height:100%;color:var(--tx);font-weight:700}
.brand img{max-height:36px;width:auto;max-width:200px;display:block}
.topbar-right{display:flex;align-items:center;gap:8px;margin-left:auto}
.topbar-brand{display:none}
.nav-brand{flex:none;height:64px;margin:0 -12px 12px;padding:0 26px;border-bottom:1px solid var(--bd)}
.nav-brand img{max-width:100%}
.who{font-size:.9rem;color:var(--mu)}
.who-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:0;border-radius:12px;background:transparent;cursor:pointer;font:inherit;font-size:.9rem;color:var(--mu)}
.who-btn:hover,.who-btn:focus-visible{background:var(--hover);color:var(--ac-tx)}
.who-clock{font-weight:700;margin-right:14px;white-space:nowrap}
.clock-time{margin-left:14px}
.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;color:var(--mu);border:0;background:transparent;cursor:pointer}
.icon-btn:hover{background:var(--hover);color:var(--ac-tx)}
.icon-btn.active{background:var(--ac-t);color:var(--ac-tx)}
.nav{grid-area:nav;position:sticky;top:0;height:100vh;padding:0 12px 16px;border-right:1px solid var(--bd);background:var(--card);display:flex;flex-direction:column;gap:2px;overflow:auto}
.nav-item{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 14px;border-radius:12px;color:var(--mu);font-weight:550;position:relative}
.nav-item:hover{background:var(--hover);color:var(--tx)}
.nav-item.active{background:var(--ac-t);color:var(--ac-tx)}
.dot{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--ac);color:#fff;font-size:.75rem;display:grid;place-items:center}
.main{grid-area:main;min-width:0;padding:28px 24px 48px;max-width:1280px;width:100%}

/* Cards, buttons, forms */
.card{background:var(--card);border:1px solid var(--bd);border-radius:var(--r);padding:20px;box-shadow:var(--sh)}
.card+.card{margin-top:16px}
.page-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.grow{flex:1}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:12px;border:1px solid var(--bd);background:var(--card);color:var(--tx);font:600 .95rem inherit;cursor:pointer}
.btn:hover{background:var(--hover)}
.btn.primary{background:var(--ac);border-color:var(--ac);color:#fff}.btn.primary:hover{background:var(--ac-2)}
.btn.danger{color:var(--err);border-color:transparent;background:var(--err-t)}
.btn.sm{min-height:44px;padding:0 14px}
.btn.block{width:100%}
.btn.back{margin-bottom:12px;display:inline-flex}.btn.back + h1,.btn.back + h2{margin-top:0}
/* File pickers: the "Choose file" button matches the app's primary buttons */
input[type=file]{max-width:100%;color:var(--mu);font:inherit;font-size:.9rem}
input[type=file]::file-selector-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0 12px 0 0;padding:0 18px;border-radius:12px;border:1px solid var(--ac);background:var(--ac);color:#fff;font:600 .95rem inherit;cursor:pointer;transition:background .15s}
input[type=file]::file-selector-button:hover{background:var(--ac-2);border-color:var(--ac-2)}
input[type=file]:focus-visible{outline:3px solid color-mix(in srgb,var(--ac) 28%,transparent);outline-offset:2px;border-radius:12px}
label{display:block;font-size:.85rem;font-weight:600;margin:0 0 6px}
.field{margin-bottom:14px}
input[type=text],input[type=email],input[type=password],input[type=url],input[type=number],input[type=search],input[type=date],input[type=time],input[type=datetime-local],input[type=tel],select,textarea{width:100%;min-height:46px;padding:10px 14px;border:1px solid var(--bd);border-radius:var(--r-s);background:var(--card);color:var(--tx);font:inherit}
textarea{min-height:110px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:3px solid color-mix(in srgb,var(--ac) 28%,transparent);border-color:var(--ac)}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:0 16px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 16px}
.check{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:500;font-size:.95rem}
.check input{width:22px;height:22px;accent-color:var(--ac)}
.type-field{border:0;padding:0;margin:0 0 14px;min-width:0}
.type-field legend{font-size:.85rem;font-weight:600;padding:0;margin:0 0 4px}
.checks{gap:0 16px}
.share-box{border:1px solid var(--bd,#d9dde3);border-radius:10px;padding:12px;margin:0 0 14px}
.share-h{font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--mu,#6b7280);margin:10px 0 4px}
.share-people{max-height:150px;overflow:auto}
.share-edit{margin-top:10px}
.input-action{display:flex;align-items:flex-start;gap:8px}
.input-action textarea{flex:1;min-width:0;min-height:46px}
.input-action .icon-btn{flex:none;height:46px;border:1px solid var(--bd);color:var(--ac)}
.input-action .icon-btn[hidden]{display:none}
.switch{position:relative;display:inline-block;width:52px;height:30px}
.switch input{opacity:0;width:100%;height:100%;position:absolute;inset:0;margin:0;cursor:pointer;z-index:1}
.switch i{position:absolute;inset:0;border-radius:15px;background:var(--bd);transition:.15s}
.switch i:after{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:.15s;box-shadow:0 1px 3px #0003}
.switch input:checked+i{background:var(--ac)}.switch input:checked+i:after{transform:translateX(22px)}
.alert{padding:12px 16px;border-radius:var(--r-s);margin-bottom:16px;font-size:.95rem}
.alert-ok{background:var(--ok-t);color:var(--ok)}.alert-err{background:var(--err-t);color:var(--err)}.alert-info{background:var(--ac-t);color:var(--ac-tx)}
.pill{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:13px;font-size:.78rem;font-weight:650;background:var(--ac-t);color:var(--ac-tx);white-space:nowrap}
.pill.ok{background:var(--ok-t);color:var(--ok)}.pill.warn{background:var(--warn-t);color:var(--warn)}.pill.err{background:var(--err-t);color:var(--err)}.pill.mute{background:var(--hover);color:var(--mu)}

/* Tables */
.table-wrap{overflow-x:auto;border:1px solid var(--bd);border-radius:var(--r);background:var(--card)}
table{width:100%;border-collapse:collapse;font-size:.93rem}
th{text-align:left;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--mu);padding:12px 16px;border-bottom:1px solid var(--bd);white-space:nowrap}
td{padding:12px 16px;border-bottom:1px solid var(--bd);vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:var(--hover)}
td a.rowlink{color:var(--tx);font-weight:600}

/* Dashboard tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:16px}
.tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:18px;min-height:136px;padding:20px;border-radius:20px;background:var(--card);border:1px solid var(--bd);box-shadow:var(--sh);color:var(--tx);transition:transform .12s,border-color .12s}
.tile:hover{transform:translateY(-2px);border-color:var(--ac)}
.tile .glyph{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:var(--ac-t);color:var(--ac)}
.tile .glyph .ic{width:28px;height:28px}
.tile strong{font-size:1.02rem}
.tile small{display:block;color:var(--mu);font-weight:450;margin-top:2px}
.tile .badge{position:absolute;top:14px;right:14px;min-width:28px;height:28px;padding:0 8px;border-radius:14px;background:var(--err);color:#fff;font-weight:700;font-size:.82rem;display:grid;place-items:center;box-shadow:0 0 0 4px var(--card)}
/* Milestone deadlines on the Projects tile: separate coloured counts - red = due today/overdue, orange = within 5 days, green = up to 7 days */
.ms-alerts{display:flex;flex-wrap:wrap;gap:6px;margin-top:-8px}
.ms-alerts:not(:has(.ms-pill:not([hidden]))){display:none}
.ms-pill{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:3px 10px;border-radius:13px;color:#fff;font-size:.76rem;font-weight:600;line-height:1.15}
.ms-pill[hidden]{display:none}
.ms-pill b{font-weight:750;font-size:.86rem}
.ms-pill .ic{width:13px;height:13px;flex:none}
.ms-pill.is-red{background:var(--err)}.ms-pill.is-orange{background:var(--warn)}.ms-pill.is-green{background:var(--ok)}
.stat-tile .stat-num{display:block;font-size:2.2rem;font-weight:750;line-height:1;margin-bottom:6px;font-variant-numeric:tabular-nums}
.stat-num.bump{animation:statbump .5s ease}
@keyframes statbump{0%{transform:scale(1)}40%{transform:scale(1.25);color:var(--ac)}100%{transform:scale(1)}}
.live-dot{display:inline-block;width:9px;height:9px;margin-left:6px;border-radius:50%;background:var(--ok);vertical-align:middle;animation:livepulse 2s infinite}
@keyframes livepulse{0%,100%{opacity:1}50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.stat-num.bump,.live-dot{animation:none}}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.todo-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:28px 0 12px}
.todo-controls{display:flex;flex-wrap:wrap;gap:8px}.todo-controls select{min-width:170px}
.todo-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.todo-item{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;background:var(--card);border:1px solid var(--bd);border-radius:var(--r-s)}
.todo-check{flex:none;width:28px;height:28px;margin-top:1px;border-radius:50%;border:2px solid var(--bd);background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0;transition:border-color .12s,background .12s}
.todo-check:hover{border-color:var(--ok)}.todo-check:disabled{opacity:.5;cursor:wait}
.todo-item.done .todo-check{background:var(--ok);border-color:var(--ok)}
.todo-main{min-width:0;flex:1}.todo-title{font-weight:600;color:var(--tx);word-break:break-word}
.todo-item.done .todo-title{text-decoration:line-through;color:var(--mu)}
/* The whole item is one click target (the title link stretches over it) */
.todo-item.todo-click{position:relative;cursor:pointer;transition:border-color .12s}
.todo-item.todo-click:hover{border-color:var(--ac)}
.todo-item.todo-click .todo-title::after{content:"";position:absolute;inset:0;border-radius:inherit}
.todo-meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:6px}
.todo-late{color:var(--err);font-weight:650}
.todo-foot{margin:10px 2px 0}
.tiles.second .tile{min-height:104px;gap:14px;padding:16px}
.tiles.second .glyph{width:42px;height:42px;border-radius:12px}.tiles.second .glyph .ic{width:22px;height:22px}
.section-title{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--mu);margin:30px 0 12px}

/* Tabs */
.tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--bd);margin-bottom:20px}
.tab{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;color:var(--mu);font-weight:600;border-bottom:3px solid transparent;white-space:nowrap}
.tab.active{color:var(--ac-tx);border-color:var(--ac)}

/* Timeline */
.timeline{list-style:none;margin:0;padding:0;position:relative}
.timeline:before{content:"";position:absolute;left:19px;top:8px;bottom:8px;width:2px;background:var(--bd)}
.timeline li{position:relative;display:flex;gap:14px;padding:0 0 18px}
.t-ic{flex:none;width:40px;height:40px;border-radius:50%;background:var(--ac-t);color:var(--ac);display:grid;place-items:center;z-index:1;border:3px solid var(--bg)}
.t-body{flex:1;background:var(--card);border:1px solid var(--bd);border-radius:var(--r-s);padding:12px 14px;min-width:0}
.t-meta{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:.8rem;color:var(--mu);margin-bottom:4px;align-items:center}
.t-body p{margin:0;white-space:pre-wrap;word-wrap:break-word}

/* Modal + toast */
.modal{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;padding:16px;background:#0a0b1a88;backdrop-filter:blur(3px)}
.modal.open{display:flex}
.modal-box{width:100%;max-width:520px;max-height:92vh;overflow:auto;background:var(--card);border-radius:20px;padding:22px;box-shadow:0 30px 80px -20px #000a}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--tx);color:var(--bg);padding:12px 18px;border-radius:12px;font-weight:600;transition:.2s;z-index:80}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast.err{background:var(--err);color:#fff}

/* Calendar */
.cal-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.cal-title{font-size:1.2rem;font-weight:700;flex:1}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cal-dow{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--mu);text-align:center;padding:6px 0}
.cal-day{min-height:96px;padding:6px;border-radius:12px;background:var(--card);border:1px solid var(--bd);text-align:left;cursor:pointer;font:inherit;color:var(--tx);display:flex;flex-direction:column;gap:3px;overflow:hidden}
.cal-day:hover{border-color:var(--ac)}
.cal-day.other{opacity:.45}
.cal-day.today .num{background:var(--ac);color:#fff}
.cal-day.sel{outline:2px solid var(--ac)}
.cal-day .num{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:.82rem;font-weight:650}
.cal-ev.cal-away{background:var(--warn-t);color:var(--warn)}
.cal-day .dots i.away{background:var(--warn)}
.ag-away{border-left:4px solid var(--warn);cursor:default}.ag-away[data-away]{cursor:pointer}
.prof-pane[hidden],.btn[hidden]{display:none}
.prof-tabs .tab{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;font:inherit;font-weight:600;cursor:pointer}
.prof-tabs .tab.active{border-bottom-color:var(--ac)}
.away-row{display:flex;gap:8px;align-items:center;padding:10px 12px;margin-bottom:8px;background:var(--card);border:1px solid var(--bd);border-radius:var(--r-s)}
.cal-ev{font-size:.74rem;padding:2px 6px;border-radius:6px;background:var(--ac-t);color:var(--ac-tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;font-weight:600}
.cal-more{font-size:.72rem;color:var(--mu)}
.agenda{margin-top:18px;display:grid;gap:10px}
.ag-item{display:flex;gap:12px;align-items:center;padding:12px 14px;background:var(--card);border:1px solid var(--bd);border-radius:var(--r-s);cursor:pointer;min-height:56px}
.ag-time{font-weight:700;font-size:.85rem;min-width:84px;color:var(--ac-tx)}

/* Kanban */
.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,1fr);gap:14px;align-items:start;overflow-x:auto;padding-bottom:12px}
.col{background:color-mix(in srgb,var(--hover) 70%,transparent);border:1px solid var(--bd);border-radius:var(--r);padding:12px;min-height:160px}
.col-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 4px 10px;font-weight:700;font-size:.9rem;cursor:default}
.col-head .count{font-weight:600;color:var(--mu);font-size:.8rem}
.col-body{display:grid;gap:10px;min-height:60px}
.col.over{outline:2px dashed var(--ac)}
.kcard{background:var(--card);border:1px solid var(--bd);border-radius:var(--r-s);padding:12px 14px;box-shadow:var(--sh);cursor:grab;touch-action:pan-y;user-select:none}
.kcard.dragging{opacity:.4}
.kcard h3{font-size:.95rem;margin-bottom:4px}
.kcard .k-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.82rem;color:var(--mu)}
.kcard .k-actions{display:flex;gap:6px;margin-top:10px;align-items:center}
.kcard select{min-height:44px}
.mobile-only{display:none}

/* Auth */
.auth-bg{min-height:100vh;display:grid;place-items:center;padding:24px 16px;background:radial-gradient(900px 520px at 8% -10%,color-mix(in srgb,var(--ac) 26%,transparent),transparent),radial-gradient(700px 480px at 100% 110%,color-mix(in srgb,var(--ac) 18%,transparent),transparent),var(--bg)}
.auth-card{width:100%;max-width:400px;background:var(--card);border:1px solid var(--bd);border-radius:24px;padding:36px 30px 30px;box-shadow:0 30px 70px -30px #2a2a6a66;text-align:center}
.auth-logo{width:84px;height:84px;border-radius:22px;object-fit:cover;display:block;margin:0 auto 18px}
.auth-logo-fallback{display:grid;place-items:center;background:var(--ac);color:#fff;font-size:2.2rem;font-weight:800}
.auth-card h1{font-size:1.4rem}.auth-card p{margin:6px 0 22px}
.auth-card form{text-align:left}
.auth-card .btn.primary{min-height:50px;margin-top:6px}
.auth-card .foot{margin-top:18px;font-size:.85rem;text-align:center}

/* Misc */
.kv{display:grid;grid-template-columns:140px 1fr;gap:8px 16px;font-size:.93rem}.kv dt{color:var(--mu)}.kv dd{margin:0;word-break:break-word}
.empty{text-align:center;padding:36px 16px;color:var(--mu)}
.search{max-width:360px}
.sig-pad{width:100%;height:200px;border:2px dashed var(--bd);border-radius:var(--r-s);background:#fff;touch-action:none;display:block;cursor:crosshair}
.prose{word-wrap:break-word;overflow-wrap:anywhere}
.kb-article{max-width:760px}
.desk-only{display:flex}

/* Tablet/mobile */
@media (max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"top" "main"}
  .nav{position:fixed;left:0;right:0;bottom:0;top:auto;height:var(--bar-h);padding:6px 6px calc(6px + env(safe-area-inset-bottom));flex-direction:row;justify-content:flex-start;border-right:0;border-top:1px solid var(--bd);z-index:30;gap:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scroll-padding:0 6px;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  /* Swipeable bar: 5 icons plus a peek of the next one show the menu scrolls; the rest follow after Tickets. */
  .nav-item{flex:0 0 18.2%;flex-direction:column;justify-content:center;gap:2px;padding:0;font-size:.68rem;min-width:56px;border-radius:10px;scroll-snap-align:start;white-space:nowrap}
  .nav-item span{display:block;max-width:100%;padding:0 3px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;text-align:center}
  .nav-item .ic{width:24px;height:24px}
  .nav-item.desk-only{display:flex;order:1}
  .nav-brand{display:none}.topbar-brand{display:flex}
  .nav-item .dot{position:absolute;top:2px;right:calc(50% - 22px);margin:0;min-width:18px;height:18px;font-size:.65rem;padding:0 4px}
  .main{padding:20px 16px calc(var(--bar-h) + 36px + env(safe-area-inset-bottom))}
  .topbar{padding:0 16px}.who{display:none}.who.who-btn{display:inline-flex;padding:0;width:44px;justify-content:center}.who-btn .who-name{display:none}
  .grid2,.grid3{grid-template-columns:1fr}
  .kv{grid-template-columns:1fr;gap:2px}.kv dd{margin-bottom:10px}
  .toast{bottom:calc(var(--bar-h) + 24px)}
  .cal-day{min-height:58px;align-items:center}
  .cal-ev{display:none}
  .cal-day .dots{display:flex;gap:3px;flex-wrap:wrap;justify-content:center}
  .cal-day .dots i{width:6px;height:6px;border-radius:50%;background:var(--ac)}
  /* kanban: vertical, collapsible, swipeable lists */
  .board{display:block;overflow:visible}
  .col{margin-bottom:12px}
  .kcard{cursor:default;touch-action:pan-y}
  .mobile-only{display:block}
  .tiles{grid-template-columns:repeat(2,1fr);gap:12px}
  .tile{min-height:128px;padding:16px}
  .table-wrap table.stack thead{display:none}
  .table-wrap table.stack tr{display:block;padding:10px 14px;border-bottom:1px solid var(--bd)}
  .table-wrap table.stack td{display:flex;justify-content:space-between;gap:12px;border:0;padding:4px 0}
  .table-wrap table.stack td:before{content:attr(data-l);color:var(--mu);font-size:.8rem}
}
@media (min-width:901px){.cal-day .dots{display:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* Announcements */
.announcement{margin-bottom:14px}
.announcement .ann-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.announcement .glyph{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--ac-t);color:var(--ac)}
.announcement .glyph .ic{width:22px;height:22px}
.announcement h3{margin:0;font-size:1.05rem}
.announcement p{margin:0;line-height:1.55}

/* Ticket trail extras */
.t-file{display:inline-flex;align-items:center;gap:8px;margin:8px 8px 0 0;padding:8px 12px;border:1px solid var(--bd);border-radius:var(--r-s);background:var(--hover);color:var(--ac-tx);font-weight:600;font-size:.9rem}
.t-file .ic{flex:none}
.timeline li.t-sys .t-body{background:transparent;border-style:dashed;color:var(--mu);font-size:.9rem}

/* Reports */
.report-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-auto-rows:minmax(340px,auto);gap:16px;align-items:stretch}
.report-grid>.report-card{display:flex;flex-direction:column;margin:0;min-width:0}
.report-card .report-cols{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;align-items:start;margin-bottom:14px}
.report-card .report-cols>*{min-width:0}
.report-card .check{min-height:34px}
.report-card .type-field{margin-bottom:0}
.report-card .grid2{gap:0 10px}.report-card .grid2>*{min-width:0}.report-card .grid2 input{min-width:0;width:100%;padding-left:10px;padding-right:8px}
.report-card.wide{grid-column:span 2}
.report-card h2{font-size:1.05rem;margin-bottom:4px}
.art-list{max-height:260px;overflow:auto;border:1px solid var(--bd);border-radius:12px;padding:6px 12px}
.art-cat{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--mu);margin:10px 0 2px}
@media (max-width:720px){.report-card.wide{grid-column:auto}.report-card .report-cols{grid-template-columns:1fr}}

/* Knowledge Base */
.kb-cat{margin-bottom:16px}
.kb-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.kb-head h2{margin:0;font-size:1.15rem}.kb-head h3{margin:0;font-size:1rem}
.kb-aud{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.kb-tools{gap:6px}
.kb-sub{margin:16px 0 0 14px;padding:14px 0 0 14px;border-left:3px solid var(--bd)}
.kb-list{list-style:none;margin:10px 0 0;padding:0}
.kb-list li{display:flex;align-items:center;gap:10px;min-height:48px;border-top:1px solid var(--bd);scroll-margin-top:80px}
.kb-list li:first-child{border-top:0}
.kb-none{margin:10px 0 0}
.kb-move{display:inline-flex;gap:2px}
.kb-move form,.inl{display:inline;margin:0}
.icon-btn.sm{width:36px;height:36px}
.icon-btn:disabled{opacity:.3;cursor:default;background:transparent;color:var(--mu)}
.grow{flex:1;min-width:0}
a.icon-btn{text-decoration:none}
.kb-subtitle{font-size:1rem;margin:20px 0 -6px 4px;color:var(--tx)}

/* Task status selects: To Do red, In Progress orange, Completed green */
select.st-select{font-weight:650;border-color:transparent}
select.st-select.err{background-color:var(--err-t);color:var(--err)}
select.st-select.warn{background-color:var(--warn-t);color:var(--warn)}
select.st-select.ok{background-color:var(--ok-t);color:var(--ok)}
select.st-select option{background:var(--card);color:var(--tx)}

/* Dashboard: main column + right-hand column */
.dash{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:start}
.dash-main{min-width:0}
.dash-side{display:grid;gap:20px;min-width:0}
.dash-card{padding:18px}
.dash-title{margin:0;font-size:1.1rem}.dash-title a{color:var(--tx)}.dash-title a:hover{color:var(--ac-tx)}
.dash-card .todo-head{margin:0 0 12px}
.dash-card .todo-controls{width:100%}.dash-card .todo-controls select{flex:1;min-width:0}
.dash-card .ag-item{cursor:pointer}
.renew-card{margin-top:30px;padding:18px}
.renew-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.renew-list{list-style:none;margin:12px 0 0;padding:0}
.renew-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px 14px;padding:12px 0;border-top:1px solid var(--bd)}
.renew-info{min-width:0}.renew-info .rowlink{overflow-wrap:anywhere}
.renew-act form{margin:0}
@media (max-width:700px){.renew-item{grid-template-columns:1fr auto}.renew-act{grid-column:1 / -1}.renew-act .btn{width:100%;justify-content:center}}
.dash-logo{margin:48px 0 8px;text-align:left}
.dash-logo img{display:block;height:auto;width:160px;max-width:100%;opacity:1}
.dash-logo-mobile{display:none}
.brand-logo{display:block;height:auto;width:200px;max-width:100%;margin:0 0 2px}
@media (max-width:1180px){.dash{grid-template-columns:1fr}}

/* Mobile fit: nothing may push the page wider than the screen */
@media (max-width:900px){
  html,body{max-width:100%;overflow-x:hidden}
  .main{overflow-wrap:anywhere}
  .page-head{margin-bottom:14px}
  .page-head h1{font-size:1.4rem}
  .page-head .row{width:100%;gap:8px}
  .page-head .row .btn{flex:1 1 auto;padding:0 12px}
  /* status tabs wrap into chips instead of scrolling off-screen */
  .tabs{flex-wrap:wrap;overflow:visible;border-bottom:0;gap:6px;margin-bottom:14px}
  .tab,.prof-tabs .tab{min-height:38px;padding:0 14px;font-size:.88rem;border:1px solid var(--bd);border-radius:19px;background:var(--card)}
  .prof-tabs .tab.active{border-color:var(--ac)}
  .tab.active{background:var(--ac-t);border-color:var(--ac)}
  /* tickets / tables: compact stacked rows */
  .table-wrap{overflow-x:visible}
  .table-wrap table.stack td{min-width:0;text-align:right;overflow-wrap:anywhere;padding:3px 0;font-size:.9rem}
  .table-wrap table.stack td:before{flex:none;text-align:left}
  .table-wrap table.stack td[data-l="Subject"]{display:block;text-align:left;font-size:1rem;padding:0 0 6px}
  .table-wrap table.stack td[data-l="Subject"]:before{display:none}
  /* contacts list: left-justify every field */
  .table-wrap table.contacts-table td{justify-content:flex-start;text-align:left;align-items:baseline}
  .table-wrap table.contacts-table td:before{flex:0 0 84px}
  .table-wrap table.contacts-table td[data-l="Name"]{display:block;font-size:1rem;padding:0 0 6px}
  .table-wrap table.contacts-table td[data-l="Name"]:before{display:none}
  .table-wrap table.contacts-table td.right{text-align:left;justify-content:flex-start;padding-top:8px}
  /* dashboard: logo moves below the To do list on mobile */
  .dash-logo-desktop{display:none}
  .dash-logo-mobile{display:block;margin:8px 0}
  /* pipeline */
  .desk-hint{display:none}
  .board{max-width:100%}
  .col{padding:10px;min-height:0}
  .col-body{min-width:0}
  .kcard{padding:12px}
  .kcard h3,.kcard .k-meta{overflow-wrap:anywhere}
  .kcard .k-actions .move-select{min-width:0;width:100%}
}

/* Mail templates */
.ph-group{display:flex;flex-wrap:wrap;gap:6px}
.ph-chip{border:0;cursor:pointer;height:32px;font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:600}
.ph-chip:hover{background:var(--ac);color:#fff}

/* Global search */
.gsearch{position:relative;flex:1;max-width:520px;margin:0 16px 0 0}
.gsearch input[type=search]{min-height:42px;padding:8px 40px 8px 40px;border-radius:21px;background:var(--card)}
.gsearch input[type=search]::-webkit-search-cancel-button{display:none}
.gs-ic{position:absolute;left:14px;top:0;height:42px;display:flex;align-items:center;color:var(--mu);pointer-events:none}
.gs-key{position:absolute;right:12px;top:9px;min-width:24px;height:24px;display:grid;place-items:center;border:1px solid var(--bd);border-radius:7px;background:var(--bg);color:var(--mu);font:600 .75rem system-ui;pointer-events:none}
.gsearch.has-text .gs-key,.gsearch:focus-within .gs-key{display:none}
.gs-panel{position:absolute;left:0;right:0;top:calc(100% + 8px);max-height:min(72vh,560px);overflow:auto;background:var(--card);border:1px solid var(--bd);border-radius:var(--r);box-shadow:0 24px 60px -20px #1b1c2e55;padding:6px;z-index:60}
.gs-panel[hidden]{display:none}
.gs-head{display:flex;justify-content:space-between;align-items:center;padding:10px 10px 4px;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--mu);font-weight:650}
.gs-head a{text-transform:none;letter-spacing:0;font-weight:600;font-size:.8rem}
.gs-row,.sr-item{display:flex;align-items:center;gap:12px;color:var(--tx)}
.gs-row{min-height:48px;padding:8px 10px;border-radius:var(--r-s)}
.gs-row:hover,.gs-row.sel{background:var(--ac-t)}
.gs-msg{padding:18px 12px;color:var(--mu);text-align:center;font-size:.92rem}
.gs-foot{display:block;margin:4px;padding:11px;text-align:center;border-top:1px solid var(--bd);font-weight:600;border-radius:0 0 var(--r-s) var(--r-s)}
.gs-foot.sel,.gs-foot:hover{background:var(--ac-t)}
.sr-ic{flex:none;width:36px;height:36px;border-radius:10px;background:var(--ac-t);color:var(--ac);display:grid;place-items:center}
.sr-ic .ic{width:20px;height:20px}
.sr-main{min-width:0;flex:1;display:flex;flex-direction:column}
.sr-title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sr-sub,.sr-snip{font-size:.82rem;color:var(--mu);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sr-snip{color:var(--tx);opacity:.8}
.sr-list{display:flex;flex-direction:column;gap:8px}
.sr-item{padding:12px 14px;background:var(--card);border:1px solid var(--bd);border-radius:var(--r-s);min-height:56px}
.sr-item:hover{border-color:var(--ac)}
.sr-item .sr-snip{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
mark{background:#ffe58a;color:inherit;border-radius:3px;padding:0 1px}
@media (max-width:900px){
  .topbar-brand+.gsearch{margin-left:12px;margin-right:8px}
  .gsearch{max-width:none}
  .gs-key{display:none}
  .gsearch input[type=search]{padding-left:38px;padding-right:12px;font-size:16px}
  .topbar-brand img{max-width:110px}
  .gs-panel{position:fixed;left:8px;right:8px;top:70px;max-height:calc(100vh - 150px)}
}
@media (max-width:420px){.topbar-brand{display:none}.gsearch{margin:0 8px 0 0}}

/* Activity log */
.act-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0 14px}
.act-filters .field{margin-bottom:12px}
.act-detail{white-space:pre-line;font-size:.85rem;color:var(--mu);min-width:200px;max-width:460px;word-break:break-word}
.act-table td{vertical-align:top}
@media (max-width:900px){.act-detail{max-width:none;display:block!important}.act-grid{grid-template-columns:1fr 1fr}.act-grid .field:nth-child(-n+2){grid-column:1/-1}}

/* Project milestones */
.ms-summary{margin-top:6px}
.ms-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.ms-row .ms-done{flex:0 0 auto;width:20px;height:20px;min-height:0;margin:0}
.ms-row .ms-title{flex:1 1 auto;min-width:0}
.ms-row .ms-date{flex:0 0 auto;width:auto}
.ms-row.is-done .ms-title{text-decoration:line-through;opacity:.7}
@media (max-width:600px){.ms-row{flex-wrap:wrap}.ms-row .ms-title{flex:1 1 calc(100% - 80px)}.ms-row .ms-date{flex:1 1 auto}}

/* Roles: view-only pages */
.is-ro main form[method="post"] button:not([type="button"]),.is-ro main .ro-hide,.is-ro #add-card,.is-ro .k-actions .edit-card,.is-ro .k-actions .move-select,.is-ro .start-project{display:none!important}
.is-ro main input:disabled,.is-ro main textarea:disabled,.is-ro main select:disabled{opacity:1;color:var(--tx);cursor:default}
.role-matrix{width:100%;border-collapse:collapse}
.role-matrix th,.role-matrix td{padding:10px 8px;border-bottom:1px solid var(--bd);text-align:left;vertical-align:top}
.role-matrix th.c,.role-matrix td.c{text-align:center;width:72px}
.role-matrix td small{display:block;color:var(--mu);font-weight:400}
.role-matrix input[type=radio]{width:20px;height:20px;min-height:0;margin:0}
.role-chip{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--ac-t);color:var(--ac-tx);font-size:.8rem;font-weight:600}
.role-list{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));margin-bottom:22px}
.role-card{display:flex;flex-direction:column;gap:6px}
.role-card h3{margin:0}
@media (max-width:700px){.role-matrix th.c,.role-matrix td.c{width:54px}}

/* Calendar: view switcher, week view */
.cal-modes{display:flex;gap:6px;margin-bottom:12px}
.cal-ev[data-ev]{cursor:pointer}.cal-ev[data-ev]:hover{filter:brightness(.95);text-decoration:none}
.cal-day{cursor:pointer}
.cal-grid.week .cal-day{min-height:220px}
.cal-grid.week .cal-ev{display:block}
.cal-grid.week .wk-dow{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--mu)}
.cal-grid.week .dots{display:none!important}
@media (max-width:900px){
  .cal-grid.week{grid-template-columns:1fr}
  .cal-grid.week .cal-day{min-height:0;flex-direction:row;flex-wrap:wrap;align-items:center}
  .cal-grid.week .cal-ev{width:auto;max-width:100%}
}

/* Entries that belong to another user (shared with you) */
:root{--oth:#a8309a;--oth-t:#f9e6f6}
.pill.other{background:var(--oth-t);color:var(--oth)}
.cal-ev.cal-other{background:var(--oth-t);color:var(--oth)}
.cal-day .dots i.other{background:var(--oth)}
.ag-item.ag-other{border-left:4px solid var(--oth)}
.ag-item.ag-other .ag-time{color:var(--oth)}
.todo-item.todo-other{border-left:4px solid var(--oth);background:var(--oth-t)}
.todo-item.todo-other .todo-title{color:var(--oth)}
tr.row-other td{background:var(--oth-t)}
tr.row-other td:first-child{box-shadow:inset 4px 0 0 var(--oth)}

/* Milestones: assignee picker and coloured chips on project cards */
.ms-row .ms-who{flex:0 0 auto;width:auto;max-width:150px}
.ms-chip{margin-top:6px;padding:7px 10px;border-radius:10px;font-size:.82rem;line-height:1.3}
.ms-chip .ms-chip-title{display:block;font-weight:700}
.ms-chip .ms-chip-meta{display:block;font-size:.75rem;opacity:.9}
/* Same colours as the dashboard: red = due today/overdue, orange = within 5 days, green = up to 7 days; grey = complete or further away */
.ms-chip.is-red{background:var(--err-t);color:var(--err);border:1px solid var(--err)}
.ms-chip.is-orange{background:var(--warn-t);color:var(--warn);border:1px solid var(--warn)}
.ms-chip.is-green{background:var(--ok-t);color:var(--ok);border:1px solid var(--ok)}
.ms-chip.is-open,.ms-chip.is-done{background:var(--hover);color:var(--mu);border:1px solid var(--bd)}
.ms-chip.is-done .ms-chip-title{text-decoration:line-through}
@media (max-width:600px){.ms-row .ms-who{flex:1 1 100%;max-width:none}}

/* In-app confirmation dialog */
.confirm-box{max-width:420px}
.confirm-title{margin:0 0 8px;font-size:1.15rem}
.confirm-msg{margin:0 0 18px;color:var(--mu);line-height:1.5}
.confirm-actions{justify-content:flex-end;gap:8px}

/* Knowledge Base rich text: shared by the editor and the article page */
.kb-body{line-height:1.65}
.kb-body>:first-child{margin-top:0}
.kb-body h1{font-size:1.9rem;margin:1.2em 0 .5em}.kb-body h2{font-size:1.5rem;margin:1.2em 0 .5em}.kb-body h3{font-size:1.2rem;margin:1.1em 0 .4em}.kb-body h4{font-size:1.05rem;margin:1em 0 .4em}
.kb-body p{margin:0 0 .9em}
.kb-body ul,.kb-body ol{margin:0 0 .9em;padding-left:1.5em}
.kb-body a{text-decoration:underline}
.kb-body blockquote{margin:0 0 .9em;padding:6px 16px;border-left:4px solid var(--ac);background:var(--ac-t);border-radius:0 8px 8px 0}
.kb-body pre{background:var(--hover);padding:12px;border-radius:10px;overflow:auto}
.kb-body hr{border:0;border-top:1px solid var(--bd);margin:1.4em 0}
.kb-body img{max-width:100%;height:auto;border-radius:8px}
.kb-body table.kb-table{width:100%;border-collapse:collapse;margin:0 0 1em;display:block;overflow-x:auto}
.kb-body table.kb-table th,.kb-body table.kb-table td{border:1px solid var(--bd);padding:8px 12px;vertical-align:top;text-align:left;min-width:60px}
.kb-body table.kb-table th{background:var(--hover);font-weight:700}
.kb-body figure.kb-chart{margin:0 0 1em;padding:12px;border:1px solid var(--bd);border-radius:12px;background:#fff;max-width:640px}
.kb-body figure.kb-chart svg{display:block;width:100%;height:auto}
.kb-body .kb-embed{margin:0 0 1em;max-width:100%}
.kb-body .kb-frame{position:relative;aspect-ratio:16/9;max-width:720px}
.kb-body .kb-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:12px}
.kb-body .kb-video video{display:block;max-width:100%;border-radius:12px;background:#000}
.kb-body .kb-audio audio{display:block;width:100%;max-width:520px}

/* Editor */
.kbe{border:1px solid var(--bd);border-radius:var(--r-s);background:var(--card)}
.kbe-bar{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;padding:8px;border-bottom:1px solid var(--bd);background:var(--bg);border-radius:var(--r-s) var(--r-s) 0 0}
.kbe-tbar{background:var(--ac-t);border-radius:0}
.kbe-grp{display:inline-flex;flex-wrap:wrap;gap:4px;align-items:center}
.kbe-lbl{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--mu);padding:0 4px}
.kbe-btn{min-width:34px;height:34px;padding:0 9px;border:1px solid var(--bd);border-radius:8px;background:var(--card);color:var(--tx);font:600 .85rem inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;position:relative}
.kbe-btn:hover,.kbe-btn.on{background:var(--hover);border-color:var(--ac)}
.kbe-col input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;border:0;min-height:0}
.kbe-sel{width:auto;min-height:34px;height:34px;padding:0 8px;border-radius:8px;font-size:.85rem}
.kbe-body{min-height:320px;max-height:70vh;overflow:auto;padding:16px 18px;outline:none}
.kbe-body:focus{box-shadow:inset 0 0 0 2px var(--ac-t)}
.kbe-body table.kb-table th,.kbe-body table.kb-table td{min-height:1.5em}
.kbe-body .kb-embed iframe,.kbe-body .kb-embed video{pointer-events:none}
.kbe-body figure.kb-chart,.kbe-body .kb-embed{cursor:pointer;user-select:none}
.kbe-picked{outline:3px solid var(--ac);outline-offset:2px}
.kbe-hint{margin:0;padding:8px 12px;border-top:1px solid var(--bd)}
.kbe-back{position:fixed;inset:0;background:#1b1c2e66;display:grid;place-items:center;z-index:90;padding:16px}
.kbe-dlg{background:var(--card);border-radius:var(--r);padding:20px;width:min(480px,100%);max-height:90vh;overflow:auto;box-shadow:var(--sh)}
.kbe-dlg h3{font-size:1.15rem;margin-bottom:14px}
.kbe-dlg input[type=color]{padding:2px;height:44px;width:80px}
.kbe-err{color:var(--err);min-height:1.2em;margin:0 0 6px;font-size:.9rem}

.kb-body img.kb-img-left{float:left;margin:4px 16px 8px 0}.kb-body img.kb-img-right{float:right;margin:4px 0 8px 16px}.kb-body img.kb-img-center{display:block;margin:8px auto}
.kb-body::after{content:"";display:block;clear:both}
.kbe-body img{cursor:pointer}

.brand-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.brand-row .brand-logo{margin:0}.brand-row .muted{margin:0}

/* Phones only (600px and under): two-row header. Row 1 = logo on the left, profile / settings / sign out on the right.
   Row 2 = the full-width search box. Tablets and desktop keep the single-row header. */
@media (max-width:600px){
  .topbar{flex-wrap:wrap;height:auto;align-items:center;padding:0 16px}
  .topbar-brand{display:flex;order:1;align-items:center;height:56px}
  .topbar-right{order:2;height:56px}
  .topbar-brand+.gsearch,.gsearch{order:3;flex:1 1 100%;max-width:none;width:100%;margin:0 0 10px}
  .gs-panel{position:absolute;left:0;right:0;top:calc(100% + 8px);max-height:60vh}
}

/* Notifications bell + dropdown, and the profile "Notifications" tab */
.notif{position:relative}
.notif-btn{position:relative}
.notif-badge{position:absolute;top:4px;right:3px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--err);color:#fff;font-size:.68rem;line-height:18px;text-align:center;font-weight:700;box-sizing:border-box}
.notif-badge[hidden]{display:none}
.notif-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(380px,92vw);background:var(--card);border:1px solid var(--bd);border-radius:var(--r);box-shadow:0 24px 60px -20px #1b1c2e55;z-index:60;overflow:hidden}
.notif-panel[hidden]{display:none}
.notif-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid var(--bd)}
.notif-tools{display:flex;align-items:center;gap:4px}
.notif-list{max-height:min(70vh,460px);overflow:auto}
.notif-item{display:block;padding:11px 14px;border-bottom:1px solid var(--bd);color:var(--tx);text-decoration:none}
.notif-item:last-child{border-bottom:0}
a.notif-item:hover,a.notif-item:focus-visible{background:var(--hover)}
.notif-item.unread{background:var(--ac-t);box-shadow:inset 3px 0 0 var(--ac)}
.notif-t{display:block;font-weight:600;font-size:.92rem;overflow-wrap:anywhere}
.notif-b{display:block;color:var(--mu);font-size:.82rem;margin-top:2px;white-space:pre-line;overflow-wrap:anywhere}
.notif-a{display:block;color:var(--mu);font-size:.75rem;margin-top:4px}
.notif-empty{padding:28px 14px;text-align:center;color:var(--mu)}
.nf-table{width:100%;border-collapse:collapse;margin-bottom:10px}
.nf-table th,.nf-table td{padding:10px 6px;border-bottom:1px solid var(--bd);text-align:left;vertical-align:middle}
.nf-table th{font-size:.8rem;color:var(--mu);font-weight:600}
.nf-table .nf-c{text-align:center;width:64px}
.nf-table input[type=checkbox]{width:20px;height:20px}
@media (max-width:900px){
  .notif{position:static}
  .notif-panel{position:fixed;left:8px;right:8px;top:64px;width:auto}
}
