:root {
  --radius: 10px;
  --radius-sm: 6px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --shadow: none;
  --focus: 0 0 0 2px color-mix(in srgb, var(--brass) 45%, transparent);
  --bg: #0c0c0b;
  --panel: #141413;
  --elev: #1a1a18;
  --text: #f1ece4;
  --muted: #9a948a;
  --accent: #c4b49a;
  --brass: #c4b49a;
  --ok: #8fbfa0;
  --bad: #d9897a;
  --warn: #c9a56a;
  --line: #2a2926;
  --font: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sidebar-w: 16rem;
  --ink: #12110f;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3efe6;
  --panel: #fffcf7;
  --elev: #ffffff;
  --text: #1a1916;
  --muted: #6e6960;
  --accent: #8a7048;
  --brass: #8a7048;
  --ok: #2f6d4a;
  --bad: #b54a3c;
  --warn: #9a7040;
  --line: #ddd6c8;
  --ink: #f4f1ea;
  --focus: 0 0 0 2px color-mix(in srgb, var(--brass) 35%, transparent);
}
html[data-theme="light"] .help-code,
html[data-theme="light"] .secret-once,
html[data-theme="light"] .i18n-table textarea {
  background: var(--elev);
  color: var(--text);
}
html[data-theme="light"] .login-body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--brass) 14%, transparent), transparent 55%),
    var(--bg);
}
html[data-theme="light"] select,
html[data-theme="light"] input,
html[data-theme="light"] textarea {
  color-scheme: light;
  background-color: var(--elev);
  color: var(--text);
}
html[data-theme="light"] select option {
  background-color: #fffcf7;
  color: #1a1916;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--text); text-decoration: none; }
code, .mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }

/* —— App shell: topbar + nested left nav + breadcrumbs —— */
body.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 72%, var(--panel));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
}
.app-topbar--platform { border-top: 1px solid var(--brass); }
.app-topbar-brand {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.app-topbar-brand .plane-eyebrow { margin: 0; }
.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  flex-shrink: 0;
}
.app-topbar-actions .logout { margin: 0; }
.app-topbar-actions .logout button {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}
.lang-switch a.active { color: var(--text); font-weight: 600; }
.theme-switch { color: var(--muted); font-size: 0.8rem; }
.theme-switch a { color: var(--muted); }
.theme-switch a.active { color: var(--text); font-weight: 600; }

.app-frame {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 3.15rem;
  align-self: flex-start;
  height: calc(100vh - 3.15rem);
  overflow-y: auto;
}
.nav-tree {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.85rem 0.55rem 1.4rem;
}
a.nav-leaf {
  display: flex;
  align-items: center;
  color: var(--muted);
  padding: 0.48rem 0.7rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.3;
}
a.nav-leaf:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  text-decoration: none;
}
a.nav-leaf.is-current {
  color: var(--text);
  background: var(--elev);
  box-shadow: inset 2px 0 0 var(--brass);
  font-weight: 600;
  text-decoration: none;
}
.nav-branch {
  border-radius: 10px;
}
.nav-branch > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  color: var(--muted);
  padding: 0.48rem 0.55rem;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-branch > summary::-webkit-details-marker { display: none; }
.nav-branch > summary::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  flex-shrink: 0;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.75;
  transition: transform 0.15s ease;
}
.nav-branch[open] > summary::before { transform: rotate(45deg); }
.nav-branch > summary:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.nav-branch[open] > summary { color: var(--text); }
.nav-kids {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  margin: 0.12rem 0 0.35rem 0.72rem;
  padding: 0.12rem 0 0.12rem 0.55rem;
  border-left: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}
.nav-kids a {
  display: block;
  color: var(--muted);
  padding: 0.36rem 0.6rem;
  border-radius: 7px;
  font-size: 0.86rem;
  line-height: 1.3;
}
.nav-kids a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  text-decoration: none;
}
.nav-kids a.is-current {
  color: var(--text);
  background: var(--elev);
  box-shadow: inset 2px 0 0 var(--brass);
  font-weight: 600;
  text-decoration: none;
}

.app-main {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
}

.crumbs {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
  padding: 0.12rem 0.15rem;
}
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}
.crumbs-sep { opacity: 0.45; font-size: 0.95em; }

.app-main > .wrap {
  max-width: 1100px;
  width: 100%;
  padding-top: 1.25rem;
}

@media (max-width: 860px) {
  .app-frame { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-tree { padding: 0.65rem 0.75rem 0.85rem; }
  .nav-branch { min-width: 11rem; }
  .crumbs { padding: 0.75rem 1rem 0; }
}

/* Legacy top bar (cabinet / home / login) */
.top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top.top--platform { border-top: 1px solid var(--brass); }
.nav-group { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: 0.75rem; }
.nav-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.85;
}
.stack { display: flex; flex-direction: column; gap: 0.65rem; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.ops-links {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.ops-links a { color: var(--muted); }
.ops-links a:hover { color: var(--text); }
.secret-once {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  user-select: all;
}
.meter {
  height: 4px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.35rem 0;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--brass);
}
.meter.is-soft > span { background: var(--warn); }
.meter.is-full > span { background: var(--bad); }
.status-soft { color: #e0a54c; font-weight: 600; font-size: 0.85rem; }
.plane-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
.support-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1.5rem;
  background: #3a2210;
  border-bottom: 1px solid #8a5a20;
  color: #ffd9a8;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.support-banner strong { color: #ffb454; letter-spacing: 0.04em; }
.support-banner code { color: #fff; }
.brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  font-style: italic;
}
.top nav { display: flex; gap: 1rem; flex: 1; flex-wrap: wrap; }
.top nav a { color: var(--muted); }
.top nav a.active, .top nav a:hover { color: var(--text); text-decoration: none; }
.logout { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.user { color: var(--muted); font-size: 0.9rem; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

h1 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h2 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { color: var(--muted); margin-bottom: 1.75rem; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.big { font-size: 2rem; font-weight: 700; margin: 0.25rem 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
th, td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
tr:last-child td { border-bottom: 0; }

button, .btn-primary, .btn-link {
  background: var(--text);
  color: var(--ink);
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 0.95rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}
button.btn-secondary, .btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.btn-danger, .btn-danger {
  background: transparent;
  color: var(--bad);
  border: 1px solid var(--bad);
}
button.btn-danger:hover, .btn-danger:hover {
  background: rgba(255, 107, 107, 0.12);
}
.btn-link { display: inline-block; text-decoration: none; font-size: 0.85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.actions form { margin: 0; }

.tag {
  display: inline-block;
  background: #2a4a3a;
  color: #9dffc8;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
}
.ok { color: var(--ok); font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }
.flash {
  background: var(--elev);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.flash-error {
  background: #3a1c1c;
  border-color: #a03d3d;
  color: #ffd0d0;
}
label.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  color: var(--text);
}
label.check input { width: auto; }

.help-panel {
  background: #152028;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1.1rem 1.1rem;
  margin-bottom: 1.25rem;
  max-width: 72ch;
}
.help-panel > summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--text);
  list-style: none;
}
.help-panel > summary::-webkit-details-marker { display: none; }
.help-panel > summary::before {
  content: "▸ ";
  color: var(--muted);
}
.help-panel[open] > summary::before { content: "▾ "; }
.help-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}
.help-steps li { margin-bottom: 0.55rem; }
.help-steps a { color: var(--brass); }
.help-code {
  margin-top: 0.75rem;
  background: #0f1419;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  overflow-x: auto;
  font-size: 0.82rem;
  color: #cfe3f5;
}
.secret-box {
  background: #2a2410;
  border: 1px solid #8a7020;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.secret-box pre {
  white-space: pre-wrap;
  word-break: break-all;
  background: #12100a;
  padding: 0.75rem;
  border-radius: 8px;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
  max-width: 520px;
}
label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.9rem; }
input, select, textarea {
  background-color: var(--elev, var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-family: var(--font);
  color-scheme: inherit;
  accent-color: var(--brass);
}
select option {
  background-color: var(--panel);
  color: var(--text);
}
.hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.75rem; }

.feed { list-style: none; padding: 0; margin: 0; }
.feed li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--brass) 8%, transparent), transparent 60%),
    var(--bg);
}
.login-card {
  width: min(420px, 92vw);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.75rem 1.75rem;
  display: grid;
  gap: 0.9rem;
}
.login-card h1 {
  margin: 0;
  font-size: 2.15rem;
}
.err { color: var(--bad); margin: 0; }

.challenge {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.big-num {
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--brass);
  font-family: var(--mono);
}

.inline-type { margin: 0; }
.inline-type select {
  padding: 0.35rem 0.5rem;
}
.confirm-img {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0.5rem 0 1rem;
  background: #0f1419;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
}
.img-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0;
}
.img-opt {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f1419;
  cursor: pointer;
}
.img-opt input { accent-color: var(--accent); }
.img-opt img { width: 72px; height: 72px; }
.img-opt:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.device-pick {
  display: grid;
  gap: 0.35rem;
  max-width: 360px;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.enroll-qr-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 1rem 0;
}
.enroll-qr-box canvas {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--line);
}
.enroll-qr-meta {
  flex: 1;
  min-width: 220px;
}

.wizard {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.wizard-step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.wizard-step--done {
  border-color: #2f5d3a;
}
.wizard-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--elev);
  color: var(--brass);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.wizard-step--done .wizard-num {
  background: #25402c;
  color: #b6f0c4;
}
.wizard-body { flex: 1; min-width: 0; }
.wizard-body h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.status-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.status-pill--ok {
  border-color: #2f5d3a;
  color: #b6f0c4;
  background: #152018;
}
.status-pill--bad {
  border-color: #8a5530;
  color: #ffd9a8;
  background: #2a2014;
}

.choice-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.choice-opt {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f1419;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.choice-opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice-opt:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.branding-form {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
  max-width: 280px;
}
.branding-thumb {
  width: 64px;
  height: 64px;
  max-width: 120px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: block;
}
.branding-thumb--lg {
  width: 96px;
  height: 96px;
  max-width: 120px;
  max-height: 120px;
}
.branding-thumb-wrap { display: inline-block; line-height: 0; }
.inst-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 280px;
}
.branding-preview {
  width: 56px;
  height: 56px;
  max-width: 120px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
  display: block;
}
.branding-preview--empty {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #8a93a0;
  background: #141a22;
}





/* Design system — progress / setup / lang */
.progress-strip { display:flex; gap:var(--space-3); flex-wrap:wrap; margin:1rem 0 1.5rem; }
.progress-pill { padding:.35rem .7rem; border-radius:999px; border:1px solid var(--line); color:var(--muted); font-size:.85rem; }
.progress-pill.is-ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); color:var(--ok); }
.lang-switch { color:var(--muted); font-size:.8rem; margin-left:.5rem; }
.lang-switch a { color:var(--muted); }
.setup .brand-hero { font-size:1.6rem; font-weight:700; letter-spacing:.04em; margin:0 0 .25rem; }
.setup-steps { display:flex; flex-wrap:wrap; gap:.5rem; list-style:none; padding:0; color:var(--muted); font-size:.8rem; }
.setup-steps .wizard-step--done { color:var(--ok); }
.flash-bad { border-color:#8a3030; background:#2a1414; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:none; box-shadow:var(--focus); }
.card { border-radius: var(--radius); }

/* Platform SaaS settings + i18n catalog */
.wrap--wide { max-width: 1100px; }
.setting-group {
  margin: 1.5rem 0 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.setting-group h2 { margin: 0 0 0.35rem; }
.setting-desc {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.25rem 0 0.65rem;
  max-width: 70ch;
  line-height: 1.4;
}
.setting-ro { margin: 0; }
.setting-ro > div {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.setting-ro dt { color: var(--muted); font-size: 0.85rem; }
.setting-ro dd { margin: 0; }
.i18n-table { width: 100%; table-layout: fixed; }
.i18n-table th:first-child, .i18n-table td:first-child { width: 18rem; }
.i18n-table th:last-child, .i18n-table td:last-child { width: 6rem; }
.i18n-table textarea {
  width: 100%;
  min-height: 2.75rem;
  resize: vertical;
  font: inherit;
  background: #0b1016;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
}
.i18n-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0; }

.table-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0.45rem;
}
.table-search {
  flex: 1;
  min-width: 12rem;
  max-width: 28rem;
}
.table-filters input {
  width: 100%;
  font-size: 0.78rem;
  padding: 0.35rem 0.45rem;
}
.anom-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.anom { margin-bottom: 0; }
.anom h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.anom-sev {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.anom--high { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.anom--med { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.anom--ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.anom--low { border-color: var(--line); }


