        :root {
            --bg: #0b0f12;
            --panel: #12161a;
            --border: #1f262d;
            --text: #e5e7eb;
            --muted: #9aa3b2;
            --primary: #22c55e;
            --primary-soft: rgba(34, 197, 94, 0.14);
            --warning: #f59e0b;
            --danger: #ef4444;
            --sidebar: #0a0e11;
            --sidebar-text: #cbd5e1;
            --panel-glow: 0 12px 30px rgba(0, 0, 0, 0.35);
        }

        * { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
            color: var(--text);
            background: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.08), transparent 45%), var(--bg);
        }

        .app {
            display: grid;
            grid-template-columns: 240px minmax(0, 1fr);
            min-height: 100vh;
        }

        .sidebar {
            background: linear-gradient(180deg, #0a0e11 0%, #0b1116 100%);
            color: var(--sidebar-text);
            padding: 24px 18px;
            display: flex;
            flex-direction: column;
            gap: 24px;
            border-right: 1px solid rgba(255, 255, 255, 0.04);
        }

        .brand {
            font-size: 18px;
            font-weight: 700;
            letter-spacing: 0.4px;
        }

        .nav {
            display: grid;
            gap: 10px;
        }

        .nav-item {
            padding: 10px 12px;
            border-radius: 10px;
            color: var(--sidebar-text);
            font-weight: 500;
            font-size: 14px;
            background: transparent;
            border: 1px solid transparent;
        }

        .nav-item.active {
            background: rgba(34, 197, 94, 0.12);
            border-color: rgba(34, 197, 94, 0.2);
            color: #e2fbe9;
        }

        .main {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .topbar {
            padding: 16px 24px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(18, 22, 26, 0.92);
            backdrop-filter: blur(8px);
        }

        .topbar h1 {
            font-size: 18px;
            margin: 0;
            font-weight: 600;
        }

        .content {
            padding: 24px;
            display: grid;
            gap: 18px;
        }

        .panel {
            background: linear-gradient(180deg, rgba(18, 22, 26, 0.98) 0%, rgba(15, 19, 23, 0.98) 100%);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--panel-glow);
        }

        .grid {
            display: grid;
            gap: 16px;
        }

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

        .muted { color: var(--muted); font-size: 13px; }

        label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }

        input, textarea {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 14px;
            font-family: inherit;
            background: #0f1317;
            color: var(--text);
        }

        textarea { resize: vertical; min-height: 90px; }

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

        .btn {
            border: 1px solid transparent;
            border-radius: 10px;
            padding: 9px 14px;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
        }

        .btn-primary { background: var(--primary); color: #07130a; border-color: transparent; }
        .btn-outline { background: #0f1317; color: var(--text); border-color: var(--border); }
        .btn-ghost { background: transparent; color: var(--text); border-color: transparent; }

        .status {
            padding: 10px 12px;
            border-radius: 10px;
            font-size: 13px;
            background: var(--primary-soft);
            color: #b7f4cc;
            border: 1px solid rgba(34, 197, 94, 0.2);
        }

        .status.warn { background: rgba(245, 158, 11, 0.15); color: #b45309; }
        .status.error { background: rgba(239, 68, 68, 0.15); color: #b91c1c; }

        .pill {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            background: rgba(34, 197, 94, 0.12);
            color: #15803d;
        }

        .pill.warn { background: rgba(245, 158, 11, 0.15); color: #b45309; }
        .pill.rejected { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
        .pill.muted { background: rgba(148, 163, 184, 0.2); color: var(--muted); }

        .table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        .table th, .table td {
            border-bottom: 1px solid var(--border);
            padding: 10px 8px;
            text-align: left;
        }

        .table tbody tr:hover {
            background: rgba(34, 197, 94, 0.06);
        }

        .hidden { display: none; }

        .unit-field {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .unit-field span { font-weight: 600; color: var(--muted); }

        body[data-view="auth"] .sidebar,
        body[data-view="auth"] .topbar {
            display: none;
        }

        body[data-view="auth"] .app {
            grid-template-columns: 1fr;
        }

        body[data-view="auth"] .content {
            min-height: 100vh;
            place-items: center;
        }

        .auth-panel {
            max-width: 420px;
            width: 100%;
        }

        .balance-card {
            padding: 16px;
            border: 1px solid var(--border);
            border-radius: 12px;
        }

        .balance-card h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
        .balance-card strong { font-size: 20px; }

        @media (max-width: 900px) {
            .app { grid-template-columns: 1fr; }
            .sidebar { display: none; }
            .grid-2, .grid-3 { grid-template-columns: 1fr; }
        }
    </style>
