/* ────────────────────────────────────────────────────────────────────────────
   Ever Partner Console — dashboard shell.

   The layout follows the convention every operator dashboard has converged on
   (Stripe, Linear, Vercel): a fixed left rail that never reloads, a search bar
   across the top, and a content column that swaps. Staff live in this all day;
   the shape being familiar is worth more than being novel.
   ──────────────────────────────────────────────────────────────────────────── */

:root{
  --teal:#00bae5; --teal-d:#0098bd; --ink:#0e1726; --muted:#667085;
  --line:#e6e9ef; --bg:#f6f8fb; --card:#fff;
  --ok:#12b76a; --warn:#f79009; --err:#e5484d;
  --sidebar:#fff; --sidebar-line:#eceff4;
  --r:12px; --shadow:0 1px 2px rgba(16,24,40,.06);
  --shadow-r:0 10px 34px rgba(16,24,40,.12);
  --rail:248px; --top:60px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;font-size:14px;
}
a{color:var(--teal-d);text-decoration:none}
button{font-family:inherit}

/* ── Shell ───────────────────────────────────────────────────────────────── */
.shell{display:grid;grid-template-columns:var(--rail) 1fr;min-height:100vh}
.rail{
  background:var(--sidebar);border-right:1px solid var(--sidebar-line);
  display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;
}
.main{min-width:0;display:flex;flex-direction:column}

/* ── Account switcher ────────────────────────────────────────────────────── */
.acct{padding:14px 14px 10px;border-bottom:1px solid var(--sidebar-line)}
.acct-btn{
  width:100%;display:flex;align-items:center;gap:10px;padding:8px;border:none;border-radius:9px;
  background:transparent;cursor:pointer;text-align:left;transition:background .12s;
}
.acct-btn:hover{background:#f4f6f9}
.acct-badge{
  width:26px;height:26px;border-radius:7px;flex:0 0 26px;
  background:linear-gradient(135deg,var(--teal),#7bdcf0);
  color:#fff;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;
}
.acct-name{font-weight:650;font-size:14px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-caret{color:var(--muted);flex:0 0 auto}
.acct-menu{
  margin-top:6px;border:1px solid var(--line);border-radius:10px;overflow:hidden;
  box-shadow:var(--shadow-r);background:#fff;
}
.acct-menu button{
  display:block;width:100%;text-align:left;padding:10px 12px;border:none;background:#fff;
  cursor:pointer;font-size:13px;border-bottom:1px solid var(--sidebar-line);
}
.acct-menu button:last-child{border-bottom:none}
.acct-menu button:hover{background:#f4f6f9}
.acct-menu .t{font-weight:650}
.acct-menu .s{color:var(--muted);font-size:12px;margin-top:2px}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
nav{padding:10px 10px 24px;flex:1}
.nav-group{margin-top:16px}
.nav-group > .label{
  font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:var(--muted);padding:0 10px 6px;
}
.nav-item{
  display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;
  color:#344054;font-weight:550;cursor:pointer;border:none;background:transparent;
  width:100%;text-align:left;font-size:14px;transition:background .12s,color .12s;
}
.nav-item:hover{background:#f4f6f9}
.nav-item.on{background:#eef8fc;color:var(--teal-d);font-weight:650}
.nav-item.soon{opacity:.45;cursor:not-allowed}
.nav-item .ico{width:16px;height:16px;flex:0 0 16px;opacity:.75}
.nav-item.on .ico{opacity:1}
.nav-sub{margin-left:26px;border-left:1px solid var(--sidebar-line);padding-left:8px}
.nav-sub .nav-item{font-size:13px;padding:6px 10px}

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.top{
  height:var(--top);border-bottom:1px solid var(--line);background:#fff;
  display:flex;align-items:center;gap:14px;padding:0 22px;position:sticky;top:0;z-index:20;
}
.search{
  flex:1;max-width:520px;position:relative;
}
.search input{
  width:100%;padding:9px 12px 9px 34px;border:1px solid var(--line);border-radius:9px;
  background:var(--bg);font-size:14px;font-family:inherit;color:var(--ink);
}
.search input:focus{outline:none;background:#fff;border-color:var(--teal);box-shadow:0 0 0 3px rgba(0,186,229,.12)}
.search .ico{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--muted)}
.top-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.icon-btn{
  width:32px;height:32px;border-radius:8px;border:none;background:transparent;cursor:pointer;
  display:flex;align-items:center;justify-content:center;color:var(--muted);
}
.icon-btn:hover{background:#f4f6f9;color:var(--ink)}

/* ── Page ────────────────────────────────────────────────────────────────── */
.page{padding:26px 28px 80px;max-width:1180px}
.page-head{display:flex;align-items:flex-start;gap:16px;margin-bottom:18px}
.page-head h1{font-size:26px;margin:0;font-weight:700;letter-spacing:-.01em}
.page-head .sub{color:var(--muted);margin:4px 0 0;font-size:14px}
.page-actions{margin-left:auto;display:flex;gap:8px;align-items:center}

.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:18px}
.tab{
  padding:0 0 11px;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer;
  border-bottom:2px solid transparent;margin-bottom:-1px;background:none;border-top:none;
  border-left:none;border-right:none;
}
.tab:hover{color:var(--ink)}
.tab.on{color:var(--teal-d);border-bottom-color:var(--teal-d)}
.tab.soon{opacity:.45;cursor:not-allowed}

.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.chip{
  padding:7px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;
  font-size:13px;font-weight:600;color:#475467;cursor:pointer;
}
.chip:hover{background:#f9fafb}
.chip.on{border-color:var(--ink);color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}

/* ── Cards, tables ───────────────────────────────────────────────────────── */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);
      box-shadow:var(--shadow);padding:20px;margin-bottom:16px}
.card h2{font-size:15px;margin:0 0 14px;font-weight:650}
.card h3{font-size:14px;margin:0 0 6px;font-weight:650}

.table-wrap{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
table{width:100%;border-collapse:collapse;font-size:13.5px}
thead th{
  text-align:left;padding:11px 16px;color:var(--muted);font-weight:600;font-size:12px;
  background:#fbfcfd;border-bottom:1px solid var(--line);white-space:nowrap;
}
tbody td{padding:13px 16px;border-bottom:1px solid var(--sidebar-line);vertical-align:middle}
tbody tr:last-child td{border-bottom:none}
tbody tr.row{cursor:pointer}
tbody tr.row:hover{background:#f9fbfd}
.t-name{font-weight:600}
.t-muted{color:var(--muted)}
.pager{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line);
       background:#fbfcfd;color:var(--muted);font-size:13px}
.pager button{
  width:28px;height:28px;border:1px solid var(--line);background:#fff;border-radius:7px;cursor:pointer;color:#475467;
}
.pager button[disabled]{opacity:.4;cursor:not-allowed}

.empty{padding:44px 20px;text-align:center;color:var(--muted)}
.empty h3{color:var(--ink);margin-bottom:6px}

/* ── Bits ────────────────────────────────────────────────────────────────── */
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;
      padding:3px 9px;border-radius:7px;background:#eef2f6;color:#475467;white-space:nowrap}
.pill.ok{background:#e9f9f1;color:#067647}
.pill.soon{background:#fff5e6;color:#b54708}
.pill.err{background:#fdecec;color:#b42318}
.pill.info{background:#eef8fc;color:#026aa2}
.muted{color:var(--muted);font-size:13px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
code{background:#f1f4f8;padding:2px 6px;border-radius:5px;font-size:12.5px;
     font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

label{display:block;font-size:13px;font-weight:600;margin:14px 0 6px;color:#344054}
input,textarea,select{
  width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:9px;
  font-size:14px;font-family:inherit;background:#fff;color:var(--ink);
}
input:focus,textarea:focus,select:focus{
  outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(0,186,229,.14)}
textarea{min-height:100px;resize:vertical}

.btn,.btn-ghost,.btn-danger{
  cursor:pointer;border:none;border-radius:9px;font-size:14px;font-weight:600;
  padding:9px 15px;transition:background .14s,opacity .14s;
}
.btn{background:var(--ink);color:#fff}
.btn:hover:not([disabled]){background:#1d2939}
.btn-primary{background:var(--teal);color:#fff}
.btn-primary:hover:not([disabled]){background:var(--teal-d)}
.btn-ghost{background:#fff;color:#344054;border:1px solid var(--line)}
.btn-ghost:hover:not([disabled]){background:#f9fafb}
.btn-danger{background:#fff;color:#b42318;border:1px solid #fbdcdc}
.btn-danger:hover{background:#fef4f4}
.btn-sm{padding:6px 11px;font-size:13px}
button[disabled]{opacity:.5;cursor:not-allowed}

.note{background:#f0f9ff;border:1px solid #bae6fd;color:#075985;border-radius:10px;
      padding:12px 14px;font-size:13px;margin-bottom:14px}
.warn{background:#fff8eb;border:1px solid #fde3a7;color:#93370d;border-radius:10px;
      padding:12px 14px;font-size:13px;margin-bottom:14px}
.withheld{background:#fbfcfd;border:1px dashed var(--line);border-radius:10px;padding:16px;
          color:var(--muted);font-size:13px}

.stat{border:1px solid var(--line);border-radius:11px;padding:14px;background:#fff}
.stat .l{color:var(--muted);font-size:13px}
.stat .n{font-size:25px;font-weight:700;margin-top:5px;line-height:1.15;word-break:break-word}
.stat .n.off{color:var(--muted);font-size:15px;font-weight:600}
.delta{font-size:12px;font-weight:650;margin-top:5px}
.delta.up{color:#067647} .delta.down{color:#b42318}

.bar{height:8px;border-radius:5px;background:var(--teal);min-width:2px}
.barrow{display:grid;grid-template-columns:160px 1fr 84px;gap:12px;align-items:center;
        margin-bottom:8px;font-size:13px}
.spark{display:flex;align-items:flex-end;gap:3px;height:72px;margin-top:12px}
.spark div{flex:1;background:var(--teal);border-radius:3px 3px 0 0;min-height:2px}
.spark div.gap{background:repeating-linear-gradient(45deg,#eceff4,#eceff4 3px,#fff 3px,#fff 6px)}

.item{border:1px solid var(--line);border-radius:11px;padding:14px;margin-bottom:10px;background:#fff}
.thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.thumbs img{width:72px;height:72px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}

/* ── Auth ────────────────────────────────────────────────────────────────── */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 20px;
           background:linear-gradient(135deg,#f6f8fb 0%,#eef8fc 100%)}
.auth{width:100%;max-width:400px}
.auth-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:19px;
            margin-bottom:26px;justify-content:center}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:30px;
           box-shadow:0 4px 24px rgba(16,24,40,.06)}
.auth-card h1{font-size:21px;margin:0 0 22px;font-weight:700}
.auth-sep{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--muted);font-size:13px}
.auth-sep::before,.auth-sep::after{content:"";flex:1;height:1px;background:var(--line)}
.sso-btn{
  width:100%;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px;
  border:1px solid var(--line);border-radius:9px;background:#fff;font-size:14px;font-weight:600;
  color:#344054;cursor:pointer;margin-bottom:9px;
}
.sso-btn:hover:not([disabled]){background:#f9fafb}
.sso-btn[disabled]{opacity:.5;cursor:not-allowed}
.auth-foot{text-align:center;margin-top:20px;color:var(--muted);font-size:13px}
.checkline{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:13.5px;color:#344054}
.checkline input{width:auto;margin:0}

#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:26px;background:var(--ink);color:#fff;
       padding:11px 18px;border-radius:10px;font-size:14px;box-shadow:var(--shadow-r);opacity:0;
       pointer-events:none;transition:opacity .2s,bottom .2s;z-index:60;max-width:90vw}
#toast.show{opacity:1;bottom:34px}
#toast.ok{background:#046c4e} #toast.err{background:#b42318}

@media (max-width:900px){
  .shell{grid-template-columns:1fr}
  .rail{position:static;height:auto;border-right:none;border-bottom:1px solid var(--sidebar-line)}
  nav{display:flex;flex-wrap:wrap;gap:4px;padding:8px}
  .nav-group{margin-top:0;display:contents}
  .nav-group > .label{display:none}
  .nav-sub{margin:0;border:none;padding:0;display:contents}
  .page{padding:18px 16px 60px}
  .barrow{grid-template-columns:110px 1fr 70px}
}

/* ── Filter bar ──────────────────────────────────────────────────────────────
   A filter a page will have, drawn as shape rather than as a control. Dashed and
   inert, like the column headers above it: a header that does nothing reads as
   structure, whereas a solid button that does nothing reads as broken. */
.filter-bar{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.filters{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.table-actions{margin-left:auto;display:flex;gap:7px}
.filter-shape{
  display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;
  padding:5px 11px;border-radius:8px;border:1px dashed var(--line);
  color:#98a2b3;background:#fcfdfe;user-select:none;
}
.filter-note{font-size:12px;color:#98a2b3;font-style:italic;margin-left:4px}
.empty-ico{
  width:44px;height:44px;border-radius:11px;background:#f1f4f8;color:#98a2b3;
  display:flex;align-items:center;justify-content:center;margin:0 auto 14px;
}
.empty-ico svg{width:21px;height:21px}

/* Breadcrumb on a detail page, so the parent list is one click away and the
   current row is named rather than implied by the heading alone. */
.crumbs{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted);margin-bottom:10px}
.crumbs a{color:var(--teal-d);font-weight:600}
.crumbs span:last-child{color:var(--ink);font-weight:600}

/* Care organization workspaces: restrained Ever blue, dense readable work surfaces. */
:root{--teal:#007da6;--teal-d:#006b8f;--bg:#f7f9fc;--line:#e2e7ee;--muted:#637083;--rail:242px;--r:10px}
body{font-size:1rem;line-height:1.5}
.ico{width:16px;height:16px;vertical-align:middle;flex-shrink:0}
.page{max-width:1440px;width:100%;padding:30px 36px 72px}
.page-head h1{font-size:28px;font-weight:680;letter-spacing:-.035em;line-height:1.25}
.page-head .sub{font-size:15px;margin-top:7px;line-height:1.55}
.page-head{margin-bottom:24px}
.page-actions{flex-wrap:wrap}
.rail{font-size:14px;z-index:30}
.acct{padding:20px 12px 14px}
.acct-badge{width:32px;height:32px;flex-basis:32px;font-size:17px;background:#007da6;border-radius:9px}
.acct-name{font-size:14px}
.acct-menu .s{font-size:12px}
.nav-item{font-size:14px;min-height:38px;padding:8px 12px;border-radius:7px}
.nav-item.on{background:#e8f4f9;color:#006b8f}
.nav-group{margin-top:18px}
.nav-group>.label{font-size:12px;letter-spacing:.025em;text-transform:none;font-weight:650;padding:0 12px 7px}
.nav-dot{width:5px;height:5px;border-radius:50%;background:#b6c1cf;margin-left:auto}
.rail-foot{padding:16px 24px;border-top:1px solid var(--line);font-weight:750;color:#007da6}
.rail-foot span{font-weight:500;color:var(--muted);font-size:12px;margin-left:8px}
.top{height:68px;padding:0 34px;gap:10px}
.search input{background:#fff;max-width:460px;border-color:transparent}
.search input:hover{border-color:var(--line)}
.top-right{gap:6px}
.mode-switch{border:1px solid #e8d6b2;cursor:pointer;font-family:inherit}
.mobile-menu{display:none}
.workspace-eyebrow{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin-bottom:13px}
.workspace-eyebrow span{color:#a8b1bf;margin:0 2px}
.demo-strip{display:flex;gap:12px;align-items:baseline;background:#f0f5fa;border:1px solid #dce5ee;padding:10px 14px;border-radius:8px;margin-bottom:24px;font-size:13px;color:#526278}
.demo-strip strong{color:#344b61;white-space:nowrap;font-weight:650}
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r);background:#fff;margin-bottom:30px;overflow:hidden}
.summary-stat{padding:20px 22px;min-width:0;border-right:1px solid var(--line)}
.summary-stat:last-child{border:0}
.summary-stat .l{color:var(--muted);font-size:14px;font-weight:500}
.summary-stat .n{font-size:25px;line-height:1.3;letter-spacing:-.025em;font-weight:650;margin:9px 0 7px;overflow-wrap:anywhere}
.summary-stat:first-child .n{font-size:21px}
.stat-note{font-size:12px;line-height:1.5;color:var(--muted)}
.workspace-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:26px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px}
.section-heading h2{font-size:16px;line-height:1.4;margin:0;font-weight:650;letter-spacing:-.01em}
.section-heading>span{font-size:12px;color:var(--muted)}
.workspace-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:28px}
.workspace-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:10px;padding:21px;color:var(--ink);transition:border-color .15s,box-shadow .15s;min-height:196px}
.workspace-card:hover{border-color:#88b7cb;box-shadow:0 3px 14px #18324408}
.workspace-card-top{display:flex;align-items:center;justify-content:space-between}
.workspace-card-top>.ico{width:24px;height:24px;color:#007da6}
.workspace-card-top>.pill{font-size:12px;font-weight:500;background:#f4f6f9}
.workspace-card h3{font-size:16px;font-weight:650;margin:17px 0 7px;line-height:1.4}
.workspace-card p{font-size:14px;color:var(--muted);margin:0 0 17px;line-height:1.55}
.workspace-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:13px;border-top:1px solid #eef1f5;font-size:13px}
.workspace-card-foot strong{font-weight:550}
.workspace-card-foot span{font-size:20px;color:#007da6}
.workspace-card.compact{min-height:0}
.workspace-side{padding-top:36px}
.workspace-side .card{padding:20px}
.card p{line-height:1.65}
.card h2{font-size:16px}
.access-card{background:#f3f8fc;border-color:#dce9f2}
.access-card>.ico{width:23px;height:23px;color:#007da6;margin-bottom:14px}
.access-card p{font-size:14px;color:#50677d;margin:0 0 14px}
.access-card a{font-size:14px;font-weight:550}
.quick-link{display:flex;justify-content:space-between;gap:10px;padding:10px 0;font-size:14px;border-bottom:1px solid var(--line);color:#344054}
.quick-link:last-child{border:0;padding-bottom:0}
.quick-link span{color:#8d9caf}
.btn,.btn-ghost,.btn-danger{display:inline-flex;justify-content:center;align-items:center;gap:6px;line-height:1.4}
.btn{background:#087da3}
.btn:hover:not([disabled]){background:#00668b}
.btn-sm{min-height:33px}
.icon-btn{width:36px;height:36px}
.pill{font-size:12px}
.status-dot{width:5px;height:5px;border-radius:50%;background:currentColor}
.muted{font-size:14px}
.note,.warn,.withheld{font-size:14px;line-height:1.6}
.tabs{gap:24px;overflow-x:auto;white-space:nowrap;max-width:100%;scrollbar-width:thin}
.tab{flex-shrink:0;display:inline-block}
.table-wrap{overflow-x:auto}
table{font-size:14px;line-height:1.5}
thead th{font-size:12px;text-transform:none;font-weight:600;padding:12px 16px}
tbody td{padding:15px 16px}
tbody tr.row{display:table-row}
tbody tr.clickable-row{cursor:pointer}
tbody tr.clickable-row:hover{background:#f5f9fc}
.table-record{font-weight:600;color:#203b50}
.table-record:hover{color:var(--teal-d);text-decoration:underline}
.data-surface{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.data-tools{display:flex;gap:10px;align-items:center;padding:13px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.table-search{position:relative;flex:1;max-width:330px;min-width:160px}
.table-search>.ico{position:absolute;top:50%;left:10px;transform:translateY(-50%);color:#8b98a9}
.table-search input{padding:8px 12px 8px 32px;font-size:14px;border-radius:6px;line-height:1.3}
.data-tools>select{width:auto;max-width:190px;font-size:14px;padding:8px 28px 8px 10px;border-radius:6px}
.data-actions{margin-left:auto;display:flex;gap:7px}
.data-actions .btn-ghost{font-size:13px;border-radius:6px;padding:7px 11px;white-space:nowrap}
.table-scroll{overflow-x:auto}
.table-scroll table{min-width:640px}
.table-scroll thead th{padding:0}
.table-scroll th button{border:0;background:none;color:inherit;font-size:inherit;font-weight:inherit;text-align:left;cursor:pointer;padding:13px 16px;white-space:nowrap;width:100%}
.table-scroll th button:hover{background:#f0f4f8}
.column-picker{display:flex;gap:10px 20px;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid var(--line);background:#f8fafc}
.column-picker[hidden]{display:none}
.column-picker label{display:flex;gap:7px;align-items:center;margin:0;font-size:13px}
.column-picker input{width:auto;margin:0}
.pager{font-size:13px;background:#fff}
.table-context{margin-left:auto;color:#8a95a6;font-size:12px}
.empty{padding:45px 24px}
.empty p{max-width:560px;margin:8px auto 20px;font-size:14px}
.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px}
.field-list{margin:22px 0 0}
.field-list>div{display:grid;grid-template-columns:minmax(120px,1fr) 1.7fr;gap:18px;padding:12px 0;border-top:1px solid var(--line);font-size:14px}
.field-list dt{color:var(--muted)}
.field-list dd{margin:0;overflow-wrap:anywhere}
.timeline{padding:0 0 0 18px;margin:8px 0}
.timeline li{padding:8px 0 20px 12px;font-size:14px}
.timeline strong{display:block;font-weight:550}
.timeline span{font-size:13px;color:var(--muted)}
.draft-form{max-width:720px}
.draft-form label{font-size:14px;margin-top:20px}
.draft-form input,.draft-form textarea{font-size:16px}
.draft-form textarea{min-height:130px}
.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
.form-error{color:#b42318;font-size:14px}
.reports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}
.report-card{display:flex;flex-direction:column;margin:0;padding:24px}
.report-heading{display:flex;gap:10px;align-items:center}
.report-heading .ico{color:#007da6;width:20px;height:20px}
.report-heading h2{margin:0;font-size:17px}
.report-card>p{font-size:14px;color:var(--muted);min-height:44px;margin:12px 0 20px}
.report-metrics{display:flex;gap:18px;flex-wrap:wrap;min-height:88px}
.report-metrics .stat{padding:0;border:0;border-radius:0;min-width:100px}
.report-metrics .l{font-size:13px}
.report-metrics .n{font-size:25px}
.report-card>a{display:flex;justify-content:space-between;margin-top:24px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;font-weight:550}
.report-placeholder{font-size:14px;color:var(--muted);align-self:center}
:focus-visible{outline:3px solid #0085b4;outline-offset:3px}
.page:focus{outline:0}
.auth-card label{font-size:14px}
@media(min-width:1600px){.page{padding-left:44px;padding-right:44px}}
@media(max-width:1200px){
  .page{padding:26px 24px 60px}
  .workspace-layout{grid-template-columns:minmax(0,1fr)}
  .workspace-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0}
  .summary-stat{padding:17px}
  .summary-stat .n{font-size:21px}
  .top{padding:0 24px}
}
@media(max-width:900px){
  .shell{display:grid;grid-template-columns:1fr}
  .rail{display:none;position:fixed;top:68px;bottom:0;left:0;width:min(310px,86vw);height:calc(100dvh - 68px);border-right:1px solid var(--line);box-shadow:20px 0 50px #13243524;overflow:auto}
  .navigation-open .rail{display:flex}
  .rail nav{display:block;padding:10px 10px 24px}
  .rail .nav-group{display:block;margin-top:18px}
  .rail .nav-group>.label{display:block}
  .rail .nav-sub{display:block;margin-left:26px;border-left:1px solid var(--line);padding-left:8px}
  .mobile-menu{display:flex;font-size:22px}
  .top{padding:0 16px}
  .top-right>.icon-btn{display:none}
  .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .summary-stat:nth-child(2){border-right:0}
  .summary-stat:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .detail-grid{grid-template-columns:minmax(0,1fr)}
  .top-right>.btn-ghost{font-size:12px}
}
@media(max-width:600px){
  .page{padding:22px 16px 48px}
  .page-head{flex-direction:column;gap:13px}
  .page-head h1{font-size:25px}
  .page-actions{margin-left:0}
  .page-head .sub{font-size:14px}
  .top{gap:7px;padding:0 10px}
  .search{min-width:0}
  .search input{padding-left:30px;font-size:14px}
  .mode-switch{font-size:11px;padding:5px 6px}
  .top-right>.btn-ghost{padding:7px 6px}
  .workspace-cards,.reports-grid,.workspace-side{grid-template-columns:minmax(0,1fr)}
  .workspace-card{min-height:180px}
  .demo-strip{flex-direction:column;gap:4px;font-size:12px}
  .summary-stat{padding:15px}
  .summary-stat .n{font-size:21px}
  .summary-stat:first-child .n{font-size:20px}
  .summary-stat .l{font-size:13px}
  .stat-note{font-size:12px}
  .workspace-layout{gap:20px}
  .section-heading>span{font-size:12px}
  .data-tools{padding:12px;gap:8px}
  .table-search{max-width:none}
  .data-actions{width:100%;justify-content:flex-end}
  .field-list>div{grid-template-columns:1fr;gap:4px}
  .report-card{padding:20px}
  .barrow{grid-template-columns:100px 1fr 68px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.table-scroll tr[data-href]{cursor:pointer}
.table-scroll tr[data-href]:hover{background:#f5f9fc}
@media(max-width:600px){.pager{flex-wrap:wrap}.pager>span:first-child{flex-basis:100%}}
