:root {
  --ink: #18201e;
  --ink-2: #24302d;
  --paper: #f4f5f1;
  --white: #fff;
  --line: #dfe2dc;
  --line-dark: #35403d;
  --muted: #68726f;
  --muted-light: #aeb7b3;
  --accent: #ff7138;
  --accent-hover: #ed5f29;
  --green: #43ca86;
  --yellow: #d9ef50;
  --red: #d9534f;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Manrope", "Avenir Next", sans-serif;
  --sidebar: 252px;
  --shadow: 0 18px 60px rgb(24 32 30 / 14%);
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: clip; background: var(--paper); }
body { margin: 0; min-height: 100vh; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--ink); color: #dce3df; }
.boot-screen p { margin: 0; color: var(--muted-light); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.boot-mark { width: 56px; height: 56px; display: grid; place-items: center; background: var(--accent); color: var(--ink); font: 600 27px/1 var(--mono); animation: bootPulse 1.4s ease-in-out infinite; }
.boot-lockup { display:flex; align-items:center; gap:14px; }
.boot-lockup > div:last-child { display:grid; gap:4px; }
.boot-lockup strong { font-size:25px; letter-spacing:.08em; }
.boot-lockup span { color:#8d9995; font:600 8px var(--mono); letter-spacing:.22em; }
.boot-line { width:180px; height:2px; overflow:hidden; background:rgb(255 255 255 / 10%); }
.boot-line span { display:block; width:45%; height:100%; background:var(--accent); animation:bootLoad 1.1s ease-in-out infinite; }
@keyframes bootLoad { from { transform:translateX(-110%); } to { transform:translateX(245%); } }
@keyframes bootPulse { 50% { opacity: .55; transform: scale(.96); } }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; background: var(--accent); color: var(--ink); font: 600 20px/1 var(--mono); }
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy strong { font-size: 14px; letter-spacing: .12em; }
.brand-copy small { font: 500 9px/1 var(--mono); letter-spacing: .2em; opacity: .6; }
.brand--light { color: #eef2ef; }

.access-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr); }
.access-brand { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 52px clamp(44px, 7vw, 112px); overflow: hidden; background: var(--ink); color: #f2f5f3; }
.access-brand::before { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; top: 16%; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; box-shadow: 0 0 0 78px rgb(255 255 255 / 2.5%), 0 0 0 156px rgb(255 255 255 / 2%); }
.access-message { position: relative; z-index: 1; max-width: 650px; margin: auto 0; padding: 80px 0; }
.access-message h1 { margin: 19px 0 26px; max-width: 620px; font: 500 clamp(54px, 6.2vw, 98px)/.95 var(--sans); letter-spacing: -.07em; text-wrap: balance; }
.access-message p { max-width: 520px; margin: 0; color: #aeb9b5; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.75; text-wrap: pretty; }
.access-platforms { display: flex; flex-wrap: wrap; gap: 8px 28px; color: #899591; font: 500 10px/1.4 var(--mono); letter-spacing: .08em; }
.access-panel { display: grid; place-items: center; padding: 52px; background: #f7f8f4; }
.login-box { width: min(430px, 100%); }
.login-box h2 { margin: 18px 0 12px; font-size: 36px; line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.login-box > .muted { margin: 0 0 32px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.secure-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.secure-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

.eyebrow { display: inline-block; color: #7b8581; font: 600 10px/1 var(--mono); letter-spacing: .17em; }
.eyebrow--light { color: #93a09b; }
.muted { color: var(--muted); }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 2px; padding: 0 18px; cursor: pointer; font-weight: 700; font-size: 13px; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button svg { width: 18px; height: 18px; }
.button--wide { width: 100%; }
.button--dark { background: var(--ink); color: #fff; }
.button--dark:hover { background: #2a3733; }
.button--accent { background: var(--accent); color: #201d1a; }
.button--accent:hover { background: var(--accent-hover); }
.button--secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button--secondary:hover { border-color: #bbc2bd; }
.button--paper { background: var(--paper); color: var(--ink); }
.button--paper:hover { background: #fff; }

.form-error { min-height: 20px; margin: 12px 0 0; color: #b7473d; font-size: 12px; line-height: 1.5; }
.upload-error { display:grid; gap:5px; margin:14px 0 0; padding:13px 15px; border-left:3px solid #c74a3f; background:#fff0ed; color:#71332d; }
.upload-error strong { font-size:12px; }
.upload-error span { font-size:11px; line-height:1.55; }
.upload-error small { color:#8c4a43; font:500 9px/1.55 var(--mono); }
.denied-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: var(--ink); }
.denied-card { width: min(600px, 100%); padding: clamp(32px, 6vw, 68px); background: var(--paper); box-shadow: var(--shadow); }
.status-code { color: var(--accent); font: 600 14px/1 var(--mono); letter-spacing: .12em; }
.denied-card h1 { margin: 22px 0 16px; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -.055em; }
.denied-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.denied-card p strong { color: var(--ink); }
.denied-actions { display: flex; gap: 10px; margin-top: 34px; }

.app-shell { min-height: 100vh; display: block; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; padding: 28px 20px 20px; background: var(--ink); color: #dfe5e2; }
.sidebar > .brand { margin: 0 9px 52px; }
.side-nav { display: grid; gap: 6px; }
.nav-label { margin: 0 12px 10px; color: #697672; font: 600 9px/1 var(--mono); letter-spacing: .18em; }
.nav-item { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 3px; color: #9caaa5; text-decoration: none; font-size: 13px; font-weight: 600; transition: color .15s, background .15s; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover { color: #eef2ef; background: rgb(255 255 255 / 4%); }
.nav-item.is-active { color: #fff; background: #2a3532; }
.nav-item.is-active svg { color: var(--accent); }
.nav-count { margin-left: auto; min-width: 24px; padding: 3px 6px; border-radius: 10px; background: #3a4743; color: #bec7c3; font: 500 9px/1 var(--mono); text-align: center; }
.sidebar-bottom { position: relative; display: grid; gap: 16px; margin-top: auto; }
.storage-brief { padding: 15px 12px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.storage-row { display: flex; justify-content: space-between; align-items: center; color: #9ca8a4; font-size: 11px; }
.storage-row strong { color: #e7ebe9; font: 500 10px var(--mono); }
.storage-line { display: block; height: 2px; margin: 10px 0; overflow: hidden; background: #3b4844; }
.storage-line span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .4s ease; }
.storage-brief small { color: #65726e; font-size: 9px; }
.user-chip { min-width: 0; min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; background: transparent; color: #f1f4f2; cursor: pointer; text-align: left; }
.user-chip:hover { background: #222d2a; }
.avatar { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: #e8eae5; color: var(--ink); font: 600 12px var(--mono); }
.user-text { min-width: 0; display: grid; gap: 2px; }
.user-text strong, .user-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-text strong { font-size: 11px; }
.user-text small { max-width: 145px; color: #73807c; font-size: 9px; }
.user-chip > svg { flex: none; width: 18px; height: 18px; margin-left: auto; }
.user-popover { position: absolute; right: 8px; bottom: 58px; width: 180px; padding: 6px; border: 1px solid var(--line-dark); background: #222c29; box-shadow: 0 12px 30px rgb(0 0 0 / 28%); }
.user-popover button { width: 100%; min-height: 38px; border: 0; padding: 0 10px; background: transparent; color: #dfe5e2; cursor: pointer; text-align: left; font-size: 12px; }
.user-popover button:hover { background: #303b38; }

.workspace { min-width: 0; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 15; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgb(244 245 241 / 92%); backdrop-filter: blur(12px); }
.environment { display: flex; align-items: center; gap: 9px; color: #78827e; font: 600 9px/1 var(--mono); letter-spacing: .14em; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(67 202 134 / 12%); }
.topbar-actions { display: flex; gap: 9px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; background: transparent; cursor: pointer; }
.icon-button:hover { background: #fff; }
.icon-button svg { width: 18px; height: 18px; }
.mobile-only { display: none; }
.page-wrap { padding: clamp(38px, 5vw, 72px) clamp(24px, 4vw, 58px) 72px; }
.page { display: none; max-width: 1340px; margin: 0 auto; animation: pageIn .28s ease both; }
.page.is-active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } }
.page-heading { margin-bottom: 38px; }
.page-heading--split { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.page-heading h1 { margin: 14px 0 9px; font-size: clamp(36px, 4vw, 55px); line-height: 1.03; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.heading-stamp { min-width: 180px; padding-left: 18px; border-left: 2px solid var(--accent); display: grid; gap: 5px; }
.heading-stamp span { font: 500 12px var(--mono); }
.heading-stamp small { color: var(--muted); font-size: 11px; }

.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 26px; border: 1px solid var(--line); background: var(--white); }
.metric { min-height: 142px; display: grid; align-content: space-between; gap: 8px; padding: 22px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric > span { color: #7a8581; font: 600 9px var(--mono); letter-spacing: .14em; }
.metric strong { align-self: center; font-size: clamp(31px, 3.6vw, 48px); letter-spacing: -.06em; line-height: 1; }
.metric small { color: #909995; font-size: 10px; }
.metric--primary { background: var(--accent); border-color: var(--accent); }
.metric--primary > span, .metric--primary small { color: #5d2d1c; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 26px; align-items: stretch; }
.panel { border: 1px solid var(--line); background: #fff; }
.panel-head { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.03em; }
.text-button { border: 0; padding: 8px 0; background: transparent; color: #5f6966; cursor: pointer; font: 600 10px var(--mono); text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--ink); }
.build-list { min-height: 280px; }
.build-row { min-height: 86px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 14px 24px; border-bottom: 1px solid #eaebe7; }
.build-row:last-child { border-bottom: 0; }
.build-main { min-width: 0; display: flex; align-items: center; gap: 14px; }
.platform-tile { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: #ecede9; color: #5f6965; font: 600 9px var(--mono); letter-spacing: .04em; }
.platform-tile--ios { background: #202826; color: #fff; }
.platform-tile--android { background: #d9efcf; color: #26633f; }
.platform-tile--macos { background: #dce7f3; color: #304e6d; }
.build-copy { min-width: 0; display: grid; gap: 4px; }
.build-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.build-copy small { color: var(--muted); font: 400 10px var(--mono); }
.build-time { color: #8b9490; font-size: 10px; white-space: nowrap; }
.row-actions { display: flex; gap: 7px; }
.mini-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.mini-button:hover { border-color: #aeb6b2; background: #f5f6f2; }
.mini-button svg { width: 15px; height: 15px; }
.empty-inline { min-height: 280px; display: grid; place-content: center; justify-items: center; padding: 36px; color: var(--muted); text-align: center; }
.empty-inline strong { margin-bottom: 5px; color: var(--ink); font-size: 15px; }
.empty-inline span { max-width: 300px; font-size: 12px; }

.quick-upload { position: relative; min-height: 365px; display: flex; flex-direction: column; align-items: flex-start; padding: 32px; overflow: hidden; background: var(--ink); color: #fff; }
.quick-upload::after { content: "↑"; position: absolute; right: -18px; bottom: -70px; color: rgb(255 255 255 / 5%); font: 400 250px/1 var(--mono); }
.quick-upload-copy { position: relative; z-index: 1; }
.quick-upload h2 { margin: 18px 0 14px; font-size: clamp(29px, 3vw, 43px); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.quick-upload p { margin: 0; max-width: 320px; color: #a9b3af; font-size: 12px; line-height: 1.7; }
.quick-upload .button { position: relative; z-index: 1; margin-top: auto; }
.format-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; }
.format-row span { padding: 5px 7px; border: 1px solid #3a4743; color: #7f8d88; font: 500 8px var(--mono); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.search-field { width: min(410px, 100%); height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); background: #fff; }
.search-field svg { width: 17px; height: 17px; color: #8f9894; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-field input::placeholder { color: #a2aaa6; }
.filter-group { display: flex; border: 1px solid var(--line); background: #fff; }
.filter { min-width: 62px; height: 42px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #7b8581; cursor: pointer; font-size: 11px; }
.filter:last-child { border-right: 0; }
.filter.is-active { background: var(--ink); color: #fff; }
.table-shell { border: 1px solid var(--line); background: #fff; overflow-x: auto; }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th { height: 50px; padding: 0 18px; border-bottom: 1px solid var(--line); color: #89928e; font: 600 9px var(--mono); letter-spacing: .12em; text-align: left; }
td { height: 76px; padding: 0 18px; border-bottom: 1px solid #ebede9; color: #4c5652; font-size: 11px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { width: 34%; }
.table-build { display: flex; align-items: center; gap: 12px; }
.table-build .platform-tile { width: 36px; height: 36px; }
.table-build .build-copy strong { font-size: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 20px; background: #e5f6ec; color: #2b7048; font: 600 8px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill--uploading { background: #fff0d5; color: #8b5d14; }
.status-pill--failed { background: #fbe7e4; color: #9d3d34; }
.status-stack { display:grid; gap:5px; align-items:start; }
.status-detail { max-width:145px; overflow:hidden; color:#9d3d34; font:500 8px/1.35 var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
.build-code-cell { display:flex; align-items:center; gap:6px; }
.build-code-cell > button:first-child { min-width:58px; height:34px; border:1px solid var(--line); background:#f5f6f2; color:var(--ink); cursor:pointer; font:600 12px var(--mono); letter-spacing:.13em; }
.code-refresh { width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--line); background:#fff; color:#68736f; cursor:pointer; }
.code-refresh:hover, .build-code-cell > button:first-child:hover { border-color:#aeb6b2; background:#fff9f5; }
.code-refresh svg { width:14px; height:14px; }
.empty-state { min-height: 360px; display: grid; place-content: center; justify-items: center; padding: 44px; text-align: center; }
.empty-index { color: var(--accent); font: 600 12px var(--mono); }
.empty-state h3 { margin: 14px 0 6px; font-size: 24px; letter-spacing: -.04em; }
.empty-state p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }

.access-rule { min-height: 96px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 18px; padding: 18px 22px; background: var(--ink); color: #f0f3f1; }
.rule-number { color: var(--accent); font: 600 12px var(--mono); }
.access-rule strong { font-size: 13px; }
.access-rule p { margin: 4px 0 0; color: #8e9a96; font-size: 11px; }
.rule-status { display: flex; align-items: center; gap: 7px; color: #9caaa5; font: 600 9px var(--mono); letter-spacing: .09em; }
.rule-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.admin-list-shell { border: 1px solid var(--line); background: #fff; }
.admin-list-head, .admin-item { display: grid; grid-template-columns: minmax(260px, 2fr) 1fr 1fr 44px; align-items: center; gap: 18px; padding: 0 22px; }
.admin-list-head { min-height: 48px; border-bottom: 1px solid var(--line); color: #8b9490; font: 600 9px var(--mono); letter-spacing: .11em; }
.admin-item { min-height: 74px; border-bottom: 1px solid #ebede9; }
.admin-item:last-child { border-bottom: 0; }
.admin-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.admin-identity .avatar { background: #eff0ec; }
.admin-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.admin-role { color: #58635f; font: 500 9px var(--mono); text-transform: uppercase; }
.admin-role-select { width:min(120px,100%); min-height:34px; border:1px solid var(--line); padding:0 9px; background:#fff; color:#46514d; font:500 9px var(--mono); text-transform:uppercase; }
.admin-added { color: #7e8884; font-size: 10px; }
.remove-admin { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: #8c9691; cursor: pointer; }
.remove-admin:hover { color: var(--red); background: #f9ecea; }
.remove-admin svg { width: 16px; height: 16px; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(10 15 13 / 72%); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(670px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; padding: 28px; background: #f8f9f5; box-shadow: var(--shadow); animation: modalIn .2s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.modal-card--small { width: min(500px, 100%); }
.modal-card--share { width: min(550px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.modal-head h2 { margin: 9px 0 0; font-size: 28px; letter-spacing: -.045em; }
.modal-head .icon-button { flex: none; }
.drop-zone { min-height: 184px; display: grid; place-content: center; justify-items: center; gap: 8px; margin-bottom: 20px; border: 1px dashed #afb7b2; background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--accent); background: #fff9f5; }
.drop-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 4px; background: var(--ink); color: #fff; }
.drop-icon svg { width: 20px; height: 20px; }
.drop-zone strong { max-width: 440px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.drop-zone > span:last-child { color: #87908c; font-size: 10px; }
.drop-zone .metadata-status { margin-top: 5px; padding: 5px 8px; background: #eef1ed; color: #52605b; font: 600 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.drop-zone .metadata-status.is-reading { background: #fff0e9; color: #9a3f19; }
.drop-zone .metadata-status.is-success { background: #e3f4e8; color: #286141; }
.drop-zone .metadata-status.is-warning { background: #f3f0e5; color: #6a5d30; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { color: #5f6965; font: 600 10px var(--mono); letter-spacing: .04em; }
.field > span em { color: #9da5a1; font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d4d8d2; border-radius: 1px; outline: 0; background: #fff; color: var(--ink); font-size: 12px; transition: border .15s, box-shadow .15s; }
.field input, .field select { height: 44px; padding: 0 12px; }
.field textarea { min-height: 82px; padding: 11px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #737d79; box-shadow: 0 0 0 3px rgb(24 32 30 / 6%); }
.field small { color: #89928e; font-size: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal-actions--split { justify-content: space-between; }
.upload-progress-wrap { margin-top: 18px; padding: 14px; background: #eef0eb; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 9px; color: #66706d; font-size: 10px; }
.progress-copy strong { color: var(--ink); font-family: var(--mono); }
.progress-track { height: 4px; overflow: hidden; background: #d6dad4; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .15s linear; }
.share-build { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; padding: 15px; border: 1px solid var(--line); background: #fff; }
.share-build > div { display: grid; gap: 4px; }
.share-build small { color: var(--muted); font: 400 10px var(--mono); }
.share-ready-layout { display:grid; grid-template-columns:132px 1fr; align-items:center; gap:18px; margin-bottom:24px; }
.share-ready-layout .share-build { margin-bottom:0; }
.share-qr-wrap { display:grid; justify-items:center; gap:7px; }
.share-qr-wrap > span { color:var(--muted); font:600 8px var(--mono); letter-spacing:.1em; text-align:center; }
.qr-code { width:112px; height:112px; padding:7px; border:1px solid var(--line); background:#fff; }
.qr-code svg { display:block; width:100%; height:100%; }
.platform-tile img { width:100%; height:100%; object-fit:cover; }
.tester-code-block { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:-6px 0 20px; padding:14px 16px; border:1px solid var(--line); background:var(--ink); color:#fff; }
.tester-code-block > div { display:grid; gap:5px; }
.tester-code-block span { color:#8f9b97; font:600 8px var(--mono); letter-spacing:.12em; }
.tester-code-block strong { font:600 25px var(--mono); letter-spacing:.18em; }
.tester-code-block button { min-height:36px; border:1px solid rgb(255 255 255 / 18%); padding:0 12px; background:transparent; color:#fff; font-size:10px; font-weight:700; cursor:pointer; }

@media (max-width: 560px) {
  .share-ready-layout { grid-template-columns:1fr; }
  .share-ready-layout .share-build { width:100%; }
}
.copy-field { display: flex; }
.copy-field input { border-right: 0; font-family: var(--mono); font-size: 10px; }
.copy-field button { flex: none; width: 70px; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.share-help { margin: -3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.toast-region { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 9px; }
.toast { width: min(360px, calc(100vw - 44px)); display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid #36423e; background: var(--ink); color: #eaf0ed; box-shadow: var(--shadow); animation: toastIn .22s ease both; }
.toast::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--green); }
.toast.is-error::before { background: var(--red); }
.toast strong { display: block; margin-bottom: 2px; font-size: 11px; }
.toast span { color: #9caaa5; font-size: 10px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* Readability: operational text must remain legible at normal browser zoom. */
body { font-size: 15px; }
.boot-screen p { color:#d0d8d4; font-size:12px; font-weight:600; }
.brand-copy strong { font-size:15px; font-weight:800; }
.brand-copy small { font-size:10px; font-weight:600; opacity:.78; }
.access-message p { color:#c5cfcb; font-weight:500; }
.access-platforms { color:#b8c3bf; font-size:11px; font-weight:600; }
.login-box > .muted, .secure-note { color:#56615d; font-size:15px; font-weight:500; }
.eyebrow { color:#59645f; font-size:11px; font-weight:700; }
.eyebrow--light { color:#bdc8c4; }
.button { min-height:48px; font-size:14px; font-weight:800; }
.form-error { color:#a6322a; font-size:14px; font-weight:600; }
.upload-error { gap:7px; padding:16px 18px; }
.upload-error strong { font-size:15px; font-weight:800; }
.upload-error span { font-size:13px; font-weight:600; }
.upload-error small { color:#783a34; font-size:11px; font-weight:700; }
.nav-label { color:#a4b0ac; font-size:10px; font-weight:700; }
.nav-item { min-height:50px; color:#b7c2be; font-size:14px; font-weight:700; }
.nav-count { color:#eef3f0; font-size:10px; font-weight:700; }
.storage-row { color:#c4ceca; font-size:12px; font-weight:600; }
.storage-row strong { font-size:12px; font-weight:700; }
.storage-brief small { color:#aab6b2; font-size:10px; font-weight:600; }
.user-text strong { font-size:13px; font-weight:700; }
.user-text small { color:#aab6b2; font-size:11px; font-weight:500; }
.environment { color:#5e6965; font-size:10px; font-weight:700; }
.page-heading p { color:#56615d; font-size:16px; font-weight:500; line-height:1.6; }
.heading-stamp span { font-size:13px; font-weight:600; }
.heading-stamp small { color:#626d69; font-size:12px; font-weight:500; }
.metric > span { color:#596560; font-size:11px; font-weight:700; }
.metric small { color:#65706c; font-size:12px; font-weight:600; }
.metric--primary > span, .metric--primary small { color:#402218; }
.panel-head h2 { font-size:22px; font-weight:800; }
.text-button { color:#46524d; font-size:12px; font-weight:700; }
.build-copy strong { font-size:15px; font-weight:800; }
.build-copy small { color:#59645f; font-size:12px; font-weight:500; line-height:1.5; }
.build-time { color:#626d68; font-size:12px; font-weight:600; }
.quick-upload p { color:#c1cbc7; font-size:14px; font-weight:500; }
.format-row span { color:#b3bfba; font-size:10px; font-weight:700; }
.search-field { height:48px; }
.search-field input { font-size:14px; font-weight:500; }
.search-field input::placeholder { color:#68736f; }
.filter { height:46px; color:#53605b; font-size:12px; font-weight:700; }
th { height:54px; color:#5e6964; font-size:10px; font-weight:700; }
td { height:86px; padding-top:12px; padding-bottom:12px; color:#35413c; font-size:13px; font-weight:600; }
.table-build .build-copy strong { overflow:visible; white-space:normal; font-size:14px; line-height:1.35; }
.table-build .build-copy small { white-space:normal; overflow-wrap:anywhere; }
.status-pill { padding:6px 9px; font-size:10px; font-weight:700; }
.status-detail { max-width:190px; color:#8f3028; font-size:10px; font-weight:700; line-height:1.45; white-space:normal; }
.build-code-cell > button:first-child { min-width:64px; height:38px; font-size:14px; font-weight:700; }
.code-refresh, .mini-button { width:38px; height:38px; }
.empty-state p, .empty-inline span { color:#59645f; font-size:14px; font-weight:500; }
.empty-inline strong, .empty-state h3 { font-weight:800; }
.access-rule strong { font-size:15px; font-weight:800; }
.access-rule p { color:#b2bdb9; font-size:13px; font-weight:500; line-height:1.55; }
.rule-status { color:#c0cac6; font-size:10px; font-weight:700; }
.admin-list-head { color:#5f6b66; font-size:10px; font-weight:700; }
.admin-identity strong { font-size:14px; font-weight:700; }
.admin-role, .admin-role-select { color:#36423d; font-size:11px; font-weight:700; }
.admin-added { color:#5e6965; font-size:12px; font-weight:600; }
.modal-head h2 { font-size:31px; font-weight:800; }
.drop-zone strong { font-size:16px; font-weight:800; }
.drop-zone > span:last-child { color:#59645f; font-size:12px; font-weight:600; }
.drop-zone .metadata-status { padding:7px 10px; font-size:11px; font-weight:700; line-height:1.5; text-transform:none; }
.field > span { color:#3e4a45; font-size:12px; font-weight:700; }
.field > span em { color:#737e79; font-weight:600; }
.field input, .field select, .field textarea { color:#1f2925; font-size:14px; font-weight:500; }
.field small { color:#5f6a65; font-size:12px; font-weight:500; line-height:1.5; }
.progress-copy { color:#48544f; font-size:12px; font-weight:700; }
.share-build strong { font-size:14px; font-weight:800; }
.share-build small { color:#56615d; font-size:12px; font-weight:500; }
.share-qr-wrap > span, .tester-code-block span { color:#c1ccc7; font-size:10px; font-weight:700; }
.tester-code-block strong { font-size:29px; font-weight:700; }
.tester-code-block button { min-height:42px; font-size:12px; font-weight:800; }
.copy-field input { font-size:12px; }
.copy-field button { font-size:12px; font-weight:800; }
.share-help { color:#4f5b56; font-size:13px; font-weight:500; }
.toast { width:min(420px, calc(100vw - 44px)); padding:17px 18px; }
.toast strong { font-size:14px; font-weight:800; }
.toast span { color:#c2ccc8; font-size:12px; font-weight:500; line-height:1.5; }

@media (max-width: 1400px) {
  th:nth-child(4), td:nth-child(4) { display:none; }
}

@media (max-width: 1100px) {
  :root { --sidebar: 220px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .overview-grid { grid-template-columns: 1fr; }
  .quick-upload { min-height: 300px; }
  th:nth-child(4), td:nth-child(4) { display: none; }
}

@media (max-width: 780px) {
  .access-screen { grid-template-columns: 1fr; }
  .access-brand { min-height: 46vh; padding: 32px 28px; }
  .access-message { padding: 64px 0 44px; }
  .access-message h1 { font-size: clamp(48px, 14vw, 72px); }
  .access-platforms { display: none; }
  .access-panel { min-height: 54vh; padding: 42px 28px; }
  .login-box h2 { font-size: 30px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 10px 0 40px rgb(0 0 0 / 20%); }
  .sidebar.is-open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .mobile-only { display: grid; }
  .environment { display: none; }
  .topbar { padding: 0 20px; }
  .page-wrap { padding: 34px 20px 54px; }
  .page-heading--split { display: grid; align-items: start; }
  .heading-stamp { display: none; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 124px; padding: 18px; }
  .metric strong { font-size: 34px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .filter-group { width: 100%; }
  .filter { flex: 1; }
  th:nth-child(3), td:nth-child(3), th:nth-child(5), td:nth-child(5) { display: none; }
  .admin-list-head { display: none; }
  .admin-item { grid-template-columns: minmax(0, 1fr) auto 40px; gap: 10px; }
  .admin-added { display: none; }
  .access-rule { grid-template-columns: auto 1fr; }
  .rule-status { display: none; }
}

@media (max-width: 520px) {
  .topbar .button { width: 44px; padding: 0; }
  .topbar .button { font-size: 0; }
  .topbar .button svg { margin: 0; }
  .page-heading h1 { font-size: 39px; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric, .metric:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .build-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .build-time { display: none; }
  .quick-upload { padding: 26px; }
  .modal { padding: 0; align-items: end; }
  .modal-card { width: 100%; max-height: 94vh; padding: 23px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .modal-actions .button { flex: 1; }
  .denied-actions { flex-direction: column; }
  .admin-item { padding: 12px 14px; }
  table { min-width: 590px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
