* { box-sizing: border-box; }
        body {
            margin: 0;
            min-height: 100vh;
            font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: #f5f7fb;
            color: #111827;
        }
        .admin-shell {
            min-height: 100vh;
            display: grid;
            grid-template-columns: minmax(320px, 440px) 1fr;
        }
        .login-panel {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 48px 32px;
            background: #fff;
            border-right: 1px solid #e5e7eb;
        }
        .login-box { width: min(100%, 360px); }
        .brand {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 52px;
            color: #111827;
            font-weight: 900;
            letter-spacing: 0;
            text-decoration: none;
        }
        .brand-mark {
            width: 32px;
            height: 32px;
            display: inline-grid;
            place-items: center;
            border-radius: 8px;
            background: #111827;
            color: #fff;
            font-size: 14px;
        }
        h1 {
            margin: 0;
            font-size: 30px;
            line-height: 1.2;
            letter-spacing: 0;
        }
        .sub {
            margin: 12px 0 32px;
            color: #667085;
            font-size: 14px;
            line-height: 1.6;
        }
        .form {
            display: grid;
            gap: 16px;
        }
        .field {
            display: grid;
            gap: 8px;
        }
        label {
            font-size: 13px;
            font-weight: 800;
            color: #344054;
        }
        input {
            width: 100%;
            height: 46px;
            border: 1px solid #d0d5dd;
            border-radius: 8px;
            padding: 0 14px;
            background: #fff;
            color: #111827;
            font-size: 15px;
            outline: none;
        }
        input:focus {
            border-color: #111827;
            box-shadow: 0 0 0 3px rgba(17,24,39,.08);
        }
        button {
            height: 46px;
            border: 0;
            border-radius: 8px;
            background: #111827;
            color: #fff;
            font-size: 15px;
            font-weight: 900;
            cursor: pointer;
        }
        button:disabled {
            background: #98a2b3;
            cursor: wait;
        }
        .message {
            min-height: 20px;
            margin: 0;
            color: #d92d20;
            font-size: 13px;
            line-height: 1.5;
        }
        .security-note {
            margin-top: 28px;
            padding-top: 20px;
            border-top: 1px solid #eaecf0;
            color: #667085;
            font-size: 12px;
            line-height: 1.6;
        }
        .visual {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 56px;
        }
        .status-board {
            width: min(100%, 680px);
            display: grid;
            gap: 18px;
        }
        .eyebrow {
            margin: 0;
            color: #475467;
            font-size: 13px;
            font-weight: 900;
        }
        .visual h2 {
            margin: 0;
            max-width: 620px;
            font-size: 44px;
            line-height: 1.15;
            letter-spacing: 0;
        }
        .metric-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            margin-top: 26px;
        }
        .metric {
            min-height: 116px;
            padding: 20px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background: #fff;
        }
        .metric strong {
            display: block;
            font-size: 26px;
            line-height: 1;
        }
        .metric span {
            display: block;
            margin-top: 12px;
            color: #667085;
            font-size: 13px;
        }
        .admin-home {
            display: none;
            min-height: 100vh;
            padding: 40px;
        }
        .admin-home.is-active {
            display: block;
        }
        .home-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding-bottom: 24px;
            border-bottom: 1px solid #e5e7eb;
        }
        .home-bar h1 { font-size: 28px; }
        .logout {
            width: auto;
            padding: 0 18px;
            background: #fff;
            color: #111827;
            border: 1px solid #d0d5dd;
        }
        .admin-summary {
            margin-top: 28px;
            padding: 24px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background: #fff;
        }
        .admin-summary p {
            margin: 8px 0 0;
            color: #667085;
        }
        .admin-layout {
            display: grid;
            grid-template-columns: 240px minmax(0, 1fr);
            gap: 28px;
            margin-top: 28px;
        }
        .admin-menu {
            align-self: start;
            display: grid;
            gap: 8px;
            padding: 12px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background: #fff;
        }
        .menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 42px;
            padding: 0 12px;
            border: 0;
            border-radius: 8px;
            background: transparent;
            color: #475467;
            font-size: 14px;
            font-weight: 800;
            text-align: left;
            text-decoration: none;
            cursor: pointer;
        }
        .menu-item.is-active {
            background: #111827;
            color: #fff;
        }
        .content-panel {
            min-width: 0;
            display: grid;
            gap: 18px;
        }
        .content-panel[hidden] {
            display: none;
        }
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }
        .summary-card {
            padding: 18px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background: #fff;
        }
        .summary-card span {
            color: #667085;
            font-size: 13px;
            font-weight: 800;
        }
        .summary-card strong {
            display: block;
            margin-top: 10px;
            font-size: 28px;
            line-height: 1;
        }
        .toolbar {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding: 16px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background: #fff;
        }
        .toolbar input,
        .toolbar select {
            height: 40px;
            border: 1px solid #d0d5dd;
            border-radius: 8px;
            padding: 0 12px;
            background: #fff;
            color: #111827;
            font-size: 14px;
        }
        .toolbar input { width: min(100%, 320px); }
        .toolbar-actions {
            display: flex;
            gap: 8px;
        }
        .table-wrap {
            overflow-x: auto;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background: #fff;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 860px;
        }
        th,
        td {
            padding: 14px 16px;
            border-bottom: 1px solid #eaecf0;
            font-size: 13px;
            text-align: left;
            vertical-align: middle;
        }
        th {
            background: #f9fafb;
            color: #475467;
            font-weight: 900;
        }
        tbody tr:hover { background: #f9fafb; }
        .muted { color: #667085; }
        .badge {
            display: inline-flex;
            align-items: center;
            min-height: 24px;
            padding: 0 9px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 900;
        }
        .badge.pending {
            background: #fff4e5;
            color: #b54708;
        }
        .badge.approved {
            background: #e9f8ef;
            color: #067647;
        }
        .badge.rejected {
            background: #fee4e2;
            color: #b42318;
        }
        .row-action {
            width: auto;
            height: 34px;
            padding: 0 12px;
            border: 1px solid #d0d5dd;
            border-radius: 8px;
            background: #fff;
            color: #111827;
            font-size: 13px;
            font-weight: 900;
        }
        .row-action.primary {
            border-color: #111827;
            background: #111827;
            color: #fff;
        }
        .row-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        .field-wide {
            grid-column: 1 / -1;
        }
        .table-message {
            margin: 0;
            color: #667085;
            font-size: 13px;
        }
        .modal-backdrop {
            position: fixed;
            inset: 0;
            z-index: 100;
            display: grid;
            place-items: center;
            padding: 24px;
            background: rgba(17,24,39,.48);
        }
        .modal-backdrop[hidden] { display: none; }
        .modal-panel {
            width: min(100%, 720px);
            max-height: calc(100vh - 48px);
            overflow: auto;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 28px 80px rgba(17,24,39,.24);
        }
        .modal-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            padding: 24px 24px 16px;
            border-bottom: 1px solid #eaecf0;
        }
        .modal-head h2 {
            margin: 6px 0 0;
            font-size: 24px;
            line-height: 1.25;
        }
        .icon-button {
            width: 34px;
            height: 34px;
            border: 1px solid #d0d5dd;
            border-radius: 8px;
            background: #fff;
            color: #111827;
            font-size: 22px;
            line-height: 1;
        }
        .edit-form {
            display: grid;
            gap: 16px;
            padding: 24px;
        }
        .field-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }
        .field-grid label {
            display: grid;
            gap: 8px;
            color: #344054;
            font-size: 13px;
            font-weight: 900;
        }
        .field-grid input,
        .field-grid select {
            height: 42px;
            border: 1px solid #d0d5dd;
            border-radius: 8px;
            padding: 0 12px;
            background: #fff;
            color: #111827;
            font-size: 14px;
            outline: none;
        }
        .field-grid input:focus,
        .field-grid select:focus {
            border-color: #111827;
            box-shadow: 0 0 0 3px rgba(17,24,39,.08);
        }
        .field-grid input.is-invalid,
        .field-grid select.is-invalid {
            border-color: #d92d20;
            box-shadow: 0 0 0 3px rgba(217,45,32,.12);
        }
        .form-help,
        .modal-message {
            margin: 0;
            color: #667085;
            font-size: 13px;
            line-height: 1.5;
        }
        .modal-message.is-error { color: #d92d20; }
        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
        }
        body[data-authenticated="true"] .admin-shell { display: none; }
        body[data-authenticated="true"] .admin-home { display: block; }
        @media (max-width: 860px) {
            .admin-shell { grid-template-columns: 1fr; }
            .login-panel {
                min-height: 100vh;
                border-right: 0;
            }
            .visual { display: none; }
            .brand { margin-bottom: 42px; }
            h1 { font-size: 26px; }
            .admin-home { padding: 24px; }
            .home-bar {
                align-items: flex-start;
                flex-direction: column;
            }
            .admin-layout {
                grid-template-columns: 1fr;
            }
            .summary-grid {
                grid-template-columns: 1fr;
            }
            .toolbar {
                flex-direction: column;
            }
            .toolbar-actions {
                flex-direction: column;
            }
            .toolbar input { width: 100%; }
            .field-grid {
                grid-template-columns: 1fr;
            }
            .modal-actions {
                justify-content: stretch;
            }
            .modal-actions .row-action {
                flex: 1;
            }
        }
