/* Umschalter und helles Design. Dunkel bleibt der Standard über brand.css. */

.nav-menu a,
.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.mobile-menu a { justify-content: flex-start; text-align: left; }
.nav-menu a::before,
.mobile-menu a::before {
    content: "";
    width: 0;
    height: 16px;
    flex: 0 0 auto;
    background: currentColor;
    opacity: 0.72;
}
.nav-menu a[href="/"]::before,
.nav-menu a[href="https://www.wirrt.com"]::before,
.mobile-menu a[href="/"]::before { width: 16px; flex-basis: 16px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3.2 3 11h2v9h6v-6h2v6h6v-9h2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3.2 3 11h2v9h6v-6h2v6h6v-9h2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-menu a[href="/registrierung"]::before,
.mobile-menu a[href="/registrierung"]::before,
.nav-menu a[href="/login"]::before,
.mobile-menu a[href="/login"]::before,
.nav-menu a[href="/konto"]::before { width: 16px; flex-basis: 16px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-4 0-7 2-7 4v2h14v-2c0-2-3-4-7-4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-4 0-7 2-7 4v2h14v-2c0-2-3-4-7-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-menu a[href="/gutscheincode"]::before,
.mobile-menu a[href="/gutscheincode"]::before { width: 16px; flex-basis: 16px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 12V7h5l11 11-5 5zm3.5-3.2a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 12V7h5l11 11-5 5zm3.5-3.2a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-menu a[href="/hilfe"]::before,
.nav-menu a[href="https://www.wirrt.com/hilfe"]::before,
.mobile-menu a[href="/hilfe"]::before,
.nav-menu a[href="/faq"]::before,
.nav-menu a[href="https://www.wirrt.com/faq"]::before,
.mobile-menu a[href="/faq"]::before { width: 16px; flex-basis: 16px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a7 7 0 0 0-4 12.7V19h8v-3.3A7 7 0 0 0 12 3zm-2 18h4v2h-4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a7 7 0 0 0-4 12.7V19h8v-3.3A7 7 0 0 0 12 3zm-2 18h4v2h-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-menu a[href="/impressum"]::before,
.mobile-menu a[href="/impressum"]::before,
.nav-menu a[href="/agb"]::before,
.nav-menu a[href="https://www.wirrt.com/agb"]::before,
.nav-menu a[href="/dsgvo"]::before,
.nav-menu a[href="https://www.wirrt.com/dsgvo"]::before { width: 16px; flex-basis: 16px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h8l5 5v13H7zM14 3v6h6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h8l5 5v13H7zM14 3v6h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-menu a[href="/datenschutz"]::before,
.nav-menu a[href="https://www.wirrt.com/datenschutz"]::before,
.mobile-menu a[href="/datenschutz"]::before { width: 16px; flex-basis: 16px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 5 6v6c0 4.5 3 7.5 7 9 4-1.5 7-4.5 7-9V6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 5 6v6c0 4.5 3 7.5 7 9 4-1.5 7-4.5 7-9V6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-menu a[href="/dashboard"]::before,
.mobile-menu a[href="/dashboard"]::before { width: 16px; flex-basis: 16px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav-menu a[href="/passwort-aendern"]::before { width: 16px; flex-basis: 16px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 11V8a4 4 0 0 1 8 0v3h1v9H7v-9zm2 0h4V8a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 11V8a4 4 0 0 1 8 0v3h1v9H7v-9zm2 0h4V8a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat; }

.admin-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
}
.admin-shortcuts .btn {
    width: auto;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    font-size: 0.9rem;
}
.admin-shortcuts .btn[aria-current="page"] {
    pointer-events: none;
}


.theme-switch,
.theme-switch-footer {
    box-sizing: border-box;
}

.theme-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    width: 100%;
    max-width: 100%;
    margin: 1rem auto 0;
    padding: 0.75rem 1rem calc(0.25rem + env(safe-area-inset-bottom));
    border: 0;
    background: transparent;
    color: var(--text-muted);
}

.theme-switch-footer {
    padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom));
}

.theme-switch-label {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.theme-switch-options {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
}

.theme-switch-option {
    min-width: 4.5rem;
    min-height: 44px;
    margin: 0;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: 600 0.875rem/1.2 var(--font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.theme-switch-option[aria-pressed="true"] {
    background: var(--accent);
    color: var(--on-accent);
}

.theme-switch-option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 374px) {
    .theme-switch {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .theme-switch-option {
        min-width: 44px;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-switch-option {
        transition: none;
    }
}

@media (forced-colors: active) {
    .theme-switch-option[aria-pressed="true"] {
        outline: 2px solid CanvasText;
    }
}

html[data-theme="light"] {
    color-scheme: light;
    background: #f3f6f4;
    --bg: #f3f6f4;
    --bg-card: #ffffff;
    --bg-card-hover: #eef4f0;
    --bg-input: #ffffff;
    --text: #14201b;
    --text-muted: #4a5c54;
    --text-label: #24352d;
    --accent: #0c6e45;
    --accent-hover: #095736;
    --accent-light: #0c6e45;
    --accent-rgb: 12, 110, 69;
    --accent-glow: rgba(12, 110, 69, 0.12);
    --on-accent: #f7fffb;
    --border: #d3ddd7;
    --border-hover: #5e7268;
    --panel: #ffffff;
    --line: #d3ddd7;
    --muted: #4a5c54;
    --mint: #0c6e45;
    --ink: #14201b;
}

html[data-theme="light"] body {
    background: var(--bg);
    color: var(--text);
}

html[data-theme="light"] .header,
html[data-theme="light"] .header.scrolled,
html[data-theme="light"] .ws-header {
    background: rgba(243, 246, 244, 0.94);
}

html[data-theme="light"] .mobile-menu {
    background: #ffffff;
    border-color: #d3ddd7;
    box-shadow: 0 12px 32px rgba(20, 32, 27, 0.12);
}

html[data-theme="light"] .site-header nav,
html[data-theme="light"] .proof-strip,
html[data-theme="light"] .product ul,
html[data-theme="light"] .pill.muted,
html[data-theme="light"] .copyright,
html[data-theme="light"] .scene-label,
html[data-theme="light"] .scene-bottom,
html[data-theme="light"] .control-preview > p {
    color: var(--text-muted);
}

html[data-theme="light"] .button,
html[data-theme="light"] .button:hover {
    background: var(--accent);
    color: var(--on-accent);
}

html[data-theme="light"] .button.secondary,
html[data-theme="light"] .button.secondary:hover {
    background: transparent;
    color: var(--text);
    border-color: var(--border-hover);
}

html[data-theme="light"] .call-scene {
    background: linear-gradient(140deg, #f4faf6, #ffffff);
    border-color: #c9ddd2;
    box-shadow: 0 24px 60px rgba(20, 40, 30, 0.08);
}

html[data-theme="light"] .scene-tag {
    background: #e7f0eb;
    border-color: var(--border);
}

html[data-theme="light"] .conversation {
    background: #f7fbf8;
    border-color: #d5e5dc;
}

html[data-theme="light"] .call-scene[data-speaker="caller"] .conversation {
    border-color: #c5d0d8;
}

html[data-theme="light"] .call-scene[data-speaker="caller"] .conversation > span {
    color: #3d4f5f;
}

html[data-theme="light"] .demo-error {
    color: #9a3412;
}

html[data-theme="light"] .product {
    background: #ffffff;
}

html[data-theme="light"] .product.featured,
html[data-theme="light"] .closing {
    background: linear-gradient(140deg, #e7f6ee, #ffffff);
    border-color: #b7d7c6;
}

html[data-theme="light"] .control-section {
    background: #eef3f0;
}

html[data-theme="light"] .control-preview {
    background: #ffffff;
    border-color: var(--border);
}

html[data-theme="light"] .preview-row {
    border-top-color: #e4ebe7;
}

html[data-theme="light"] .tariff-toolbar select,
html[data-theme="light"] .faq-search input,
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="tel"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="search"],
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background-color: #ffffff;
    color: var(--text);
    border-color: var(--border-hover);
}

html[data-theme="light"] .comparison-scroll th {
    background: #e7f3ec;
    color: var(--accent);
}

html[data-theme="light"] .faq-categories a,
html[data-theme="light"] .faq-item a,
html[data-theme="light"] .legal-content > .legal-note a {
    color: var(--accent);
}

html[data-theme="light"] .gender-option input[type="radio"]:checked + label {
    color: var(--accent);
}

html[data-theme="light"] .msg-error,
html[data-theme="light"] .ws-notice.is-error,
html[data-theme="light"] .workspace .ws-button.danger {
    color: #9f1239;
}

html[data-theme="light"] .msg-success {
    color: #166534;
}

html[data-theme="light"] .workspace .ws-button.danger {
    background: #fff1f2;
    border-color: #fecdd3;
}

html[data-theme="light"] .cookie-banner {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 32px rgba(20, 40, 32, 0.12);
}

html[data-theme="light"] .workspace {
    --ws-surface: #ffffff;
    --ws-muted: #4a5c54;
}

html[data-theme="light"] .ws-skip {
    background: #e7f6ee;
    color: var(--text);
}

html[data-theme="light"] .ws-menu > div,
html[data-theme="light"] .ws-dialog {
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(20, 40, 32, 0.14);
}

html[data-theme="light"] .ws-dialog {
    border-color: #b7d7c6;
}

html[data-theme="light"] .ws-dialog::backdrop {
    background: rgba(20, 32, 27, 0.45);
}

html[data-theme="light"] .ws-sidebar nav a,
html[data-theme="light"] .workspace .ws-tabs a,
html[data-theme="light"] .ws-product h2,
html[data-theme="light"] .ws-status,
html[data-theme="light"] .ws-field > label,
html[data-theme="light"] .ws-dialog .form-group > label,
html[data-theme="light"] .workspace .ws-button.secondary {
    color: var(--text);
}

html[data-theme="light"] .ws-sidebar nav a[aria-current],
html[data-theme="light"] .workspace .ws-tabs a[aria-current],
html[data-theme="light"] .ws-product-link,
html[data-theme="light"] .ws-status.is-ready,
html[data-theme="light"] .ws-product-icon,
html[data-theme="light"] .ws-explain summary,
html[data-theme="light"] .ws-dialog .ai-details summary,
html[data-theme="light"] .ws-privacy strong {
    color: var(--accent);
}

html[data-theme="light"] .ws-sidebar nav a[aria-current],
html[data-theme="light"] .ws-status.is-ready,
html[data-theme="light"] .ws-product-icon {
    background: rgba(12, 110, 69, 0.08);
    border-color: rgba(12, 110, 69, 0.28);
}

html[data-theme="light"] .ws-status {
    background: #f3f6f4;
    border-color: var(--border);
}

html[data-theme="light"] .ws-sidebar nav a:hover,
html[data-theme="light"] .ws-menu a:hover,
html[data-theme="light"] .ws-menu button:hover,
html[data-theme="light"] .workspace .ws-button.secondary:hover,
html[data-theme="light"] .ws-room-row:hover {
    background: rgba(20, 32, 27, 0.05);
}

html[data-theme="light"] .workspace .ws-product {
    background: linear-gradient(145deg, #ffffff, #f3f7f5);
}

html[data-theme="light"] .workspace .ws-product.is-selected {
    background: linear-gradient(145deg, #e7f6ee, #ffffff);
}

html[data-theme="light"] .workspace .ws-form input:not([type="checkbox"]):not([type="hidden"]),
html[data-theme="light"] .workspace .ws-form select,
html[data-theme="light"] .workspace .ws-form textarea {
    color: var(--text);
    background-color: #ffffff;
    border-color: var(--border-hover);
}

html[data-theme="light"] .workspace .ws-form input::placeholder,
html[data-theme="light"] .workspace .ws-form textarea::placeholder,
html[data-theme="light"] .ai-main input::placeholder,
html[data-theme="light"] .ai-main textarea::placeholder {
    color: #5c6e66;
}

html[data-theme="light"] .ws-facts > div,
html[data-theme="light"] .ws-list-row,
html[data-theme="light"] .ws-room-row {
    border-bottom-color: #e4ebe7;
}

html[data-theme="light"] .workspace :focus-visible {
    outline-color: var(--accent);
}

html[data-theme="light"] .ai-panel,
html[data-theme="light"] .ai-product-options label {
    background: #ffffff;
    border-color: var(--border);
}

html[data-theme="light"] .ai-muted,
html[data-theme="light"] .ai-main small {
    color: var(--text-muted);
}

html[data-theme="light"] .ai-main input[type="text"],
html[data-theme="light"] .ai-main input[type="password"],
html[data-theme="light"] .ai-main input[type="number"],
html[data-theme="light"] .ai-main input[type="email"],
html[data-theme="light"] .ai-main select,
html[data-theme="light"] .ai-main textarea {
    color: var(--text);
    background-color: #ffffff;
    border-color: var(--border-hover);
}

html[data-theme="light"] .ai-details,
html[data-theme="light"] .ai-footer,
html[data-theme="light"] .ai-table td,
html[data-theme="light"] .ai-table th {
    border-color: var(--border);
}

html[data-theme="light"] .ai-error {
    background: #fff1f2;
    color: #9f1239;
    border-color: #fecdd3;
}

html[data-theme="light"] .ai-success {
    background: #e7f6ee;
    color: #0c6e45;
}

html[data-theme="light"] .business-documents small,
html[data-theme="light"] [data-business-only] small,
html[data-theme="light"] .session-status {
    color: var(--text-muted);
}

html[data-theme="light"] .document-box,
html[data-theme="light"] .business-admin td,
html[data-theme="light"] .business-admin th,
html[data-theme="light"] .payment-admin td,
html[data-theme="light"] .payment-admin th {
    border-color: var(--border);
}

html[data-theme="light"] .business-admin textarea {
    background-color: #ffffff;
    color: var(--text);
    border-color: var(--border-hover);
}

html[data-theme="light"] .pm-badge {
    background: #e8eeeb;
    color: #14201b;
}

html[data-theme="light"] .pm-badge.is-active {
    background: #d1fae5;
    color: #065f46;
}

html[data-theme="light"] .portal-header h2 {
    color: var(--text);
}

html[data-theme="light"] .top {
    background: #ffffff;
    border-bottom-color: var(--border);
}

html[data-theme="light"] .top h1,
html[data-theme="light"] .stat-val,
html[data-theme="light"] .reg-name,
html[data-theme="light"] .card-name {
    color: var(--text);
}

html[data-theme="light"] .stat,
html[data-theme="light"] .reg-card,
html[data-theme="light"] .card,
html[data-theme="light"] .box,
html[data-theme="light"] .note-box,
html[data-theme="light"] .date-row {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="light"] .stat-lbl,
html[data-theme="light"] .detail-item label,
html[data-theme="light"] .empty,
html[data-theme="light"] .area-hint,
html[data-theme="light"] .kyc-docs .doc-label,
html[data-theme="light"] .kyc-docs .pdf-fallback {
    color: var(--text-muted);
}

html[data-theme="light"] .detail-item div,
html[data-theme="light"] .kyc-table .field-label,
html[data-theme="light"] .kyc-table .val-user,
html[data-theme="light"] .date-item .date-val,
html[data-theme="light"] .note-box .note-text,
html[data-theme="light"] .tab,
html[data-theme="light"] .tab:hover {
    color: var(--text);
}

html[data-theme="light"] .reg-header:hover,
html[data-theme="light"] .card-header:hover,
html[data-theme="light"] .kyc-table tbody tr:hover,
html[data-theme="light"] tr:hover td {
    background: #eef4f0;
}

html[data-theme="light"] th,
html[data-theme="light"] .kyc-table thead th,
html[data-theme="light"] .kyc-table thead th.col-field,
html[data-theme="light"] .kyc-table thead th.col-k1,
html[data-theme="light"] .kyc-table thead th.col-merged,
html[data-theme="light"] .kyc-table thead th.col-final {
    background: #eef4f0;
    color: var(--text);
}

html[data-theme="light"] .kyc-table .val-final input,
html[data-theme="light"] textarea.note {
    background-color: #ffffff;
    color: var(--text);
    border-color: var(--border-hover);
}

html[data-theme="light"] [style*="background:#1a1a1a"],
html[data-theme="light"] [style*="background:#202024"],
html[data-theme="light"] [style*="background:#1a1a2e"],
html[data-theme="light"] [style*="background:#0d0d0d"] {
    background: #ffffff !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

html[data-theme="light"] [style*="color:#fff;"],
html[data-theme="light"] [style$="color:#fff"],
html[data-theme="light"] [style*="color:#e0e0e0"],
html[data-theme="light"] [style*="color:#ccc;"],
html[data-theme="light"] [style$="color:#ccc"],
html[data-theme="light"] [style*="color:#999;"],
html[data-theme="light"] [style$="color:#999"],
html[data-theme="light"] [style*="color:#888;"],
html[data-theme="light"] [style$="color:#888"],
html[data-theme="light"] [style*="color:#666;"],
html[data-theme="light"] [style$="color:#666"] {
    color: #3e5148 !important;
}

.admin-catalog { max-width: 1040px; width: 100%; text-align: left; }
.admin-catalog h1,
.business-admin h1,
.admin-catalog .card-subtitle,
.business-admin .card-subtitle { text-align: left; }
.admin-catalog h1 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-bottom: .35rem; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 1rem; }
.admin-toolbar .btn { width: auto; gap: .45rem; }
.admin-toolbar .btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.admin-icon-row { display: flex; gap: .5rem; align-items: center; }
.admin-icon,
.business-admin a.admin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    font: inherit;
}
.admin-icon svg { width: 20px; height: 20px; flex: 0 0 auto; }
.admin-icon.danger { color: #dc2626; }
.admin-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
dialog.admin-dialog {
    width: min(40rem, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
    max-height: min(86dvh, 820px);
    margin: auto;
    padding: 1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--text);
    text-align: left;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    overflow: auto;
}
dialog.admin-dialog::backdrop { background: rgba(8, 12, 10, .62); }
.admin-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.admin-dialog-head h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.admin-dialog .btn { min-height: 44px; }
.admin-dialog textarea { min-height: 8rem; }
.admin-dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.admin-dialog-copy { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 1rem; line-height: 1.6; }
@media (max-width: 374px) {
    dialog.admin-dialog { width: calc(100vw - 1rem); padding-left: .8rem; padding-right: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    dialog.admin-dialog { transition: none; }
}
