
        * { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            background: #f4f6f8;
            color: #111827;
        }

        .page {
            max-width: 980px;
            margin: 0 auto;
            padding: 16px;
        }

        .topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .titlebox {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px 18px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.06);
            flex: 1 1 320px;
        }

        .titlebox h1 {
            margin: 0;
            font-size: 28px;
        }

        .titlebox p {
            margin: 6px 0 0 0;
            color: #6b7280;
        }

        .actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .btn,
        .btn-inline {
            display: inline-block;
            border: 0;
            background: #0f172a;
            color: #fff;
            text-decoration: none;
            padding: 10px 14px;
            border-radius: 10px;
            font-size: 15px;
            cursor: pointer;
        }

        .btn:hover,
        .btn-inline:hover {
            background: #1e293b;
        }

        .btn-light {
            background: #e5e7eb;
            color: #111827;
        }

        .btn-light:hover {
            background: #d1d5db;
        }

        .btn-danger {
            background: #b91c1c;
        }

        .btn-danger:hover {
            background: #991b1b;
        }

        .month-nav {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 12px;
            align-items: center;
            background: #ffffff;
            border-radius: 16px;
            padding: 14px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.06);
            margin-bottom: 16px;
        }

        .month-nav .center {
            text-align: center;
            font-size: 30px;
            font-weight: bold;
        }

        .month-nav .left {
            text-align: left;
        }

        .month-nav .right {
            text-align: right;
        }

        .alert {
            border-radius: 12px;
            padding: 12px 14px;
            margin-bottom: 16px;
            font-weight: bold;
        }

        .alert-success {
            background: #dcfce7;
            color: #166534;
        }

        .alert-error {
            background: #fee2e2;
            color: #991b1b;
        }

        .weekend {
            margin-bottom: 18px;
            background: #ffffff;
            border-radius: 18px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.06);
            overflow: hidden;
        }

        .weekend-header {
            padding: 14px 16px;
            background: #0f172a;
            color: #ffffff;
            font-size: 18px;
            font-weight: bold;
        }


        .current-weekend {
            outline: 4px solid #f59e0b;
            scroll-margin-top: 16px;
        }

        .current-weekend .weekend-header {
            background: #92400e;
        }

        .current-badge {
            display: inline-block;
            margin-left: 8px;
            padding: 3px 8px;
            border-radius: 999px;
            background: #fef3c7;
            color: #92400e;
            font-size: 12px;
            vertical-align: middle;
        }

        .slot {
            padding: 14px 16px;
            border-top: 1px solid #e5e7eb;
        }

        .slot-grid {
            display: grid;
            grid-template-columns: 140px 120px 1fr auto;
            gap: 12px;
            align-items: center;
        }

        .slot-meta {
            font-weight: bold;
        }

        .slot-sub {
            color: #6b7280;
            font-size: 14px;
        }

        .taken-name {
            padding: 11px 12px;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            color: #065f46;
            border-radius: 10px;
            font-weight: bold;
        }

        .open-row input[type="text"] {
            width: 100%;
            padding: 11px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            font-size: 16px;
        }

        .status-pill {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: bold;
        }

        .status-open {
            background: #fef3c7;
            color: #92400e;
        }

        .status-taken {
            background: #d1fae5;
            color: #065f46;
        }

        .footer-link {
            text-align: center;
            padding: 14px 0 24px 0;
        }

        .footer-link a {
            color: #0f172a;
            font-weight: bold;
        }

        .empty {
            background: #ffffff;
            border-radius: 16px;
            padding: 24px;
            text-align: center;
            box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        }

        .inline-form {
            margin: 0;
        }

        @media (max-width: 760px) {
            .month-nav {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .month-nav .left,
            .month-nav .right {
                text-align: center;
            }

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

            .titlebox h1 {
                font-size: 24px;
            }

            .month-nav .center {
                font-size: 24px;
            }

            .btn,
            .btn-inline,
            .open-row input[type="text"] {
                width: 100%;
            }
        }
    
.login-card { max-width: 440px; margin: 3rem auto; padding: 1.5rem; background: white; border-radius: 16px; }
.login-card input { width: 100%; padding: 12px; margin: 10px 0 16px; font: inherit; }
.login-card label { display: block; font-weight: bold; }
.login-card .password-toggle { display: flex; gap: 8px; align-items: center; font-weight: normal; margin-bottom: 16px; }
.login-card .password-toggle input { width: auto; margin: 0; }
.skip-link { position: absolute; top: -60px; background: white; padding: 10px; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid #b06b17; outline-offset: 3px; }
.slot-grid { grid-template-columns: 140px 120px 1fr; }
.slot-form { display: flex; align-items: center; gap: 10px; }
.slot-form .taken-name, .slot-form input[type=text] { flex: 1; min-width: 0; }
.slot-form label { display: block; }
.slot-form input[type=text] { padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) { .slot-grid { grid-template-columns: 1fr; } .slot-form { flex-wrap: wrap; } .slot-form .taken-name { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
