/* Clinical Studio — Web Studio v1
   Plain CSS, no build step, no external resources.
   Palette: deep slate + teal accent. */

:root {
  --bg: #081216;
  --bg-soft: #0b191e;
  --surface: #0f2026;
  --surface-2: #132a31;
  --surface-3: #18343c;
  --surface-glass: rgba(12, 30, 36, 0.86);
  --border: #21414a;
  --border-strong: #2f5a64;
  --text: #e8f3f2;
  --muted: #9ab3b6;
  --faint: #6f8b8f;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-dark: #0b3f3b;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-line: rgba(45, 212, 191, 0.35);
  --brand: #c6ce69;
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --info: #7dd3fc;
  --info-soft: rgba(125, 211, 252, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.22);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --topbar-h: 64px;
  --content-max: 1220px;
  --focus: 0 0 0 3px rgba(45, 212, 191, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 8% -10%, rgba(45, 212, 191, 0.08), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(198, 206, 105, 0.05), transparent 55%),
    var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h2 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h3 { font-size: 1.06rem; }

p { margin: 0; }

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img, svg, video { max-width: 100%; }

[hidden] { display: none !important; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

::selection {
  background: rgba(45, 212, 191, 0.32);
  color: #fff;
}

/* ---------- utilities ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: var(--mono); font-size: 0.84em; letter-spacing: 0.02em; }
.nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.break { overflow-wrap: anywhere; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #04201d;
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* ---------- boot ---------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  color: var(--muted);
}

.boot__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- login ---------- */

.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 18px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(760px 460px at 50% 8%, rgba(45, 212, 191, 0.13), transparent 62%),
    radial-gradient(560px 360px at 92% 100%, rgba(198, 206, 105, 0.06), transparent 60%);
}

.login__card {
  width: min(420px, 100%);
  padding: 32px 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 42, 49, 0.92), rgba(12, 27, 32, 0.96));
  box-shadow: var(--shadow);
  text-align: center;
}

.login__brand {
  display: inline-flex;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid var(--accent-line);
}

.login h1 { margin-bottom: 4px; }

.login__lead {
  color: var(--muted);
  margin-bottom: 22px;
}

.login .form { text-align: left; }

.login__note {
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* ---------- topbar / nav ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--topbar-h);
  padding: 10px clamp(14px, 3vw, 32px);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover { text-decoration: none; }

.brand__mark { flex: 0 0 auto; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name { font-weight: 700; letter-spacing: -0.01em; }
.brand__sub { color: var(--faint); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }

.mainnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.mainnav::-webkit-scrollbar { display: none; }

.mainnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.mainnav a:hover {
  color: var(--text);
  background: rgba(45, 212, 191, 0.07);
  text-decoration: none;
}

.mainnav a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.userchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userchip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
}

.app { min-height: 100vh; min-height: 100dvh; }

#view {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(18px, 3.4vw, 36px) clamp(14px, 3vw, 32px) 110px;
}

#view:focus { outline: none; }

/* ---------- page scaffolding ---------- */

.page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: rise 0.22s ease-out;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.page__titles { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.page__sub { color: var(--muted); font-size: 0.95rem; }
.page__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--muted);
  font-size: 0.88rem;
}

.backlink:hover { color: var(--accent-strong); }

/* ---------- cards, facts, notices ---------- */

.card {
  background: linear-gradient(180deg, rgba(18, 40, 47, 0.9), rgba(14, 31, 37, 0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.card__title { font-size: 1.02rem; }
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.card__body--tight { padding: 14px 18px; }
.card--flat { box-shadow: none; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.fact {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(8, 22, 26, 0.55);
  min-width: 0;
}

.fact__label {
  display: block;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fact__value {
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.notice {
  display: flex;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(125, 211, 252, 0.07);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.notice strong { display: block; margin-bottom: 2px; }

.notice--warn { border-color: rgba(251, 191, 36, 0.42); background: var(--warn-soft); }
.notice--danger { border-color: rgba(248, 113, 113, 0.45); background: var(--danger-soft); }
.notice--ok { border-color: rgba(52, 211, 153, 0.42); background: var(--ok-soft); }
.notice--muted { border-color: var(--border); background: rgba(8, 22, 26, 0.5); color: var(--muted); }

.notice__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* ---------- badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(8, 22, 26, 0.55);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--ok { color: #8ff0cf; border-color: rgba(52, 211, 153, 0.45); background: var(--ok-soft); }
.badge--warn { color: #fcd77f; border-color: rgba(251, 191, 36, 0.45); background: var(--warn-soft); }
.badge--danger { color: #fca5a5; border-color: rgba(248, 113, 113, 0.45); background: var(--danger-soft); }
.badge--info { color: #bae6fd; border-color: rgba(125, 211, 252, 0.4); background: var(--info-soft); }
.badge--accent { color: var(--accent-strong); border-color: var(--accent-line); background: var(--accent-soft); }
.badge--muted { color: var(--faint); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 17px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.06s ease;
}

.btn:hover {
  background: var(--surface-3);
  border-color: var(--accent-line);
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  border-color: transparent;
  color: #04221f;
}

.btn--primary:hover { background: var(--accent-strong); border-color: transparent; }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn--ghost:hover { color: var(--text); background: rgba(45, 212, 191, 0.07); }

.btn--danger {
  background: transparent;
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.btn--danger:hover { background: var(--danger-soft); border-color: rgba(248, 113, 113, 0.6); }

.btn--small { min-height: 34px; padding: 6px 11px; font-size: 0.82rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn--link { min-height: 0; padding: 0; border: 0; background: none; color: var(--accent-strong); }

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.iconbtn:hover { color: var(--text); background: rgba(45, 212, 191, 0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }

/* ---------- forms ---------- */

.form { display: flex; flex-direction: column; gap: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.field > label,
.field > .field__label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.015em;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(6, 19, 23, 0.72);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder { color: var(--faint); }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--focus);
  outline: none;
}

textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
  cursor: pointer;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.field__hint,
.hint {
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.4;
}

.field__error,
.form__error {
  color: #fca5a5;
  font-size: 0.83rem;
  line-height: 1.4;
}

.form__error {
  padding: 9px 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 9px;
  background: var(--danger-soft);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.7);
}

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

.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid--full { grid-column: 1 / -1; }

fieldset {
  margin: 0;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(8, 22, 26, 0.35);
}

legend {
  padding: 0 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.check input { margin-top: 2px; }
.check--boxed {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(8, 22, 26, 0.4);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

/* ---------- empty / loading / error ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 42px 22px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(8, 22, 26, 0.4);
}

.empty__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.empty__title { font-size: 1.05rem; font-weight: 650; }
.empty__text { color: var(--muted); max-width: 46ch; font-size: 0.92rem; }
.empty .btn { margin-top: 8px; }

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 22px;
  color: var(--muted);
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  flex: 0 0 auto;
}

/* ---------- projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 42, 49, 0.92), rgba(12, 28, 33, 0.95));
  box-shadow: var(--shadow-soft);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  text-decoration: none;
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.project-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-card__title { font-size: 1.04rem; font-weight: 650; line-height: 1.3; }

.project-card__slug {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.83rem;
}

.project-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.78rem;
}

.project-card__arrow { color: var(--accent); font-size: 1.1rem; }

/* ---------- workspace ---------- */

.workspace { display: flex; flex-direction: column; gap: 18px; }

.ws-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(45, 212, 191, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(19, 42, 49, 0.92), rgba(12, 28, 33, 0.96));
  box-shadow: var(--shadow-soft);
}

.ws-head__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 340px; }
.ws-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ws-head__title h1 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.ws-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 0.84rem; }
.ws-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ws-head__actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }

.tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 22, 26, 0.55);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover { color: var(--text); background: rgba(45, 212, 191, 0.06); }

.tab[aria-selected="true"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.tabpanel { display: flex; flex-direction: column; gap: 18px; }

.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-title h2 { font-size: 1.15rem; }
.section-title__meta { color: var(--faint); font-size: 0.82rem; }

/* ---------- overview ---------- */

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

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

.action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(8, 22, 26, 0.45);
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.action:hover:not(:disabled) { border-color: var(--accent-line); background: rgba(45, 212, 191, 0.07); }
.action:disabled { opacity: 0.45; cursor: not-allowed; }
.action__label { font-weight: 650; font-size: 0.94rem; }
.action__hint { color: var(--faint); font-size: 0.78rem; line-height: 1.35; }
.action__label .badge { margin-left: 4px; }

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(8, 22, 26, 0.8);
  border: 1px solid var(--border);
  overflow: hidden;
}

.progress-track__bar {
  height: 100%;
  width: calc(var(--progress, 0) * 100%);
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width 0.3s ease;
}

/* ---------- tasks ---------- */

.task {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(8, 22, 26, 0.52);
}

.task__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task__title { font-weight: 650; font-size: 0.94rem; }
.task__meta { color: var(--faint); font-size: 0.78rem; }
.task__stage { color: var(--muted); font-size: 0.85rem; }
.task__error { color: #fca5a5; font-size: 0.84rem; line-height: 1.4; overflow-wrap: anywhere; }
.task__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-row .progress-track { flex: 1 1 auto; }
.progress-row__value { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }

/* ---------- task dock ---------- */

.task-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(330px, calc(100vw - 28px));
  pointer-events: none;
}

.dock {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--surface-glass);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.dock:hover { text-decoration: none; border-color: var(--accent); }
.dock__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.85rem; font-weight: 650; }
.dock__sub { color: var(--muted); font-size: 0.76rem; }

/* ---------- sources ---------- */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 26px 20px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(8, 22, 26, 0.42);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone--over {
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.07);
}

.dropzone__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1.35rem;
  font-weight: 700;
}

.dropzone__title { font-weight: 650; }
.dropzone__hint { color: var(--faint); font-size: 0.82rem; }

.upload-result { display: flex; flex-direction: column; gap: 6px; }

.asset-list { display: flex; flex-direction: column; gap: 10px; }

.asset {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(8, 22, 26, 0.42);
}

.asset__main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.asset__name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.asset__name input { max-width: 330px; min-height: 36px; padding: 6px 10px; }
.asset__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 0.8rem; }
.asset__id { color: var(--faint); font-family: var(--mono); font-size: 0.75rem; }
.asset__actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.asset__thumb {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.14), rgba(8, 22, 26, 0.5));
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.role-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- timeline / edit ---------- */

.timeline {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 22, 26, 0.45);
  overflow: hidden;
}

.timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline__scroller {
  overflow-x: auto;
  padding: 14px;
  scrollbar-color: var(--border-strong) transparent;
}

.timeline__inner {
  display: flex;
  gap: 11px;
  min-width: 100%;
  align-items: stretch;
}

.shot {
  --shot-share: 0.25;
  --role-color: var(--accent);
  flex: 0 0 auto;
  width: calc(var(--shot-share) * 100%);
  min-width: 184px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--role-color);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(21, 46, 53, 0.92), rgba(11, 27, 32, 0.95));
}

.shot[data-role="hook"] { --role-color: #7dd3fc; }
.shot[data-role="setup"] { --role-color: #5eead4; }
.shot[data-role="context"], .shot[data-role="exposition"] { --role-color: #93c5fd; }
.shot[data-role="reaction"] { --role-color: #c4b5fd; }
.shot[data-role="comic_pause"] { --role-color: #fcd34d; }
.shot[data-role="punchline"] { --role-color: #fb7185; }
.shot[data-role="callback"] { --role-color: #f0abfc; }
.shot[data-role="outro"], .shot[data-role="cta"] { --role-color: #86efac; }
.shot[data-role="discard"] { --role-color: #64748b; opacity: 0.8; }
.shot[data-role="broll"], .shot[data-role="supporting"] { --role-color: #fbbf24; }
.shot[data-role="unknown"] { --role-color: #94a3b8; }

.shot.is-dragging { opacity: 0.55; }
.shot.is-drop-target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.shot--temp { border-style: dashed; }

.shot__head { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.shot__order { font-family: var(--mono); color: var(--faint); font-size: 0.76rem; }
.shot__role { font-weight: 700; font-size: 0.86rem; color: var(--role-color); }
.shot__time { font-family: var(--mono); font-size: 0.82rem; color: var(--text); text-align: right; }
.shot__asset { font-size: 0.86rem; font-weight: 600; overflow-wrap: anywhere; }
.shot__range { color: var(--faint); font-family: var(--mono); font-size: 0.73rem; }
.shot__controls { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.shot__controls .btn { min-height: 30px; padding: 4px 8px; font-size: 0.76rem; }

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(8, 22, 26, 0.6);
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}

.drag-handle:active { cursor: grabbing; }
.drag-handle:hover { color: var(--accent-strong); border-color: var(--accent-line); }

.shot__settings { margin-top: 2px; }

.shot__settings > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 0;
}

.shot__settings[open] > summary { color: var(--accent-strong); }

.shot__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding-top: 8px;
}

.shot__grid .field > label { font-size: 0.72rem; }
.shot__grid input,
.shot__grid select { min-height: 36px; padding: 6px 9px; font-size: 0.84rem; }
.shot__grid .form-grid--full { grid-column: 1 / -1; }

.savebar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: rgba(9, 27, 32, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.savebar__text { color: var(--muted); font-size: 0.84rem; }
.savebar__text strong { color: var(--accent-strong); }
.savebar .btn-row { margin-left: auto; }

.add-shot {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr)) auto;
  gap: 10px;
  align-items: end;
}

.approval {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 22, 26, 0.45);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.approval--current { border-color: rgba(52, 211, 153, 0.45); }

.approval__pins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--faint);
  font-size: 0.78rem;
}

.pin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(8, 22, 26, 0.65);
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.approval__warnings {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.warning-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 9px;
  background: rgba(251, 191, 36, 0.06);
  font-size: 0.85rem;
  line-height: 1.4;
  cursor: pointer;
}

.warning-check input { margin-top: 2px; }

.sha {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ---------- draft ---------- */

.draft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.video-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 66vh;
  background: #000;
}

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

.qc {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(8, 22, 26, 0.5);
}

.qc__label { color: var(--faint); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; }
.qc__value { font-weight: 650; margin-top: 3px; }
.qc--ok .qc__value { color: #8ff0cf; }
.qc--warn .qc__value { color: #fcd77f; }
.qc--bad .qc__value { color: #fca5a5; }

/* ---------- history ---------- */

.history { display: flex; flex-direction: column; gap: 20px; }
.history__group { display: flex; flex-direction: column; gap: 10px; }
.history__group h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 9px; }

.rev {
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(8, 22, 26, 0.45);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rev__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rev__id { font-family: var(--mono); font-size: 0.84rem; font-weight: 650; }
.rev__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--faint); font-size: 0.78rem; }
.rev__details { color: var(--muted); font-size: 0.8rem; }
.rev__details summary { cursor: pointer; color: var(--faint); }
.rev__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 5px 14px; padding-top: 7px; }
.rev__facts div { overflow-wrap: anywhere; }
.rev__facts dt { color: var(--faint); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.rev__facts dd { margin: 0; font-family: var(--mono); font-size: 0.76rem; }

/* ---------- library ---------- */

.filters {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(2, minmax(140px, 0.8fr)) auto;
  gap: 10px;
  align-items: end;
}

.filters .field > label { font-size: 0.74rem; }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 22, 26, 0.42);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.data-table th {
  text-align: left;
  padding: 11px 14px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 22, 26, 0.6);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(33, 65, 74, 0.6);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(45, 212, 191, 0.04); }
.data-table .cell-name { font-weight: 600; }
.data-table .cell-sub { color: var(--faint); font-size: 0.75rem; }
.data-table .cell-actions { text-align: right; white-space: nowrap; }

/* ---------- brands ---------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.brand-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.brand-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.brand-card__id { color: var(--faint); font-family: var(--mono); font-size: 0.76rem; }
.brand-swatch {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface-3), var(--accent-soft));
}

/* ---------- settings ---------- */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  align-items: start;
}

.meter { display: flex; flex-direction: column; gap: 6px; }
.meter__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.meter__label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.meter__value { font-family: var(--mono); font-size: 0.8rem; color: var(--text); }
.meter__bar { height: 9px; border-radius: 999px; background: rgba(8, 22, 26, 0.8); border: 1px solid var(--border); overflow: hidden; }
.meter__fill { height: 100%; width: calc(var(--meter, 0) * 100%); background: linear-gradient(90deg, var(--accent-dark), var(--accent)); }
.meter__bar--warn .meter__fill { background: linear-gradient(90deg, #7c4a05, var(--warn)); }
.meter__bar--danger .meter__fill { background: linear-gradient(90deg, #7f1d1d, var(--danger)); }

.engine-list { display: flex; flex-direction: column; gap: 6px; }
.engine {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(8, 22, 26, 0.4);
  font-size: 0.84rem;
}
.engine__name { font-family: var(--mono); color: var(--muted); }
.engine__value { color: var(--text); overflow-wrap: anywhere; }

.issues { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 0.86rem; }
.issues li { overflow-wrap: anywhere; }

/* ---------- modal / toasts ---------- */

.modal {
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal::backdrop { background: rgba(2, 9, 12, 0.72); backdrop-filter: blur(3px); }
.modal--wide { width: min(940px, calc(100vw - 28px)); }

.modal__panel { display: flex; flex-direction: column; max-height: calc(100dvh - 50px); }
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.modal__head h2 { font-size: 1.12rem; overflow-wrap: anywhere; }
.modal__body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding: 13px 18px; border-top: 1px solid var(--border); }
.modal__foot:empty { display: none; }

.modal__body video { width: 100%; max-height: 62vh; border-radius: 10px; background: #000; }

body.modal-open { overflow: hidden; }

.toasts {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(540px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--info);
  border-radius: 10px;
  background: rgba(10, 27, 32, 0.97);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  line-height: 1.4;
  animation: toast-in 0.18s ease-out;
}

.toast--ok { border-left-color: var(--ok); }
.toast--warn { border-left-color: var(--warn); }
.toast--error { border-left-color: var(--danger); }
.toast--info { border-left-color: var(--info); }
.toast__text { min-width: 0; overflow-wrap: anywhere; }
.toast__close {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
}
.toast__close:hover { color: var(--text); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  color: var(--warn);
  text-align: center;
  z-index: 300;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .overview-grid,
  .draft-grid { grid-template-columns: minmax(0, 1fr); }
  .add-shot { grid-template-columns: 1fr 1fr; }
  .add-shot .field:first-child { grid-column: 1 / -1; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 58px; }

  body { font-size: 14.5px; }

  .topbar {
    position: sticky;
    padding: 8px 14px;
    gap: 10px;
  }

  .brand__sub { display: none; }
  .brand__name { font-size: 0.95rem; }
  .topbar__user { display: none; }
  .mainnav { margin-left: auto; }

  .mainnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    margin: 0;
    justify-content: space-around;
    gap: 0;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom));
    background: rgba(9, 24, 29, 0.98);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(14px);
  }

  .mainnav a {
    flex: 1 1 0;
    justify-content: center;
    padding: 7px 4px;
    font-size: 0.76rem;
    min-height: 44px;
    border-radius: 8px;
  }

  #view {
    padding: 16px 13px calc(96px + env(safe-area-inset-bottom));
  }

  .form-grid,
  .form-grid--3,
  .shot__grid { grid-template-columns: minmax(0, 1fr); }

  .page__head { align-items: flex-start; }
  .page__actions { width: 100%; }
  .page__actions .btn { flex: 1 1 auto; }

  .ws-head { padding: 15px; border-radius: var(--radius); }
  .ws-head__actions { width: 100%; }
  .ws-head__actions .btn { flex: 1 1 auto; }

  .action-grid { grid-template-columns: 1fr; }

  .task-dock {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }

  .savebar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .savebar .btn-row { width: 100%; }
  .savebar .btn { flex: 1 1 auto; }

  .add-shot { grid-template-columns: 1fr; }
  .add-shot .field:first-child { grid-column: auto; }
  .add-shot .btn { width: 100%; }

  .filters { grid-template-columns: 1fr; }

  .asset { gap: 10px; }
  .asset__thumb { width: 46px; height: 46px; }

  .data-table thead { display: none; }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; width: 100%; }
  .data-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }
  .data-table td::before {
    content: attr(data-label);
    color: var(--faint);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    flex: 0 0 auto;
  }
  .data-table .cell-actions { justify-content: flex-end; }
  .data-table .cell-actions::before { content: ""; }

  .project-grid { grid-template-columns: 1fr; }

  .modal {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
  }
  .modal__panel { max-height: calc(100dvh - 20px); }
}

@media (max-width: 430px) {
  .brand__text { display: none; }
  .login__card { padding: 26px 20px 22px; }
  .card__body { padding: 15px; }
  .card__head { padding: 14px 15px; }
}

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

@media (prefers-contrast: more) {
  :root {
    --border: #3b6670;
    --border-strong: #4d7d87;
    --muted: #b9cdd0;
  }
}
