/* SalapanYouth · tema "Biru Royal" (terang) dan "Navy Neon" (gelap)
   Terang : Royal Blue #1C4BBC · Lime Green #82BE3B · Powder Blue #CAD3E6 — latar powder blue, bukan putih.
   Gelap  : Deep Navy #1A2D54 · Soft Butter #FFEEB5 · Cherry Red #DD083D — dengan aksen neon cyan/mint.
   Prinsip: permukaan datar dan solid, garis tipis, tanpa kaca buram, tanpa gradasi dekoratif.
   Huruf  : Bricolage Grotesque untuk judul, Figtree untuk isi. */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --font: 'Figtree', system-ui, sans-serif;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --bg: #cad3e6;
  --surface: #dfe5f2;
  --surface-2: #d3dbec;
  --ink: #0f1e45;
  --muted: #43517a;
  --line: #1c4bbc26;
  --brand: #1c4bbc;
  --brand-2: #163f9f;
  --brand-soft: #b9c7ee;
  --on-brand: #f5f8ff;
  --accent: #82be3b;
  --accent-ink: #14310a;
  --teal: #0b6a85;
  --teal-soft: #bcd9e5;
  --blue: #1c4bbc;
  --blue-soft: #c1cef0;
  --green: #2c6510;
  --green-soft: #cfe5ae;
  --orange: #82450a;
  --orange-soft: #f0dbb5;
  --red: #b00a35;
  --red-soft: #efc3ce;
  --yellow: #6b5200;
  --focus: #1c4bbc;
  --glass: #dfe5f2;
  --glass-strong: #e6ebf6;
  --glass-edge: #1c4bbc2b;
  --glass-hi: transparent;
  --glass-lo: transparent;
  --glass-shadow: 0 1px 2px #12286b1f, 0 10px 24px -18px #12286b59;
  --shadow: 0 8px 20px -16px #12286b59;
  --tile: #d0d9ec;
  --hero-bg: #1c4bbc;
  --hero-ink: #f5f8ff;
  --hero-sub: #d6e0fa;
  --online: #3f9a12;
  --radius: 16px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1730;
  --surface: #14264a;
  --surface-2: #101f3d;
  --ink: #f2ead0;
  --muted: #a8b3d0;
  --line: #9db4ee2b;
  --brand: #ffeeb5;
  --brand-2: #ffe28a;
  --brand-soft: #2b4070;
  --on-brand: #14213f;
  --accent: #4df3ff;
  --accent-ink: #04222a;
  --teal: #5ef2d6;
  --teal-soft: #123c4a;
  --blue: #8fb4ff;
  --blue-soft: #203b75;
  --green: #66ffa6;
  --green-soft: #123e34;
  --orange: #ffc766;
  --orange-soft: #46371b;
  --red: #ff6f96;
  --red-soft: #4c1f3b;
  --yellow: #ffe28a;
  --focus: #4df3ff;
  --glass: #14264a;
  --glass-strong: #182c54;
  --glass-edge: #9db4ee2b;
  --glass-hi: transparent;
  --glass-lo: transparent;
  --glass-shadow: 0 0 0 1px #00000026, 0 14px 30px -18px #000000cc;
  --shadow: 0 12px 26px -16px #000000b3;
  --tile: #1d3463;
  --hero-bg: #1a2d54;
  --hero-ink: #fff3c4;
  --hero-sub: #b9c6e6;
  --online: #3dff9a;
}

html, body { background: var(--bg); }
body { font-family: var(--font); background: var(--bg); }
h1, h2, h3, .topbar h1 { font-family: var(--display); }
.app-shell { background: transparent; }
.login-screen { background: transparent; }
::selection { background: color-mix(in srgb, var(--brand) 35%, transparent); }

/* Permukaan datar: warna solid dan garis tipis (tanpa kaca buram) */
.sidebar, .card, .glass-card, .dialog, .login-form, .workspace-tabs, .mobile-nav, .project-next, .context-nav {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.dialog { background: var(--glass-strong); }
.dialog-backdrop[open] { background: color-mix(in srgb, var(--bg) 55%, #02081acc); }
.card { border-radius: var(--radius); }
.topbar { border-bottom-color: var(--line); }
.workspace-context { color: var(--muted); }
.topbar h1 { letter-spacing: -.03em; font-weight: 800; }

/* Navigasi */
.nav button { color: var(--muted); border-radius: 12px; }
.nav button:hover { background: var(--tile); color: var(--ink); }
.nav button.active { color: var(--brand); background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--accent); }
.user-card, .org-select { background: var(--tile); border: 1px solid var(--glass-edge); }
.brand-mark { background: var(--brand); color: var(--on-brand); border-color: transparent; box-shadow: inset -7px -7px 0 var(--accent); }
.mobile-nav { border-radius: 18px 18px 0 0; }
.mobile-nav button.active { background: var(--brand-soft); color: var(--brand); }

/* Tombol */
.btn { border-radius: 12px; font-weight: 700; }
.btn-brand, .btn-primary { color: var(--on-brand); background: var(--brand); border-color: transparent; box-shadow: none; }
.btn-brand:hover, .btn-primary:hover { background: var(--brand-2); }
[data-theme="dark"] .btn-brand:hover, [data-theme="dark"] .btn-primary:hover { box-shadow: 0 0 0 1px var(--brand), 0 0 18px -4px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-soft, .icon-btn { color: var(--ink); background: var(--tile); border: 1px solid var(--glass-edge); box-shadow: none; }
.btn-soft:hover, .icon-btn:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand-soft) 55%, var(--tile)); }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-glass {
  color: #1d1536;
  background: #f3eefcd9;
  border: 1px solid #ffffff80;
  box-shadow: inset 0 1px 0 #ffffff, 0 10px 22px -12px #0008;
  
}
.btn .ui-icon { width: 18px; height: 18px; }

/* Tab segmen */
.workspace-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 18px; max-width: 100%; }
.workspace-tabs button { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 13px; padding: 8px 14px; font-weight: 700; display: inline-flex; gap: 7px; align-items: center; }
.workspace-tabs button[aria-pressed="true"] { color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 80%, transparent); border-color: var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi); }
.workspace-tabs button:hover { color: var(--ink); }

/* Formulir */
.input, select, textarea {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
}
textarea { padding: 10px 12px; min-height: 96px; width: 100%; font: inherit; }
.input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent); outline-offset: 0; }
.field .input, .field select { max-width: none; width: 100%; }

/* Lencana */
.badge { background: var(--tile); color: var(--muted); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.purple { background: var(--brand-soft); color: var(--brand); }
.notice { background: var(--orange-soft); }
.toast.success { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand); }
.project-next { border-radius: 20px; }
.list-row { border-top-color: var(--line); }

/* ═════════════ Ruangan ═════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rooms { display: grid; gap: 16px; margin-top: 6px; }
.room-meta { margin: 0; color: var(--muted); font-weight: 600; }
.glass-card { border-radius: 24px; padding: 18px; }
.room-group h3, .room-section-head h3 { margin: 0; font: 800 18px/1.25 var(--display); letter-spacing: -.01em; }
.room-group > h3 { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.room-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.room-section-head .toolbar { display: flex; gap: 8px; flex-wrap: wrap; }

/* Hero jadwal terdekat */
.room-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 30px); border-radius: 28px; color: #f6f1ff;
  background:
    radial-gradient(28rem 16rem at 18% 0%, #8a55d466, transparent 70%),
    linear-gradient(118deg, #2a1650 0%, #4a2580 46%, #3a2f7a 70%, #1f6f78 118%);
  border: 1px solid #ffffff2e;
  box-shadow: inset 0 1px 0 #ffffff3d, 0 24px 50px -24px #2a1260b3;
}
.room-hero::before {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -150px; width: 340px; height: 260px; border-radius: 50%;
  background: radial-gradient(closest-side, #8fe0d566, #8fe0d500 70%), conic-gradient(from 210deg, #ffffff00, #ffffff33, #ffffff00 40%);
  border-top: 1px solid #ffffff59; filter: blur(.2px);
}
.room-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #ffffff14, transparent 40%); }
.room-hero h2 { margin: 10px 0 4px; font: 800 clamp(22px, 3vw, 30px)/1.15 var(--display); letter-spacing: -.02em; color: #fff; }
.room-hero p { margin: 0; color: #e7dcff; font-weight: 600; }
.hero-chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: #ffffff1f; border: 1px solid #ffffff66; }

/* Daftar ruangan */
.room-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.room-link {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 11px 14px; text-align: left; color: var(--ink);
  background: var(--tile); border: 1px solid var(--glass-edge); border-radius: 18px; box-shadow: inset 0 1px 0 var(--glass-hi);
  transition: border-color .16s ease, transform .16s ease, background-color .16s ease;
}
.room-link:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand-soft) 45%, var(--tile)); }
.room-link:active { transform: scale(.99); }
.room-link > .ui-icon:last-child { color: var(--brand); margin-left: auto; }
.room-link.is-mine { box-shadow: inset 3px 0 0 var(--teal), inset 0 1px 0 var(--glass-hi); }
.room-link-text { display: grid; min-width: 0; flex: 1; }
.room-link-text strong { font-weight: 800; }
.room-link-text small { color: var(--muted); font-size: 13px; }
.room-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 75%, transparent); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi); }
.alert-pill { margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; text-align: center; color: var(--orange); background: var(--orange-soft); }
.alert-pill + .ui-icon { margin-left: 8px !important; }
.room-setup { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.room-setup h3 { margin: 0 0 4px; font: 800 19px var(--display); }
.room-setup p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Kepala ruangan */
.room-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.room-head > .btn-ghost { margin-left: auto; }
.room-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-title .room-icon { width: 48px; height: 48px; border-radius: 16px; }
.room-title h2 { margin: 0; font: 800 clamp(22px, 2.6vw, 28px)/1.1 var(--display); letter-spacing: -.02em; }
.room-title p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.room-body { display: grid; gap: 14px; }

/* Angka ringkas */
.room-stats, .room-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.room-metrics { margin-bottom: 12px; }
.room-metrics.compact { margin: 0; }
.room-metric { padding: 12px 14px; border-radius: 16px; background: var(--tile); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi); min-width: 0; }
.room-stats .room-metric { background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.room-metric small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.room-metric b { display: block; font: 800 clamp(17px, 1.45vw, 21px)/1.25 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.room-col { display: grid; gap: 14px; min-width: 0; }
.room-section.is-priority { box-shadow: inset 0 2px 0 color-mix(in srgb, var(--orange) 70%, transparent), inset 0 1px 0 var(--glass-hi), var(--glass-shadow); }
.room-hint { margin: -4px 0 12px; color: var(--muted); font-size: 14px; max-width: 70ch; }
.room-empty { margin: 4px 0; color: var(--muted); font-size: 14px; }
.room-subhead { margin: 14px 0 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.room-subhead:first-child { margin-top: 0; }
.room-more { margin-top: 10px; }
.room-more summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 8px 0; }

/* Tugas */
.room-tasks, .room-records { display: grid; gap: 8px; }
.room-task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 16px; background: var(--tile); border: 1px solid var(--glass-edge); }
.room-task-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 22%, transparent); }
.room-task.is-blocked { border-color: color-mix(in srgb, var(--orange) 45%, transparent); }
.room-task.is-blocked .room-task-dot { background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 22%, transparent); }
.room-task.is-late .room-task-dot { background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent); }
.room-task-main { display: grid; min-width: 0; }
.room-task-main small { color: var(--muted); font-size: 13px; }
.room-task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.room-reason { margin: 6px 0 0; padding: 6px 10px; border-radius: 10px; font-size: 13px; color: var(--orange); background: var(--orange-soft); }

/* Catatan alat */
.room-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--tile); border: 1px solid var(--glass-edge); }
.room-record-main { display: grid; gap: 6px; min-width: 0; }
.room-record-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.room-record-title strong { font-weight: 800; }
.room-fields { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.room-fields em, .room-long em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 700; margin-right: 4px; }
.room-fields a { color: var(--brand); font-weight: 700; }
.room-long { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.room-long em { display: block; }
.room-record small { color: var(--muted); font-size: 13px; }
.room-due.is-late { color: var(--red); font-weight: 700; }
.room-record-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.room-record-side .toolbar { display: flex; gap: 4px; }
.route-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--teal); background: var(--teal-soft); }
.route-chip .ui-icon { width: 13px; height: 13px; }
.quick-status select, .input-sm { min-height: 36px !important; padding: 4px 8px; font-size: 13px; border-radius: 10px; max-width: 190px; }
.meter { display: block; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--teal)); }

/* Pill alat */
.tool-pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.tool-pills button { flex: none; padding: 8px 14px; min-height: 40px; border-radius: 999px; font-weight: 700; color: var(--muted); background: var(--tile); border: 1px solid var(--glass-edge); }
.tool-pills button[aria-pressed="true"] { color: var(--on-brand); background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; }

/* Agenda */
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
.agenda-list time { display: grid; justify-items: center; padding: 6px 0; border-radius: 14px; background: var(--tile); border: 1px solid var(--glass-edge); line-height: 1.1; }
.agenda-list time b { font: 800 19px var(--display); }
.agenda-list time span { font-size: 11px; font-weight: 700; color: var(--muted); }
.agenda-list li.is-today time { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand); border-color: transparent; }
.agenda-list li.is-today time span { color: var(--on-brand); }
.agenda-list li.is-late time { color: var(--red); }
.agenda-list strong { display: block; font-weight: 700; }
.agenda-list small { color: var(--muted); font-size: 13px; }

/* Daftar ringkas */
.req-list, .progress-list, .bar-list, .team-list, .contact-list, .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-list li { flex-wrap: wrap; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--tile); border: 1px solid var(--glass-edge); }
.req-list li > div { display: grid; min-width: 0; }
.req-list small { color: var(--muted); font-size: 13px; }
.req-list li > .btn, .req-list li > .badge { flex: none; }
.progress-row { row-gap: 2px; display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--ink); text-align: left; }
.progress-row:hover { background: var(--tile); border-color: var(--glass-edge); }
.progress-row span:first-child { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-row b { font-variant-numeric: tabular-nums; }
.progress-row em { grid-column: 1 / 2; line-height: 1.2; font-style: normal; font-size: 12px; font-weight: 700; color: var(--orange); }
.progress-row em.ok { color: var(--green); }
.bar-list li { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.bar-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stack-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.stack-bar .a { background: var(--brand); }
.stack-bar .b { background: color-mix(in srgb, var(--brand-2) 40%, transparent); }
.balance-chart { display: grid; gap: 12px; }
.balance-chart > div { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.balance-chart small { color: var(--muted); font-weight: 600; }
.balance-chart .bar { height: 14px; border-radius: 999px; min-width: 4px; }
.balance-chart .bar.in { background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 55%, var(--brand-2))); }
.balance-chart .bar.out { background: linear-gradient(90deg, var(--orange), color-mix(in srgb, var(--orange) 50%, var(--red))); }
.balance-chart b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.balance-total { padding-top: 10px; border-top: 1px solid var(--line); grid-template-columns: 1fr auto !important; }
.balance-total b { font: 800 22px var(--display); }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr)); gap: 6px; margin-bottom: 10px; }
.pipe-col { padding: 8px 10px; border-radius: 14px; background: var(--tile); border: 1px solid var(--glass-edge); }
.pipe-col small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.pipe-col b { font: 800 22px var(--display); }
.pipe-col.tone-green b { color: var(--green); } .pipe-col.tone-purple b { color: var(--brand); } .pipe-col.tone-orange b { color: var(--orange); } .pipe-col.tone-red b { color: var(--red); }
.fund-track { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.fund-track li { position: relative; padding-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); hyphens: auto; }
.fund-row { grid-template-columns: minmax(0, 1fr); }
.fund-row .room-record-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.fund-track li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.fund-track li.is-done { color: var(--ink); }
.fund-track li.is-done::before { background: linear-gradient(90deg, var(--brand), var(--teal)); }
.team-list li, .contact-list li { display: flex; align-items: center; gap: 10px; }
.team-list li > span:nth-child(2), .contact-list li > div { display: grid; min-width: 0; flex: 1; }
.team-list small, .contact-list small, .plain-list small { color: var(--muted); font-size: 13px; }
.team-list.editable li { padding: 8px 10px; border-radius: 14px; background: var(--tile); }
.team-list .toolbar { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.avatar-dot { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; font-weight: 800; color: #2c1a3f; background: linear-gradient(145deg, #f6c98f, #e69ab7); }
.plain-list li { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); }
.announce-list { display: grid; gap: 10px; }
.announce { padding: 14px 16px; border-radius: 18px; background: var(--tile); border: 1px solid var(--glass-edge); }
.announce.is-pinned { box-shadow: inset 3px 0 0 var(--brand-2); }
.announce header { display: grid; margin-bottom: 6px; }
.announce small { color: var(--muted); font-size: 13px; }
.announce p { margin: 0 0 8px; white-space: pre-wrap; max-width: 70ch; }
.checkin-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.checkin-form .field { margin: 0; flex: 1 1 240px; }
.checkin-form .field span { font-weight: 700; font-size: 14px; }
.input-xl { min-height: 56px !important; font-size: 20px !important; letter-spacing: .06em; text-transform: uppercase; }
.member-add { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Penyusunan divisi */
.setup-grid { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.setup-option { display: grid; grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 12rem); align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--tile); border: 1px solid var(--glass-edge); cursor: pointer; }
.setup-option input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); }
.setup-option strong { display: block; }
.setup-option small { color: var(--muted); font-size: 13px; }
.setup-option:has(input:checked) { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand-soft) 45%, var(--tile)); }
.people-pick { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.people-pick legend { font-weight: 750; font-size: 14px; padding: 0 4px; }
.check { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Beranda: ruangan semua kegiatan berjalan */
.home-rooms-wrap { display: grid; gap: 14px; }
.home-rooms h2 { margin: 0; font: 800 20px/1.2 var(--display); letter-spacing: -.01em; }
.home-rooms .room-meta { font-size: 14px; }
.home-rooms .room-subhead { margin: 16px 0 8px; }
.room-link .meter { height: 5px; margin-top: 7px; }
.room-link.is-bph {
  color: #f6f1ff; border-color: #ffffff38;
  background: linear-gradient(118deg, #2a1650, #4a2580 55%, #2c5f7a);
  box-shadow: inset 0 1px 0 #ffffff33, 0 14px 30px -18px #2a1260b3;
}
.room-link.is-bph small { color: #e3d8ff; }
.room-link.is-bph .room-icon { color: #fff; background: #ffffff1f; border-color: #ffffff40; }
.room-link.is-bph > .ui-icon:last-child { color: #fff; }
.room-link.is-bph .meter { background: #ffffff26; }
.room-link.is-bph .meter i { background: linear-gradient(90deg, #c9b6ff, #8fe0d5); }
.room-link.is-bph:hover { background: linear-gradient(118deg, #321a5e, #55308f 55%, #33708c); }
.progress-total { display: grid; gap: 6px; margin-bottom: 12px; padding: 12px 14px; border-radius: 16px; background: var(--tile); border: 1px solid var(--glass-edge); }
.progress-total .meter { height: 10px; }
.progress-total b { font-size: 14px; }

@media (max-width: 980px) {
  .room-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .glass-card { padding: 14px; border-radius: 20px; }
  .room-hero { border-radius: 22px; }
  .room-record, .room-task { grid-template-columns: minmax(0, 1fr); }
  .room-task { grid-template-columns: auto minmax(0, 1fr); }
  .room-task-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .room-record-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .setup-option { grid-template-columns: auto auto minmax(0, 1fr); }
  .setup-option .input-sm { grid-column: 1 / -1; max-width: none; }
  .bar-list li, .balance-chart > div { grid-template-columns: minmax(0, 1fr) auto; }
  .bar-list .stack-bar, .balance-chart .bar { grid-column: 1 / -1; grid-row: 2; }
  .room-head > .btn-ghost { margin-left: 0; }
  .fund-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .room-link { transition: none; }
}
@media print {
  body { background: #fff; }
  .sidebar, .card, .glass-card { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
}

/* ═════════════ Halaman kegiatan: rail + konten ═════════════ */
.project-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 18px; align-items: start; }
.project-rail {
  overflow-x: hidden;
  position: sticky; top: 16px; display: grid; gap: 14px; padding: 12px; border-radius: 22px; max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(165%); backdrop-filter: blur(22px) saturate(165%);
}
.rail-group { display: grid; gap: 2px; }
.rail-label { margin: 2px 8px 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.rail-empty { margin: 0 8px; font-size: 13px; color: var(--muted); }
.rail-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; text-align: left; }
.rail-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-item .ui-icon { width: 18px; height: 18px; }
.rail-item:hover { background: var(--tile); color: var(--ink); }
.rail-item.is-active { color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 80%, transparent); border-color: var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi); }
.rail-item[data-mine]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
.rail-badge { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 11px; text-align: center; color: var(--orange); background: var(--orange-soft); }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.project-main { min-width: 0; display: grid; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.crumbs .badge { margin-left: 4px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head > div { min-width: 0; flex: 1; }
.page-head .room-icon { width: 46px; height: 46px; border-radius: 15px; }
.page-head h2 { margin: 0; font: 800 clamp(21px, 2.4vw, 26px)/1.15 var(--display); letter-spacing: -.02em; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.room-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi); scrollbar-width: thin; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.room-tabs button { flex: none; min-height: 40px; padding: 7px 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 700; white-space: nowrap; }
.room-tabs button:hover { color: var(--ink); }
.room-tabs button[aria-pressed="true"] { color: var(--on-brand); background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
.step-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.step-card strong { font-size: 13px; color: var(--brand); }
.step-card p { margin: 2px 0 0; font-weight: 600; }
.legacy-panel { display: grid; gap: 14px; }
.legacy-panel .card { margin: 0; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rab-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.archive-list li { align-items: center; }
.archive-list .toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ═════════════ Tabel fleksibel ═════════════ */
.room-section.is-sheet { padding-bottom: 12px; }
.sheet-host { display: grid; gap: 10px; min-width: 0; }
.sheet-loading { color: var(--muted); font-size: 14px; }
.sheet-note { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: var(--blue-soft); color: var(--blue); }
.sheet-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.sheet-summary > div { padding: 10px 12px; border-radius: 14px; background: var(--tile); border: 1px solid var(--glass-edge); }
.sheet-summary small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.sheet-summary b { font: 800 18px var(--display); font-variant-numeric: tabular-nums; }
.sheet-summary .is-neg b { color: var(--red); } .sheet-summary .is-pos b { color: var(--green); }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.sheet-status { font-size: 13px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.sheet-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sheet-status.is-ok { color: var(--green); } .sheet-status.is-wait { color: var(--orange); } .sheet-status.is-bad { color: var(--red); } .sheet-status.is-ro { color: var(--muted); }
.sheet-scroll { overflow: auto; max-height: min(70vh, 720px); border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
table.sheet { border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 100%; font-size: 14px; }
.sheet .sum-label { white-space: nowrap; overflow: visible; position: relative; z-index: 1; }
.sheet thead th { position: sticky; top: 0; z-index: 2; text-align: left; padding: 9px 8px; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet th.t-money, .sheet th.t-number, .sheet th.t-calc { text-align: right; }
.sheet td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; }
.sheet .sheet-idx { position: sticky; left: 0; z-index: 1; width: 40px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.sheet thead .sheet-idx { z-index: 3; }
.sheet .cell { display: block; width: 100%; min-height: 40px; padding: 8px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; outline: none; box-shadow: none; }
.sheet input.cell:focus, .sheet select.cell:focus { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); box-shadow: inset 0 0 0 2px var(--brand); }
.sheet select.cell { appearance: auto; min-height: 40px; }
.sheet input[type="checkbox"].cell { width: 18px; height: 18px; min-height: 0; margin: 11px auto; accent-color: var(--brand); }
.sheet .cell.num, .sheet td.t-money .cell, .sheet td.t-calc .cell { text-align: right; font-variant-numeric: tabular-nums; }
.sheet .cell.calc { color: var(--muted); font-weight: 700; display: flex; align-items: center; justify-content: flex-end; }
.sheet .cell.ro { display: flex; align-items: center; }
.sheet tr.sheet-group td { padding: 8px 10px; font-weight: 800; color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.sheet tr.sheet-subtotal td, .sheet tr.sheet-total td { padding: 8px; font-weight: 800; background: var(--tile); }
.sheet tr.sheet-total td { border-top: 2px solid var(--line); background: var(--surface-2); }
.sheet .sum-val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet .sum-label { color: var(--muted); }
.sheet .row-acts { white-space: nowrap; text-align: center; }
.sheet .row-acts button { width: 28px; height: 28px; margin: 0 1px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 800; }
.sheet .row-acts button:hover { background: var(--tile); color: var(--ink); border-color: var(--glass-edge); }
.sheet .row-acts button:last-child:hover { color: var(--red); }
.sheet-empty { padding: 18px; color: var(--muted); }
.sheet-tip { margin: 0; font-size: 13px; color: var(--muted); }
.cols-form .col-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.col-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 6px; align-items: center; padding: 8px; border-radius: 12px; background: var(--tile); }
.col-row [name="options"] { grid-column: 1 / -1; }
.col-row.is-locked { box-shadow: inset 3px 0 0 var(--brand-2); }
.col-type { font-size: 13px; color: var(--muted); padding: 0 6px; }
.col-move { display: flex; gap: 2px; }
.col-add { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border: 1px dashed var(--line); border-radius: 12px; padding: 10px; }
.col-add legend { font-weight: 700; font-size: 14px; }
.col-add .input { flex: 1 1 140px; }

/* ═════════════ Generator surat ═════════════ */
.letter-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.letter-type { display: grid; gap: 4px; padding: 14px; text-align: left; border-radius: 16px; color: var(--ink); background: var(--tile); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi); }
.letter-type:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand-soft) 45%, var(--tile)); }
.letter-type strong { font-weight: 800; }
.letter-type small { color: var(--muted); font-size: 13px; }
.kop-notice { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.composer-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.composer-head > div { flex: 1; min-width: 200px; }
.composer-head h3 { margin: 0; font: 800 18px var(--display); }
.composer-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 14px; align-items: start; }
.composer-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.composer-form legend { font: 800 15px var(--display); margin-bottom: 8px; }
.composer-form .form-grid { gap: 10px; }
.composer-form .field { margin: 0; }
.composer-form .check.full { grid-column: 1 / -1; }
.letter-actions { position: sticky; bottom: 0; padding-top: 10px; background: linear-gradient(180deg, transparent, var(--glass-strong) 30%); }
.composer-preview { position: sticky; top: 16px; display: grid; gap: 8px; }
.preview-bar { font-size: 13px; font-weight: 700; color: var(--muted); }
.letter-preview { overflow: hidden; border-radius: 10px; box-shadow: 0 18px 40px -20px #0009; }
.letter-scale { width: 210mm; transform-origin: top left; }

/* Kertas A4 — tetap putih karena ini dokumen cetak */
.lt-page { box-sizing: border-box; width: 210mm; min-height: 297mm; padding: 20mm 20mm 25mm 30mm; background: #fff; color: #000; font-size: 12pt; line-height: 1.5; }
.lt-page + .lt-page { margin-top: 8mm; }
.lt-font-times { font-family: 'Times New Roman', Times, serif; }
.lt-font-arial { font-family: Arial, Helvetica, sans-serif; font-size: 12pt; }
.lt-font-bookman { font-family: 'Bookman Old Style', 'URW Bookman', 'Book Antiqua', serif; font-size: 11.5pt; }
.lt-kop { display: grid; grid-template-columns: 26mm 1fr 26mm; align-items: center; text-align: center; }
.lt-logo { width: 24mm; height: 24mm; object-fit: contain; }
.lt-logo-ph { display: block; }
.lt-kop-text { grid-column: 2; }
.lt-org { font-size: 15pt; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.lt-sub { font-size: 13pt; font-weight: 700; line-height: 1.25; }
.lt-addr { font-size: 10pt; line-height: 1.35; margin-top: 2px; }
.lt-rule { border-top: 3px solid #000; border-bottom: 1px solid #000; height: 3px; margin: 6px 0 14px; }
.lt-date { text-align: right; margin-bottom: 8px; }
.lt-meta, .lt-detail, .lt-decree { border-collapse: collapse; }
.lt-meta td, .lt-detail td, .lt-decree td { padding: 0 4px 0 0; vertical-align: top; }
.lt-meta .k { width: 24mm; } .lt-meta .c, .lt-detail .c, .lt-decree .c { width: 4mm; }
.lt-to { margin: 14px 0; }
.lt-body p { margin: 0 0 10px; text-align: justify; }
.lt-body p:first-child { margin-bottom: 8px; }
.lt-detail { margin: 2px 0 12px 10mm; }
.lt-detail .k { width: 40mm; }
.lt-list, .lt-alpha { margin: 0 0 8px; padding-left: 7mm; }
.lt-alpha { list-style: lower-alpha; }
.lt-list li, .lt-alpha li { margin: 0 0 2px; text-align: justify; }
.lt-detail .lt-list { margin: 0; padding-left: 5mm; }
.lt-grid { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 11pt; }
.lt-grid th, .lt-grid td { border: 1px solid #000; padding: 3px 6px; text-align: left; vertical-align: top; }
.lt-grid th { text-align: center; }
.lt-grid td.no { width: 10mm; text-align: center; }
.lt-sign { margin-top: 18px; page-break-inside: avoid; break-inside: avoid; }
.lt-sign-head { text-align: center; margin-left: 45%; }
.lt-sigs { display: flex; justify-content: flex-end; }
.lt-sigs.two { justify-content: space-between; }
.lt-sig { text-align: center; min-width: 60mm; }
.lt-sigs .lt-sig { margin-top: 4px; }
.lt-sigs:not(.two) .lt-sig { margin-right: 0; width: 55%; }
.lt-space { height: 20mm; }
.lt-name { font-weight: 700; text-decoration: underline; }
.lt-know { text-align: center; margin-top: 8px; }
.lt-know .lt-sig { margin: 0 auto; }
.lt-sign.decree { display: flex; justify-content: flex-end; flex-direction: column; align-items: flex-end; }
.lt-sign.decree > div:first-child { width: 75mm; }
.lt-sign.decree .lt-sig { width: 75mm; text-align: left; }
.lt-cc { margin-top: 16px; font-size: 11pt; }
.lt-cc .lt-list { margin: 0; }
.lt-center { text-align: center; margin: 4px 0 12px; }
.lt-title { margin-top: 8px; }
.lt-decree { width: 100%; margin-bottom: 10px; }
.lt-decree .k { width: 28mm; font-weight: 400; }
.lt-decree td { text-align: justify; }
.lt-annex-head { width: auto; margin: 0 0 14px auto; font-size: 11pt; }

#print-letter { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body.printing-letter > *:not(#print-letter) { display: none !important; }
  body.printing-letter { background: #fff !important; }
  body.printing-letter #print-letter { display: block; }
  #print-letter .lt-page { margin: 0; page-break-after: always; break-after: page; min-height: auto; }
  #print-letter .lt-page:last-child { page-break-after: auto; break-after: auto; }
}

/* ═════════════ Beranda: Menunggu Anda & profil ═════════════ */
.inbox .room-section-head h2, .profile-card h2 { margin: 0; font: 800 19px var(--display); }
.inbox { box-shadow: inset 0 2px 0 color-mix(in srgb, var(--orange) 70%, transparent), inset 0 1px 0 var(--glass-hi), var(--glass-shadow); }
.profile-card { display: grid; gap: 10px; }
.profile-card p { margin: 2px 0 0; color: var(--muted); }
.profile-form { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-form .input { flex: 1 1 200px; max-width: none; }

@media (max-width: 1180px) {
  .project-layout { grid-template-columns: minmax(0, 1fr); }
  .project-rail { position: static; display: flex; gap: 4px; padding: 6px; overflow-x: auto; max-height: none; border-radius: 18px; }
  .rail-group { display: flex; gap: 4px; }
  .rail-group + .rail-group { padding-left: 6px; border-left: 1px solid var(--line); }
  .rail-label, .rail-empty { display: none; }
  .rail-item { flex: none; width: auto; min-height: 38px; }
  .rail-item span { overflow: visible; }
  .composer { grid-template-columns: minmax(0, 1fr); }
  .composer-preview { position: static; }
}
@media (max-width: 620px) {
  .col-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .profile-form .btn { width: 100%; }
}

/* Di dalam kegiatan, sidebar organisasi diringkas agar ruang kerja lebih lega */
@media (min-width: 1051px) {
  .app-shell:has(.project-layout) { grid-template-columns: 84px minmax(0, 1fr); }
  .app-shell:has(.project-layout) .sidebar { padding: 14px 10px; align-items: center; }
  .app-shell:has(.project-layout) .workspace-brand strong,
  .app-shell:has(.project-layout) .nav button span,
  .app-shell:has(.project-layout) .user-info,
  .app-shell:has(.project-layout) .org-select { display: none; }
  .app-shell:has(.project-layout) .nav button { justify-content: center; padding: 10px; }
  .app-shell:has(.project-layout) .user-card { justify-content: center; padding: 8px; }
}
@media (max-width: 620px) {
  .room-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-stats .room-metric b { font-size: 18px; }
  .room-quick .btn { flex: 1 1 auto; }
}

/* ═════════════ Ruangan divisi v3: peran, aksi bertujuan, tugas cepat ═════════════ */
.division-head { align-items: flex-start; }
.role-line { margin: 4px 0 0 !important; color: var(--ink) !important; font-weight: 600; font-size: 14px; }
.team-line { margin: 2px 0 0 !important; color: var(--muted); font-size: 13px; }
.division-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.locked-action { display: inline-grid; gap: 2px; }
.locked-action .btn[disabled] { opacity: .55; cursor: not-allowed; }
.locked-action small { font-size: 12px; color: var(--muted); padding-left: 4px; }
.status-line { margin: 0; font-size: 14px; font-weight: 700; color: var(--green); }
.status-line.has-alert { color: var(--orange); }
.status-line::before { content: "●"; margin-right: 6px; font-size: 10px; vertical-align: 2px; }
.origin { color: var(--teal); font-weight: 700; }

details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.menu-pop {
  position: absolute; z-index: 15; top: calc(100% + 6px); left: 0; min-width: 270px; display: grid; gap: 2px; padding: 6px; border-radius: 16px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), 0 22px 44px -18px #000a;
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
}
.menu-right .menu-pop { left: auto; right: 0; }
.menu-item { display: grid; gap: 1px; padding: 9px 11px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); text-align: left; }
.menu-item:hover, .menu-item:focus-visible { background: color-mix(in srgb, var(--brand-soft) 70%, transparent); }
.menu-item strong { font-weight: 700; font-size: 14px; }
.menu-item small { font-size: 12px; color: var(--muted); }
.menu-title { margin: 4px 10px 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.page-head > details.menu { align-self: flex-start; }

.quick-task { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 11rem) minmax(0, 10rem) auto; gap: 8px; margin-bottom: 10px; }
.quick-task .input { max-width: none; }
.task-quick { min-width: 132px; font-weight: 700; }
.task-quick.s-done { color: var(--green); } .task-quick.s-waiting { color: var(--orange); } .task-quick.s-in_progress { color: var(--brand); }
.checklist { box-shadow: inset 0 2px 0 color-mix(in srgb, var(--teal) 70%, transparent), inset 0 1px 0 var(--glass-hi), var(--glass-shadow); }
.checklist h3 { margin: 0 0 8px; font: 800 17px var(--display); }
.checklist ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.checklist li.is-done { color: var(--muted); text-decoration: line-through; }
.checklist li.is-done::marker { color: var(--green); }
.sheet-meta { margin: 0; font-size: 13px; color: var(--muted); }
.sheet-meta b { color: var(--ink); }
.is-removing { opacity: .35; pointer-events: none; transition: opacity .2s; }
.toast-undo { display: flex; align-items: center; gap: 14px; }
.toast-undo button { border: 0; border-radius: 9px; padding: 6px 10px; font-weight: 800; background: #ffffff33; color: inherit; cursor: pointer; }

/* Pemilih bagian di HP */
.rail-mobile { display: none; }
@media (max-width: 1180px) {
  .project-layout > .project-rail { display: none; }
  .rail-mobile { display: block; position: sticky; top: 8px; z-index: 12; }
  .rail-mobile > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
    background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .rail-mobile > summary::-webkit-details-marker { display: none; }
  .rail-mobile > summary span { font-size: 12px; font-weight: 800; color: var(--muted); }
  .rail-mobile > summary b { flex: 1; font-weight: 800; }
  .rail-sheet { margin-top: 6px; display: grid; gap: 10px; padding: 10px; border-radius: 18px; max-height: 70dvh; overflow-y: auto;
    background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: 0 24px 48px -20px #000b; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
  .rail-sheet .rail-label { display: block; }
  .rail-sheet .rail-group { display: grid; gap: 2px; padding: 0; border: 0; }
  .rail-sheet .rail-item { width: 100%; }
}
@media (max-width: 620px) {
  .quick-task { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .quick-task input[name="title"] { grid-column: 1 / -1; }
  .quick-task .btn { grid-column: 1 / -1; }
  .division-actions > * { flex: 1 1 auto; }
  .division-actions details.menu > summary { width: 100%; justify-content: center; }
  .menu-pop { left: 0; right: 0; min-width: 0; }
}

.status-line.is-empty { color: var(--muted); }

/* ── Kehadiran, aktivitas, pemantauan ─────────────────────────────────────── */
.pdot { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: middle; box-sizing: border-box; background: transparent; border: 2px solid var(--muted); }
.pdot[data-state="online"] { background: #2fc28b; border-color: #2fc28b; box-shadow: 0 0 0 3px #2fc28b30; }
.pdot[data-state="idle"] { background: #e2a23b; border-color: #e2a23b; }
.pdot[data-state="offline"] { opacity: .7; }
[data-live="dot"].pdot { margin-right: 0; margin-left: 4px; }
.presence-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; font-size: 13px; }
.pbar-label { color: var(--muted); font-weight: 700; }
.pbar-empty { color: var(--muted); }
.pchip { display: inline-flex; align-items: center; padding: 3px 10px 3px 8px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--tile); border: 1px solid var(--line); }
.pchip .pdot { margin-right: 6px; }
.pchip small { color: var(--muted); font-weight: 600; }
.team-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.team-label { font-weight: 700; }
.tmember { display: inline-flex; align-items: center; }
.tmember small { color: var(--muted); margin-left: 4px; }
.tmember[data-state="offline"] { color: var(--muted); }
.live-count, .rail-live { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; font-style: normal; color: var(--green); background: var(--green-soft); white-space: nowrap; }
.live-count[hidden], .rail-live[hidden] { display: none; }
.live-count::before, .rail-live::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2fc28b; vertical-align: 1px; }
.rail-live { margin-left: auto; }
.rail-live + .rail-badge { margin-left: 6px; }
.room-link .live-count { margin-left: auto; }
.room-link .live-count + .alert-pill, .room-link .alert-pill + .live-count { margin-left: 6px; }
.monitor-line { margin: 0 0 12px; font-size: 14px; }
.table-wrap { overflow-x: auto; }
.mini-table.workers td, .mini-table.workers th { vertical-align: top; }
.mini-table.workers td small { display: block; color: var(--muted); margin: 2px 0 0; }
.mini-table.workers .tmember small, .mini-table.workers .pchip small { display: inline; margin: 0; }
.mini-table.workers td .pchip { margin: 0 4px 4px 0; }
.mini-table.workers .num { text-align: right; white-space: nowrap; }
.mini-table.workers .nudge { color: var(--orange); font-weight: 700; }
.mini-table.workers .warn, .warn { color: var(--red); font-weight: 700; }
.act-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.act-day { margin: 14px 0 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.act-day:first-child { margin-top: 0; }
.act-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.act-row:last-child { border-bottom: 0; }
.act-row small { color: var(--muted); }
.act-row time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.room-subhead { margin: 18px 0 8px; font-size: 14px; }
.live-fresh { position: fixed; z-index: 60; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100vw - 28px)); padding: 10px 12px 10px 16px; border-radius: 16px; font-size: 14px; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
@media (max-width: 640px) { .live-fresh { bottom: 76px; } .presence-bar { font-size: 12px; } }
@media (prefers-reduced-motion: no-preference) { .pdot[data-state="online"] { transition: box-shadow .4s, background .4s; } }
.mini-table.workers .link-btn { text-align: left; }

/* ── Penyesuaian tema Biru Royal / Navy Neon ──────────────────────────────── */
.btn-glass { color: var(--ink); background: var(--tile); border: 1px solid var(--glass-edge); box-shadow: none; }
.room-hero { background: var(--hero-bg); color: var(--hero-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 20px; box-shadow: var(--glass-shadow); overflow: hidden; }
.room-hero::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--accent); opacity: .9; filter: none; border: 0; }
[data-theme="dark"] .room-hero::before { opacity: .16; }
.room-hero::after { display: none; }
.room-hero h2 { color: var(--hero-ink); }
.room-hero p { color: var(--hero-sub); }
.hero-chip { color: var(--accent-ink); background: var(--accent); border: 0; }
.room-hero .btn-glass { position: relative; color: var(--ink); background: var(--glass-strong); }
.room-link.is-bph { background: var(--hero-bg); color: var(--hero-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: var(--glass-shadow); }
.room-link.is-bph:hover { background: color-mix(in srgb, var(--hero-bg) 88%, var(--accent)); }
.room-link.is-bph small { color: var(--hero-sub); }
.room-link.is-bph .room-icon { color: var(--hero-ink); background: #ffffff1f; border-color: #ffffff33; }
.room-link.is-bph .meter { background: #ffffff2e; }
.room-link.is-bph .meter i { background: var(--accent); }
.meter i, .fund-track li.is-done::before { background: var(--accent); }
[data-theme="dark"] .meter i { box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }
.tool-pills button[aria-pressed="true"], .room-tabs button[aria-pressed="true"], .agenda-list li.is-today time { color: var(--on-brand); background: var(--brand); border-color: transparent; box-shadow: none; }
.workspace-tabs button[aria-pressed="true"] { color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.toast.success { background: var(--brand); color: var(--on-brand); }
.balance-chart .bar.in { background: var(--accent); }
.balance-chart .bar.out { background: var(--orange); }
.avatar-dot { color: var(--accent-ink); background: var(--accent); }
[data-theme="dark"] .avatar-dot { background: var(--brand-soft); color: var(--brand); }
.letter-actions { background: linear-gradient(180deg, transparent, var(--glass-strong) 30%); }
.pdot[data-state="online"] { background: var(--online); border-color: var(--online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--online) 28%, transparent); }
[data-theme="dark"] .pdot[data-state="online"] { box-shadow: 0 0 10px 1px var(--online); }
.pdot[data-state="idle"] { background: #e8a93c; border-color: #e8a93c; }
.live-count::before, .rail-live::before { background: var(--online); }
.live-count, .rail-live { color: var(--green); background: var(--green-soft); }
.live-fresh { background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 70%, transparent); outline-offset: 2px; }
.input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); border-color: var(--focus); }
.alert-pill, .rail-badge { color: var(--orange); background: var(--orange-soft); }
[data-theme="dark"] .alert-pill, [data-theme="dark"] .rail-badge { color: #ffe0a1; background: #4c3a1a; box-shadow: 0 0 0 1px #ffc76655; }
.badge.purple { background: var(--brand-soft); color: var(--brand); }

/* Tanpa kaca buram di mana pun: lebih ringan dan lebih nyaman di mata */
* { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Blok bergradasi lama di workspace.css → datar sesuai tema baru */
.app-shell { background: transparent; }
.home-hero, .cash-hero, .home-compact { background: var(--hero-bg); color: var(--hero-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: var(--glass-shadow); }
.home-hero p, .cash-hero p, .home-compact p { color: var(--hero-sub); }
.home-flow::before { display: none; }
.login-aside { background: var(--hero-bg); color: var(--hero-ink); }
.login-aside p { color: var(--hero-sub); }
.avatar, .avatar-dot { background: var(--accent); color: var(--accent-ink); }
[data-theme="dark"] .avatar { background: var(--brand-soft); color: var(--brand); }
.nav button.active { background: var(--brand-soft); }
.brand-mark { background: var(--brand); color: var(--on-brand); }
.btn-primary { background: var(--brand); color: var(--on-brand); }

/* Panduan singkat & Tugas saya (Beranda) */
.guide { padding: 0; }
.guide summary { cursor: pointer; padding: 14px 18px; font-weight: 800; font-family: var(--display); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.guide summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.guide[open] summary::after { content: '–'; }
.guide ol { margin: 0; padding: 0 20px 6px 38px; display: grid; gap: 6px; }
.guide .room-hint { margin: 6px 18px 14px; }
.room-link .live-count { padding: 2px 8px; }

/* ── Hasil kerja, lampiran tugas, tahap kegiatan ─────────────────────────── */
.task-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.attach-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; min-height: 30px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.attach-chip:hover { border-color: var(--brand); }
.attach-chip .ui-icon { width: 14px; height: 14px; flex: none; }
.attach-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-more, .attach-none { color: var(--muted); font-size: 13px; }
.attach-note { margin-bottom: 12px; }
.choice-group { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--surface); }
.choice input { margin-top: 4px; accent-color: var(--brand); }
.choice span { display: grid; }
.choice small, .field-hint { color: var(--muted); font-size: 13px; }
.attach-fields[hidden] { display: none; }

.stage-strip { padding: 14px 18px; display: grid; gap: 10px; }
.stage-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; }
.stage-steps li { flex: 1 1 0; min-width: 84px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: 14px; border: 1px solid transparent; }
.stage-steps li.is-past { color: var(--ink); }
.stage-steps li.is-now { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }
.stage-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.stage-steps li.is-past .stage-dot { background: var(--online); border-color: var(--online); }
.stage-steps li.is-now .stage-dot { background: currentColor; }
.stage-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.stage-steps li:has(.stage-btn):hover { border-color: var(--line); background: var(--surface-2); }
.stage-hint { margin: 0; font-size: 14px; color: var(--muted); }
.stage-hint strong { color: var(--ink); }
.stage-pill { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }

.results-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.results-toolbar input[type="search"] { flex: 1 1 220px; min-width: 0; }
.results-toolbar select { flex: 0 1 190px; }
.results-total { margin-bottom: 12px; }
.tab-count { margin-left: 8px; padding: 0 7px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--muted); }
.room-tabs button[aria-pressed="true"] .tab-count { background: #ffffff33; color: inherit; }
.rail-count { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 11px; text-align: center; color: var(--muted); background: var(--surface-2); }
.result-group { padding: 0; margin-bottom: 10px; overflow: hidden; }
.result-group[hidden], .result-item[hidden] { display: none; }
.result-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; }
.result-group > summary::-webkit-details-marker { display: none; }
.result-group .count { color: var(--muted); font-size: 13px; }
.result-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.result-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.result-item:last-child { border-bottom: 0; }
.result-item strong { display: block; overflow-wrap: anywhere; }
.result-item small { display: block; color: var(--muted); font-size: 13px; }
.result-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--brand); }
.result-icon .ui-icon { width: 18px; height: 18px; }
@media (max-width: 560px) { .result-item { grid-template-columns: auto minmax(0, 1fr); } .result-item > :last-child { grid-column: 2; justify-self: start; } .stage-steps li { flex: 1 1 40%; } }
.choice input { width: 18px; height: 18px; padding: 0; border: 0; box-shadow: none; flex: none; background: transparent; }

/* v9 · identitas SalapanYouth */
.brand-logo{display:block;object-fit:contain;flex:none}
.workspace-brand{display:flex;align-items:center;gap:10px}
.workspace-brand img{border-radius:10px;object-fit:contain}
.brand-text{display:flex;flex-direction:column;line-height:1.15}.brand-text small{font-size:.72rem;opacity:.75;font-weight:600}
.login-aside .brand{display:flex;align-items:center;gap:12px}.login-aside .brand-logo{background:#fff;border-radius:14px;padding:3px}
.boot .brand-logo{border-radius:14px}
.brand-greet{display:flex;align-items:center;gap:14px;padding:4px 2px 14px}
.brand-greet img{border-radius:14px;object-fit:contain}.brand-greet strong{display:block;font-size:1.25rem}.brand-greet small{opacity:.8}
.project-banner{--pb:#1c4bbc;display:flex;align-items:center;gap:20px;padding:22px 26px;border-radius:22px;color:#fff;margin-bottom:14px;background:linear-gradient(120deg,var(--pb),#0C1730 120%);overflow:hidden}
.project-banner img{border-radius:18px;background:rgba(255,255,255,.92);padding:6px;object-fit:contain;flex:none}
.project-banner small{opacity:.85;font-weight:600}.project-banner h2{margin:2px 0 4px;font-size:1.7rem;color:#fff}.project-banner p{margin:0;opacity:.9;color:#fff}
.project-row{border-left:6px solid var(--pa,transparent);border-radius:18px}
.about-hero{display:flex;gap:24px;align-items:center;margin-bottom:14px}.about-hero img{border-radius:20px;object-fit:contain}.about-tag{font-weight:700;font-size:1.15rem}
.about-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}.about-values strong{font-size:1.1rem}
.about-archive{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}.about-archive li{display:flex;align-items:center;gap:12px}.about-archive li div{flex:1}.about-archive small{display:block;opacity:.75}.about-archive .dot{width:12px;height:12px;border-radius:50%;flex:none}
.card-img{width:100%;max-width:560px;border-radius:20px;display:block;margin:10px 0 14px}
.badge-list{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.badge-item{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:18px;border:1px solid var(--line,rgba(120,140,190,.35));opacity:.8}.badge-item.earned{opacity:1;border-color:#e0a800}
.badge-item small{display:block;opacity:.8}.badge-medal{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:rgba(120,140,190,.25);font-weight:700;flex:none}.badge-item.earned .badge-medal{background:#e0a800;color:#0C1730;font-size:1.3rem}
.lt-page{position:relative}.lt-page::after{content:"SalapanYouth · Bersama, Berkolaborasi, dan Berkreasi!";position:absolute;left:30mm;right:20mm;bottom:12mm;text-align:center;font-size:8pt;color:#777;border-top:1px solid #ccc;padding-top:2mm}
@media (max-width:640px){.about-hero{flex-direction:column;text-align:center}.project-banner{padding:16px}.project-banner img{width:64px;height:64px}.project-banner h2{font-size:1.3rem}}

.profile-facts{display:grid;gap:12px;margin:10px 0}.profile-facts div{display:flex;flex-wrap:wrap;gap:6px 16px}.profile-facts dt{min-width:120px;opacity:.75;font-weight:600}.profile-facts dd{margin:0}
