/* ==========================================================================
   Kosm Client Space — sistema de design
   Preto #191919 · Bege #F1EDE9 · Branco. Archivo em todo o sistema.
   ========================================================================== */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #191919; --ink-soft: #2b2a28;
  --beige: #f1ede9; --beige-2: #e9e3dc; --beige-3: #ddd5ca;
  --white: #ffffff;
  --line: #e3dcd3; --line-strong: #cfc6ba;
  --text-2: #6a635b; --text-3: #9a9288;
  --ok: #3c6a4d; --ok-bg: #e4ece4;
  --warn: #7d5a1c; --warn-bg: #f2e8d2;
  --bad: #9a3b32; --bad-bg: #f3dfda;
  --r: 12px; --r-sm: 8px; --r-xs: 6px;
  --shadow: 0 1px 2px rgba(25, 25, 25, .04);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: 264px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
button, input, select, textarea, pre, code { font-family: inherit; }
body { margin: 0; font: 400 15px/1.6 var(--sans); color: var(--ink); background: var(--beige); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; color: var(--ink); }
h1 { font-weight: 500; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.25rem); letter-spacing: -.022em; line-height: 1.15; }
h2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: .98rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--ink); }
code { font: inherit; font-size: .92em; font-weight: 500; background: var(--beige); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: .86rem; }
.eyebrow { font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 .6em; }
.eyebrow a { color: var(--text-2); text-decoration: none; }
.eyebrow a:hover { color: var(--ink); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
form.inline { display: inline; margin: 0; }

/* Logo */
.logo { display: block; height: 26px; width: auto; max-width: 160px; }
.logo-invert { filter: brightness(0) invert(1); }
.wordmark { font-size: 1.55rem; font-weight: 600; letter-spacing: .04em; line-height: 1; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; font: 500 .9rem/1 var(--sans); color: var(--white); background: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-sm); cursor: pointer; text-decoration: none; transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease); }
.btn:hover { background: #000; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--beige), 0 0 0 5px var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--beige); border-color: var(--ink); }
.btn-sm { min-height: 32px; padding: 0 13px; font-size: .83rem; }
.btn-block { width: 100%; min-height: 46px; }
.btn:disabled { background: var(--beige-2); color: var(--text-3); border-color: var(--beige-2); cursor: not-allowed; }
.btn[aria-busy="true"] { pointer-events: none; color: transparent; position: relative; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-ghost[aria-busy="true"]::after { border-color: var(--line-strong); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Formulários ---------- */
.field { margin-bottom: 18px; }
label { display: block; font-weight: 500; font-size: .85rem; margin-bottom: 6px; color: var(--ink); }
input, select, textarea { width: 100%; min-height: 42px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 13px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, select:hover, textarea:hover { border-color: #b3a99b; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25, 25, 25, .09); }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23191919' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.75 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input[type=radio], input[type=checkbox] { width: 16px; height: 16px; min-height: 0; margin: 0 9px 0 0; accent-color: var(--ink); vertical-align: -3px; }
input[type=file] { padding: 8px 10px; font-size: .88rem; background: var(--beige); border-style: dashed; cursor: pointer; }
input[type=file]::file-selector-button { font: 500 .83rem var(--sans); background: var(--ink); color: #fff; border: 0; border-radius: 6px; padding: 7px 14px; margin-right: 12px; cursor: pointer; }
textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.hint { font-size: .82rem; color: var(--text-2); margin: 6px 0 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 20px; }
.input-group { display: flex; gap: 8px; }
.input-group .btn { white-space: nowrap; }
.form-narrow { max-width: 540px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-inline .field { margin-bottom: 0; }
.form-inline .grow { flex: 1 1 220px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 22px; }
.filters .field { margin-bottom: 0; min-width: 190px; }
.inline-filter select { width: auto; min-width: 200px; }
.choices { border: 0; padding: 0; margin: 0 0 18px; }
.choices label, .check { display: flex; align-items: center; font-weight: 400; font-size: .95rem; margin-bottom: 8px; cursor: pointer; }
.check { margin-bottom: 18px; }
details { margin: 12px 0; }
summary { cursor: pointer; font-weight: 500; font-size: .88rem; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); }
details[open] > summary::before { transform: rotate(45deg); }
details[open] > summary { margin-bottom: 14px; }
progress { width: 100%; max-width: 380px; height: 6px; appearance: none; border: 0; border-radius: 4px; overflow: hidden; vertical-align: middle; background: var(--beige-2); }
progress::-webkit-progress-bar { background: var(--beige-2); }
progress::-webkit-progress-value { background: var(--ink); transition: width .2s; }
progress::-moz-progress-bar { background: var(--ink); }
.upload-progress { display: block; margin-bottom: 14px; }

/* ---------- Avisos ---------- */
.alert { padding: 13px 18px; margin-bottom: 22px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--white); overflow-wrap: anywhere; animation: rise .35s var(--ease) both; }
.alert-ok { background: var(--ok-bg); border-color: #c9dccd; color: #24432f; }
.alert-error { background: var(--bad-bg); border-color: #e8c4bd; color: #6e2820; }

/* ---------- Estruturas ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel > :last-child { margin-bottom: 0; }
.panel h2 { margin-bottom: 1em; }
.panel > h3, .panel form + h3 { margin-top: 1.8em; }
.panel-action { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: .15em; }
.page-head p:last-child { margin-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 34px 0 14px; }
.section-head h2 { margin: 0; }
.panel .section-head { margin: 0 0 10px; }
.status-block > :last-child { margin-bottom: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 20px; }
.cols .panel { margin-bottom: 0; }
.empty { background: transparent; border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 36px 24px; text-align: center; color: var(--text-2); margin-bottom: 20px; }
.empty-inline { color: var(--text-2); margin: 0; }
.note { border-left: 2px solid var(--line-strong); padding-left: 14px; color: var(--text-2); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.list li:first-child { padding-top: 0; }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.list li.unread { font-weight: 600; }
.files { list-style: none; margin: 8px 0 0; padding: 0; }
.files li { padding: 3px 0; overflow-wrap: anywhere; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px 32px; }
.facts dt { font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; color: var(--text-2); }
.facts dd { margin: 4px 0 0; font-weight: 500; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.metrics > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.metrics dt { font-size: .82rem; color: var(--text-2); min-height: 2.6em; line-height: 1.3; }
.metrics dd { margin: 8px 0 0; font-size: 2.6rem; font-weight: 300; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metrics dd a { text-decoration: none; }
.metrics dd a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.previews { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.previews img { max-width: 280px; max-height: 210px; border: 1px solid var(--line); border-radius: var(--r-sm); display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.actions form { margin: 0; }

/* Destaque do status do projeto */
.status-block { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); padding: 32px 36px; margin-bottom: 20px; }
.status-block h2 { font-weight: 500; font-size: 1.65rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .55em; }
.status-in_progress, .status-completed { background: var(--ink); border-color: var(--ink); color: var(--beige); }
.status-in_progress h2, .status-completed h2 { color: var(--beige); }
.status-in_progress .eyebrow, .status-completed .eyebrow { color: rgba(241, 237, 233, .62); }
.status-in_progress .note, .status-completed .note { color: rgba(241, 237, 233, .8); border-color: rgba(241, 237, 233, .3); }
.status-cancelled { border-top-color: var(--line-strong); }
.status-block .btn { background: var(--ink); }
.status-in_progress .btn, .status-completed .btn { background: var(--beige); color: var(--ink); border-color: var(--beige); }

/* Status */
.st { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 9px; border-radius: var(--r-xs); font-size: .8rem; font-weight: 500; line-height: 1.6; white-space: nowrap; background: var(--beige-2); color: var(--ink); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-ok { background: var(--ok-bg); color: var(--ok); }
.st-wait { background: var(--warn-bg); color: var(--warn); }
.st-stop { background: var(--bad-bg); color: var(--bad); }

/* ---------- Tabelas ---------- */
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; margin-bottom: 20px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .73rem; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; color: var(--text-2); padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #faf8f6; }
td { padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: #faf8f6; }
tbody tr:last-child td { border-bottom: 0; }
td details { margin: 0; }

/* ---------- Cronograma ---------- */
.stages { list-style: none; margin: 22px 0 0; padding: 0; }
.stage { display: grid; grid-template-columns: 36px 1fr; gap: 18px; position: relative; padding-bottom: 18px; }
.stage:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: -2px; width: 1px; background: var(--line-strong); }
.stage-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line-strong); border-radius: 50%; font-size: .85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.stage-done .stage-mark { background: var(--ink); border-color: var(--ink); color: #fff; }
.stage-in_progress .stage-mark { border: 2px solid var(--ink); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 4px rgba(25, 25, 25, .08); }
.stage-body { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.stage-in_progress .stage-body { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.stage-body h3 { margin-bottom: .3em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.stage-body p:last-child { margin-bottom: 0; }
.stage-state { font-size: .72rem; font-weight: 500; color: var(--text-2); text-transform: uppercase; letter-spacing: .09em; }
.stage-in_progress .stage-state { color: var(--ink); font-weight: 600; }
.stage-admin.stage-in_progress { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }

/* ---------- Mensagens ---------- */
.thread { max-height: 580px; overflow-y: auto; margin-bottom: 20px; padding: 4px 2px; display: flex; flex-direction: column; gap: 12px; }
.msg { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; max-width: 88%; }
.msg header { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; margin-bottom: 6px; }
.msg p { margin: 0; overflow-wrap: anywhere; }
.msg-team { align-self: flex-start; border-left: 3px solid var(--ink); }
.msg-client { align-self: flex-end; background: var(--beige-2); border-color: var(--beige-3); }
.msg-internal { background: var(--warn-bg); border: 1px dashed #c9b27f; align-self: stretch; max-width: 100%; }
.internal-flag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--warn); }

/* ---------- Autenticação ---------- */
.auth-page { background: var(--beige); }
.auth { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr); min-height: 100vh; }
.auth-aside { background: var(--ink); color: var(--beige); padding: 52px 64px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-logo .logo { height: 34px; max-width: 200px; }
.auth-logo .wordmark { font-size: 2.1rem; }
.auth-statement { font-weight: 400; font-size: clamp(2rem, 1.2rem + 2.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.03em; max-width: 15em; margin: 0 0 .7em; animation: rise .8s var(--ease) both; }
.auth-sub { color: rgba(241, 237, 233, .66); max-width: 26em; margin: 0; animation: rise .8s .12s var(--ease) both; }
.auth-foot { margin: 0; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(241, 237, 233, .45); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-box { width: 100%; max-width: 390px; animation: rise .6s var(--ease) both; }
.auth-box h1 { font-size: 2.2rem; margin-bottom: .25em; }
.auth-box > p.muted { margin-bottom: 2em; }
.auth-box form { margin-bottom: 1.4em; }
.auth-box .btn-block { margin-top: 8px; }

/* ---------- Navegação lateral ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: var(--beige); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 30px 14px 20px; overflow-y: auto; }
.side {
  scrollbar-width: thin;                                   /* Firefox e Chrome recentes */
  scrollbar-color: rgba(241, 237, 233, .18) transparent;   /* barra bege translúcida, sem trilho */
}
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-track { background: transparent; }
.side::-webkit-scrollbar-thumb {
  background: rgba(241, 237, 233, .16);
  border-radius: 999px;
}
.side::-webkit-scrollbar-thumb:hover { background: rgba(241, 237, 233, .38); }
.side { scrollbar-color: transparent transparent; }
.side:hover { scrollbar-color: rgba(241, 237, 233, .3) transparent; }
.side:hover { scrollbar-color: rgba(241, 237, 233, .35) transparent; }
.side-top { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 28px; }
.side-brand { display: block; text-decoration: none; color: var(--beige); }
.side-nav { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.nav-group { margin: 22px 12px 8px; font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 237, 233, .42); }
.side-nav > .nav-group:first-child { margin-top: 0; }
.side-nav a, .nav-btn { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--r-sm); background: none; color: rgba(241, 237, 233, .7); font: 400 .92rem/1.3 var(--sans); text-decoration: none; text-align: left; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease); }
.side-nav a:hover, .nav-btn:hover { background: rgba(241, 237, 233, .07); color: #fff; }
.side-nav a:focus-visible, .nav-btn:focus-visible { outline: 2px solid var(--beige); outline-offset: -2px; }
.side-nav a.active { background: rgba(241, 237, 233, .11); color: #fff; font-weight: 500; }
.side-nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--beige); }
.side-nav .icon { opacity: .85; }
.nav-label { flex: 1; }
.count { display: inline-block; min-width: 22px; padding: 1px 7px; text-align: center; font-size: .72rem; font-weight: 600; background: var(--beige); color: var(--ink); border-radius: var(--r-xs); line-height: 1.6; }
.side-project { margin: 0 12px 26px; padding: 14px 0 0; border-top: 1px solid rgba(241, 237, 233, .14); }
.side-project span { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 237, 233, .42); margin-bottom: 4px; }
.side-project strong { font-weight: 500; font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.25; display: block; overflow-wrap: anywhere; }
.side-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(241, 237, 233, .12); }
.side-foot form { display: block; }
.side-user { margin: 14px 12px 0; display: flex; flex-direction: column; font-size: .82rem; color: rgba(241, 237, 233, .55); overflow-wrap: anywhere; }
.side-user strong { color: var(--beige); font-weight: 500; }
.menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(241, 237, 233, .3); border-radius: var(--r-sm); color: var(--beige); cursor: pointer; }
.content { padding: 48px 56px 80px; max-width: 1220px; width: 100%; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tabs { display: flex; flex-wrap: wrap; gap: 2px 26px; border-bottom: 1px solid var(--line-strong); margin-bottom: 28px; }
.tabs a { padding: 10px 0; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .9rem; transition: color .15s, border-color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.debug { background: var(--beige); padding: 12px; overflow: auto; font-size: .8rem; border-radius: var(--r-sm); }

/* ---------- Diálogo de confirmação ---------- */
.dialog { border: 0; border-radius: var(--r); padding: 28px 30px 24px; width: min(420px, calc(100vw - 32px)); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(25, 25, 25, .22); }
.dialog::backdrop { background: rgba(25, 25, 25, .45); animation: fade .2s ease both; }
.dialog[open] { animation: rise .22s var(--ease) both; }
.dialog h2 { font-weight: 600; font-size: 1.3rem; letter-spacing: -.015em; margin-bottom: .4em; }
.dialog p { color: var(--text-2); margin-bottom: 1.6em; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { padding: 28px 28px 26px; min-height: 0; gap: 0; }
  .auth-copy, .auth-foot { display: none; }
  .auth-main { padding: 36px 24px 56px; align-items: flex-start; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 14px 18px; overflow: visible; }
  .side-top { padding: 0; }
  .menu-btn { display: inline-flex; }
  .side-nav { display: none; padding-top: 18px; }
  .side-nav.open { display: flex; animation: rise .25s var(--ease) both; }
  .side-nav a.active::before { left: -18px; }
  .content { padding: 32px 22px 64px; }
}
@media (max-width: 720px) {
  .panel { padding: 20px 18px; }
  .status-block { padding: 24px 22px; }
  .page-head { margin-bottom: 24px; }
  .table-stack thead { position: absolute; left: -9999px; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border-bottom: 1px solid var(--line-strong); padding: 10px 0; }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack td { border: 0; padding: 5px 18px; }
  .table-stack td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; color: var(--text-2); margin-bottom: 1px; }
  .stage { grid-template-columns: 30px 1fr; gap: 12px; }
  .stage-mark { width: 30px; height: 30px; }
  .stage:not(:last-child)::before { left: 14px; top: 34px; }
  .msg { max-width: 100%; }
  .input-group { flex-wrap: wrap; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics dd { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}