/* Brand yellow is provisional until the original logo file can be sampled. */
:root {
  color-scheme: light;
  --brand: #ffed00;
  --page: #f7f7f5;
  --panel: #ffffff;
  --input: #ffffff;
  --ink: #151515;
  --muted: #626262;
  --line: #d8d8d3;
  --input-line: #858580;
  --focus: #151515;
  --tint: #fffce1;
  --error: #9b241c;
  --error-bg: #fff0ed;
  --shadow: 0 6px 28px #00000005;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #000000; --panel: #101010; --input: #121212;
    --ink: #f5f5f2; --muted: #a7a7a0; --line: #31312d;
    --input-line: #ffed00; --focus: #ffed00; --tint: #1c1b0e;
    --error: #ffaba0; --error-bg: #28120f; --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #000000; --panel: #101010; --input: #121212;
  --ink: #f5f5f2; --muted: #a7a7a0; --line: #31312d;
  --input-line: #ffed00; --focus: #ffed00; --tint: #1c1b0e;
  --error: #ffaba0; --error-bg: #28120f; --shadow: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--focus); }
button, input, select { font: inherit; }
button, .button { display: inline-block; padding: 12px 19px; border: 2px solid var(--brand); border-radius: 9px; background: var(--brand); color: #000; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; transition: box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease; }
button:hover, .button:hover { box-shadow: 0 0 0 3px #ffed0026; text-decoration: none; }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus, select:focus { outline: 2px solid var(--focus); outline-offset: 4px; }
.quiet { color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 9px 14px; }
.quiet:hover { background: var(--tint); box-shadow: none; }
header { min-height: 88px; padding: 18px max(28px,calc((100% - 1192px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
nav form { margin: 0; }
.identity { font-size: 13px; color: var(--muted); }
.theme-switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); background: var(--page); border-radius: 11px; gap: 3px; }
.theme-switch button { padding: 7px 12px; background: transparent; color: var(--muted); border: 0; border-radius: 7px; font-size: 12px; min-height: 34px; }
.theme-switch button[aria-pressed="true"] { color: #000; background: var(--brand); }
.theme-switch button:hover { color: var(--ink); box-shadow: none; }
.theme-switch button[aria-pressed="true"]:hover { color: #000; }
.demo { padding: 10px 24px; text-align: center; background: var(--tint); color: var(--ink); font-size: 12px; border-bottom: 1px solid var(--line); }
.demo strong { font-size: 10px; letter-spacing: 1px; }
main { max-width: 1248px; margin: 0 auto; padding: 52px 28px 64px; min-height: calc(100svh - 174px); }
footer { max-width: 1192px; margin: auto; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
h1 { font-size: clamp(27px,3vw,38px); line-height: 1.2; letter-spacing: -1.1px; font-weight: 650; margin: 10px 0 14px; }
h2 { font-size: 19px; font-weight: 650; margin: 0; letter-spacing: -.3px; }
h3 { font-size: 18px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 2px; font-weight: 750; margin: 0; }
.intro { color: var(--muted); max-width: 660px; margin: 0 0 24px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 34px; }
.pagehead .intro { margin-bottom: 0; }
.sectionlabel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.sectionlabel>span { font-size: 12px; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.firms { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.firmcard { padding: 24px; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 24px; }
.badge { background: var(--brand); color: #000; border-radius: 5px; padding: 5px 8px; font-size: 9px; font-weight: 750; letter-spacing: 1px; }
.dotlabel { font-size: 11px; color: var(--muted); }
.dotlabel:before { content: '●'; color: var(--focus); font-size: 8px; margin-right: 6px; }
.quotas { display: flex; gap: 35px; margin: 25px 0 28px; }
.quotas>div { display: flex; flex-direction: column; }
.quotas strong { font-size: 27px; font-weight: 650; letter-spacing: -.7px; }
em { font-style: normal; color: var(--muted); font-size: .6em; font-weight: 400; }
.quotas span { font-size: 11px; color: var(--muted); }
.linkaction { display: flex; justify-content: space-between; padding-top: 17px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 650; text-decoration: none; }
.activity { margin-top: 44px; max-width: 800px; }
.activity h2 { margin-bottom: 18px; }
.logrow { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.logrow small { display: block; font-size: 11px; color: var(--muted); }
time { font-size: 11px; color: var(--muted); flex-shrink: 0; padding-top: 2px; }
.small, small { font-size: 12px; }
.muted { color: var(--muted); }
.formwrap { max-width: 540px; margin: 0 auto; }
.back { display: block; font-size: 12px; margin-bottom: 24px; }
.form { padding: 28px; margin: 25px 0; }
.field { margin-bottom: 22px; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
input, select { display: block; width: 100%; min-height: 48px; padding: 12px; border: 2px solid var(--input-line); border-radius: 9px; background: var(--input); color: var(--ink); font-size: 16px; transition: box-shadow 180ms ease, border-color 180ms ease, outline-offset 180ms ease; }
input:focus, select:focus { box-shadow: 0 0 0 6px #ffed0014; }
input[type="checkbox"] { width: 21px; height: 21px; min-height: 0; accent-color: var(--brand); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--input) inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.field small { display: block; color: var(--muted); margin-top: 8px; }
.form>button { width: 100%; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--tint); border-radius: 9px; padding: 16px 20px; margin-bottom: 22px; font-size: 13px; }
.notice.error, .errorlist { background: var(--error-bg); color: var(--error); border-color: var(--error); }
.errorlist { font-size: 13px; padding: 12px 16px 12px 30px; border-radius: 7px; margin: 12px 0; }
.secret { display: block; padding: 14px; margin: 10px 0 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--ink); overflow-wrap: anywhere; font-size: 15px; user-select: all; }
.secret-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 650; }
.copy { font-size: 12px; min-height: 36px; padding: 7px 11px; }
#copy-status { min-height: 1.5em; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 20px; margin-bottom: 40px; }
.stat { padding: 24px; }
.stat>span, .stat>small { color: var(--muted); font-size: 12px; }
.stat>strong { display: block; font-size: 40px; font-weight: 600; margin: 7px 0; }
.help { background: var(--tint); border-top: 3px solid var(--brand); }
.help>span { color: var(--ink); font-weight: 700; }
.help p { font-size: 13px; max-width: 340px; margin-bottom: 0; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { font-size: 11px; letter-spacing: .35px; font-weight: 600; color: var(--muted); padding: 15px 21px; background: var(--panel); }
td { padding: 21px; border-top: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
td:first-child { width: 49%; min-width: 190px; }
td:last-child { min-width: 145px; }
td a { font-size: 12px; font-weight: 650; }
.userid { display: block; font-size: 11px; overflow-wrap: anywhere; color: var(--muted); margin-top: 5px; max-width: 390px; }
.status { display: inline-block; padding: 5px 9px; border-radius: 5px; font-size: 11px; background: var(--page); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.status.active { background: var(--brand); color: #000; border-color: var(--brand); }
.status.pending { background: var(--tint); color: var(--ink); }
.status.error { background: var(--error-bg); color: var(--error); }
.error-text { display: block; color: var(--error); max-width: 390px; margin-top: 8px; }
.empty { padding: 40px; color: var(--muted); grid-column: 1/-1; }
.empty h2, .empty h3 { color: var(--ink); }
/* No navigation, branding, script or theme selector on public entry pages. */
.entry main { min-height: 100svh; display: grid; place-items: center; padding: 48px 24px; }
.entry .formwrap { width: 100%; max-width: 368px; }
.entry .panel.form { border: 0; padding: 0; margin: 0; background: transparent; box-shadow: none; }
.entry .field { margin-bottom: 22px; }
.entry-field { position: relative; }
.entry-field input { height: 66px; padding: 26px 17px 10px; border-radius: 10px; }
.entry-field label { position: absolute; left: 19px; right: 12px; top: 21px; margin: 0; line-height: 1.2; font-size: 16px; font-weight: 500; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform 180ms ease, color 180ms ease; }
.entry-field input:focus+label, .entry-field input:not(:placeholder-shown)+label { transform: translateY(-10px) scale(.75); color: var(--ink); }
.entry-field input:focus { outline-offset: 4px; box-shadow: 0 0 0 7px #ffed0014; }
.entry .form>button { min-height: 52px; margin-top: 3px; border-radius: 10px; }
.entry .notice { margin-bottom: 26px; }
.entry .cancel { margin-top: 20px; text-align: center; }
@media (max-width: 1000px) {
  .firms { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats { grid-template-columns: 1fr 1fr; }
  .help { grid-column: 1/-1; }
  .help p { max-width: none; }
  footer { margin: 0 28px; }
}
@media (max-width: 640px) {
  header { padding: 16px; min-height: 76px; flex-wrap: wrap; gap: 12px; }
  .identity { display: none; }
  nav { gap: 8px; }
  .theme-switch button { padding: 8px 10px; }
  main { padding: 30px 18px 44px; }
  .pagehead { display: block; }
  .pagehead .button { margin-top: 14px; }
  .firms { grid-template-columns: 1fr; }
  .stats { gap: 12px; }
  .stat { padding: 18px; }
  .stat>strong { font-size: 34px; }
  .form { padding: 22px; }
  footer { margin: 0 18px; padding: 20px 0; }
  time { max-width: 94px; text-align: right; }
  .tablewrap { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  table, tbody { display: block; }
  thead { display: none; }
  tr { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; margin-bottom: 14px; padding: 16px; gap: 12px; }
  td { display: block; padding: 0; border: 0; min-width: 0 !important; }
  td:first-child { grid-column: 1/-1; width: auto; }
  td:last-child { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 12px; }
  td:nth-child(2):before { content: 'Rolle'; }
  td:nth-child(3):before { content: 'Status'; }
  td:nth-child(2):before, td:nth-child(3):before { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
  td:last-child a { display: block; padding: 7px 0; }
  .userid { max-width: 100%; }
  .entry main { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
