:root {
  color-scheme: light;
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #172529;
  background: #f4f6f6;
  --accent: #124f5b;
  --line: #dce4e5;
  --muted: #516468;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, input, textarea { border: 1px solid #b8c6c9; border-radius: 7px; background: white; color: inherit; }
button { min-height: 42px; padding: 8px 15px; cursor: pointer; font-weight: 600; }
button:hover:enabled { background: #edf2f2; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: white; }
button.primary:hover:enabled { background: #0d3f49; }
:focus-visible { outline: 2px solid #276b7a; outline-offset: 3px; }
input, textarea { min-height: 44px; width: 100%; padding: 9px 11px; }
textarea { resize: vertical; }
label { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; min-width: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -.035em; }
h2 { font-size: 1.05rem; }
p { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.28rem; font-weight: 750; letter-spacing: -.035em; }
.mark { position: relative; display: inline-block; width: 28px; height: 21px; border: 2px solid var(--accent); border-radius: 4px; }
.mark::before { content: ''; position: absolute; inset: 5px auto auto 4px; width: 5px; height: 7px; background: var(--accent); border-radius: 2px; }
.mark::after { content: ''; position: absolute; inset: 5px 4px auto auto; width: 8px; height: 2px; background: var(--accent); box-shadow: 0 5px var(--accent); }
.shell { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: 100dvh; }
aside { display: flex; flex-direction: column; gap: 35px; padding: 28px 16px 20px; background: #fbfcfc; border-right: 1px solid var(--line); }
aside .brand { padding-inline: 10px; }
nav { display: grid; gap: 4px; }
nav button { text-align: left; border-color: transparent; background: transparent; font-size: .93rem; }
nav [aria-current="page"] { background: #e8eeee; color: #143d44; }
.account { display: grid; gap: 5px; margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.account button { margin-top: 8px; }
small, .hint { color: var(--muted); font-size: .88rem; }
.canvas { width: 100%; max-width: 1440px; padding: 36px clamp(20px, 4vw, 58px); }
header { margin-bottom: 25px; }
header p { margin-top: 8px; }
.split, .providers { display: grid; gap: 18px; align-items: start; }
.split { grid-template-columns: minmax(250px, 2fr) minmax(0, 3fr); }
.providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.card > h2, .card-head { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.card-head, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.card-head { justify-content: space-between; }
.inside { padding: 20px; display: grid; gap: 13px; }
.inside > button { justify-self: start; }
.notice { border: 1px solid #d4e4e5; background: #f2f8f8; color: #234c54; border-radius: 7px; padding: 10px 12px; overflow-wrap: anywhere; }
.feedback:empty, #logout-message:empty, #settings-status:empty { display: none; }
.feedback, .credential-state { font-size: .9rem; }
dl { margin: 0; }
dl > div { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f0; }
dt { color: var(--muted); font-size: .86rem; }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.missing { color: var(--muted); font-weight: 400; }
.batch-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.batch-inputs > p, .batch-inputs > .actions { grid-column: 1 / -1; }
.range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.results { margin-top: 18px; }
progress { width: 100%; height: 8px; accent-color: var(--accent); }
.table-frame { overflow: auto; max-height: 55vh; }
table { border-collapse: separate; border-spacing: 0; width: 100%; text-align: left; }
td, th { padding: 10px 13px; border-bottom: 1px solid #edf0f0; background: white; }
th { position: sticky; top: 0; z-index: 1; font-size: .8rem; white-space: nowrap; color: var(--muted); }
td { min-width: 110px; max-width: 250px; overflow-wrap: anywhere; font-size: .9rem; }
td:first-child, th:first-child { position: sticky; left: 0; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:first-child { z-index: 2; }
details { padding: 15px 20px; }
summary { cursor: pointer; }
.test { border-top: 1px solid var(--line); }
.access {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse at 4% 5%, #ccdee4, transparent 34%),
    radial-gradient(ellipse at 100% 100%, #c5e4e9, transparent 34%),
    #f4f7f8;
}
.access-card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 6vw, 36px);
  width: min(100%, 440px);
  border-radius: 24px;
  box-shadow: 0 22px 56px #1725291c;
}
.access-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: white;
  background: var(--accent);
}
.access-emblem svg { width: 25px; }
.access-intro { margin: 11px 0 8px; }
.access-intro p { margin-top: 7px; font-size: .93rem; }
.access-card input {
  min-height: 48px;
  padding-inline: 13px;
  background: #f1f5f6;
  border-color: #e1e9eb;
  border-radius: 11px;
  font-weight: 400;
}
.access-card input::placeholder { color: #5b6e73; }
.access-pin { display: grid; gap: 6px; }
.access-pin-field { position: relative; }
.access-pin-field input { padding-right: 49px; }
#pin-toggle {
  position: absolute;
  inset: 2px 2px 2px auto;
  width: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
}
#pin-toggle svg { width: 18px; }
#pin-toggle[aria-pressed="false"] .pin-slash { display: none; }
.access-submit { min-height: 48px; border-radius: 11px; }
.access-footer { text-align: center; font-size: .85rem; margin-top: 4px; }
.access-card .feedback { color: #842e29; }
@media (max-width: 950px) {
  .shell { display: block; }
  aside { gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  nav { display: flex; flex-wrap: wrap; }
  .account { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 0; padding: 8px 0 0; }
  .account button { margin: 0 0 0 auto; }
  .canvas { padding: 24px 16px; }
}
@media (max-width: 650px) {
  .split, .providers, .batch-inputs { grid-template-columns: minmax(0, 1fr); }
  .inside, .card-head, .card > h2 { padding: 14px; }
  button { min-height: 44px; }
  h1 { font-size: 1.5rem; }
}
