:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f8faf5;
  --text: #1f2937;
  --muted: #64748b;
  --accent: #118a3a;
  --gold: #d7b53b;
  --orange: #c94f16;
  --red: #b91c1c;
  --line: rgba(17, 24, 39, .12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
  color: var(--text);
}
a { color: var(--accent); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.grid { display: grid; gap: 16px; }
.rooms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) {
  .rooms-grid { grid-template-columns: 1fr; }
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 10px 30px rgba(17,24,39,.06); }
.title { font-size: clamp(28px, 4vw, 42px); margin: 0 0 6px; }
.sub { margin: 0 0 18px; color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn, button {
  border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer;
  background: #e5e7eb; color: #111827; font-weight: 700;
}
.btn.primary, button.primary { background: linear-gradient(135deg, var(--accent), #0f6f31); color: white; }
.btn.blue { background: linear-gradient(135deg, var(--gold), #b08f21); color: #111827; }
.btn.warn { background: linear-gradient(135deg, var(--orange), #9a3412); color: white; }
.btn.danger { background: linear-gradient(135deg, var(--red), #7f1d1d); color: white; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--text);
}
table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.s0 { background: #93c5fd; color: #1e3a8a; }
.s1 { background: #fde68a; color: #92400e; }
.s2 { background: #f9a8d4; color: #9d174d; }
.s3 { background: #c4b5fd; color: #5b21b6; }
.s4 { background: #a7f3d0; color: #065f46; }
.s5 { background: #d1d5db; color: #374151; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.card .num { font-size: 36px; font-weight: 800; }
.status-card {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  box-shadow: 0 12px 26px rgba(17,24,39,.10);
  border: 0;
  color: inherit;
}
.status-card .muted,
.status-card .num { position: relative; z-index: 1; }
.status-card.s0 { background: #93c5fd; }
.status-card.s1 { background: #fde68a; }
.status-card.s2 { background: #f9a8d4; }
.status-card.s3 { background: #c4b5fd; }
.status-card.s4 { background: #a7f3d0; }
.status-card.s5 { background: #d1d5db; }
.status-card .num { text-shadow: 0 2px 10px rgba(0,0,0,.18); }

.committee-home { min-height: 100vh; display: grid; align-content: center; gap: 18px; }
.committee-welcome, .page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.committee-welcome .sub, .page-heading .sub { margin-bottom: 0; }
.committee-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.committee-menu-card { min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 28px; border-radius: 24px; color: #172033; text-decoration: none; box-shadow: 0 18px 40px rgba(17,24,39,.13); transition: transform .2s ease, box-shadow .2s ease; }
.committee-menu-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(17,24,39,.17); }
.committee-menu-card.menu-rooms { background: #a7f3d0; }
.committee-menu-card.menu-status { background: #fde68a; }
.committee-menu-card h2 { margin: 7px 0 10px; font-size: clamp(28px, 4vw, 42px); }
.committee-menu-card p { margin: 0; max-width: 460px; color: #475569; line-height: 1.65; }
.menu-card-index { align-self: flex-end; font-size: 42px; line-height: 1; font-weight: 900; color: rgba(15,23,42,.16); }
.menu-card-action { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(15,23,42,.14); font-weight: 900; }
.menu-card-action b { font-size: 26px; }
.room-card-link { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.room-card-link:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(17,24,39,.13); }

.children-status-list { display: grid; gap: 12px; margin-top: 18px; }
.child-status-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--line); border-left: 6px solid #f9a8d4; border-radius: 16px; background: #fff7fa; }
.child-status-item.status-waiting { border-left-color: #eab308; background: #fffdf2; }
.child-status-item.status-observasi { border-left-color: #8b5cf6; background: #faf8ff; }
.child-status-item.status-bingkisan { border-left-color: #10b981; background: #f3fff9; }
.child-status-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.child-status-main h3 { margin: 3px 0 5px; }
.child-number { color: #64748b; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-chip { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid rgba(15,23,42,.08); font-size: 12px; font-weight: 800; }
.child-next-action { min-width: 240px; background: #e9a93a; color: #31200a; }
.child-next-action:hover:not(:disabled) { background: #f2b94f; transform: translateY(-1px); }
.status-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 16px; color: #64748b; text-align: center; background: #fafcf8; }
.status-search { position: relative; margin-top: 18px; }
.status-search input { padding-left: 46px; min-height: 50px; border-radius: 15px; font-size: 15px; box-shadow: 0 8px 20px rgba(17,24,39,.05); }
.search-symbol { position: absolute; left: 16px; top: 50%; transform: translateY(-52%); color: var(--accent); font-size: 25px; font-weight: 900; pointer-events: none; }
.search-summary { margin-top: 9px; font-size: 13px; }
.waiting-note { min-width: 220px; padding: 11px 14px; border-radius: 12px; background: #fef3c7; color: #92400e; text-align: center; font-size: 13px; font-weight: 800; }
.admin-status-controls { display: grid; grid-template-columns: minmax(160px, 1fr) auto auto; gap: 10px; margin-top: 16px; align-items: center; }
.admin-status-controls button { white-space: nowrap; }
.table-status-action { min-width: 240px; }
.table-status-action select { min-width: 145px; width: auto; margin-right: 8px; }
.table-status-action button { padding: 11px 14px; }
.admin-table-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 14px; align-items: end; }
.admin-search { margin-top: 0; }
.page-size-control { display: grid; grid-template-columns: auto 88px; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 800; }
.page-size-control select { min-width: 88px; }
.pagination-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.pagination-bar strong { min-width: 110px; text-align: center; font-size: 13px; }
.pagination-bar button:disabled { opacity: .45; cursor: not-allowed; }
.table-empty { padding: 28px; text-align: center; color: var(--muted); }
.admin-participant-heading { margin-top: 24px; }
.participant-admin-card { display: grid; gap: 6px; }
.participant-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.participant-card-head h3 { margin: 4px 0 8px; }
.participant-data-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.participant-data-actions button { padding: 9px 12px; font-size: 12px; }
.participant-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; padding: 14px; border-radius: 14px; background: #f8faf5; border: 1px solid var(--line); }
.participant-edit-form .row { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .admin-status-controls { grid-template-columns: 1fr; }
  .participant-card-head { flex-direction: column; }
  .participant-data-actions { justify-content: flex-start; }
  .participant-edit-form { grid-template-columns: 1fr; }
  .admin-table-toolbar { grid-template-columns: 1fr; }
  .page-size-control { justify-content: start; }
  .pagination-bar { justify-content: space-between; }
}

/* Admin control center */
.admin-page {
  --admin-ink: #18251d;
  --admin-green: #087a3e;
  --admin-green-dark: #075b31;
  --admin-lime: #dff4bc;
  --admin-gold: #efc84a;
  --admin-cream: #fbfaf4;
  min-height: 100vh;
  background: #f6f8f4;
  color: var(--admin-ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}
.admin-shell { max-width: 1420px; padding: 32px; }
.admin-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  min-height: 245px;
  padding: 38px;
  border-radius: 30px;
  background: var(--admin-green-dark);
  color: #fff;
  box-shadow: 0 22px 55px rgba(7, 91, 49, .18);
}
.admin-hero::before,
.admin-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 34px solid rgba(255,255,255,.06);
}
.admin-hero::before { width: 260px; height: 260px; right: -90px; top: -150px; }
.admin-hero::after { width: 120px; height: 120px; left: 47%; bottom: -105px; }
.admin-hero-copy, .admin-hero-stats { position: relative; z-index: 1; }
.admin-kicker { color: #f6d970; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.admin-hero h1 { margin: 10px 0 8px; font-size: clamp(38px, 6vw, 68px); line-height: .98; letter-spacing: -.045em; }
.admin-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.6; }
.admin-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(105px, 1fr)); gap: 10px; }
.hero-stat { min-width: 116px; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.hero-stat span { display: block; color: #f9dc70; font-size: 30px; font-weight: 900; line-height: 1; }
.hero-stat small { display: block; margin-top: 8px; color: rgba(255,255,255,.68); font-size: 11px; font-weight: 800; }
.admin-command-grid { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 16px; margin-top: 18px; }
.admin-command-card { display: flex; flex-direction: column; min-height: 280px; padding: 24px; border: 1px solid rgba(24,37,29,.09); border-radius: 24px; background: #fff; box-shadow: 0 14px 34px rgba(24,37,29,.07); }
.admin-command-card.command-add { border-top: 5px solid var(--admin-green); }
.admin-command-card.command-import { background: #fff8da; border-top: 5px solid var(--admin-gold); }
.admin-command-card.command-report { background: var(--admin-ink); border-color: var(--admin-ink); color: #fff; }
.command-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.command-card-head h2 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.025em; }
.command-number { order: 2; color: rgba(24,37,29,.17); font-size: 34px; font-weight: 900; line-height: 1; }
.command-report .command-number { color: rgba(255,255,255,.18); }
.command-report .eyebrow { color: #f6d970; }
.admin-command-card input { border-color: rgba(24,37,29,.12); background: rgba(255,255,255,.88); }
.admin-command-card input:focus, .admin-workspace input:focus, .admin-page select:focus { outline: 3px solid rgba(8,122,62,.14); border-color: var(--admin-green); }
.admin-command-card button.primary { background: var(--admin-green); color: #fff; }
.command-button { width: 100%; margin-top: 12px; background: var(--admin-gold) !important; color: #4a3800 !important; }
.command-note { margin: 14px 0 0; color: #735f1c; font-size: 12px; line-height: 1.5; }
.command-report p { flex: 1; margin: 4px 0 22px; color: rgba(255,255,255,.65); line-height: 1.65; }
.report-download { display: flex; justify-content: space-between; align-items: center; width: 100%; background: #f4d35e; color: #2e270e; text-decoration: none; }
.report-download span { font-size: 20px; }
.admin-workspace { margin-top: 18px; padding: 26px; border: 1px solid rgba(24,37,29,.09); border-radius: 28px; background: #fff; box-shadow: 0 16px 40px rgba(24,37,29,.07); }
.admin-section-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.admin-section-title h2 { margin: 4px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; background: #edf9f1; color: #176a3a; font-size: 11px; font-weight: 900; }
.live-indicator i { width: 7px; height: 7px; border-radius: 999px; background: #1fb455; box-shadow: 0 0 0 4px rgba(31,180,85,.13); }
.admin-table-toolbar { padding: 14px; border-radius: 18px; background: var(--admin-cream); }
.admin-table-scroll { overflow: auto; margin-top: 16px; border: 1px solid rgba(24,37,29,.08); border-radius: 18px; }
.admin-page table { min-width: 1420px; }
.admin-page thead { position: sticky; top: 0; z-index: 2; }
.admin-page th { padding: 14px 12px; background: #f1f5ef; color: #607067; font-size: 11px; }
.admin-page td { padding: 13px 12px; font-size: 13px; }
.admin-page tbody tr:nth-child(even) { background: #fbfcfa; }
.admin-page tbody tr:hover { background: #f4faf5; }
.admin-page .table-status-action { position: sticky; right: 0; z-index: 1; background: inherit; box-shadow: -10px 0 18px rgba(24,37,29,.04); }
.admin-page .table-status-action select { background: #fff; }
.admin-page .table-status-action button { background: var(--admin-green); color: #fff; }
.admin-page .cell-number { width: 70px; color: #607067; font-weight: 900; }
.admin-page .cell-name { min-width: 150px; }
.admin-page tr.is-editing { background: #f0f8f2; }
.admin-page tr.is-editing td { padding-top: 10px; padding-bottom: 10px; }
.admin-page tr.is-editing input { min-width: 130px; padding: 10px; border-radius: 10px; }
.admin-page tr.is-editing .row-edit-urut { min-width: 64px; width: 64px; }
.admin-page .table-data-actions { min-width: 112px; white-space: nowrap; }
.admin-page .icon-action, .admin-page .row-save-action { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; margin-right: 6px; padding: 8px 10px; border: 1px solid rgba(24,37,29,.1); border-radius: 11px; background: #f3f6f2; color: #405047; box-shadow: none; }
.admin-page .icon-action svg { width: 19px; height: 19px; fill: currentColor; }
.admin-page .edit-icon { color: var(--admin-green); background: #edf9f1; }
.admin-page .delete-icon { color: #b42323; background: #fff0f0; }
.admin-page .delete-icon.is-confirming { min-width: 70px; background: #b42323; color: #fff; font-size: 11px; font-weight: 900; }
.admin-page .row-save-action { background: var(--admin-green); color: #fff; }
.admin-page .pagination-bar { padding-top: 4px; }
.admin-page .pagination-bar button { border: 1px solid rgba(24,37,29,.1); background: #f7f9f6; }
.admin-toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 420px; margin: 0 !important; box-shadow: 0 18px 44px rgba(24,37,29,.2); }
@media (max-width: 980px) {
  .admin-hero { grid-template-columns: 1fr; align-items: start; }
  .admin-command-grid { grid-template-columns: 1fr 1fr; }
  .command-report { grid-column: 1 / -1; min-height: 220px; }
}
@media (max-width: 720px) {
  .admin-shell { padding: 16px; }
  .admin-hero { min-height: 0; padding: 26px 22px; border-radius: 24px; }
  .admin-hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stat { min-width: 0; padding: 12px 9px; }
  .hero-stat span { font-size: 24px; }
  .admin-command-grid { grid-template-columns: 1fr; }
  .command-report { grid-column: auto; }
  .admin-command-card { min-height: auto; }
  .admin-workspace { padding: 18px 14px; border-radius: 22px; }
  .admin-section-title { flex-direction: column; }
  .admin-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* Public dashboard */
.public-dashboard-page {
  min-height: 100vh;
  background: #f6f8f4;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}
.public-dashboard-shell { max-width: 1500px; padding: 28px; }
.public-dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; padding: 4px 4px 0; }
.public-dashboard-header .title { margin: 5px 0 0; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.045em; }
.dashboard-header-actions { display: flex; align-items: center; gap: 9px; }
.dashboard-live { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #b8e6c8; border-radius: 999px; background: #ecfdf3; color: #087a3e; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-live i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 5px rgba(22,163,74,.12); }
.voice-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #d9b934; border-radius: 999px; background: #fff7ce; color: #66500a; font-size: 11px; font-weight: 900; box-shadow: none; }
.voice-toggle svg { width: 17px; height: 17px; fill: currentColor; }
.voice-toggle.is-active { border-color: #087a3e; background: #087a3e; color: #fff; }
.voice-toggle:disabled { opacity: .5; cursor: not-allowed; }
.voice-test { padding: 9px 12px; border: 1px solid #b8e6c8; border-radius: 999px; background: #fff; color: #087a3e; font-size: 11px; font-weight: 900; box-shadow: none; }
.announcement-banner { margin: 0 0 16px; padding: 14px 18px; border: 1px solid #e5c54b; border-radius: 16px; background: #fff7ce; color: #5f4a08; font-weight: 900; box-shadow: 0 10px 26px rgba(95,74,8,.1); }
.audio-status { margin: -7px 3px 16px; color: #64748b; font-size: 11px; font-weight: 800; text-align: right; }
.audio-status.success { color: #087a3e; }
.audio-status.error { color: #b42323; }
.public-dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 18px; align-items: start; }
.public-dashboard-main { display: grid; gap: 18px; min-width: 0; }
.public-dashboard-page .panel { border-color: rgba(24,37,29,.09); border-radius: 24px; padding: 22px; box-shadow: 0 14px 34px rgba(24,37,29,.07); }
.dashboard-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.dashboard-section-head h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.025em; }
.dashboard-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-dashboard-page .status-card { min-height: 116px; padding: 17px; border-radius: 18px; box-shadow: none; }
.public-dashboard-page .status-card .muted { color: rgba(31,41,55,.72); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .045em; }
.public-dashboard-page .status-card .num { margin-top: 10px; font-size: 40px; line-height: 1; text-shadow: none; }
.dashboard-queue-panel { min-width: 0; }
.dashboard-table-scroll { overflow: auto; border: 1px solid rgba(24,37,29,.08); border-radius: 16px; }
.public-dashboard-page table { min-width: 720px; }
.public-dashboard-page th { padding: 13px 12px; background: #f2f6f0; color: #607067; font-size: 11px; }
.public-dashboard-page td { padding: 13px 12px; font-size: 13px; }
.public-dashboard-page tbody tr:nth-child(even) { background: #fbfcfa; }
.room-occupancy-panel { position: sticky; top: 18px; }
.occupancy-heading { align-items: center; }
.occupancy-summary { display: inline-grid; place-items: center; min-width: 58px; min-height: 40px; padding: 7px 10px; border-radius: 13px; background: #17251d; color: #f4d35e; font-size: 16px; font-weight: 900; }
.occupancy-legend { display: flex; gap: 16px; margin: -3px 0 15px; color: #64748b; font-size: 11px; font-weight: 800; }
.occupancy-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.available-dot { background: #16a34a; }
.occupied-dot { background: #dc2626; }
.room-occupancy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.occupancy-card { position: relative; overflow: hidden; display: grid; align-content: space-between; min-height: 150px; padding: 14px; border: 1px solid; border-radius: 17px; }
.occupancy-card::after { content: ""; position: absolute; right: -20px; bottom: -24px; width: 68px; height: 68px; border: 13px solid rgba(255,255,255,.28); border-radius: 50%; }
.occupancy-card.is-available { background: #dff7e8; border-color: #9be3b5; color: #145c32; }
.occupancy-card.is-occupied { background: #ffe0df; border-color: #f5aaa7; color: #8d2522; }
.occupancy-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.occupancy-card h3 { margin: 0; max-width: 100px; font-size: 14px; line-height: 1.25; }
.occupancy-state { flex: 0 0 auto; padding: 4px 6px; border-radius: 999px; background: rgba(255,255,255,.62); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.occupancy-child { position: relative; z-index: 1; display: grid; gap: 3px; margin-top: 14px; }
.occupancy-child span { opacity: .68; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.occupancy-child strong { font-size: 13px; line-height: 1.3; }
.occupancy-load { position: relative; z-index: 1; margin-top: 10px; opacity: .72; font-size: 10px; font-weight: 800; }
@media (max-width: 760px) {
  .public-dashboard-layout { grid-template-columns: 1fr; }
  .room-occupancy-panel { position: static; }
  .room-occupancy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .public-dashboard-shell { padding: 16px; }
  .public-dashboard-header { align-items: center; }
  .dashboard-header-actions { align-items: flex-end; flex-direction: column-reverse; }
  .voice-toggle span { display: none; }
  .voice-toggle { padding: 9px; }
  .voice-test { padding: 9px; }
  .audio-status { text-align: left; }
  .dashboard-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-dashboard-page .panel { padding: 16px; border-radius: 20px; }
  .public-dashboard-page .status-card { min-height: 104px; }
  .public-dashboard-page .status-card .num { font-size: 34px; }
}
@media (max-width: 720px) {
  .committee-menu-grid { grid-template-columns: 1fr; }
  .committee-menu-card { min-height: 270px; padding: 22px; }
  .committee-welcome, .page-heading { flex-direction: column; }
  .child-status-item { grid-template-columns: 1fr; }
  .child-status-main { align-items: flex-start; }
  .child-next-action { width: 100%; min-width: 0; }
}
.muted { color: var(--muted); }
.stack { display: grid; gap: 12px; }
.hero { display: grid; gap: 12px; }
.hidden { display: none !important; }
.search-item { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding:12px; border:1px solid var(--line); border-radius:14px; background: #fff; }
.pill { background: #f3f4f6; color: #374151; padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.pill-role { background: #ecfdf5; color: #166534; border: 1px solid #86efac; }
.room-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17,24,39,.08);
}
.room-card .btn-toggle {
  width: 100%;
  justify-content: center;
  display: inline-flex;
}
.room-card.available { background: #dcfce7; border-color: #86efac; }
.room-card.occupied { background: #fee2e2; border-color: #fca5a5; }
.room-card.checkedout { background: #e5e7eb; border-color: #cbd5e1; }
.room-card.available .room-title { color: #166534; }
.room-card.occupied .room-title { color: #991b1b; }
.room-card.checkedout .room-title { color: #374151; }
.room-meta { display: grid; gap: 6px; }
.room-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf4 100%);
}
.room-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.room-hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 16px;
  align-items: end;
}
.room-back { align-self: start; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 800;
}
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill-on { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.pill-off { background: #e5e7eb; color: #475569; border: 1px solid #cbd5e1; }
.field-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.field-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.room-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-action {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  min-width: 180px;
  box-shadow: 0 12px 22px rgba(17,24,39,.10);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(17,24,39,.14);
}
.btn-action-primary { background: linear-gradient(135deg, #1fb455, #118a3a); color: #fff; }
.btn-action-warn { background: linear-gradient(135deg, #f59e0b, #c94f16); color: #fff; }
.btn-action-disabled {
  background: #e5e7eb !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}
.btn-action:disabled {
  background: #e5e7eb !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}
.room-current-card { margin-top: 16px; }
.room-case {
  display: grid;
  gap: 14px;
}
.room-case-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.room-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.case-stat {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.case-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.room-case-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.room-empty {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 120px;
}
.empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: transparent;
}
.btn-ghost {
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #1f2937;
}
.btn-ghost:disabled {
  background: #e5e7eb;
  color: #94a3b8;
  cursor: not-allowed;
}
.btn-toggle:disabled {
  background: #e5e7eb !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  box-shadow: none;
}
@media (max-width: 720px) {
  .room-hero-top,
  .room-hero-actions,
  .room-case-grid {
    grid-template-columns: 1fr;
  }
  .room-hero-top {
    display: grid;
  }
  .room-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .btn-action {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   Public "Cari Nama" (search) + "Pantau Anak" (monitor) pages
   Modern, lightweight, mobile-first redesign.
   ============================================================ */
.cs-page, .pm-page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 480px at 50% -180px, #e7f6ec 0%, rgba(231,246,236,0) 70%),
    linear-gradient(180deg, #fbfdfb 0%, #f4f8f4 100%);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.cs-shell, .pm-shell { max-width: 760px; margin: 0 auto; padding: 22px 18px 140px; }

/* --- Shared brand header --- */
.cs-head { padding-top: 6px; margin-bottom: 16px; }
.cs-brand { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(17,24,39,.05); font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .02em; }
.cs-brand i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(17,138,58,.14); }
.cs-title { margin: 14px 0 4px; font-size: clamp(26px, 5vw, 38px); letter-spacing: -.035em; }
.cs-sub { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* --- Sticky search box --- */
.cs-searchbar { position: sticky; top: 12px; z-index: 5; margin-top: 18px; }
.cs-searchbox { position: relative; }
.cs-searchbox input {
  height: 58px; padding: 0 18px 0 52px; border-radius: 18px; font-size: 16px;
  border: 1px solid var(--line); background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(17,24,39,.08);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cs-searchbox input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(17,138,58,.13), 0 12px 30px rgba(17,24,39,.08); }
.cs-searchbox svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.cs-hint { margin: 9px 4px 0; color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* --- Result list --- */
.cs-results { display: grid; gap: 10px; margin-top: 16px; }
.cs-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 15px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  box-shadow: 0 6px 16px rgba(17,24,39,.04); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.cs-item:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(17,24,39,.09); }
.cs-item:active { transform: translateY(0); }
.cs-item.is-selected { border-color: var(--accent); background: #f3fcf5; box-shadow: 0 0 0 2px rgba(17,138,58,.2), 0 12px 24px rgba(17,138,58,.12); }
.cs-item-name { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.cs-item-meta { color: var(--muted); font-size: 13px; }
.cs-item-meta b { color: #475569; font-weight: 800; }
.cs-item-right { display: grid; justify-items: end; gap: 8px; }
.cs-check {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; background: #fff; transition: all .12s ease;
}
.cs-check svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transition: opacity .12s ease; }
.cs-item.is-selected .cs-check { background: var(--accent); border-color: var(--accent); }
.cs-item.is-selected .cs-check svg { opacity: 1; }
.cs-empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.6); }
.cs-empty svg { width: 42px; height: 42px; stroke: #cbd5e1; stroke-width: 1.6; fill: none; margin-bottom: 10px; }

/* small inline status badge */
.cs-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.cs-open { color: var(--accent); font-size: 13px; font-weight: 800; white-space: nowrap; }

/* resume banner ("lanjutkan pantau anak") */
.cs-resume {
  display: flex; align-items: center; gap: 13px; margin-top: 16px; padding: 13px 15px;
  border-radius: 16px; text-decoration: none; color: #0d3b1f;
  background: linear-gradient(135deg, #e9f9ef, #dff3e6); border: 1px solid #b8e6c8;
  box-shadow: 0 8px 20px rgba(17,138,58,.1);
}
.cs-resume-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.cs-resume-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; }
.cs-resume-txt { display: grid; gap: 2px; min-width: 0; }
.cs-resume-txt b { font-size: 15px; }
.cs-resume-txt small { color: #3f7355; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-resume-arr { margin-left: auto; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.4; }

/* "sudah check-in" recovery section */
.cs-checkedin { margin-top: 18px; }
.cs-section-title { margin: 0 0 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* --- Floating check-in bar --- */
.cs-actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 38%);
  transform: translateY(120%); transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.cs-actionbar.is-visible { transform: translateY(0); }
.cs-actionbar-inner {
  max-width: 760px; margin: 0 auto; display: grid; gap: 12px;
  padding: 14px 16px; border-radius: 20px; background: #102a18;
  box-shadow: 0 18px 40px rgba(16,42,24,.28);
}
.cs-actionbar-row { display: flex; align-items: center; gap: 12px; }
.cs-actionbar-count { color: #d7f5e0; font-size: 14px; font-weight: 800; line-height: 1.2; }
.cs-actionbar-count b { color: #fff; font-size: 20px; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 7px; max-height: 96px; overflow-y: auto; }
.cs-chips:empty { display: none; }
.cs-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  background: rgba(255,255,255,.1); color: #eafaef; font-size: 13px; font-weight: 700;
}
.cs-chip:hover { background: rgba(255,255,255,.18); }
.cs-chip svg { width: 14px; height: 14px; stroke: #bfeccd; stroke-width: 2.4; fill: none; }
.cs-clear-btn {
  margin-left: auto; padding: 12px 16px; border-radius: 13px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); background: transparent; color: #d7f5e0;
  font-size: 14px; font-weight: 800;
}
.cs-clear-btn:hover { background: rgba(255,255,255,.1); }
.cs-checkin-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; border-radius: 15px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #21c25d, #12953f); color: #fff;
  font-size: 16px; font-weight: 800; box-shadow: 0 10px 22px rgba(18,149,63,.4);
}
.cs-checkin-btn:disabled { opacity: .6; cursor: progress; }
.cs-checkin-btn svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2.4; }

/* --- "Pantau Anak" monitor --- */
.pm-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 4px; }
.pm-live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: #ecfdf3; border: 1px solid #b8e6c8; color: #087a3e; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.pm-live i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: pm-pulse 1.8s infinite; }
@keyframes pm-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.pm-updated { color: var(--muted); font-size: 12px; font-weight: 700; }

.pm-cards { display: grid; gap: 16px; margin-top: 18px; }
.pm-card {
  position: relative; overflow: hidden; padding: 20px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(17,24,39,.07);
  border-top: 5px solid var(--accent);
}
.pm-card.s1 { border-top-color: #eab308; }
.pm-card.s2 { border-top-color: #ec4899; }
.pm-card.s3 { border-top-color: #8b5cf6; }
.pm-card.s4 { border-top-color: #10b981; }
.pm-card.s5 { border-top-color: #64748b; }
.pm-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pm-card-name { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.pm-no { color: var(--accent); font-weight: 900; }
.pm-card-wali { color: var(--muted); font-size: 13.5px; }
.pm-badge { flex: 0 0 auto; padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; }

.pm-current { margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; background: #f6f9f5; border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.pm-current-big { font-size: 15px; font-weight: 800; color: var(--text); }
.pm-current-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pm-room { margin-left: auto; text-align: right; }
.pm-room span { display: block; font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pm-room b { font-size: 17px; color: var(--accent); }

/* stepper */
.pm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 18px; }
.pm-step { text-align: center; position: relative; }
.pm-step::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.pm-step:first-child::before { display: none; }
.pm-step.done::before, .pm-step.active::before { background: var(--accent); }
.pm-dot { position: relative; z-index: 1; width: 24px; height: 24px; margin: 0 auto 7px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; }
.pm-step.done .pm-dot { background: var(--accent); border-color: var(--accent); }
.pm-step.active .pm-dot { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(17,138,58,.14); }
.pm-step.active .pm-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pm-dot svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3.4; fill: none; }
.pm-step-label { font-size: 10.5px; font-weight: 800; color: var(--muted); line-height: 1.2; }
.pm-step.done .pm-step-label, .pm-step.active .pm-step-label { color: var(--text); }

.pm-loading, .pm-empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.pm-spinner { width: 34px; height: 34px; margin: 0 auto 14px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: pm-spin .8s linear infinite; }
@keyframes pm-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .pm-step-label { font-size: 9px; }
  .pm-card-name { font-size: 19px; }
  .cs-shell, .pm-shell { padding-left: 14px; padding-right: 14px; }
}
