/* itcomplete – Oberfläche (v0.8.0)
   Zwei Aussehen pro Benutzer wählbar: A = hell und luftig, B = dunkle Seitenleiste.
   Akzentfarbe (blau, petrol, violett, orange) und hell/dunkel/automatisch über Attribute am <html>-Element:
   data-layout="a|b", data-accent="…", data-theme="hell|dunkel|auto". Keine Inline-Styles (Content-Security-Policy). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.f837d382a885.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.42b95430773b.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.75fb76ec3559.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.3714175d15f3.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400-normal.9159859e7aa8.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-ext-500-normal.656e8d21838c.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-ext-600-normal.8f9364515dfc.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-ext-700-normal.39b692b06219.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* --- Hell (Standard) --- */
:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #F2F4F7;
  --ink: #101828;
  --muted: #5D6B82;
  --line: #E4E7EC;
  --ok: #067647;
  --warn: #B54708;
  --crit: #B42318;
  --focus: #F79009;
  --tape: #F3E7A9;
  --tape-edge: #D8C770;
  --cat-ort: #7A5C2E;
  --cat-hardware: #0E7C86;
  --cat-logisch: #5B3CC4;
  --vis-10: #067647;
  --vis-20: #2449A8;
  --vis-30: #5B3CC4;
  --vis-40: #B42318;
  --accent: #2449A8; --accent-ink: #FFFFFF; --accent-soft: #EAF0FC;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: none;
  --pad: 1.25rem;
  --cell: .7rem;
  --side-bg: #FFFFFF;
  --side-ink: #344054;
  --side-muted: #5D6B82;
  --side-hover: #F2F4F7;
  --side-active: var(--accent-soft);
  --side-active-ink: var(--accent);
  --side-line: #E4E7EC;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Noto Sans", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", "Consolas", "DejaVu Sans Mono", monospace;
  color-scheme: light;
}
:root[data-accent="petrol"] { --accent: #0E7C86; --accent-soft: #E3F4F5; }
:root[data-accent="violett"] { --accent: #5B3CC4; --accent-soft: #EFEBFB; }
:root[data-accent="orange"] { --accent: #C2410C; --accent-soft: #FDEEE6; }

/* --- Aussehen B: dunkle Seitenleiste, kompakter, Karten mit Schatten --- */
:root[data-layout="b"] {
  --bg: #EEF1F5;
  --line: #DDE2EA;
  --radius: 8px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 41, .07), 0 1px 1px rgba(15, 23, 41, .04);
  --pad: 1rem;
  --cell: .55rem;
  --side-bg: #0F1729;
  --side-ink: #C8D0DE;
  --side-muted: #8A96AD;
  --side-hover: #18233A;
  --side-active: #1E2A44;
  --side-active-ink: #FFFFFF;
  --side-line: #1E2A44;
}

/* --- Dunkel (fest oder automatisch nach Systemeinstellung) --- */
:root[data-theme="dunkel"] {
  --bg: #0E1420;
  --surface: #151D2B;
  --surface-2: #1B2536;
  --ink: #E6EBF2;
  --muted: #98A4B6;
  --line: #273246;
  --ok: #4FC48B;
  --warn: #F5B544;
  --crit: #F97066;
  --tape: #3B3622;
  --tape-edge: #5C5330;
  --cat-ort: #D2AD72;
  --cat-hardware: #5FC4CC;
  --cat-logisch: #A99BF0;
  --vis-10: #4FC48B;
  --vis-20: #7FA3F5;
  --vis-30: #A99BF0;
  --vis-40: #F97066;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --side-bg: #0B111B;
  --side-ink: #C8D0DE;
  --side-muted: #8A96AD;
  --side-hover: #18233A;
  --side-active: #1E2A44;
  --side-active-ink: #FFFFFF;
  --side-line: #1E2A44;
  color-scheme: dark;
  --accent: #7FA3F5; --accent-ink: #0B1220; --accent-soft: #1C2A4A;
}
:root[data-theme="dunkel"][data-accent="petrol"] { --accent: #4FC2CB; --accent-soft: #123538; }
:root[data-theme="dunkel"][data-accent="violett"] { --accent: #A99BF0; --accent-soft: #2A2350; }
:root[data-theme="dunkel"][data-accent="orange"] { --accent: #F7A063; --accent-soft: #432414; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0E1420;
    --surface: #151D2B;
    --surface-2: #1B2536;
    --ink: #E6EBF2;
    --muted: #98A4B6;
    --line: #273246;
    --ok: #4FC48B;
    --warn: #F5B544;
    --crit: #F97066;
    --tape: #3B3622;
    --tape-edge: #5C5330;
    --cat-ort: #D2AD72;
    --cat-hardware: #5FC4CC;
    --cat-logisch: #A99BF0;
    --vis-10: #4FC48B;
    --vis-20: #7FA3F5;
    --vis-30: #A99BF0;
    --vis-40: #F97066;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
    --side-bg: #0B111B;
    --side-ink: #C8D0DE;
    --side-muted: #8A96AD;
    --side-hover: #18233A;
    --side-active: #1E2A44;
    --side-active-ink: #FFFFFF;
    --side-line: #1E2A44;
    color-scheme: dark;
    --accent: #7FA3F5; --accent-ink: #0B1220; --accent-soft: #1C2A4A;
  }
  :root[data-theme="auto"][data-accent="petrol"] { --accent: #4FC2CB; --accent-soft: #123538; }
  :root[data-theme="auto"][data-accent="violett"] { --accent: #A99BF0; --accent-soft: #2A2350; }
  :root[data-theme="auto"][data-accent="orange"] { --accent: #F7A063; --accent-soft: #432414; }
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; font-weight: 600; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.mono, code, pre, kbd { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }

/* Layout */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--side-bg); color: var(--side-ink);
  border-right: 1px solid var(--side-line);
  padding: 1.25rem .85rem 1rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: .6rem; padding: 0 .45rem; text-decoration: none; color: var(--side-ink); }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-logo svg { width: 17px; height: 17px; stroke: #FFFFFF; }
.brand-mark { font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; color: var(--ink); }
:root[data-layout="b"] .brand-mark { color: #FFFFFF; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--side-muted); padding: .9rem .6rem .3rem; }
.nav a {
  display: flex; align-items: center; gap: .7rem; padding: .5rem .65rem; border-radius: 8px;
  color: var(--side-ink); text-decoration: none; font-weight: 500; font-size: .93rem;
}
.nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.nav a .nav-label { flex: 1; min-width: 0; }
.nav a:hover { background: var(--side-hover); }
.nav a[aria-current="page"] { background: var(--side-active); color: var(--side-active-ink); font-weight: 600; }
.nav a .badge { border: 0; font-weight: 700; font-size: .72rem; padding: .05rem .5rem; }
.nav a .badge.warn { background: #FEF0C7; color: #93370D; }
:root[data-layout="b"] .nav a .badge.warn { background: #F79009; color: #0F1729; }
.sidebar-foot { margin-top: auto; font-size: .82rem; color: var(--side-muted); padding: .9rem .5rem 0; border-top: 1px solid var(--side-line); display: grid; gap: .3rem; }
.sidebar-foot .who { display: flex; align-items: center; gap: .6rem; color: var(--side-ink); font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--side-hover); color: var(--side-ink); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sidebar-foot a, .sidebar-foot .linkbtn { color: var(--side-muted); }
.sidebar-foot form { display: inline; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .85rem 2rem; background: transparent;
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px);
}
:root[data-layout="b"] .topbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: .7rem 1.75rem; }
.topbar .spacer { flex: 1; }
.search { position: relative; flex: 1 1 320px; max-width: 560px; }
.search input { width: 100%; padding: .6rem .8rem .6rem 2.3rem; border-radius: var(--radius); background: var(--surface); }
:root[data-layout="b"] .search input { background: var(--surface-2); }
.search::before {
  content: ""; position: absolute; left: .85rem; top: 50%; width: .7rem; height: .7rem;
  border: 2px solid var(--muted); border-radius: 50%; transform: translateY(-60%);
}
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(10, 20, 40, .16); max-height: 70vh; overflow-y: auto; z-index: 20;
}
.search-results:empty { display: none; }
.search-group { padding: .5rem .85rem; border-top: 1px solid var(--line); }
.search-group:first-child { border-top: 0; }
.search-group h4 { margin: .2rem 0; font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.search-group a { display: block; padding: .25rem 0; text-decoration: none; }
.content { padding: .75rem 2rem 2.5rem; max-width: 1360px; width: 100%; }
:root[data-layout="b"] .content { padding-top: 1.5rem; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* Flächen */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.panel + .panel { margin-top: 1rem; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.panel-head h2 { margin: 0; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.stat a { text-decoration: none; color: inherit; }
.empty { color: var(--muted); padding: .5rem 0; }

/* Ortspfad im Stil von Beschriftungsband */
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-bottom: .5rem; }
.tape {
  display: inline-block; padding: .05rem .5rem; font-size: .85rem;
  background: var(--tape); border: 1px solid var(--tape-edge); border-radius: 2px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
a.tape:hover { border-color: var(--ink); }
.trail .sep { color: var(--muted); font-size: .8rem; }

/* Kennzeichnungen */
.badge {
  display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .8rem;
  border: 1px solid currentColor; line-height: 1.5; white-space: nowrap;
}
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.crit { color: var(--crit); }
.badge.muted { color: var(--muted); }
.vis { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; white-space: nowrap; }
.vis::before { content: ""; width: .55rem; height: .55rem; border-radius: 2px; background: currentColor; }
.vis-10 { color: var(--vis-10); }
.vis-20 { color: var(--vis-20); }
.vis-30 { color: var(--vis-30); }
.vis-40 { color: var(--vis-40); }
.type { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.type::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--cat-hardware); }
.type.cat-ort::before { background: var(--cat-ort); border-radius: 1px; }
.type.cat-logisch::before { background: var(--cat-logisch); transform: rotate(45deg); border-radius: 1px; }
.status-geplant { color: var(--muted); }
.status-wartung { color: var(--warn); }
.status-ausser_betrieb, .status-archiviert { color: var(--muted); text-decoration: line-through; }
.due { color: var(--crit); font-weight: 600; }
.soon { color: var(--warn); font-weight: 600; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; font-weight: 600; color: var(--muted); }
tbody tr:hover { background: var(--surface-2); }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }
dl.props { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: .35rem 1.25rem; margin: 0; }
dl.props dt { color: var(--muted); }
dl.props dd { margin: 0; word-break: break-word; }

/* Baum */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: .8rem; padding-left: .9rem; border-left: 1px solid var(--line); }
.tree li { padding: .15rem 0; }
.tree .node { display: inline-flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }

/* Formulare */
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .6rem; max-width: 100%;
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { width: 100%; }
textarea.editor { min-height: 28rem; line-height: 1.55; tab-size: 4; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .25rem; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input:not([type="checkbox"]), .field select { width: 100%; }
.field.check { flex-direction: row; align-items: center; gap: .5rem; }
.field.check label { font-weight: 500; order: 2; }
.field .help { font-size: .82rem; color: var(--muted); }
.field .error, .errorlist { color: var(--crit); font-size: .85rem; margin: 0; padding: 0; list-style: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--crit); }
.field ul:not(.errorlist) { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .2rem; }
.field ul:not(.errorlist) label { font-weight: 400; display: flex; gap: .4rem; align-items: center; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem 1rem; margin: 0 0 1rem; }
legend { padding: 0 .35rem; font-weight: 600; }
.form-actions { display: flex; gap: .6rem; align-items: center; margin-top: 1.25rem; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.filters .field { min-width: 150px; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }

/* Schaltflächen */
.btn {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: .45rem .9rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn.danger { background: transparent; color: var(--crit); border-color: var(--crit); }
.btn.small { padding: .2rem .55rem; font-size: .85rem; font-weight: 500; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }

/* Meldungen */
.messages { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.messages li { padding: .6rem .9rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); border-left: 4px solid var(--accent); }
.messages .error { border-left-color: var(--crit); }
.messages .warning { border-left-color: var(--warn); }
.notice { padding: .7rem .9rem; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid var(--warn); background: var(--surface); margin-bottom: 1rem; }
.notice.crit { border-left-color: var(--crit); }

/* Doku */
.doc { max-width: 78ch; }
.doc h1 { font-size: 1.5rem; margin-top: 1.5rem; }
.doc h1:first-child { margin-top: 0; }
.doc h2 { font-size: 1.2rem; margin-top: 1.5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); }
.doc h3 { margin-top: 1.2rem; }
.doc table { margin: .75rem 0; }
.doc pre { background: var(--surface-2); padding: .75rem; border-radius: var(--radius); overflow-x: auto; }
.doc code { background: var(--surface-2); padding: .05rem .3rem; border-radius: 3px; }
.doc pre code { background: none; padding: 0; }
.doc blockquote { margin: .75rem 0; padding: .2rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.diff { font-family: var(--mono); font-size: .88rem; white-space: pre-wrap; margin: 0; }
.diff div { padding: 0 .5rem; }
.diff .add { background: color-mix(in srgb, var(--ok) 16%, transparent); }
.diff .del { background: color-mix(in srgb, var(--crit) 16%, transparent); }
.diff .hunk { color: var(--muted); margin-top: .5rem; }
.editor-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.preview { border: 1px dashed var(--line); border-radius: var(--radius); padding: .75rem 1rem; min-height: 28rem; overflow-y: auto; }

/* Anmeldung */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box .brand { padding: 0; margin-bottom: 1.25rem; }
.auth-box .panel { padding: 1.5rem; }
.auth-box .field input { width: 100%; }
.qr { background: #fff; padding: .5rem; border-radius: var(--radius); display: inline-block; }

.pagination { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; }
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-group { display: none; }
  .sidebar-foot { margin-top: 0; }
  .grid-2, .grid-3, .grid-main, .form-grid, .editor-wrap { grid-template-columns: 1fr; }
  .topbar { position: static; padding: .6rem 1rem; }
  .content { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .sidebar, .topbar, .actions, .form-actions, .no-print { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .panel { border: 0; padding: 0; }
}

/* Hilfsklassen (keine Inline-Styles wegen Content-Security-Policy) */
.mt { margin-top: 1rem; }
.narrow { max-width: 640px; }
.medium { max-width: 920px; }
.spacer { flex: 1; }
hr.sep-line { border: 0; border-top: 1px solid var(--line); margin: .6rem 0; }
.type-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .3rem .75rem; }
.choice { display: flex; align-items: center; gap: .45rem; padding: .25rem 0; cursor: pointer; }

/* Tickets */
.prio { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; white-space: nowrap; }
.prio::before { content: ""; width: .5rem; height: .9rem; border-radius: 1px; background: var(--muted); }
.prio-kritisch { color: var(--crit); font-weight: 600; }
.prio-kritisch::before { background: var(--crit); }
.prio-hoch { color: var(--warn); }
.prio-hoch::before { background: var(--warn); }
.prio-normal::before { background: var(--accent); }
.prio-niedrig { color: var(--muted); }
.sla { font-size: .85rem; white-space: nowrap; }
.sla-breached { color: var(--crit); font-weight: 600; }
.sla-warn { color: var(--warn); font-weight: 600; }
.sla-paused, .sla-done { color: var(--muted); }
.ticket-no { font-family: var(--mono); font-size: .88em; color: var(--muted); white-space: nowrap; }
.views { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: .75rem; }
.views a { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; background: var(--surface); }
.views a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.meta-line { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; }

.timeline { display: flex; flex-direction: column; gap: .75rem; }
.entry { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.entry-head { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .45rem .8rem; border-bottom: 1px solid var(--line); font-size: .87rem; }
.entry-body { padding: .7rem .8rem; white-space: pre-wrap; word-break: break-word; }
.entry.in { border-left: 4px solid var(--vis-20); }
.entry.out { border-left: 4px solid var(--ok); }
.entry.note { border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.entry.system, .entry.time { border: 0; background: none; }
.entry.system .entry-body, .entry.time .entry-body { padding: 0 .8rem; color: var(--muted); font-size: .87rem; white-space: normal; }
.entry.time .entry-body::before { content: "◷ "; }
.entry .attachments { padding: 0 .8rem .6rem; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .87rem; }
.compose { display: grid; gap: .6rem; }
.compose textarea { min-height: 8rem; }
.related-item { padding: .35rem 0; border-top: 1px solid var(--line); }
.related-item:first-child { border-top: 0; }
.reasons { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.reason { font-size: .78rem; padding: 0 .4rem; border-radius: 3px; background: var(--accent-soft); }
.side-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .35rem; }
.timer { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--crit) 12%, transparent); color: var(--crit); font-weight: 600; font-size: .88rem; }
.mail-preview { white-space: pre-wrap; font-size: .9rem; max-height: 22rem; overflow-y: auto; background: var(--surface-2); padding: .6rem .8rem; border-radius: var(--radius); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 .3rem; }
.day-head h3 { margin: 0; }
.weekend { opacity: .75; }
.bar { height: .5rem; background: var(--accent-soft); border-radius: 999px; overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; background: var(--accent); }
details.inline > summary { cursor: pointer; color: var(--accent); }
details.inline[open] > summary { margin-bottom: .6rem; }

/* Balkenbreiten ohne Inline-Styles */
.bar .w0 { width: 0%; }
.bar .w1 { width: 1%; }
.bar .w2 { width: 2%; }
.bar .w3 { width: 3%; }
.bar .w4 { width: 4%; }
.bar .w5 { width: 5%; }
.bar .w6 { width: 6%; }
.bar .w7 { width: 7%; }
.bar .w8 { width: 8%; }
.bar .w9 { width: 9%; }
.bar .w10 { width: 10%; }
.bar .w11 { width: 11%; }
.bar .w12 { width: 12%; }
.bar .w13 { width: 13%; }
.bar .w14 { width: 14%; }
.bar .w15 { width: 15%; }
.bar .w16 { width: 16%; }
.bar .w17 { width: 17%; }
.bar .w18 { width: 18%; }
.bar .w19 { width: 19%; }
.bar .w20 { width: 20%; }
.bar .w21 { width: 21%; }
.bar .w22 { width: 22%; }
.bar .w23 { width: 23%; }
.bar .w24 { width: 24%; }
.bar .w25 { width: 25%; }
.bar .w26 { width: 26%; }
.bar .w27 { width: 27%; }
.bar .w28 { width: 28%; }
.bar .w29 { width: 29%; }
.bar .w30 { width: 30%; }
.bar .w31 { width: 31%; }
.bar .w32 { width: 32%; }
.bar .w33 { width: 33%; }
.bar .w34 { width: 34%; }
.bar .w35 { width: 35%; }
.bar .w36 { width: 36%; }
.bar .w37 { width: 37%; }
.bar .w38 { width: 38%; }
.bar .w39 { width: 39%; }
.bar .w40 { width: 40%; }
.bar .w41 { width: 41%; }
.bar .w42 { width: 42%; }
.bar .w43 { width: 43%; }
.bar .w44 { width: 44%; }
.bar .w45 { width: 45%; }
.bar .w46 { width: 46%; }
.bar .w47 { width: 47%; }
.bar .w48 { width: 48%; }
.bar .w49 { width: 49%; }
.bar .w50 { width: 50%; }
.bar .w51 { width: 51%; }
.bar .w52 { width: 52%; }
.bar .w53 { width: 53%; }
.bar .w54 { width: 54%; }
.bar .w55 { width: 55%; }
.bar .w56 { width: 56%; }
.bar .w57 { width: 57%; }
.bar .w58 { width: 58%; }
.bar .w59 { width: 59%; }
.bar .w60 { width: 60%; }
.bar .w61 { width: 61%; }
.bar .w62 { width: 62%; }
.bar .w63 { width: 63%; }
.bar .w64 { width: 64%; }
.bar .w65 { width: 65%; }
.bar .w66 { width: 66%; }
.bar .w67 { width: 67%; }
.bar .w68 { width: 68%; }
.bar .w69 { width: 69%; }
.bar .w70 { width: 70%; }
.bar .w71 { width: 71%; }
.bar .w72 { width: 72%; }
.bar .w73 { width: 73%; }
.bar .w74 { width: 74%; }
.bar .w75 { width: 75%; }
.bar .w76 { width: 76%; }
.bar .w77 { width: 77%; }
.bar .w78 { width: 78%; }
.bar .w79 { width: 79%; }
.bar .w80 { width: 80%; }
.bar .w81 { width: 81%; }
.bar .w82 { width: 82%; }
.bar .w83 { width: 83%; }
.bar .w84 { width: 84%; }
.bar .w85 { width: 85%; }
.bar .w86 { width: 86%; }
.bar .w87 { width: 87%; }
.bar .w88 { width: 88%; }
.bar .w89 { width: 89%; }
.bar .w90 { width: 90%; }
.bar .w91 { width: 91%; }
.bar .w92 { width: 92%; }
.bar .w93 { width: 93%; }
.bar .w94 { width: 94%; }
.bar .w95 { width: 95%; }
.bar .w96 { width: 96%; }
.bar .w97 { width: 97%; }
.bar .w98 { width: 98%; }
.bar .w99 { width: 99%; }
.bar .w100 { width: 100%; }

/* Paket 4: Projekte und Changes */
.panel h3 { font-size: .95rem; margin: 1rem 0 .35rem; }
.state { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); white-space: nowrap; }
.state-genehmigung { color: var(--warn); border-color: currentColor; }
.state-genehmigt, .state-geplant { color: var(--accent); border-color: currentColor; }
.state-umsetzung { color: var(--accent); border-color: currentColor; font-weight: 600; }
.state-abgeschlossen { color: var(--ok); border-color: currentColor; }
.state-fehlgeschlagen, .state-abgelehnt { color: var(--crit); border-color: currentColor; }
.state-entwurf { color: var(--muted); }
.gantt { display: block; max-width: none; font-size: 12px; }
.gantt text { fill: var(--ink); }
.gantt .gantt-tick { fill: var(--muted); font-size: 11px; }
.gantt .gantt-ms-label { font-style: italic; }
.gantt-grid { stroke: var(--line); stroke-width: 1; }
.gantt-today { stroke: var(--crit); stroke-width: 1.5; stroke-dasharray: 4 3; }
.gantt-bar { fill: var(--muted); opacity: .55; }
.gantt-bar.gantt-in_arbeit { fill: var(--accent); opacity: 1; }
.gantt-bar.gantt-erledigt { fill: var(--ok); opacity: .8; }
.gantt-ms { fill: var(--warn); }
.gantt-ms.gantt-ms-erreicht { fill: var(--ok); }
table.budget td:last-child { min-width: 140px; }
.bar.bar-warn span { background: var(--warn); }
.bar.bar-crit span { background: var(--crit); }
.quota .bar { margin: .25rem 0; }
.kind-dep { display: contents; }
.kind-dep[hidden] { display: none; }
p.kind-dep { display: block; }
fieldset.checks { border: 0; padding: 0; margin: 0; }
fieldset.checks legend { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; padding: 0; }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .25rem 1rem; }
.check-item { display: flex; align-items: center; gap: .4rem; font-weight: normal; }
.field[hidden] { display: none; }

/* Nächste Aktion: grün = später, gelb = in den nächsten 2 Stunden, rot = fällig/überfällig */
.due-pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.due-ok { background: #E3F4EA; color: #05603A; border-color: #A6DDBD; }
.due-soon { background: #FEF3C7; color: #8A4B05; border-color: #F5D27A; }
.due-over { background: #FEE4E2; color: #A01A12; border-color: #F7B4AE; }
.due-none { color: var(--muted); }
.due-ok, .due-soon, .due-over { }
:root[data-theme="dunkel"] .due-ok { background: #0E3B26; color: #8EE0B2; border-color: #1C6B45; }
:root[data-theme="dunkel"] .due-soon { background: #43320A; color: #F9D77E; border-color: #7A5A12; }
:root[data-theme="dunkel"] .due-over { background: #4A1512; color: #FDA29B; border-color: #8A2A22; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .due-ok { background: #0E3B26; color: #8EE0B2; border-color: #1C6B45; }
  :root[data-theme="auto"] .due-soon { background: #43320A; color: #F9D77E; border-color: #7A5A12; }
  :root[data-theme="auto"] .due-over { background: #4A1512; color: #FDA29B; border-color: #8A2A22; }
}

tr.attention td:first-child a { font-weight: 700; }
.activity-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 999px; background: var(--accent); margin-right: .35rem; vertical-align: middle; }
.activity-text { color: var(--accent); font-weight: 600; }
.next-action { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.next-action .field { margin: 0; }
.quick-dates { display: flex; flex-wrap: wrap; gap: .35rem; }
.assign-select { min-width: 14rem; }
.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; }

/* Ressourcen-Explorer */
.explorer { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .explorer { grid-template-columns: 1fr; } }
.xside { max-height: 75vh; overflow: auto; padding: .75rem; }
.xsearch input { width: 100%; margin-bottom: .6rem; }
.xhead { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: .8rem 0 .3rem; }
.xtree, .xtree ul, .xlist { list-style: none; margin: 0; padding: 0; }
.xtree ul { padding-left: 1rem; border-left: 1px solid var(--line); margin-left: .55rem; }
.xnode { display: flex; align-items: baseline; gap: .4rem; padding: .3rem .5rem; border-radius: 6px; text-decoration: none; color: inherit; }
.xnode a { color: inherit; text-decoration: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xnode:hover { background: var(--accent-soft); }
.xnode.active { background: var(--accent-soft); font-weight: 600; }
.xnode.xroot { margin-top: .4rem; font-weight: 600; }
.xmeta { font-size: .75rem; color: var(--muted); white-space: nowrap; margin-left: auto; }
.xnode.drop-ok { outline: 2px dashed var(--accent); background: var(--accent-soft); }
tr[draggable="true"] { cursor: grab; }
tr.dragging, .xnode a.dragging { opacity: .5; }
.xactions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .75rem; }
.xactions select { max-width: 22rem; }
.xsep { width: 1px; height: 1.5rem; background: var(--line); margin: 0 .25rem; }
.xcrumbs { margin-bottom: .35rem; }
.xlicense { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.wide-select { width: 100%; }
a.stat-link { display: block; text-decoration: none; color: inherit; }
a.stat-link:hover { border-color: var(--accent); }


/* ===== Moderne Bauteile (v0.8.0) – überschreiben die Grundformen oben ===== */
html { font-size: 15px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.005em; }
.page-head { margin-bottom: 1.4rem; align-items: center; }
.page-head h1 { margin-bottom: .2rem; }

.panel { border-radius: var(--radius-lg); padding: var(--pad); box-shadow: var(--shadow); }
:root[data-layout="b"] .panel { border-color: transparent; }
.panel + .panel { margin-top: 1.1rem; }
.grid { gap: 1.1rem; }

.btn { padding: .55rem 1rem; border-radius: var(--radius); font-weight: 600; transition: filter .15s, background .15s, border-color .15s; }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--muted); background: var(--surface-2); }
.btn.danger { background: var(--surface); }
.btn.small { padding: .3rem .65rem; border-radius: calc(var(--radius) - 2px); }

input, select, textarea { border-radius: var(--radius); padding: .55rem .7rem; border-color: var(--line); }
:root[data-theme="dunkel"] input, :root[data-theme="dunkel"] select, :root[data-theme="dunkel"] textarea { background: var(--surface-2); }
fieldset { border-radius: var(--radius-lg); background: var(--surface); }

th, td { padding: var(--cell) .75rem; border-bottom-color: var(--line); }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .045em; color: var(--muted); font-weight: 600; }
:root[data-layout="b"] thead th { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.panel.table-wrap { padding: 0; overflow: hidden; }
.panel.table-wrap table { margin: 0; }
.panel.table-wrap th:first-child, .panel.table-wrap td:first-child { padding-left: 1.25rem; }
.panel.table-wrap th:last-child, .panel.table-wrap td:last-child { padding-right: 1.25rem; }
.panel.table-wrap .pagination { padding: 0 1.25rem 1rem; }

.badge { border: 0; font-weight: 600; font-size: .75rem; padding: .15rem .6rem; }
.badge.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); }
.badge.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badge.crit { background: color-mix(in srgb, var(--crit) 13%, transparent); }
.badge.muted { background: var(--surface-2); }

.views { gap: .4rem; margin-bottom: 1rem; }
.views a { padding: .4rem .85rem; font-weight: 500; border-color: var(--line); background: var(--surface); }
.views a .badge { margin-left: .2rem; }
:root[data-layout="b"] .views a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.messages li, .notice { border-radius: var(--radius); border: 1px solid var(--line); border-left-width: 4px; box-shadow: var(--shadow); }

.stat { gap: .25rem; }
.stat strong { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.tape { border-radius: 4px; }
.bar { height: .5rem; }
.entry { border-radius: var(--radius); }

/* Kopfzeile: Benutzer, Schnellaktionen */
.top-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.greeting { color: var(--muted); font-size: .9rem; }

/* Darstellung wählen */
.appearance { display: grid; gap: 1.25rem; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.choice-card { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: .9rem; display: grid; gap: .6rem; cursor: pointer; background: var(--surface); }
.choice-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice-card input { accent-color: var(--accent); }
.choice-card .title { font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.mini { display: grid; grid-template-columns: 26% 1fr; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.mini .side { background: #FFFFFF; border-right: 1px solid #E4E7EC; }
.mini .body { background: #F6F7F9; padding: 8px; display: grid; gap: 6px; align-content: start; }
.mini .body i { display: block; height: 10px; border-radius: 3px; background: #FFFFFF; border: 1px solid #E4E7EC; }
.mini .body i:first-child { width: 55%; background: #D0D5DD; border: 0; }
.mini.b .side { background: #0F1729; border-right: 0; }
.mini.b .body { background: #EEF1F5; }
.mini.b .body i { border: 0; box-shadow: 0 1px 2px rgba(15, 23, 41, .12); }
.mini.dark .side { background: #0B111B; border-color: #1E2A44; }
.mini.dark .body { background: #0E1420; }
.mini.dark .body i { background: #151D2B; border-color: #273246; }
.swatches { display: flex; gap: .75rem; flex-wrap: wrap; }
.swatch { display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem .45rem .5rem; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--surface); }
.swatch:has(input:checked) { border-color: var(--ink); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .dot { width: 22px; height: 22px; border-radius: 999px; }
.dot-blau { background: #2449A8; } .dot-petrol { background: #0E7C86; } .dot-violett { background: #5B3CC4; } .dot-orange { background: #C2410C; }

@media (max-width: 900px) {
  .topbar, :root[data-layout="b"] .topbar { padding: .6rem 1rem; }
  .content, :root[data-layout="b"] .content { padding: 1rem; }
  .nav a { padding: .4rem .55rem; }
  .nav a svg { display: none; }
}
@media print {
  :root { --bg: #FFFFFF; --shadow: none; }
}
:root[data-layout="a"] .nav-group.soft { display: none; }
:root[data-layout="a"] .nav-group.soft + a { margin-top: 0; }
.nav a .badge.crit { background: var(--crit); color: #FFFFFF; }
.portal-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.portal-top .brand { padding: 0; }
.auth-box .brand { color: var(--ink); }
.auth-box .panel { box-shadow: 0 8px 30px rgba(16, 24, 40, .08); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-tickets .stat a { display: flex; flex-direction: column; gap: .35rem; }
.dash-tickets .stat .muted { font-size: .85rem; font-weight: 500; }
.grid > .panel + .panel, .grid > .panel { margin-top: 0; }
.stat a { display: flex; flex-direction: column; gap: .35rem; }
.stat a .muted, .stat a span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.stat a strong { order: 2; }
.explorer > .panel, .explorer > .panel + .panel { margin-top: 0; }
.next-panel { margin-bottom: 1.1rem; }
.appearance > .panel, .appearance > .panel + .panel { margin-top: 0; }
tr.group-row td { background: var(--surface-2); padding-top: .6rem; }
form.inline { display: inline; }
.origin { font-size: .78rem; color: var(--accent); font-weight: 500; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
select.assign-inline { padding: .3rem .5rem; font-size: .85rem; max-width: 12rem; background: transparent; border-color: transparent; }
select.assign-inline:hover, select.assign-inline:focus { border-color: var(--line); background: var(--surface); }
select.assign-inline.unassigned { color: var(--muted); border: 1px dashed var(--line); }
input.narrow { width: 6rem; }
.panel.table-wrap > .panel-head { padding: var(--pad) 1.25rem .25rem; }
.pad-x { padding-left: 1.25rem; padding-right: 1.25rem; }
.exception-form { display: grid; gap: .4rem; margin-top: .4rem; max-width: 32rem; }
.check-item { display: flex; gap: .4rem; align-items: center; font-weight: 400; }
.copyright { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 1.5rem; }
.nav a.nav-locked { opacity: .45; }
.nav a.nav-locked:hover { opacity: .7; }
.nav a.nav-locked svg:last-child { width: 14px; height: 14px; margin-left: auto; }
