/* ==========================================================================
   Arsika Rollout Manager — dashboard styles
   Light/dark theme (follows the system, switchable with a button), responsive, print-ready.
   ========================================================================== */

:root {
  --bg: #f5f6fb;
  --bg-2: #eceff7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-2: #cbd5e1;

  --red: #4f46e5;
  --red-2: #4338ca;
  --red-soft: #eef2ff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --yellow: #b45309;
  --yellow-soft: #fffbeb;
  --yellow-border: #fcd34d;
  --blue: #2563eb;
  --purple: #7c3aed;

  --z-severe: #881337;
  --z-moderate: #e11d48;
  --z-mild: #f59e0b;
  --z-normal: #10b981;

  --gradient: linear-gradient(135deg, #818cf8 0%, #4f46e5 50%, #3730a3 100%);
  --danger: #dc2626;
  --danger-2: #b91c1c;
  --danger-soft: #fef2f2;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -18px rgba(15, 23, 42, .35);
  --ring: 0 0 0 4px rgba(79, 70, 229, .2);

  --radius: 20px;
  --radius-sm: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0f1d;
  --bg-2: #0f172a;
  --surface: #111a2e;
  --surface-2: #16213a;
  --text: #e2e8f0;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --border: #233150;
  --border-2: #334366;
  --red: #a5b4fc;
  --red-2: #818cf8;
  --red-soft: rgba(129, 140, 248, .14);
  --danger: #f87171;
  --danger-2: #ef4444;
  --danger-soft: rgba(248, 113, 113, .12);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, .12);
  --yellow: #fbbf24;
  --yellow-soft: rgba(251, 191, 36, .1);
  --yellow-border: rgba(251, 191, 36, .4);
  --blue: #60a5fa;
  --purple: #a78bfa;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1d;
    --bg-2: #0f172a;
    --surface: #111a2e;
    --surface-2: #16213a;
    --text: #e2e8f0;
    --text-2: #cbd5e1;
    --muted: #94a3b8;
    --border: #233150;
    --border-2: #334366;
    --red: #a5b4fc;
    --red-2: #818cf8;
    --red-soft: rgba(129, 140, 248, .14);
    --danger: #f87171;
    --danger-2: #ef4444;
    --danger-soft: rgba(248, 113, 113, .12);
    --green: #34d399;
    --green-soft: rgba(52, 211, 153, .12);
    --yellow: #fbbf24;
    --yellow-soft: rgba(251, 191, 36, .1);
    --yellow-border: rgba(251, 191, 36, .4);
    --blue: #60a5fa;
    --purple: #a78bfa;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .55);
    --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15.5px/1.6 var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(79, 70, 229, .08), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(124, 58, 237, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); padding: .1em .4em; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: .88em; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.right { text-align: right; }
.hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.print-only { display: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--large { width: 46px; height: 46px; color: var(--muted); }
.t-green { color: var(--green); font-weight: 600; }
.t-red { color: var(--red); font-weight: 600; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip-link:focus { left: 12px; }

/* ---------- header & menu ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo img { border-radius: 11px; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-size: 1.02rem; letter-spacing: -.01em; }
.logo__text small { font-size: .72rem; color: var(--muted); }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-weight: 600; font-size: .93rem; text-decoration: none;
  transition: background .2s, color .2s;
}
.menu a:hover { background: var(--bg-2); color: var(--text); }
.menu a.active { background: var(--red-soft); color: var(--red-2); }
.header__actions { display: flex; align-items: center; gap: 6px; }
.menu[data-role="guest"] a[data-menu="login"], .menu[data-role="guest"] a[data-menu="register"] { display: none; }

/* account menu (avatar) */
.account { position: relative; display: flex; align-items: center; gap: 6px; }
.account__button { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: 650 .9rem var(--font); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.account__button:hover, .account__button[aria-expanded="true"] { border-color: var(--border-2); box-shadow: var(--shadow); }
.account__button > .icon { width: 16px; height: 16px; color: var(--muted); }
.account__menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 290px; padding: 8px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: rise .18s ease both; }
.account__header { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.account__header > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.account__header b { font-size: .95rem; line-height: 1.2; }
.account__header small { color: var(--muted); font-size: .8rem; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__menu a, .account__menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
  background: none; color: var(--text-2); font: 600 .9rem var(--font); text-decoration: none; text-align: left; cursor: pointer; }
.account__menu a:hover, .account__menu button:hover, .account__menu a:focus-visible, .account__menu button:focus-visible { background: var(--bg-2); color: var(--text); }
.account__menu .account__logout { color: var(--danger); }

/* avatar: profile photo or initials */
.avatar { display: inline-block; flex: none; border-radius: 999px; object-fit: cover; background: var(--bg-2); }
.avatar--initials { display: inline-grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.avatar--c0 { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.avatar--c1 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.avatar--c2 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.avatar--c3 { background: linear-gradient(135deg, #34d399, #059669); }
.avatar--c4 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.avatar--c5 { background: linear-gradient(135deg, #f472b6, #db2777); }

.content { flex: 1; padding-top: 28px; padding-bottom: 56px; outline: none; }
.content--full { padding-top: 0; padding-bottom: 0; }
.content.enter { animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.initial-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50vh; color: var(--muted); }

.footer { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; padding-top: 20px; padding-bottom: 20px; font-size: .88rem; color: var(--text-2); font-weight: 600; }
.footer__inner p { margin: 0; }

.banner { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--yellow-soft); border: 1px solid var(--yellow-border); color: var(--text); }
.banner[hidden] { display: none; }
.banner > div { flex: 1; }
.banner .icon { color: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none !important;
  background: var(--bg-2); color: var(--text);
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .75); }
.btn--primary:hover { box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .85); }
.btn--outline { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn--outline:hover { border-color: var(--red); color: var(--red-2); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--bg-2); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger-outline { background: transparent; border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
.btn--danger-outline:hover { background: var(--danger-soft); }
.btn--large { padding: 14px 24px; font-size: 1.02rem; }
.btn--small { padding: 7px 13px; font-size: .86rem; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--text); text-decoration: none; }
.icon-btn--danger:hover { color: var(--danger); background: var(--danger-soft); }

/* ---------- cards & boxes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.card__title { display: flex; align-items: center; gap: 9px; font-size: 1.02rem; margin-bottom: 16px; color: var(--text); }
.card__title .icon { color: var(--red); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 20px; }
.grid-2--top { align-items: start; }
.stack { display: grid; gap: 20px; }
.stack > .card { margin: 0; }

.box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 20px; }
.box[hidden] { display: none; }
.box > .icon { margin-top: 2px; }
.box ul { margin: 6px 0 0; padding-left: 18px; }
.box--red { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.box--red > .icon { color: var(--danger); }
.box--yellow { background: var(--yellow-soft); border-color: var(--yellow-border); }
.box--yellow > .icon { color: var(--yellow); }
.box--green { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.box--green > .icon { color: var(--green); }
.box--blue { background: color-mix(in srgb, var(--blue) 9%, transparent); border-color: color-mix(in srgb, var(--blue) 32%, transparent); }
.box--blue > .icon { color: var(--blue); }
.tech-details { margin-top: 8px; font-size: .85rem; }
.tech-details pre { white-space: pre-wrap; max-height: 260px; overflow: auto; background: var(--bg-2); padding: 10px; border-radius: 8px; font-size: .8rem; }

/* ---------- badges, chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.badge--anemia, .badge--danger { background: var(--danger-soft); color: var(--danger-2); }
.badge--normal { background: var(--green-soft); color: var(--green); }
.badge--failed { background: var(--bg-2); color: var(--muted); }
.badge--yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge--admin { background: color-mix(in srgb, var(--purple) 15%, transparent); color: var(--purple); }
.badge--large { font-size: 1rem; padding: 8px 16px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); padding: 6px 13px; border-radius: 999px; font: 600 .84rem var(--font); cursor: pointer; }
.chip:hover { border-color: var(--red); }
.chip--active { background: var(--text); border-color: var(--text); color: var(--surface); }

/* ---------- forms ---------- */
.card--form { padding: 28px; scroll-margin-top: 90px; }
.form-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.form-header h2 { font-size: 1.45rem; margin-bottom: 4px; }
.form-header p { margin: 0; }
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; counter-reset: s; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: .84rem; font-weight: 600; transition: background .25s, color .25s; }
.stepper li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--surface); font-size: .8rem; font-weight: 800; }
.stepper li.active { background: var(--red-soft); color: var(--red-2); }
.stepper li.active span { background: var(--red); color: #fff; }
.stepper li.done { background: var(--green-soft); color: var(--green); }
.stepper li.done span { background: var(--green); color: #fff; }
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; }
.section { border: 0; padding: 0; margin: 0; min-width: 0; }
.section legend { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; margin-bottom: 14px; font-weight: 750; font-size: 1.02rem; }
.section legend small { margin-left: auto; font-weight: 600; }
.number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--gradient); color: #fff; font-size: .85rem; font-weight: 800; }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; color: var(--text-2); }
.field__label em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .82rem; }
.field input[type="text"], .field input[type="number"], .field input[type="password"], .field input[type="email"], .field input[type="date"],
.field input[type="tel"], .field select, .search input, .select-small {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border-2);
  background: var(--surface); color: var(--text); font: 500 1rem var(--font); transition: border-color .2s, box-shadow .2s;
}
.field select, .select-small { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field input:focus, .field select:focus, .search input:focus, .select-small:focus { outline: none; border-color: var(--red); box-shadow: var(--ring); }
.field input:disabled, .field select:disabled { opacity: .6; cursor: not-allowed; }
.field--error input, .field--error select, .field--error .segmented span { border-color: var(--danger) !important; }
.field__error { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-basis: 100%; font-size: .82rem; font-weight: 600; color: var(--danger); }
.field__error .icon { width: 14px; height: 14px; }
.field__password { position: relative; display: block; }
.field__password input { padding-right: 48px !important; }
.show-password { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.show-password:hover { background: var(--bg-2); color: var(--text); }
.field__combo { display: flex; gap: 8px; align-items: center; }
.field__combo > :first-child { flex: 1; min-width: 0; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-two .field--full { grid-column: 1 / -1; }
.password-meter { height: 6px; margin-top: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.password-meter i { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .25s, background .25s; }
.password-meter[data-score="0"] i { width: 12%; background: var(--danger); }
.password-meter[data-score="1"] i { width: 30%; background: #f97316; }
.password-meter[data-score="2"] i { width: 55%; background: #eab308; }
.password-meter[data-score="3"] i { width: 80%; background: #22c55e; }
.password-meter[data-score="4"] i { width: 100%; background: #059669; }
.password-rules { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0; margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.password-rules li[data-rule]::before { content: "○ "; }
.password-rules li.ok { color: var(--green); }
.password-rules li.ok::before { content: "✓ "; }
.password-rules__text { margin-left: auto; font-weight: 700; color: var(--text-2); }
.email-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 1.3em; margin-top: 6px; font-size: .82rem; font-weight: 600; }
.email-check .icon { width: 15px; height: 15px; }
.email-check--ok { color: var(--green); }
.email-check--error { color: var(--danger); }
.email-check--checking { color: var(--muted); }
.link-button { padding: 0; border: 0; background: none; color: var(--red-2); font: 700 .82rem var(--font); text-decoration: underline; cursor: pointer; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--red); }
.field__group { display: flex; align-items: stretch; }
.field__group input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.field__suffix { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--border-2); border-left: 0; border-radius: 0 12px 12px 0; background: var(--bg-2); color: var(--muted); font-weight: 600; font-size: .9rem; }
.field__help { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.field__help--warning { color: var(--yellow); font-weight: 600; }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 8px; border-radius: 12px; border: 1.5px solid var(--border-2); font-weight: 650; color: var(--text-2); white-space: nowrap; transition: all .2s; }
.segmented label:hover span { border-color: var(--red); }
.segmented input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-2); box-shadow: var(--ring); }
.segmented input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.who-info { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--bg-2); font-size: .88rem; color: var(--text-2); }
.who-info[hidden] { display: none; }
.who-info .icon { color: var(--red); }

.dropzone {
  position: relative; text-align: center; padding: 26px 18px; border: 2px dashed var(--border-2); border-radius: 18px;
  background: repeating-linear-gradient(-45deg, transparent 0 12px, color-mix(in srgb, var(--bg-2) 60%, transparent) 12px 24px);
  transition: border-color .2s, background .2s, transform .2s;
}
.dropzone--dragover { border-color: var(--red); background: var(--red-soft); transform: scale(1.01); }
.dropzone--filled { padding: 16px 18px; }
.dropzone--filled .dropzone__icon, .dropzone--filled .dropzone__hint { display: none; }
.dropzone--full .dropzone__button { opacity: .5; pointer-events: none; }
.dropzone__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; background: var(--gradient); color: #fff; box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .7); }
.dropzone__icon .icon { width: 26px; height: 26px; }
.dropzone__title { font-weight: 700; margin: 0 0 4px; }
.dropzone__hint { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.dropzone__button { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dropzone__button .btn { position: relative; }
.preview { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 0; margin: 14px 0 0; }
.preview:empty { display: none; }
.preview__item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); animation: enter .3s ease both; }
.preview__image { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.preview__image img { width: 58px; height: 58px; object-fit: cover; }
.preview__info { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.preview__info b { font-size: .86rem; }
.preview__info span { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview__info small { font-size: .74rem; color: var(--muted); }
.preview__info em { color: var(--yellow); font-style: normal; font-weight: 700; }
.tips { margin-top: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.tips summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; font-weight: 650; font-size: .9rem; list-style: none; }
.tips summary::-webkit-details-marker { display: none; }
.tips summary .icon { color: var(--red); }
.tips__body { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 0 14px 14px; align-items: start; }
.tips__body img { border-radius: 12px; }
.tips__body ol { margin: 0; padding-left: 18px; font-size: .86rem; }
.tips__body li { margin-bottom: 6px; }
.tips__body li b { display: block; }
.tips__body li span { color: var(--text-2); }
.consent { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: flex-start; margin: 22px 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); cursor: pointer; font-size: .9rem; }
.consent > span { flex: 1; min-width: 0; }
.consent.field--error { box-shadow: inset 0 0 0 1.5px var(--danger); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-error ul { margin: 4px 0 0; }

.profile-note { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-size: .84rem; color: var(--text-2); }
.profile-note .icon { color: var(--red); margin-top: 2px; }

/* ---------- progress screen ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 15, 29, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.progress { width: min(460px, 100%); background: var(--surface); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg); animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.progress__header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.progress__header b { display: block; font-size: 1.08rem; }
.progress__header small { color: var(--muted); }
.progress__step { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.progress__step li { display: flex; gap: 12px; padding: 10px; border-radius: 14px; color: var(--muted); transition: background .3s, color .3s; }
.progress__step li b { display: block; font-size: .95rem; }
.progress__step li small { font-size: .8rem; }
.progress__step li > div { flex: 1; }
.progress__step .status { flex: none; width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--border-2); display: grid; place-items: center; margin-top: 1px; }
.progress__step li.running { background: var(--red-soft); color: var(--text); }
.progress__step li.running .status { border-color: var(--red); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress__step li.done { color: var(--text); }
.progress__step li.done .status { background: var(--green); border-color: var(--green); }
.progress__step li.done .status::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.progress__bar { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-top: 6px; }
.progress__bar i { display: block; height: 100%; width: 0; background: var(--gradient); transition: width .2s; }
.spinner { width: 38px; height: 38px; border-radius: 999px; border: 4px solid var(--red-soft); border-top-color: var(--red); animation: spin .9s linear infinite; flex: none; }
.spinner--small { width: 18px; height: 18px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }

/* ---------- dialogs, image viewer, toasts ---------- */
.dialog { width: min(440px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg); animation: rise .25s ease both; }
.dialog--wide { width: min(720px, 100%); }
.dialog p { color: var(--text-2); }
.dialog__header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.dialog__header h2 { margin: 0; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.dialog .box { margin: 12px 0 0; }
.overlay--image { background: rgba(5, 8, 16, .85); }
.image-viewer { position: relative; margin: 0; max-width: min(900px, 100%); }
.image-viewer img { max-height: 80vh; margin: 0 auto; border-radius: 14px; image-rendering: auto; box-shadow: var(--shadow-lg); background: #000; }
.image-viewer figcaption { text-align: center; color: #e2e8f0; margin-top: 10px; font-size: .9rem; }
.image-viewer__close { position: absolute; top: -14px; right: -14px; background: #fff; color: #0f172a; box-shadow: var(--shadow); }
.image-viewer__close:hover { background: #fff; }
.toast-container { position: fixed; z-index: 80; right: 18px; bottom: 18px; display: grid; gap: 10px; width: min(380px, calc(100% - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .9rem; animation: rise .25s ease both; }
.toast > div { flex: 1; }
.toast--success > .icon { color: var(--green); }
.toast--info > .icon { color: var(--blue); }
.toast--warning > .icon { color: var(--yellow); }
.toast--error > .icon { color: var(--danger); }
.toast__close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.toast--leaving { opacity: 0; transform: translateY(8px); transition: all .25s; }

/* ---------- skeletons (loading) ---------- */
.skeleton { border-radius: var(--radius); margin-bottom: 20px; background: linear-gradient(90deg, var(--bg-2) 25%, color-mix(in srgb, var(--bg-2) 50%, var(--surface)) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton--title { height: 54px; width: 55%; }
.skeleton--highlight { height: 220px; }
.skeleton--card { height: 230px; margin: 0; }
.skeleton--stat { height: 104px; margin: 0; }
.skeleton--table { height: 360px; }

/* ---------- result ---------- */
.result-header { margin-bottom: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.back-link:hover { color: var(--red-2); text-decoration: none; }
.result-header__row, .page-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; }
.page-title { margin-bottom: 22px; }
.result-header h1, .page-title h1 { margin-bottom: 2px; }
.result-header p, .page-title p { margin: 0; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }

.highlight { position: relative; overflow: hidden; display: grid; grid-template-columns: .82fr 1.18fr; gap: 28px; align-items: center; padding: 30px; }
.highlight::before { content: ""; position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.highlight > * { position: relative; }
.highlight--normal::before { background: radial-gradient(600px 260px at 0% 0%, color-mix(in srgb, var(--z-normal) 16%, transparent), transparent 70%); }
.highlight--mild::before { background: radial-gradient(600px 260px at 0% 0%, color-mix(in srgb, var(--z-mild) 18%, transparent), transparent 70%); }
.highlight--moderate::before { background: radial-gradient(600px 260px at 0% 0%, color-mix(in srgb, var(--z-moderate) 16%, transparent), transparent 70%); }
.highlight--severe::before { background: radial-gradient(600px 260px at 0% 0%, color-mix(in srgb, var(--z-severe) 22%, transparent), transparent 70%); }
.highlight--failed { grid-template-columns: 1.1fr .9fr; }
.highlight--failed::before { background: radial-gradient(600px 260px at 0% 0%, color-mix(in srgb, var(--muted) 14%, transparent), transparent 70%); }
.highlight__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.highlight__label .icon { color: var(--red); }
.highlight__value { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.highlight__value b { font-size: clamp(3.4rem, 8vw, 5rem); font-weight: 850; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.highlight__value span { font-size: 1.3rem; font-weight: 700; color: var(--muted); }
.highlight__range { color: var(--text-2); margin-bottom: 14px; }
.highlight--failed h2 { font-size: 1.6rem; margin-top: 8px; }
.category-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 800; color: #fff; box-shadow: var(--shadow); }
.category-chip::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; opacity: .8; }
.category-chip--normal { background: var(--z-normal); }
.category-chip--mild { background: var(--z-mild); }
.category-chip--moderate { background: var(--z-moderate); }
.category-chip--severe { background: var(--z-severe); }
.highlight__gauge p { margin: 4px 0 0; }
.retake-tips { padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.retake-tips ol { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); font-size: .92rem; }

/* Hgb gauge (SVG) */
.hgb-gauge { width: 100%; height: auto; overflow: visible; }
.hgb-gauge .z--severe { fill: var(--z-severe); }
.hgb-gauge .z--moderate { fill: var(--z-moderate); }
.hgb-gauge .z--mild { fill: var(--z-mild); }
.hgb-gauge .z--normal { fill: var(--z-normal); }
.g-zone { font: 700 13px var(--font); fill: var(--text-2); }
.g-number { font: 600 12px var(--font); fill: var(--muted); }
.g-line { stroke: var(--surface); stroke-width: 2; }
.g-band { fill: color-mix(in srgb, var(--text) 9%, transparent); stroke: color-mix(in srgb, var(--text) 30%, transparent); stroke-width: 1.5; stroke-dasharray: 5 4; }
.g-marker { transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.g-marker line { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.g-marker circle { fill: var(--surface); stroke: var(--text); stroke-width: 4; }
.g-marker text { font: 800 15px var(--font); fill: var(--text); }

/* P(anemia) bar */
.pbar { margin: 18px 0 8px; }
.pbar__track { position: relative; height: 14px; border-radius: 99px; background: var(--bg-2); }
.pbar__fill { height: 100%; border-radius: 99px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.pbar__fill--anemia { background: linear-gradient(90deg, #fda4af, var(--red)); }
.pbar__fill--normal { background: linear-gradient(90deg, #6ee7b7, var(--green)); }
.pbar__threshold { position: absolute; top: -7px; bottom: -7px; width: 2px; background: var(--text); }
.pbar__threshold span { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; white-space: nowrap; color: var(--text-2); }
.pbar__scale { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: 6px; }
.classification { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.classification__p { text-align: right; }
.classification__p small { display: block; color: var(--muted); font-size: .8rem; }
.classification__p b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.decision { font-size: .95rem; margin: 14px 0 10px; }
.summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .88rem; color: var(--text-2); }
.summary-list li { display: flex; align-items: center; gap: 8px; }
.summary-list .icon { color: var(--muted); }
.patient-data { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; }
.patient-data div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.patient-data dt { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.patient-data dd { margin: 2px 0 0; font-weight: 650; }

.flow__step { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: a; }
.flow__step li { position: relative; display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.flow__step li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; width: 10px; height: 10px; border-top: 2.5px solid var(--border-2); border-right: 2.5px solid var(--border-2); transform: translateY(-50%) rotate(45deg); }
.flow__step b { display: block; font-size: .95rem; margin-bottom: 2px; }
.flow__step small { color: var(--text-2); font-size: .84rem; }
.flow__number { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--gradient); color: #fff; font-weight: 800; }
.flow--large .flow__step { grid-template-columns: 1fr; }
.flow--large .flow__step li::after { display: none; }

.per-photo > h2 { margin: 30px 0 14px; }
.photo-card { padding: 20px; }
.photo-card__header { display: flex; align-items: center; gap: 14px; }
.photo-card__thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; }
.photo-card__title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.photo-card__title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-card__number { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red-2); }
.figure-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 0; }
.figure-row div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.figure-row dt { font-size: .74rem; color: var(--muted); font-weight: 600; }
.figure-row dd { margin: 0; font-weight: 800; font-size: 1.1rem; }
.error-message { display: flex; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); color: var(--text-2); font-size: .92rem; }
.small-warning { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.small-warning li { display: flex; gap: 8px; font-size: .85rem; color: var(--text-2); padding: 8px 12px; border-radius: 10px; background: var(--yellow-soft); }
.small-warning .icon { color: var(--yellow); margin-top: 2px; }
.gallery-wrap { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.gallery-wrap summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 650; color: var(--red-2); list-style: none; }
.gallery-wrap summary::-webkit-details-marker { display: none; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.step { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.step__image { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #0b1020; cursor: zoom-in; width: 100%; }
.step__image img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; transition: transform .3s; }
.step__image:hover img { transform: scale(1.04); }
.step__image--empty { color: var(--muted); background: var(--bg-2); cursor: default; }
.step__image--svg { background: var(--surface-2); cursor: default; padding: 8px; }
.step__image--decision { cursor: default; color: #fff; text-align: center; align-content: center; gap: 4px; }
.step__image--decision small { display: block; opacity: .85; font-size: .8rem; }
.step__image--decision b { font-size: 1.2rem; letter-spacing: .03em; }
.verdict--anemia { background: var(--gradient); }
.verdict--normal { background: linear-gradient(135deg, #34d399, #059669); }
.verdict--failed { background: linear-gradient(135deg, #94a3b8, #475569); }
.step figcaption { display: flex; gap: 8px; font-size: .8rem; line-height: 1.35; }
.step figcaption b { display: block; font-size: .86rem; }
.step figcaption small { color: var(--muted); }
.step__number { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--bg-2); font-weight: 800; font-size: .75rem; }

.distribution { width: 100%; height: auto; }
.ds-bar { fill: #94a3b8; }
.ds-bar--a { fill: var(--red); opacity: .85; }
.ds-axis { stroke: var(--border-2); }
.ds-label { font: 600 10px var(--font); fill: var(--muted); }
.ds-threshold { stroke: var(--danger); stroke-width: 2; stroke-dasharray: 5 4; }
.ds-mean { stroke: var(--text); stroke-width: 2.5; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); color: var(--text-2); font-size: .88rem; margin: 26px 0 18px; }
.disclaimer .icon { color: var(--muted); margin-top: 2px; }
.result-footer { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- history ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat span { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.stat b { font-size: 2rem; font-weight: 850; letter-spacing: -.03em; margin: 4px 0 0; line-height: 1.1; }
.stat small { color: var(--muted); font-size: .78rem; }
.stat--problem span .icon { color: var(--red); }
.stat--normal span .icon { color: var(--green); }
.card--table { padding: 0; overflow: hidden; }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.search { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.search .icon { position: absolute; left: 13px; color: var(--muted); }
.search input { padding-left: 38px !important; padding-top: 9px !important; padding-bottom: 9px !important; border-radius: 999px !important; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table th.right, .table td.right { text-align: right; }
.select-column { width: 36px; }
.select-column input { width: 17px; height: 17px; accent-color: var(--red); }
.cell-patient { display: flex; align-items: center; gap: 12px; color: var(--text); }
.cell-patient:hover { text-decoration: none; }
.cell-patient:hover b { color: var(--red-2); }
.cell-patient img:not(.avatar), .mini-empty { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; flex: none; }
.mini-empty { display: grid; place-items: center; background: var(--bg-2); color: var(--muted); }
.cell-patient > span:not(.avatar):not(.mini-empty) { display: flex; flex-direction: column; line-height: 1.3; }
.cell-patient small { color: var(--muted); font-size: .78rem; display: inline-flex; align-items: center; gap: 4px; }
.cell-patient small .icon { color: var(--yellow); width: 13px; height: 13px; }
.category { display: block; font-size: .72rem; font-weight: 700; }
.category--normal { color: var(--green); }
.category--mild { color: #d97706; }
.category--moderate { color: var(--red); }
.category--severe { color: var(--z-severe); }
.page { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px; font-size: .88rem; color: var(--muted); }
.page:empty { display: none; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .icon--large { margin: 0 auto 10px; }
.empty-large { text-align: center; max-width: 560px; margin: 60px auto; }
.empty-large .icon--large { margin: 0 auto 14px; color: var(--red); }
.empty-large .tech-details { text-align: left; }

/* ---------- system & sign-in ---------- */
.status-summary { display: flex; gap: 6px; flex-wrap: wrap; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.check { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.check:nth-child(odd) { background: var(--surface-2); }
.check > .icon { margin-top: 3px; }
.check div { min-width: 0; display: flex; flex-direction: column; }
.check b { font-size: .88rem; }
.check span { font-size: .84rem; color: var(--text-2); word-break: break-word; }
.check--ok > .icon { color: var(--green); }
.check--warning > .icon { color: var(--yellow); }
.check--error > .icon { color: var(--danger); }
.check--error b { color: var(--danger); }
.login-wrap { display: grid; place-items: center; min-height: 52vh; }
.login-card { width: min(420px, 100%); text-align: center; padding: 32px; }
.login-card .field { text-align: left; }
.login-card__icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 20px; background: var(--gradient); color: #fff; }
.login-card__icon .icon { width: 28px; height: 28px; }

/* ---------- about ---------- */
.table--info td, .table--info th { padding: 10px 12px; }
.table--compact { font-size: .84rem; }
.bullet-list { margin: 0; padding-left: 20px; color: var(--text-2); }
.bullet-list li { margin-bottom: 8px; }

.noscript { padding: 20px; text-align: center; background: #fef3c7; color: #78350f; }
.block { display: block; }

/* ---------- sign-in & registration ---------- */
.auth { display: grid; grid-template-columns: .92fr 1.08fr; min-height: calc(100vh - 240px); margin: 4px 0 12px; border-radius: 30px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.auth__panel { position: relative; display: flex; align-items: flex-start; padding: 46px; overflow: hidden; background: var(--gradient); color: #fff; }
.auth__panel::before, .auth__panel::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.auth__panel::before { width: 420px; height: 420px; right: -150px; bottom: -170px; }
.auth__panel::after { width: 200px; height: 200px; left: -80px; top: -70px; }
.auth__panel-content { position: sticky; top: 110px; z-index: 1; }
.auth__panel-content > img:first-child { border-radius: 15px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); }
.auth__panel h2 { margin: 20px 0 8px; font-size: 2rem; color: #fff; }
.auth__panel p { opacity: .92; }
.auth__illustration { width: 100%; max-width: 300px; height: auto; margin-top: 6px; border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); }
.auth__panel--simple { align-items: center; }
.auth__panel--simple .auth__panel-content { position: static; max-width: 400px; }
.auth__panel--simple h2 { font-size: 2.4rem; line-height: 1.15; }
.auth__panel--simple p { font-size: 1.05rem; }
.auth__form { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 46px; border: 0; border-radius: 0; box-shadow: none; }
.auth__form--wide { justify-content: flex-start; }
.auth__form h1 { margin-bottom: 4px; }
.auth__form > p.muted { margin-bottom: 22px; }
.auth__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: -4px 0 16px; }
.auth__switch { margin: 18px 0 0; text-align: center; color: var(--muted); }

/* ---------- user dashboard ---------- */
.welcome { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-bottom: 22px; }
.welcome__left { display: flex; align-items: center; gap: 16px; }
.welcome__left .avatar { box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .55); }
.welcome h1 { margin: 0; }
.welcome p { margin: 0; }
.stat b em { margin-left: 4px; font-size: .95rem; font-style: normal; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.stat small .category { display: inline; font-size: inherit; }
.stat--highlight { background: linear-gradient(160deg, color-mix(in srgb, var(--red-soft) 80%, var(--surface)), var(--surface)); }
.stat .stat__small { font-size: 1.6rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.dashboard-grid > .card { margin: 0; }
.mini-list { list-style: none; display: grid; gap: 2px; padding: 0; margin: 0; }
.mini-list__row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--text); text-decoration: none !important; transition: background .15s; }
.mini-list__row:hover { background: var(--surface-2); }
.mini-list__row > img:not(.avatar), .mini-list__row > .mini-empty { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.mini-list__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mini-list__text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.mini-list__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; color: var(--muted); }
.mini-list__value { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.mini-list__value b { font-size: 1.05rem; line-height: 1; }
.mini-list__value small { font-size: .72rem; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .9rem; font-weight: 700; }
.card--tips { display: flex; gap: 16px; align-items: flex-start; }
.card--tips__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--red-soft); color: var(--red); }
.card--tips h2 { font-size: 1.05rem; }
.card--tips p { margin: 0; }

/* ---------- admin ---------- */
.status-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.tile { --tile-color: var(--muted); display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--border); border-top: 4px solid var(--tile-color); box-shadow: var(--shadow); min-width: 0; }
.tile--green { --tile-color: var(--green); }
.tile--yellow { --tile-color: #f59e0b; }
.tile--red { --tile-color: var(--danger); }
.tile--blue { --tile-color: var(--blue); }
.tile__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--tile-color) 14%, transparent); color: var(--tile-color); }
.tile > div { min-width: 0; display: flex; flex-direction: column; }
.tile small { font-size: .76rem; font-weight: 650; color: var(--muted); }
.tile b { font-size: 1.25rem; line-height: 1.25; color: var(--tile-color); }
.tile span { font-size: .76rem; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; }
.card__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card__header .card__title { margin: 0; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.tabs__item { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; background: none;
  font: 700 .84rem var(--font); color: var(--text-2); cursor: pointer; }
.tabs__item--active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.refresh { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-size: .8rem; font-weight: 650; color: var(--green); }
.refresh .icon { width: 13px; height: 13px; }
.select-small { width: auto; flex: 0 0 auto; padding-top: 9px; padding-bottom: 9px; border-radius: 999px; font-size: .9rem; }
.cell-account { display: flex; flex-direction: column; line-height: 1.3; color: var(--text); }
.cell-account small { font-size: .78rem; color: var(--muted); }
.cell-actions { white-space: nowrap; }
.log-list { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.log-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.log-list li > .icon { margin-top: 2px; color: var(--green); }
.log-list li.failed > .icon { color: var(--danger); }
.log-list small { display: block; font-size: .78rem; color: var(--muted); }
.profile-header { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.profile-header__photo, .profile-photo { position: relative; display: inline-block; }
.profile-header__text { flex: 1; min-width: 220px; }
.profile-header h1 { margin: 0 0 2px; }
.profile-header p { margin: 0 0 6px; overflow-wrap: anywhere; }
.profile-header__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.figure-row--3 { grid-template-columns: repeat(3, 1fr); margin: 0 0 14px; }

/* ---------- profile ---------- */
.profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.profile-card { position: sticky; top: 90px; text-align: center; }
.profile-photo { margin-bottom: 12px; }
.profile-photo .avatar, .profile-header__photo .avatar { border: 4px solid var(--surface); box-shadow: 0 16px 40px -14px rgba(79, 70, 229, .55); }
.profile-photo--loading::after { content: ""; position: absolute; inset: 0; border-radius: 999px; border: 4px solid var(--red-soft); border-top-color: var(--red); animation: spin .9s linear infinite; }
.profile-photo__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px; }
.profile-card h2 { margin: 0 0 2px; }
.profile-email { margin: 0 0 10px; overflow-wrap: anywhere; }
.profile-info { display: grid; gap: 10px; margin: 18px 0 0; text-align: left; }
.profile-info div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.profile-info dt { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.profile-info dt .icon { width: 14px; height: 14px; }
.profile-info dd { margin: 2px 0 0; font-size: .9rem; font-weight: 600; }
.danger-zone { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.danger-zone h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--danger); }
.danger-zone p { margin: 0; }

/* ==========================================================================
   Responsif
   ========================================================================== */
@media (max-width: 1100px) {
  .status-grid { grid-template-columns: repeat(3, 1fr); }
  .account__name { display: none; }
}

@media (max-width: 1020px) {
  .lp-hero__inner, .lp-two, .auth, .profile-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .lp-hero__visual { min-height: 480px; }
  .lp-two--reverse > :first-child { order: 2; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .auth__panel { display: none; }
  .auth { min-height: 0; }
  .profile-card { position: static; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .status-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .highlight { grid-template-columns: 1fr; gap: 18px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .container { padding: 0 14px; }
  /* backdrop-filter on the header traps the fixed mobile menu inside the header, so it is disabled on phones */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .header__inner { height: 60px; }
  .logo__text small { display: none; }
  /* the product name takes two lines next to the header buttons: "Arsika" above, "Rollout Manager" below */
  .logo__text b { font-size: .98rem; }
  .logo__rest { display: block; font-size: .7rem; font-weight: 600; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
  .menu {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; margin: 0; justify-content: space-around; gap: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .menu a { flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; border-radius: 12px; font-size: .7rem; }
  .menu a .icon { width: 22px; height: 22px; }
  .header__actions { margin-left: auto; }
  .toast-container { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; width: calc(100% - 24px); }
  .card, .card--form { padding: 18px; border-radius: 18px; }
  .card--table { padding: 0; }
  .table-tools { padding: 14px; }
  .menu[data-role="guest"] a[data-menu="login"], .menu[data-role="guest"] a[data-menu="register"] { display: flex; }
  .account--guest { display: none; }
  .account__menu { position: fixed; top: 64px; right: 10px; width: min(300px, calc(100vw - 20px)); }
  .lp-hero { padding: 28px 0 44px; }
  .lp-hero h1 { font-size: 2.25rem; }
  .lp-hero__visual { min-height: 440px; }
  .lp-section { padding: 50px 0; }
  .lp-title { margin-bottom: 28px; }
  .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .lp-cta { padding-bottom: 50px; }
  .lp-cta__inner { padding: 28px 22px; border-radius: 24px; }
  .lp-cta .btn { flex: 1; }
  .floating { display: none; }        /* would cover the mock-up; the same points are listed above it */
  .phone-mock { transform: none; }
  .form-two { grid-template-columns: 1fr; }
  .auth { margin-top: 0; border-radius: 22px; }
  .auth__form { padding: 24px 18px; }
  .welcome .btn { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .figure-row--3 { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: 1fr; gap: 10px; }
  .tile { align-items: center; padding: 12px 14px; }
  .tile b { font-size: 1.1rem; }
  .tabs { width: 100%; }
  .tabs__item { flex: 1; justify-content: center; padding: 7px 8px; }
  .table-tools .select-small { flex: 1; }
  .stepper li { font-size: 0; gap: 0; padding: 4px; }
  .stepper li span { font-size: .8rem; }
  .tips__body { grid-template-columns: 1fr; }
  .tips__body img { max-width: 260px; }
  .flow__step { grid-template-columns: 1fr; }
  .flow__step li::after { display: none; }
  .figure-row { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .patient-data { grid-template-columns: 1fr 1fr; }
  .highlight { padding: 22px; }
  .action-row .btn { flex: 1; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { position: relative; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .table tr:has(.select-column) { padding-left: 46px; }
  .table td { border: 0; padding: 3px 0; text-align: left !important; }
  .table td.select-column { position: absolute; left: 14px; top: 26px; width: auto; }
  .table td[data-label]:not([data-label="Pemeriksaan"]):not([data-label="Akun"])::before { content: attr(data-label) ": "; color: var(--muted); font-size: .78rem; }
  .table td.cell-actions { position: absolute; right: 8px; top: 14px; width: auto; }
  .table td:first-child:not(.select-column), .table td.select-column + td { padding-right: 96px; }
  .table td[data-label="Hgb"] b, .table td[data-label="Hgb"] small { display: inline; margin-right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Cetak / simpan PDF (halaman Hasil)
   ========================================================================== */
@media print {
  :root, :root[data-theme="dark"] {
    --bg: #fff; --bg-2: #f1f5f9; --surface: #fff; --surface-2: #f8fafc; --text: #0f172a; --text-2: #334155;
    --muted: #64748b; --border: #e2e8f0; --border-2: #cbd5e1; color-scheme: light;
  }
  body { background: #fff; font-size: 12px; padding: 0; }
  .header, .footer, .menu, .account, .toast-container, .banner, .action-row, .back-link, .result-footer, .skip-link, .gallery-wrap summary, .box--blue { display: none !important; }
  .print-only { display: flex; }
  .print-header { justify-content: space-between; border-bottom: 2px solid #0f172a; padding-bottom: 8px; margin-bottom: 14px; }
  .content { padding: 0; }
  .container { max-width: none; padding: 0; }
  .card, .stat { box-shadow: none; break-inside: avoid; }
  .highlight::before { display: none; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .step { break-inside: avoid; }
  .category-chip, .badge, .verdict--anemia, .verdict--normal, .verdict--failed, .flow__number, .hgb-gauge rect { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; }
}

/* ---------- language links (installer page) ---------- */
.language-links { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.language-links a { color: var(--muted); text-decoration: none; }
.language-links a:hover { color: var(--red); }
.language-links b { color: var(--red); }

/* ---------- language toggle (header) ---------- */
.language-toggle { display: inline-flex; align-items: center; width: auto; padding: 0 10px; gap: 5px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.language-toggle span { line-height: 1; }

/* ---------- result: collapsible technical details ---------- */
.tech-section { margin: 20px 0; }
.tech-section > summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border: 1px dashed var(--border-2); border-radius: var(--radius);
  background: var(--surface); color: var(--text-2); font-weight: 700; cursor: pointer; list-style: none; }
.tech-section > summary::-webkit-details-marker { display: none; }
.tech-section > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.tech-section[open] > summary { margin-bottom: 20px; }
.tech-section[open] > summary::after { transform: rotate(180deg); }
.box p { margin: 0 0 6px; }
.box p:last-child { margin-bottom: 0; }

/* ---------- presence (admin: online / offline) ---------- */
.presence { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.presence i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.presence--online { color: var(--green); }
.presence--online i { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); animation: pulse 2s ease-in-out infinite; }
.presence--offline { color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.live-note { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   Rollout manager dashboard components
   ========================================================================== */
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--green) !important; }
.text-warning { color: var(--yellow) !important; }
.presence small { font-weight: 600; color: var(--muted); }
.presence--down { color: var(--danger); }
.presence--down i { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.spinner--tiny { display: inline-block; width: 11px; height: 11px; border-width: 2px; margin-right: 2px; vertical-align: -1px; }
.badge .icon { width: 13px; height: 13px; }

/* version label */
.version-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-family: var(--mono);
  font-size: .82rem; font-weight: 700; background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.version-pill .icon { width: 13px; height: 13px; color: var(--muted); }
.version-pill--current { background: var(--red-soft); color: var(--red-2); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.version-pill--current .icon { color: var(--red); }
.version-pill--new { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.version-pill--new .icon { color: var(--green); }

/* overview: site cards */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.site-card { display: flex; flex-direction: column; gap: 14px; margin: 0; transition: transform .15s, box-shadow .15s; }
.site-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.site-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.site-card__header h2 { margin: 0 0 2px; font-size: 1.2rem; }
.site-card__header h2 a { color: var(--text); text-decoration: none; }
.site-card__domain { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; color: var(--muted); }
.site-card__domain .icon { width: 13px; height: 13px; }
.site-card__versions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.site-card__versions div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.site-card__versions dt { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.site-card__versions dd { margin: 0; }
.site-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.site-card__meta:empty, .site-card__job:empty { display: none; }
.site-card__job { margin: 0; }
.site-card__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }

/* site details */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-header h1 { margin: 0 0 6px; }
.site-header__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; font-size: .9rem; }
.site-header__links a, .site-header__links span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.site-header__links .icon { width: 15px; height: 15px; color: var(--muted); }
.site-header__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tabs--page { display: flex; flex-wrap: nowrap; width: fit-content; max-width: 100%; margin: 4px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs--page .tabs__item { flex: none; }
.site-header .badge-row > .small { display: inline-flex; align-items: center; gap: 5px; }
.site-header .badge-row > .small .icon { width: 15px; height: 15px; }
.tabs--page .tabs__item { text-decoration: none; color: var(--muted); }
.tabs--page .tabs__item--active { color: var(--text); }
.card__header--padded { padding: 20px 24px 6px; align-items: flex-start; }
.card--table > .box { margin: 0 24px 16px; }

/* releases */
.release-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.release { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.release--current { border-color: color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red-soft) 60%, var(--surface)); }
.release__main { flex: 1; min-width: 240px; display: grid; gap: 4px; }
.release__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.release__actions { display: flex; align-items: center; gap: 6px; }
.release__notes summary { cursor: pointer; font-size: .82rem; color: var(--muted); }
.release__notes pre { white-space: pre-wrap; margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font-size: .82rem; max-height: 260px; overflow: auto; }
.adopt-card { border-color: var(--yellow-border); }
.adopt-card p { color: var(--text-2); }

/* site form */
.site-form .section { margin-bottom: 22px; }
.site-form .section legend .icon { color: var(--red); }
.site-form .tech-section { margin: 4px 0 20px; }
.site-form .tech-section .section { padding: 0 4px; }
.field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border-2); border-radius: 12px; background: var(--surface); color: var(--text);
  font: inherit; font-family: var(--mono); font-size: .88rem; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--red); box-shadow: var(--ring); }
.field select { font: inherit; }
.form-confirm { padding-top: 16px; border-top: 1px dashed var(--border-2); margin-bottom: 14px; }

/* job log */
.log-card { padding: 0; overflow: hidden; }
.log { max-height: 68vh; min-height: 280px; overflow: auto; padding: 16px 18px; background: #0b1020; color: #cbd5e1;
  font-family: var(--mono); font-size: .82rem; line-height: 1.55; }
.log:focus { outline: none; }
.log__line { display: block; white-space: pre-wrap; word-break: break-word; }
.log__time { color: #64748b; margin-right: 10px; user-select: none; }
.log__step { color: #a5b4fc; font-weight: 700; margin-top: 6px; }
.log__info { color: #94a3b8; }
.log__output { color: #cbd5e1; padding-left: 74px; text-indent: -74px; }
.log__output .log__time { visibility: hidden; }
.log__error { color: #fca5a5; font-weight: 600; }

@media (max-width: 760px) {
  .site-grid { grid-template-columns: 1fr; }
  .site-header__actions { width: 100%; }
  .release__actions { width: 100%; justify-content: flex-end; }
  .log { font-size: .76rem; padding: 12px; }
  .log__output { padding-left: 0; text-indent: 0; }
  .card__header--padded { padding: 16px 16px 4px; }
}
