/* TEHIX interface layer. Existing public styles remain in app.css. */
:root {
  --surface: #101118;
  --surface-raised: #15151e;
  --line: #ffffff0e;
  --lavender: #bda3ff;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
[hidden] { display: none !important; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
a.brand, .skip { min-height: 44px; }
.subtle-link { display: inline-flex; align-items: center; min-height: 44px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #c4afff; outline-offset: 4px; }
.brand-mark { background: #a984ff; color: #111018; border-radius: 10px; box-shadow: none; }
.brand-ext { color: #bda3ff; }
.overline { font: 10px/1.6 var(--mono); letter-spacing: 1.8px; color: #b5a0d8; }
.button.primary { background: #a786ff; color: #150e26; border-color: #c7afff; box-shadow: inset 0 1px #ffffff30, 0 5px 22px #6d36ca1a; }
.button.primary:hover { background: #bda3ff; }
.notice { display: flex; align-items: center; gap: 12px; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #ffffff04; color: #d4cced; }
.admin-action-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.admin-trash { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; flex-shrink:0; color:#e1acbf; border:1px solid #c9839d45; background:#c9839d08; border-radius:9px; }
.admin-trash:hover,.admin-danger:hover { color:#ffe0ea; border-color:#e8abc2; background:#c9839d18; }
.admin-safety-panel { margin:25px 0; padding:28px; min-width:0; border-color:#ba92d849; }
.admin-safety-panel h1 { font-size:clamp(28px,4vw,42px); font-weight:500; letter-spacing:-1px; }
.admin-safety-panel h2 { font-size:25px; font-weight:500; }
.admin-safety-panel p { color:#c9b4d8; font-size:13px; line-height:1.9; overflow-wrap:anywhere; }
.admin-safety-panel .admin-archive-subject { color:#efdef8; font-size:19px; }
.admin-action-form { display:grid; gap:22px; max-width:760px; margin-top:24px; }
.admin-action-form label { display:grid; gap:10px; color:#d0b9df; font-size:13px; }
.admin-action-form textarea { width:100%; min-height:100px; padding:14px; color:#f0e1fa; background:#0d0c12; border:1px solid #b595cb40; border-radius:8px; font:inherit; line-height:1.7; resize:vertical; }
.admin-action-form .admin-action-check { display:flex; align-items:flex-start; gap:12px; min-height:44px; line-height:1.8; }
.admin-action-check input { margin-top:4px; accent-color:#bea0df; width:18px; height:18px; flex-shrink:0; }
.admin-action-button,.admin-action-link { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:10px 14px; color:#d6b9ed; font-size:12px; line-height:1.6; border-radius:8px; }
.admin-action-button { cursor:pointer; border:1px solid #c9839d55; background:#c9839d0c; color:#efbfd0; }
.admin-override>summary { display:flex; align-items:center; gap:12px; min-height:44px; font-size:14px; line-height:1.7; color:#dec1f5; cursor:pointer; }
.admin-override>summary .icon { flex-shrink:0; }
@media(max-width:700px) { .admin-safety-panel { padding:22px; }.admin-action-form textarea { font-size:16px; }.admin-action-button { width:100%; }.issue-detail-heading>.admin-action-row { width:100%; } }

/* Workspace */
.admin-body { background: #0c0d12; color: #eceaf4; }
.admin-shell { grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; align-self: start; min-height: 100dvh; height: 100dvh; overflow-y: auto; padding: 32px 18px 18px; background: #0b0c11; border-right: 1px solid #ffffff0b; gap: 0; }
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; }
.sidebar .brand { margin: 0 0 38px; padding: 0 12px; font-size: 19px; gap: 11px; letter-spacing: -.6px; }
.sidebar .brand-mark { width: 34px; height: 36px; font-size: 29px; }
.sidebar .brand small { display: block; margin-top: 3px; color: #838296; font: 8px/1.4 var(--mono); letter-spacing: 2px; }
.sidebar .side-label { display: flex; justify-content: space-between; margin: 24px 14px 11px; color: #828192; font: 9px var(--mono); letter-spacing: 1.3px; }
.side-label > span { color: #9488a6; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar .side-item { min-height: 46px; border: 1px solid transparent; padding: 10px 13px; gap: 12px; font-size: 12px; color: #a6a3b5; }
.sidebar .side-item .icon { width: 18px; height: 18px; }
.sidebar .side-item > span { font-size: 12px; }
.sidebar a.side-item:hover { color: #ece4ff; background: #ffffff04; }
.sidebar .side-item.active { background: linear-gradient(100deg, #9870ef1f, #9870ef09); border-color: #b295ef19; color: #d7c7ff; }
.nav-active-dot { width: 5px; height: 5px; background: #baa1f9; border-radius: 50%; margin-left: auto; }
.side-item.unavailable { color: #777383; cursor: default; }
.side-item.unavailable small { margin-left: auto; color: #918a9f; font: 9px var(--mono); }
.sidebar-note { display: flex; gap: 12px; align-items: center; margin: auto 12px 24px; padding-top: 36px; font-size: 11px; color: #8d899e; line-height: 1.8; }
.sidebar-note strong { font-weight: 400; color: #b5aec8; }
.note-line { width: 2px; height: 32px; background: linear-gradient(#bba0ff, #463454); }
.sidebar-account { display: flex; align-items: center; gap: 10px; padding: 18px 9px 0; border-top: 1px solid var(--line); }
.sidebar-account > div { min-width: 0; flex: 1; }
.sidebar-account strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account small { display: block; margin-top: 3px; color: #9a93a9; font-size: 10px; overflow-wrap: anywhere; }
.sidebar-account > .icon { width: 15px; color: #827495; }
.user-avatar { width: 36px; height: 36px; flex: 0 0 36px; background: #252030; color: #d9caff; border: 1px solid #bea2ee24; font-size: 12px; font-weight: 600; border-radius: 12px; }
.user-avatar.compact { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
.admin-topbar { height: 76px; padding: 0 40px; border-color: var(--line); }
.topbar-symbol { color: #9a7cce; font: 23px var(--mono); margin-right: 12px; }
.topbar-breadcrumb { color: #8d899c; font-size: 11px; }
.topbar-breadcrumb > span { margin: 0 12px; color: #9585a4; }
.topbar-breadcrumb strong { font-size: 11px; color: #c9c3d8; font-weight: 500; }
.topbar-meta { display: flex; align-items: center; gap: 18px; }
.topbar-date { color: #9690a5; font: 10px var(--mono); }
.environment-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border: 1px solid #cfb39e30; border-radius: 5px; color: #d8baa2; font: 9px var(--mono); }
.admin-content { max-width: 1440px; padding: 36px 40px 44px; margin: 0 auto; }
.dashboard-hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 302px; margin-bottom: 34px; overflow: hidden; border-bottom: 1px solid var(--line); }
.dashboard-hero-copy { position: relative; z-index: 1; padding-bottom: 35px; min-width: 0; }
.label-divider { color: #9585a4; margin: 0 8px; }
.dashboard-hero h1 { font-size: clamp(40px, 4.8vw, 68px); font-weight: 650; letter-spacing: -3.6px; line-height: 1.02; margin: 20px 0 18px; }
.dashboard-hero h1 > span { color: #b6a3de; }
.dashboard-hero p { margin: 0; color: #9d97ad; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.dashboard-hero p strong { color: #d4cbe4; font-weight: 500; }
.hero-context { display: flex; align-items: center; gap: 7px; margin-top: 20px; color: #938c9f; font: 9px var(--mono); }
.context-square { width: 5px; height: 5px; background: #9d7cda; }
.hub-emblem { width: 290px; height: 290px; position: relative; flex: 0 0 290px; margin: -20px 26px 12px 0; background: radial-gradient(ellipse, #8b5cf61a, transparent 65%); }
.emblem-orbit { position: absolute; border: 1px solid #af8ede28; border-radius: 50%; }
.orbit-outer { inset: 20px; border-color: #ffffff0d; }
.orbit-inner { inset: 47px; border-style: dashed; border-color: #b793e622; }
.emblem-cross { position: absolute; background: #b095d714; }
.cross-one { left: 0; right: 0; top: 50%; height: 1px; }
.cross-two { top: 0; bottom: 0; left: 50%; width: 1px; }
.emblem-center { position: absolute; inset: 80px; display: grid; place-items: center; color: #bea5f2; font-size: 106px; line-height: 1; text-shadow: 0 0 40px #ac79ff20; transform: rotate(-12deg); }
.orbit-node { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #c0a5f2; box-shadow: 0 0 0 5px #bca2ed0b; }
.node-one { left: 53px; top: 53px; }
.node-two { right: 33px; bottom: 81px; width: 5px; height: 5px; background: #686175; }
.emblem-label { position: absolute; color: #aaa0bd; font: 8px var(--mono); letter-spacing: 2px; background: #0c0d12; padding: 5px 10px; }
.label-top { top: 8px; left: 108px; }
.label-bottom { bottom: 10px; left: 88px; }
.emblem-coordinate { position: absolute; right: -12px; top: 50%; color: #766886; font: 8px var(--mono); transform: rotate(90deg) translateX(-50%); transform-origin: 100% 0; }
.section-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.section-caption h2 { font-size: 13px; font-weight: 500; margin: 0; }
.section-caption > span { font: 9px var(--mono); color: #9b91aa; }
.stats-grid { gap: 14px; }
.metric-card { position: relative; padding: 21px 23px 18px; border: 1px solid #ffffff0e; border-radius: 14px; background: linear-gradient(130deg, #17151e, #111218 80%); min-width: 0; }
.metric-card::after { content: ''; position: absolute; top: 0; left: 23px; right: 23px; height: 1px; background: linear-gradient(90deg, #b59ad54a, transparent); }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { color: #bea7e7; }
.metric-icon .icon { width: 19px; height: 19px; }
.metric-index { font: 9px var(--mono); color: #a092af; }
.metric-card h3 { font-size: 11px; font-weight: 400; color: #b3aabe; margin: 22px 0 2px; }
.metric-value { font-size: 44px; font-weight: 500; letter-spacing: -2px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.metric-card p { margin: 6px 0 0; font-size: 10px; color: #9a91a5; }
.metric-testing { background: linear-gradient(135deg, #21192e, #141219); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; margin-top: 24px; }
.workspace-panel { background: #101117; border: 1px solid var(--line); border-radius: 15px; padding: 27px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-heading h2 { font-size: 19px; font-weight: 500; letter-spacing: -.65px; margin: 7px 0 0; }
.panel-glyph { color: #9d88b9; }
.panel-description { color: #9e95ac; font-size: 11px; margin: 13px 0 22px; }
.pipeline-list { display: grid; gap: 18px; margin: 24px 0; }
.pipeline-row { display: grid; grid-template-columns: 19px 91px minmax(20px,1fr) 25px; align-items: center; gap: 10px; }
.stage-index { color: #9b89af; font: 9px var(--mono); }
.stage-label { color: #b9b0c6; font-size: 11px; }
.pipeline-row strong { text-align: right; font: 11px var(--mono); color: #cec0df; }
.pipeline-row meter { appearance: none; -webkit-appearance: none; height: 4px; width: 100%; background: #26212e; border: 0; border-radius: 4px; }
.pipeline-row meter::-webkit-meter-bar { height: 4px; border: 0; background: #26212e; border-radius: 4px; }
.pipeline-row meter::-webkit-meter-optimum-value { background: #9f81cf; border-radius: 4px; }
.pipeline-row meter::-moz-meter-bar { background: #9f81cf; border-radius: 4px; }
.panel-footnote { display: flex; align-items: center; gap: 7px; padding-top: 16px; margin-top: 28px; border-top: 1px solid var(--line); color: #9a8ca8; font: 9px var(--mono); }
.tiny-dot { width: 4px; height: 4px; background: #c0a1e1; border-radius: 50%; }
.next-release-panel { display: flex; flex-direction: column; background: radial-gradient(ellipse at 90% 10%, #69469e16, transparent 70%), #101117; }
.dashboard-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 208px; padding: 20px 0; flex: 1; }
.dashboard-empty > .icon { color: #9f82bd; margin-bottom: 12px; }
.empty-orbit { display: grid; place-items: center; width: 55px; height: 55px; border: 1px solid #b49bda23; border-radius: 50%; box-shadow: 0 0 0 8px #a384c305; color: #ae91d7; font-size: 25px; margin-bottom: 16px; }
.dashboard-empty h3 { font-size: 13px; font-weight: 500; margin: 5px 0 8px; }
.dashboard-empty p { color: #a196ad; font-size: 11px; line-height: 1.8; margin: 0; max-width: 280px; }
.panel-link { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-top: 1px solid var(--line); padding-top: 14px; color: #c3addf; font-size: 10px; }
.panel-link .icon { width: 16px; height: 16px; }
.release-version { display: flex; flex-direction: column; margin: 28px 0 24px; }
.release-version > span { color: #9b8bab; font: 9px var(--mono); letter-spacing: 2px; }
.release-version > strong { font-size: 48px; letter-spacing: -2px; font-weight: 500; overflow-wrap: anywhere; }
.release-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.release-facts span, .release-facts strong { display: block; font-size: 10px; }
.release-facts span { color: #a08fac; margin-bottom: 6px; }
.release-facts strong { color: #d7c7e2; font-weight: 400; }
.target-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 21px 0; }
.target-badges > span { color: #c3b4d2; border: 1px solid #b7a0cc22; border-radius: 5px; padding: 6px 8px; font-size: 9px; }
.target-badges b { font-weight: 400; color: #ad94c8; margin-left: 6px; }
.activity-list { list-style: none; padding: 0; margin: 20px 0 0; }
.activity-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.activity-list li:last-child { border-bottom: 0; }
.activity-marker { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #aa83cd0a; color: #ad91c8; flex: 0 0 31px; }
.activity-marker .icon { width: 15px; height: 15px; }
.activity-list li > div { min-width: 0; }
.activity-list strong { display: block; font-size: 10px; font-weight: 400; }
.activity-list li > div > span { display: block; color: #a091ae; font-size: 9px; margin-top: 4px; overflow-wrap: anywhere; }
.activity-list time { margin-left: auto; color: #a396af; font: 8px var(--mono); white-space: nowrap; }
.compact-empty { min-height: 140px; }
.horizon-panel { position: relative; overflow: hidden; background: linear-gradient(135deg,#1c1628,#121117); }
.horizon-panel h2 { font-size: 32px; line-height: 1.12; letter-spacing: -1.2px; font-weight: 500; margin: 22px 0 15px; position: relative; z-index: 1; }
.horizon-panel h2 > span { color: #b092da; }
.horizon-panel > p { max-width: 235px; font-size: 11px; line-height: 1.9; color: #ad9dbb; margin-bottom: 28px; position: relative; z-index: 1; }
.future-feature { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; color: #c0adc9; border-top: 1px solid #ccb7e010; min-height: 40px; position: relative; z-index: 1; }
.future-tag { font: 8px var(--mono); color: #a993be; }
.horizon-mark { position: absolute; right: -22px; top: 8px; font-size: 240px; color: #b385e307; transform: rotate(-15deg); }
.admin-footer { justify-content: space-between; align-items: center; padding: 16px 40px; border-color: var(--line); flex-wrap: wrap; }
.footer-signature { color: #96909f; font: 8px var(--mono); letter-spacing: 1px; }
.footer-signature > span { color: #a78dc7; }
.account-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.account-actions a, .logout-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 10px; color: #b4a7c2; }
.account-actions .icon, .logout-link .icon { width: 13px; height: 13px; }
.drawer-toggle, .drawer-close, .drawer-backdrop { display: none; }

/* Authentication */
.auth-body { display: block; background: #0b0c11; }
.auth-stage { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; max-width: 1800px; margin: auto; }
.auth-story { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 800px; padding: 48px 64px 30px; border-right: 1px solid #ffffff0c; background: radial-gradient(ellipse at 40% 80%, #70539515, transparent 65%), #0e0f16; }
.auth-story::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#ac8ae906 1px,transparent 1px),linear-gradient(90deg,#ac8ae906 1px,transparent 1px); background-size: 65px 65px; mask-image: linear-gradient(transparent,#000); }
.auth-story > .brand { align-self: flex-start; font-size: 21px; gap: 8px; position: relative; z-index: 1; }
.auth-story-copy { position: relative; z-index: 1; margin-top: 92px; }
.auth-story-copy h2 { font-size: clamp(32px,3.5vw,53px); line-height: 1.12; letter-spacing: -2px; font-weight: 500; margin: 22px 0; }
.auth-story-copy h2 > span { color: #bba4d8; }
.auth-story-copy p { font-size: 13px; line-height: 1.9; color: #a79bb4; }
.auth-art { position: relative; width: 310px; height: 310px; margin: 18px auto 38px; }
.auth-orbit { position: absolute; border-radius: 50%; border: 1px solid #b293da2c; }
.auth-orbit.outer { inset: 8px; border-color: #a98dcb15; }
.auth-orbit.inner { inset: 43px; border-style: dashed; }
.auth-art-axis { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #aa8fc31c; transform: rotate(-35deg); }
.auth-art-core { position: absolute; inset: 67px; display: grid; place-items: center; font-size: 150px; color: #ad8ad7; text-shadow: 0 0 50px #a676dc1a; transform: rotate(-12deg); }
.auth-art-label { position: absolute; bottom: 0; left: 45px; padding: 7px; background: #0e0f16; font: 8px var(--mono); letter-spacing: 2px; color: #b09ac5; }
.auth-art-node { width: 7px; height: 7px; background: #c0a0e9; border-radius: 50%; position: absolute; left: 31px; bottom: 63px; box-shadow: 0 0 0 7px #ae86da0b; }
.auth-story-footer { position: relative; display: flex; justify-content: space-between; margin-top: auto; font: 8px var(--mono); letter-spacing: 1.5px; color: #998aa8; }
.auth-wrap { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 560px; padding: 65px 65px 30px; margin: auto; min-height: 100dvh; }
.auth-card { padding: 0; }
.auth-step { display: block; font: 10px var(--mono); color: #c0a0ea; letter-spacing: 1px; margin-bottom: 28px; }
.auth-step > span { color: #9687a6; margin-left: 8px; font-size: 9px; }
.auth-card h1 { font-size: clamp(36px,4vw,51px); letter-spacing: -2px; line-height: 1.08; font-weight: 500; margin: 0 0 18px; }
.auth-card h1 > span { color: #bfa8de; }
.auth-card > p { color: #a799b7; font-size: 12px; }
.auth-card .form-stack { margin-top: 32px; gap: 9px; }
.form-stack label { color: #c8bbd4; font-size: 11px; font-weight: 400; margin-top: 11px; }
.auth-card .form-stack input { background: #111118; border-color: #ffffff12; border-radius: 8px; min-height: 52px; padding: 14px; font-size: 12px; }
.form-stack input::placeholder { color: #8f829e; }
.auth-card .form-stack input:focus { border-color: #b68cdb9e; box-shadow: 0 0 0 3px #a781d00f; }
.auth-card .button.full { margin-top: 22px; justify-content: space-between; min-height: 52px; border-radius: 8px; padding: 13px 17px; font-size: 12px; }
.password-field { position: relative; }
.password-toggle { display: none; position: absolute; right: 5px; top: 4px; bottom: 4px; min-width: 59px; border: 0; background: transparent; color: #bda7d5; padding: 0 8px; font-size: 10px; border-radius: 5px; }
.js-ready .password-toggle { display: block; }
.js-ready .password-field input { padding-right: 75px; }
.auth-card .auth-note { display: flex; gap: 9px; text-align: left; align-items: flex-start; font-size: 10px !important; color: #a092ad; line-height: 1.8; margin-top: 25px; }
.auth-note .icon { width: 14px; height: 14px; margin-top: 3px; }
.auth-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 32px; margin-top: 42px; border-top: 1px solid var(--line); color: #a395b0; font-size: 9px; }
.auth-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.auth-bottom > span { display: flex; align-items: center; gap: 5px; }
.auth-bottom .icon { width: 12px; height: 12px; }
.auth-mobile-brand { display: none; }
.auth-environment { align-self: flex-start; margin-bottom: 24px; }
.field-help { color: #a396af; font-size: 10px; }
.auth-signout { margin-top: 15px; text-align: center; }
.password-card h1 { font-size: 40px; }

/* A light refinement of the existing public identity. */
.site-header { background: #0c0d12; }
.site-header .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-header .nav-action { padding: 9px 15px; }
.hero h1 { font-weight: 650; }
.hero h1 em { background: none; -webkit-text-fill-color: #bea1ec; color: #bea1ec; }
.panel { box-shadow: inset 0 1px #ffffff03; }
.glass-preview { border-radius: 25px; border-color: #c0a3e327; }

@media (min-width: 1600px) { .admin-content { padding-left: 64px; padding-right: 64px; } }
@media (max-width: 1200px) {
  .admin-content { padding: 28px; }
  .admin-topbar, .admin-footer { padding-left: 28px; padding-right: 28px; }
  .hub-emblem { margin-right: 0; width: 250px; height: 250px; flex-basis: 250px; }
  .emblem-center { inset: 65px; }
  .label-top { left: 88px; }.label-bottom { left: 68px; }
  .metric-card { padding: 18px; }
  .workspace-panel { padding: 22px; }
  .auth-story { padding-left: 40px; padding-right: 40px; }
  .auth-wrap { padding-left: 45px; padding-right: 45px; }
}
@media (min-width: 1001px) { .stats-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1000px) {
  .admin-shell { display: block; }
  .sidebar { display: none; }
  .js-ready .drawer-toggle { display: inline-flex; }
  .js-ready .mobile-admin-nav { display: none; }
  .mobile-admin-nav { display: block; }
  .topbar-symbol { display: none; }
  .drawer-open { overflow: hidden; }
  .drawer-open .sidebar { display: flex; position: fixed; top: 0; bottom: 0; left: 0; width: min(300px,calc(100vw - 30px)); height: 100dvh; z-index: 101; padding-top: max(28px,env(safe-area-inset-top)); box-shadow: 20px 0 80px #0008; }
  .drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 100; border: 0; border-radius: 0; background: #030308a6; width: 100%; height: 100%; }
  .drawer-open .drawer-close { display: inline-flex; margin-bottom: 30px; flex-shrink: 0; }
  .sidebar .brand { padding-left: 7px; }
  .topbar-breadcrumb { margin-left: 4px; }
  .auth-story { min-height: 760px; padding: 38px 32px; }
  .auth-story-copy { margin-top: 75px; }
  .auth-art { width: 250px; height: 250px; margin-top: 35px; }
  .auth-art-core { font-size: 115px; inset: 65px; }
  .auth-art-label { left: 17px; }
  .auth-wrap { padding: 50px 32px 25px; }
}
@media (max-width: 700px) {
  .auth-stage { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-wrap { max-width: 480px; padding: max(28px,env(safe-area-inset-top)) 28px max(20px,env(safe-area-inset-bottom)); }
  .auth-mobile-brand { display: inline-flex; margin-bottom: 50px; align-self: flex-start; font-size: 19px; }
  .auth-card h1 { font-size: 44px; }
  .auth-bottom { margin-top: 30px; padding-top: 17px; }
  .auth-step { margin-bottom: 20px; }
  .auth-card .form-stack input { font-size: 16px; }
  .admin-topbar { height: 68px; padding: 0 18px; }
  .topbar-breadcrumb { font-size: 0; }
  .topbar-breadcrumb > span { display: none; }
  .topbar-breadcrumb strong { font-size: 11px; }
  .topbar-meta { gap: 10px; }
  .topbar-date { display: none; }
  .environment-tag { font-size: 8px; padding: 4px 6px; }
  .admin-content { padding: 25px 20px 30px; }
  .dashboard-hero { min-height: 265px; margin-bottom: 26px; }
  .dashboard-hero-copy { padding-bottom: 26px; }
  .dashboard-hero h1 { font-size: 49px; letter-spacing: -2.5px; }
  .hub-emblem { position: absolute; width: 210px; height: 210px; right: -80px; top: 5px; opacity: .25; z-index: 0; }
  .emblem-center { inset: 48px; font-size: 80px; }
  .emblem-label, .emblem-coordinate { display: none; }
  .dashboard-hero-copy > .overline { font-size: 8px; }
  .section-caption > span { font-size: 8px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 18px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .metric-card { padding: 17px; }
  .metric-card h3 { font-size: 10px; margin-top: 17px; }
  .metric-card p { font-size: 9px; }
  .metric-value { font-size: 39px; }
  .workspace-panel { padding: 23px; }
  .admin-footer { padding: 16px 20px max(16px,env(safe-area-inset-bottom)); gap: 9px; }
  .account-actions { gap: 16px; }
  .footer-signature { width: 100%; }
  .activity-list time { font-size: 8px; }
  .hero { padding-top: 65px; }
  .site-header .nav { flex-wrap: wrap; padding-top: 16px; padding-bottom: 12px; gap: 6px 15px; }
  .site-header .nav-links { gap: 15px; }
  .site-header .nav-links a:first-child { display: inline-flex; }
}
@media (max-width: 360px) {
  .admin-topbar { padding: 0 12px; gap: 6px; }
  .admin-content { padding-left: 16px; padding-right: 16px; }
  .topbar-meta .user-avatar { display: none; }
  .metric-card { padding: 14px; }
  .workspace-panel { padding: 19px; }
  .pipeline-row { grid-template-columns: 16px 82px minmax(12px,1fr) 18px; gap: 8px; }
  .stage-label { font-size: 10px; }
  .activity-list li { gap: 8px; flex-wrap: wrap; }
  .activity-list time { margin-left: 39px; }
  .auth-wrap { padding-left: 22px; padding-right: 22px; }
  .auth-card h1 { font-size: 40px; }
  .password-card h1 { font-size: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Existing TEHIX brand assets; styles remain compatible with the strict CSP. */
.sidebar-brand-row .admin-brand { margin:0; padding:0; min-width:0; flex:1; }
.admin-brand-logo { display:block; width:170px; max-width:100%; height:auto; }
.auth-brand-logo { display:block; width:260px; max-width:100%; height:auto; object-fit:contain; }
.auth-mobile-brand .auth-brand-logo { width:220px; }
