/* uni7 – Sternkarte: dunkles Nachthimmel-Band (Hero, Werte), dazwischen ruhige helle Flächen.
   Leitmotiv ist die u7-Linie aus dem Logo; Farben nur aus dem Logo (Marineblau, Blau → Cyan). */
@layer tokens, base, layout, components, admin;

@layer tokens {
  :root {
    color-scheme: light dark;

    --ink:       light-dark(#1B2A5C, #E6EAF8);
    --ink-soft:  light-dark(#4A5578, #A3ADCC);
    --ink-faint: light-dark(#7C86A6, #7480A6);
    --ground:    light-dark(#F7F8FC, #0A1129);
    --tint:      light-dark(#EEF1FA, #0F1836);
    --surface:   light-dark(#FFFFFF, #121C40);
    --line:      light-dark(#DDE2EF, #222D58);
    --night:     #0B1330;
    --night-2:   #15215A;
    --on-night:  #E9EDFB;
    --on-night-soft: #A9B3D6;
    --blue:      light-dark(#3550FF, #7A8CFF);
    --cyan:      light-dark(#0089A8, #3ED9FF);
    --grad:      linear-gradient(120deg, #3550FF, #00C8F0);
    --ok:        light-dark(#13804B, #4ADE9A);
    --warn:      light-dark(#A15C00, #FBBF5A);
    --bad:       light-dark(#C0262D, #FF8A8F);

    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-body:    "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono:    "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, "SF Mono", Menlo, monospace;

    --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
    --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.07rem);
    --step-1:  clamp(1.15rem, 1.08rem + 0.4vw, 1.35rem);
    --step-2:  clamp(1.45rem, 1.3rem + 0.8vw, 1.9rem);
    --step-3:  clamp(1.9rem, 1.55rem + 1.8vw, 2.9rem);
    --step-4:  clamp(2.3rem, 1.7rem + 3.2vw, 4.2rem);

    --radius: 14px;
    --max: 1160px;
  }
}

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

  html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 400 var(--step-0)/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
  h1 { font-size: var(--step-4); font-weight: 650; }
  h2 { font-size: var(--step-3); font-weight: 620; }
  h3 { font-size: var(--step-1); font-weight: 620; }
  p { margin: 0; text-wrap: pretty; }
  a { color: var(--blue); text-underline-offset: 3px; }
  img, svg { max-width: 100%; }
  code { font-family: var(--font-mono); font-size: 0.92em; }
  :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
  ::selection { background: #3550FF; color: #fff; }
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

@layer layout {
  .wrap {
    width: 100%;
    max-width: calc(var(--max) + 64px);
    margin-inline: auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
  @media (min-width: 760px) {
    .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  }

  .section { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
  .section-tinted { background: var(--tint); }
  .section-night { background: radial-gradient(120% 90% at 80% 0%, var(--night-2), var(--night) 60%); color: var(--on-night); }
  .section-head { display: grid; gap: 0.9rem; max-width: 44rem; margin-bottom: clamp(2.2rem, 1.8rem + 2vw, 3.4rem); }
  .section-head > p:not(.eyebrow) { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }
  .section-night .section-head > p:not(.eyebrow) { color: var(--on-night-soft); }

  /* Kopfzeile */
  .skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); color: var(--ink); padding: 0.5rem 0.8rem; border-radius: 8px; }
  .skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }
  .site-header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: color-mix(in oklab, var(--night) 88%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    color: var(--on-night);
    border-bottom: 1px solid rgb(255 255 255 / 0.07);
  }
  .site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
  .brand { color: var(--on-night); display: inline-flex; }
  .brand-logo { width: 116px; }
  .site-nav { display: flex; align-items: center; gap: clamp(0.6rem, 0.3rem + 1.2vw, 1.8rem); font-size: 0.95rem; }
  .site-nav a { color: var(--on-night-soft); text-decoration: none; font-weight: 500; transition: color 0.2s; }
  .site-nav a:hover { color: #fff; }
  .site-nav .nav-cta { color: #fff; border: 1px solid rgb(255 255 255 / 0.25); padding: 0.45rem 0.95rem; border-radius: 999px; }
  .site-nav .nav-cta:hover { background: rgb(255 255 255 / 0.08); }
  @media (max-width: 760px) {
    .site-nav a:not(.nav-cta) { display: none; }
  }

  /* Fußzeile */
  .site-footer { background: var(--night); color: var(--on-night-soft); padding-block: 3rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
  .site-footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: start; }
  .footer-brand { display: grid; gap: 0.8rem; color: var(--on-night); }
  .footer-brand p { color: var(--on-night-soft); font-size: 0.95rem; }
  .footer-logo { width: 104px; }
  .footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
  .footer-nav a { color: var(--on-night-soft); text-decoration: none; font-size: 0.95rem; }
  .footer-nav a:hover { color: #fff; }
  .footer-copy { grid-column: 1 / -1; font-size: 0.85rem; border-top: 1px solid rgb(255 255 255 / 0.08); padding-top: 1.4rem; }
  @media (max-width: 640px) { .site-footer-inner { grid-template-columns: 1fr; } }
}

@layer components {
  .eyebrow { font: 600 var(--step--1)/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
  .eyebrow a { color: inherit; }
  .eyebrow-light { color: #5FE0FF; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.3rem; border-radius: 999px; border: 0;
    font: 600 0.98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn:disabled { opacity: 0.55; cursor: default; transform: none; }
  .btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -12px #3550FF; }
  .btn-ghost { color: #fff; border: 1px solid rgb(255 255 255 / 0.3); background: transparent; }
  .btn-ghost:hover { background: rgb(255 255 255 / 0.08); }
  .btn-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
  .btn-danger { background: var(--bad); color: #fff; }
  .btn-danger-quiet { background: transparent; color: var(--bad); border: 1px solid color-mix(in oklab, var(--bad) 40%, transparent); }
  .btn-link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
  .btn-link:hover { text-decoration: underline; }
  .btn-link:disabled { color: var(--ink-faint); cursor: default; text-decoration: none; }

  .tag {
    display: inline-block; font: 500 0.78rem/1 var(--font-mono);
    padding: 0.42rem 0.6rem; border-radius: 6px;
    background: color-mix(in oklab, var(--blue) 10%, transparent); color: var(--ink);
    white-space: nowrap;
  }

  /* Hero */
  .hero {
    position: relative; overflow: hidden;
    background: radial-gradient(90% 120% at 85% 10%, var(--night-2) 0%, var(--night) 58%);
    color: var(--on-night);
    padding-block: clamp(3.5rem, 2.5rem + 6vw, 7rem) clamp(4rem, 3rem + 5vw, 7rem);
  }
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
  .hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
  .hero h1 { color: #fff; max-width: 16ch; }
  .hero-lead { color: var(--on-night-soft); font-size: var(--step-1); line-height: 1.55; max-width: 36rem; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
  .hero-facts { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
  .hero-facts li { font: 500 0.82rem/1.3 var(--font-mono); color: var(--on-night-soft); }
  .hero-facts li::before { content: "✦"; color: #5FE0FF; margin-right: 0.45rem; font-size: 0.7rem; }
  .hero-sky { min-width: 0; }
  .sky { width: 100%; max-width: 460px; display: block; margin-inline: auto; overflow: visible; }
  .sky-dust circle { fill: #fff; opacity: 0.35; }
  .sky-dust circle:nth-child(3n) { opacity: 0.18; }
  .sky-dust circle:nth-child(4n) { animation: twinkle 4s ease-in-out infinite; }
  .sky-dust circle:nth-child(5n) { animation: twinkle 5.5s ease-in-out 1s infinite; }
  .sky-line { fill: none; stroke: #8E9CD8; stroke-width: 1.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 2.2s cubic-bezier(.6,.1,.2,1) both; }
  .sky-stars circle { fill: #fff; filter: drop-shadow(0 0 4px rgb(140 220 255 / 0.75)); animation: pop 0.5s ease-out both; animation-delay: calc(0.25s + var(--i) * 0.28s); transform-box: fill-box; transform-origin: center; }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes pop { from { transform: scale(0.2); } to { transform: scale(1); } }
  @keyframes twinkle { 50% { opacity: 0.85; } }
  @media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-sky { order: -1; }
    .sky { max-width: 300px; }
  }

  /* Leistungen */
  .services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.2rem; }
  .service {
    display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.75rem;
    padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  }
  .service p { color: var(--ink-soft); }
  .service-icon { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }

  /* Medicare */
  .product { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
  .product-copy { display: grid; gap: 1.1rem; justify-items: start; }
  .product-copy > p:not(.eyebrow) { color: var(--ink-soft); max-width: 38rem; }
  .product-copy .product-lead { font-size: var(--step-1); color: var(--ink); line-height: 1.5; }
  .product-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .product-specs div { background: var(--surface); padding: 1.3rem 1.4rem; }
  .product-specs dt { font: 600 0.75rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
  .product-specs dd { margin: 0.35rem 0 0; font: 620 var(--step-2)/1.1 var(--font-display); }
  @media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

  /* Vorgehen: die Reihenfolge ist Information, daher nummeriert, verbunden wie Sterne einer Linie */
  .steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; position: relative; }
  .steps::before { content: ""; position: absolute; top: 15px; left: 15px; right: 15px; height: 1px; background: linear-gradient(90deg, #3550FF, #00C8F0); opacity: 0.5; }
  .steps li { counter-increment: step; display: grid; gap: 0.6rem; align-content: start; position: relative; }
  .steps li::before {
    content: counter(step); width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%;
    font: 600 0.85rem/1 var(--font-mono); color: #fff; background: var(--grad); box-shadow: 0 0 0 6px var(--ground);
    margin-bottom: 0.6rem;
  }
  .steps p { color: var(--ink-soft); font-size: 0.96rem; }
  @media (max-width: 960px) {
    .steps { grid-template-columns: 1fr; gap: 1.8rem; }
    .steps::before { top: 15px; bottom: 15px; left: 15px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, #3550FF, #00C8F0); }
    .steps li { padding-left: 3.2rem; }
    .steps li::before { position: absolute; left: 0; top: -4px; margin: 0; }
  }

  /* Werte (WebAssembly-Komponente) */
  .werte { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
  .werte-sky { width: 100%; max-width: 420px; margin-inline: auto; display: block; overflow: visible; }
  .werte-line { fill: none; stroke: #6F7DBA; stroke-width: 1.2; stroke-linejoin: round; }
  .werte-star { cursor: pointer; }
  .werte-hit { fill: transparent; }
  .werte-dot { fill: #C9D2F4; transition: r 0.25s ease, fill 0.25s ease; }
  .werte-star:hover .werte-dot { fill: #fff; }
  .werte-star.is-active .werte-dot { fill: #fff; filter: drop-shadow(0 0 6px #5FE0FF); }
  .werte-panel { display: grid; gap: 1.5rem; min-width: 0; }
  .werte-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; }
  .werte-tab {
    font: 600 0.9rem/1 var(--font-body); color: var(--on-night-soft); background: rgb(255 255 255 / 0.04);
    border: 1px solid rgb(255 255 255 / 0.12); border-radius: 999px; padding: 0.55rem 0.85rem; cursor: pointer;
  }
  .werte-tab:hover { color: #fff; border-color: rgb(255 255 255 / 0.3); }
  .werte-tab.is-active { color: #fff; border-color: transparent; background: linear-gradient(120deg, rgb(53 80 255 / 0.55), rgb(0 200 240 / 0.4)); }
  .werte-uni { font-weight: 800; letter-spacing: 0.02em; }
  .werte-detail { display: grid; gap: 0.7rem; padding: 1.6rem; border-radius: var(--radius); background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.1); min-height: 13rem; }
  .werte-detail h3 { font-size: var(--step-2); color: #fff; }
  .werte-num { font: 500 0.78rem/1 var(--font-mono); color: #5FE0FF; letter-spacing: 0.06em; text-transform: uppercase; }
  .werte-de { color: #5FE0FF; font-weight: 600; }
  .werte-detail p:last-child { color: var(--on-night-soft); }
  @media (max-width: 860px) { .werte { grid-template-columns: 1fr; } .werte-sky { max-width: 280px; } }

  /* Technologien */
  .stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 2rem 2.5rem; }
  .stack-group { display: grid; gap: 0.9rem; align-content: start; }
  .stack-group h3 { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
  .stack-group p { display: flex; flex-wrap: wrap; gap: 0.45rem; }

  /* Kontakt */
  .section-contact { background: var(--tint); }
  .contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
  .contact > div:first-child { display: grid; gap: 1rem; }
  .contact-lead { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; max-width: 36rem; }
  .contact-card { display: grid; gap: 0.3rem; padding: 1.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .contact-label { font: 600 0.75rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
  .contact-value { font: 620 var(--step-1)/1.3 var(--font-display); margin-bottom: 0.9rem; word-break: break-word; user-select: all; }
  .contact-value:last-child { margin-bottom: 0; }
  .contact-value a { color: var(--ink); text-decoration: none; }
  @media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

  /* Rechtliches */
  .legal-inner { max-width: 46rem; display: grid; gap: 1rem; }
  .legal-inner h1 { font-size: var(--step-3); margin-bottom: 1rem; }
  .legal-inner h2 { font-size: var(--step-1); margin-top: 1.2rem; }
  .legal-inner p { color: var(--ink-soft); }
  .todo { background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--ink); padding: 0 0.3rem; border-radius: 4px; }

  /* Blazor-Fehlerleiste */
  #blazor-error-ui { display: none; position: fixed; inset: auto 0 0; z-index: 100; padding: 0.8rem max(16px, env(safe-area-inset-right, 0px)) calc(0.8rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: #FFF4D6; color: #3B2A00; box-shadow: 0 -2px 10px rgb(0 0 0 / 0.15); }
  #blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: 0.6rem; }
}

@layer admin {
  .admin { min-height: 100dvh; background: var(--ground); }
  .admin-bar { background: var(--night); color: var(--on-night); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
  .admin-bar-inner { max-width: 1280px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: 62px; padding: 0.5rem max(20px, env(safe-area-inset-right, 0px)) 0.5rem max(20px, env(safe-area-inset-left, 0px)); }
  .admin-brand { display: flex; align-items: center; gap: 0.8rem; color: var(--on-night); text-decoration: none; }
  .admin-logo { width: 92px; }
  .admin-badge { font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #5FE0FF; border: 1px solid rgb(95 224 255 / 0.35); border-radius: 999px; padding: 0.3rem 0.55rem; }
  .admin-nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; font-size: 0.93rem; }
  .admin-nav a { color: var(--on-night-soft); text-decoration: none; }
  .admin-nav a:hover, .admin-nav a.active { color: #fff; }
  .admin-logout { margin: 0; }
  .admin-logout button { background: none; border: 1px solid rgb(255 255 255 / 0.25); color: #fff; border-radius: 999px; padding: 0.4rem 0.8rem; font: inherit; cursor: pointer; }
  .admin-main { max-width: 1280px; margin-inline: auto; padding: 2.4rem max(20px, env(safe-area-inset-right, 0px)) 4rem max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 1.6rem; }
  .admin-head { display: flex; justify-content: space-between; align-items: end; gap: 1.4rem; flex-wrap: wrap; }
  .admin-head > div:first-child { display: grid; gap: 0.6rem; max-width: 46rem; }
  .admin-head h1 { font-size: var(--step-3); }
  .admin-lead { color: var(--ink-soft); }
  .admin-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
  .admin-muted { color: var(--ink-faint); }
  .admin-alert { padding: 0.9rem 1.1rem; border-radius: 10px; background: color-mix(in oklab, var(--bad) 12%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in oklab, var(--bad) 35%, transparent); }
  .admin-empty { display: grid; gap: 0.9rem; justify-items: start; padding: 2.2rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); max-width: 46rem; }
  .admin-empty h2 { font-size: var(--step-2); }
  .admin-empty p { color: var(--ink-soft); }

  .status-summary { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.84rem; font-weight: 600; white-space: nowrap; }
  .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .pill-online { color: var(--ok); background: color-mix(in oklab, var(--ok) 13%, transparent); }
  .pill-gestoert { color: var(--warn); background: color-mix(in oklab, var(--warn) 15%, transparent); }
  .pill-offline { color: var(--bad); background: color-mix(in oklab, var(--bad) 13%, transparent); }
  .pill-unbekannt { color: var(--ink-faint); background: color-mix(in oklab, var(--ink-faint) 13%, transparent); }
  .status-summary .pill strong { font-variant-numeric: tabular-nums; }

  .app-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .app-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 860px; }
  .app-table th { text-align: left; font: 600 0.72rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
  .app-table td { padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  .app-table tr:last-child td { border-bottom: 0; }
  .app-table .num { text-align: right; font-variant-numeric: tabular-nums; }
  .app-name { display: grid; gap: 0.15rem; min-width: 0; }
  .app-url { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); text-decoration: none; word-break: break-all; }
  .app-url:hover { color: var(--blue); }
  .app-error { font-size: 0.8rem; color: var(--bad); }
  .app-actions { white-space: nowrap; display: flex; gap: 1rem; justify-content: flex-end; }
  .cert-warn { color: var(--warn); font-weight: 600; }

  .admin-form { display: grid; gap: 1.2rem; max-width: 44rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 1rem + 1vw, 2rem); }
  .field { display: grid; gap: 0.4rem; min-width: 0; }
  .field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.2rem; }
  .field label { font-weight: 600; font-size: 0.93rem; }
  .optional { font-weight: 400; color: var(--ink-faint); font-size: 0.85rem; margin-left: 0.3rem; }
  .hint { font-size: 0.84rem; color: var(--ink-faint); }
  .field input, .field select, .field textarea {
    font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 10px;
    padding: 0.7rem 0.85rem; width: 100%;
  }
  .field textarea { resize: vertical; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in oklab, var(--blue) 55%, transparent); outline-offset: 1px; border-color: var(--blue); }
  .field .invalid { border-color: var(--bad); }
  .validation-message { color: var(--bad); font-size: 0.85rem; }
  .form-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding-top: 0.4rem; }
  .form-actions-spacer { flex: 1; }
  .confirm { font-weight: 600; color: var(--bad); }
}
