﻿        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --bg: #0d0d0d;
            --surface: #161616;
            --surface2: #1e1e1e;
            --border: #2a2a2a;
            --accent: #84cc16;
            /* Apple Green */
            --accent-dim: rgba(132, 204, 22, 0.12);
            --text: #e8e8e8;
            --text-muted: #6b6b6b;
            --text-dim: #9a9a9a;
            --success: #4ade80;
            --error: #f87171;
            --warn: #fb923c;
            --radius: 10px;
            --radius-sm: 6px;
        }

        body {
            background: var(--bg);
            color: var(--text);
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            min-height: 100vh;
        }

        /* "?"? Header "?"? */
        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 36px;
            border-bottom: 1px solid var(--border);
        }

        .logo {
            font-size: 28px;
            font-weight: 600;
            letter-spacing: -0.5px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-main span {
            color: var(--accent);
        }

        .logo-sep {
            color: var(--border);
            font-weight: 300;
            font-size: 28px;
        }

        .logo-brother {
            color: #aaa;
            text-decoration: none;
            transition: color 0.15s;
            position: relative;
        }

        .logo-brother[href*="pressify"]:hover {
            color: #7c6cee;
        }

        .logo-brother[href*="pressify"] span {
            color: #7c6cee;
        }

        .logo-brother[href*="videify"]:hover {
            color: #ef4444;
        }

        .logo-brother[href*="videify"] span {
            color: #ef4444;
        }

        .logo-brother[href*="wavify"]:hover {
            color: #22d3ee;
        }

        .logo-brother[href*="wavify"] span {
            color: #22d3ee;
        }

        .logo-brother[href*="pidify"]:hover {
            color: #f97316;
        }

        .logo-brother[href*="pidify"] span {
            color: #f97316;
        }

        .logo-brother[href*="charify"]:hover {
            color: #84cc16;
        }

        .logo-brother[href*="charify"] span {
            color: #84cc16;
        }

        /* Tooltip styling */
        .logo-brother::after {
            content: attr(data-tooltip);
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background: var(--surface2);
            color: var(--text);
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            pointer-events: none;
            z-index: 100;
            border: 1px solid var(--border);
        }

        .logo-brother[href*="pressify"]::after {
            border-top: 2px solid #7c6cee;
        }

        .logo-brother[href*="videify"]::after {
            border-top: 2px solid #ef4444;
        }

        .logo-brother[href*="wavify"]::after {
            border-top: 2px solid #22d3ee;
        }

        .logo-brother[href*="pidify"]::after {
            border-top: 2px solid #f97316;
        }

        .logo-brother[href*="charify"]::after {
            border-top: 2px solid #84cc16;
        }

        .logo-brother:hover::after {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(5px);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .lang-btn {
            display: flex;
            gap: 2px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 3px;
        }

        .lang-btn button {
            background: none;
            border: none;
            color: var(--text-muted);
            font-family: inherit;
            font-size: 11px;
            font-weight: 600;
            padding: 4px 9px;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
            letter-spacing: 0.4px;
        }

        .lang-btn button.active {
            background: var(--accent);
            color: #fff;
        }

        .badge {
            font-size: 11px;
            background: var(--accent-dim);
            color: var(--accent);
            border: 1px solid rgba(132, 204, 22, 0.3);
            border-radius: 20px;
            padding: 3px 10px;
            font-weight: 500;
        }

        /* "?"? Hero "?"? */
        .hero {
            text-align: center;
            margin-bottom: 28px;
        }

        .hero h1 {
            font-size: 28px;
            font-weight: 600;
            letter-spacing: -0.5px;
            margin-bottom: 10px;
        }

        .hero h1 em {
            font-style: normal;
            color: var(--accent);
        }

        .hero p {
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1.6;
            max-width: 520px;
            margin: 0 auto;
        }

        /* "?"? Matrix burst "?"? */
        .matrix-burst {
            display: flex;
            justify-content: center;
            margin: 20px 0 32px;
            height: 48px;
            pointer-events: none;
            mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
            -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        }

        #matrix-canvas {
            display: block;
        }

        /* "?"? Main "?"? */
        main {
            max-width: 900px;
            margin: 0 auto;
            padding: 48px 20px 80px;
        }

        /* "?"? Editor Panes "?"? */
        .editor-wrap {
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .pane-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 8px;
        }

        .pane-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.6px;
        }

        .pane-tools {
            display: flex;
            gap: 6px;
        }

        .btn-micro {
            background: var(--surface2);
            border: 1px solid var(--border);
            color: var(--text-muted);
            border-radius: var(--radius-sm);
            padding: 4px 10px;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
            font-family: inherit;
        }

        .btn-micro:hover {
            color: var(--text);
            border-color: var(--text-dim);
        }

        .textarea-box {
            width: 100%;
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: var(--radius);
            padding: 24px;
            color: var(--text);
            font-family: inherit;
            font-size: 15px;
            line-height: 1.6;
            resize: vertical;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .textarea-box:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px var(--accent-dim);
        }

        #text-input {
            height: 160px;
        }

        #text-output {
            height: 260px;
        }

        #text-output[readonly] {
            background: rgba(22, 22, 22, 0.4);
            color: var(--text-dim);
            border-style: dashed;
        }

        .action-buttons-row {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 14px;
            margin-bottom: 24px;
        }

        .btn-action-green {
            background: rgba(132, 204, 22, 0.1);
            border: 1px solid var(--accent);
            color: var(--accent);
            border-radius: var(--radius-sm);
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
        }

        .btn-action-green:hover {
            background: var(--accent);
            color: #000;
        }

        /* "?"? Controls "?"? */
        .controls {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 12px;
            margin: 24px 0;
            align-items: flex-end;
        }

        .ctrl-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .ctrl-group label {
            font-size: 11px;
            font-weight: 500;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.6px;
        }

        .controls select {
            width: 100%;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text);
            padding: 8px 10px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            outline: none;
            cursor: pointer;
            transition: border-color 0.15s;
        }

        .controls select optgroup {
            color: var(--accent);
            font-style: normal;
            font-weight: 600;
        }

        .controls select option {
            color: var(--text);
            font-weight: normal;
        }

        select,
        input[type="text"],
        input[type="number"] {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text);
            font-family: inherit;
            font-size: 13px;
            padding: 8px 10px;
            width: 100%;
            outline: none;
            cursor: pointer;
            transition: border-color 0.15s;
        }

        input[type="text"],
        input[type="number"] {
            cursor: text;
        }

        select:hover,
        select:focus,
        input:hover,
        input:focus {
            border-color: var(--accent);
        }

        .btn-process {
            background: var(--accent);
            color: var(--bg);
            border: none;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 600;
            padding: 10px;
            cursor: pointer;
            font-family: inherit;
            transition: opacity 0.15s, transform 0.1s;
            white-space: nowrap;
            width: 100%;
        }

        .btn-process:hover {
            opacity: 0.88;
        }

        .btn-process:active {
            transform: scale(0.97);
        }

        .btn-clear,
        .btn-secondary {
            background: transparent;
            color: var(--text-muted);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 500;
            padding: 10px;
            cursor: pointer;
            font-family: inherit;
            transition: border-color 0.15s, color 0.15s;
            white-space: nowrap;
            width: 100%;
        }

        .btn-clear:hover,
        .btn-secondary:hover {
            border-color: var(--text-muted);
            color: var(--text);
        }

        /* "?"? Queue header equivalent (Metrics panel) "?"? */
        .queue-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 44px;
            margin-bottom: 16px;
        }

        .queue-title {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-dim);
        }

        /* "?"? Live Metrics Grid "?"? */
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
            gap: 12px;
        }

        .metric-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            transition: border-color 0.2s;
        }

        .metric-card.active {
            border-color: var(--accent);
        }

        .metric-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
            line-height: 1.2;
        }

        .metric-val {
            font-size: 20px;
            font-weight: 600;
            margin-top: auto;
        }

        @media (max-width: 600px) {
            header {
                padding: 16px 20px;
            }

            main {
                padding: 32px 16px 60px;
            }

            .badge {
                display: none;
            }

            .controls,
            .controls-name {
                grid-template-columns: 1fr;
            }

            .buttons-row {
                grid-template-columns: 1fr;
            }
        }

        /* "?"? Footer "?"? */
        .site-footer {
            border-top: 1px solid var(--border);
            padding: 28px 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            font-size: 12px;
            color: var(--text-muted);
            gap: 12px;
        }

        .site-footer a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.15s;
        }

        .site-footer a:hover {
            color: var(--text);
        }

        /* Content sections */
        .content-sections {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 20px 80px;
        }

        .content-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-top: 48px;
        }

        @media (max-width: 620px) {
            .content-grid {
                grid-template-columns: 1fr;
            }
        }

        .content-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 24px;
        }

        .content-card h2 {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text);
        }

        .content-card p {
            font-size: 13px;
            line-height: 1.65;
            color: var(--text-dim);
        }

        .content-card p+p {
            margin-top: 10px;
        }

        .faq {
            margin-top: 64px;
        }

        .faq h2 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--text-dim);
        }

        .faq-item {
            border-top: 1px solid var(--border);
            padding: 16px 0;
        }

        .faq-item:last-child {
            border-bottom: 1px solid var(--border);
        }

        .faq-q {
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            user-select: none;
        }

        .faq-q::after {
            content: '+';
            color: var(--accent);
            font-size: 18px;
            flex-shrink: 0;
        }

        .faq-item.open .faq-q::after {
            content: '-';
        }

        .faq-a {
            display: none;
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.7;
            margin-top: 12px;
        }

        .faq-item.open .faq-a {
            display: block;
        }

        .content-card a {
            color: var(--accent);
            text-decoration: none;
        }

        .content-card a:hover {
            text-decoration: underline;
        }

        /* "?"? Privacy Modal "?"? */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            z-index: 9999;
            display: none;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modal-content {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            max-width: 600px;
            width: 100%;
            padding: 32px;
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            color: var(--text-dim);
            font-size: 24px;
            cursor: pointer;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text);
        }

        .prv-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            z-index: 9000;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 32px 16px;
            overflow-y: auto;
        }

        .prv-box {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            max-width: 680px;
            width: 100%;
            padding: 36px 40px 40px;
            position: relative;
        }

        #feedback-modal {
            align-items: center;
            padding: 16px 12px;
        }

        #feedback-modal .prv-box {
            margin: 0;
            width: min(100%, 480px) !important;
            max-height: calc(100dvh - 32px);
            overflow-y: auto;
            padding: 24px 20px 20px !important;
        }

        #feedback-modal .prv-close {
            top: 10px;
            right: 12px;
        }

        @media (max-width: 480px) {
            #feedback-modal {
                padding: 8px;
            }

            #feedback-modal .prv-box {
                max-height: calc(100dvh - 16px);
                padding: 20px 14px 14px !important;
            }
        }

        .prv-close {
            position: absolute;
            top: 16px;
            right: 20px;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 22px;
            cursor: pointer;
            line-height: 1;
            transition: color 0.15s;
        }

        .prv-close:hover {
            color: var(--text);
        }

        .prv-box h1 {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 4px;
            letter-spacing: -0.3px;
        }

        .prv-updated {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 28px;
        }

        .prv-box h2 {
            font-size: 14px;
            font-weight: 600;
            margin: 24px 0 7px;
        }

        .prv-box p {
            font-size: 13px;
            line-height: 1.65;
            color: var(--text-dim);
            margin-bottom: 8px;
        }

        .prv-box ul {
            font-size: 13px;
            color: var(--text-dim);
            padding-left: 18px;
            margin-bottom: 8px;
        }

        .prv-box ul li {
            margin-bottom: 4px;
        }

        .prv-highlight {
            background: rgba(132, 204, 22, 0.08);
            border: 1px solid rgba(132, 204, 22, 0.2);
            border-radius: var(--radius-sm);
            padding: 12px 16px;
            margin-bottom: 20px;
        }

        .prv-highlight p {
            color: var(--text);
            margin: 0;
        }

        .prv-link {
            color: var(--accent);
            text-decoration: none;
        }

        .prv-link:hover {
            text-decoration: underline;
        }

        .modal-content h2 {
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--text);
        }

        .modal-content p {
            color: var(--text-dim);
            line-height: 1.6;
            margin-bottom: 16px;
            font-size: 15px;
        }

        .modal-content strong {
            color: var(--text);
        }

        /* "?"? Suite Section "?"? */
        .suite-section {
            max-width: 900px;
            margin: 0 auto;
            padding: 20px 20px 60px;
            text-align: center;
        }

        .suite-section h2 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text);
        }

        .suite-section>p {
            font-size: 13px;
            color: var(--text-dim);
            margin-bottom: 32px;
        }

        .suite-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .suite-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 24px;
            display: flex;
            align-items: center;
            gap: 18px;
            text-decoration: none;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            text-align: left;
            position: relative;
            overflow: hidden;
        }

        .suite-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--c);
            opacity: 0;
            transition: opacity 0.2s;
            z-index: 0;
        }

        .suite-card.active-app {
            border-color: rgba(255, 255, 255, 0.15);
            background: var(--surface2);
        }

        .suite-card:hover {
            border-color: var(--c);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        }

        .suite-card:hover::before {
            opacity: 0.05;
        }

        .suite-icon {
            width: 52px;
            height: 52px;
            border-radius: 12px;
            background: #0d0d0d;
            color: var(--c);
            font-size: 26px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            position: relative;
            z-index: 1;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .suite-info {
            position: relative;
            z-index: 1;
        }

        .suite-info h3 {
            color: var(--text);
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
            transition: color 0.15s;
        }

        .suite-card:hover .suite-info h3 {
            color: var(--c);
        }

        .suite-info p {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.45;
        }

        @media (max-width: 640px) {
            .suite-grid {
                grid-template-columns: 1fr;
            }
        }

        /* "?"? Ad zone generic "?"? */
        .ad-container {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin: 24px 0;
            min-height: 90px;
            background: var(--surface);
            border: 1px dashed var(--border);
            border-radius: var(--radius);
            position: relative;
            overflow: hidden;
        }

        .ad-container ins {
            text-decoration: none;
            width: 100%;
        }

        .ad-container .suite-card {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
        }

        .ad-container .suite-info {
            min-width: 0;
        }

        .ad-container .suite-info p {
            overflow-wrap: anywhere;
        }

/* --- DAHEIM shared compatibility layer --- */
main {
    width: min(1120px, 100% - 32px);
    margin: 0 auto;
    padding: 16px;
}

.hero {
    min-height: 100vh;
    width: min(760px, 100% - 32px);
    margin: 0 auto;
    display: grid;
    place-content: center;
    gap: 14px;
    text-align: center;
}

.logo {
    width: 120px;
    height: auto;
    margin: 0 auto;
}

.btn,
button,
input,
select,
textarea {
    border-radius: 8px;
}

.btn,
button {
    display: inline-block;
    border: 0;
    padding: 10px 12px;
    background: var(--accent);
    color: #111;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

button.ok { background: var(--success); color: #101010; }
button.danger, button.warn { background: var(--error); color: #101010; }
button.soft, button.alt, .tab-btn, .subtab-btn, .collapse-btn, .auth-tab { background: #a3e635; color: #101010; }
.tab-btn.active, .subtab-btn.active, .auth-tab.active { background: var(--accent); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.grid,
.actions {
    display: grid;
    gap: 8px;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: end;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.subtabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 10px 0;
}

.tab-panel,
.create-panel,
.auth-panel {
    display: none;
}

.tab-panel.active,
.create-panel.active,
.auth-panel.active {
    display: block;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

label {
    display: block;
    font-size: 0.84rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

input,
select,
textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    border-radius: 12px;
}

select {
    border-color: rgba(132, 204, 22, 0.55);
}

select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.18);
}

select option:checked,
select option:hover,
select option:focus {
    background: var(--accent);
    color: #111;
}

input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.muted,
#pushState,
p {
    color: var(--text-dim);
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--text);
}

.stats,
.pill {
    display: inline-block;
    background: rgba(132, 204, 22, 0.12);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.84rem;
    margin-right: 8px;
}

.hidden {
    display: none;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

th,
td {
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 8px 6px;
    vertical-align: top;
}

pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

li {
    margin-bottom: 6px;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.schedule-day {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.notice {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(132, 204, 22, 0.12);
    color: var(--text);
    font-size: 0.92rem;
    display: none;
}

.notice.error {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

h1 {
    font-size: clamp(1.3rem, 4.8vw, 2rem);
}

button,
input,
select,
textarea {
    font-size: 16px;
}

.section-head {
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    main,
    .hero {
        width: calc(100% - 20px);
        padding: 12px;
    }

    .card {
        padding: 12px;
    }

    .row,
    .toolbar,
    .subtabs,
    .tabs,
    .auth-tabs {
        grid-template-columns: 1fr;
    }

    .stats,
    .pill {
        margin-bottom: 6px;
    }
}

@media (max-width: 640px) {
    main,
    .hero {
        width: calc(100% - 16px);
        padding: 10px;
    }

    table {
        font-size: 0.82rem;
    }

    th,
    td {
        padding: 7px 5px;
    }

    .schedule-row {
        grid-template-columns: 1fr;
    }

    .schedule-day {
        justify-content: flex-start;
    }
}

/* --- Landing refinements --- */
.landing-page {
    background:
        radial-gradient(circle at 85% 5%, rgba(132, 204, 22, 0.2), transparent 34%),
        radial-gradient(circle at 12% 88%, rgba(34, 197, 94, 0.16), transparent 36%),
        var(--bg);
}

.landing-main {
    width: min(980px, 100% - 24px);
    margin: 0 auto;
    padding: 22px 0 30px;
}

.landing-hero {
    background: linear-gradient(145deg, rgba(132, 204, 22, 0.1), rgba(22, 22, 22, 0.95));
    border-color: rgba(132, 204, 22, 0.34);
}

.landing-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(132, 204, 22, 0.5);
    color: #d9f99d;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.82rem;
}

.landing-hero h1 {
    margin-bottom: 10px;
    line-height: 1.15;
}

.landing-copy {
    max-width: 62ch;
    margin-bottom: 14px;
}

.landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.landing-cta {
    min-width: 180px;
    text-align: center;
}

.landing-cta.ghost {
    background: transparent;
    border: 1px solid rgba(132, 204, 22, 0.55);
    color: #d9f99d;
}

.landing-cta.ghost:hover {
    background: rgba(132, 204, 22, 0.14);
}

.landing-push {
    margin-top: 4px;
    font-size: 0.92rem;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.landing-surface {
    background: rgba(22, 22, 22, 0.92);
}

.landing-links {
    margin-top: 8px;
}

.landing-links a {
    font-weight: 600;
}

@media (max-width: 760px) {
    .landing-main {
        width: calc(100% - 14px);
        padding-top: 14px;
    }

    .landing-grid {
        grid-template-columns: 1fr;
    }

    .landing-cta {
        width: 100%;
    }
}

.result-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: grid;
    place-items: center;
    padding: 16px;
    z-index: 9999;
}

.result-modal-backdrop.hidden {
    display: none !important;
}

.result-modal {
    width: min(760px, 100%);
    max-height: min(85vh, 780px);
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.result-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.result-modal-close {
    width: auto;
    padding: 8px 12px;
}

.result-modal-body {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: var(--surface2);
}

.result-modal-body.error {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.12);
}

/* --- Drivers layout (base: admin styles) --- */
.dashboard-stack {
    display: grid;
    gap: 12px;
}

.driver-head-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.driver-head-row .pill {
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.9rem;
}

#ordersList {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

#ordersList li {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: var(--surface2);
    display: grid;
    gap: 8px;
}

.order-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    font-weight: 600;
}

.order-subline {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.btn-apply-order {
    margin: 0;
    min-height: 46px;
    font-size: 1rem;
    font-weight: 700;
    background: var(--accent);
    color: #111;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.row.single-row {
    grid-template-columns: 1fr;
}

#scheduleGrid {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.schedule-row {
    grid-template-columns: minmax(150px, 1.3fr) 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(132, 204, 22, 0.06);
}

.schedule-day {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
}

.schedule-day input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.schedule-save-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
}

#btnSaveSchedule {
    margin-top: 0;
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
}

.schedule-save-state {
    margin: 0;
    flex: 1;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    display: none;
}

.schedule-save-state.pending {
    display: block;
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.35);
    color: #fdba74;
}

.schedule-save-state.ok {
    display: block;
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
    color: #86efac;
}

.schedule-save-state.error {
    display: block;
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

@media (max-width: 760px) {
    .driver-head-row {
        grid-template-columns: 1fr;
    }

    .schedule-row {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-day {
        grid-column: 1 / -1;
    }
}

/* --- Drivers boot splash --- */
.boot-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-content: center;
    gap: 10px;
    background: radial-gradient(circle at 20% 20%, rgba(132, 204, 22, 0.18), transparent 45%), var(--bg);
}

.boot-splash.hidden {
    display: none !important;
}

.boot-spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(132, 204, 22, 0.22);
    border-top-color: var(--accent);
    animation: spin 0.9s linear infinite;
    margin: 0 auto;
}

.boot-text {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.01em;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
