/* Presentation layer for the staff portal. App IDs, routes and behavior stay in app.js. */
:root {
  --page: #f5f6f2;
  --panel: #ffffff;
  --chrome: #ffffff;
  --chrome-line: #e4e8e1;
  --gray-1: #ffffff;
  --gray-2: #f7f8f5;
  --gray-3: #eff2ec;
  --gray-4: #e7ebe3;
  --gray-5: #dfe5db;
  --gray-6: #d2dbcd;
  --gray-7: #c1ccbc;
  --gray-8: #a3b19e;
  --gray-9: #84917e;
  --gray-10: #667362;
  --gray-11: #61705f;
  --gray-12: #26352b;
  --line: #e7ebe3;
  --line-strong: #d5ddd0;
  --brand: #315b45;
  --brand-soft: #eaf0e5;
  --gold: #d7b773;
  --heading-font: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --shadow-card: 0 1px 3px #233a2710, 0 0 0 1px var(--line);
  --shadow-card-hover: 0 5px 20px #233a2710, 0 0 0 1px var(--line-strong);
}

/* Gelap = galaxy, like the login screen: deep-space navy, gold accents (the logo's), and glass panels
   over the night sky drawn on #app-sky. */
:root[data-theme="dark"] {
  --page: #05060c;
  --panel: #10131f;
  --chrome: rgba(7, 9, 18, .55);
  --chrome-line: rgba(255, 255, 255, .07);
  --gray-1: #0b0d17;
  --gray-2: #131726;
  --gray-3: #1b2033;
  --gray-4: #23293e;
  --gray-5: #2b3248;
  --gray-6: #353c54;
  --gray-7: #444b65;
  --gray-8: #5d6582;
  --gray-9: #757d99;
  --gray-10: #9097b0;
  --gray-11: #b5bacd;
  --gray-12: #eef0f7;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --brand: #f1c35a;
  --brand-soft: rgba(241, 195, 90, .13);
  --glass: rgba(16, 19, 31, .72);
  --shadow-card: 0 0 0 1px var(--line);
  --shadow-card-hover: 0 0 0 1px var(--line-strong);
}

body { font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif; }
button, input, select, textarea { font-family: inherit; }

/* A quiet, persistent navigation rail. Its palette also works in dark mode. */
.sidebar {
  --panel: #284235;
  --gray-1: #192e24;
  --gray-2: #223c2e;
  --gray-3: #2d4838;
  --gray-9: #92aa97;
  --gray-10: #a1b5a3;
  --gray-11: #b7c8b8;
  --gray-12: #f3f4e9;
  --line: #ffffff13;
  --line-strong: #ffffff26;
  --blue-9: #d7b773;
  --green-9: #79bd88;
  width: 240px;
  gap: 28px;
  padding: max(28px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: #1d3528;
  border-right: 1px solid #1d3528;
  color: var(--gray-12);
}
.side-top { gap: 28px; }
.side-top > div:first-child { padding-left: 0; }
.brand-link { flex-direction: row; align-items: center; gap: 10px; padding: 0; }
.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 43px;
  border: 1px solid #dfc79255;
  border-radius: 12px 12px 12px 3px;
  color: #eddbad;
  background: #dfc7920c;
  font-family: var(--heading-font);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -2px;
}
.brand-mark > span { align-self: flex-start; margin: 7px 0 0 1px; font-size: 15px; letter-spacing: 0; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.brand-name { font-family: var(--heading-font); font-size: 17px; letter-spacing: -.6px; }
.brand-company { font-size: 9.5px; font-weight: 400; letter-spacing: .1px; }
.side-eyebrow { margin: 14px 12px -14px; color: #95ad98; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.nav-group { gap: 14px; }
.nav-group-label { min-height: 44px; gap: 12px; padding: 10px 13px; border-radius: 9px; background: #d9e4ba12; color: #e7edd9; font-size: 12px; }
.nav-group-label .ph { color: #cfdbb2; font-size: 18px; }
.side-note { padding: 0 12px; font-size: 11px; line-height: 1.8; color: #a1b5a3; }
.nav-item { min-height: 37px; height: auto; padding: 9px 10px; font-size: 12px; }
.nav-item[aria-current="page"] { background: #d9e4ba1a; box-shadow: none; color: #f5f3dc; }
.nav-group-items { gap: 4px; margin-left: 20px; }
.side-middle { padding-top: 24px; }
.side-label { padding: 0 10px; margin-bottom: 12px; font-size: 10px; font-weight: 500; letter-spacing: .5px; }
.side-bottom { gap: 17px; padding-top: 24px; }
.sidebar .segmented { padding: 4px; border-radius: 9px; background: #12271c80; box-shadow: none; }
.sidebar .segmented button { height: 30px; font-size: 11px; }
.sidebar .segmented button[aria-pressed="true"] { background: #3b5140; color: #f1f1df; box-shadow: 0 1px 3px #0002; }
.user-card { gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.user-avatar { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 37px; border-radius: 10px; color: #e7dcbb; background: #e7dcbb17; }
.sidebar #role-badge { background: transparent; padding: 0; height: auto; margin-bottom: 3px; color: #a1b5a3; font-size: 10px; }
.sidebar #user-email { font-size: 11.5px; }
.sidebar .status-line { padding: 0 5px; font-size: 10px; color: #a1b5a3; }
.sidebar .status-dot { width: 6px; height: 6px; }
.sidebar #sign-out-btn, .sidebar #pw-change-btn { width: 27px; min-width: 27px; }

/* Primary topics remain exactly where the existing navigation expects them. */
.app-header { height: calc(64px + env(safe-area-inset-top, 0px)); background: var(--chrome); backdrop-filter: none; -webkit-backdrop-filter: none; }
.topic-tabs { align-items: center; gap: 5px; }
.topic-tab { height: 42px; gap: 8px; border-radius: 8px; padding: 0 12px; font-size: 12px; font-weight: 500; }
.topic-tab .ph { color: var(--gray-10); font-size: 17px; }
.topic-tab + .topic-tab::before, .topic-tab::after { display: none; }
.topic-tab[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.topic-tab[aria-current="page"] .ph { color: var(--brand); }
#main { max-width: none; padding-top: 24px; padding-bottom: 24px; min-height: calc(100dvh - 64px); }
.page-title { font-family: var(--heading-font); }

/* Welcome, local time, and the three daily summaries form a single reading path. */
.home-view { gap: 20px; padding: 0; }
.home-breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--gray-10); font-size: 11px; }
.home-breadcrumb .ph { font-size: 14px; }
.home-breadcrumb > span:last-child { color: var(--gray-12); font-weight: 500; }
.breadcrumb-divider { color: var(--gray-8); margin: 0 3px; }
.home-top { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(480px, 2fr) auto; grid-template-areas: 'intro stats clock'; align-items: center; gap: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.home-intro { grid-area: intro; min-width: 0; }
.home-welcome { margin-bottom: 5px; color: var(--gray-11); font-size: 12px; }
.home-greet { font-family: var(--heading-font); font-size: clamp(24px, 1.85vw, 32px); font-weight: 700; letter-spacing: -1px; line-height: 1.3; overflow-wrap: anywhere; text-wrap: initial; }
.greet-dot { color: #b9954b; }
.home-hint { margin: 0; font-size: 12px; }
.home-clock { grid-area: clock; align-items: flex-end; gap: 7px; padding: 4px 0 4px 24px; border-left: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; white-space: nowrap; }
.home-clock-now { gap: 2px; font-family: var(--heading-font); font-size: 28px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.home-clock-sec { font-size: 14px; font-weight: 500; color: var(--gray-10); letter-spacing: 0; }
.home-clock-part { margin-left: 6px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 400; }
.home-clock-date { color: var(--gray-11); font-size: 12px; font-weight: 500; }
.home-stats { grid-area: stats; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.home-stat {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border-radius: 11px;
  background: var(--gray-2);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.home-stat::before {
  content: '';
  grid-column: 2;
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  border: 7px solid color-mix(in srgb, var(--stat-color) 9%, var(--panel));
  border-radius: 9px;
  background-color: color-mix(in srgb, var(--stat-color) 9%, var(--panel));
  background-image: var(--stat-icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
  box-sizing: border-box;
}
.home-stat.is-kerja { --stat-color: #4e8b62; --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235b8063' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='14' rx='3'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12c5 3 13 3 18 0M10 13h4'/%3E%3C/svg%3E"); }
.home-stat.is-off { --stat-color: #8290ab; --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2379829c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h12v7a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4V8ZM16 8h2a3 3 0 1 1 0 6h-2M3 22h15M7 2v3M12 2v3'/%3E%3C/svg%3E"); }
.home-stat.is-cuti { --stat-color: #b18c45; --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ad8946' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 6 2 5 8 2-1-2-7 6-6c3-3 1-5-2-2l-6 6-7-2-2 2Z'/%3E%3C/svg%3E"); }
.home-stat.is-mc { --stat-color: #c0564b; --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c0564b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.home-stat-n { grid-column: 1; grid-row: 2; font-family: var(--heading-font); font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -1px; }
.home-stat-label { grid-column: 1; grid-row: 1; font-size: 11px; font-weight: 400; }
.home-stat:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.home-stat.is-holiday { grid-column: 1 / -1; }
.home-stat.is-holiday::before { display: none; }
.home-stat.is-holiday .home-stat-n { font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }

/* Branch colors remain the familiar colors from the offday calendar. */
.home-card { gap: 16px; padding: 20px; border-radius: 16px; box-shadow: var(--shadow-card); }
.hc-head { gap: 10px; }
.home-view .to-title { gap: 10px; font-family: var(--heading-font); font-size: 15px; font-weight: 700; letter-spacing: -.35px; }
.hc-head .to-title > .ph { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 17px; }
.hc-sum { color: var(--gray-10); font-size: 11px; }
.hc-head > .link-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 11px; font-weight: 500; color: var(--brand); }
.hc-head > .hc-link { margin-left: auto; }
.hc-head > .link-btn .ph { font-size: 13px; }
.hb-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 174px), 1fr)); gap: 12px; }
.hb-col { gap: 0; padding: 14px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); box-shadow: none; }
.hb-col-head { gap: 9px; padding-bottom: 12px; }
.hb-col-head .od-code { min-width: 34px; width: 34px; height: 34px; border-radius: 9px; font-size: 10px; font-weight: 700; }
.hb-col-head .to-name { font-family: var(--heading-font); font-size: 13px; font-weight: 700; letter-spacing: -.2px; }
.hb-col-head .to-role { margin-top: 3px; font-size: 10.5px; }
.hb-slot { gap: 4px; padding: 9px 0; }
.hb-slot:last-child { padding-bottom: 0; margin-top: auto; }
.hb-slot-head { gap: 5px; }
.hb-when { font-size: 11px; font-weight: 500; }
.home-view .hb-pill { max-width: 100%; padding: 3px 8px; border-radius: 5px; font-size: 9.5px; line-height: 1.5; white-space: normal; text-align: center; }
.home-view .hb-pill.is-on { background: color-mix(in srgb, var(--green-9) 9%, transparent); }
.hb-cover { font-size: 10.5px; line-height: 1.65; overflow-wrap: anywhere; }
.hb-cover .link-btn { padding: 1px 5px; margin-left: 1px; border-radius: 4px; background: var(--gray-3); color: var(--gray-12); font-size: 10px; }
.hb-missing { font-weight: 500; }

/* Leave cards keep their status colors but place people and dates first. */
.hcu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-height: none; overflow: visible; }
.hcu { gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); box-shadow: none; }
.hcu-top { margin-bottom: 4px; }
.hcu .pf-swatch { width: 29px; min-width: 29px; height: 18px; border-radius: 5px; font-size: 9px; box-shadow: none; }
.hcu .to-name { font-family: var(--heading-font); font-size: 13px; font-weight: 700; letter-spacing: -.1px; }
.hcu .to-role { font-size: 10.5px; }
.hcu-when { padding-top: 7px; margin-top: 5px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; }
.hcu .hc-tag { padding: 3px 7px; border-radius: 5px; font-size: 9px; font-weight: 500; }
.hcu .hc-tag.is-now { background: color-mix(in srgb, var(--green-9) 9%, transparent); }
.home-card .count-badge { min-width: 22px; height: 22px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 10px; }

@media (min-width: 1440px) {
  #main.safe-x { --px: 44px; }
  .hb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hb-col-head .to-name, .hcu .to-name { font-size: 14px; }
  .hb-col-head .to-role, .hcu .to-role { font-size: 12px; }
  .hb-when, .hcu-when { font-size: 12px; }
  .home-view .hb-pill { font-size: 10px; }
  .hb-cover { font-size: 11px; }
}
/* Keep the complete overview on one row on laptops as well as wide monitors. */
@media (min-width: 1200px) and (max-width: 1439px) {
  .home-top { grid-template-columns: minmax(180px, 1fr) minmax(400px, 2fr) auto; gap: 18px; padding: 20px; }
  .home-greet { font-size: 24px; }
  .home-stats { gap: 8px; }
  .home-stat { padding: 12px 10px; gap: 4px 6px; }
  .home-stat::before { width: 26px; height: 26px; border-width: 5px; background-size: 16px; }
  .home-clock { padding-left: 18px; }
  .home-clock-now { font-size: 26px; }
  .home-clock-date { font-size: 11px; }
}
@media (max-width: 1199px) {
  .home-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'intro clock' 'stats stats'; gap: 20px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hcu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-card { padding: 20px; }
  .hc-sum { order: 3; flex-basis: 100%; margin-left: 41px; }
  #home-branches .hc-head > .link-btn { margin-left: auto; }
}
@media (max-width: 1023px) {
  .app-header { height: calc(64px + env(safe-area-inset-top, 0px)); }
  .topic-tabs { gap: 4px; }
  .topic-tab { flex-shrink: 0; padding: 0 12px; font-size: 12px; }
  .hcu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #main { padding-top: 24px; }
}
@media (max-width: 767px) {
  .home-view { gap: 22px; }
  .home-top { gap: 20px 12px; padding: 20px; }
  .home-welcome { font-size: 12px; }
  .home-greet { font-size: 28px; letter-spacing: -1px; }
  .home-hint { font-size: 11px; }
  .home-clock { padding-left: 16px; }
  .home-clock-now { font-size: 23px; }
  .home-clock-sec { font-size: 13px; }
  .home-clock-part { font-size: 10px; margin-left: 3px; }
  .home-clock-date { font-size: 11px; }
  .home-stats { gap: 10px; }
  .home-stat { padding: 14px; gap: 6px; }
  .home-stat::before { width: 28px; height: 28px; border-width: 5px; border-radius: 8px; background-size: 16px; }
  .home-stat-n { font-size: 25px; }
  .home-stat-label { font-size: 11px; }
  .home-card { padding: 18px; gap: 18px; }
  .home-view .to-title { gap: 8px; font-size: 13px; }
  .hc-head { gap: 8px; }
  .hc-sum { order: 3; flex-basis: 100%; margin-left: 0; font-size: 10px; }
  .hc-head > .link-btn { font-size: 10px; margin-left: auto; }
  .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hb-col { padding: 13px; }
  .hcu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hcu { padding: 13px; }
}
@media (max-width: 599px) {
  .home-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'stats' 'clock'; gap: 18px; }
  .home-clock { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 599px) { .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) {
  .home-breadcrumb { font-size: 10px; }
  .home-top { padding: 18px; }
  .home-intro { padding-right: 0; }
  .home-clock-now { font-size: 24px; }
  .home-stats { gap: 8px; }
  .home-stat { padding: 12px; grid-template-columns: 1fr; }
  .home-stat::before { display: none; }
  .home-stat-n { font-size: 27px; }
  .home-stat-label { display: flex; align-items: center; gap: 5px; font-size: 10px; }
  .home-stat-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--stat-color); }
  .home-card { padding: 16px; }
  .hc-head > .link-btn { flex-basis: 100%; margin-left: 0; padding: 4px 6px; }
  .hc-sum { margin-top: 0; }
  .hb-grid, .hcu-grid { grid-template-columns: minmax(0, 1fr); }
  .hb-col { padding: 16px; }
  .hb-col-head .to-name, .hcu .to-name { font-size: 14px; }
  .hb-col-head .to-role, .hcu .to-role { font-size: 12px; }
  .hb-when, .hcu-when { font-size: 12px; }
  .home-view .hb-pill { font-size: 11px; }
  .hb-cover { font-size: 12px; }
  .hcu { padding: 16px; }
  .hcu .hc-tag { font-size: 10px; }
}
@media (hover: hover) and (pointer: fine) {
  .home-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
  .topic-tab:not([aria-current]):hover { background: var(--gray-3); color: var(--brand); }
  .hc-head > .link-btn:hover { background: var(--brand-soft); color: var(--brand); }
  .sidebar .nav-item:not([aria-current]):hover { background: #ffffff0c; }
}
@media (prefers-reduced-motion: reduce) {
  .home-stat, .home-stat:hover, .home-stat:active { transition: none; transform: none; }
}

/* ---------- Gelap = galaxy: glass over the night sky ---------- */
/* The sidebar trades its forest green for frosted night glass with gold accents. */
:root[data-theme="dark"] .sidebar {
  --panel: #161a2b;
  --gray-1: #0b0d17;
  --gray-2: #141829;
  --gray-3: #1c2136;
  --gray-9: #8f96b0;
  --gray-10: #a3a9c0;
  --gray-11: #bcc1d4;
  --gray-12: #f3f0e4;
  --blue-9: #f1c35a;
  background: rgba(7, 9, 18, .62);
  border-right-color: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
:root[data-theme="dark"] .side-eyebrow,
:root[data-theme="dark"] .side-note,
:root[data-theme="dark"] .sidebar #role-badge,
:root[data-theme="dark"] .sidebar .status-line { color: #9aa1ba; }
:root[data-theme="dark"] .nav-group-label { background: rgba(241, 195, 90, .08); color: #f3ead2; }
:root[data-theme="dark"] .nav-group-label .ph { color: #f1c35a; }
:root[data-theme="dark"] .nav-item[aria-current="page"] { background: rgba(241, 195, 90, .13); color: #fff6dc; }
:root[data-theme="dark"] .sidebar .segmented { background: rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .sidebar .segmented button[aria-pressed="true"] { background: rgba(241, 195, 90, .18); color: #fff3d0; }
:root[data-theme="dark"] .user-avatar { color: #f1c35a; background: rgba(241, 195, 90, .1); }

/* Top bar and cards: see-through enough to keep the stars, solid enough to read on. */
:root[data-theme="dark"] .app-header {
  background: rgba(7, 9, 18, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .home-top {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}

/* ---------- Cerah = Peta bintang: white frosted glass over the star chart ---------- */
/* The sidebar keeps its forest green; the top bar and cards let the chart show through softly. */
:root:not([data-theme="dark"]) .app-header {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
:root:not([data-theme="dark"]) .card,
:root:not([data-theme="dark"]) .home-top {
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
}

/* Cerah sidebar: cream frosted glass with gold accents, matching the star chart (Gelap has its own above). */
:root:not([data-theme="dark"]) .sidebar {
  --panel: #ffffff;
  --gray-1: #ffffff;
  --gray-2: #f7f5ee;
  --gray-3: #efeadd;
  --gray-9: #9a917c;
  --gray-10: #7d7665;
  --gray-11: #625c4d;
  --gray-12: #2b2a22;
  --line: rgba(120, 95, 40, .12);
  --line-strong: rgba(120, 95, 40, .2);
  --blue-9: #b8892a;
  --green-9: #30a46c;
  background: rgba(238, 229, 207, .84);
  border-right: 1px solid rgba(168, 124, 36, .22);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
:root:not([data-theme="dark"]) .brand-mark { color: #a87c24; border-color: rgba(168, 124, 36, .4); background: rgba(241, 195, 90, .12); }
:root:not([data-theme="dark"]) .side-eyebrow,
:root:not([data-theme="dark"]) .side-note,
:root:not([data-theme="dark"]) .sidebar #role-badge,
:root:not([data-theme="dark"]) .sidebar .status-line { color: #8a8270; }
:root:not([data-theme="dark"]) .nav-group-label { background: rgba(241, 195, 90, .16); color: #3b2f12; }
:root:not([data-theme="dark"]) .nav-group-label .ph { color: #a87c24; }
:root:not([data-theme="dark"]) .nav-item[aria-current="page"] { background: rgba(241, 195, 90, .22); color: #2b2a22; }
:root:not([data-theme="dark"]) .nav-item[aria-current="page"] .ph { color: #a87c24; }
:root:not([data-theme="dark"]) .sidebar .segmented { background: rgba(168, 124, 36, .09); }
:root:not([data-theme="dark"]) .sidebar .segmented button[aria-pressed="true"] { background: #ffffff; color: #2b2a22; box-shadow: 0 1px 3px rgba(60, 45, 10, .12); }
:root:not([data-theme="dark"]) .user-avatar { color: #a87c24; background: rgba(241, 195, 90, .16); }
@media (hover: hover) and (pointer: fine) {
  :root:not([data-theme="dark"]) .sidebar .nav-item:not([aria-current]):hover { background: rgba(168, 124, 36, .08); }
}
