/* ==========================================================================
   VO7 — InfluencerOS · design system
   AD VO7 : monochrome, capitales lourdes, labels très espacés, boutons noirs.
   ========================================================================== */

:root{
  --ink:#000;            --ink-2:#1a1a1a;     --ink-3:#4a4a4a;    --ink-4:#767676;
  --bg:#fff;             --surface:#f6f6f6;   --surface-2:#efefef; --surface-3:#e8e8e8;
  --line:#e2e2e2;        --line-2:#cfcfcf;
  --nav:#000;            --nav-ink:#fff;      --nav-ink-2:#8a8a8a; --nav-hover:#1c1c1c;
  --accent:#e1121a;      --accent-soft:#fdecec;
  --pos:#12a150;         --pos-soft:#e8f6ee;
  --warn:#b45309;        --warn-soft:#fdf3e3;
  --info:#1d4ed8;        --info-soft:#eaf0fe;
  --shadow:0 1px 2px rgba(0,0,0,.05), 0 8px 24px -12px rgba(0,0,0,.18);
  --shadow-lg:0 24px 64px -20px rgba(0,0,0,.35);
  --r:4px; --r-lg:8px;
  --nav-w:64px;
  --font:'Archivo',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Arial,sans-serif;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --ink:#f5f5f5;         --ink-2:#e4e4e4;     --ink-3:#a8a8a8;    --ink-4:#7c7c7c;
  --bg:#0b0b0b;          --surface:#141414;   --surface-2:#1b1b1b; --surface-3:#232323;
  --line:#272727;        --line-2:#373737;
  --nav:#000;            --nav-ink:#fff;      --nav-ink-2:#8a8a8a; --nav-hover:#1c1c1c;
  --accent-soft:#2a1012; --pos-soft:#0f2018;  --warn-soft:#241a09; --info-soft:#101a33;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.8);
  --shadow-lg:0 24px 64px -20px rgba(0,0,0,.9);
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--ink); font-family:var(--font);
  font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
svg{display:block;flex:none}
::selection{background:var(--ink);color:var(--bg)}

/* ------------------------------------------------------------ typographie */
h1,h2,h3,h4{margin:0;font-weight:800;letter-spacing:-.025em;line-height:1.08}
.display{font-size:clamp(28px,3.2vw,44px);font-weight:900;text-transform:uppercase;letter-spacing:-.035em}
.h1{font-size:26px;font-weight:900;text-transform:uppercase;letter-spacing:-.03em}
.h2{font-size:18px;font-weight:800;text-transform:uppercase;letter-spacing:-.02em}
.h3{font-size:15px;font-weight:800}
.eyebrow{
  font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.18em;
  color:var(--ink-4);
}
.mono{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.muted{color:var(--ink-4)}
.small{font-size:12px}
.tiny{font-size:11px}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ----------------------------------------------------------------- écran boot */
.boot{height:100dvh;display:grid;place-content:center;gap:22px;justify-items:center;background:var(--bg)}
.boot-logo{width:150px;height:auto;color:var(--ink)}
.boot-bar{width:140px;height:2px;background:var(--surface-3);overflow:hidden}
.boot-bar i{display:block;height:100%;width:40%;background:var(--ink);animation:slide 1.1s infinite ease-in-out}
@keyframes slide{0%{transform:translateX(-100%)}100%{transform:translateX(350%)}}

/* ------------------------------------------------------------------- shell */
.shell{display:grid;grid-template-columns:var(--nav-w) 1fr;min-height:100dvh}
.nav{
  position:fixed;inset:0 auto 0 0;width:var(--nav-w);background:var(--nav);color:var(--nav-ink);
  display:flex;flex-direction:column;align-items:center;padding:14px 0 12px;gap:4px;z-index:60;
}
.nav-logo{width:50px;height:auto;color:#fff;margin:6px 0 18px;flex:none}
.nav-items{display:flex;flex-direction:column;gap:2px;flex:1;width:100%;align-items:center}
.nav-btn{
  width:44px;height:44px;border:0;background:transparent;color:var(--nav-ink-2);
  display:grid;place-items:center;cursor:pointer;border-radius:var(--r);position:relative;
  transition:color .14s,background .14s;
}
.nav-btn:hover{color:#fff;background:var(--nav-hover)}
.nav-btn.active{color:#fff;background:var(--nav-hover)}
.nav-btn.active::before{content:"";position:absolute;left:-14px;top:12px;bottom:12px;width:3px;background:#fff}
.nav-btn svg{width:19px;height:19px}
.nav-badge{
  position:absolute;top:6px;right:6px;min-width:15px;height:15px;padding:0 4px;border-radius:99px;
  background:var(--accent);color:#fff;font-size:9px;font-weight:800;display:grid;place-items:center;
}
.nav-tip{
  position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%) translateX(-4px);
  background:var(--ink);color:var(--bg);padding:5px 9px;border-radius:var(--r);white-space:nowrap;
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
  opacity:0;pointer-events:none;transition:.14s;z-index:80;
  box-shadow:var(--shadow);
}
:root[data-theme="dark"] .nav-tip{background:#fff;color:#000}
.nav-btn:hover .nav-tip{opacity:1;transform:translateY(-50%) translateX(0)}
.nav-foot{display:flex;flex-direction:column;gap:6px;align-items:center;width:100%}
.cur-switch{display:flex;background:var(--nav-hover);border-radius:var(--r);padding:2px;gap:2px}
.cur-switch button{
  border:0;background:transparent;color:var(--nav-ink-2);font-size:10px;font-weight:800;
  padding:3px 5px;border-radius:2px;cursor:pointer;letter-spacing:.04em;
}
.cur-switch button.on{background:#fff;color:#000}
.nav-avatar{
  width:30px;height:30px;border-radius:50%;background:#fff;color:#000;display:grid;place-items:center;
  font-size:11px;font-weight:900;cursor:pointer;border:0;
}

.main{grid-column:2;min-width:0;display:flex;flex-direction:column}
.topbar{
  position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:1px solid var(--line);
  display:flex;align-items:center;gap:14px;padding:0 24px;height:60px;flex:none;
}
.topbar .h1{flex:none}
.topbar-sub{color:var(--ink-4);font-size:12px;border-left:1px solid var(--line);padding-left:14px}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.page{padding:24px;flex:1;min-width:0}
.page.flush{padding:0}

/* ------------------------------------------------------------- composants */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 15px;
  border:1px solid var(--ink);background:var(--ink);color:var(--bg);cursor:pointer;
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.11em;border-radius:var(--r);
  transition:opacity .14s,background .14s,color .14s,border-color .14s;white-space:nowrap;
}
.btn:hover{opacity:.82}
.btn:disabled{opacity:.4;cursor:not-allowed}
.btn svg{width:15px;height:15px}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line-2)}
.btn.ghost:hover{background:var(--surface);opacity:1}
.btn.quiet{background:transparent;color:var(--ink-3);border-color:transparent}
.btn.quiet:hover{background:var(--surface);color:var(--ink);opacity:1}
.btn.danger{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.sm{height:30px;padding:0 11px;font-size:10px}
.btn.xs{height:26px;padding:0 9px;font-size:10px;letter-spacing:.07em}
.btn.block{width:100%}
.btn.icon{width:36px;padding:0}
.btn.icon.sm{width:30px}

.input,.select,.textarea{
  width:100%;height:36px;padding:0 11px;background:var(--bg);color:var(--ink);
  border:1px solid var(--line-2);border-radius:var(--r);outline:0;transition:border-color .14s;
  font-size:13px;
}
.textarea{height:auto;padding:9px 11px;resize:vertical;min-height:90px;line-height:1.55}
.input:focus,.select:focus,.textarea:focus{border-color:var(--ink)}
.input::placeholder,.textarea::placeholder{color:var(--ink-4)}
.select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23767676' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 9px center;background-size:12px;padding-right:28px;cursor:pointer}
.field{display:flex;flex-direction:column;gap:6px}
.field > label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;color:var(--ink-4)}
.hint{font-size:11px;color:var(--ink-4)}

.search{position:relative}
.search svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:var(--ink-4)}
.search .input{padding-left:34px}

.card{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px}
.card.flush{padding:0;overflow:hidden}
.card-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.card-head .h2,.card-head .h3{flex:none}
.card-head .sp{margin-left:auto}

.stat{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px;min-width:0}
.stat .eyebrow{margin-bottom:8px}
.stat-v{font-size:26px;font-weight:900;letter-spacing:-.035em;line-height:1;
  font-variant-numeric:tabular-nums;white-space:nowrap}
.stat-sub{margin-top:7px;font-size:11px;color:var(--ink-4);display:flex;align-items:center;gap:5px}
.delta{font-weight:800;font-size:11px}
.delta.up{color:var(--pos)} .delta.down{color:var(--accent)}

.grid{display:grid;gap:14px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g5{grid-template-columns:repeat(5,minmax(0,1fr))}
.row{display:flex;align-items:center;gap:10px}
.row.wrap{flex-wrap:wrap}
.sp{margin-left:auto}
.stack{display:flex;flex-direction:column;gap:14px}
.stack.sm{gap:8px}

.badge{
  display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:99px;
  background:var(--surface-2);color:var(--ink-3);font-size:10px;font-weight:700;
  text-transform:uppercase;letter-spacing:.07em;white-space:nowrap;
}
.badge.pos{background:var(--pos-soft);color:var(--pos)}
.badge.neg{background:var(--accent-soft);color:var(--accent)}
.badge.warn{background:var(--warn-soft);color:var(--warn)}
.badge.info{background:var(--info-soft);color:var(--info)}
.badge.solid{background:var(--ink);color:var(--bg)}
.dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}

.avatar{
  width:32px;height:32px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:var(--ink);color:var(--bg);font-size:11px;font-weight:800;overflow:hidden;
  letter-spacing:-.02em;
}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.lg{width:56px;height:56px;font-size:18px}
.avatar.xl{width:80px;height:80px;font-size:26px}
.avatar.sm{width:24px;height:24px;font-size:9px}

.chips{display:flex;flex-wrap:wrap;gap:5px}
.chip{
  display:inline-flex;align-items:center;gap:5px;padding:2px 7px;border:1px solid var(--line-2);
  border-radius:3px;font-size:10px;font-weight:600;color:var(--ink-3);background:var(--bg);
}
.chip button{border:0;background:transparent;cursor:pointer;color:var(--ink-4);padding:0;line-height:1}
.chip.add{border-style:dashed;cursor:pointer}

/* ---------------------------------------------------------------- tableau */
.tablewrap{border:1px solid var(--line);border-radius:var(--r-lg);overflow:auto;background:var(--bg)}
table.tbl{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:13px;table-layout:fixed}
table.tbl th{
  position:sticky;top:0;z-index:2;background:var(--surface);text-align:left;
  padding:0 12px;height:38px;font-size:10px;font-weight:700;text-transform:uppercase;
  letter-spacing:.12em;color:var(--ink-4);border-bottom:1px solid var(--line);white-space:nowrap;
}
table.tbl th.sortable{cursor:pointer;user-select:none}
table.tbl th.sortable:hover{color:var(--ink)}
table.tbl th .sort{display:inline-block;margin-left:4px;opacity:.5}
table.tbl td{padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:middle;overflow:hidden}
table.tbl td > *{max-width:100%}
table.tbl tbody tr:hover{background:var(--surface)}
table.tbl tbody tr.sel{background:var(--surface-2)}
table.tbl tbody tr:last-child td{border-bottom:0}
table.tbl td.num,table.tbl th.num{text-align:right;font-variant-numeric:tabular-nums}
.cell-creator{display:flex;align-items:center;gap:9px;min-width:0}
.cell-creator .chips{flex-wrap:nowrap;overflow:hidden}
.cell-creator .nm{font-weight:700;letter-spacing:-.01em}
.inline-edit{
  border:1px solid transparent;background:transparent;border-radius:3px;padding:3px 5px;
  width:100%;font-size:12px;
}
select.inline-edit{appearance:none;cursor:pointer;text-overflow:ellipsis}
.inline-edit:hover{border-color:var(--line)}
.inline-edit:focus{border-color:var(--ink);background:var(--bg);outline:0}
.checkbox{
  appearance:none;width:15px;height:15px;border:1.5px solid var(--line-2);border-radius:3px;
  cursor:pointer;flex:none;position:relative;background:var(--bg);
}
.checkbox:checked{background:var(--ink);border-color:var(--ink)}
.checkbox:checked::after{
  content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;
  border:solid var(--bg);border-width:0 2px 2px 0;transform:rotate(45deg);
}

.pager{display:flex;align-items:center;gap:5px;justify-content:center;padding:14px 0}
.pager button{
  min-width:30px;height:30px;padding:0 8px;border:1px solid var(--line);background:var(--bg);
  color:var(--ink-3);cursor:pointer;border-radius:var(--r);font-size:12px;font-weight:600;
}
.pager button:hover:not(:disabled){border-color:var(--ink);color:var(--ink)}
.pager button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.pager button:disabled{opacity:.35;cursor:not-allowed}

.bulkbar{
  position:fixed;left:calc(var(--nav-w) + 24px);right:24px;bottom:22px;z-index:55;
  background:var(--ink);color:var(--bg);border-radius:var(--r-lg);padding:10px 14px;
  display:flex;align-items:center;gap:8px;box-shadow:var(--shadow-lg);
  animation:rise .18s ease-out;
}
@keyframes rise{from{transform:translateY(14px);opacity:0}}
.bulkbar .btn{background:transparent;border-color:rgba(255,255,255,.25);color:#fff;height:30px;font-size:10px}
.bulkbar .btn:hover{background:rgba(255,255,255,.12);opacity:1}
:root[data-theme="dark"] .bulkbar .btn{border-color:rgba(0,0,0,.25);color:#000}

/* ------------------------------------------------------------ tabs / nav */
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);overflow-x:auto}
.tabs button{
  border:0;background:transparent;padding:10px 14px;cursor:pointer;color:var(--ink-4);
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.11em;
  border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;
}
.tabs button:hover{color:var(--ink)}
.tabs button.on{color:var(--ink);border-bottom-color:var(--ink)}
.segment{display:inline-flex;border:1px solid var(--line-2);border-radius:var(--r);overflow:hidden}
.segment button{
  border:0;background:var(--bg);padding:0 12px;height:34px;cursor:pointer;color:var(--ink-4);
  font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;
  border-right:1px solid var(--line-2);
}
.segment button:last-child{border-right:0}
.segment button svg{width:15px;height:15px;margin:0 auto}
.segment button.on{background:var(--ink);color:var(--bg)}

/* ------------------------------------------------------- drawer / dialog */
.scrim{
  position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:100;
  animation:fade .16s ease-out;backdrop-filter:blur(1px);
}
@keyframes fade{from{opacity:0}}
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(620px,100vw);background:var(--bg);z-index:101;
  display:flex;flex-direction:column;box-shadow:var(--shadow-lg);animation:slidein .2s cubic-bezier(.2,.8,.2,1);
}
.drawer.wide{width:min(880px,100vw)}
@keyframes slidein{from{transform:translateX(24px);opacity:.4}}
.drawer-head{
  display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line);flex:none;
}
.drawer-body{flex:1;overflow:auto;padding:20px}
.drawer-foot{
  display:flex;align-items:center;gap:8px;padding:14px 20px;border-top:1px solid var(--line);
  background:var(--surface);flex:none;
}
.dialog{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:101;
  width:min(560px,calc(100vw - 32px));max-height:86dvh;background:var(--bg);
  border-radius:var(--r-lg);box-shadow:var(--shadow-lg);display:flex;flex-direction:column;
  animation:pop .18s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop{from{transform:translate(-50%,-46%) scale(.97);opacity:0}}
.section{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
.section:first-child{border-top:0;padding-top:0;margin-top:0}

/* ------------------------------------------------------------ misc états */
.empty{
  display:grid;place-items:center;gap:10px;padding:56px 20px;text-align:center;color:var(--ink-4);
}
.empty svg{width:34px;height:34px;opacity:.35}
.skel{background:linear-gradient(90deg,var(--surface) 25%,var(--surface-2) 50%,var(--surface) 75%);
  background-size:200% 100%;animation:sh 1.3s infinite;border-radius:var(--r)}
@keyframes sh{0%{background-position:200% 0}100%{background-position:-200% 0}}
.toasts{position:fixed;right:18px;bottom:18px;z-index:200;display:flex;flex-direction:column;gap:8px}
.toast{
  background:var(--ink);color:var(--bg);padding:11px 14px;border-radius:var(--r);
  box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:9px;max-width:380px;
  animation:rise .18s ease-out;font-size:13px;
}
.toast.err{background:var(--accent);color:#fff}
.toast.ok{background:var(--pos);color:#fff}
.toast button{margin-left:auto;border:0;background:transparent;color:inherit;cursor:pointer;opacity:.7}

/* ---------------------------------------------------------------- kanban */
.kanban{display:flex;gap:12px;overflow-x:auto;padding:4px 0 20px;align-items:flex-start}
.kcol{
  width:264px;flex:none;background:var(--surface);border-radius:var(--r-lg);
  border:1px solid var(--line);display:flex;flex-direction:column;max-height:calc(100dvh - 150px);
}
.kcol.over{border-color:var(--ink);background:var(--surface-2)}
.kcol-head{display:flex;align-items:center;gap:7px;padding:11px 12px;border-bottom:1px solid var(--line)}
.kcol-head .n{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.kcol-head .c{margin-left:auto;font-size:11px;color:var(--ink-4);font-weight:700}
.kcol-body{padding:8px;display:flex;flex-direction:column;gap:7px;overflow:auto;min-height:60px}
.kcard{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:10px;
  cursor:grab;transition:box-shadow .14s,border-color .14s;
}
.kcard:hover{border-color:var(--line-2);box-shadow:var(--shadow)}
.kcard.drag{opacity:.4}

/* ----------------------------------------------------------------- inbox */
.inbox{display:grid;grid-template-columns:330px 1fr;height:calc(100dvh - 60px)}
.inbox-list{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}
.inbox-filters{padding:10px 12px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.inbox-threads{flex:1;overflow:auto}
.thread{
  padding:12px 14px;border-bottom:1px solid var(--line);cursor:pointer;display:flex;gap:10px;
}
.thread:hover{background:var(--surface)}
.thread.on{background:var(--surface-2)}
.thread.unread .sj{font-weight:800}
.thread .meta{min-width:0;flex:1}
.inbox-convo{display:flex;flex-direction:column;min-width:0}
.convo-head{padding:14px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:11px;flex:none}
.convo-body{flex:1;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:12px;background:var(--surface)}
.bubble{max-width:74%;padding:11px 14px;border-radius:var(--r-lg);font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-word}
.bubble.out{align-self:flex-end;background:var(--ink);color:var(--bg);border-bottom-right-radius:2px}
.bubble.in{align-self:flex-start;background:var(--bg);border:1px solid var(--line);border-bottom-left-radius:2px}
.bubble .tm{font-size:10px;opacity:.6;margin-top:6px}
.composer{border-top:1px solid var(--line);padding:12px 16px;display:flex;flex-direction:column;gap:8px;flex:none;background:var(--bg)}
.rtb{display:flex;gap:2px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.rtb button{width:26px;height:26px;border:0;background:transparent;color:var(--ink-4);cursor:pointer;border-radius:3px}
.rtb button:hover{background:var(--surface);color:var(--ink)}

/* --------------------------------------------------------------- charts */
.bars{display:flex;align-items:flex-end;gap:3px;height:150px}
.bars .b{flex:1;background:var(--ink);border-radius:2px 2px 0 0;min-height:2px;position:relative;transition:opacity .14s}
.bars .b:hover{opacity:.7}
.bars .b.alt{background:var(--line-2)}
.axis{display:flex;gap:3px;margin-top:6px}
.axis span{flex:1;text-align:center;font-size:9px;color:var(--ink-4);overflow:hidden;white-space:nowrap}
.sparkline{width:100%;height:46px}
.hbar{height:6px;background:var(--surface-2);border-radius:99px;overflow:hidden}
.hbar i{display:block;height:100%;background:var(--ink);border-radius:99px}
.gauge{width:170px;height:170px}
.gauge circle{fill:none;stroke-linecap:round}
.donut{width:150px;height:150px;transform:rotate(-90deg)}

/* --------------------------------------------------------------- palette */
.cmd{
  position:fixed;left:50%;top:14vh;transform:translateX(-50%);z-index:101;width:min(560px,calc(100vw - 32px));
  background:var(--bg);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);overflow:hidden;
  animation:pop .16s ease-out;
}
.cmd input{width:100%;height:50px;border:0;border-bottom:1px solid var(--line);padding:0 16px;outline:0;font-size:15px;background:transparent}
.cmd-list{max-height:52vh;overflow:auto;padding:6px}
.cmd-item{
  display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:var(--r);cursor:pointer;font-size:13px;
}
.cmd-item.on{background:var(--surface-2)}
.cmd-item svg{width:15px;height:15px;color:var(--ink-4)}
.cmd-item .k{margin-left:auto;font-size:10px;color:var(--ink-4);text-transform:uppercase;letter-spacing:.1em}

/* ------------------------------------------------------------------ auth */
.auth{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}
.auth-art{
  background:#000;color:#fff;padding:46px;display:flex;flex-direction:column;justify-content:space-between;
  background-image:radial-gradient(70% 60% at 30% 10%,#1e1e1e 0,#000 70%);
}
.auth-art .display{color:#fff}
.auth-form{display:grid;place-content:center;padding:32px;width:100%}
.auth-form .box{width:min(380px,100%)}
@media (max-width:860px){.auth{grid-template-columns:1fr}.auth-art{display:none}}

/* ---------------------------------------------------------------- portal */
.portal{max-width:1120px;margin:0 auto;padding:28px 20px 60px}
.portal-head{
  background:#000;color:#fff;border-radius:var(--r-lg);padding:26px 28px;margin-bottom:20px;
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
}
.portal-head .avatar{background:#fff;color:#000}
.copyable{
  display:flex;align-items:center;gap:8px;border:1px dashed var(--line-2);border-radius:var(--r);
  padding:9px 11px;background:var(--surface);font-size:12px;
}
.copyable code{font-family:ui-monospace,Menlo,monospace;font-weight:700;letter-spacing:.04em;flex:1;overflow:hidden;text-overflow:ellipsis}
.copyable svg{width:14px;height:14px}
button.copyable:hover{border-color:var(--ink)}
.chip svg,.badge svg{width:12px;height:12px}

/* ------------------------------------------------------------ responsive */
.mobile-tabs{display:none}
@media (max-width:900px){
  .shell{grid-template-columns:1fr}
  .nav{display:none}
  .main{grid-column:1}
  .page{padding:16px 14px 86px}
  .topbar{padding:0 14px;gap:10px}
  .topbar-sub{display:none}
  .g4,.g5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat{padding:13px}
  .stat-v{font-size:19px}
  .portal-head{flex-direction:column;align-items:flex-start;text-align:left}
  .portal-head > div:last-child{text-align:left!important}
  .portal-head .display{font-size:30px!important}
  .g3{grid-template-columns:1fr}
  .g2{grid-template-columns:1fr}
  .inbox{grid-template-columns:1fr}
  .inbox-list.hide-m{display:none}
  .inbox-convo.hide-m{display:none}
  .convo-head [data-backm]{display:inline-flex!important}
  .bulkbar{left:12px;right:12px;bottom:76px;overflow-x:auto}
  .mobile-tabs{
    display:flex;position:fixed;left:0;right:0;bottom:0;height:60px;background:var(--nav);
    z-index:60;padding-bottom:env(safe-area-inset-bottom);
  }
  .mobile-tabs button{
    flex:1;border:0;background:transparent;color:var(--nav-ink-2);display:grid;place-items:center;
    gap:3px;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;cursor:pointer;
  }
  .mobile-tabs button.active{color:#fff}
  .mobile-tabs svg{width:18px;height:18px}
  .drawer,.drawer.wide{width:100vw}
  .portal-head{padding:20px}
}
@media print{.nav,.topbar-actions,.mobile-tabs{display:none}}
