/* ================================================================
   NORDLION — Portal & Admin Design System v5
   Deep Navy · Champagne Gold · Platinum
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  --ink:#050609; --navy:#07090F; --navy2:#0A0E1A; --navy3:#0E1224;
  --surface:#12162A; --card:#161B2E; --card2:#1C2038;
  --border:rgba(160,180,230,0.07); --border2:rgba(160,180,230,0.13);
  --gold:#C9AA6F; --gold2:#DFC48C; --gold3:#F2DAA8;
  --gold-dim:rgba(201,170,111,0.13); --gold-faint:rgba(201,170,111,0.05);
  --white:#EEF1F8; --text:rgba(238,241,248,0.65);
  --muted:rgba(238,241,248,0.38); --faint:rgba(238,241,248,0.16);
  --ghost:rgba(238,241,248,0.06);
  --green:rgba(68,200,136,0.9); --red:rgba(215,68,68,0.9); --blue:rgba(76,140,220,0.9);
  --f-display:'Cormorant Garamond',Georgia,serif;
  --f-body:'Manrope',system-ui,sans-serif;
  --sidebar:264px;
}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
html,body,*{-ms-overflow-style:none;scrollbar-width:none;}
html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{width:0;height:0;}
body{background:var(--navy);color:var(--white);font-family:var(--f-body);font-size:13.5px;font-weight:400;line-height:1.72;overflow-x:hidden;cursor:auto;letter-spacing:0.01em;}
a{text-decoration:none;color:inherit;}button{font-family:inherit;}

/* TRIANGLE CURSOR */
.nl-cursor{position:fixed;top:0;left:0;pointer-events:none;z-index:99999;will-change:transform;}
.nl-cursor__tri{position:absolute;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:13px solid var(--gold);transform:translate(-50%,-50%);transition:transform 0.15s;filter:drop-shadow(0 0 6px rgba(201,170,111,0.55));}
.nl-cursor__ring{position:absolute;width:36px;height:36px;border:1px solid rgba(201,170,111,0.38);border-radius:50%;transform:translate(-50%,-50%);transition:width 0.38s cubic-bezier(0.23,1,0.32,1),height 0.38s cubic-bezier(0.23,1,0.32,1);}
body.cur-hover .nl-cursor__tri{transform:translate(-50%,-50%) scale(1.35);}
body.cur-hover .nl-cursor__ring{width:56px;height:56px;border-color:rgba(201,170,111,0.58);}
body.cur-click .nl-cursor__ring{width:24px;height:24px;}

/* PORTAL LAYOUT */
.p-wrap{display:flex;min-height:100vh;}
.p-sidebar{width:var(--sidebar);background:linear-gradient(180deg,rgba(4,6,10,0.99),rgba(2,3,5,0.98));border-right:1px solid var(--border);box-shadow:24px 0 60px rgba(0,0,0,0.46);display:flex;flex-direction:column;position:fixed;top:0;left:0;height:100vh;z-index:100;overflow:hidden;}
.p-main{margin-left:var(--sidebar);flex:1;display:flex;flex-direction:column;min-height:100vh;}
.p-topbar{height:68px;background:rgba(10,14,26,0.86);backdrop-filter:blur(16px);border-bottom:1px solid rgba(201,170,111,0.08);padding:0 40px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50;box-shadow:0 18px 38px rgba(0,0,0,0.2);}
.p-content{padding:48px 44px;flex:1;}

/* SIDEBAR */
.p-sb-logo{padding:30px 24px 22px;border-bottom:1px solid rgba(201,170,111,0.08);display:flex;align-items:center;gap:12px;background:linear-gradient(180deg,rgba(201,170,111,0.05),rgba(201,170,111,0));}
.p-sb-logo-img{height:32px;width:auto;object-fit:contain;filter:brightness(1.08);}
.p-sb-logo-txt{font-family:var(--f-display);font-size:15px;font-weight:500;letter-spacing:0.2em;text-transform:uppercase;color:var(--white);}
.p-sb-logo-txt span{color:var(--gold);}
.p-sb-logo-sub{font-family:var(--f-display);font-size:7px;letter-spacing:0.3em;text-transform:uppercase;color:var(--muted);margin-top:2px;}
.p-sb-user{margin:16px 16px 0;padding:14px 16px;border:1px solid rgba(201,170,111,0.1);background:rgba(255,255,255,0.02);display:flex;align-items:center;gap:12px;}
.p-sb-avatar{width:36px;height:36px;border-radius:50%;background:var(--gold-dim);border:1px solid rgba(201,170,111,0.25);display:flex;align-items:center;justify-content:center;font-family:var(--f-display);font-size:15px;font-weight:500;color:var(--gold);flex-shrink:0;}
.p-sb-name{font-size:12px;font-weight:400;color:var(--white);}
.p-sb-role{font-family:var(--f-display);font-size:8px;letter-spacing:0.2em;text-transform:uppercase;color:var(--gold);}
.p-sb-nav{flex:1;min-height:0;padding:18px 12px 16px;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;}
.p-sb-nav::-webkit-scrollbar{width:0;height:0;}
.p-sb-section{font-family:var(--f-display);font-size:7px;letter-spacing:0.42em;text-transform:uppercase;color:var(--faint);padding:10px 12px 8px;}
.p-sb-link{display:flex;align-items:center;gap:12px;padding:11px 14px 11px 18px;font-size:11px;font-weight:300;color:var(--text);transition:all 0.2s;cursor:auto;border-left:2px solid transparent;border-radius:0 18px 18px 0;margin:3px 0;white-space:nowrap;}
.p-sb-link:hover{color:var(--white);background:rgba(255,255,255,0.04);}
.p-sb-link.active{color:var(--gold2);background:linear-gradient(90deg,rgba(201,170,111,0.12),rgba(201,170,111,0.03));border-left-color:var(--gold);}
.p-sb-link-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;text-align:center;flex-shrink:0;opacity:0.72;}
.p-sb-link-icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.55;stroke-linecap:square;stroke-linejoin:miter;}
.p-sb-link-label{display:block;overflow:hidden;text-overflow:ellipsis;}
.p-sb-link.active .p-sb-link-icon{opacity:1;}
.p-sb-badge{margin-left:auto;background:var(--gold);color:var(--navy);font-size:9px;font-weight:500;padding:1px 6px;border-radius:2px;}
.p-sb-footer{padding:16px;border-top:1px solid rgba(201,170,111,0.08);display:grid;gap:8px;}
.p-sb-footer a{display:block;font-family:var(--f-display);font-size:8px;font-weight:500;letter-spacing:0.16em;text-transform:uppercase;color:var(--muted);cursor:auto;padding:10px 12px;border:1px solid var(--border);background:rgba(255,255,255,0.015);transition:color 0.2s,border-color 0.2s,background 0.2s;}
.p-sb-footer .logout-button{width:100%;justify-content:center;min-height:40px;font-family:var(--f-display);font-size:10px;font-weight:700;letter-spacing:0.12em;padding:10px 12px;background:linear-gradient(180deg,rgba(223,196,140,0.98),rgba(201,170,111,0.98));border-color:var(--gold2);transition:background 0.18s ease,border-color 0.18s ease,color 0.18s ease,filter 0.18s ease,box-shadow 0.18s ease;box-shadow:none;filter:brightness(1);}
.p-sb-footer .logout-button::before{display:none;}
.p-sb-footer .logout-button:hover{border-color:rgba(230,206,156,0.9);box-shadow:none;filter:brightness(1.045) saturate(1.03);}
.p-sb-footer a:last-child{border:none;}
.p-sb-footer a:hover{color:var(--gold);border-color:rgba(201,170,111,0.24);background:rgba(201,170,111,0.06);}

/* TOPBAR */
.p-tb-title{font-family:var(--f-display);font-size:20px;font-weight:400;color:var(--white);}
.p-tb-title em{font-style:italic;color:var(--gold2);}
.p-tb-right{display:flex;align-items:center;gap:16px;}
.p-tb-badge{font-family:var(--f-display);font-size:8px;letter-spacing:0.22em;text-transform:uppercase;background:var(--gold-dim);border:1px solid rgba(201,170,111,0.25);color:var(--gold);padding:4px 12px;}
.p-tb-time{font-size:10px;color:var(--faint);}
.p-btn-out{font-family:var(--f-display);font-size:8px;letter-spacing:0.16em;text-transform:uppercase;color:var(--muted);background:none;border:1px solid var(--border);padding:7px 16px;cursor:auto;transition:all 0.2s;}
.p-btn-out:hover{color:var(--white);border-color:var(--border2);}

/* PAGE HEADER */
.p-hdr{margin-bottom:44px;}
.p-hdr-label{font-family:var(--f-display);font-size:8px;letter-spacing:0.38em;text-transform:uppercase;color:var(--gold);margin-bottom:12px;display:flex;align-items:center;gap:12px;}
.p-hdr-label::before{content:'';width:20px;height:1px;background:var(--gold);}
.p-hdr h1{font-family:var(--f-display);font-size:clamp(28px,3.5vw,48px);font-weight:300;line-height:1.05;}
.p-hdr h1 em{font-style:italic;color:var(--gold2);}
.p-hdr p{font-size:12px;color:var(--text);margin-top:10px;line-height:1.8;max-width:520px;}

/* STAT CARDS */
.p-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border);margin-bottom:32px;}
.p-stat{background:var(--card);padding:24px;position:relative;overflow:hidden;transition:background 0.25s;}
.p-stat::after{content:'';position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--gold);transform:scaleY(0);transform-origin:bottom;transition:transform 0.35s;}
.p-stat:hover{background:var(--card2);}
.p-stat:hover::after{transform:scaleY(1);}
.p-stat-icon{position:absolute;top:16px;right:16px;font-size:18px;opacity:0.18;}
.p-stat-label{font-family:var(--f-display);font-size:8px;letter-spacing:0.26em;text-transform:uppercase;color:var(--muted);margin-bottom:12px;}
.p-stat-value{font-family:var(--f-display);font-size:40px;font-weight:300;color:var(--white);line-height:1;}
.p-stat-sub{font-family:var(--f-display);font-size:8px;color:var(--faint);margin-top:8px;letter-spacing:0.1em;}

/* CARDS */
.p-card{background:var(--card);border:1px solid var(--border);margin-bottom:20px;}
.p-card-hdr{padding:16px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;}
.p-card-title{font-family:var(--f-display);font-size:18px;font-weight:400;color:var(--white);}
.p-card-body{padding:24px;}

/* TABLE */
.p-table{width:100%;border-collapse:collapse;}
.p-table th{font-family:var(--f-display);font-size:8px;letter-spacing:0.26em;text-transform:uppercase;color:var(--gold);font-weight:400;padding:13px 18px;text-align:left;border-bottom:1px solid var(--border);background:var(--navy2);white-space:nowrap;}
.p-table td{font-size:12px;color:var(--text);padding:13px 18px;border-bottom:1px solid rgba(160,180,230,0.03);vertical-align:middle;}
.p-table tr:last-child td{border:none;}
.p-table tr:hover td{background:rgba(255,255,255,0.012);color:var(--white);}
.p-td-name{color:var(--white);font-weight:400;}

/* BADGES */
.p-badge{display:inline-block;font-family:var(--f-display);font-size:8px;letter-spacing:0.14em;text-transform:uppercase;padding:3px 9px;border:1px solid;border-radius:1px;}
.p-badge--gold {color:var(--gold); border-color:rgba(201,170,111,0.3); background:var(--gold-dim);}
.p-badge--green{color:var(--green);border-color:rgba(68,200,136,0.2); background:rgba(68,200,136,0.07);}
.p-badge--red  {color:var(--red);  border-color:rgba(215,68,68,0.2);  background:rgba(215,68,68,0.07);}
.p-badge--blue {color:var(--blue); border-color:rgba(76,140,220,0.2); background:rgba(76,140,220,0.07);}
.p-badge--muted{color:var(--muted);border-color:var(--border);        background:var(--ghost);}

/* BUTTONS */
.p-btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--f-display);font-size:8px;letter-spacing:0.2em;text-transform:uppercase;padding:8px 16px;cursor:auto;border:1px solid;transition:all 0.2s;}
.p-btn{border-radius:0;transition:background 0.2s,border-color 0.2s,color 0.2s,filter 0.2s,box-shadow 0.2s;}
.p-btn--primary{color:var(--navy);background:linear-gradient(180deg,rgba(223,196,140,0.98),rgba(201,170,111,0.98));border-color:var(--gold);filter:brightness(1);}
.p-btn--primary:hover{border-color:var(--gold2);filter:brightness(1.045) saturate(1.03);}
.p-btn--outline{color:var(--gold);background:transparent;border-color:rgba(201,170,111,0.35);}
.p-btn--outline:hover{background:var(--gold-dim);}
.p-btn--ghost{color:var(--text);background:transparent;border-color:var(--border);}
.p-btn--ghost:hover{color:var(--white);border-color:var(--border2);}
.p-btn--danger{color:var(--red);background:transparent;border-color:rgba(215,68,68,0.25);}
.p-btn--danger:hover{background:rgba(215,68,68,0.07);}
.p-btn--lg{padding:12px 26px;font-size:9px;}
.p-btn:disabled{opacity:0.45;pointer-events:none;}

/* FORM */
.p-fg{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;}
.p-fl{font-family:var(--f-display);font-size:8px;letter-spacing:0.22em;text-transform:uppercase;color:var(--muted);}
.p-fc{background:var(--navy2);border:1px solid var(--border);color:var(--white);padding:11px 14px;font-family:var(--f-body);font-size:12px;font-weight:300;outline:none;width:100%;transition:border-color 0.2s,background 0.2s;cursor:auto;appearance:none;}
.p-fc:focus{border-color:rgba(201,170,111,0.5);background:var(--card);}
.p-fc::placeholder{color:var(--faint);}
textarea.p-fc{resize:none;height:100px;}
.p-fr{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.p-fe{font-family:var(--f-display);font-size:8px;color:var(--red);margin-top:3px;}

/* ALERTS */
.p-alert{padding:14px 18px;border:1px solid;margin-bottom:16px;font-size:12px;line-height:1.75;}
.p-alert strong{font-family:var(--f-display);font-size:8px;letter-spacing:0.2em;text-transform:uppercase;color:var(--gold);display:block;margin-bottom:4px;}
.p-alert--gold {background:var(--gold-dim);  border-color:rgba(201,170,111,0.25);}
.p-alert--green{background:rgba(68,200,136,0.07);border-color:rgba(68,200,136,0.2);}
.p-alert--red  {background:rgba(215,68,68,0.07); border-color:rgba(215,68,68,0.2);}

/* AUTH PAGES */
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:var(--navy);}
.auth-bg{position:absolute;inset:0;background:radial-gradient(ellipse 65% 55% at 55% 35%,rgba(201,170,111,0.07) 0%,transparent 100%),linear-gradient(168deg,#07090F 0%,#050609 55%,#090D1A 100%);}
.auth-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(201,170,111,0.02) 1px,transparent 1px),linear-gradient(90deg,rgba(201,170,111,0.02) 1px,transparent 1px);background-size:80px 80px;mask-image:radial-gradient(ellipse 60% 60% at 50% 50%,black 0%,transparent 100%);}
.auth-box{position:relative;z-index:2;width:100%;max-width:452px;padding:20px;}
.auth-logo{text-align:center;margin-bottom:40px;display:flex;flex-direction:column;align-items:center;gap:12px;}
.auth-logo-img{height:52px;width:auto;object-fit:contain;filter:brightness(1.08);}
.auth-logo-name{font-family:var(--f-display);font-size:20px;font-weight:500;letter-spacing:0.25em;text-transform:uppercase;color:var(--white);}
.auth-logo-name span{color:var(--gold);}
.auth-logo-sub{font-family:var(--f-display);font-size:8px;letter-spacing:0.36em;text-transform:uppercase;color:var(--muted);}
.auth-card{background:var(--card);border:1px solid var(--border);padding:44px;}
.auth-title{font-family:var(--f-display);font-size:32px;font-weight:300;color:var(--white);margin-bottom:6px;}
.auth-title em{font-style:italic;color:var(--gold2);}
.auth-sub{font-size:12px;color:var(--text);margin-bottom:28px;line-height:1.8;}
.auth-btn{width:100%;background:linear-gradient(180deg,rgba(223,196,140,0.98),rgba(201,170,111,0.98));border:1px solid var(--gold);color:var(--navy);padding:14px;font-family:var(--f-body);font-size:10px;font-weight:400;letter-spacing:0.16em;text-transform:uppercase;cursor:auto;transition:all 0.25s;}
.auth-btn{border-radius:0;transition:background 0.25s,border-color 0.25s,color 0.25s,filter 0.25s,box-shadow 0.25s;filter:brightness(1);}
.auth-btn:hover{border-color:var(--gold2);filter:brightness(1.045) saturate(1.03);}
.auth-btn--outline{background:transparent;color:var(--gold);border-color:rgba(201,170,111,0.35);}
.auth-btn--outline:hover{background:var(--gold-dim);}
.auth-div{display:flex;align-items:center;gap:14px;margin:20px 0;font-family:var(--f-display);font-size:8px;letter-spacing:0.28em;text-transform:uppercase;color:var(--faint);}
.auth-div::before,.auth-div::after{content:'';flex:1;height:1px;background:var(--border);}
.auth-footer{text-align:center;margin-top:16px;font-family:var(--f-display);font-size:9px;color:var(--faint);letter-spacing:0.08em;}
.auth-footer a{color:var(--gold);}
.pw-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:auto;font-family:var(--f-display);font-size:8px;color:var(--muted);letter-spacing:0.14em;text-transform:uppercase;transition:color 0.2s;}
.pw-toggle:hover{color:var(--gold);}

/* REVEAL */
.nl-reveal{opacity:0;transform:translateY(20px);transition:opacity 0.7s ease,transform 0.7s ease;}
.nl-reveal.in{opacity:1;transform:none;}
.nl-reveal--d1{transition-delay:0.1s;}.nl-reveal--d2{transition-delay:0.2s;}.nl-reveal--d3{transition-delay:0.3s;}

/* RESPONSIVE */
@media(max-width:900px){
  .p-sidebar{transform:translateX(-100%);transition:transform 0.3s;}
  .p-sidebar.open{transform:translateX(0);}
  .p-main{margin-left:0;}
  .p-stats{grid-template-columns:1fr 1fr;}
  .p-fr{grid-template-columns:1fr;}
  .p-content{padding:24px 20px;}
  .p-topbar{padding:0 20px;}
  body{cursor:auto!important;}
  .nl-cursor{display:none!important;}
}
@media(max-width:480px){
  .p-stats{grid-template-columns:1fr;}
  .auth-card{padding:32px 24px;}
}

/* ================================================================
   Compatibility Layer for Current NordLion Admin Pages
   ================================================================ */
body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none !important;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: transform, opacity;
  --cursor-x: 0px;
  --cursor-y: 0px;
  --cursor-glow-x: 0px;
  --cursor-glow-y: 0px;
}

body.cursor-active .cursor {
  opacity: 1;
}

.cursor__backlight,
.cursor__halo,
.cursor__inner,
.cursor__core {
  position: absolute;
  left: 0;
  top: 0;
}

.cursor__backlight {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate3d(var(--cursor-glow-x), var(--cursor-glow-y), 0) translate3d(-50%, -50%, 0);
  background:
    radial-gradient(circle, rgba(240, 217, 164, 0.18) 0%, rgba(201, 170, 111, 0.1) 52%, rgba(6, 7, 11, 0) 100%);
  filter: blur(6px);
  opacity: 0.14;
  mix-blend-mode: screen;
  transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.cursor__halo {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate3d(-50%, -50%, 0) rotate(45deg);
  border: 1.6px solid rgba(240, 217, 164, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 245, 220, 0.08), rgba(201, 170, 111, 0.02)),
    rgba(10, 12, 18, 0.18);
  box-shadow:
    0 0 0 1px rgba(201, 170, 111, 0.08),
    0 0 7px rgba(201, 170, 111, 0.08);
  backdrop-filter: blur(6px);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background 240ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cursor__core {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate3d(-50%, -50%, 0);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98), rgba(240, 217, 164, 0.84) 42%, rgba(201, 170, 111, 0.2) 100%);
  box-shadow:
    0 0 7px rgba(240, 217, 164, 0.24),
    0 0 12px rgba(201, 170, 111, 0.1);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cursor__inner {
  width: 12px;
  height: 12px;
  border-radius: 1px;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate3d(-50%, -50%, 0) rotate(45deg);
  border: 1px solid rgba(242, 218, 168, 0.54);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

body.cursor-hover .cursor__backlight {
  opacity: 0.18;
}

body.cursor-hover .cursor__halo {
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate3d(-50%, -50%, 0) rotate(45deg) scale(1.34);
  border-color: rgba(244, 226, 184, 0.94);
  background:
    linear-gradient(135deg, rgba(255, 245, 220, 0.12), rgba(201, 170, 111, 0.03)),
    rgba(12, 14, 21, 0.24);
  box-shadow:
    0 0 0 1px rgba(201, 170, 111, 0.14),
    0 0 12px rgba(223, 196, 140, 0.18);
}

body.cursor-hover .cursor__core {
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate3d(-50%, -50%, 0);
}

body.cursor-hover .cursor__inner {
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate3d(-50%, -50%, 0) rotate(45deg);
}

body.cursor-click .cursor__backlight {
  opacity: 0.18;
}

body.cursor-click .cursor__halo {
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate3d(-50%, -50%, 0) rotate(45deg) scale(0.9);
}

body.cursor-click .cursor__core {
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate3d(-50%, -50%, 0) scale(0.82);
}

body.cursor-click .cursor__inner {
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate3d(-50%, -50%, 0) rotate(45deg) scale(0.92);
}

.admin-layout {
  display: grid;
  gap: 22px;
}

.admin-summary,
.admin-table-wrap,
.access-card {
  background: var(--card);
  border: 1px solid var(--border);
}

.admin-summary,
.admin-table-wrap {
  padding: 28px;
}

.admin-summary {
  display: grid;
  align-content: start;
  gap: 14px;
}

.admin-summary .admin-stats,
.admin-summary .admin-mini-cards {
  margin-top: 8px;
}

body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-layout {
  gap: 30px;
}

body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-summary,
body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-table-wrap,
body[data-admin-page]:not([data-admin-page="dashboard"]) .access-card,
body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-note,
body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-list-item,
body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-empty {
  border-radius: 22px;
}

body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-summary,
body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-table-wrap {
  padding: 32px 34px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.14);
}

body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-panel-grid,
body[data-admin-page]:not([data-admin-page="dashboard"]) .dashboard-widget-grid,
body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-card-grid {
  gap: 24px;
  align-items: start;
}

body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-summary + .admin-panel-grid,
body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-panel-grid + .admin-panel-grid,
body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-panel-grid + .admin-table-wrap,
body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-table-wrap + .admin-panel-grid,
body[data-admin-page]:not([data-admin-page="dashboard"]) .admin-table-wrap + .admin-table-wrap {
  margin-top: 6px;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-widget {
  cursor: move;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.dashboard-widget.is-dragging {
  opacity: 0.55;
  transform: scale(0.985);
}

.dashboard-widget.is-drop-target {
  border-color: rgba(201,170,111,0.55);
  box-shadow: 0 0 0 1px rgba(201,170,111,0.18) inset;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(201,170,111,0.24);
  background: rgba(201,170,111,0.07);
  color: var(--gold2);
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-stats,
.admin-mini-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.access-card,
.admin-kpi {
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: 20px;
}

.access-card--link,
.admin-kpi--link,
.admin-note--link,
.admin-list-item--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.admin-kpi--link {
  display: grid;
}

.access-card::after,
.admin-kpi::after,
.admin-note::after,
.admin-list-item::after,
.admin-table-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.22s ease;
  border-radius: 18px 0 0 18px;
}

.access-card:hover::after,
.admin-kpi:hover::after,
.admin-note:hover::after,
.admin-list-item:hover::after,
.admin-table-wrap:hover::before {
  opacity: 1;
}

.eyebrow,
.service-index,
.admin-kpi-label,
.admin-form label,
.settings-form label,
.inquiry-table th {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-title,
.admin-subtitle,
.access-card h3,
.admin-list-item h3 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--white);
}

.admin-title {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.02;
  margin: 6px 0 0;
  max-width: 15ch;
}

.admin-subtitle {
  font-size: 24px;
}

.access-card h3 {
  font-size: 34px;
  line-height: 1;
}

.admin-list-item h3 {
  font-size: 24px;
}

.admin-compact,
.admin-table-meta,
.access-card p,
.admin-note,
.admin-list-item p,
.admin-empty,
.settings-status {
  color: var(--text);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading p,
.section-heading h2 {
  margin: 0;
}

.section-heading > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.section-heading__actions,
.admin-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-heading__actions {
  justify-content: flex-end;
}

.admin-summary-actions {
  margin-top: 20px;
}

body[data-admin-page="dashboard"] .admin-layout {
  gap: 40px;
}

body[data-admin-page="dashboard"] .admin-summary,
body[data-admin-page="dashboard"] .admin-table-wrap,
body[data-admin-page="dashboard"] .access-card,
body[data-admin-page="dashboard"] .admin-note,
body[data-admin-page="dashboard"] .admin-list-item,
body[data-admin-page="dashboard"] .admin-empty {
  border-radius: 24px;
}

body[data-admin-page="dashboard"] .access-card,
body[data-admin-page="dashboard"] .admin-kpi,
body[data-admin-page="dashboard"] .admin-note,
body[data-admin-page="dashboard"] .admin-list-item,
body[data-admin-page="dashboard"] .admin-empty {
  border-radius: 20px;
}

body[data-admin-page="dashboard"] .admin-summary,
body[data-admin-page="dashboard"] .admin-table-wrap {
  padding: 38px 40px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}

body[data-admin-page="dashboard"] .admin-summary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)),
    var(--card);
  padding-bottom: 48px;
}

body[data-admin-page="dashboard"] .admin-title {
  margin-top: 10px;
  line-height: 1.08;
  max-width: 12ch;
}

body[data-admin-page="dashboard"] .admin-panel-grid {
  gap: 30px;
  align-items: start;
}

body[data-admin-page="dashboard"] .admin-summary + .admin-panel-grid {
  margin-top: 14px;
}

body[data-admin-page="dashboard"] .admin-panel-grid + .admin-panel-grid,
body[data-admin-page="dashboard"] .admin-panel-grid + .admin-table-wrap {
  margin-top: 14px;
}

body[data-admin-page="dashboard"] .admin-stats,
body[data-admin-page="dashboard"] .admin-mini-cards {
  gap: 22px;
  background: transparent;
  margin-top: 28px;
  align-items: stretch;
}

body[data-admin-page="dashboard"] .admin-stats > *,
body[data-admin-page="dashboard"] .admin-mini-cards > * {
  min-width: 0;
}

body[data-admin-page="dashboard"] .access-card,
body[data-admin-page="dashboard"] .admin-kpi {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 208px;
  padding: 32px 34px 28px;
  border-radius: 22px;
  border: 1px solid rgba(201,170,111,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    rgba(15, 20, 35, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 12px 28px rgba(0,0,0,0.16);
}

body[data-admin-page="dashboard"] .access-card h3 {
  margin: 10px 0 0;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.04;
}

body[data-admin-page="dashboard"] .access-card p,
body[data-admin-page="dashboard"] .admin-note,
body[data-admin-page="dashboard"] .admin-list-item p,
body[data-admin-page="dashboard"] .admin-empty {
  line-height: 1.7;
}

body[data-admin-page="dashboard"] .section-heading {
  margin-bottom: 28px;
}

body[data-admin-page="dashboard"] .admin-subtitle {
  line-height: 1.08;
}

body[data-admin-page="dashboard"] .admin-stack,
body[data-admin-page="dashboard"] .admin-list {
  gap: 18px;
}

body[data-admin-page="dashboard"] .admin-note,
body[data-admin-page="dashboard"] .admin-list-item,
body[data-admin-page="dashboard"] .admin-empty {
  border-radius: 18px;
  padding: 24px 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0)),
    var(--navy2);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 28px;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 7, 0.72);
  backdrop-filter: blur(8px);
}

.admin-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 36px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 34px 90px rgba(0,0,0,0.38);
}

.admin-modal__dialog--wide {
  width: min(1240px, calc(100vw - 36px));
}

.admin-modal__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-modal__close {
  flex-shrink: 0;
}

body.admin-modal-open {
  overflow: hidden;
}

.admin-stack,
.admin-list {
  display: grid;
  gap: 14px;
}

.admin-note,
.admin-list-item,
.admin-empty {
  position: relative;
  padding: 18px 20px;
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.admin-note--button {
  width: 100%;
  font: inherit;
  text-align: left;
}

.admin-table-wrap.is-emphasized {
  box-shadow:
    0 0 0 1px rgba(223,196,140,0.42),
    0 18px 38px rgba(0,0,0,0.2);
}

.admin-note strong,
.admin-empty strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-display);
  color: var(--gold2);
  font-size: 16px;
  font-weight: 400;
}

.admin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-chip,
.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(201,170,111,0.24);
  background: var(--gold-dim);
  color: var(--gold2);
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-pill.is-green { color: var(--green); border-color: rgba(68,200,136,0.2); background: rgba(68,200,136,0.07); }
.admin-pill.is-red { color: var(--red); border-color: rgba(215,68,68,0.2); background: rgba(215,68,68,0.07); }
.admin-pill.is-blue { color: var(--blue); border-color: rgba(76,140,220,0.2); background: rgba(76,140,220,0.07); }

.admin-table-link {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  font: inherit;
}

.admin-table-link strong {
  color: var(--white);
  font-weight: 400;
  transition: color 0.2s ease;
}

.admin-table-link:hover strong {
  color: var(--gold2);
}

.admin-table-link-anchor {
  color: var(--white);
  transition: color 0.2s ease;
}

.admin-table-link-anchor:hover {
  color: var(--gold2);
}

.user-directory-link {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.user-directory-link strong,
.user-directory-link .admin-table-meta {
  display: block;
}

.user-detail-grid {
  display: grid;
  gap: 20px;
}

.user-detail-editor {
  gap: 12px 14px;
}

.user-detail-editor label {
  display: grid;
  gap: 8px;
}

.user-detail-editor .admin-form-actions {
  margin-top: 4px;
}

.user-detail-meta {
  margin-top: 8px;
  color: var(--text);
}

.user-detail-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: rgba(7,10,18,0.38);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.user-detail-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gold2);
}

.user-detail-activity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.user-detail-activity-group {
  display: grid;
  gap: 10px;
}

.user-detail-entry {
  display: grid;
  gap: 2px;
}

.user-detail-entry strong {
  margin: 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 400;
}

.user-detail-entry span {
  color: var(--text);
  font-size: 11px;
  line-height: 1.6;
}

.table-scroll {
  overflow-x: auto;
}

.inquiry-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.inquiry-table th {
  font-weight: 400;
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--navy2);
  white-space: nowrap;
}

.inquiry-table td {
  font-size: 12px;
  color: var(--text);
  padding: 13px 18px;
  border-bottom: 1px solid rgba(160,180,230,0.03);
  vertical-align: top;
}

.inquiry-table tr:hover td {
  background: rgba(255,255,255,0.012);
  color: var(--white);
}

.admin-button,
.logout-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(223,196,140,0.98), rgba(201,170,111,0.98));
  color: var(--navy);
  border-radius: 0;
  transition: background 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.22s, filter 0.22s;
  transform: none !important;
  filter: brightness(1);
}

.admin-button::before,
.logout-button::before {
  display: none;
}

.admin-button > *,
.logout-button > * {
  position: relative;
  z-index: 1;
}

.admin-button:hover,
.logout-button:hover {
  border-color: var(--gold2);
  filter: brightness(1.045) saturate(1.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 14px 30px rgba(0,0,0,0.16);
}

.admin-button-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.02);
  border-color: var(--border);
}

.admin-button-ghost:hover {
  color: var(--white);
  border-color: var(--border2);
  background: rgba(255,255,255,0.03);
}

.admin-button-danger {
  background: rgba(166, 49, 49, 0.12);
  border-color: rgba(215,68,68,0.34);
  color: #f0d8d8;
  filter: none;
}

.admin-button-danger:hover {
  border-color: rgba(236,110,110,0.54);
  background: rgba(166, 49, 49, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 24px rgba(0,0,0,0.12);
  filter: none;
}

.admin-button-inline {
  padding: 6px 12px;
}

.action-row,
.admin-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.settings-form,
.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form-grid .full-span {
  grid-column: 1 / -1;
}

.admin-field-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
}

.client-command-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
}

.message-center-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
}

.client-roster-panel,
.client-command-panel {
  min-height: 100%;
}

.client-roster {
  display: grid;
  gap: 12px;
}

.message-template-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}

.message-template-list__eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.message-template-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.message-template-button {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(201,170,111,0.18);
  background: rgba(12,16,28,0.58);
  color: var(--white);
  text-align: left;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
  cursor: pointer;
}

.message-template-button strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.message-template-button span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.message-template-button:hover,
.message-template-button:focus-visible {
  border-color: rgba(201,170,111,0.42);
  background: rgba(16,20,33,0.9);
  transform: translateY(-1px);
}

.client-roster__button {
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: rgba(10,14,26,0.82);
  color: var(--white);
  text-align: left;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.client-roster__button:hover,
.client-roster__button.is-active {
  border-color: rgba(201,170,111,0.3);
  background: rgba(16,20,33,0.96);
}

.client-roster__button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.client-roster__button.is-active::before {
  opacity: 1;
}

body[data-admin-page="messages"] .client-roster__button,
body[data-admin-page="messages"] .client-stream-card,
body[data-admin-page="messages"] .client-empty,
body[data-admin-page="messages"] .admin-note {
  border-radius: 18px;
}

body[data-admin-page="messages"] .admin-note {
  border-radius: 18px;
}

body[data-admin-page] .access-card,
body[data-admin-page] .admin-kpi,
body[data-admin-page] .admin-note,
body[data-admin-page] .admin-list-item,
body[data-admin-page] .admin-empty {
  border-radius: inherit;
}

body[data-admin-page="messages"] .admin-table-wrap {
  border-radius: 24px;
}

body[data-admin-page="messages"] .admin-summary,
body[data-admin-page="messages"] .admin-table-wrap {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)),
    var(--card);
}

body[data-admin-page="messages"] .admin-mini-cards {
  margin-top: 18px;
}

body[data-admin-page="messages"] .messages-log-table {
  min-width: 0;
  table-layout: fixed;
}

body[data-admin-page="messages"] .messages-log-table th:nth-child(1),
body[data-admin-page="messages"] .messages-log-table td:nth-child(1) {
  width: 16%;
}

body[data-admin-page="messages"] .messages-log-table th:nth-child(2),
body[data-admin-page="messages"] .messages-log-table td:nth-child(2) {
  width: 14%;
}

body[data-admin-page="messages"] .messages-log-table th:nth-child(3),
body[data-admin-page="messages"] .messages-log-table td:nth-child(3) {
  width: 18%;
}

body[data-admin-page="messages"] .messages-log-table th:nth-child(4),
body[data-admin-page="messages"] .messages-log-table td:nth-child(4),
body[data-admin-page="messages"] .messages-log-table th:nth-child(5),
body[data-admin-page="messages"] .messages-log-table td:nth-child(5) {
  width: 11%;
}

body[data-admin-page="messages"] .messages-log-table td {
  overflow-wrap: anywhere;
}

body[data-admin-page="record"] .admin-summary,
body[data-admin-page="record"] .admin-table-wrap,
body[data-admin-page="record"] .admin-list-item,
body[data-admin-page="record"] .admin-empty,
body[data-admin-page="record"] .record-detail-card {
  border-radius: 22px;
}

body[data-admin-page="record"] .admin-summary,
body[data-admin-page="record"] .admin-table-wrap {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)),
    var(--card);
}

.record-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.record-detail-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: rgba(10,14,26,0.8);
}

.record-detail-card strong {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.record-detail-card span {
  color: var(--white);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.client-roster__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-roster__name {
  font-family: var(--f-display);
  font-size: 24px;
  line-height: 1;
}

.client-roster__meta,
.client-roster__sub,
.client-stream-card__meta,
.client-stream-card__sub,
.client-empty {
  color: var(--text);
}

.client-roster__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-command-panel {
  display: grid;
  gap: 18px;
}

.client-command-toolbar,
.client-command-panel-group {
  display: grid;
  gap: 16px;
}

.client-command-panel-group[hidden] {
  display: none !important;
}

.client-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.client-summary-list {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.client-summary-row {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  background: rgba(10,14,26,0.82);
}

.client-summary-row span,
.client-summary-section > span {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.client-summary-row strong {
  color: var(--white);
  font-size: 13px;
  font-weight: 400;
}

.client-summary-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.client-overview-card,
.client-stream-card,
.client-empty {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: rgba(10,14,26,0.82);
}

.client-overview-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold2);
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 400;
}

.client-stream,
.client-message-list,
.client-document-list {
  display: grid;
  gap: 14px;
  align-content: start;
}

.message-thread-summary {
  margin: 8px 0 18px;
}

.message-thread-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.message-thread-summary__item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-top: 1px solid rgba(201,170,111,0.18);
}

.message-thread-summary__item span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.message-thread-summary__item strong {
  font-size: 15px;
  line-height: 1.35;
  color: var(--white);
  font-weight: 500;
}

.message-day-separator {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.message-day-separator::before,
.message-day-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,170,111,0), rgba(201,170,111,0.16), rgba(201,170,111,0));
}

.message-day-separator span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.client-stream-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.client-stream-card__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1;
  color: var(--white);
}

.client-stream-card__meta {
  margin-top: 6px;
  font-size: 12px;
}

.client-stream-card__sub {
  margin-top: 10px;
  line-height: 1.85;
}

.client-stream-card__sub strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold2);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 400;
}

.client-stream-card__link {
  color: var(--gold2);
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.client-stream-card__link:hover {
  color: var(--white);
}

.client-editor {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.client-editor summary {
  list-style: none;
  cursor: pointer;
}

.client-editor summary::-webkit-details-marker {
  display: none;
}

.client-editor__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--gold2);
  font-family: var(--f-display);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.client-editor__summary::after {
  content: "Open";
  color: var(--muted);
}

.client-editor[open] {
  background: rgba(255,255,255,0.035);
}

.client-editor[open] .client-editor__summary::after {
  content: "Close";
  color: var(--white);
}

.client-editor__body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(201,170,111,0.08);
}

.client-history-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.client-history-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(201,170,111,0.12);
  background: rgba(255,255,255,0.02);
}

.client-history-item strong {
  color: var(--white);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 400;
  text-transform: capitalize;
}

.client-history-item span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
}

.client-stream-card .action-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.client-stream-card .action-row .admin-button-danger {
  margin-left: auto;
}

.client-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.client-inline-grid .full-span {
  grid-column: 1 / -1;
}

.client-inline-grid label {
  display: grid;
  gap: 8px;
}

.admin-table-stack {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.client-empty {
  border-style: dashed;
}

.client-empty strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-display);
  color: var(--gold2);
  font-size: 16px;
  font-weight: 400;
}

.client-message-card .client-stream-card__title {
  font-size: 22px;
}

.client-message-card .client-stream-card__head {
  margin-bottom: 10px;
}

.admin-button:disabled,
.logout-button:disabled {
  opacity: 0.42;
  border-color: var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  pointer-events: none;
}

.settings-form input,
.settings-form select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-select,
.admin-inline-input {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  background: var(--navy2);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 300;
  outline: none;
  appearance: none;
}

.admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-multi-select,
.admin-form select[multiple] {
  min-height: 132px;
  padding-top: 12px;
  padding-bottom: 12px;
  background-image: none;
}

.admin-form select,
.settings-form select,
.admin-select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(201,170,111,0.9) 50%), linear-gradient(135deg, rgba(201,170,111,0.9) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.admin-form select:disabled,
.admin-select:disabled {
  color: var(--muted);
  opacity: 0.78;
}

/* Users table — column widths fixed to 100% total, scoped to legacy shell only */
body[data-admin-page="users"]:not(.admin-v2) .table-scroll {
  overflow-x: auto;
}

body[data-admin-page="users"]:not(.admin-v2) .users-table {
  min-width: 1100px;
  table-layout: fixed;
}

body[data-admin-page="users"]:not(.admin-v2) .users-table th,
body[data-admin-page="users"]:not(.admin-v2) .users-table td {
  padding: 12px 14px;
  vertical-align: top;
}

/* Columns add to 100%: 22+10+14+13+14+9+8+10+0 = 100 (last col auto) */
body[data-admin-page="users"]:not(.admin-v2) .users-table th:nth-child(1),
body[data-admin-page="users"]:not(.admin-v2) .users-table td:nth-child(1) { width: 22%; }
body[data-admin-page="users"]:not(.admin-v2) .users-table th:nth-child(2),
body[data-admin-page="users"]:not(.admin-v2) .users-table td:nth-child(2) { width: 10%; }
body[data-admin-page="users"]:not(.admin-v2) .users-table th:nth-child(3),
body[data-admin-page="users"]:not(.admin-v2) .users-table td:nth-child(3) { width: 14%; }
body[data-admin-page="users"]:not(.admin-v2) .users-table th:nth-child(4),
body[data-admin-page="users"]:not(.admin-v2) .users-table td:nth-child(4) { width: 13%; }
body[data-admin-page="users"]:not(.admin-v2) .users-table th:nth-child(5),
body[data-admin-page="users"]:not(.admin-v2) .users-table td:nth-child(5) { width: 14%; }
body[data-admin-page="users"]:not(.admin-v2) .users-table th:nth-child(6),
body[data-admin-page="users"]:not(.admin-v2) .users-table td:nth-child(6) { width: 9%; }
body[data-admin-page="users"]:not(.admin-v2) .users-table th:nth-child(7),
body[data-admin-page="users"]:not(.admin-v2) .users-table td:nth-child(7) { width: 8%; }
body[data-admin-page="users"]:not(.admin-v2) .users-table th:nth-child(8),
body[data-admin-page="users"]:not(.admin-v2) .users-table td:nth-child(8) { width: 10%; }

body[data-admin-page="users"]:not(.admin-v2) .users-table strong,
body[data-admin-page="users"]:not(.admin-v2) .users-table .admin-table-meta {
  overflow-wrap: anywhere;
}

body[data-admin-page="users"]:not(.admin-v2) .users-table .admin-select,
body[data-admin-page="users"]:not(.admin-v2) .users-table .admin-inline-input {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 11.5px;
  width: 100%;
  max-width: none;
}

body[data-admin-page="users"]:not(.admin-v2) .users-table .admin-table-meta {
  margin-top: 7px;
  line-height: 1.55;
}

body[data-admin-page="users"]:not(.admin-v2) .users-table .action-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

body[data-admin-page="users"] .user-detail-grid .admin-subtitle {
  font-size: 20px;
}

body[data-admin-page="users"] .user-detail-grid .admin-table-wrap {
  padding: 22px;
}

.admin-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse 65% 55% at 55% 35%, rgba(201,170,111,0.07) 0%, transparent 100%), linear-gradient(168deg,#07090F 0%,#050609 55%,#090D1A 100%);
}

.admin-auth-card {
  width: min(560px, calc(100% - 24px));
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--border);
}

.admin-auth-copy {
  max-width: 48ch;
  color: var(--text);
  line-height: 1.8;
}

@media(max-width:900px){
  body{cursor:auto!important;}
  .nl-cursor{display:none!important;}
  .p-sidebar{display:none;}
  .p-main{margin-left:0;}
  .p-topbar{padding:0 20px;}
  .p-content{padding:24px 20px;}
  .client-command-grid,
  .client-overview-grid,
  .client-inline-grid,
  .admin-card-grid,
  .dashboard-widget-grid,
  .portal-record-focus-grid,
  .admin-panel-grid,
  .message-center-grid,
  .admin-mini-cards,
  .admin-stats,
  .admin-form-grid {grid-template-columns:1fr;}
}

/* ================================================================
   Client Portal Shell v2
   ================================================================ */
body.portal-body {
  background:
    radial-gradient(circle at top left, rgba(201,170,111,0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 18%),
    linear-gradient(180deg, #040507 0%, #07090F 34%, #05070B 100%);
}

body.portal-body .admin-shell {
  min-height: 100vh;
  background: transparent;
}

body.portal-body .portal-main {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.portal-body .portal-content-shell {
  padding: 48px 44px;
  display: grid;
  gap: 22px;
}

body.portal-body .p-sidebar {
  overflow: hidden;
}

body.portal-body .p-sb-logo {
  padding: 30px 24px 22px;
  gap: 12px;
}

body.portal-body .p-sb-logo-img {
  height: 32px;
}

body.portal-body .p-sb-logo-txt {
  font-size: 15px;
  letter-spacing: 0.2em;
}

body.portal-body .p-sb-logo-sub {
  font-size: 7px;
  letter-spacing: 0.3em;
  margin-top: 2px;
}

body.portal-body .p-sb-nav {
  padding: 18px 12px 16px;
  overflow-y: auto;
}

body.portal-body .p-sb-section {
  padding: 10px 12px 8px;
  font-size: 7px;
  letter-spacing: 0.42em;
}

body.portal-body .p-sb-link {
  gap: 12px;
  padding: 11px 14px 11px 18px;
  margin: 3px 0;
  font-size: 11px;
  font-weight: 300;
  color: var(--text);
}

body.portal-body .p-sb-link-icon {
  width: 20px;
  height: 20px;
}

body.portal-body .p-sb-link-icon svg {
  width: 18px;
  height: 18px;
}

body.portal-body .p-sb-footer {
  padding: 16px;
  gap: 8px;
}

body.portal-body .p-sb-footer a,
body.portal-body .p-sb-footer .logout-button {
  min-height: 40px;
  padding: 10px 12px;
  font-family: var(--f-display);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0;
}

body.portal-body .p-sb-footer .logout-button {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.portal-topbar-shell {
  top: 0;
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.portal-topbar-shell__left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-topbar-shell__right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.portal-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 104px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 20px;
  background: linear-gradient(180deg, rgba(3, 5, 8, 0.99), rgba(2, 3, 5, 0.98));
  border-right: 1px solid var(--border);
  box-shadow: 24px 0 56px rgba(0,0,0,0.42);
}

@media(max-width:900px){
  .user-detail-activity {
    grid-template-columns: 1fr;
  }
}

.portal-rail__brand {
  width: 72px;
  height: 72px;
  border-radius: 0;
  border: 1px solid rgba(201,170,111,0.14);
  background: linear-gradient(180deg, rgba(14, 17, 26, 0.98), rgba(4, 6, 10, 0.98));
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0,0,0,0.5);
}

.portal-rail__brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(201,170,111,0.18));
}

.portal-rail__label {
  margin-top: 20px;
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.portal-rail__nav {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  overflow-y: auto;
}

.portal-rail__divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 6px 0 4px;
}

.portal-rail__link {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,0.005);
  border: 1px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.portal-rail__link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--gold);
  opacity: 0;
  transform: scaleY(0.28);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.portal-rail__link:hover,
.portal-rail__link.active {
  color: var(--white);
  border-color: rgba(201,170,111,0.18);
  background: linear-gradient(180deg, rgba(201,170,111,0.08), rgba(201,170,111,0.02));
  box-shadow: 0 14px 28px rgba(0,0,0,0.4);
}

.portal-rail__link:hover::after,
.portal-rail__link.active::after {
  opacity: 1;
  transform: scaleY(1);
}

.portal-rail__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-rail__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.55;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.portal-rail__tooltip {
  position: absolute;
  left: 74px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid rgba(201,170,111,0.16);
  background: rgba(5, 7, 12, 0.98);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.portal-rail__link:hover .portal-rail__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.portal-rail__footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.portal-rail__link--foot {
  width: 58px;
  height: 58px;
  border-radius: 0;
}

.portal-topbar {
  position: sticky;
  top: 18px;
  z-index: 80;
  min-height: 78px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 22px;
  border: 1px solid rgba(201,170,111,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)),
    rgba(10,14,26,0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.28);
}

.portal-topbar__left,
.portal-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-topbar__left {
  flex: 1;
  min-width: 0;
}

.portal-topbar__heading {
  display: grid;
  gap: 4px;
  min-width: 170px;
}

.portal-topbar__section {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.portal-topbar__title {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--white);
}

.portal-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 48px;
  border: 1px solid var(--border);
  background: rgba(4,5,7,0.64);
  border-radius: 16px;
}

.portal-search__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.portal-search__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.portal-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
}

.portal-search input::placeholder {
  color: var(--muted);
}

.portal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 0;
  border: 1px solid var(--border);
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  transform: none !important;
}

.portal-action:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.portal-action--primary {
  background: linear-gradient(180deg, rgba(223,196,140,0.98), rgba(201,170,111,0.98));
  border-color: var(--gold);
  color: var(--navy);
}

.portal-action--ghost {
  background: rgba(255,255,255,0.02);
}

.portal-action--ghost:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(201,170,111,0.16);
}

.portal-action--icon {
  min-width: 48px;
  padding: 0 14px;
}

.portal-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 0 8px;
}

.portal-account__monogram {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(201,170,111,0.14);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 18px;
}

.portal-account__meta {
  display: grid;
  gap: 2px;
}

.portal-account__tier {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.portal-account__email {
  font-size: 12px;
  color: var(--white);
}

.portal-account--inline {
  padding-left: 0;
}

.portal-stat-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 144px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(201,170,111,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0)),
    rgba(15, 20, 35, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.portal-stat-card__label {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.portal-stat-card__value {
  font-family: var(--f-display);
  font-size: clamp(32px, 2.7vw, 40px);
  line-height: 1;
  color: var(--white);
}

.portal-stat-card__meta {
  color: var(--text);
  line-height: 1.65;
}

.portal-link-card {
  display: block;
  text-decoration: none;
}

.portal-link-card:hover h3,
.portal-link-card:hover strong {
  color: var(--white);
}

.portal-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-record-action-form {
  display: grid;
  gap: 14px;
}

.portal-record-action-form textarea {
  min-height: 136px;
}

.portal-record-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-record-focus-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(201,170,111,0.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)),
    rgba(12, 16, 28, 0.9);
}

.portal-record-focus-card strong {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.portal-record-focus-card span {
  color: var(--white);
  line-height: 1.7;
}

.portal-record-focus-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.portal-asset-registry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-asset-card {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(201,170,111,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0)),
    rgba(15, 20, 35, 0.92);
}

.portal-asset-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.portal-asset-card__title {
  margin: 10px 0 0;
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1;
  color: var(--white);
}

.portal-asset-card__meta,
.portal-asset-card__copy {
  color: var(--text);
}

.portal-asset-card__meta {
  margin-top: 8px;
}

.portal-asset-card__value {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--gold2);
  white-space: nowrap;
}

.portal-asset-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-asset-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.portal-modal[aria-hidden="false"] {
  display: flex;
}

.portal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 5, 0.76);
  backdrop-filter: blur(10px);
}

.portal-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(86vh, 980px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(201,170,111,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    rgba(10,14,26,0.96);
  box-shadow: 0 30px 70px rgba(0,0,0,0.42);
}

.portal-asset-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.portal-asset-type {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-asset-type.active {
  color: var(--navy);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(223,196,140,0.98), rgba(201,170,111,0.98));
}

.portal-asset-composer__intro {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.portal-request-card__link {
  color: var(--gold2);
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.portal-body .p-sb-footer .logout-button {
  width: 100%;
  justify-content: center;
}

body.portal-body .portal-topbar-shell .logout-button {
  min-height: 36px;
  padding: 0 16px;
  font-family: var(--f-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

body.portal-body .admin-layout {
  gap: 22px;
}

body.portal-body .admin-summary,
body.portal-body .admin-table-wrap,
body.portal-body .access-card {
  padding: 30px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0)),
    rgba(18,22,42,0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,170,111,0.08);
}

body.portal-body .access-card,
body.portal-body .admin-kpi,
body.portal-body .admin-note,
body.portal-body .admin-list-item,
body.portal-body .admin-empty {
  border-radius: 18px;
}

body.portal-body .access-card,
body.portal-body .admin-kpi {
  border-radius: 22px;
}

body.portal-body .admin-button,
body.portal-body .logout-button {
  border-radius: 0;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  font-family: var(--f-display);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.2em;
}

body.portal-body .admin-button::before,
body.portal-body .logout-button::before {
  display: none;
}

body.portal-body .admin-button:hover,
body.portal-body .logout-button:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

body.portal-body .admin-summary {
  min-height: 100%;
}

body.portal-body .admin-summary::before,
body.portal-body .admin-table-wrap::before,
body.portal-body .access-card::after,
body.portal-body .admin-kpi::after,
body.portal-body .admin-note::after,
body.portal-body .admin-list-item::after {
  transform: scaleY(1);
  opacity: 0.72;
}

body.portal-body .admin-title {
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1.04;
  max-width: 11ch;
}

body.portal-body[data-portal-page="dashboard"] .portal-dashboard-summary,
body.portal-body[data-portal-page="record"] .portal-record-summary {
  padding: 38px 40px;
}

body.portal-body[data-portal-page="dashboard"] .admin-layout {
  gap: 40px;
}

body.portal-body[data-portal-page="dashboard"] .portal-dashboard-actions {
  margin-top: 24px;
}

body.portal-body[data-portal-page="dashboard"] .portal-dashboard-stats,
body.portal-body[data-portal-page="record"] .portal-dashboard-stats {
  gap: 22px;
  background: transparent;
  margin-top: 28px;
}

body.portal-body[data-portal-page="dashboard"] .portal-dashboard-summary {
  padding-bottom: 48px;
}

body.portal-body[data-portal-page="dashboard"] .admin-panel-grid {
  gap: 30px;
  align-items: start;
}

body.portal-body[data-portal-page="dashboard"] .admin-summary + .admin-panel-grid {
  margin-top: 14px;
}

body.portal-body[data-portal-page="dashboard"] .admin-panel-grid + .admin-panel-grid,
body.portal-body[data-portal-page="dashboard"] .admin-panel-grid + .admin-table-wrap {
  margin-top: 14px;
}

body.portal-body[data-portal-page="dashboard"] .admin-title,
body.portal-body[data-portal-page="record"] .admin-title {
  max-width: 10ch;
  line-height: 1.08;
}

body.portal-body .admin-subtitle,
body.portal-body .admin-list-item h3,
body.portal-body .portal-channel-card strong,
body.portal-body .portal-service-card strong,
body.portal-body .portal-request-card__summary h3 {
  font-family: var(--f-body);
  letter-spacing: 0.01em;
}

body.portal-body .admin-subtitle {
  font-size: 18px;
  font-weight: 500;
}

body.portal-body .admin-list-item h3,
body.portal-body .portal-channel-card strong,
body.portal-body .portal-service-card strong {
  font-size: 17px;
  font-weight: 500;
}

body.portal-body .portal-request-card__summary h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.12;
}

.portal-hero-grid,
.portal-two-column {
  display: grid;
  gap: 22px;
}

.portal-hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.82fr);
}

.portal-two-column {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
}

.portal-two-column--requests {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.76fr);
}

.portal-side-stack {
  display: grid;
  gap: 22px;
}

.portal-hero-card {
  display: grid;
  gap: 18px;
}

.portal-hero-card--main {
  align-content: start;
  min-height: 100%;
}

.portal-hero-copy {
  max-width: 62ch;
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
}

.portal-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 0 2px;
}

.portal-mini-card .admin-subtitle {
  font-size: 20px;
}

.portal-status-grid,
.portal-coverage-list {
  display: grid;
  gap: 14px;
}

.portal-data-pair {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(4,5,7,0.5);
  border-radius: 16px;
}

.portal-data-pair span {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.portal-data-pair strong {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--white);
}

.portal-quick-grid,
.portal-channel-grid,
.portal-service-grid,
.portal-request-preset-grid {
  display: grid;
  gap: 12px;
}

.portal-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-service-grid,
.portal-request-preset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-quick-chip,
.portal-channel-card,
.portal-service-card,
.portal-request-preset {
  border: 1px solid var(--border);
  background: rgba(4,5,7,0.48);
  color: var(--white);
  border-radius: 0;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  transform: none !important;
}

.portal-quick-chip,
.portal-request-preset {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  appearance: none;
  text-align: center;
}

.portal-quick-chip:hover,
.portal-request-preset:hover,
.portal-channel-card:hover,
.portal-service-card:hover {
  background: rgba(8,11,18,0.62);
  border-color: rgba(201,170,111,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.portal-channel-card,
.portal-service-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  min-height: 96px;
}

.portal-channel-card strong,
.portal-service-card strong {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
}

.portal-channel-card span,
.portal-service-card span,
.portal-form-section p,
.portal-divider,
.portal-hero-copy,
.portal-request-card__meta,
.portal-request-card__details,
.portal-request-card__footer,
.portal-zero {
  color: var(--text);
}

.portal-command-card {
  min-height: 100%;
}

body.portal-body .dashboard-widget-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.dashboard-widget {
  position: relative;
  will-change: transform;
}

.dashboard-widget .admin-subtitle {
  font-size: 20px;
}

.dashboard-widget-placeholder {
  border-radius: 24px;
  border: 1px dashed rgba(201,170,111,0.34);
  background: rgba(201,170,111,0.06);
  min-height: 260px;
}

.dashboard-widget.is-floating {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 26px 60px rgba(0,0,0,0.46);
  transform: rotate(0.8deg);
}

.dashboard-widget.is-floating::before {
  transform: scaleY(1);
}

.drag-handle {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(201,170,111,0.08);
  border: 1px solid rgba(201,170,111,0.22);
  cursor: grab;
  transform: none !important;
}

.drag-handle:active {
  cursor: grabbing;
}

.portal-form-section {
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.portal-section-tabs,
.portal-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-filter-chip,
.portal-section-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  transform: none !important;
}

.portal-filter-chip.active,
.portal-section-tab.active {
  color: var(--white);
  border-color: rgba(201,170,111,0.32);
  background: rgba(201,170,111,0.09);
}

.portal-request-preset.active {
  color: var(--white);
  border-color: rgba(201,170,111,0.32);
  background: rgba(201,170,111,0.1);
}

.portal-request-list {
  display: grid;
  gap: 14px;
}

.portal-request-card {
  border: 1px solid var(--border);
  background: rgba(4,5,7,0.42);
  border-radius: 20px;
  overflow: hidden;
}

.portal-request-card summary {
  list-style: none;
  cursor: pointer;
}

.portal-request-card summary::-webkit-details-marker {
  display: none;
}

.portal-request-card__summary,
.portal-request-card__details {
  padding: 18px 20px;
}

.portal-request-card__summary {
  display: grid;
  gap: 10px;
}

.portal-request-card__summary-row,
.portal-request-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portal-request-card__summary h3 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
}

.portal-request-card__meta,
.portal-request-card__details,
.portal-zero {
  font-size: 13px;
  line-height: 1.8;
}

.portal-request-card__details {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.portal-request-card__detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-request-card__detail {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
}

.portal-request-card__detail strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.portal-request-history {
  display: grid;
  gap: 12px;
}

.portal-request-history__list {
  display: grid;
  gap: 10px;
}

.portal-request-history__item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
}

.portal-request-history__item div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.portal-request-history__item strong {
  font-family: var(--f-display);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

.portal-request-history__item span,
.portal-request-history__item p {
  color: var(--text);
}

.portal-request-followup {
  display: grid;
  gap: 12px;
}

.portal-request-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.portal-toggle-card {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-toggle-card input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.portal-zero {
  padding: 28px;
  border: 1px dashed rgba(201,170,111,0.18);
  background: rgba(255,255,255,0.02);
}

.portal-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--border);
}

@media (max-width: 1280px) {
  body.portal-body .dashboard-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .record-detail-grid,
  .portal-hero-grid,
  .portal-two-column,
  .portal-two-column--requests,
  .portal-asset-registry,
  .portal-asset-card__grid,
  .portal-asset-type-grid,
  .portal-service-grid,
  .portal-request-preset-grid,
  .portal-channel-grid {
    grid-template-columns: 1fr;
  }

  .portal-topbar-shell {
    height: auto;
    padding: 18px 20px;
    align-items: stretch;
  }

  .portal-topbar-shell__left,
  .portal-topbar-shell__right {
    width: 100%;
  }

  .portal-topbar-shell__left {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-topbar-shell__right {
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  body.portal-body .portal-main {
    margin-left: 0;
  }

  .portal-rail {
    display: none;
  }

  body.portal-body .portal-content-shell {
    padding: 24px 16px 32px;
  }

  .portal-topbar-shell {
    top: 0;
    padding: 18px 16px;
  }

  .portal-topbar-shell__left,
  .portal-topbar-shell__right {
    gap: 12px;
  }

  body.portal-body .dashboard-widget-grid,
  .portal-request-card__detail-grid,
  .portal-quick-grid {
    grid-template-columns: 1fr;
  }

  .portal-modal {
    padding: 16px;
  }

  .portal-modal__panel {
    padding: 20px;
  }
}

/* ================================================================
   COMMAND SHELL V2
   ================================================================ */
body.admin-v2,
body.portal-v2 {
  background:
    radial-gradient(circle at top left, rgba(201,170,111,0.06), transparent 30%),
    radial-gradient(circle at top right, rgba(223,196,140,0.05), transparent 28%),
    linear-gradient(180deg, #06070c 0%, #090c15 54%, #07090f 100%);
}

body.admin-v2 .admin-layout.command-main,
body.portal-v2 .admin-layout.command-main {
  margin-left: 294px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.command-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 294px;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0)),
    rgba(4,6,10,0.98);
  border-right: 1px solid rgba(201,170,111,0.08);
  box-shadow: 28px 0 60px rgba(0,0,0,0.42);
  z-index: 110;
}

.command-rail__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(201,170,111,0.12);
  background: rgba(255,255,255,0.02);
  border-radius: 24px;
}

.command-rail__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(1.04);
}

.command-rail__wordmark {
  font-family: var(--f-display);
  font-size: 19px;
  line-height: 1;
  color: var(--white);
}

.command-rail__subline {
  margin-top: 4px;
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.command-rail__intro {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(201,170,111,0.08);
  background: rgba(255,255,255,0.018);
  color: var(--text);
  font-size: 11px;
  line-height: 1.75;
}

.command-rail__intro span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.command-rail__nav {
  flex: 1;
  min-height: 0;
  margin-top: 18px;
  overflow-y: auto;
  padding-right: 4px;
}

.command-rail__group + .command-rail__group {
  margin-top: 16px;
}

.command-rail__section {
  margin: 0 10px 10px;
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(238,241,248,0.34);
}

.command-rail__links {
  display: grid;
  gap: 6px;
}

.command-rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--text);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.command-rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 12px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.command-rail__link:hover,
.command-rail__link.is-active {
  color: var(--white);
  border-color: rgba(201,170,111,0.12);
  background:
    linear-gradient(90deg, rgba(201,170,111,0.1), rgba(201,170,111,0)),
    rgba(255,255,255,0.018);
}

.command-rail__link:hover::before,
.command-rail__link.is-active::before {
  opacity: 1;
}

.command-rail__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.command-rail__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.45;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.command-rail__label {
  font-size: 12px;
}

.command-rail__footer {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(201,170,111,0.08);
}

.command-rail__minor,
.command-rail__legacy {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.014);
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.command-rail__legacy {
  margin-top: 2px;
  color: rgba(238,241,248,0.26);
}

.command-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 34px 22px;
  background:
    linear-gradient(180deg, rgba(7,9,15,0.96), rgba(7,9,15,0.78)),
    rgba(7,9,15,0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201,170,111,0.08);
}

.command-topbar__headline {
  display: grid;
  gap: 6px;
  max-width: 560px;
}

.command-topbar__eyebrow {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.command-topbar__headline h1 {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 0.98;
  color: var(--white);
}

.command-topbar__headline p {
  color: var(--text);
  font-size: 11px;
  line-height: 1.7;
}

.command-topbar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.command-topbar__linkset {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.command-topbar__linkset a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201,170,111,0.12);
  background: rgba(255,255,255,0.018);
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.command-topbar__clock {
  font-size: 10px;
  color: rgba(238,241,248,0.42);
}

.command-topbar__theme {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  color: var(--gold-soft);
  border-radius: 0;
  transition:
    border-color 1.18s cubic-bezier(0.19, 1, 0.22, 1),
    color 0.92s cubic-bezier(0.19, 1, 0.22, 1),
    background 1.18s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 1.18s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: 0.08s;
}

.command-topbar__theme:hover {
  border-color: rgba(201,170,111,0.52);
  background: rgba(201,170,111,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 32px rgba(0,0,0,0.18);
}

.command-topbar__theme svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.command-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(201,170,111,0.18);
  background: rgba(201,170,111,0.1);
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold2);
}

.command-pill--soft {
  background: rgba(238,241,248,0.06);
  border-color: rgba(238,241,248,0.08);
}

.command-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(201,170,111,0.1);
  background: rgba(255,255,255,0.02);
}

.command-account__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,170,111,0.12);
  border: 1px solid rgba(201,170,111,0.16);
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--gold2);
}

.command-account__meta {
  display: grid;
  gap: 2px;
}

.command-account__meta strong {
  font-size: 12px;
  color: var(--white);
  font-weight: 500;
}

.command-account__label {
  font-family: var(--f-display);
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.command-stage {
  flex: 1;
  display: grid;
  gap: 28px;
  padding: 34px;
}

.admin-panel-grid,
.dashboard-widget-grid,
.admin-card-grid,
.admin-stack {
  gap: 22px;
}

.section-heading {
  gap: 16px;
  margin-bottom: 24px;
}

.action-row {
  gap: 8px 10px;
}

.action-row .admin-button,
.action-row .logout-button {
  min-width: 96px;
}

.portal-live-chat-summary .section-heading {
  align-items: center;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .section-heading,
body.portal-v2 .section-heading {
  row-gap: 14px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .section-heading__actions .admin-button,
body.portal-v2 .section-heading__actions .admin-button,
body.portal-v2 .admin-summary-actions .admin-button {
  flex: 0 0 auto;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .table-scroll,
body.portal-v2 .table-scroll {
  padding-bottom: 2px;
}

.admin-page-search {
  width: min(100%, 420px);
  max-width: none;
  margin: 0 0 18px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .inquiry-table td,
body.portal-v2 .inquiry-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

body[data-portal-page="messages"] .portal-message-grid,
body.portal-v2[data-portal-page="messages"] .portal-message-grid {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 26px;
}

body[data-portal-page="messages"] .portal-message-pane,
body.portal-v2[data-portal-page="messages"] .portal-message-pane {
  min-width: 0;
}

body[data-portal-page="messages"] #portalMessageSearch,
body.portal-v2[data-portal-page="messages"] #portalMessageSearch {
  width: 100%;
  max-width: none;
  margin-bottom: 18px;
}

body[data-portal-page="messages"] .portal-message-thread-roster,
body.portal-v2[data-portal-page="messages"] .portal-message-thread-roster {
  gap: 0;
}

body[data-portal-page="messages"] .portal-message-thread-roster .client-roster__button,
body.portal-v2[data-portal-page="messages"] .portal-message-thread-roster .client-roster__button {
  padding-top: 16px;
  padding-bottom: 16px;
}

body[data-portal-page="messages"] #clientMessagesList,
body.portal-v2[data-portal-page="messages"] #clientMessagesList {
  min-height: 260px;
  max-height: min(52vh, 720px);
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 18px;
}

body.admin-v2[data-admin-page="users"] .admin-page-search,
body.portal-v2[data-portal-page="documents"] .admin-page-search {
  width: min(100%, 460px);
}

body.portal-v2[data-portal-page="profile"] .portal-form-section {
  padding-top: 12px;
  margin-top: 6px;
}

body.portal-v2[data-portal-page="profile"] .portal-form-section .eyebrow {
  margin-bottom: 0;
}

body.portal-v2[data-portal-page="profile"] .admin-form > .admin-compact.full-span {
  margin-top: -2px;
  color: var(--muted);
}

body.portal-v2[data-portal-page="assets"] .admin-page-search,
body.portal-v2[data-portal-page="calendar"] .admin-page-search,
body.portal-v2[data-portal-page="documents"] .admin-page-search,
body.portal-v2[data-portal-page="requests"] .admin-page-search {
  width: min(100%, 480px);
}

body.portal-v2 .portal-concierge-presets {
  margin: 0 0 18px;
}

body.portal-v2[data-portal-page="access"] .portal-hero-card--main,
body.portal-v2[data-portal-page="portfolio"] .portal-hero-card--main {
  padding-bottom: 42px;
}

body.portal-v2[data-portal-page="access"] .portal-coverage-list,
body.portal-v2[data-portal-page="portfolio"] .portal-coverage-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.portal-v2[data-portal-page="portfolio"] #portalPortfolioRoutes {
  align-content: start;
}

body.portal-v2[data-portal-page="access"] .admin-card-grid .access-card h3,
body.portal-v2[data-portal-page="portfolio"] .portal-service-card strong {
  line-height: 1.08;
}

body.portal-v2[data-portal-page="access"] .admin-card-grid {
  align-items: start;
}

body.portal-v2[data-portal-page="access"] .admin-card-grid .admin-table-wrap,
body.portal-v2[data-portal-page="access"] .admin-card-grid .access-card {
  min-height: 100%;
}

.portal-chat-thread {
  display: grid;
  gap: 14px;
  align-items: start;
}

.portal-chat-bubble {
  display: grid;
  gap: 10px;
  max-width: 88%;
  width: fit-content;
  align-self: start;
  padding: 18px 20px;
  border: 1px solid rgba(201,170,111,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0)),
    rgba(12,16,28,0.9);
  box-shadow: 0 14px 24px rgba(0,0,0,0.1);
}

.portal-chat-bubble--desk {
  justify-self: start;
  border-radius: 22px 22px 22px 8px;
}

.portal-chat-bubble--client {
  justify-self: end;
  border-radius: 22px 22px 8px 22px;
  background:
    linear-gradient(180deg, rgba(201,170,111,0.12), rgba(201,170,111,0.03)),
    rgba(20,24,38,0.92);
}

.portal-chat-bubble__meta,
.portal-chat-bubble__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}

.portal-chat-bubble__meta strong {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold2);
}

.portal-chat-bubble__subject {
  font-family: var(--f-display);
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  color: var(--white);
  display: none;
}

.portal-chat-bubble__body {
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-center-grid > *,
.portal-message-grid > *,
.client-roster__button,
.message-template-button,
.portal-chat-bubble,
.client-message-card,
.message-thread-summary,
.message-thread-summary__item,
.admin-message-thread-shell,
#clientMessageForm,
#adminMessageCenterForm {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.32s ease;
  will-change: transform, opacity;
}

.client-roster__button,
.message-template-button,
.admin-button,
.portal-section-tab,
.portal-filter-chip,
.portal-quick-chip,
.portal-request-preset,
.portal-action--ghost,
.portal-channel-card,
.portal-service-card,
.portal-link-card,
.command-topbar__theme,
.command-rail__link,
.logout-button {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.32s ease,
    filter 0.32s ease;
}

.client-roster__button:hover,
.message-template-button:hover,
.admin-button:hover,
.portal-section-tab:hover,
.portal-filter-chip:hover,
.portal-quick-chip:hover,
.portal-request-preset:hover,
.portal-action--ghost:hover,
.portal-channel-card:hover,
.portal-service-card:hover,
.portal-link-card:hover,
.command-topbar__theme:hover,
.command-rail__link:hover,
.logout-button:hover {
  transform: translateY(-2px);
}

.is-smooth-enter {
  animation: smoothSwapFade 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--message-motion-delay, 0ms);
}

.client-roster.is-smooth-enter > *,
.portal-chat-thread.is-smooth-enter > *,
.admin-message-thread-list.is-smooth-enter > *,
.message-thread-summary.is-smooth-enter > *,
.message-template-list.is-smooth-enter > * {
  animation: smoothSwapItem 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--message-motion-delay, 0ms);
}

@keyframes smoothSwapFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes smoothSwapItem {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .message-center-grid > *,
  .portal-message-grid > *,
  .client-roster__button,
  .message-template-button,
  .portal-chat-bubble,
  .client-message-card,
  .message-thread-summary,
  .message-thread-summary__item,
  .admin-message-thread-shell,
  #clientMessageForm,
  #adminMessageCenterForm,
  .admin-button,
  .portal-section-tab,
  .portal-filter-chip,
  .portal-quick-chip,
  .portal-request-preset,
  .portal-action--ghost,
  .portal-channel-card,
  .portal-service-card,
  .portal-link-card,
  .command-topbar__theme,
  .command-rail__link,
  .logout-button {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 1180px) {
  body[data-portal-page="messages"] .portal-message-grid,
  body.portal-v2[data-portal-page="messages"] .portal-message-grid {
    grid-template-columns: 1fr;
  }
}

body.admin-v2 .admin-summary,
body.admin-v2 .admin-table-wrap,
body.portal-v2 .admin-summary,
body.portal-v2 .admin-table-wrap {
  border-radius: 28px;
  padding: 32px 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0)),
    rgba(17,22,37,0.88);
  border: 1px solid rgba(201,170,111,0.08);
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}

body.admin-v2 .admin-stats,
body.admin-v2 .admin-mini-cards,
body.portal-v2 .admin-stats,
body.portal-v2 .admin-mini-cards {
  gap: 14px;
  background: transparent;
}

body.admin-v2 .access-card,
body.admin-v2 .admin-kpi,
body.portal-v2 .access-card,
body.portal-v2 .admin-kpi {
  min-height: 154px;
  padding: 24px 24px 22px;
  border-radius: 22px;
  border: 1px solid rgba(201,170,111,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0)),
    rgba(19,24,40,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

body.admin-v2 .admin-note,
body.admin-v2 .admin-list-item,
body.admin-v2 .admin-empty,
body.portal-v2 .admin-note,
body.portal-v2 .admin-list-item,
body.portal-v2 .admin-empty {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.014), rgba(255,255,255,0)),
    rgba(11,15,27,0.9);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.command-dashboard {
  gap: 28px;
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.9fr);
  gap: 26px;
  align-items: stretch;
}

.command-hero__lead {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
}

.command-hero__aside {
  min-height: 100%;
}

.command-hero__copy {
  max-width: 60ch;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}

.command-hero__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
}

.command-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 26px;
}

.command-dashboard-grid--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-cluster,
.command-stack {
  margin-top: 6px;
}

.command-ledger-wrap .table-scroll {
  margin-top: 10px;
}

.command-ledger-table {
  min-width: 0;
}

.command-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.admin-v2 .portal-hero-copy,
body.portal-v2 .portal-hero-copy {
  max-width: 58ch;
}

@media (max-width: 1180px) {
  body.admin-v2 .admin-layout.command-main,
  body.portal-v2 .admin-layout.command-main {
    margin-left: 0;
  }

  .command-rail {
    position: relative;
    width: 100%;
    height: auto;
    inset: auto;
  }

  .command-topbar {
    position: relative;
    padding: 22px 24px;
  }

  .command-stage {
    padding: 24px;
  }

  .command-hero,
  .command-dashboard-grid,
  .command-dashboard-grid--equal {
    grid-template-columns: 1fr;
  }
}

body[data-theme="light"] {
  --ink:#efe8dc;
  --navy:#f6f1e7;
  --navy2:#fbf7f0;
  --navy3:#f1eadf;
  --surface:#fffaf3;
  --card:#fffaf4;
  --card2:#f6efe3;
  --border:rgba(74,57,33,0.09);
  --border2:rgba(74,57,33,0.18);
  --gold-dim:rgba(201,170,111,0.12);
  --gold-faint:rgba(201,170,111,0.06);
  --white:#1f1c16;
  --text:rgba(31,28,22,0.74);
  --muted:rgba(31,28,22,0.46);
  --faint:rgba(31,28,22,0.2);
  --ghost:rgba(31,28,22,0.04);
}

body[data-theme="light"] {
  background: linear-gradient(180deg, #f8f3ea 0%, #f3ede3 100%);
}

body[data-theme="light"] .command-rail {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.48)),
    rgba(246,241,231,0.96);
  border-right-color: rgba(74,57,33,0.08);
  box-shadow: 28px 0 54px rgba(90,72,44,0.12);
}

body[data-theme="light"] .command-rail__brand,
body[data-theme="light"] .command-account,
body[data-theme="light"] .command-rail__minor,
body[data-theme="light"] .command-topbar__linkset a,
body[data-theme="light"] .command-topbar__theme {
  background: rgba(255,255,255,0.74);
  border-color: rgba(141,108,56,0.22);
  color: rgba(122,89,39,0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

body[data-theme="light"] .command-topbar {
  background:
    linear-gradient(180deg, rgba(251,247,240,0.96), rgba(251,247,240,0.84)),
    rgba(251,247,240,0.88);
  border-bottom-color: rgba(74,57,33,0.08);
}

body[data-theme="light"] .command-rail__link {
  color: var(--text);
}

body[data-theme="light"] .command-rail__link:hover,
body[data-theme="light"] .command-rail__link.is-active {
  background:
    linear-gradient(90deg, rgba(201,170,111,0.14), rgba(201,170,111,0.02)),
    rgba(255,255,255,0.72);
  border-color: rgba(201,170,111,0.16);
  color: var(--white);
}

body[data-theme="light"] .command-topbar__clock,
body[data-theme="light"] .command-account__label,
body[data-theme="light"] .command-rail__section {
  color: var(--muted);
}

body[data-theme="light"] .command-pill--soft {
  background: rgba(31,28,22,0.04);
  border-color: rgba(31,28,22,0.08);
  color: var(--text);
}

body[data-theme="light"] .admin-summary,
body[data-theme="light"] .admin-table-wrap,
body[data-theme="light"] .access-card,
body[data-theme="light"] .admin-kpi,
body[data-theme="light"] .admin-note,
body[data-theme="light"] .admin-list-item,
body[data-theme="light"] .admin-empty,
body[data-theme="light"] .auth-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78)),
    rgba(255,250,243,0.96) !important;
  border-color: rgba(74,57,33,0.08) !important;
  box-shadow: 0 18px 36px rgba(90,72,44,0.08);
}

body[data-theme="light"] .admin-summary::before,
body[data-theme="light"] .admin-table-wrap::before,
body[data-theme="light"] .admin-note::after,
body[data-theme="light"] .admin-list-item::after,
body[data-theme="light"] .access-card::after,
body[data-theme="light"] .admin-kpi::after {
  background: linear-gradient(180deg, rgba(201,170,111,0.9), rgba(201,170,111,0.2));
}

body[data-theme="light"] .settings-form input,
body[data-theme="light"] .settings-form select,
body[data-theme="light"] .admin-form input,
body[data-theme="light"] .admin-form select,
body[data-theme="light"] .admin-form textarea,
body[data-theme="light"] .admin-select,
body[data-theme="light"] .admin-inline-input,
body[data-theme="light"] .p-fc {
  background: rgba(255,255,255,0.88);
  border-color: rgba(74,57,33,0.12);
  color: var(--text);
}

body[data-theme="light"] .settings-form input::placeholder,
body[data-theme="light"] .admin-form input::placeholder,
body[data-theme="light"] .admin-form textarea::placeholder,
body[data-theme="light"] .admin-inline-input::placeholder,
body[data-theme="light"] .p-fc::placeholder {
  color: rgba(31,28,22,0.34);
}

body[data-theme="light"] .user-detail-check {
  background: rgba(255,255,255,0.86);
  border-color: rgba(74,57,33,0.1);
  color: var(--white);
}

body[data-theme="light"] .inquiry-table th,
body[data-theme="light"] .p-table th {
  background: rgba(242,234,222,0.92);
}

body[data-theme="light"] .inquiry-table tr:hover td,
body[data-theme="light"] .p-table tr:hover td {
  background: rgba(201,170,111,0.06);
  color: var(--text);
}

body[data-theme="light"] .admin-button-ghost,
body[data-theme="light"] .logout-button,
body[data-theme="light"] .p-btn--ghost,
body[data-theme="light"] .p-btn--outline,
body[data-theme="light"] .command-rail__minor {
  color: var(--text);
}

body[data-theme="light"] .portal-chat-bubble {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88)),
    rgba(255,250,243,0.96);
  border-color: rgba(74,57,33,0.08);
}

body[data-theme="light"] .portal-chat-bubble--client {
  background:
    linear-gradient(180deg, rgba(201,170,111,0.18), rgba(201,170,111,0.05)),
    rgba(255,247,236,0.96);
}

body[data-theme="light"] .portal-chat-bubble__subject {
  color: var(--white);
}

body[data-theme="light"] .portal-chat-bubble__body,
body[data-theme="light"] .portal-chat-bubble__meta,
body[data-theme="light"] .portal-chat-bubble__status {
  color: var(--text);
}

body[data-theme="light"] .client-roster__button,
body[data-theme="light"] .client-summary-row,
body[data-theme="light"] .client-overview-card,
body[data-theme="light"] .client-stream-card,
body[data-theme="light"] .client-empty,
body[data-theme="light"] .record-detail-card,
body[data-theme="light"] .portal-stat-card,
body[data-theme="light"] .portal-data-pair,
body[data-theme="light"] .portal-record-focus-card,
body[data-theme="light"] .portal-asset-card,
body[data-theme="light"] .portal-request-card,
body[data-theme="light"] .portal-request-card__detail,
body[data-theme="light"] .portal-request-history__item,
body[data-theme="light"] .portal-toggle-card,
body[data-theme="light"] .portal-zero,
body[data-theme="light"] .portal-modal__panel,
body[data-theme="light"] .portal-asset-type,
body[data-theme="light"] .portal-asset-composer__intro,
body[data-theme="light"] .portal-quick-chip,
body[data-theme="light"] .portal-channel-card,
body[data-theme="light"] .portal-service-card,
body[data-theme="light"] .portal-request-preset,
body[data-theme="light"] .client-editor,
body[data-theme="light"] .client-history-item,
body[data-theme="light"] .portal-search,
body[data-theme="light"] .portal-topbar,
body[data-theme="light"] .portal-topbar-shell,
body[data-theme="light"] .portal-rail,
body[data-theme="light"] .portal-rail__brand,
body[data-theme="light"] .portal-rail__link {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,244,236,0.86)),
    rgba(255,250,243,0.96);
  border-color: rgba(74,57,33,0.08);
  box-shadow: 0 14px 26px rgba(90,72,44,0.08);
}

body[data-theme="light"] .portal-rail {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(247,241,231,0.92)),
    rgba(246,241,231,0.96);
  box-shadow: 24px 0 44px rgba(90,72,44,0.1);
}

body[data-theme="light"] .portal-topbar,
body[data-theme="light"] .portal-topbar-shell {
  box-shadow: 0 18px 34px rgba(90,72,44,0.08);
}

body[data-theme="light"] .portal-search input,
body[data-theme="light"] .portal-account__email,
body[data-theme="light"] .portal-stat-card__value,
body[data-theme="light"] .portal-asset-card__title,
body[data-theme="light"] .portal-data-pair strong,
body[data-theme="light"] .record-detail-card span,
body[data-theme="light"] .client-stream-card__title,
body[data-theme="light"] .client-summary-row strong,
body[data-theme="light"] .client-roster__name {
  color: var(--text);
}

body[data-theme="light"] .portal-asset-card__meta,
body[data-theme="light"] .portal-asset-card__copy,
body[data-theme="light"] .portal-hero-copy,
body[data-theme="light"] .portal-request-card__meta,
body[data-theme="light"] .portal-request-card__details,
body[data-theme="light"] .portal-request-card__footer,
body[data-theme="light"] .portal-zero,
body[data-theme="light"] .client-roster__meta,
body[data-theme="light"] .client-roster__sub,
body[data-theme="light"] .client-stream-card__meta,
body[data-theme="light"] .client-stream-card__sub,
body[data-theme="light"] .client-empty,
body[data-theme="light"] .portal-record-focus-card p,
body[data-theme="light"] .portal-chat-bubble__body {
  color: var(--text);
}

body[data-theme="light"] .message-thread-summary__item {
  border-top-color: rgba(141,108,56,0.18);
}

body[data-theme="light"] .message-thread-summary__item span,
body[data-theme="light"] .client-stream-card__meta,
body[data-theme="light"] .portal-chat-bubble__meta,
body[data-theme="light"] .portal-chat-bubble__status {
  color: var(--muted);
}

body[data-theme="light"] .message-thread-summary__item strong {
  color: var(--text);
}

body[data-theme="light"] .message-day-separator {
  color: rgba(74,57,33,0.46);
}

body[data-theme="light"] .message-day-separator::before,
body[data-theme="light"] .message-day-separator::after {
  background: linear-gradient(90deg, rgba(141,108,56,0), rgba(141,108,56,0.2), rgba(141,108,56,0));
}

body[data-theme="light"] .portal-action--ghost,
body[data-theme="light"] .portal-rail__link,
body[data-theme="light"] .portal-asset-type,
body[data-theme="light"] .portal-quick-chip,
body[data-theme="light"] .portal-request-preset,
body[data-theme="light"] .portal-filter-chip,
body[data-theme="light"] .portal-section-tab {
  color: var(--text);
}

body[data-theme="light"] .portal-action--ghost:hover,
body[data-theme="light"] .portal-rail__link:hover,
body[data-theme="light"] .portal-rail__link.active,
body[data-theme="light"] .portal-asset-type.active,
body[data-theme="light"] .portal-quick-chip:hover,
body[data-theme="light"] .portal-request-preset:hover,
body[data-theme="light"] .portal-request-preset.active,
body[data-theme="light"] .portal-channel-card:hover,
body[data-theme="light"] .portal-service-card:hover,
body[data-theme="light"] .portal-filter-chip.active,
body[data-theme="light"] .portal-section-tab.active {
  border-color: rgba(201,170,111,0.18);
  background:
    linear-gradient(180deg, rgba(201,170,111,0.16), rgba(201,170,111,0.05)),
    rgba(255,249,240,0.98);
  color: var(--white);
}

body[data-theme="light"] .client-editor[open] {
  background: rgba(246,239,227,0.72);
}

body[data-theme="light"] .client-history-item,
body[data-theme="light"] .portal-request-card__detail,
body[data-theme="light"] .portal-request-history__item,
body[data-theme="light"] .portal-toggle-card,
body[data-theme="light"] .portal-data-pair {
  background: rgba(255,255,255,0.74);
}

body[data-theme="light"] .admin-auth-card,
body[data-theme="light"] .auth-page {
  background: linear-gradient(180deg, #f8f3ea 0%, #f1eadf 100%);
}

@media(max-width:900px){
  .cursor{display:none!important;}
}

/* ================================================================
   Dashboard Revamp Layer
   ================================================================ */
:root {
  --command-rail-width: 292px;
  --command-stage-width: 1600px;
}

body.admin-v2,
body.portal-v2 {
  background:
    radial-gradient(circle at top left, rgba(201,170,111,0.14), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(89,122,255,0.12), transparent 25%),
    linear-gradient(180deg, #04060d 0%, #070a13 34%, #090d18 100%);
}

body.admin-v2::before,
body.portal-v2::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.82), transparent 82%);
  opacity: 0.22;
}

body.admin-v2 .admin-layout.command-main,
body.portal-v2 .admin-layout.command-main {
  position: relative;
  margin-left: var(--command-rail-width);
  min-height: 100vh;
  gap: 0;
}

.command-rail-overlay {
  position: fixed;
  inset: 0;
  z-index: 94;
  border: 0;
  background: rgba(4,6,13,0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.command-rail {
  width: var(--command-rail-width);
  padding: 20px 18px;
  background:
    linear-gradient(180deg, rgba(7,9,15,0.98), rgba(7,9,15,0.9)),
    rgba(7,9,15,0.95);
  border-right: 1px solid rgba(201,170,111,0.08);
  box-shadow: 30px 0 60px rgba(0,0,0,0.28);
}

.command-rail__brand {
  padding: 18px 18px 16px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(201,170,111,0.14), rgba(255,255,255,0.03) 48%, rgba(255,255,255,0.01)),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(201,170,111,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.command-rail__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.command-rail__wordmark {
  font-size: 17px;
  letter-spacing: 0.16em;
}

.command-rail__subline {
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 0.24em;
  color: rgba(238,241,248,0.52);
}

.command-rail__nav {
  gap: 18px;
}

.command-rail__group {
  gap: 10px;
}

.command-rail__section {
  padding: 0 12px;
  font-size: 8px;
  letter-spacing: 0.34em;
}

.command-rail__links {
  display: grid;
  gap: 6px;
}

.command-rail__link {
  min-height: 48px;
  padding: 12px 14px 12px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
}

.command-rail__link::before {
  left: 8px;
  top: 11px;
  bottom: 11px;
}

.command-rail__label {
  font-size: 12px;
  font-weight: 500;
}

.command-rail__footer {
  gap: 10px;
}

.command-rail__minor,
.command-rail__legacy {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.command-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px 32px;
  background:
    linear-gradient(180deg, rgba(6,9,16,0.96), rgba(6,9,16,0.82)),
    rgba(6,9,16,0.9);
  border-bottom: 1px solid rgba(201,170,111,0.08);
  backdrop-filter: blur(20px);
}

.command-topbar__utility {
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-topbar__menu {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(201,170,111,0.12);
  background: rgba(255,255,255,0.02);
}

.command-topbar__menu span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: var(--white);
}

.command-topbar__headline {
  gap: 8px;
}

.command-topbar__headline h1 {
  font-size: clamp(30px, 2.6vw, 42px);
  letter-spacing: -0.02em;
}

.command-topbar__headline p {
  max-width: 60ch;
  font-size: 12px;
  color: rgba(238,241,248,0.62);
}

.command-topbar__meta {
  gap: 12px;
}

.command-topbar__linkset a,
.command-topbar__theme,
.command-account {
  border-radius: 16px;
}

.command-stage {
  width: min(100%, var(--command-stage-width));
  margin: 0 auto;
  padding: 30px 32px 44px;
  gap: 26px;
}

.command-dashboard {
  gap: 26px;
}

.command-overview-band {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 24px;
}

.command-overview-panel {
  position: relative;
  overflow: hidden;
}

.command-overview-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -36% auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,170,111,0.18), transparent 62%);
  pointer-events: none;
}

.command-overview-panel--hero {
  display: grid;
  gap: 22px;
  min-height: 420px;
  align-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(201,170,111,0.2), transparent 32%),
    linear-gradient(135deg, rgba(14,18,31,0.98), rgba(10,14,25,0.92) 48%, rgba(16,24,44,0.95)),
    rgba(13,17,28,0.92) !important;
}

.command-overview-panel--ledger {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    rgba(13,18,30,0.92) !important;
}

.command-overview-copy {
  display: grid;
  gap: 14px;
  max-width: 66ch;
}

.command-overview-copy .admin-title {
  max-width: 10ch;
  font-size: clamp(42px, 5vw, 72px);
}

.command-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.command-signal-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(201,170,111,0.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
    rgba(255,255,255,0.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.command-signal-card span {
  font-family: var(--f-display);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold2);
}

.command-signal-card strong {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--white);
}

.command-panel {
  position: relative;
  overflow: hidden;
}

.command-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 24%);
  opacity: 0.85;
}

.command-dashboard-grid--spotlight {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
}

.command-dashboard-grid--tall .command-panel {
  min-height: 100%;
}

body.admin-v2 .admin-summary,
body.admin-v2 .admin-table-wrap,
body.portal-v2 .admin-summary,
body.portal-v2 .admin-table-wrap {
  border-radius: 30px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)),
    rgba(14,19,32,0.9);
  border: 1px solid rgba(201,170,111,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 22px 50px rgba(0,0,0,0.18);
}

body.admin-v2 .access-card,
body.admin-v2 .admin-kpi,
body.portal-v2 .access-card,
body.portal-v2 .admin-kpi,
.portal-stat-card {
  min-height: 170px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(201,170,111,0.08);
  background:
    radial-gradient(circle at top right, rgba(201,170,111,0.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    rgba(17,23,39,0.94);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 14px 30px rgba(0,0,0,0.14);
}

body.admin-v2 .access-card h3,
body.portal-v2 .portal-stat-card__value {
  font-size: clamp(34px, 3vw, 48px);
  letter-spacing: -0.03em;
}

body.admin-v2 .admin-note,
body.admin-v2 .admin-list-item,
body.admin-v2 .admin-empty,
body.portal-v2 .admin-note,
body.portal-v2 .admin-list-item,
body.portal-v2 .admin-empty {
  border-radius: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(201,170,111,0.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    rgba(11,16,29,0.92);
}

body.admin-v2 .admin-stats,
body.admin-v2 .admin-mini-cards,
body.portal-v2 .admin-stats,
body.portal-v2 .admin-mini-cards {
  gap: 14px;
  background: transparent;
}

body.admin-v2 .command-hero__stats,
body.portal-v2 .command-hero__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-v2 .section-heading,
body.portal-v2 .section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

body.admin-v2 .command-stack,
body.admin-v2 .command-cluster,
body.portal-v2 .command-stack,
body.portal-v2 .command-cluster {
  position: relative;
  z-index: 1;
}

body.admin-v2 .command-ledger-wrap .table-scroll,
body.portal-v2 .command-ledger-wrap .table-scroll {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(6,10,18,0.5);
  border: 1px solid rgba(201,170,111,0.05);
}

body.admin-v2 .inquiry-table th,
body.portal-v2 .inquiry-table th {
  background: rgba(15,20,34,0.92);
}

body.admin-v2 .command-actions,
body.portal-v2 .command-actions {
  gap: 12px;
}

body.admin-v2 .admin-button,
body.admin-v2 .logout-button,
body.portal-v2 .admin-button,
body.portal-v2 .logout-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
}

body.portal-v2 .portal-dashboard-summary .admin-title {
  max-width: 11ch;
}

body[data-theme="light"].admin-v2,
body[data-theme="light"].portal-v2 {
  background:
    radial-gradient(circle at top left, rgba(201,170,111,0.18), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(130,145,181,0.16), transparent 24%),
    linear-gradient(180deg, #f7f1e7 0%, #f1ebdf 100%);
}

body[data-theme="light"] .command-rail-overlay {
  background: rgba(60,42,18,0.16);
}

body[data-theme="light"] .command-rail {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(248,242,233,0.92)),
    rgba(246,241,231,0.94);
}

body[data-theme="light"] .command-rail__brand,
body[data-theme="light"] .command-topbar__linkset a,
body[data-theme="light"] .command-topbar__theme,
body[data-theme="light"] .command-account,
body[data-theme="light"] .command-topbar__menu {
  background: rgba(255,255,255,0.78);
  border-color: rgba(74,57,33,0.08);
}

body[data-theme="light"] .command-topbar {
  background:
    linear-gradient(180deg, rgba(251,247,240,0.96), rgba(251,247,240,0.84)),
    rgba(251,247,240,0.88);
}

body[data-theme="light"] .command-overview-panel--hero {
  background:
    radial-gradient(circle at top right, rgba(201,170,111,0.18), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,241,232,0.92) 50%, rgba(243,235,223,0.96)),
    rgba(255,250,243,0.96) !important;
}

body[data-theme="light"] .command-overview-panel--ledger,
body[data-theme="light"] .command-panel,
body[data-theme="light"] .portal-stat-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(252,248,241,0.86)),
    rgba(255,250,243,0.96) !important;
}

body[data-theme="light"] .command-signal-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(249,242,232,0.84)),
    rgba(255,250,243,0.96);
  border-color: rgba(74,57,33,0.08);
}

@media (max-width: 1180px) {
  body.admin-v2 .admin-layout.command-main,
  body.portal-v2 .admin-layout.command-main {
    margin-left: 0;
  }

  .command-rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 96;
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
  }

  body.command-rail-open .command-rail {
    transform: translateX(0);
  }

  body.command-rail-open .command-rail-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .command-topbar {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 22px 22px 20px;
  }

  .command-topbar__utility {
    justify-content: space-between;
    width: 100%;
  }

  .command-topbar__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .command-topbar__meta {
    width: 100%;
    justify-content: flex-start;
  }

  .command-stage {
    padding: 22px 20px 36px;
  }

  .command-overview-band,
  .command-dashboard-grid,
  .command-dashboard-grid--equal,
  .command-signal-grid {
    grid-template-columns: 1fr;
  }

  .command-overview-panel--hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .command-topbar__linkset {
    display: none;
  }

  .command-topbar__headline h1 {
    font-size: 28px;
  }

  .command-overview-copy .admin-title {
    font-size: 36px;
  }

  body.admin-v2 .command-hero__stats,
  body.portal-v2 .command-hero__stats,
  body.admin-v2 .admin-stats,
  body.admin-v2 .admin-mini-cards,
  body.portal-v2 .admin-stats,
  body.portal-v2 .admin-mini-cards {
    grid-template-columns: 1fr;
  }

  body.admin-v2 .admin-summary,
  body.admin-v2 .admin-table-wrap,
  body.portal-v2 .admin-summary,
  body.portal-v2 .admin-table-wrap {
    padding: 22px;
    border-radius: 24px;
  }

  body.admin-v2 .access-card,
  body.admin-v2 .admin-kpi,
  body.portal-v2 .access-card,
  body.portal-v2 .admin-kpi,
  .portal-stat-card {
    min-height: 148px;
  }
}

/* ================================================================
   Minimal Refinement Pass
   ================================================================ */
body.admin-v2,
body.portal-v2 {
  background:
    radial-gradient(circle at top right, rgba(201,170,111,0.08), transparent 26%),
    radial-gradient(circle at bottom left, rgba(120,143,199,0.07), transparent 20%),
    #06070b;
}

body.admin-v2::before,
body.portal-v2::before {
  background-image:
    linear-gradient(rgba(201,170,111,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,170,111,0.028) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.86), transparent 92%);
  opacity: 0.4;
}

:root {
  --command-rail-width: 272px;
  --command-stage-width: 1480px;
}

.command-rail {
  padding: 18px 16px;
  background: rgba(6,7,11,0.72);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.command-rail__brand {
  padding: 14px 12px 18px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
}

.command-rail__section {
  padding: 0 12px 2px;
}

.command-rail__group + .command-rail__group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(201,170,111,0.08);
}

.command-rail__link {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(201,170,111,0.05);
  background: transparent;
}

.command-rail__link::before {
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  border-radius: 0;
}

.command-rail__link:hover,
.command-rail__link.is-active {
  background: transparent;
  border-color: rgba(201,170,111,0.1);
}

.command-rail__minor,
.command-rail__legacy {
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 0;
  border: 1px solid rgba(201,170,111,0.14);
  background: rgba(255,255,255,0.02);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.command-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 22px 32px 18px;
  background: rgba(6,7,11,0.64);
  border-bottom: 1px solid rgba(201,170,111,0.1);
  backdrop-filter: blur(14px);
}

.command-topbar__linkset a,
.command-topbar__theme,
.command-account {
  border-radius: 0;
  box-shadow: none;
}

.command-topbar__linkset a,
.command-account,
.command-topbar__theme,
.command-topbar__menu {
  background: transparent;
  border-color: rgba(201,170,111,0.12);
}

.command-topbar__headline {
  gap: 6px;
}

.command-topbar__headline h1 {
  font-size: clamp(28px, 2.5vw, 40px);
}

.command-stage {
  padding: 34px 32px 56px;
  gap: 34px;
}

.command-overview-band {
  position: relative;
  gap: 34px;
  padding: 18px 0 10px;
  border-top: 1px solid rgba(201,170,111,0.12);
}

.command-overview-panel,
.command-panel,
.admin-table-wrap.command-panel,
.admin-table-wrap.command-ledger-wrap,
.admin-summary.command-overview-panel {
  overflow: visible;
}

.command-overview-panel::after,
.command-panel::after {
  display: none;
}

body.admin-v2 .admin-summary,
body.admin-v2 .admin-table-wrap,
body.portal-v2 .admin-summary,
body.portal-v2 .admin-table-wrap {
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

.command-overview-panel--hero,
.command-overview-panel--ledger {
  min-height: auto;
  align-content: start;
}

.command-overview-panel--ledger {
  padding-left: 34px !important;
  border-left: 1px solid rgba(201,170,111,0.12) !important;
}

.command-overview-copy {
  gap: 12px;
}

.command-overview-copy .admin-title {
  max-width: 9ch;
  font-size: clamp(40px, 5vw, 78px);
}

.command-hero__copy,
body.admin-v2 .portal-hero-copy,
body.portal-v2 .portal-hero-copy {
  max-width: 62ch;
  color: var(--text);
  font-size: 13px;
  line-height: 1.95;
}

.command-actions,
.admin-summary-actions {
  margin-top: 10px;
}

.command-signal-grid {
  gap: 10px;
}

.command-signal-card {
  padding: 14px 0 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(201,170,111,0.12);
  background: transparent;
  box-shadow: none;
}

.command-dashboard-grid,
.command-dashboard-grid--equal,
.command-dashboard-grid--spotlight {
  gap: 34px;
}

.command-dashboard-grid--tall,
.command-dashboard-grid--equal {
  align-items: start;
}

body.admin-v2 .section-heading,
body.portal-v2 .section-heading {
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(201,170,111,0.12);
}

body.admin-v2 .section-heading > div,
body.portal-v2 .section-heading > div {
  gap: 4px;
}

body.admin-v2 .admin-stats,
body.admin-v2 .admin-mini-cards,
body.portal-v2 .admin-stats,
body.portal-v2 .admin-mini-cards {
  gap: 18px;
}

body.admin-v2 .access-card,
body.admin-v2 .admin-kpi,
body.portal-v2 .access-card,
body.portal-v2 .admin-kpi,
.portal-stat-card {
  min-height: 0;
  padding: 16px 0 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(201,170,111,0.12);
  background: transparent;
  box-shadow: none;
}

body.admin-v2 .access-card::after,
body.admin-v2 .admin-kpi::after,
body.portal-v2 .access-card::after,
body.portal-v2 .admin-kpi::after,
body.admin-v2 .admin-note::after,
body.admin-v2 .admin-list-item::after,
body.portal-v2 .admin-note::after,
body.portal-v2 .admin-list-item::after,
body.admin-v2 .admin-table-wrap::before,
body.portal-v2 .admin-table-wrap::before {
  display: none;
}

body.admin-v2 .access-card h3,
body.portal-v2 .portal-stat-card__value {
  font-size: clamp(30px, 2.6vw, 44px);
}

.portal-stat-card {
  gap: 8px;
}

.portal-stat-card__label,
.admin-kpi-label,
.service-index,
.eyebrow {
  color: var(--gold-soft);
}

body.admin-v2 .admin-note,
body.admin-v2 .admin-list-item,
body.admin-v2 .admin-empty,
body.portal-v2 .admin-note,
body.portal-v2 .admin-list-item,
body.portal-v2 .admin-empty {
  padding: 16px 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(201,170,111,0.08);
  background: transparent;
  box-shadow: none;
}

body.admin-v2 .admin-list-item h3,
body.portal-v2 .admin-list-item h3,
body.portal-v2 .portal-request-card__summary h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
}

/* Portal Finish Pass */
body.portal-v2 .section-heading {
  margin-bottom: 24px;
  padding-top: 16px;
  border-top-color: rgba(201,170,111,0.16);
}

body.portal-v2 .access-card,
body.portal-v2 .admin-kpi,
body.portal-v2 .portal-stat-card,
body.portal-v2 .admin-note,
body.portal-v2 .admin-list-item,
body.portal-v2 .admin-empty,
body.portal-v2 .portal-data-pair,
body.portal-v2 .portal-record-focus-card,
body.portal-v2 .portal-request-card__detail,
body.portal-v2 .portal-request-history__item,
body.portal-v2 .portal-toggle-card,
body.portal-v2 .portal-channel-card,
body.portal-v2 .portal-service-card,
body.portal-v2 .portal-request-preset,
body.portal-v2 .portal-asset-composer__intro,
body.portal-v2 .portal-search,
body.portal-v2 .portal-asset-card,
body.portal-v2 .portal-request-card,
body.portal-v2 .portal-modal__panel {
  background: transparent !important;
  box-shadow: none !important;
}

body.portal-v2 .access-card,
body.portal-v2 .admin-kpi,
body.portal-v2 .portal-stat-card {
  padding: 20px 0 0;
  border-top: 1px solid rgba(201,170,111,0.16);
}

body.portal-v2 .admin-note,
body.portal-v2 .admin-list-item,
body.portal-v2 .admin-empty {
  padding: 20px 0;
  border-top: 1px solid rgba(201,170,111,0.12);
}

body.portal-v2 .portal-data-pair,
body.portal-v2 .portal-record-focus-card,
body.portal-v2 .portal-request-card__detail,
body.portal-v2 .portal-request-history__item,
body.portal-v2 .portal-toggle-card,
body.portal-v2 .portal-channel-card,
body.portal-v2 .portal-service-card,
body.portal-v2 .portal-request-preset,
body.portal-v2 .portal-asset-composer__intro {
  padding: 16px 0;
  border: 0;
  border-top: 1px solid rgba(201,170,111,0.14);
  border-radius: 0;
}

body.portal-v2 .portal-search {
  border: 0;
  border-top: 1px solid rgba(201,170,111,0.14);
  border-radius: 0;
  padding: 0 0 0 14px;
}

body.portal-v2 .portal-search input {
  min-height: 52px;
}

body.portal-v2 .portal-asset-card,
body.portal-v2 .portal-request-card,
body.portal-v2 .portal-modal__panel {
  border: 1px solid rgba(201,170,111,0.12);
  border-radius: 0;
}

body.portal-v2 .portal-asset-card {
  padding: 24px 0 0;
}

body.portal-v2 .portal-request-card__summary,
body.portal-v2 .portal-request-card__details {
  padding-left: 0;
  padding-right: 0;
}

body.portal-v2 .portal-modal__panel {
  padding: 24px;
}

body.portal-v2 .portal-hero-copy,
body.portal-v2 .admin-note,
body.portal-v2 .admin-list-item,
body.portal-v2 .portal-asset-card__meta,
body.portal-v2 .portal-asset-card__copy,
body.portal-v2 .portal-request-card__meta,
body.portal-v2 .portal-request-card__details,
body.portal-v2 .portal-request-card__footer,
body.portal-v2 .portal-zero {
  line-height: 1.88;
}

body.portal-v2 .portal-stat-card__value,
body.portal-v2 .portal-asset-card__title,
body.portal-v2 .portal-request-card__summary h3,
body.portal-v2 .portal-channel-card strong,
body.portal-v2 .portal-service-card strong {
  letter-spacing: 0.01em;
}

body[data-theme="light"].portal-v2 .section-heading,
body[data-theme="light"].portal-v2 .access-card,
body[data-theme="light"].portal-v2 .admin-kpi,
body[data-theme="light"].portal-v2 .portal-stat-card,
body[data-theme="light"].portal-v2 .admin-note,
body[data-theme="light"].portal-v2 .admin-list-item,
body[data-theme="light"].portal-v2 .admin-empty,
body[data-theme="light"].portal-v2 .portal-data-pair,
body[data-theme="light"].portal-v2 .portal-record-focus-card,
body[data-theme="light"].portal-v2 .portal-request-card__detail,
body[data-theme="light"].portal-v2 .portal-request-history__item,
body[data-theme="light"].portal-v2 .portal-toggle-card,
body[data-theme="light"].portal-v2 .portal-channel-card,
body[data-theme="light"].portal-v2 .portal-service-card,
body[data-theme="light"].portal-v2 .portal-request-preset,
body[data-theme="light"].portal-v2 .portal-asset-composer__intro,
body[data-theme="light"].portal-v2 .portal-search,
body[data-theme="light"].portal-v2 .portal-asset-card,
body[data-theme="light"].portal-v2 .portal-request-card,
body[data-theme="light"].portal-v2 .portal-modal__panel {
  border-color: rgba(141,108,56,0.16);
}

body.admin-v2 .command-ledger-wrap .table-scroll,
body.portal-v2 .command-ledger-wrap .table-scroll {
  margin-top: 6px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

body.admin-v2 .inquiry-table,
body.portal-v2 .inquiry-table {
  border-top: 1px solid rgba(201,170,111,0.12);
}

body.admin-v2 .inquiry-table th,
body.portal-v2 .inquiry-table th {
  padding: 14px 12px 14px 0;
  background: transparent;
  border-bottom-color: rgba(201,170,111,0.08);
}

body.admin-v2 .inquiry-table td,
body.portal-v2 .inquiry-table td {
  padding: 16px 12px 16px 0;
  border-bottom-color: rgba(201,170,111,0.06);
}

body.admin-v2 .inquiry-table tr:hover td,
body.portal-v2 .inquiry-table tr:hover td {
  background: transparent;
}

body.admin-v2 .admin-button,
body.admin-v2 .logout-button,
body.portal-v2 .admin-button,
body.portal-v2 .logout-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(223,196,140,0.98), rgba(201,170,111,0.98));
  color: var(--navy);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  transform: none !important;
  filter: brightness(1);
  transition:
    border-color 1.18s cubic-bezier(0.19, 1, 0.22, 1),
    color 0.92s cubic-bezier(0.19, 1, 0.22, 1),
    background 1.18s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 1.18s cubic-bezier(0.19, 1, 0.22, 1),
    filter 1.18s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: 0.08s;
}

body.admin-v2 .admin-button-ghost,
body.portal-v2 .admin-button-ghost {
  background: transparent;
  border-color: rgba(201,170,111,0.14);
  color: var(--gold-soft);
}

body.admin-v2 .admin-button-inline,
body.admin-v2 .logout-button.admin-button-inline,
body.portal-v2 .admin-button-inline,
body.portal-v2 .logout-button.admin-button-inline {
  min-height: 34px;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

body.admin-v2 .admin-button::before,
body.admin-v2 .logout-button::before,
body.portal-v2 .admin-button::before,
body.portal-v2 .logout-button::before {
  display: none;
}

body.admin-v2 .admin-button > *,
body.admin-v2 .logout-button > *,
body.portal-v2 .admin-button > *,
body.portal-v2 .logout-button > * {
  position: relative;
  z-index: 1;
}

body.admin-v2 .admin-button:hover,
body.admin-v2 .logout-button:hover,
body.portal-v2 .admin-button:hover,
body.portal-v2 .logout-button:hover,
.command-rail__minor:hover,
.command-rail__legacy:hover {
  transition-delay: 0.08s;
}

body.admin-v2 .admin-button:not(.admin-button-ghost):not(.admin-button-danger):hover,
body.admin-v2 .logout-button:hover,
body.portal-v2 .admin-button:not(.admin-button-ghost):not(.admin-button-danger):hover,
body.portal-v2 .logout-button:hover {
  border-color: var(--gold-soft);
  filter: brightness(1.04) saturate(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 0 0 1px rgba(201,170,111,0.12),
    0 0 20px rgba(201,170,111,0.16),
    0 14px 30px rgba(0,0,0,0.18);
}

body.admin-v2 .admin-button-ghost:hover,
body.portal-v2 .admin-button-ghost:hover,
.command-rail__minor:hover,
.command-rail__legacy:hover {
  border-color: rgba(201,170,111,0.52);
  background: rgba(201,170,111,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 32px rgba(0,0,0,0.18);
  color: var(--white);
}

body:not([data-theme="light"]).admin-v2 .admin-button:not(.admin-button-ghost):not(.admin-button-danger)::before,
body:not([data-theme="light"]).admin-v2 .logout-button::before,
body:not([data-theme="light"]).portal-v2 .admin-button:not(.admin-button-ghost):not(.admin-button-danger)::before,
body:not([data-theme="light"]).portal-v2 .logout-button::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(223,196,140,0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition:
    opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

body:not([data-theme="light"]).admin-v2 .admin-button:not(.admin-button-ghost):not(.admin-button-danger):hover::before,
body:not([data-theme="light"]).admin-v2 .logout-button:hover::before,
body:not([data-theme="light"]).portal-v2 .admin-button:not(.admin-button-ghost):not(.admin-button-danger):hover::before,
body:not([data-theme="light"]).portal-v2 .logout-button:hover::before {
  opacity: 1;
  border-color: rgba(242,218,168,0.32);
  box-shadow:
    0 0 0 1px rgba(223,196,140,0.1),
    0 0 26px rgba(201,170,111,0.18);
}

body[data-theme="light"].admin-v2,
body[data-theme="light"].portal-v2 {
  background:
    radial-gradient(circle at top right, rgba(201,170,111,0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(120,143,199,0.08), transparent 24%),
    linear-gradient(180deg, #fbf6ed 0%, #f3ebde 100%);
}

body[data-theme="light"] .command-rail,
body[data-theme="light"] .command-topbar {
  background: rgba(250,245,236,0.78);
}

body[data-theme="light"] .command-rail__brand,
body[data-theme="light"] .command-topbar__linkset a,
body[data-theme="light"] .command-account,
body[data-theme="light"] .command-topbar__theme,
body[data-theme="light"] .command-topbar__menu {
  background: rgba(255,255,255,0.74);
}

body[data-theme="light"] .command-rail__minor,
body[data-theme="light"] .command-rail__legacy {
  background: transparent;
  border-color: rgba(141,108,56,0.28);
  color: #6c5125;
}

body[data-theme="light"] .admin-button-ghost,
body[data-theme="light"] .command-rail__minor,
body[data-theme="light"] .command-rail__legacy,
body[data-theme="light"] .admin-button.admin-button-ghost {
  box-shadow: none;
  filter: brightness(1);
  transition:
    border-color 1.55s cubic-bezier(0.19, 1, 0.22, 1) !important,
    color 1.32s cubic-bezier(0.19, 1, 0.22, 1) !important,
    background 1.55s cubic-bezier(0.19, 1, 0.22, 1) !important,
    box-shadow 1.55s cubic-bezier(0.19, 1, 0.22, 1) !important,
    filter 1.55s cubic-bezier(0.19, 1, 0.22, 1) !important;
  transition-delay: 0.08s !important;
}

body[data-theme="light"] .admin-button-ghost:hover,
body[data-theme="light"] .command-rail__minor:hover,
body[data-theme="light"] .command-rail__legacy:hover {
  border-color: rgba(141,108,56,0.38);
  background: rgba(141,108,56,0.08);
  color: #523c19;
  box-shadow: 0 10px 24px rgba(109,83,41,0.06);
  filter: brightness(1.08);
}

body[data-theme="light"] .admin-button:not(.admin-button-ghost):not(.admin-button-danger),
body[data-theme="light"] .logout-button,
body[data-theme="light"] .admin-button:not(.admin-button-ghost):not(.admin-button-danger) {
  border: none;
  background: linear-gradient(180deg, rgba(223,196,140,0.96), rgba(201,170,111,0.96));
  color: #20170b;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 14px 30px rgba(109,83,41,0.08);
  filter: brightness(1);
  transition:
    border-color 1.55s cubic-bezier(0.19, 1, 0.22, 1) !important,
    color 1.32s cubic-bezier(0.19, 1, 0.22, 1) !important,
    box-shadow 1.55s cubic-bezier(0.19, 1, 0.22, 1) !important,
    filter 1.55s cubic-bezier(0.19, 1, 0.22, 1) !important;
  transition-delay: 0.08s !important;
}

body[data-theme="light"] .admin-button:not(.admin-button-ghost):not(.admin-button-danger):hover,
body[data-theme="light"] .logout-button:hover {
  border: none;
  color: #1c1409;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 12px 28px rgba(109,83,41,0.1);
  filter: brightness(1.06);
}

body[data-theme="light"] .command-signal-card,
body[data-theme="light"] .access-card,
body[data-theme="light"] .admin-kpi,
body[data-theme="light"] .portal-stat-card,
body[data-theme="light"] .admin-note,
body[data-theme="light"] .admin-list-item {
  background: transparent !important;
}

body.portal-v2 .access-card,
body.portal-v2 .admin-kpi,
body.portal-v2 .portal-stat-card {
  padding-top: 20px;
  border-top-color: rgba(201,170,111,0.16);
}

body.portal-v2 .admin-note,
body.portal-v2 .admin-list-item,
body.portal-v2 .admin-empty {
  padding: 20px 0;
  border-top-color: rgba(201,170,111,0.12);
}

body.portal-v2 .portal-data-pair,
body.portal-v2 .portal-record-focus-card,
body.portal-v2 .portal-request-card__detail,
body.portal-v2 .portal-request-history__item,
body.portal-v2 .portal-toggle-card,
body.portal-v2 .portal-channel-card,
body.portal-v2 .portal-service-card,
body.portal-v2 .portal-request-preset,
body.portal-v2 .portal-asset-composer__intro {
  border-color: rgba(201,170,111,0.14);
  border-top-width: 1px;
  padding-top: 16px;
  padding-bottom: 16px;
}

body.portal-v2 .portal-asset-card,
body.portal-v2 .portal-request-card,
body.portal-v2 .portal-modal__panel {
  border-color: rgba(201,170,111,0.12);
}

body.portal-v2 .section-heading {
  margin-bottom: 28px;
}

body.portal-v2 .admin-summary-actions {
  padding-top: 18px;
}

body.portal-v2 .portal-hero-copy,
body.portal-v2 .admin-note,
body.portal-v2 .admin-list-item,
body.portal-v2 .portal-asset-card__meta,
body.portal-v2 .portal-asset-card__copy,
body.portal-v2 .portal-request-card__meta,
body.portal-v2 .portal-request-card__details,
body.portal-v2 .portal-request-card__footer,
body.portal-v2 .portal-zero {
  line-height: 1.82;
}

body.portal-v2 .portal-channel-card strong,
body.portal-v2 .portal-service-card strong,
body.portal-v2 .portal-request-card__summary h3,
body.portal-v2 .portal-asset-card__title,
body.portal-v2 .portal-stat-card__value {
  letter-spacing: 0.01em;
}

body[data-theme="light"].portal-v2 .access-card,
body[data-theme="light"].portal-v2 .admin-kpi,
body[data-theme="light"].portal-v2 .portal-stat-card,
body[data-theme="light"].portal-v2 .admin-note,
body[data-theme="light"].portal-v2 .admin-list-item,
body[data-theme="light"].portal-v2 .admin-empty,
body[data-theme="light"].portal-v2 .portal-data-pair,
body[data-theme="light"].portal-v2 .portal-record-focus-card,
body[data-theme="light"].portal-v2 .portal-request-card__detail,
body[data-theme="light"].portal-v2 .portal-request-history__item,
body[data-theme="light"].portal-v2 .portal-toggle-card,
body[data-theme="light"].portal-v2 .portal-channel-card,
body[data-theme="light"].portal-v2 .portal-service-card,
body[data-theme="light"].portal-v2 .portal-request-preset,
body[data-theme="light"].portal-v2 .portal-asset-composer__intro,
body[data-theme="light"].portal-v2 .portal-asset-card,
body[data-theme="light"].portal-v2 .portal-request-card,
body[data-theme="light"].portal-v2 .portal-modal__panel {
  border-color: rgba(141,108,56,0.16);
}

@media (max-width: 1180px) {
  .command-overview-band,
  .command-dashboard-grid,
  .command-dashboard-grid--equal,
  .command-dashboard-grid--spotlight,
  .command-signal-grid {
    gap: 26px;
  }

  .command-overview-panel--ledger {
    padding-left: 0 !important;
    border-left: 0 !important;
  }
}

@media (max-width: 720px) {
  .command-stage {
    padding: 24px 20px 40px;
  }

  .command-overview-copy .admin-title {
    font-size: 34px;
  }

  body.admin-v2 .access-card,
  body.admin-v2 .admin-kpi,
  body.portal-v2 .access-card,
  body.portal-v2 .admin-kpi,
  .portal-stat-card {
    padding-top: 14px;
  }
}

/* ================================================================
   Admin Sweep: Non-Dashboard Pages
   ================================================================ */
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .command-stage {
  gap: 30px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-summary {
  display: grid;
  gap: 16px;
  padding: 6px 0 0;
  border-top: 1px solid rgba(201,170,111,0.14);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-summary .admin-title {
  max-width: 12ch;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.96;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-summary .admin-stats {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(201,170,111,0.08);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-panel-grid,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-card-grid,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .dashboard-widget-grid,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-command-grid,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .message-center-grid {
  gap: 28px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-table-wrap,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-command-toolbar,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-command-panel-group {
  padding-top: 8px;
  border-top: 1px solid rgba(201,170,111,0.12);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .section-heading {
  margin-bottom: 16px;
  padding-top: 0;
  border-top: 0;
  align-items: end;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .section-heading__actions,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-summary-actions {
  gap: 12px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-subtitle {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.04;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-compact,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-table-meta,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-note,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-list-item p,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-roster__meta,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-roster__sub,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-stream-card__meta,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-stream-card__sub,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-empty,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .settings-status {
  font-size: 13px;
  line-height: 1.85;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-note strong,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-empty strong,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-overview-card strong,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-stream-card__sub strong,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-history-item strong {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-note,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-list-item,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-empty,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-overview-card,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-stream-card,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-empty,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-history-item,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .record-detail-card {
  padding: 18px 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(201,170,111,0.08);
  background: transparent;
  box-shadow: none;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-list,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-stack,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-stream,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-message-list,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-document-list,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-roster {
  gap: 0;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-roster__button,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-summary-row,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-history-item {
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(201,170,111,0.08);
  background: transparent;
  box-shadow: none;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-roster__button {
  padding: 16px 0 16px 14px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-roster__button:hover,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-roster__button.is-active {
  background: transparent;
  border-color: rgba(201,170,111,0.16);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-roster__button::before {
  width: 1px;
  inset: 14px auto 14px 0;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-roster__name,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-stream-card__title {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.01em;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-summary-list {
  gap: 0;
  background: transparent;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-summary-row {
  gap: 6px;
  padding: 14px 0;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-summary-row span,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-summary-section > span {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-summary-row strong {
  font-size: 14px;
  font-weight: 500;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-chip,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-pill,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .portal-section-tab {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-pill,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-chip {
  min-height: 30px;
  padding: 0 12px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .portal-section-tabs {
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(201,170,111,0.08);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .portal-section-tab {
  min-height: 40px;
  padding: 0 16px;
  border-width: 1px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .table-scroll {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(201,170,111,0.08);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .inquiry-table {
  min-width: 960px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .inquiry-table th {
  padding: 14px 14px 14px 0;
  background: transparent;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  border-bottom-color: rgba(201,170,111,0.08);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .inquiry-table td {
  padding: 16px 14px 16px 0;
  font-size: 13px;
  line-height: 1.75;
  border-bottom-color: rgba(201,170,111,0.06);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-table-link strong,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-table-link-anchor,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .user-directory-link strong {
  font-size: 14px;
  font-weight: 500;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .settings-form,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form {
  gap: 16px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form label,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .settings-form label {
  gap: 8px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .settings-form input,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .settings-form select,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form input,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form select,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form textarea,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-select,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-inline-input {
  min-height: 46px;
  padding: 12px 14px;
  border-color: rgba(201,170,111,0.14);
  background: rgba(10,14,26,0.42);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form textarea {
  min-height: 136px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .settings-form input:focus,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .settings-form select:focus,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form input:focus,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form select:focus,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form textarea:focus,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-select:focus,
body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-inline-input:focus {
  border-color: rgba(201,170,111,0.4);
  background: rgba(13,18,31,0.6);
  box-shadow: 0 0 0 1px rgba(201,170,111,0.12);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-inline-input {
  max-width: 280px;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-modal__dialog {
  padding: 24px 26px !important;
  border-top: 1px solid rgba(201,170,111,0.12) !important;
  background: rgba(9,12,20,0.96) !important;
  box-shadow: 0 34px 90px rgba(0,0,0,0.34);
  max-height: min(calc(100vh - 48px), 980px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-modal__head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201,170,111,0.08);
}

body.admin-v2[data-admin-page="settings"] .admin-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow actions"
    "title actions"
    "stats stats";
  align-items: end;
}

body.admin-v2[data-admin-page="settings"] .admin-summary > .eyebrow {
  grid-area: eyebrow;
}

body.admin-v2[data-admin-page="settings"] .admin-summary > .admin-title {
  grid-area: title;
  max-width: none;
}

body.admin-v2[data-admin-page="settings"] .admin-summary .admin-summary-actions {
  grid-area: actions;
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  margin-top: 0;
  align-self: start;
}

body.admin-v2[data-admin-page="settings"] .admin-summary .admin-stats {
  grid-area: stats;
  position: relative;
  z-index: 1;
}

body.admin-v2[data-admin-page="record"] #recordDetail,
body.admin-v2[data-admin-page="record"] #recordTimeline,
body.admin-v2[data-admin-page="record"] #recordRelated,
body.admin-v2[data-admin-page="record"] #recordActionForm {
  padding-top: 4px;
}

body.admin-v2[data-admin-page="clients"] .client-command-toolbar {
  gap: 18px;
}

body.admin-v2[data-admin-page="clients"] .client-command-panel-group[hidden] {
  display: none !important;
}

body.admin-v2[data-admin-page="clients"] .client-command-grid {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}

body.admin-v2[data-admin-page="clients"] .client-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.admin-v2[data-admin-page="clients"] .section-heading {
  align-items: start;
  gap: 14px;
}

body.admin-v2[data-admin-page="clients"] .section-heading__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.admin-v2[data-admin-page="clients"] #clientCommandSearch {
  width: min(100%, 260px);
  min-width: 0;
}

body.admin-v2[data-admin-page="clients"] .client-roster__button {
  gap: 8px;
  padding: 16px 0 16px 14px;
}

body.admin-v2[data-admin-page="clients"] .client-roster__button::before {
  inset: 14px auto 14px 0;
}

body.admin-v2[data-admin-page="clients"] .client-roster__title,
body.admin-v2[data-admin-page="clients"] .client-roster__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body.admin-v2[data-admin-page="clients"] .client-roster__name,
body.admin-v2[data-admin-page="clients"] .client-stream-card__title {
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.08;
}

body.admin-v2[data-admin-page="clients"] .client-command-panel .section-heading {
  margin-bottom: 12px;
}

body.admin-v2[data-admin-page="clients"] #clientCommandMeta {
  line-height: 1.6;
  word-break: break-word;
}

body.admin-v2[data-admin-page="clients"] #clientCommandStats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-v2[data-admin-page="clients"] .client-overview-card,
body.admin-v2[data-admin-page="clients"] .client-stream-card {
  padding: 16px 0;
}

body.admin-v2[data-admin-page="clients"] .client-overview-card strong,
body.admin-v2[data-admin-page="clients"] .client-stream-card__sub strong {
  font-size: 15px;
  line-height: 1.18;
  margin-bottom: 8px;
}

body.admin-v2[data-admin-page="clients"] .client-stream-card__head {
  align-items: start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

body.admin-v2[data-admin-page="clients"] .client-stream-card__meta,
body.admin-v2[data-admin-page="clients"] .client-stream-card__sub,
body.admin-v2[data-admin-page="clients"] .client-overview-card,
body.admin-v2[data-admin-page="clients"] .client-summary-row strong {
  line-height: 1.6;
}

body.admin-v2[data-admin-page="clients"] .client-stream-card .action-row,
body.admin-v2[data-admin-page="clients"] .client-command-toolbar .section-heading__actions {
  flex-wrap: wrap;
}

body.admin-v2[data-admin-page="clients"] .client-message-list,
body.admin-v2[data-admin-page="clients"] .client-document-list,
body.admin-v2[data-admin-page="clients"] .client-stream {
  gap: 0;
}

body.admin-v2[data-admin-page="clients"] .client-inline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.admin-v2[data-admin-page="messages"] .client-message-list,
body.admin-v2[data-admin-page="clients"] .client-message-list {
  gap: 0;
}

body.admin-v2[data-admin-page="messages"] .messages-log-table,
/* admin-v2 users table — natural layout, min-widths per column, horizontal scroll */
body.admin-v2[data-admin-page="users"] .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.admin-v2[data-admin-page="users"] .users-table {
  /* No table-layout:fixed — let browser compute widths naturally */
  table-layout: auto;
  min-width: 1320px;
  border-collapse: collapse;
}

body.admin-v2[data-admin-page="users"] .users-table th,
body.admin-v2[data-admin-page="users"] .users-table td {
  vertical-align: top;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* Per-column min-widths so content isn't crushed */
body.admin-v2[data-admin-page="users"] .users-table th:nth-child(1),
body.admin-v2[data-admin-page="users"] .users-table td:nth-child(1) { min-width: 220px; }
body.admin-v2[data-admin-page="users"] .users-table th:nth-child(2),
body.admin-v2[data-admin-page="users"] .users-table td:nth-child(2) { min-width: 120px; }
body.admin-v2[data-admin-page="users"] .users-table th:nth-child(3),
body.admin-v2[data-admin-page="users"] .users-table td:nth-child(3) { min-width: 150px; }
body.admin-v2[data-admin-page="users"] .users-table th:nth-child(4),
body.admin-v2[data-admin-page="users"] .users-table td:nth-child(4) { min-width: 130px; }
body.admin-v2[data-admin-page="users"] .users-table th:nth-child(5),
body.admin-v2[data-admin-page="users"] .users-table td:nth-child(5) { min-width: 160px; }
body.admin-v2[data-admin-page="users"] .users-table th:nth-child(6),
body.admin-v2[data-admin-page="users"] .users-table td:nth-child(6) { min-width: 110px; }
body.admin-v2[data-admin-page="users"] .users-table th:nth-child(7),
body.admin-v2[data-admin-page="users"] .users-table td:nth-child(7) { min-width: 90px; }
body.admin-v2[data-admin-page="users"] .users-table th:nth-child(8),
body.admin-v2[data-admin-page="users"] .users-table td:nth-child(8) { min-width: 140px; }
body.admin-v2[data-admin-page="users"] .users-table th:nth-child(9),
body.admin-v2[data-admin-page="users"] .users-table td:nth-child(9) { min-width: 130px; }

body.admin-v2[data-admin-page="users"] .users-table .admin-select,
body.admin-v2[data-admin-page="users"] .users-table .admin-inline-input {
  width: 100%;
  max-width: none;
  font-size: 11.5px;
}

body.admin-v2[data-admin-page="users"] .users-table .admin-table-meta {
  margin-top: 6px;
  line-height: 1.55;
  font-size: 11px;
  color: var(--muted);
}

body.admin-v2[data-admin-page="users"] .users-table .action-row {
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

body.admin-v2[data-admin-page="users"] .users-table strong {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-admin-page="messages"] .message-center-grid,
body.admin-v2[data-admin-page="messages"] .message-center-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 0.84fr) minmax(0, 1.46fr);
  grid-template-areas: "users threads chat";
  align-items: start;
  gap: 26px;
}

body[data-admin-page="messages"] .admin-message-pane--users,
body.admin-v2[data-admin-page="messages"] .admin-message-pane--users {
  grid-area: users;
  order: 1;
  min-width: 0;
}

body[data-admin-page="messages"] .admin-message-pane--threads,
body.admin-v2[data-admin-page="messages"] .admin-message-pane--threads {
  grid-area: threads;
  order: 2;
  min-width: 0;
}

body[data-admin-page="messages"] .admin-message-pane--chat,
body.admin-v2[data-admin-page="messages"] .admin-message-pane--chat {
  grid-area: chat;
  order: 3;
  min-width: 0;
}

body.admin-v2[data-admin-page="messages"] .section-heading {
  align-items: start;
  gap: 14px;
}

body[data-admin-page="messages"] .admin-message-pane .section-heading,
body.admin-v2[data-admin-page="messages"] .admin-message-pane .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

body[data-admin-page="messages"] .admin-message-pane--users .section-heading,
body.admin-v2[data-admin-page="messages"] .admin-message-pane--users .section-heading {
  grid-template-columns: 1fr;
}

body[data-admin-page="messages"] .admin-message-pane .admin-subtitle,
body.admin-v2[data-admin-page="messages"] .admin-message-pane .admin-subtitle {
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.12;
  max-width: none;
}

body.admin-v2[data-admin-page="messages"] #adminMessageSearch {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-top: 14px;
}

body.admin-v2[data-admin-page="messages"] #adminMessageSubjectTitle {
  word-break: break-word;
}

body.admin-v2[data-admin-page="messages"] .admin-message-subject-list {
  gap: 0;
}

body.admin-v2[data-admin-page="messages"] #adminMessageThreadTitle,
body.admin-v2[data-admin-page="messages"] .client-stream-card__title {
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.12;
  word-break: break-word;
}

body.admin-v2[data-admin-page="messages"] .client-roster__title,
body.admin-v2[data-admin-page="messages"] .client-roster__meta,
body.admin-v2[data-admin-page="messages"] .client-stream-card__head {
  flex-wrap: wrap;
  gap: 10px;
}

body.admin-v2[data-admin-page="messages"] .admin-message-subject-list .client-roster__name {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.18;
}

body.admin-v2[data-admin-page="messages"] .client-stream-card,
body.admin-v2[data-admin-page="messages"] .client-roster__button {
  padding-top: 16px;
  padding-bottom: 16px;
}

body.admin-v2[data-admin-page="messages"] .admin-message-thread-shell {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(201,170,111,0.08);
  display: grid;
  gap: 16px;
}

body.admin-v2[data-admin-page="messages"] .admin-message-thread-list {
  display: grid;
  gap: 14px;
  max-height: min(56vh, 720px);
  overflow-y: auto;
  padding-right: 8px;
}

body.admin-v2[data-admin-page="messages"] .admin-message-compose {
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(201,170,111,0.08);
}

body.admin-v2[data-admin-page="messages"] .admin-message-compose[hidden] {
  display: none;
}

body.admin-v2[data-admin-page="messages"] .admin-message-compose textarea {
  min-height: 132px;
}

body[data-portal-page="messages"] #clientMessageForm,
body.admin-v2[data-admin-page="messages"] #adminMessageCenterForm {
  gap: 12px;
}

body[data-portal-page="messages"] #clientMessageForm input[readonly],
body.admin-v2[data-admin-page="messages"] #adminMessageCenterForm input[readonly] {
  opacity: 0.82;
}

body[data-portal-page="messages"] #clientMessageForm .admin-form-actions,
body.admin-v2[data-admin-page="messages"] #adminMessageCenterForm .admin-form-actions {
  align-items: center;
}

body.admin-v2[data-admin-page="messages"] .messages-log-table {
  min-width: 1220px;
  table-layout: auto;
}

body.admin-v2[data-admin-page="messages"] .messages-log-table th,
body.admin-v2[data-admin-page="messages"] .messages-log-table td {
  width: auto !important;
  white-space: normal;
  vertical-align: top;
}

body.admin-v2[data-admin-page="messages"] .messages-log-table td:nth-child(3),
body.admin-v2[data-admin-page="messages"] .messages-log-table td:nth-child(6) {
  min-width: 220px;
}

body.admin-v2[data-admin-page="messages"] .client-message-card {
  padding: 14px 18px;
  margin-left: 0;
  max-width: min(88%, 820px);
}

body.admin-v2[data-admin-page="messages"] .client-message-card--desk {
  margin-left: 0;
  border-top-color: rgba(201,170,111,0.18);
  background: rgba(201,170,111,0.05);
}

body.admin-v2[data-admin-page="messages"] .client-message-card--client {
  margin-left: auto;
}

body.admin-v2[data-admin-page="messages"] .client-message-card .client-stream-card__sub {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .message-thread-summary__grid {
    grid-template-columns: 1fr;
  }
}

body.admin-v2[data-admin-page="messages"] .client-message-card--client {
  margin-right: 0;
  border-top-color: rgba(110,168,255,0.2);
  background: rgba(110,168,255,0.04);
}

body.admin-v2[data-admin-page="messages"] .client-message-card .client-stream-card__sub {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1400px) {
  body[data-admin-page="messages"] .message-center-grid,
  body.admin-v2[data-admin-page="messages"] .message-center-grid {
    grid-template-columns: minmax(280px, 0.86fr) minmax(250px, 0.8fr) minmax(0, 1.34fr);
    grid-template-areas: "users threads chat";
  }
}

body.admin-v2[data-admin-page="requests"] .section-heading {
  align-items: start;
  gap: 14px;
}

body.admin-v2[data-admin-page="requests"] .section-heading__actions {
  flex-wrap: wrap;
}

body.admin-v2[data-admin-page="requests"] .inquiry-table {
  min-width: 1180px;
  table-layout: fixed;
}

body.admin-v2[data-admin-page="requests"] .inquiry-table th,
body.admin-v2[data-admin-page="requests"] .inquiry-table td {
  vertical-align: top;
  white-space: normal;
}

body.admin-v2[data-admin-page="requests"] .inquiry-table th:nth-child(1),
body.admin-v2[data-admin-page="requests"] .inquiry-table td:nth-child(1) {
  width: 28%;
}

body.admin-v2[data-admin-page="requests"] .inquiry-table th:nth-child(2),
body.admin-v2[data-admin-page="requests"] .inquiry-table td:nth-child(2) {
  width: 16%;
}

body.admin-v2[data-admin-page="requests"] .inquiry-table th:nth-child(6),
body.admin-v2[data-admin-page="requests"] .inquiry-table td:nth-child(6) {
  width: 24%;
}

body.admin-v2[data-admin-page="requests"] .inquiry-table .admin-select,
body.admin-v2[data-admin-page="requests"] .inquiry-table .admin-inline-input {
  width: 100%;
  max-width: none;
}

body.admin-v2[data-admin-page="requests"] .admin-list-item h3,
body.admin-v2[data-admin-page="requests"] .admin-list-item p {
  word-break: break-word;
}

body.admin-v2[data-admin-page="relationships"] .section-heading {
  align-items: start;
  gap: 14px;
}

body.admin-v2[data-admin-page="relationships"] #relationshipsSearch {
  width: min(100%, 260px);
  min-width: 0;
}

body.admin-v2[data-admin-page="relationships"] .access-card {
  padding-top: 16px;
  padding-bottom: 16px;
}

body.admin-v2[data-admin-page="relationships"] .access-card h3 {
  line-height: 1.1;
  word-break: break-word;
}

body.admin-v2[data-admin-page="relationships"] .admin-chip-row,
body.admin-v2[data-admin-page="relationships"] .action-row {
  flex-wrap: wrap;
}

body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-summary,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-table-wrap,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-command-toolbar,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-command-panel-group,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-modal__dialog,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-roster__button,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-summary-row,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-history-item,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-note,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-list-item,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-overview-card,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-stream-card,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .record-detail-card {
  background: transparent !important;
}

body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .settings-form input,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .settings-form select,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form input,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form select,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form textarea,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-select,
body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-inline-input {
  background: rgba(255,255,255,0.66);
  border-color: rgba(141,108,56,0.14);
}

@media (max-width: 1180px) {
  body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-command-grid,
  body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .message-center-grid {
    grid-template-columns: 1fr;
  }

  body.admin-v2[data-admin-page="clients"] .client-overview-grid,
  body.admin-v2[data-admin-page="clients"] #clientCommandStats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-panel-grid,
  body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-card-grid,
  body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-overview-grid,
  body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .record-detail-grid,
  body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .user-detail-activity,
  body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-form-grid,
  body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .client-inline-grid {
    grid-template-columns: 1fr;
  }

  body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .admin-inline-input {
    max-width: none;
  }

  body.admin-v2[data-admin-page="settings"] .admin-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "actions"
      "stats";
  }

  body.admin-v2[data-admin-page="settings"] .admin-summary .admin-summary-actions {
    justify-content: flex-start;
  }

  body.admin-v2[data-admin-page="clients"] .client-overview-grid,
  body.admin-v2[data-admin-page="clients"] #clientCommandStats,
  body.admin-v2[data-admin-page="clients"] .client-inline-grid {
    grid-template-columns: 1fr;
  }

  body.admin-v2[data-admin-page="clients"] #clientCommandSearch {
    width: 100%;
  }
}

/* Hard reset for residual rounded admin shells */
body.admin-v2[data-admin-page] .admin-summary,
body.admin-v2[data-admin-page] .admin-table-wrap,
body.admin-v2[data-admin-page] .admin-note,
body.admin-v2[data-admin-page] .admin-list-item,
body.admin-v2[data-admin-page] .admin-empty,
body.admin-v2[data-admin-page] .access-card,
body.admin-v2[data-admin-page] .admin-kpi,
body.admin-v2[data-admin-page] .client-overview-card,
body.admin-v2[data-admin-page] .client-stream-card,
body.admin-v2[data-admin-page] .client-empty,
body.admin-v2[data-admin-page] .client-roster__button,
body.admin-v2[data-admin-page] .client-summary-row,
body.admin-v2[data-admin-page] .client-history-item,
body.admin-v2[data-admin-page] .record-detail-card,
body.admin-v2[data-admin-page] .admin-modal__dialog,
body.admin-v2[data-admin-page] .portal-section-tab,
body.admin-v2[data-admin-page] .admin-pill,
body.admin-v2[data-admin-page] .admin-chip {
  border-radius: 0 !important;
  overflow: visible !important;
  clip-path: none !important;
}

body.admin-v2[data-admin-page] .admin-modal__dialog {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.admin-v2[data-admin-page] .admin-summary::before,
body.admin-v2[data-admin-page] .admin-table-wrap::before,
body.admin-v2[data-admin-page] .admin-note::after,
body.admin-v2[data-admin-page] .admin-list-item::after,
body.admin-v2[data-admin-page] .access-card::after,
body.admin-v2[data-admin-page] .admin-kpi::after,
body.admin-v2[data-admin-page] .client-roster__button::after,
body.admin-v2[data-admin-page] .client-stream-card::after,
body.admin-v2[data-admin-page] .client-overview-card::after {
  border-radius: 0 !important;
}

body.admin-v2[data-admin-page] .admin-title,
body.admin-v2[data-admin-page] .admin-subtitle,
body.admin-v2[data-admin-page] .client-roster__name,
body.admin-v2[data-admin-page] .client-stream-card__title,
body.admin-v2[data-admin-page] .admin-note strong,
body.admin-v2[data-admin-page] .client-overview-card strong,
body.admin-v2[data-admin-page] .record-detail-card strong {
  overflow: visible;
  text-overflow: unset;
  word-break: normal;
}

body[data-portal-page] .admin-title,
body.portal-body .admin-title,
body.portal-v2[data-portal-page] .admin-title {
  max-width: none;
  text-wrap: balance;
}

body[data-portal-page="dashboard"] .command-overview-copy .admin-title,
body.portal-body[data-portal-page="dashboard"] .command-overview-copy .admin-title,
body.portal-v2[data-portal-page="dashboard"] .command-overview-copy .admin-title,
body[data-portal-page="record"] .admin-summary .admin-title,
body.portal-body[data-portal-page="record"] .admin-summary .admin-title,
body.portal-v2[data-portal-page="record"] .admin-summary .admin-title {
  max-width: none;
}

body.admin-v2[data-admin-page="activity"] .activity-filter-bar {
  margin-top: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .activity-filter-bar {
  margin-top: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

body.admin-v2[data-admin-page="activity"] .activity-note {
  position: relative;
  padding-left: 0;
  padding-right: 4px;
}

body.admin-v2[data-admin-page="activity"] #activityTimeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px 24px;
  align-items: start;
}

body.admin-v2[data-admin-page="activity"] .activity-note::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -14px;
  width: 2px;
  height: calc(100% - 4px);
  background: rgba(201,170,111,0.2);
}

body.admin-v2[data-admin-page="activity"] .activity-note__topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

body.admin-v2[data-admin-page="activity"] .activity-note strong {
  display: block;
  margin-bottom: 6px;
}

body.admin-v2[data-admin-page="activity"] .activity-note p {
  margin: 0;
}

body.admin-v2[data-admin-page="activity"] .activity-note p + .admin-table-meta {
  margin-top: 8px;
}

body.admin-v2[data-admin-page="activity"] .activity-note--inbound::before {
  background: #6ea8ff;
}

body.admin-v2[data-admin-page="activity"] .activity-note--requests::before {
  background: #d4b067;
}

body.admin-v2[data-admin-page="activity"] .activity-note--assets::before {
  background: #63c98a;
}

body.admin-v2[data-admin-page="activity"] .activity-note--documents::before {
  background: #b7a1ff;
}

body.admin-v2[data-admin-page="activity"] .activity-note--messages::before {
  background: #91a0b8;
}

body.admin-v2[data-admin-page="activity"] .activity-note--events::before {
  background: #ff8f6b;
}

body.admin-v2[data-admin-page="activity"] .activity-note--users::before {
  background: #e7c15f;
}

@media (min-width: 1480px) {
  body.admin-v2[data-admin-page="activity"] #activityTimeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.admin-v2[data-admin-page="activity"] #activityTimeline {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

body.admin-v2[data-admin-page] .admin-pill.is-gold {
  color: #d4b067;
  border-color: rgba(212,176,103,0.24);
  background: rgba(212,176,103,0.08);
}

body.admin-v2[data-admin-page] .admin-pill.is-violet {
  color: #b7a1ff;
  border-color: rgba(183,161,255,0.24);
  background: rgba(183,161,255,0.08);
}

body.admin-v2[data-admin-page] .admin-pill.is-slate {
  color: #a6b2c8;
  border-color: rgba(166,178,200,0.24);
  background: rgba(166,178,200,0.08);
}

body.admin-v2[data-admin-page] .admin-pill.is-amber {
  color: #e7c15f;
  border-color: rgba(231,193,95,0.24);
  background: rgba(231,193,95,0.08);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .table-scroll {
  position: relative;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .inquiry-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(10px);
  background: rgba(8, 11, 20, 0.88);
}

body[data-theme="light"].admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .inquiry-table th {
  background: rgba(248, 244, 236, 0.9);
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .action-row {
  row-gap: 8px;
  column-gap: 8px;
  flex-wrap: wrap;
}

body.admin-v2[data-admin-page]:not([data-admin-page="dashboard"]) .action-row .admin-button {
  min-height: 36px;
}

body.admin-v2 .admin-button,
body.admin-v2 .portal-section-tab,
body.admin-v2 .portal-filter-chip,
body.admin-v2 [data-activity-filter],
body.admin-v2 [data-request-filter],
body.admin-v2 [data-asset-filter],
body.admin-v2 [data-event-filter],
body.admin-v2 .client-roster__button,
body.admin-v2 .user-directory-link,
body.admin-v2 a.admin-button,
body.portal-v2 .admin-button,
body.portal-v2 .portal-section-tab,
body.portal-v2 .portal-filter-chip,
body.portal-v2 a.admin-button,
body.portal-v2 .portal-channel-card,
body.portal-v2 .portal-service-card,
body.portal-v2 .portal-link-card {
  cursor: pointer;
}

body.admin-v2 .admin-note,
body.admin-v2 .admin-list-item,
body.portal-v2 .admin-note,
body.portal-v2 .admin-list-item {
  cursor: default;
}

/* ================================================================
   Homepage-Language Command Revamp
   ================================================================ */
body.command-home-shell {
  --home-bg: #06070b;
  --home-bg-soft: #0b0e16;
  --home-panel: rgba(16, 20, 33, 0.58);
  --home-panel-strong: rgba(16, 20, 33, 0.82);
  --home-line: rgba(201, 170, 111, 0.12);
  --home-line-strong: rgba(201, 170, 111, 0.24);
  --home-gold: #c9aa6f;
  --home-gold-soft: #e0c791;
  --home-white: #edf0f7;
  --home-text: rgba(237, 240, 247, 0.72);
  --home-muted: rgba(237, 240, 247, 0.44);
  background:
    radial-gradient(circle at top right, rgba(201, 170, 111, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(120, 143, 199, 0.08), transparent 22%),
    var(--home-bg);
}

body.command-home-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 170, 111, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 170, 111, 0.028) 1px, transparent 1px);
  background-size: 78px 78px;
  opacity: 0.36;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 92%);
}

.command-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.command-canvas__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(201, 170, 111, 0.13), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(137, 160, 213, 0.09), transparent 22%),
    radial-gradient(circle at 74% 72%, rgba(201, 170, 111, 0.06), transparent 20%);
}

.command-canvas__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(201, 170, 111, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 170, 111, 0.016) 1px, transparent 1px);
  background-size: 116px 116px;
  opacity: 0.42;
}

body.command-home-shell .admin-shell,
body.command-home-shell .admin-layout.command-main {
  position: relative;
  z-index: 1;
}

body.command-home-shell .admin-layout.command-main {
  margin: 0;
  padding: 0 32px 48px 424px;
}

body.command-home-shell .command-rail-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(4, 6, 12, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  z-index: 34;
}

body.command-home-shell.command-rail-open .command-rail-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.command-home-shell .command-rail {
  position: fixed;
  top: 20px;
  left: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 40px));
  padding: 24px 22px;
  background:
    linear-gradient(180deg, rgba(16, 20, 33, 0.9), rgba(10, 14, 24, 0.96)),
    rgba(8, 10, 18, 0.94);
  border: 1px solid var(--home-line);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transform: translateX(0);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 40;
  overflow-y: auto;
}

body.command-home-shell.command-rail-open .command-rail {
  transform: translateX(0);
}

body.command-home-shell .command-rail__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--home-line);
  background: none;
}

body.command-home-shell .command-rail__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

body.command-home-shell .command-rail__wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--home-white);
}

body.command-home-shell .command-rail__subline {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--home-muted);
}

body.command-home-shell .command-rail__nav {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

body.command-home-shell .command-rail__section {
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--home-muted);
}

body.command-home-shell .command-rail__links {
  display: grid;
  gap: 4px;
}

body.command-home-shell .command-rail__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  color: var(--home-text);
  background: transparent;
}

body.command-home-shell .command-rail__link.is-active,
body.command-home-shell .command-rail__link:hover {
  border-top-color: var(--home-line-strong);
  border-bottom-color: var(--home-line);
  color: var(--home-white);
  background: linear-gradient(90deg, rgba(201, 170, 111, 0.08), rgba(201, 170, 111, 0));
}

body.command-home-shell .command-rail__icon {
  width: 18px;
  height: 18px;
  color: var(--home-gold-soft);
}

body.command-home-shell .command-rail__footer {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--home-line);
}

body.command-home-shell .command-topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: grid;
  gap: 18px;
  width: min(100%, 1480px);
  margin: 20px 0 0;
  padding: 18px 22px 22px;
  background:
    linear-gradient(180deg, rgba(14, 18, 29, 0.84), rgba(10, 13, 22, 0.78)),
    rgba(8, 10, 18, 0.78);
  border: 1px solid var(--home-line);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

body.command-home-shell .command-topbar__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.command-home-shell .command-topbar__utility,
body.command-home-shell .command-topbar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.command-home-shell .command-topbar__brandmark {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.command-home-shell .command-topbar__brandmark img {
  width: 36px;
  height: 36px;
}

body.command-home-shell .command-topbar__brandmark strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  color: var(--home-white);
}

body.command-home-shell .command-topbar__brandmark span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--home-muted);
}

body.command-home-shell .command-topbar__headline {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: end;
  padding-top: 6px;
  border-top: 1px solid rgba(201, 170, 111, 0.08);
}

body.command-home-shell .command-topbar__eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--home-gold-soft);
}

body.command-home-shell .command-topbar__headline h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--home-white);
}

body.command-home-shell .command-topbar__headline p {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--home-text);
  font-size: 13px;
  line-height: 1.8;
}

body.command-home-shell .command-topbar__intro-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 16px 0 0 24px;
  border-left: 1px solid var(--home-line);
}

body.command-home-shell .command-topbar__intro-card strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--home-white);
}

body.command-home-shell .command-topbar__intro-card span:last-child {
  color: var(--home-text);
  line-height: 1.7;
}

body.command-home-shell .command-topbar__linkset--routes {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(201, 170, 111, 0.08);
}

body.command-home-shell .command-topbar__route {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  color: var(--home-text);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.command-home-shell .command-topbar__route.is-active,
body.command-home-shell .command-topbar__route:hover {
  color: var(--home-white);
  border-top-color: var(--home-line-strong);
  border-bottom-color: var(--home-line);
  background: linear-gradient(90deg, rgba(201, 170, 111, 0.1), rgba(201, 170, 111, 0));
}

body.command-home-shell .command-stage {
  width: min(100%, 1480px);
  margin: 0;
  padding: 24px 0 0;
}

body.command-home-shell #adminContent,
body.command-home-shell #portalContent {
  display: grid;
  gap: 26px;
}

body.command-home-shell .admin-summary,
body.command-home-shell .admin-table-wrap,
body.command-home-shell .access-card,
body.command-home-shell .admin-kpi,
body.command-home-shell .admin-note,
body.command-home-shell .admin-list-item,
body.command-home-shell .client-roster__button,
body.command-home-shell .client-stream-card,
body.command-home-shell .client-overview-card,
body.command-home-shell .portal-stat-card,
body.command-home-shell .portal-data-pair,
body.command-home-shell .portal-record-focus-card,
body.command-home-shell .portal-asset-card,
body.command-home-shell .portal-request-card,
body.command-home-shell .portal-request-card__detail,
body.command-home-shell .portal-request-history__item,
body.command-home-shell .portal-channel-card,
body.command-home-shell .portal-service-card,
body.command-home-shell .portal-link-card,
body.command-home-shell .portal-modal__panel,
body.command-home-shell .message-thread-summary__item,
body.command-home-shell .portal-chat-bubble {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.command-home-shell .admin-summary,
body.command-home-shell .admin-table-wrap,
body.command-home-shell .portal-modal__panel {
  padding: 28px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--home-line-strong) !important;
}

body.command-home-shell .admin-summary::before,
body.command-home-shell .admin-table-wrap::before,
body.command-home-shell .admin-note::after,
body.command-home-shell .admin-list-item::after,
body.command-home-shell .access-card::after,
body.command-home-shell .admin-kpi::after {
  display: none !important;
}

body.command-home-shell .section-heading {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 170, 111, 0.08);
}

body.command-home-shell .admin-title,
body.command-home-shell .admin-subtitle,
body.command-home-shell .client-roster__name,
body.command-home-shell .portal-asset-card__title,
body.command-home-shell .portal-stat-card__value,
body.command-home-shell .portal-data-pair strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--home-white);
}

body.command-home-shell .admin-title {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.96;
}

body.command-home-shell .admin-subtitle {
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1;
}

body.command-home-shell .eyebrow,
body.command-home-shell .service-index,
body.command-home-shell .admin-kpi-label {
  color: var(--home-gold-soft);
}

body.command-home-shell .admin-compact,
body.command-home-shell .client-roster__meta,
body.command-home-shell .client-roster__sub,
body.command-home-shell .client-stream-card__meta,
body.command-home-shell .portal-request-card__meta,
body.command-home-shell .portal-request-card__details,
body.command-home-shell .portal-request-card__footer,
body.command-home-shell .portal-asset-card__meta,
body.command-home-shell .portal-asset-card__copy,
body.command-home-shell .portal-chat-bubble__meta,
body.command-home-shell .portal-chat-bubble__status,
body.command-home-shell .message-day-separator {
  color: var(--home-muted);
}

body.command-home-shell .admin-stats,
body.command-home-shell .admin-mini-cards,
body.command-home-shell .admin-card-grid,
body.command-home-shell .admin-panel-grid,
body.command-home-shell .dashboard-widget-grid,
body.command-home-shell .command-dashboard-grid,
body.command-home-shell .command-dashboard-grid--equal {
  gap: 18px;
}

body.command-home-shell .access-card,
body.command-home-shell .admin-kpi,
body.command-home-shell .admin-note,
body.command-home-shell .admin-list-item,
body.command-home-shell .client-roster__button,
body.command-home-shell .client-stream-card,
body.command-home-shell .portal-stat-card,
body.command-home-shell .portal-data-pair,
body.command-home-shell .portal-request-card,
body.command-home-shell .portal-asset-card,
body.command-home-shell .portal-channel-card,
body.command-home-shell .portal-service-card,
body.command-home-shell .portal-link-card,
body.command-home-shell .portal-request-preset,
body.command-home-shell .portal-quick-chip,
body.command-home-shell .portal-filter-chip,
body.command-home-shell .portal-section-tab {
  border-top: 1px solid var(--home-line-strong) !important;
  padding-top: 14px;
}

body.command-home-shell .command-account,
body.command-home-shell .command-topbar__theme,
body.command-home-shell .command-rail__minor,
body.command-home-shell .logout-button,
body.command-home-shell .admin-button,
body.command-home-shell .admin-button-ghost,
body.command-home-shell .portal-action--ghost,
body.command-home-shell .portal-filter-chip,
body.command-home-shell .portal-section-tab {
  background: transparent;
  border-radius: 0;
  border: 1px solid var(--home-line);
  color: var(--home-white);
}

body.command-home-shell .command-account {
  padding: 8px 12px;
}

body.command-home-shell .command-account__avatar {
  border-radius: 0;
  background: rgba(201, 170, 111, 0.08);
  border: 1px solid rgba(201, 170, 111, 0.14);
}

body.command-home-shell .command-pill {
  border-radius: 999px;
}

body.command-home-shell .command-topbar__menu {
  border-radius: 0;
}

body.command-home-shell .table-scroll {
  border-top: 1px solid rgba(201, 170, 111, 0.08);
  padding-top: 12px;
}

body.command-home-shell .inquiry-table th {
  color: var(--home-gold-soft);
}

body.command-home-shell .inquiry-table th,
body.command-home-shell .inquiry-table td {
  background: transparent;
  border-bottom-color: rgba(201, 170, 111, 0.08);
}

body.command-home-shell .inquiry-table tr:hover td,
body.command-home-shell .p-table tr:hover td {
  background: rgba(201, 170, 111, 0.03);
}

body[data-theme="light"].command-home-shell {
  --home-bg: #f4ede1;
  --home-bg-soft: #fbf7ef;
  --home-panel: rgba(255, 252, 246, 0.72);
  --home-panel-strong: rgba(255, 250, 243, 0.94);
  --home-line: rgba(138, 109, 56, 0.14);
  --home-line-strong: rgba(138, 109, 56, 0.24);
  --home-gold: #8d6c38;
  --home-gold-soft: #a8864d;
  --home-white: #1c222c;
  --home-text: rgba(28, 34, 44, 0.76);
  --home-muted: rgba(28, 34, 44, 0.5);
  background:
    radial-gradient(circle at top right, rgba(201, 170, 111, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(120, 143, 199, 0.08), transparent 24%),
    linear-gradient(180deg, #fbf6ed 0%, #f3ebde 100%);
}

body[data-theme="light"].command-home-shell::before {
  background-image:
    linear-gradient(rgba(138, 109, 56, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 109, 56, 0.026) 1px, transparent 1px);
  opacity: 0.26;
}

body[data-theme="light"].command-home-shell .command-rail,
body[data-theme="light"].command-home-shell .command-topbar {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(247, 240, 228, 0.88)),
    rgba(255, 250, 243, 0.9);
  border-color: var(--home-line);
  box-shadow: 0 22px 44px rgba(90, 72, 44, 0.1);
}

body[data-theme="light"].command-home-shell .command-rail__link.is-active,
body[data-theme="light"].command-home-shell .command-rail__link:hover,
body[data-theme="light"].command-home-shell .command-topbar__route.is-active,
body[data-theme="light"].command-home-shell .command-topbar__route:hover {
  background: linear-gradient(90deg, rgba(141, 108, 56, 0.1), rgba(141, 108, 56, 0));
}

@media (max-width: 1180px) {
  body.command-home-shell .admin-layout.command-main {
    padding: 0 20px 36px;
  }

  body.command-home-shell .command-rail {
    transform: translateX(calc(-100% - 28px));
  }

  body.command-home-shell .command-topbar__headline {
    grid-template-columns: 1fr;
  }

  body.command-home-shell .command-topbar__intro-card {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(201, 170, 111, 0.08);
  }
}

@media (max-width: 900px) {
  body.command-home-shell .command-topbar {
    top: 10px;
    margin-top: 10px;
    padding: 16px 16px 18px;
  }

  body.command-home-shell .command-topbar__bar,
  body.command-home-shell .command-topbar__meta {
    flex-wrap: wrap;
  }

  body.command-home-shell .command-topbar__headline h1 {
    font-size: clamp(34px, 11vw, 52px);
  }
}

/* ================================================================
   Editorial Shell Rework
   ================================================================ */
body.command-editorial-shell {
  background:
    radial-gradient(circle at top right, rgba(201, 170, 111, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(120, 143, 199, 0.08), transparent 22%),
    #06070b;
}

body.command-editorial-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 170, 111, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 170, 111, 0.028) 1px, transparent 1px);
  background-size: 78px 78px;
  opacity: 0.34;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 92%);
}

body.command-editorial-shell .admin-layout.command-main {
  margin: 0;
  padding: 0 28px 48px;
}

.command-editorial-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.command-editorial-bg__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 14%, rgba(201, 170, 111, 0.12), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(118, 146, 211, 0.08), transparent 22%),
    radial-gradient(circle at 70% 76%, rgba(201, 170, 111, 0.06), transparent 18%);
}

.command-editorial-bg__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(201, 170, 111, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 170, 111, 0.015) 1px, transparent 1px);
  background-size: 114px 114px;
}

body.command-editorial-shell .admin-shell,
body.command-editorial-shell .admin-layout.command-main {
  position: relative;
  z-index: 1;
}

body.command-editorial-shell .command-editorial-shell__inner,
body.command-editorial-shell .command-stage {
  width: min(100%, 1480px);
  margin: 0 auto;
}

body.command-editorial-shell .command-editorial-shell__inner {
  padding-top: 18px;
}

body.command-editorial-shell .command-editorial-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px 18px;
  border: 1px solid rgba(201, 170, 111, 0.12);
  background:
    linear-gradient(180deg, rgba(14, 18, 29, 0.8), rgba(10, 13, 22, 0.74)),
    rgba(8, 10, 18, 0.78);
  backdrop-filter: blur(18px);
}

body.command-editorial-shell .command-editorial-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.command-editorial-shell .command-editorial-brand img {
  width: 38px;
  height: 38px;
}

body.command-editorial-shell .command-editorial-brand strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 0.95;
  color: var(--white);
}

body.command-editorial-shell .command-editorial-brand span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

body.command-editorial-shell .command-editorial-nav__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.command-editorial-shell .command-editorial-nav__link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(201, 170, 111, 0.12);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.command-editorial-shell .command-editorial-nav__link:hover {
  color: var(--white);
  border-color: rgba(201, 170, 111, 0.28);
}

body.command-editorial-shell .command-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: 28px;
  padding: 28px 0 20px;
  border-bottom: 1px solid rgba(201, 170, 111, 0.08);
}

body.command-editorial-shell .command-editorial-hero__copy .command-topbar__eyebrow {
  margin: 0 0 10px;
  color: var(--gold2);
}

body.command-editorial-shell .command-editorial-hero__copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
}

body.command-editorial-shell .command-editorial-hero__copy p:last-child {
  margin: 12px 0 0;
  max-width: 64ch;
  color: var(--text);
  line-height: 1.8;
}

body.command-editorial-shell .command-editorial-hero__aside {
  display: grid;
  align-content: end;
  gap: 10px;
  padding-left: 24px;
  border-left: 1px solid rgba(201, 170, 111, 0.1);
}

body.command-editorial-shell .command-editorial-hero__aside strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
}

body.command-editorial-shell .command-editorial-hero__aside p {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}

body.command-editorial-shell .command-stage {
  padding-top: 22px;
}

body.command-editorial-shell .command-stage {
  scroll-snap-type: none;
  position: relative;
}

body.command-editorial-shell .command-stage > * {
  scroll-snap-align: none;
}

body.command-editorial-shell .command-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.018), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.018));
  opacity: 0.34;
}

body.command-editorial-shell .command-chapter {
  position: relative;
  min-height: calc(100svh - 120px);
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 118px 42px 58px !important;
  border-top: 0 !important;
  overflow: visible;
  isolation: isolate;
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1), filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.command-editorial-shell .command-chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 620ms ease, filter 620ms ease;
}

body.command-editorial-shell .command-chapter::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(4px, 0.4vw, 7px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(201, 170, 111, 0.88) 12%, rgba(201, 170, 111, 0.28) 68%, rgba(255, 255, 255, 0));
  opacity: 0.92;
  pointer-events: none;
}

body.command-editorial-shell .command-chapter + .command-chapter::after {
  inset: -24px auto 0 0;
}

body.command-editorial-shell .command-chapter + .command-chapter::before {
  box-shadow: inset 0 22px 42px rgba(0, 0, 0, 0.18);
}

body.command-editorial-shell .command-chapter > * {
  position: relative;
  z-index: 1;
}

body.command-editorial-shell .command-chapter.is-current {
  filter: saturate(1.06);
}

body.command-editorial-shell .command-chapter.is-current::before {
  transform: scale(1.015);
  filter: brightness(1.04);
}

body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] {
  gap: 34px;
  align-content: end;
  padding-bottom: 72px !important;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="hero"]::before {
  background-blend-mode: normal, screen, screen, normal;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="split"] {
  align-content: center;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="split"] > .command-dashboard-grid,
body.command-editorial-shell .command-chapter[data-chapter-layout="split"] > .command-overview-band,
body.command-editorial-shell .command-chapter[data-chapter-layout="split"] > .admin-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
  gap: 30px;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="ledger"],
body.command-editorial-shell .command-chapter[data-chapter-layout="workspace"] {
  align-content: stretch;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="ledger"]::before,
body.command-editorial-shell .command-chapter[data-chapter-layout="workspace"]::before {
  opacity: 0.98;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="ledger"] > .admin-table-wrap,
body.command-editorial-shell .command-chapter[data-chapter-layout="workspace"] > .admin-table-wrap,
body.command-editorial-shell .command-chapter[data-chapter-layout="workspace"] > .messages-layout,
body.command-editorial-shell .command-chapter[data-chapter-layout="workspace"] > .portal-messages-layout {
  min-height: min(62svh, 780px);
}

body.command-editorial-shell .command-chapter[data-chapter-tone="ember"]::before {
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.55), rgba(7, 10, 18, 0.9)),
    radial-gradient(circle at 16% 22%, rgba(201, 170, 111, 0.22), transparent 20%),
    radial-gradient(circle at 82% 74%, rgba(120, 36, 20, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"]::before {
  background:
    linear-gradient(180deg, rgba(9, 13, 23, 0.58), rgba(9, 13, 23, 0.92)),
    radial-gradient(circle at 84% 18%, rgba(118, 146, 211, 0.24), transparent 22%),
    radial-gradient(circle at 18% 76%, rgba(52, 79, 141, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(201, 170, 111, 0.03), rgba(255, 255, 255, 0));
}

body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"]::before {
  background:
    linear-gradient(180deg, rgba(12, 13, 21, 0.56), rgba(8, 10, 18, 0.92)),
    radial-gradient(circle at 72% 72%, rgba(215, 190, 132, 0.2), transparent 18%),
    radial-gradient(circle at 20% 20%, rgba(255, 244, 213, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

body.command-editorial-shell .command-chapter[data-chapter-tone="forest"]::before {
  background:
    linear-gradient(180deg, rgba(8, 13, 18, 0.56), rgba(7, 11, 16, 0.92)),
    radial-gradient(circle at 22% 24%, rgba(78, 123, 103, 0.22), transparent 22%),
    radial-gradient(circle at 78% 80%, rgba(201, 170, 111, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
}

body.command-editorial-shell .command-chapter__marker {
  position: absolute;
  top: 34px;
  left: 42px;
  right: 42px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
  pointer-events: none;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

body.command-editorial-shell .command-chapter__marker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0));
  opacity: 0.48;
}

body.command-editorial-shell .command-chapter__marker-index {
  min-width: 52px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

body.command-editorial-shell .command-chapter__marker-copy {
  display: grid;
  gap: 4px;
}

body.command-editorial-shell .command-chapter__marker-copy strong {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}

body.command-editorial-shell .command-chapter__marker-copy span {
  max-width: 36ch;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 0.96;
  color: rgba(255, 255, 255, 0.9);
}

body.command-editorial-shell .command-chapter.is-current .command-chapter__marker {
  transform: translateY(-2px);
}

body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .command-chapter__marker-copy strong,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"]::after {
  color: rgba(215, 176, 109, 0.92);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(215, 176, 109, 0.88) 12%, rgba(215, 176, 109, 0.24) 68%, rgba(255, 255, 255, 0));
}

body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .command-chapter__marker-copy strong,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"]::after {
  color: rgba(146, 173, 235, 0.94);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(146, 173, 235, 0.9) 12%, rgba(146, 173, 235, 0.26) 68%, rgba(255, 255, 255, 0));
}

body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .command-chapter__marker-copy strong,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"]::after {
  color: rgba(235, 215, 168, 0.94);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(235, 215, 168, 0.9) 12%, rgba(235, 215, 168, 0.24) 68%, rgba(255, 255, 255, 0));
}

body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .command-chapter__marker-copy strong,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"]::after {
  color: rgba(128, 179, 154, 0.94);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(128, 179, 154, 0.9) 12%, rgba(128, 179, 154, 0.24) 68%, rgba(255, 255, 255, 0));
}

body.command-editorial-shell .command-chapter .section-heading {
  margin-bottom: 24px;
  padding-bottom: 18px;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .section-heading {
  margin-bottom: 30px;
  padding-bottom: 22px;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .admin-title {
  max-width: 11ch;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.88;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .command-hero__copy,
body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .portal-hero-copy,
body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .command-overview-copy p:last-child {
  max-width: 72ch;
  font-size: clamp(15px, 1.3vw, 18px);
}

body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .command-actions,
body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .admin-summary-actions {
  gap: 12px;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .command-signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .command-signal-card {
  padding-top: 22px;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="ledger"] .table-scroll,
body.command-editorial-shell .command-chapter[data-chapter-layout="workspace"] .table-scroll {
  min-height: min(44svh, 540px);
  overflow-x: auto;
  overflow-y: visible;
}

/* Ledger chapters need full height to show table rows */
body.command-editorial-shell .command-chapter[data-chapter-layout="ledger"] {
  min-height: auto;
  overflow: visible;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="ledger"] > .admin-table-wrap,
body.command-editorial-shell .command-chapter[data-chapter-layout="ledger"] > .command-ledger-wrap {
  overflow: visible;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="ledger"] .table-scroll {
  overflow-x: auto;
}

body.command-editorial-shell .command-chapter[data-chapter-layout="workspace"] .messages-layout,
body.command-editorial-shell .command-chapter[data-chapter-layout="workspace"] .portal-messages-layout {
  align-items: stretch;
}

body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .section-heading {
  border-bottom-color: rgba(201, 170, 111, 0.14);
}

body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .section-heading {
  border-bottom-color: rgba(118, 146, 211, 0.16);
}

body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .section-heading {
  border-bottom-color: rgba(235, 215, 168, 0.16);
}

body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .section-heading {
  border-bottom-color: rgba(128, 179, 154, 0.15);
}

body.command-editorial-shell .command-chapter .admin-stats,
body.command-editorial-shell .command-chapter .admin-mini-cards,
body.command-editorial-shell .command-chapter .admin-card-grid,
body.command-editorial-shell .command-chapter .admin-panel-grid,
body.command-editorial-shell .command-chapter .dashboard-widget-grid,
body.command-editorial-shell .command-chapter .command-dashboard-grid,
body.command-editorial-shell .command-chapter .command-dashboard-grid--equal {
  gap: 22px;
}

body.command-editorial-shell .command-chapter .admin-summary,
body.command-editorial-shell .command-chapter .admin-table-wrap,
body.command-editorial-shell .command-chapter .access-card,
body.command-editorial-shell .command-chapter .admin-kpi,
body.command-editorial-shell .command-chapter .admin-note,
body.command-editorial-shell .command-chapter .admin-list-item,
body.command-editorial-shell .command-chapter .client-roster__button,
body.command-editorial-shell .command-chapter .client-stream-card,
body.command-editorial-shell .command-chapter .portal-stat-card,
body.command-editorial-shell .command-chapter .portal-data-pair,
body.command-editorial-shell .command-chapter .portal-record-focus-card,
body.command-editorial-shell .command-chapter .portal-asset-card,
body.command-editorial-shell .command-chapter .portal-request-card,
body.command-editorial-shell .command-chapter .portal-request-card__detail,
body.command-editorial-shell .command-chapter .portal-request-history__item,
body.command-editorial-shell .command-chapter .portal-channel-card,
body.command-editorial-shell .command-chapter .portal-service-card,
body.command-editorial-shell .command-chapter .portal-link-card,
body.command-editorial-shell .command-chapter .portal-modal__panel,
body.command-editorial-shell .command-chapter .message-thread-summary__item,
body.command-editorial-shell .command-chapter .portal-chat-bubble {
  padding: 18px 0 0 !important;
  border-top-width: 1px !important;
  border-top-style: solid !important;
}

body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .admin-summary,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .admin-table-wrap,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .access-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .admin-kpi,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .admin-note,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .admin-list-item,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .client-roster__button,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .client-stream-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-stat-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-data-pair,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-record-focus-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-asset-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-request-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-request-card__detail,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-request-history__item,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-channel-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-service-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-link-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .message-thread-summary__item,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-chat-bubble {
  border-top-color: rgba(201, 170, 111, 0.22) !important;
}

body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .admin-summary,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .admin-table-wrap,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .access-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .admin-kpi,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .admin-note,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .admin-list-item,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .client-roster__button,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .client-stream-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-stat-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-data-pair,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-record-focus-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-asset-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-request-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-request-card__detail,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-request-history__item,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-channel-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-service-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-link-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .message-thread-summary__item,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-chat-bubble {
  border-top-color: rgba(118, 146, 211, 0.26) !important;
}

body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .admin-summary,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .admin-table-wrap,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .access-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .admin-kpi,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .admin-note,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .admin-list-item,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .client-roster__button,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .client-stream-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-stat-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-data-pair,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-record-focus-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-asset-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-request-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-request-card__detail,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-request-history__item,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-channel-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-service-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-link-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .message-thread-summary__item,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-chat-bubble {
  border-top-color: rgba(215, 190, 132, 0.18) !important;
}

body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .admin-summary,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .admin-table-wrap,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .access-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .admin-kpi,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .admin-note,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .admin-list-item,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .client-roster__button,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .client-stream-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-stat-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-data-pair,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-record-focus-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-asset-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-request-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-request-card__detail,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-request-history__item,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-channel-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-service-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-link-card,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .message-thread-summary__item,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-chat-bubble {
  border-top-color: rgba(128, 179, 154, 0.22) !important;
}

body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .eyebrow,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .admin-kpi__label,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-stat-card__label,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .portal-data-pair span,
body.command-editorial-shell .command-chapter[data-chapter-tone="ember"] .message-thread-summary__label {
  color: rgba(225, 191, 132, 0.86);
}

body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .eyebrow,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .admin-kpi__label,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-stat-card__label,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .portal-data-pair span,
body.command-editorial-shell .command-chapter[data-chapter-tone="cobalt"] .message-thread-summary__label {
  color: rgba(162, 187, 241, 0.88);
}

body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .eyebrow,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .admin-kpi__label,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-stat-card__label,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .portal-data-pair span,
body.command-editorial-shell .command-chapter[data-chapter-tone="champagne"] .message-thread-summary__label {
  color: rgba(241, 224, 187, 0.9);
}

body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .eyebrow,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .admin-kpi__label,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-stat-card__label,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .portal-data-pair span,
body.command-editorial-shell .command-chapter[data-chapter-tone="forest"] .message-thread-summary__label {
  color: rgba(156, 206, 181, 0.84);
}

body.command-editorial-shell .command-dock {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 18;
}

body.command-editorial-shell .command-dock__inner {
  display: grid;
  gap: 14px;
  padding: 18px 14px;
  border: 1px solid rgba(201, 170, 111, 0.12);
  background:
    linear-gradient(180deg, rgba(14, 18, 29, 0.78), rgba(10, 13, 22, 0.72)),
    rgba(8, 10, 18, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}

body.command-editorial-shell .command-dock__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04));
  opacity: 0.44;
}

body.command-editorial-shell .command-dock__group {
  display: grid;
  gap: 8px;
}

body.command-editorial-shell .command-dock__label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 8px;
}

body.command-editorial-shell .command-dock__links {
  display: grid;
  gap: 4px;
}

body.command-editorial-shell .command-dock__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 48px;
  padding: 0 12px;
  color: var(--text);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  overflow: hidden;
}

body.command-editorial-shell .command-dock__icon {
  width: 18px;
  height: 18px;
  color: var(--gold2);
  flex: 0 0 auto;
}

body.command-editorial-shell .command-dock__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

body.command-editorial-shell .command-dock__text {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: max-width 0.28s ease, opacity 0.22s ease;
}

body.command-editorial-shell .command-dock__inner:hover .command-dock__text,
body.command-editorial-shell .command-dock__link.is-active .command-dock__text {
  max-width: 180px;
  opacity: 1;
}

body.command-editorial-shell .command-dock__link.is-active,
body.command-editorial-shell .command-dock__link:hover {
  color: var(--white);
  border-top-color: rgba(201, 170, 111, 0.24);
  border-bottom-color: rgba(201, 170, 111, 0.12);
  background: linear-gradient(90deg, rgba(201, 170, 111, 0.08), rgba(201, 170, 111, 0));
}

body.command-editorial-shell .command-chapter-rail {
  position: fixed;
  left: 112px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 17;
}

body.command-editorial-shell .command-chapter-rail__inner {
  display: grid;
  gap: 8px;
  position: relative;
  padding-left: 14px;
}

body.command-editorial-shell .command-chapter-rail__inner::before,
body.command-editorial-shell .command-chapter-rail__inner::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  pointer-events: none;
}

body.command-editorial-shell .command-chapter-rail__inner::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  opacity: 0.34;
}

body.command-editorial-shell .command-chapter-rail__inner::after {
  background: linear-gradient(180deg, rgba(201, 170, 111, 0.22), rgba(201, 170, 111, 0.88), rgba(201, 170, 111, 0.22));
  transform-origin: top center;
  transform: scaleY(var(--chapter-progress, 0));
  opacity: 0.88;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

body.command-editorial-shell .command-chapter-rail__link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 220px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

body.command-editorial-shell .command-chapter-rail__index {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold2);
  opacity: 0.8;
}

body.command-editorial-shell .command-chapter-rail__copy {
  display: grid;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(201, 170, 111, 0.1);
  transition: border-color 320ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.command-editorial-shell .command-chapter-rail__copy strong {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}

body.command-editorial-shell .command-chapter-rail__copy span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 0.98;
  color: var(--muted);
}

body.command-editorial-shell .command-chapter-rail__link.is-active .command-chapter-rail__copy,
body.command-editorial-shell .command-chapter-rail__link:hover .command-chapter-rail__copy {
  border-left-color: rgba(201, 170, 111, 0.28);
  transform: translateX(2px);
}

body.command-editorial-shell .command-chapter-rail__link.is-active .command-chapter-rail__copy span,
body.command-editorial-shell .command-chapter-rail__link:hover .command-chapter-rail__copy span {
  color: var(--white);
}

body.command-editorial-shell .command-chapter-rail__link.is-active {
  transform: translateX(4px);
}

body.command-editorial-shell .command-chapter-rail__link--ember.is-active .command-chapter-rail__copy,
body.command-editorial-shell .command-chapter-rail__link--ember:hover .command-chapter-rail__copy {
  border-left-color: rgba(215, 176, 109, 0.42);
}

body.command-editorial-shell .command-chapter-rail__link--cobalt.is-active .command-chapter-rail__copy,
body.command-editorial-shell .command-chapter-rail__link--cobalt:hover .command-chapter-rail__copy {
  border-left-color: rgba(146, 173, 235, 0.42);
}

body.command-editorial-shell .command-chapter-rail__link--champagne.is-active .command-chapter-rail__copy,
body.command-editorial-shell .command-chapter-rail__link--champagne:hover .command-chapter-rail__copy {
  border-left-color: rgba(235, 215, 168, 0.42);
}

body.command-editorial-shell .command-chapter-rail__link--forest.is-active .command-chapter-rail__copy,
body.command-editorial-shell .command-chapter-rail__link--forest:hover .command-chapter-rail__copy {
  border-left-color: rgba(128, 179, 154, 0.4);
}

body.command-editorial-shell .command-chapter-rail__link--ember .command-chapter-rail__index {
  color: rgba(215, 176, 109, 0.76);
}

body.command-editorial-shell .command-chapter-rail__link--cobalt .command-chapter-rail__index {
  color: rgba(146, 173, 235, 0.78);
}

body.command-editorial-shell .command-chapter-rail__link--champagne .command-chapter-rail__index {
  color: rgba(235, 215, 168, 0.8);
}

body.command-editorial-shell .command-chapter-rail__link--forest .command-chapter-rail__index {
  color: rgba(128, 179, 154, 0.76);
}

body.command-editorial-shell .admin-summary,
body.command-editorial-shell .admin-table-wrap,
body.command-editorial-shell .access-card,
body.command-editorial-shell .admin-kpi,
body.command-editorial-shell .admin-note,
body.command-editorial-shell .admin-list-item,
body.command-editorial-shell .client-roster__button,
body.command-editorial-shell .client-stream-card,
body.command-editorial-shell .client-overview-card,
body.command-editorial-shell .portal-stat-card,
body.command-editorial-shell .portal-data-pair,
body.command-editorial-shell .portal-record-focus-card,
body.command-editorial-shell .portal-asset-card,
body.command-editorial-shell .portal-request-card,
body.command-editorial-shell .portal-request-card__detail,
body.command-editorial-shell .portal-request-history__item,
body.command-editorial-shell .portal-channel-card,
body.command-editorial-shell .portal-service-card,
body.command-editorial-shell .portal-link-card,
body.command-editorial-shell .portal-modal__panel,
body.command-editorial-shell .message-thread-summary__item,
body.command-editorial-shell .portal-chat-bubble {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.command-editorial-shell .admin-summary,
body.command-editorial-shell .admin-table-wrap,
body.command-editorial-shell .portal-modal__panel {
  padding: 30px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(201, 170, 111, 0.16) !important;
  position: relative;
}

body.command-editorial-shell .admin-summary::after,
body.command-editorial-shell .admin-table-wrap::after,
body.command-editorial-shell .portal-modal__panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0));
  opacity: 0.38;
  pointer-events: none;
}

body.command-editorial-shell .admin-note,
body.command-editorial-shell .admin-list-item,
body.command-editorial-shell .access-card,
body.command-editorial-shell .portal-request-card,
body.command-editorial-shell .portal-request-card__detail,
body.command-editorial-shell .portal-service-card,
body.command-editorial-shell .portal-link-card,
body.command-editorial-shell .portal-stat-card,
body.command-editorial-shell .portal-data-pair,
body.command-editorial-shell .portal-record-focus-card,
body.command-editorial-shell .portal-asset-card,
body.command-editorial-shell .client-roster__button,
body.command-editorial-shell .client-stream-card {
  transition:
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    color 280ms ease;
}

body.command-editorial-shell .admin-note:hover,
body.command-editorial-shell .admin-list-item:hover,
body.command-editorial-shell .access-card:hover,
body.command-editorial-shell .portal-request-card:hover,
body.command-editorial-shell .portal-request-card__detail:hover,
body.command-editorial-shell .portal-service-card:hover,
body.command-editorial-shell .portal-link-card:hover,
body.command-editorial-shell .portal-stat-card:hover,
body.command-editorial-shell .portal-data-pair:hover,
body.command-editorial-shell .portal-record-focus-card:hover,
body.command-editorial-shell .portal-asset-card:hover,
body.command-editorial-shell .client-roster__button:hover,
body.command-editorial-shell .client-stream-card:hover {
  transform: translateY(-2px);
}

body.command-editorial-shell .admin-summary::before,
body.command-editorial-shell .admin-table-wrap::before,
body.command-editorial-shell .admin-note::after,
body.command-editorial-shell .admin-list-item::after,
body.command-editorial-shell .access-card::after,
body.command-editorial-shell .admin-kpi::after {
  display: none !important;
}

body.command-editorial-shell .section-heading {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 170, 111, 0.08);
  position: relative;
}

body.command-editorial-shell .section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(168px, 22%);
  height: 1px;
  background: linear-gradient(90deg, currentColor, rgba(255, 255, 255, 0));
  opacity: 0.14;
  pointer-events: none;
}

body.command-editorial-shell .admin-title,
body.command-editorial-shell .admin-subtitle,
body.command-editorial-shell .client-roster__name,
body.command-editorial-shell .portal-asset-card__title,
body.command-editorial-shell .portal-stat-card__value,
body.command-editorial-shell .portal-data-pair strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--white);
}

body.command-editorial-shell .admin-title {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.96;
}

body.command-editorial-shell .admin-subtitle {
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 0.98;
}

body.command-editorial-shell .eyebrow {
  letter-spacing: 0.28em;
}

body.command-editorial-shell .admin-compact,
body.command-editorial-shell .portal-hero-copy,
body.command-editorial-shell .admin-note,
body.command-editorial-shell .admin-list-item p,
body.command-editorial-shell .portal-request-card__meta,
body.command-editorial-shell .portal-request-card__details,
body.command-editorial-shell .portal-request-card__footer,
body.command-editorial-shell .portal-service-card span,
body.command-editorial-shell .portal-link-card span {
  line-height: 1.72;
}

body.command-editorial-shell .inquiry-table {
  border-collapse: separate;
  border-spacing: 0;
}

body.command-editorial-shell .inquiry-table th {
  padding-top: 0;
  padding-bottom: 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
}

body.command-editorial-shell .inquiry-table td {
  padding-top: 18px;
  padding-bottom: 18px;
}

body.command-editorial-shell .inquiry-table tbody tr {
  transition: background-color 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.command-editorial-shell .table-scroll {
  scrollbar-width: thin;
}

body.command-editorial-shell .portal-hero-card--main .admin-title {
  max-width: 13ch;
}

body.command-editorial-shell .portal-mini-card .admin-subtitle,
body.command-editorial-shell .portal-service-card strong,
body.command-editorial-shell .portal-request-card__summary h3,
body.command-editorial-shell .access-card h3,
body.command-editorial-shell .admin-list-item h3 {
  line-height: 1.02;
}

body.command-editorial-shell .portal-side-stack,
body.command-editorial-shell .admin-stack,
body.command-editorial-shell .admin-list,
body.command-editorial-shell .portal-asset-registry,
body.command-editorial-shell .portal-request-list {
  gap: 18px;
}

body.command-editorial-shell .portal-mini-card,
body.command-editorial-shell .portal-hero-card--main,
body.command-editorial-shell .admin-summary,
body.command-editorial-shell .admin-table-wrap {
  background-clip: padding-box;
}

body.command-editorial-shell .command-editorial-nav,
body.command-editorial-shell .command-dock__inner,
body.command-editorial-shell .command-chapter-rail {
  transition: opacity 360ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.command-editorial-shell .command-account,
body.command-editorial-shell .command-topbar__theme,
body.command-editorial-shell .logout-button,
body.command-editorial-shell .admin-button,
body.command-editorial-shell .admin-button-ghost,
body.command-editorial-shell .portal-action--ghost,
body.command-editorial-shell .portal-filter-chip,
body.command-editorial-shell .portal-section-tab {
  border-radius: 0;
}

body[data-theme="light"].command-editorial-shell {
  background:
    radial-gradient(circle at top right, rgba(201, 170, 111, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(120, 143, 199, 0.08), transparent 24%),
    linear-gradient(180deg, #fbf6ed 0%, #f3ebde 100%);
}

body[data-theme="light"].command-editorial-shell::before {
  background-image:
    linear-gradient(rgba(138, 109, 56, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 109, 56, 0.026) 1px, transparent 1px);
  opacity: 0.26;
}

body[data-theme="light"].command-editorial-shell .command-editorial-nav {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(247, 240, 228, 0.88)),
    rgba(255, 250, 243, 0.9);
  box-shadow: 0 22px 44px rgba(90, 72, 44, 0.1);
}

body[data-theme="light"].command-editorial-shell .command-dock__inner {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(247, 240, 228, 0.84)),
    rgba(255, 250, 243, 0.88);
  box-shadow: 0 18px 34px rgba(90, 72, 44, 0.08);
}

body[data-theme="light"].command-editorial-shell .command-dock__link.is-active,
body[data-theme="light"].command-editorial-shell .command-dock__link:hover {
  background: linear-gradient(90deg, rgba(141, 108, 56, 0.1), rgba(141, 108, 56, 0));
}

body[data-theme="light"].command-editorial-shell .command-stage::before {
  opacity: 0.22;
}

body[data-theme="light"].command-editorial-shell .admin-summary::after,
body[data-theme="light"].command-editorial-shell .admin-table-wrap::after,
body[data-theme="light"].command-editorial-shell .portal-modal__panel::after,
body[data-theme="light"].command-editorial-shell .command-chapter__marker::after {
  opacity: 0.28;
}

body[data-theme="light"].command-editorial-shell .command-chapter-rail__inner::before {
  opacity: 0.22;
}

body[data-theme="light"].command-editorial-shell .admin-note:hover,
body[data-theme="light"].command-editorial-shell .admin-list-item:hover,
body[data-theme="light"].command-editorial-shell .access-card:hover,
body[data-theme="light"].command-editorial-shell .portal-request-card:hover,
body[data-theme="light"].command-editorial-shell .portal-request-card__detail:hover,
body[data-theme="light"].command-editorial-shell .portal-service-card:hover,
body[data-theme="light"].command-editorial-shell .portal-link-card:hover,
body[data-theme="light"].command-editorial-shell .portal-stat-card:hover,
body[data-theme="light"].command-editorial-shell .portal-data-pair:hover,
body[data-theme="light"].command-editorial-shell .portal-record-focus-card:hover,
body[data-theme="light"].command-editorial-shell .portal-asset-card:hover,
body[data-theme="light"].command-editorial-shell .client-roster__button:hover,
body[data-theme="light"].command-editorial-shell .client-stream-card:hover {
  background-color: rgba(141, 108, 56, 0.018);
}

body[data-theme="light"].command-editorial-shell .command-chapter::after {
  opacity: 0.72;
}

body[data-theme="light"].command-editorial-shell .command-chapter__marker {
  border-top-color: rgba(98, 76, 43, 0.12);
}

body[data-theme="light"].command-editorial-shell .command-chapter__marker-index {
  color: rgba(98, 76, 43, 0.5);
}

body[data-theme="light"].command-editorial-shell .command-chapter__marker-copy span {
  color: #201811;
}

body[data-theme="light"].command-editorial-shell .command-chapter-rail__copy {
  border-left-color: rgba(141, 108, 56, 0.12);
}

body[data-theme="light"].command-editorial-shell .command-chapter-rail__link.is-active .command-chapter-rail__copy,
body[data-theme="light"].command-editorial-shell .command-chapter-rail__link:hover .command-chapter-rail__copy {
  border-left-color: rgba(141, 108, 56, 0.28);
}

@media (max-width: 1180px) {
  body.command-editorial-shell .command-dock {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding-top: 10px;
  }

  body.command-editorial-shell .command-chapter-rail {
    display: none;
  }

  body.command-editorial-shell .command-dock__inner {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    align-items: start;
  }

  body.command-editorial-shell .command-dock__group {
    min-width: max-content;
  }

  body.command-editorial-shell .command-dock__links {
    display: flex;
    gap: 4px;
  }

  body.command-editorial-shell .command-dock__text {
    max-width: 180px;
    opacity: 1;
  }

  body.command-editorial-shell .command-editorial-hero {
    grid-template-columns: 1fr;
  }

  body.command-editorial-shell .command-editorial-hero__aside {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(201, 170, 111, 0.08);
    padding-top: 14px;
  }

  body.command-editorial-shell .command-chapter {
    min-height: auto;
    padding-top: 92px !important;
  }

  body.command-editorial-shell .command-chapter[data-chapter-layout="split"] > .command-dashboard-grid,
  body.command-editorial-shell .command-chapter[data-chapter-layout="split"] > .command-overview-band,
  body.command-editorial-shell .command-chapter[data-chapter-layout="split"] > .admin-panel-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.command-editorial-shell .command-chapter__marker {
    top: 24px;
  }
}

@media (max-width: 900px) {
  body.command-editorial-shell .admin-layout.command-main {
    padding: 0 18px 36px;
  }

  body.command-editorial-shell .command-chapter {
    min-height: auto;
    align-content: start;
    padding: 86px 20px 34px !important;
    gap: 20px;
  }

  body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] {
    padding-bottom: 42px !important;
  }

  body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .admin-title {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 62px);
  }

  body.command-editorial-shell .command-chapter[data-chapter-layout="hero"] .command-signal-grid {
    grid-template-columns: 1fr;
  }

  body.command-editorial-shell .command-editorial-nav {
    align-items: start;
  }

  body.command-editorial-shell .command-editorial-nav__meta {
    justify-content: flex-start;
  }

  body.command-editorial-shell .command-dock__inner {
    padding: 14px 12px;
  }

  body.command-editorial-shell .command-editorial-hero__copy h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  body.command-editorial-shell .command-chapter__marker {
    top: 22px;
    left: 20px;
    right: 20px;
    gap: 12px;
  }

  body.command-editorial-shell .command-chapter__marker-copy span {
    font-size: clamp(18px, 7vw, 28px);
  }
}

body.command-editorial-shell[data-admin-page="messages"] .message-center-grid,
body.command-editorial-shell[data-portal-page="messages"] .portal-message-grid {
  align-items: stretch;
  gap: 30px;
}

body.command-editorial-shell[data-admin-page="messages"] .admin-message-pane,
body.command-editorial-shell[data-portal-page="messages"] .portal-message-pane {
  position: relative;
  min-height: min(58svh, 760px);
  min-width: 0;
  padding-top: 22px !important;
}

body.command-editorial-shell[data-admin-page="messages"] .admin-message-pane::before,
body.command-editorial-shell[data-portal-page="messages"] .portal-message-pane::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

body.command-editorial-shell[data-admin-page="messages"] .admin-message-pane .section-heading,
body.command-editorial-shell[data-portal-page="messages"] .portal-message-pane .section-heading {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-top: 2px;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.96), rgba(8, 10, 18, 0.88) 72%, rgba(8, 10, 18, 0));
  backdrop-filter: blur(10px);
}

body.command-editorial-shell[data-admin-page="messages"] .admin-message-pane--users,
body.command-editorial-shell[data-admin-page="messages"] .admin-message-pane--threads,
body.command-editorial-shell[data-portal-page="messages"] .portal-message-pane--threads {
  padding-right: 14px !important;
}

body.command-editorial-shell[data-admin-page="messages"] .admin-message-pane--chat,
body.command-editorial-shell[data-portal-page="messages"] .portal-message-pane--chat {
  padding-left: 12px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

body.command-editorial-shell[data-admin-page="messages"] #adminMessageConversationList,
body.command-editorial-shell[data-admin-page="messages"] #adminMessageSubjectList,
body.command-editorial-shell[data-portal-page="messages"] #portalMessageThreadList {
  max-height: min(52svh, 680px);
  overflow-y: auto;
  padding-right: 6px;
  mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

body.command-editorial-shell[data-admin-page="messages"] #adminMessageTemplateList,
body.command-editorial-shell[data-portal-page="messages"] #portalMessageTemplateList {
  margin-bottom: 18px;
}

body.command-editorial-shell[data-admin-page="messages"] .admin-message-thread-shell,
body.command-editorial-shell[data-portal-page="messages"] #clientMessageForm {
  margin-top: 20px;
}

body.command-editorial-shell[data-admin-page="messages"] .admin-message-thread-list,
body.command-editorial-shell[data-portal-page="messages"] #clientMessagesList {
  padding: 8px 4px 12px 0;
  mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 22px), transparent 100%);
}

body.command-editorial-shell[data-admin-page="messages"] .client-message-card,
body.command-editorial-shell[data-portal-page="messages"] .portal-chat-bubble {
  position: relative;
  padding-top: 18px !important;
}

body.command-editorial-shell[data-admin-page="messages"] .client-message-card::before,
body.command-editorial-shell[data-portal-page="messages"] .portal-chat-bubble::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: 0.22;
}

body.command-editorial-shell[data-admin-page="messages"] .client-message-card--desk,
body.command-editorial-shell[data-portal-page="messages"] .portal-chat-bubble--desk {
  transform-origin: left center;
}

body.command-editorial-shell[data-admin-page="messages"] .client-message-card--client,
body.command-editorial-shell[data-portal-page="messages"] .portal-chat-bubble--client {
  transform-origin: right center;
}

body.command-editorial-shell[data-admin-page="messages"] .admin-message-compose,
body.command-editorial-shell[data-portal-page="messages"] #clientMessageForm {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.command-editorial-shell[data-admin-page="messages"] .message-thread-summary,
body.command-editorial-shell[data-portal-page="messages"] .message-thread-summary {
  margin-top: 6px;
  margin-bottom: 6px;
}

body.command-editorial-shell[data-admin-page="messages"] .message-thread-summary__item,
body.command-editorial-shell[data-portal-page="messages"] .message-thread-summary__item {
  padding-top: 14px !important;
}

body[data-theme="light"].command-editorial-shell[data-admin-page="messages"] .admin-message-pane .section-heading,
body[data-theme="light"].command-editorial-shell[data-portal-page="messages"] .portal-message-pane .section-heading {
  background: linear-gradient(180deg, rgba(248, 243, 234, 0.96), rgba(248, 243, 234, 0.88) 72%, rgba(248, 243, 234, 0));
}

body[data-theme="light"].command-editorial-shell[data-admin-page="messages"] .admin-message-pane--chat,
body[data-theme="light"].command-editorial-shell[data-portal-page="messages"] .portal-message-pane--chat {
  border-left-color: rgba(98, 76, 43, 0.08);
}

@media (max-width: 1400px) {
  body.command-editorial-shell[data-admin-page="messages"] .message-center-grid,
  body.command-editorial-shell[data-portal-page="messages"] .portal-message-grid {
    gap: 24px;
  }

  body.command-editorial-shell[data-admin-page="messages"] .admin-message-pane,
  body.command-editorial-shell[data-portal-page="messages"] .portal-message-pane,
  body.command-editorial-shell[data-admin-page="requests"] .admin-panel-grid > .admin-table-wrap,
  body.command-editorial-shell[data-portal-page="requests"] .portal-two-column--requests > .admin-table-wrap,
  body.command-editorial-shell[data-portal-page="requests"] .portal-two-column--requests > .portal-side-stack {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  body.command-editorial-shell[data-admin-page="messages"] .admin-message-pane,
  body.command-editorial-shell[data-portal-page="messages"] .portal-message-pane {
    min-height: auto;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body.command-editorial-shell[data-admin-page="messages"] .admin-message-pane--chat,
  body.command-editorial-shell[data-portal-page="messages"] .portal-message-pane--chat {
    border-left: 0;
  }

  body.command-editorial-shell[data-admin-page="messages"] .admin-message-pane .section-heading,
  body.command-editorial-shell[data-portal-page="messages"] .portal-message-pane .section-heading {
    position: static;
    backdrop-filter: none;
  }

  body.command-editorial-shell[data-admin-page="messages"] #adminMessageConversationList,
  body.command-editorial-shell[data-admin-page="messages"] #adminMessageSubjectList,
  body.command-editorial-shell[data-portal-page="messages"] #portalMessageThreadList,
  body.command-editorial-shell[data-admin-page="messages"] .admin-message-thread-list,
  body.command-editorial-shell[data-portal-page="messages"] #clientMessagesList {
    max-height: none;
    mask-image: none;
  }
}

body.command-editorial-shell[data-admin-page="requests"] .admin-panel-grid,
body.command-editorial-shell[data-portal-page="requests"] .portal-two-column--requests {
  align-items: start;
  gap: 30px;
}

body.command-editorial-shell[data-admin-page="requests"] .admin-panel-grid > .admin-table-wrap,
body.command-editorial-shell[data-portal-page="requests"] .portal-two-column--requests > .admin-table-wrap,
body.command-editorial-shell[data-portal-page="requests"] .portal-two-column--requests > .portal-side-stack {
  min-height: min(48svh, 640px);
  min-width: 0;
}

body.command-editorial-shell[data-admin-page="requests"] .admin-panel-grid > .admin-table-wrap,
body.command-editorial-shell[data-portal-page="requests"] .portal-side-stack > .admin-table-wrap,
body.command-editorial-shell[data-portal-page="requests"] #request-form {
  padding-top: 22px !important;
}

body.command-editorial-shell[data-admin-page="requests"] .admin-panel-grid .section-heading,
body.command-editorial-shell[data-portal-page="requests"] .portal-two-column--requests .section-heading,
body.command-editorial-shell[data-admin-page="requests"] .activity-filter-bar,
body.command-editorial-shell[data-portal-page="requests"] #portalRequestStatusTabs,
body.command-editorial-shell[data-portal-page="requests"] #portalRequestCategoryTabs {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.96), rgba(8, 10, 18, 0.88) 72%, rgba(8, 10, 18, 0));
  backdrop-filter: blur(10px);
}

body.command-editorial-shell[data-admin-page="requests"] .activity-filter-bar,
body.command-editorial-shell[data-portal-page="requests"] #portalRequestStatusTabs,
body.command-editorial-shell[data-portal-page="requests"] #portalRequestCategoryTabs {
  padding-top: 12px;
}

body.command-editorial-shell[data-portal-page="requests"] #portalRequestCategoryTabs {
  padding-bottom: 12px;
}

body.command-editorial-shell[data-admin-page="requests"] .table-scroll,
body.command-editorial-shell[data-portal-page="requests"] .portal-request-list {
  min-height: min(44svh, 560px);
}

body.command-editorial-shell[data-portal-page="requests"] .portal-side-stack {
  gap: 24px;
}

body.command-editorial-shell[data-portal-page="requests"] .portal-form-section {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.command-editorial-shell[data-portal-page="requests"] .portal-form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

body.command-editorial-shell[data-portal-page="requests"] .portal-request-preset-grid {
  gap: 12px;
}

body.command-editorial-shell[data-portal-page="requests"] .portal-request-preset {
  min-height: 58px;
}

body.command-editorial-shell[data-admin-page="requests"] .inquiry-table tbody tr,
body.command-editorial-shell[data-portal-page="requests"] .portal-request-card {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 240ms ease, background-color 240ms ease;
}

body.command-editorial-shell[data-admin-page="requests"] .inquiry-table tbody tr:hover,
body.command-editorial-shell[data-portal-page="requests"] .portal-request-card:hover {
  transform: translateX(6px);
}

body[data-theme="light"].command-editorial-shell[data-admin-page="requests"] .admin-panel-grid .section-heading,
body[data-theme="light"].command-editorial-shell[data-portal-page="requests"] .portal-two-column--requests .section-heading,
body[data-theme="light"].command-editorial-shell[data-admin-page="requests"] .activity-filter-bar,
body[data-theme="light"].command-editorial-shell[data-portal-page="requests"] #portalRequestStatusTabs,
body[data-theme="light"].command-editorial-shell[data-portal-page="requests"] #portalRequestCategoryTabs {
  background: linear-gradient(180deg, rgba(248, 243, 234, 0.96), rgba(248, 243, 234, 0.88) 72%, rgba(248, 243, 234, 0));
}

@media (max-width: 900px) {
  body.command-editorial-shell[data-admin-page="requests"] .admin-panel-grid > .admin-table-wrap,
  body.command-editorial-shell[data-portal-page="requests"] .portal-two-column--requests > .admin-table-wrap,
  body.command-editorial-shell[data-portal-page="requests"] .portal-two-column--requests > .portal-side-stack {
    min-height: auto;
  }

  body.command-editorial-shell[data-admin-page="requests"] .admin-panel-grid .section-heading,
  body.command-editorial-shell[data-portal-page="requests"] .portal-two-column--requests .section-heading,
  body.command-editorial-shell[data-admin-page="requests"] .activity-filter-bar,
  body.command-editorial-shell[data-portal-page="requests"] #portalRequestStatusTabs,
  body.command-editorial-shell[data-portal-page="requests"] #portalRequestCategoryTabs {
    position: static;
    backdrop-filter: none;
  }

  body.command-editorial-shell[data-admin-page="requests"] .inquiry-table tbody tr:hover,
  body.command-editorial-shell[data-portal-page="requests"] .portal-request-card:hover {
    transform: none;
  }
}

body.command-editorial-shell[data-portal-page="assets"] .portal-hero-grid,
body.command-editorial-shell[data-portal-page="documents"] .portal-hero-grid,
body.command-editorial-shell[data-portal-page="security"] .portal-hero-grid,
body.command-editorial-shell[data-portal-page="documents"] .portal-two-column,
body.command-editorial-shell[data-portal-page="profile"] .admin-panel-grid,
body.command-editorial-shell[data-portal-page="security"] .admin-panel-grid {
  align-items: start;
  gap: 30px;
}

body.command-editorial-shell[data-portal-page="assets"] .portal-side-stack,
body.command-editorial-shell[data-portal-page="documents"] .portal-side-stack,
body.command-editorial-shell[data-portal-page="profile"] .admin-panel-grid,
body.command-editorial-shell[data-portal-page="security"] .admin-panel-grid {
  gap: 24px;
}

body.command-editorial-shell[data-portal-page="assets"] .portal-hero-grid > *,
body.command-editorial-shell[data-portal-page="documents"] .portal-hero-grid > *,
body.command-editorial-shell[data-portal-page="security"] .portal-hero-grid > *,
body.command-editorial-shell[data-portal-page="documents"] .portal-two-column > *,
body.command-editorial-shell[data-portal-page="profile"] .admin-panel-grid > *,
body.command-editorial-shell[data-portal-page="security"] .admin-panel-grid > * {
  min-width: 0;
}

body.command-editorial-shell[data-portal-page="assets"] .portal-side-stack > .admin-table-wrap,
body.command-editorial-shell[data-portal-page="documents"] .portal-side-stack > .admin-table-wrap,
body.command-editorial-shell[data-portal-page="profile"] .admin-panel-grid > .admin-table-wrap,
body.command-editorial-shell[data-portal-page="security"] .admin-panel-grid > .admin-table-wrap,
body.command-editorial-shell[data-portal-page="documents"] .portal-two-column > .admin-table-wrap {
  padding-top: 22px !important;
}

body.command-editorial-shell[data-portal-page="assets"] .portal-asset-registry,
body.command-editorial-shell[data-portal-page="documents"] .table-scroll,
body.command-editorial-shell[data-portal-page="profile"] #portalKycDocumentsList,
body.command-editorial-shell[data-portal-page="security"] #portalSecurityNotes {
  min-height: min(40svh, 520px);
}

body.command-editorial-shell[data-portal-page="assets"] .portal-asset-registry,
body.command-editorial-shell[data-portal-page="profile"] #portalKycDocumentsList,
body.command-editorial-shell[data-portal-page="security"] #portalSecurityNotes {
  padding-right: 6px;
}

body.command-editorial-shell[data-portal-page="assets"] .section-heading,
body.command-editorial-shell[data-portal-page="documents"] .section-heading,
body.command-editorial-shell[data-portal-page="profile"] .section-heading,
body.command-editorial-shell[data-portal-page="security"] .section-heading {
  align-items: start;
}

body.command-editorial-shell[data-portal-page="assets"] .portal-asset-type-list,
body.command-editorial-shell[data-portal-page="assets"] .portal-asset-type-grid,
body.command-editorial-shell[data-portal-page="security"] #portalSecurityPresets,
body.command-editorial-shell[data-portal-page="profile"] #portalProfileRoutes {
  gap: 12px;
}

body.command-editorial-shell[data-portal-page="assets"] .portal-asset-type-grid .portal-asset-type,
body.command-editorial-shell[data-portal-page="security"] .portal-toggle-card,
body.command-editorial-shell[data-portal-page="profile"] .portal-service-card {
  min-height: 64px;
}

body.command-editorial-shell[data-portal-page="assets"] .portal-asset-composer__intro,
body.command-editorial-shell[data-portal-page="profile"] .portal-form-section,
body.command-editorial-shell[data-portal-page="security"] .portal-form-section {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.command-editorial-shell[data-portal-page="profile"] .portal-form-section:first-of-type,
body.command-editorial-shell[data-portal-page="security"] .portal-form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

body.command-editorial-shell[data-portal-page="documents"] #clientPortalDocumentForm,
body.command-editorial-shell[data-portal-page="profile"] #clientProfileForm,
body.command-editorial-shell[data-portal-page="profile"] #clientKycDocumentForm,
body.command-editorial-shell[data-portal-page="security"] #clientSecurityForm,
body.command-editorial-shell[data-portal-page="security"] #clientPreferencesForm,
body.command-editorial-shell[data-portal-page="assets"] #clientAssetForm {
  gap: 14px;
}

body.command-editorial-shell[data-portal-page="documents"] #clientPortalDocumentForm .admin-form-actions,
body.command-editorial-shell[data-portal-page="profile"] #clientProfileForm .admin-form-actions,
body.command-editorial-shell[data-portal-page="profile"] #clientKycDocumentForm .admin-form-actions,
body.command-editorial-shell[data-portal-page="security"] #clientSecurityForm .admin-form-actions,
body.command-editorial-shell[data-portal-page="security"] #clientPreferencesForm .admin-form-actions,
body.command-editorial-shell[data-portal-page="assets"] #clientAssetForm .admin-form-actions {
  padding-top: 10px;
}

body.command-editorial-shell[data-portal-page="documents"] .table-scroll,
body.command-editorial-shell[data-portal-page="assets"] .portal-asset-registry {
  padding-top: 6px;
}

body.command-editorial-shell[data-portal-page="security"] .portal-toggle-card {
  align-content: center;
}

body.command-editorial-shell[data-portal-page="profile"] #clientProfileForm .admin-compact.full-span,
body.command-editorial-shell[data-portal-page="documents"] #portalDocumentFileMeta {
  margin-top: 2px;
}

body[data-theme="light"].command-editorial-shell[data-portal-page="assets"] .portal-asset-composer__intro,
body[data-theme="light"].command-editorial-shell[data-portal-page="profile"] .portal-form-section,
body[data-theme="light"].command-editorial-shell[data-portal-page="security"] .portal-form-section {
  border-top-color: rgba(98, 76, 43, 0.1);
}

@media (max-width: 1180px) {
  body.command-editorial-shell[data-portal-page="assets"] .portal-hero-grid,
  body.command-editorial-shell[data-portal-page="documents"] .portal-hero-grid,
  body.command-editorial-shell[data-portal-page="security"] .portal-hero-grid,
  body.command-editorial-shell[data-portal-page="documents"] .portal-two-column,
  body.command-editorial-shell[data-portal-page="profile"] .admin-panel-grid,
  body.command-editorial-shell[data-portal-page="security"] .admin-panel-grid {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  body.command-editorial-shell[data-portal-page="assets"] .portal-asset-registry,
  body.command-editorial-shell[data-portal-page="documents"] .table-scroll,
  body.command-editorial-shell[data-portal-page="profile"] #portalKycDocumentsList,
  body.command-editorial-shell[data-portal-page="security"] #portalSecurityNotes {
    min-height: auto;
  }
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard,
body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard {
  gap: 42px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-band,
body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-band {
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  gap: 38px;
  padding: 10px 0 0;
  border-top: 0;
  align-items: stretch;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-panel,
body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-panel,
body.command-editorial-shell[data-admin-page="dashboard"] .command-panel,
body.command-editorial-shell[data-portal-page="dashboard"] .command-panel,
body.command-editorial-shell[data-admin-page="dashboard"] .command-ledger-wrap,
body.command-editorial-shell[data-portal-page="dashboard"] .command-ledger-wrap {
  padding-top: 24px !important;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-panel--hero,
body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-panel--hero {
  min-height: calc(100svh - 280px);
  align-content: end;
  gap: 28px;
  padding-bottom: 34px !important;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-panel--hero::before,
body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-panel--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 88% 18%, rgba(201, 170, 111, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  opacity: 0.92;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-panel--ledger,
body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-panel--ledger {
  display: grid;
  align-content: start;
  gap: 24px;
  padding-left: 28px !important;
  border-left: 1px solid rgba(201, 170, 111, 0.16) !important;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-copy,
body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-copy {
  gap: 16px;
  max-width: 76ch;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-copy .admin-title,
body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-copy .admin-title {
  max-width: 11ch;
  font-size: clamp(62px, 7.4vw, 110px);
  line-height: 0.86;
  letter-spacing: -0.03em;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-hero__copy,
body.command-editorial-shell[data-portal-page="dashboard"] .command-hero__copy {
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.82;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-actions,
body.command-editorial-shell[data-portal-page="dashboard"] .command-actions,
body.command-editorial-shell[data-portal-page="dashboard"] .portal-dashboard-actions {
  gap: 12px;
  margin-top: 2px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-signal-grid,
body.command-editorial-shell[data-portal-page="dashboard"] .command-signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-signal-card,
body.command-editorial-shell[data-portal-page="dashboard"] .command-signal-card {
  padding: 18px 0 0;
  min-height: 0;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-signal-card strong,
body.command-editorial-shell[data-portal-page="dashboard"] .command-signal-card strong {
  font-size: 15px;
  line-height: 1.64;
}

body.command-editorial-shell[data-admin-page="dashboard"] .admin-stats.command-hero__stats,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-stats.command-hero__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .admin-stats .access-card,
body.command-editorial-shell[data-admin-page="dashboard"] .admin-stats .portal-stat-card,
body.command-editorial-shell[data-admin-page="dashboard"] .admin-stats .admin-kpi,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-stats .access-card,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-stats .portal-stat-card,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-stats .admin-kpi {
  min-height: 0;
  padding-top: 18px !important;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid,
body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--equal,
body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--spotlight,
body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid,
body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--equal,
body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--spotlight {
  gap: 34px;
  align-items: stretch;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--spotlight,
body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--spotlight {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--equal,
body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-panel,
body.command-editorial-shell[data-portal-page="dashboard"] .command-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-panel .section-heading,
body.command-editorial-shell[data-portal-page="dashboard"] .command-panel .section-heading,
body.command-editorial-shell[data-admin-page="dashboard"] .command-ledger-wrap .section-heading,
body.command-editorial-shell[data-portal-page="dashboard"] .command-ledger-wrap .section-heading {
  margin-bottom: 0;
  padding-bottom: 16px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-cluster,
body.command-editorial-shell[data-admin-page="dashboard"] .command-stack,
body.command-editorial-shell[data-admin-page="dashboard"] .admin-list,
body.command-editorial-shell[data-portal-page="dashboard"] .command-cluster,
body.command-editorial-shell[data-portal-page="dashboard"] .command-stack,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-list {
  gap: 16px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .admin-kpi,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-kpi {
  min-height: 0;
  padding: 20px 0 0 !important;
}

body.command-editorial-shell[data-admin-page="dashboard"] .admin-kpi-value,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-kpi-value {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.94;
}

body.command-editorial-shell[data-admin-page="dashboard"] .admin-note,
body.command-editorial-shell[data-admin-page="dashboard"] .admin-list-item,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-note,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-list-item,
body.command-editorial-shell[data-portal-page="dashboard"] .portal-link-card {
  padding-top: 18px !important;
}

body.command-editorial-shell[data-admin-page="dashboard"] .admin-note strong,
body.command-editorial-shell[data-admin-page="dashboard"] .admin-list-item h3,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-note strong,
body.command-editorial-shell[data-portal-page="dashboard"] .admin-list-item h3,
body.command-editorial-shell[data-portal-page="dashboard"] .portal-link-card strong {
  display: block;
  margin-bottom: 6px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-ledger-wrap .table-scroll,
body.command-editorial-shell[data-portal-page="dashboard"] .command-ledger-wrap .table-scroll {
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-ledger-table th,
body.command-editorial-shell[data-portal-page="dashboard"] .command-ledger-table th {
  background: transparent;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-ledger-table td,
body.command-editorial-shell[data-portal-page="dashboard"] .command-ledger-table th,
body.command-editorial-shell[data-portal-page="dashboard"] .command-ledger-table td,
body.command-editorial-shell[data-portal-page="dashboard"] .command-ledger-table th {
  padding-left: 0;
  padding-right: 18px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-panel--hero:hover,
body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-panel--hero:hover,
body.command-editorial-shell[data-admin-page="dashboard"] .command-panel:hover,
body.command-editorial-shell[data-portal-page="dashboard"] .command-panel:hover {
  transform: none;
}

@media (max-width: 1180px) {
  body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-band,
  body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-band,
  body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--spotlight,
  body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--equal,
  body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--spotlight,
  body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--equal {
    grid-template-columns: 1fr;
  }

  body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-panel--ledger,
  body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-panel--ledger {
    padding-left: 0 !important;
    border-left: 0 !important;
  }
}

@media (max-width: 900px) {
  body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-panel--hero,
  body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-panel--hero {
    min-height: auto;
    padding-bottom: 18px !important;
  }

  body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-copy .admin-title,
  body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-copy .admin-title {
    max-width: none;
    font-size: clamp(42px, 12vw, 68px);
  }

  body.command-editorial-shell[data-admin-page="dashboard"] .command-signal-grid,
  body.command-editorial-shell[data-portal-page="dashboard"] .command-signal-grid,
  body.command-editorial-shell[data-admin-page="dashboard"] .admin-stats.command-hero__stats,
  body.command-editorial-shell[data-portal-page="dashboard"] .admin-stats.command-hero__stats {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   Post-Chapter Shell Reset
   ================================================================ */
body.command-editorial-shell {
  background:
    radial-gradient(circle at top right, rgba(201, 170, 111, 0.06), transparent 24%),
    radial-gradient(circle at bottom left, rgba(120, 143, 199, 0.05), transparent 20%),
    #07080d;
}

body.command-editorial-shell .command-stage::before {
  opacity: 0.18;
}

body.command-editorial-shell .command-dock {
  display: none !important;
}

body.command-editorial-shell .command-editorial-shell__inner,
body.command-editorial-shell .command-stage {
  padding-left: 0;
}

body.command-editorial-shell .command-bodyframe {
  width: min(100%, 1480px);
  margin: 0 auto;
  position: relative;
  padding-left: 290px;
  min-width: 0;
}

body.command-editorial-shell .command-routebar {
  position: fixed;
  top: calc(var(--header-height, 88px) + 18px);
  left: max(28px, calc(50% - 740px + 28px));
  bottom: 28px;
  width: min(246px, calc(100vw - 56px));
  z-index: 12;
  padding: 0;
}

body.command-editorial-shell .command-routebar__inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid rgba(201, 170, 111, 0.1);
  background: #0b1017;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: auto;
}

body.command-editorial-shell .command-routebar__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 14%, transparent 84%, rgba(255, 255, 255, 0.015));
  opacity: 0.46;
}

body.command-editorial-shell .command-routebar__lead {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 170, 111, 0.1);
}

body.command-editorial-shell .command-routebar__eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(238, 241, 248, 0.5);
}

body.command-editorial-shell .command-routebar__lead strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 1.9vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--white);
}

body.command-editorial-shell .command-routebar__lead p {
  max-width: none;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 241, 248, 0.5);
}

body.command-editorial-shell .command-routebar__groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
  align-content: start;
}

body.command-editorial-shell .command-routebar__group {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-left: 0;
  padding-top: 12px;
  border-left: 0;
  border-top: 1px solid rgba(201, 170, 111, 0.1);
}

body.command-editorial-shell .command-routebar__group:first-child {
  padding-top: 0;
  border-top: 0;
}

body.command-editorial-shell .command-routebar__label {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(238, 241, 248, 0.42);
}

body.command-editorial-shell .command-routebar__links {
  display: grid;
  gap: 2px;
}

body.command-editorial-shell .command-routebar__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 34px;
  padding: 7px 0 7px 14px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--text);
  transition:
    border-color 280ms ease,
    color 220ms ease,
    opacity 220ms ease,
    background-color 220ms ease;
}

body.command-editorial-shell .command-routebar__link:hover,
body.command-editorial-shell .command-routebar__link.is-active {
  color: var(--white);
  border-color: rgba(201, 170, 111, 0.5);
  background: rgba(255, 255, 255, 0.02);
}

body.command-editorial-shell .command-routebar__icon {
  display: none;
}

body.command-editorial-shell .command-routebar__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.55;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

body.command-editorial-shell .command-routebar__text {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: normal;
}

body.command-editorial-shell .command-stage {
  min-width: 0;
  padding-top: 12px;
}

body[data-theme="light"].command-editorial-shell .command-routebar__inner {
  background: rgba(252, 247, 238, 0.98);
  box-shadow: 0 18px 36px rgba(90, 72, 44, 0.1);
}

body[data-theme="light"].command-editorial-shell .command-routebar__eyebrow,
body[data-theme="light"].command-editorial-shell .command-routebar__label,
body[data-theme="light"].command-editorial-shell .command-routebar__lead p {
  color: rgba(64, 49, 27, 0.6);
}

body[data-theme="light"].command-editorial-shell .command-routebar__lead strong {
  color: #241b11;
}

body[data-theme="light"].command-editorial-shell .command-routebar__group {
  border-top-color: rgba(141, 108, 56, 0.14);
}

body[data-theme="light"].command-editorial-shell .command-routebar__link:hover,
body[data-theme="light"].command-editorial-shell .command-routebar__link.is-active {
  border-color: rgba(141, 108, 56, 0.5);
  background: rgba(141, 108, 56, 0.05);
}

body.command-editorial-shell .command-dock__label {
  padding-left: 6px;
  color: rgba(238, 241, 248, 0.5);
}

body.command-editorial-shell .command-stage {
  padding-top: 26px;
}

body.command-editorial-shell .command-stage > section,
body.command-editorial-shell .command-stage > .admin-table-wrap {
  position: relative;
  padding-top: 0;
  margin-top: 0;
}

body.command-editorial-shell .command-stage > section + section,
body.command-editorial-shell .command-stage > section + .admin-table-wrap,
body.command-editorial-shell .command-stage > .admin-table-wrap + section,
body.command-editorial-shell .command-stage > .admin-table-wrap + .admin-table-wrap {
  margin-top: 34px;
}

body.command-editorial-shell .command-stage > section::before,
body.command-editorial-shell .command-stage > .admin-table-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

body.command-editorial-shell .command-stage > section:first-child::before,
body.command-editorial-shell .command-stage > .admin-table-wrap:first-child::before {
  display: none;
}

body.command-editorial-shell .command-overview-band,
body.command-editorial-shell .command-dashboard-grid,
body.command-editorial-shell .command-dashboard-grid--equal,
body.command-editorial-shell .command-dashboard-grid--spotlight,
body.command-editorial-shell .admin-panel-grid,
body.command-editorial-shell .portal-hero-grid,
body.command-editorial-shell .portal-two-column,
body.command-editorial-shell .portal-two-column--requests {
  border-top: 0 !important;
}

body.command-editorial-shell .command-overview-panel,
body.command-editorial-shell .command-panel,
body.command-editorial-shell .admin-table-wrap.command-panel,
body.command-editorial-shell .admin-table-wrap.command-ledger-wrap,
body.command-editorial-shell .admin-summary.command-overview-panel {
  overflow: visible;
}

body.command-editorial-shell .command-overview-panel::after,
body.command-editorial-shell .command-panel::after {
  display: none;
}

body.command-editorial-shell .command-overview-panel--hero,
body.command-editorial-shell .command-overview-panel--ledger,
body.command-editorial-shell .command-panel,
body.command-editorial-shell .command-ledger-wrap,
body.command-editorial-shell .portal-hero-card--main,
body.command-editorial-shell .portal-mini-card {
  padding-top: 26px !important;
}

body.command-editorial-shell .command-overview-panel--hero::before,
body.command-editorial-shell .command-overview-panel--ledger::before,
body.command-editorial-shell .command-panel::before,
body.command-editorial-shell .command-ledger-wrap::before,
body.command-editorial-shell .portal-hero-card--main::before,
body.command-editorial-shell .portal-mini-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0));
  opacity: 0.5;
  pointer-events: none;
}

body.command-editorial-shell .command-overview-panel--hero {
  min-height: 0 !important;
  padding-bottom: 0 !important;
}

body.command-editorial-shell .command-overview-panel--ledger {
  padding-left: 0 !important;
  border-left: 0 !important;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-band,
body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-band {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-copy .admin-title,
body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-copy .admin-title {
  max-width: 12ch;
  font-size: clamp(54px, 6.5vw, 92px);
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--spotlight,
body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--spotlight,
body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--equal,
body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--tall,
body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--tall {
  align-items: start;
}

body.command-editorial-shell .admin-summary,
body.command-editorial-shell .admin-table-wrap,
body.command-editorial-shell .portal-modal__panel {
  padding-top: 26px !important;
}

body.command-editorial-shell .section-heading {
  margin-bottom: 18px;
  padding-bottom: 14px;
}

body.command-editorial-shell .section-heading::after {
  width: min(132px, 18%);
  opacity: 0.11;
}

body.command-editorial-shell .command-editorial-hero {
  padding: 30px 0 22px;
}

body.command-editorial-shell .command-editorial-hero__copy h1 {
  max-width: 11ch;
}

body.command-editorial-shell .command-editorial-hero__aside {
  gap: 8px;
}

body.command-editorial-shell .command-chapter,
body.command-editorial-shell .command-chapter-rail {
  display: none !important;
}

@media (max-width: 1180px) {
  body.command-editorial-shell .command-bodyframe {
    padding-left: 0;
  }

  body.command-editorial-shell .command-routebar {
    position: static;
    left: auto;
    width: auto;
    bottom: auto;
    padding-top: 0;
  }

  body.command-editorial-shell .command-routebar__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.command-editorial-shell .command-routebar__groups {
    gap: 14px;
  }

  body.command-editorial-shell .command-routebar__group {
    padding-top: 12px;
  }

  body.command-editorial-shell[data-admin-page="dashboard"] .command-overview-band,
  body.command-editorial-shell[data-portal-page="dashboard"] .command-overview-band,
  body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--spotlight,
  body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--spotlight,
  body.command-editorial-shell[data-admin-page="dashboard"] .command-dashboard-grid--equal,
  body.command-editorial-shell[data-portal-page="dashboard"] .command-dashboard-grid--equal {
    grid-template-columns: 1fr;
  }
}
