
/* light-theme polish */
[data-theme="light"] .sidebar::-webkit-scrollbar-thumb { background: #d6d6e4; }
[data-theme="light"] .sidebar::-webkit-scrollbar-thumb:hover { background: #c2c2d4; }
.legend-row .bar-mini > i { background: linear-gradient(90deg, #7c5cff, #a78bfa); }
[data-theme="light"] .legend-row .bar-mini { background: #ececf4; }
[data-theme="light"] .bars .bar > span { color: #6f6f86; }
[data-theme="light"] .kpi-foot, [data-theme="light"] .card-head .sub { color: #6f6f86; }
 --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .13);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .13);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, .13);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #c0b3ff; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
p { margin: 0 0 10px; }
small { font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #2a2a38; border-radius: 3px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #7c5cff, #4f2dd6);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff;
  box-shadow: 0 6px 18px rgba(124, 92, 255, .35);
}
.brand-name { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--text-muted); }

.nav { padding: 4px 10px 20px; }
.nav-group { margin-top: 14px; }
.nav-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-muted); padding: 6px 10px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7.5px 10px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: 13.5px; font-weight: 500;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: #cfc4ff; }
.nav-item.active .nav-ico { color: var(--accent-2); }
.nav-ico { width: 16px; text-align: center; opacity: .9; font-size: 13px; }
.nav-item .badge { margin-left: auto; }
.sidebar-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--border); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; flex: 0 0 58px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 16, .86);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 30;
}
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.crumbs b { color: var(--text); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 11px 5px 5px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #3d3468, #7c5cff);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
}
.content { padding: 22px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border-soft);
}
.card-head h2 { font-size: 14px; font-weight: 600; }
.card-head .sub { color: var(--text-muted); font-size: 12px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--border-soft); background: var(--bg-soft); }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g-2-1, .g-1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .g2, .g4 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 14px; }
}

/* ---------- KPI ---------- */
.kpi { padding: 15px 16px; display: flex; flex-direction: column; gap: 6px; }
.kpi-label { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: 25px; font-weight: 650; letter-spacing: -.02em; }
.kpi-value span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.kpi-foot { font-size: 12px; color: var(--text-muted); }
.up { color: var(--ok); }
.down { color: var(--danger); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 33px; padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { background: var(--panel-3); border-color: #33334a; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, .3);
}
.btn-primary:hover { background: #8b6dff; border-color: #8b6dff; }
.btn-ghost { background: transparent; }
.btn-danger { color: #ffb4b4; border-color: rgba(248, 113, 113, .35); background: var(--danger-soft); }
.btn-danger:hover { background: rgba(248, 113, 113, .22); }
.btn-sm { height: 27px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn-icon { width: 27px; height: 27px; padding: 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field > label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.input, .select, textarea {
  width: 100%; height: 34px; padding: 0 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: 13px;
  outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 78px; padding: 9px 10px; resize: vertical; }
.input:focus, .select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder { color: #55556b; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7d7d95 50%), linear-gradient(135deg, #7d7d95 50%, transparent 50%); background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 150px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; min-width: 130px; }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 15px; height: 15px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 9px 12px; background: var(--bg-soft);
  border-bottom: 1px solid var(--border); white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
tbody td { padding: 8px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
tbody tr:hover { background: var(--hover); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions { text-align: right; white-space: nowrap; }
.tfoot td { background: var(--bg-soft); font-weight: 600; border-top: 1px solid var(--border); }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 550; white-space: nowrap;
  background: var(--panel-3); color: var(--text-dim);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px; font-size: 12px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim);
}
.chip:hover { border-color: #3a3a52; color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: rgba(124,92,255,.4); color: #cfc4ff; }

/* ---------- misc ---------- */
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.right { margin-left: auto; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-col { display: flex; flex-direction: column; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.empty { padding: 36px 20px; text-align: center; color: var(--text-muted); }
.empty-ico { font-size: 26px; opacity: .5; margin-bottom: 6px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.progress { height: 5px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #7c5cff, #a78bfa); border-radius: 3px; }
.tag-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.tag-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.page-head .titles h1 { font-size: 20px; }
.page-head .titles .sub { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.page-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 4px; }
.tab {
  padding: 9px 13px; font-size: 13px; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500;
}
.tab:hover { color: var(--text-dim); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- charts ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 132px; padding-top: 8px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.bars .bar > i {
  width: 100%; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #8b6dff, rgba(124,92,255,.35));
  min-height: 3px; transition: filter .15s;
}
.bars .bar:hover > i { filter: brightness(1.25); }
.bars .bar > span { font-size: 10px; color: var(--text-muted); }
.bars .bar.today > i { background: linear-gradient(180deg, #34d399, rgba(52,211,153,.35)); }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 6px 0; }
.legend-row .bar-mini { flex: 1; height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.legend-row .bar-mini > i { display: block; height: 100%; border-radius: 3px; }

/* ---------- schedule matrix ---------- */
.matrix { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.matrix th, .matrix td { border-bottom: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft); padding: 0; }
.matrix thead th { background: var(--bg-soft); padding: 7px 8px; font-size: 11px; text-align: center; min-width: 86px; }
.matrix thead th.emp-col { text-align: left; min-width: 200px; position: sticky; left: 0; z-index: 3; }
.matrix tbody th {
  text-align: left; padding: 7px 10px; background: var(--panel);
  position: sticky; left: 0; z-index: 2; font-weight: 500; min-width: 200px;
}
.matrix tbody tr:hover th { background: var(--panel-2); }
.matrix td { height: 44px; text-align: center; vertical-align: middle; }
.matrix td.weekend { background: rgba(255,255,255,.012); }
.matrix td.holiday { background: rgba(124,92,255,.05); }
.matrix td .shift-pill {
  display: block; margin: 2px auto; padding: 2px 4px; border-radius: 5px;
  font-size: 10.5px; font-weight: 550; line-height: 1.35;
  border: 1px solid transparent; cursor: pointer;
}
.matrix td .add-cell {
  display: block; width: 100%; height: 100%; min-height: 40px;
  color: transparent; font-size: 15px; line-height: 40px; text-decoration: none;
}
.matrix td:hover .add-cell { color: var(--text-muted); background: rgba(124,92,255,.06); }
.day-head small { display: block; font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.day-head.weekend { color: var(--danger); }

/* ---------- timesheet ---------- */
.ts-table { font-size: 11.5px; }
.ts-table th, .ts-table td { padding: 4px 5px; text-align: center; white-space: nowrap; }
.ts-table tbody th { text-align: left; position: sticky; left: 0; background: var(--panel); z-index: 2; font-weight: 500; }
.ts-table td.cell { min-width: 27px; font-variant-numeric: tabular-nums; }
.ts-table td.cell.has { background: rgba(52, 211, 153, .1); color: #a7f3d0; }
.ts-table td.cell.plan { background: rgba(124, 92, 255, .07); color: #a99bff; }
.ts-table td.cell.weekend { background: rgba(255,255,255,.02); }
.ts-table td.cell.code { font-weight: 600; }

/* ---------- login ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(124,92,255,.20), transparent 60%),
    radial-gradient(760px 420px at 92% 108%, rgba(56,189,248,.10), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 386px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; box-shadow: var(--shadow);
}
.login-card .brand { padding: 0 0 18px; }
.login-hint {
  margin-top: 16px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}

/* ---------- toast ---------- */
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border-radius: var(--radius-sm);
  font-size: 13px; border: 1px solid;
}
.toast.ok { background: var(--ok-soft); border-color: rgba(52,211,153,.3); color: #a7f3d0; }
.toast.err { background: var(--danger-soft); border-color: rgba(248,113,113,.3); color: #fecaca; }

/* ---------- dialog ---------- */
dialog {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel); color: var(--text);
  padding: 0; width: min(520px, 94vw); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(5, 5, 10, .65); backdrop-filter: blur(3px); }
dialog .card-head { border-radius: var(--radius) var(--radius) 0 0; }
dialog form { padding: 16px; }
dialog .card-foot { border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: 0 0 8px; }
.timeline-dot.warn { background: var(--warn); }
.timeline-dot.danger { background: var(--danger); }
.timeline-dot.ok { background: var(--ok); }

/* ---------- calendar heat ---------- */
.holiday-list { display: flex; flex-direction: column; }
.holiday-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.holiday-row:last-child { border-bottom: 0; }
.holiday-date { width: 46px; font-variant-numeric: tabular-nums; color: var(--text-dim); font-size: 12px; }

/* ============================================================
   Light theme  (data-theme="light" on <html>)
   ============================================================ */
[data-theme="light"] {
  --bg: #f5f5fa;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f4f4f9;
  --panel-3: #ececf4;
  --border: #e3e3ee;
  --border-soft: #eeeef6;
  --text: #1b1b26;
  --text-dim: #4d4d63;
  --text-muted: #77778e;
  --accent: #6d4aff;
  --accent-2: #5b39e8;
  --accent-soft: rgba(109, 74, 255, .10);
  --ok: #0f9d68;
  --ok-soft: rgba(15, 157, 104, .10);
  --warn: #b45309;
  --warn-soft: rgba(217, 119, 6, .12);
  --danger: #d92d20;
  --danger-soft: rgba(217, 45, 32, .09);
  --info: #0369a1;
  --info-soft: rgba(3, 105, 161, .10);
  --hover: rgba(17, 17, 40, .035);
  --shadow: 0 8px 24px rgba(24, 24, 60, .10);
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .sidebar { background: #fbfbfe; }
[data-theme="light"] .topbar { background: rgba(255, 255, 255, .88); }
[data-theme="light"] .brand-mark {
  box-shadow: 0 6px 16px rgba(109, 74, 255, .28);
}
[data-theme="light"] .nav-item.active { color: #5533e6; }
[data-theme="light"] .nav-item.active .nav-ico { color: #5b39e8; }
[data-theme="light"] .nav-item:hover { background: var(--panel-2); }
[data-theme="light"] .btn { background: #fff; border-color: var(--border); color: var(--text); }
[data-theme="light"] .btn:hover { background: var(--panel-2); border-color: #d3d3e3; }
[data-theme="light"] .btn-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 12px rgba(109, 74, 255, .24);
}
[data-theme="light"] .btn-primary:hover { background: #7a5cff; border-color: #7a5cff; }
[data-theme="light"] .btn-ghost { background: transparent; }
[data-theme="light"] .btn-danger {
  color: #b42318; border-color: rgba(217, 45, 32, .28); background: var(--danger-soft);
}
[data-theme="light"] .input, [data-theme="light"] .select, [data-theme="light"] textarea {
  background-color: #fff; border-color: #dcdce8;
}
[data-theme="light"] .input::placeholder { color: #9b9bb0; }
[data-theme="light"] .input:focus, [data-theme="light"] .select:focus,
[data-theme="light"] textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
[data-theme="light"] .select {
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #77778e 50%),
                    linear-gradient(135deg, #77778e 50%, transparent 50%);
  background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
[data-theme="light"] thead th { background: #fafafe; color: #6b6b85; }
[data-theme="light"] .tfoot td { background: #fafafe; }
[data-theme="light"] .card-foot { background: #fafafe; }
[data-theme="light"] .badge { background: var(--panel-3); color: var(--text-dim); }
[data-theme="light"] .badge.ok { background: var(--ok-soft); color: var(--ok); }
[data-theme="light"] .badge.warn { background: var(--warn-soft); color: var(--warn); }
[data-theme="light"] .badge.danger { background: var(--danger-soft); color: var(--danger); }
[data-theme="light"] .badge.info { background: var(--info-soft); color: var(--info); }
[data-theme="light"] .badge.accent { background: var(--accent-soft); color: #5533e6; }
[data-theme="light"] .chip { background: #fff; border-color: var(--border); }
[data-theme="light"] .chip.on { background: var(--accent-soft); border-color: rgba(109,74,255,.35); color: #5533e6; }
[data-theme="light"] .avatar { color: #fff; }
[data-theme="light"] .user-chip { background: #fff; }
[data-theme="light"] .login-wrap {
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(109,74,255,.13), transparent 60%),
    radial-gradient(760px 420px at 92% 108%, rgba(56,189,248,.10), transparent 60%),
    var(--bg);
}
[data-theme="light"] .login-card { background: #fff; }
[data-theme="light"] .login-hint { background: #fafafe; }
[data-theme="light"] dialog { background: #fff; }
[data-theme="light"] dialog::backdrop { background: rgba(28, 28, 50, .35); }
[data-theme="light"] .bars .bar > i { background: linear-gradient(180deg, #8b6dff, rgba(124,92,255,.45)); }
[data-theme="light"] .progress { background: #ececf4; }
[data-theme="light"] .matrix tbody th { background: #fff; }
[data-theme="light"] .matrix tbody tr:hover th { background: #fafafe; }
[data-theme="light"] .matrix thead th { background: #fafafe; }
[data-theme="light"] .matrix td.weekend { background: #fbfbfe; }
[data-theme="light"] .matrix td.holiday { background: rgba(109,74,255,.05); }
[data-theme="light"] .matrix td:hover .add-cell { background: rgba(109,74,255,.06); }
[data-theme="light"] .ts-table tbody th { background: #fff; }
[data-theme="light"] .ts-table td.cell.has { background: rgba(15,157,104,.10); color: #0b6b49; }
[data-theme="light"] .ts-table td.cell.plan { background: rgba(109,74,255,.06); color: #5533e6; }
[data-theme="light"] .ts-table td.cell.weekend { background: #fbfbfe; }
[data-theme="light"] .toast.ok { background: var(--ok-soft); color: #0b6b49; }
[data-theme="light"] .toast.err { background: var(--danger-soft); color: #b42318; }
[data-theme="light"] .btn[disabled] { opacity: .5; }

/* theme switch */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 14px; line-height: 1;
}
.theme-toggle:hover { background: var(--panel-2); color: var(--text); }

[data-theme="light"] thead th { color: #575770; }
[data-theme="light"] .section-title { color: #6a6a83; }
