/* ====================================================================
   Lerunjo - Designsystem
   ====================================================================

   Umsetzung der Designsprache von shadcn/ui (ui.shadcn.com) in reinem
   CSS.

   Warum nicht die Bibliothek selbst: shadcn/ui ist React plus Tailwind.
   Dieses Backend rendert serverseitig in PHP, und die Content-Security-
   Policy erlaubt keine externen Stylesheets und kein inline-CSS. Die
   Designsprache ist aber vollstaendig uebernommen:

     - dieselben Design-Tokens (HSL-Tripel in CSS-Variablen)
     - dieselbe neutrale Farbskala und dieselben Rollen
       (background/foreground, muted, accent, destructive, border, ring)
     - dieselbe Komponentenlogik (Card, Button mit Varianten, Input,
       Label, Badge, Table, Alert, Separator)
     - --radius als einzige Quelle fuer Rundungen
     - Light und Dark ueber prefers-color-scheme

   WICHTIG: Wegen "style-src 'self'" ohne 'unsafe-inline' darf in den
   Vorlagen kein style-Attribut stehen. Jede Gestaltung laeuft ueber
   Klassen aus dieser Datei.
   ==================================================================== */

/* --------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------- */

:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;

    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;

    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;

    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;

    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;

    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;

    --destructive: 0 72.2% 50.6%;
    --destructive-foreground: 0 0% 98%;

    --success: 142 71% 45%;
    --success-foreground: 0 0% 98%;

    --warning: 38 92% 50%;
    --warning-foreground: 240 10% 3.9%;

    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;

    --radius: 0.5rem;

    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
        "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: 240 10% 3.9%;
        --foreground: 0 0% 98%;

        --card: 240 10% 3.9%;
        --card-foreground: 0 0% 98%;

        --popover: 240 10% 3.9%;
        --popover-foreground: 0 0% 98%;

        --primary: 0 0% 98%;
        --primary-foreground: 240 5.9% 10%;

        --secondary: 240 3.7% 15.9%;
        --secondary-foreground: 0 0% 98%;

        --muted: 240 3.7% 15.9%;
        --muted-foreground: 240 5% 64.9%;

        --accent: 240 3.7% 15.9%;
        --accent-foreground: 0 0% 98%;

        --destructive: 0 62.8% 40%;
        --destructive-foreground: 0 0% 98%;

        --success: 142 60% 40%;
        --warning: 38 80% 45%;
        --warning-foreground: 0 0% 98%;

        --border: 240 3.7% 15.9%;
        --input: 240 3.7% 18%;
        --ring: 240 4.9% 83.9%;
    }
}

/* --------------------------------------------------------------------
   Grundlagen
   -------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
    color: hsl(var(--foreground));
    text-decoration: none;
}

a:hover { text-decoration: underline; }

code, pre, .mono {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

code {
    background-color: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    border-radius: calc(var(--radius) - 0.25rem);
}

hr, .separator {
    height: 1px;
    border: 0;
    margin: 1.5rem 0;
    background-color: hsl(var(--border));
}

:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* --------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 30rem;
}

.container-wide {
    max-width: 82rem;
}

.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: 0.5rem; }
.stack-lg > * + * { margin-top: 2rem; }

.row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.row-between {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 62rem) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.spacer { flex: 1 1 auto; }

/* --------------------------------------------------------------------
   Typografie-Hilfen
   -------------------------------------------------------------------- */

.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 0.8125rem; }
.tiny { font-size: 0.75rem; }
.lead { font-size: 1.0625rem; color: hsl(var(--muted-foreground)); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.strong { font-weight: 600; }

.section {
    padding: 4rem 0;
}

.section-tight { padding: 2.5rem 0; }

.section-head {
    max-width: 44rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-head h2 { margin-bottom: 0.75rem; }

/* --------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: hsl(var(--background) / 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 3.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 1.0625rem;
}

.brand:hover { text-decoration: none; }

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: calc(var(--radius) - 0.125rem);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.875rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-size: 0.875rem;
}

.site-nav a { color: hsl(var(--muted-foreground)); }
.site-nav a:hover { color: hsl(var(--foreground)); text-decoration: none; }

@media (max-width: 52rem) {
    .site-nav-main { display: none; }
}

/* --------------------------------------------------------------------
   Button
   -------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.25rem;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: calc(var(--radius) - 0.125rem);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background-color: hsl(var(--primary) / 0.9);
    text-decoration: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover { background-color: hsl(var(--secondary) / 0.8); }

.btn-outline {
    background-color: transparent;
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-ghost {
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-destructive {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover { background-color: hsl(var(--destructive) / 0.9); }

.btn-sm { height: 2rem; padding: 0 0.75rem; font-size: 0.8125rem; }
.btn-lg { height: 2.75rem; padding: 0 1.75rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.btn-group {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------
   Card
   -------------------------------------------------------------------- */

.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 2px 0 hsl(var(--foreground) / 0.04);
}

.card-header {
    padding: 1.25rem 1.5rem 0;
}

.card-header h2,
.card-header h3 { margin-bottom: 0.375rem; }

.card-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin: 0;
}

.card-body { padding: 1.5rem; }

.card-footer {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 1.5rem 1.5rem;
}

.card-divided .card-body + .card-body {
    border-top: 1px solid hsl(var(--border));
}

.card-link:hover {
    border-color: hsl(var(--foreground) / 0.25);
    text-decoration: none;
}

/* Kennzahl-Kachel */
.stat-value {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-label {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

/* --------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------- */

.field { margin-bottom: 1.125rem; }
.field:last-child { margin-bottom: 0; }

.label {
    display: block;
    margin-bottom: 0.4375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.input,
.textarea,
.select {
    display: block;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.4375rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 0.125rem);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
}

.input::placeholder,
.textarea::placeholder { color: hsl(var(--muted-foreground)); }

.input:focus,
.textarea:focus,
.select:focus {
    outline: 2px solid hsl(var(--ring));
    outline-offset: -1px;
    border-color: hsl(var(--ring));
}

.textarea {
    min-height: 6rem;
    resize: vertical;
}

.select {
    appearance: none;
    padding-right: 2rem;
    background-image: linear-gradient(45deg, transparent 50%, hsl(var(--muted-foreground)) 50%),
        linear-gradient(135deg, hsl(var(--muted-foreground)) 50%, transparent 50%);
    background-position: calc(100% - 1rem) 1.0625rem, calc(100% - 0.6875rem) 1.0625rem;
    background-size: 0.3125rem 0.3125rem;
    background-repeat: no-repeat;
}

.hint {
    margin: 0.375rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.field-error {
    margin: 0.375rem 0 0;
    color: hsl(var(--destructive));
    font-size: 0.8125rem;
}

.input-invalid,
.textarea-invalid,
.select-invalid {
    border-color: hsl(var(--destructive));
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
}

.checkbox-row input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0.25rem 0 0;
    accent-color: hsl(var(--primary));
    flex: 0 0 auto;
}

.checkbox-list {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fieldset {
    margin: 0 0 1.125rem;
    padding: 0;
    border: 0;
}

.fieldset-legend {
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------
   Badge
   -------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-outline {
    background-color: transparent;
    border-color: hsl(var(--border));
    color: hsl(var(--muted-foreground));
}

.badge-success {
    background-color: hsl(var(--success) / 0.14);
    color: hsl(var(--success));
}

.badge-warning {
    background-color: hsl(var(--warning) / 0.16);
    color: hsl(var(--warning));
}

.badge-destructive {
    background-color: hsl(var(--destructive) / 0.12);
    color: hsl(var(--destructive));
}

.badge-dot::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background-color: currentColor;
}

/* --------------------------------------------------------------------
   Alert
   -------------------------------------------------------------------- */

.alert {
    padding: 0.875rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 0.125rem);
    background-color: hsl(var(--muted) / 0.5);
    font-size: 0.875rem;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-error {
    border-color: hsl(var(--destructive) / 0.4);
    background-color: hsl(var(--destructive) / 0.08);
    color: hsl(var(--destructive));
}

.alert-success {
    border-color: hsl(var(--success) / 0.4);
    background-color: hsl(var(--success) / 0.08);
    color: hsl(var(--success));
}

.alert-warning {
    border-color: hsl(var(--warning) / 0.45);
    background-color: hsl(var(--warning) / 0.1);
}

.alert ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

/* --------------------------------------------------------------------
   Tabelle
   -------------------------------------------------------------------- */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    border-bottom: 1px solid hsl(var(--border));
    white-space: nowrap;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--border));
    vertical-align: middle;
}

.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background-color: hsl(var(--muted) / 0.4); }
.table-actions { text-align: right; white-space: nowrap; }

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    border: 1px dashed hsl(var(--border));
    border-radius: var(--radius);
}

/* --------------------------------------------------------------------
   Portal: Seitenleiste
   -------------------------------------------------------------------- */

.app-shell {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2.5rem;
    padding: 2rem 0 4rem;
    align-items: start;
}

@media (max-width: 56rem) {
    .app-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    position: sticky;
    top: 5rem;
}

@media (max-width: 56rem) {
    .side-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.375rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid hsl(var(--border));
    }
}

.side-nav a {
    padding: 0.5rem 0.75rem;
    border-radius: calc(var(--radius) - 0.125rem);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
}

.side-nav a:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    text-decoration: none;
}

.side-nav a[aria-current="page"] {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.page-head {
    margin-bottom: 1.75rem;
}

.page-head h1 { margin-bottom: 0.375rem; }

/* --------------------------------------------------------------------
   Marketing: Hero und Merkmale
   -------------------------------------------------------------------- */

.hero {
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    max-width: 48rem;
    margin: 0 auto 1.25rem;
}

.hero .lead {
    max-width: 38rem;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    padding: 1.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--card));
}

.feature h3 { margin-bottom: 0.5rem; }

.feature p {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.875rem;
    border-radius: calc(var(--radius) - 0.125rem);
    background-color: hsl(var(--secondary));
    font-size: 1.125rem;
}

.steps {
    counter-reset: step;
    display: grid;
    gap: 1.25rem;
}

.step {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--card));
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.8125rem;
    font-weight: 600;
}

.step h3 { margin-bottom: 0.375rem; }

.step p {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.limits {
    display: grid;
    gap: 0.75rem;
}

.limit {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 0.125rem);
    background-color: hsl(var(--muted) / 0.4);
    font-size: 0.875rem;
}

.limit-mark {
    flex: 0 0 auto;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
}

.cta-panel {
    padding: 3rem 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--muted) / 0.4);
    text-align: center;
}

.faq-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.faq-item:last-child { border-bottom: 0; }

.faq-item h3 { margin-bottom: 0.375rem; }

.faq-item p {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------
   Flussdiagramm
   -------------------------------------------------------------------- */

.diagram-wrap {
    overflow-x: auto;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--card));
    padding: 1rem;
}

.diagram { display: block; }

.diagram-node-box {
    fill: hsl(var(--background));
    stroke: hsl(var(--border));
    stroke-width: 1;
    rx: 8;
}

.diagram-node-box-start {
    stroke: hsl(var(--primary));
    stroke-width: 2;
}

.diagram-node-box-terminal {
    fill: hsl(var(--muted) / 0.6);
}

.diagram-node-title {
    fill: hsl(var(--foreground));
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
}

.diagram-node-text {
    fill: hsl(var(--muted-foreground));
    font-family: var(--font-sans);
    font-size: 11px;
}

.diagram-node-badge {
    fill: hsl(var(--muted-foreground));
    font-family: var(--font-mono);
    font-size: 9px;
}

.diagram-edge {
    stroke: hsl(var(--border));
    stroke-width: 1.5;
    fill: none;
}

.diagram-edge-label {
    fill: hsl(var(--muted-foreground));
    font-family: var(--font-sans);
    font-size: 10px;
}

.diagram-arrow { fill: hsl(var(--border)); }

.diagram-node-link:hover .diagram-node-box {
    stroke: hsl(var(--foreground) / 0.4);
}

/* --------------------------------------------------------------------
   Sonstiges
   -------------------------------------------------------------------- */

.site-footer {
    margin-top: auto;
    padding: 2.5rem 0;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.footer-inner {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.page-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-main { flex: 1 1 auto; }

.auth-screen {
    display: grid;
    place-items: center;
    padding: 3rem 1.5rem 4rem;
}

.auth-card { width: 100%; max-width: 25rem; }

.prose h2 { margin: 2rem 0 0.75rem; font-size: 1.1875rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.375rem; }
.prose { max-width: 46rem; }

.kv {
    display: grid;
    grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr);
    gap: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.kv dt { color: hsl(var(--muted-foreground)); }
.kv dd { margin: 0; }

.credential-box {
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 0.125rem);
    background-color: hsl(var(--muted) / 0.5);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.inline-form { display: inline; }
