:root {
  /* Palet Golden Lotus Organizer: putih bersih, hitam hangat, aksen champagne gold #f0d7a9 */
  --bg: #faf8f4; --card: #ffffff; --ink: #161616; --muted: #767676; --line: #e9e3d7;
  --gold: #f0d7a9; --dark: #252525; --dark-2: #3d3d3d;
  --rose: #c9a45c; --rose-d: #8a6a2c; --rose-l: #f8efdc;   /* nama lama dipertahankan: aksen = emas */
  --good: #3f7d5c; --warn: #b8862b; --bad: #b3423c; --side: 268px; --r: 12px;
  --shadow: 0 1px 2px rgba(22,22,22,.05), 0 4px 14px rgba(22,22,22,.04);
  --head: "Khand", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Lato", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161616; --card: #222222; --ink: #f3eee3; --muted: #a39c8e; --line: #3a3630; --rose: #f0d7a9; --rose-d: #f0d7a9; --rose-l: #2e2a20; --shadow: none; }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 15px/1.6 var(--body); }
h1, h2, h3, h4 { font-family: var(--head); margin: 0 0 .4em; font-weight: 300; letter-spacing: .04em; }
h1 { font-size: 1.7rem; } h3 { font-size: 1.1rem; } h4 { font-size: .95rem; margin-top: 1em; }
a { color: var(--rose-d); }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: 6px 10px; z-index: 99; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font: 600 1.15rem Georgia, serif; display: flex; gap: 8px; align-items: center; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.chip { background: var(--rose-l); color: var(--rose-d); padding: 3px 12px; border-radius: 99px; font-size: .85rem; font-weight: 600; }
.save { font-size: .78rem; color: var(--muted); }
.menu-btn { display: none; border: 1px solid var(--line); background: none; font-size: 1.2rem; border-radius: 8px; padding: 2px 10px; color: var(--ink); cursor: pointer; }

/* layout */
.layout { display: grid; grid-template-columns: var(--side) 1fr; min-height: calc(100vh - 53px); }
.side { position: sticky; top: 53px; align-self: start; height: calc(100vh - 53px); overflow: auto; padding: 14px 10px 30px; border-right: 1px solid var(--line); background: var(--card); }
.side .inp { width: 100%; margin-bottom: 8px; }
.nav-group { font: 700 .68rem system-ui; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 8px 4px; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.nav-item:hover { background: var(--rose-l); }
.nav-item.active { background: var(--rose); color: #fff; font-weight: 600; }
.nav-item .ico { width: 1.4em; text-align: center; } .nav-item .tt { flex: 1; }
.nav-item .badge { font-size: .7rem; opacity: .7; }
main { padding: 24px clamp(14px, 3vw, 36px) 60px; min-width: 0; outline: none; }
.tab-head { margin-bottom: 18px; } .tab-head p { margin: 0; max-width: 70ch; }
.tab-no { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rose); font-weight: 700; }
.scrim { display: none; }
.pager { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); }

/* komponen umum */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.inp, .sel, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; min-width: 0; }
.inp:focus, .sel:focus, textarea:focus, .btn:focus-visible, .mini:focus-visible { outline: 2px solid var(--rose); outline-offset: 1px; }
textarea { width: 100%; resize: vertical; }
.btn { font: inherit; font-size: .88rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 6px 13px; border-radius: 8px; cursor: pointer; }
.btn:hover { border-color: var(--rose); }
.btn.primary { background: var(--rose); border-color: var(--rose); color: #fff; font-weight: 600; } .btn.primary:hover { background: var(--rose-d); }
.btn.danger { color: var(--bad); }
.mini { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 6px; padding: 1px 7px; font-size: .78rem; cursor: pointer; }
.mini:hover { border-color: var(--rose); } .mini.danger { color: var(--bad); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.sp { flex: 1; }
.lbl { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.field .inp { width: 100%; }
.note small { font-weight: 400; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; border: 1px dashed var(--line); border-radius: var(--r); }

/* stat */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; border-left: 4px solid var(--rose); }
.stat.good { border-left-color: var(--good); } .stat.bad { border-left-color: var(--bad); } .stat.warn { border-left-color: var(--warn); }
.stat-v { font: 600 1.25rem Georgia, serif; overflow-wrap: anywhere; } .stat-l { font-size: .78rem; color: var(--muted); } .stat-s { font-size: .72rem; color: var(--muted); }
.bar-wrap { margin: 0 0 12px; } .bar-label { font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 3px; }
.bar { height: 9px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--gold)); border-radius: 99px; transition: width .3s; } .bar i.over { background: var(--bad); }

/* tabel */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); max-height: 70vh; }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; }
.grid th { position: sticky; top: 0; z-index: 2; background: var(--rose-l); text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 8px; white-space: nowrap; cursor: pointer; border-bottom: 1px solid var(--line); user-select: none; }
.grid td { padding: 3px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid tbody tr:hover td { background: color-mix(in srgb, var(--rose-l) 45%, transparent); }
.grid tr.done td { opacity: .55; } .grid tr.done .inp[type=text] { text-decoration: line-through; }
.grid .inp, .grid .sel { width: 100%; min-width: 96px; border-color: transparent; background: transparent; padding: 5px 6px; }
.grid .inp:hover, .grid .sel:hover { border-color: var(--line); }
.grid .inp:focus, .grid .sel:focus { background: var(--card); }
.grid .wide .inp { min-width: 200px; }
.grid .num { text-align: right; min-width: 110px; }
.grid .c-check { text-align: center; width: 48px; } .chk { width: 18px; height: 18px; accent-color: var(--rose); cursor: pointer; }
.grid .c-date .inp, .grid .c-time .inp { min-width: 130px; }
.grid .c-calc { white-space: nowrap; padding: 3px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.grid .acts { white-space: nowrap; width: 1%; text-align: right; padding-right: 6px; } .acts .mini { margin-left: 3px; }
.grid tfoot td { position: sticky; bottom: 0; background: var(--card); font-weight: 700; border-top: 2px solid var(--line); padding: 8px 10px; text-align: right; white-space: nowrap; }
.grid tfoot .tot-l { text-align: left; }
.urlcell { display: flex; align-items: center; gap: 2px; } .ext { text-decoration: none; padding: 0 4px; }
.sel[data-tone=good] { color: var(--good); font-weight: 600; } .sel[data-tone=warn] { color: var(--warn); font-weight: 600; } .sel[data-tone=bad] { color: var(--bad); font-weight: 600; }
.search { min-width: 160px; }

/* dashboard */
.hero { text-align: center; padding: 26px 16px; border-radius: 18px; margin-bottom: 14px; color: #fff; background: linear-gradient(135deg, var(--rose), var(--gold)); }
.hero-n { font: 700 3.6rem/1 Georgia, serif; } .hero-t { font-size: 1.05rem; } .hero-s { opacity: .9; font-size: .88rem; margin-top: 6px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.ring-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 8px; background: var(--card); border-radius: 50%; } .ring span { position: relative; font-weight: 700; font-size: .9rem; }
.list { list-style: none; margin: 0; padding: 0; } .list li { padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; display: flex; gap: 6px; align-items: center; }
.list li.done { opacity: .5; text-decoration: line-through; } .list li.bad a { color: var(--bad); }
.dt { font-size: .75rem; color: var(--muted); min-width: 86px; }
.trk { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: end; } .trk .bar-wrap { margin: 4px 0; }

/* kalender */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .cal-head h3 { margin: 0 8px; min-width: 150px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.day { min-height: 68px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 4px 6px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.day.blank { border: none; background: none; cursor: default; }
.day.today { border-color: var(--rose); } .day.sel { background: var(--rose-l); outline: 2px solid var(--rose); } .day.wed { background: linear-gradient(135deg, var(--rose-l), #f7eacb); }
.dn { font-weight: 600; font-size: .85rem; } .dots { display: flex; flex-wrap: wrap; gap: 3px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); margin-right: 2px; }
.dot.done { opacity: .3; } .dot.wedding { background: var(--gold); box-shadow: 0 0 0 2px var(--rose); } .dot.budget { background: #5a8dc9; } .dot.plan { background: var(--rose); }
.dot.decor { background: #9b6fc2; } .dot.logistic { background: #3da5a0; } .dot.pre { background: var(--warn); } .dot.post { background: var(--good); } .dot.custom { background: var(--ink); }
.dot.guest, .dot.stationery, .dot.fun, .dot.start, .dot.overview { background: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--muted); margin: 10px 0 14px; }

/* seating */
.seat-layout { display: grid; grid-template-columns: 270px 1fr; gap: 14px; align-items: start; }
.pool { position: sticky; top: 66px; max-height: calc(100vh - 90px); overflow: auto; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tbl { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 8px; min-height: 120px; }
.tbl.over { border-color: var(--bad); } .tbl-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.tbl .name { flex: 1; font-weight: 600; width: 100%; } .cap { display: flex; align-items: center; font-size: .85rem; gap: 2px; } .capin { width: 56px; padding: 3px 4px; }
.person { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--rose-l); border-radius: 8px; padding: 4px 8px; margin: 3px 0; cursor: grab; font-size: .86rem; border: 1px solid transparent; }
.person.picked { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose); }
.row-add { display: flex; gap: 6px; margin-bottom: 8px; } .row-add .inp, .row-add .sel { flex: 1; }

/* moodboard */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; display: flex; align-items: flex-end; justify-content: center; }
.sw small { font-size: .6rem; background: rgba(255,255,255,.85); color: #333; border-radius: 4px; padding: 0 3px; margin-bottom: -6px; }
.colorin { width: 48px; height: 38px; border: none; background: none; padding: 0; cursor: pointer; }
.masonry { columns: 220px; column-gap: 12px; } .pin { break-inside: avoid; margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pin img { width: 100%; display: block; cursor: zoom-in; } .pin figcaption { padding: 8px; display: grid; gap: 6px; } .pin .inp { width: 100%; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: grid; place-items: center; z-index: 100; cursor: zoom-out; } .lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }

/* dropdown dinamis, gambar, textarea di tabel */
.dyncell { display: flex; align-items: center; gap: 3px; } .dyncell .sel, .dyncell .inp { flex: 1; }
.grid textarea.ta { width: 100%; min-width: 230px; border-color: transparent; background: transparent; padding: 5px 6px; line-height: 1.4; }
.grid textarea.ta:hover { border-color: var(--line); } .grid textarea.ta:focus { background: var(--card); }
.imgcell { display: flex; align-items: center; gap: 4px; min-width: 96px; }
.imgcell img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }

/* moodboard bergaya papan inspirasi */
.mb-board { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.mb-head { padding: 22px 28px 14px; }
.mb-title { font: italic 400 2.6rem/1.1 "Snell Roundhand", "Apple Chancery", "Brush Script MT", "Segoe Script", cursive; border: none; background: none; color: var(--ink); width: 100%; padding: 0; }
.mb-title:focus { outline: none; border-bottom: 1px dashed var(--rose); }
.mb-date { letter-spacing: .06em; color: var(--muted); font-size: 1.05rem; }
.mb-row { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 16px; padding: 14px 28px 14px 28px; border-top: 1px solid var(--ink); align-items: stretch; }
.mb-label { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.mb-ctl { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; } .mb-row:hover .mb-ctl, .mb-ctl:focus-within { opacity: 1; }
.mb-name { font: 400 1.25rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .03em; border: none; background: none; color: var(--ink); width: 100%; padding: 2px 0; margin-top: auto; }
.mb-name:focus { outline: none; border-bottom: 1px dashed var(--rose); }
.mb-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mb-img, .mb-empty { aspect-ratio: 3 / 4; border-radius: 6px; position: relative; overflow: hidden; }
.mb-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.mb-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.mb-img:hover .mb-x, .mb-x:focus-visible { opacity: 1; }
.mb-empty { border: 2px dashed var(--line); background: none; color: var(--muted); font-size: 1.8rem; cursor: pointer; } .mb-empty:hover { border-color: var(--rose); color: var(--rose); }
@media (max-width: 860px) {
  .mb-row { grid-template-columns: 1fr; padding: 12px 14px; } .mb-imgs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mb-head { padding: 16px 14px 10px; } .mb-title { font-size: 2.1rem; } .mb-ctl { opacity: 1; } .mb-x { opacity: 1; }
}
@media print { .mb-ctl, .mb-x, .mb-empty { display: none !important; } .mb-board { box-shadow: none; } }

/* day guide */
.guide-head { text-align: center; margin: 4px 0 16px; } .guide-head h2 { font-size: 2rem; margin: 0; } .guide-head p { margin: 0; color: var(--muted); }
table.plain { width: 100%; border-collapse: collapse; font-size: .9rem; } .plain th { text-align: left; font-size: .75rem; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); padding: 5px 8px; } .plain td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.cols { columns: 2 220px; list-style: none; padding: 0; margin: 0; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); background: var(--ink); color: var(--bg); padding: 9px 18px; border-radius: 99px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; font-size: .9rem; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* mobile */
@media (max-width: 860px) {
  .menu-btn { display: block; } .save { display: none; }
  .layout { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; top: 53px; left: 0; width: min(290px, 86vw); transform: translateX(-100%); transition: transform .25s; height: calc(100vh - 53px); }
  body.nav-open .side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.nav-open .scrim { display: block; position: fixed; inset: 53px 0 0 0; background: rgba(0,0,0,.35); z-index: 35; }
  .seat-layout { grid-template-columns: 1fr; } .pool { position: static; max-height: 40vh; }
  .trk { grid-template-columns: 1fr; } .day { min-height: 54px; padding: 3px; } h1 { font-size: 1.4rem; }
}

/* cetak */
@media print {
  .topbar, .side, .toolbar, .pager, .scrim, .toast, .acts, .mini, .search, .filter { display: none !important; }
  .layout { display: block; } body { background: #fff; color: #000; } main { padding: 0; }
  .table-wrap { max-height: none; overflow: visible; border: none; } .card, .stat { box-shadow: none; break-inside: avoid; }
  .grid .inp, .grid .sel { border: none; appearance: none; }
  .guide-sec { break-inside: avoid; }
}


/* ===================== Tema Golden Lotus ===================== */
body { font-weight: 400; }
h1 { font-size: 2rem; } h3 { font-size: 1.3rem; font-weight: 400; }
.brand { font: 400 1.2rem var(--head); letter-spacing: .06em; }
.topbar { background: var(--card); }
.chip { background: var(--dark); color: var(--gold); font-weight: 400; letter-spacing: .04em; }
.tab-no { color: var(--rose-d); letter-spacing: .14em; font-weight: 700; }
.tab-head h1 { text-transform: none; }

/* sidebar gelap seperti panel "About" situs Golden Lotus; nav aktif berbentuk pill outline emas */
.side { background: var(--dark); border-right: none; color: #e9e3d6; }
.side .inp { background: rgba(255,255,255,.06); border-color: rgba(240,215,169,.25); color: #fff; }
.side .inp::placeholder { color: rgba(255,255,255,.5); }
.nav-group { color: var(--gold); opacity: .75; letter-spacing: .14em; }
.nav-item { color: #e9e3d6; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; border: 2px solid transparent; border-radius: 99px; padding: 6px 12px; }
.nav-item:hover { background: rgba(240,215,169,.12); }
.nav-item.active { background: transparent; border-color: var(--gold); color: var(--gold); font-weight: 700; }
.nav-item .badge { opacity: .6; }

/* tombol: primer gelap bertinta emas */
.btn { letter-spacing: .03em; border-radius: 99px; padding: 6px 16px; }
.btn.primary { background: var(--dark); border-color: var(--dark); color: var(--gold); font-weight: 700; }
.btn.primary:hover { background: #000; border-color: #000; }
@media (prefers-color-scheme: dark) { .btn.primary { background: var(--gold); border-color: var(--gold); color: #161616; } .btn.primary:hover { background: #fff; border-color: #fff; } }
.mini { border-radius: 99px; }
.stat { border-left-color: var(--gold); border-left-width: 5px; }
.stat-v { font-family: var(--head); font-weight: 300; font-size: 1.5rem; letter-spacing: .03em; }
.grid th { background: var(--rose-l); color: var(--ink); font-weight: 700; letter-spacing: .08em; }
.hero { background: var(--dark); color: var(--gold); border-radius: 12px; }
.hero-n { font-family: var(--head); font-weight: 300; letter-spacing: .08em; }
.hero-s { color: #e9e3d6; }
.bar i { background: linear-gradient(90deg, var(--gold), var(--rose)); }
.day.wed { background: linear-gradient(135deg, var(--rose-l), #f4e3bd); }
.dot.budget { background: #5a7fa3; } .dot.decor { background: #8b6aa6; } .dot.logistic { background: #3a8d88; }
.mb-name { font-family: var(--head); font-weight: 300; letter-spacing: .08em; font-size: 1.4rem; }
.toast { background: var(--dark); color: var(--gold); }

/* topbar aplikasi: pemilih pernikahan, pengguna, status simpan */
.wed-switch { font-family: var(--head); font-size: 1.1rem; letter-spacing: .05em; border: none; background: transparent; padding: 2px 4px; max-width: 260px; cursor: pointer; font-weight: 400; }
.user { font-size: .85rem; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.save.bad { color: var(--bad); font-weight: 700; }
.banner { position: sticky; top: 53px; z-index: 25; background: var(--rose-l); border-bottom: 1px solid var(--line); padding: 8px 18px; font-size: .9rem; }
.banner .bn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.members .plain td, .members .plain th { vertical-align: middle; }

/* mode viewer: hanya lihat (server tetap menolak perubahan) */
body.readonly .grid input, body.readonly .grid select, body.readonly .grid textarea, body.readonly .field input,
body.readonly .person, body.readonly .tbl .inp, body.readonly .mb-name, body.readonly .mb-title, body.readonly .swatches .colorin { pointer-events: none; }
body.readonly .btn.primary, body.readonly .grid .acts, body.readonly .mb-x, body.readonly .mb-empty, body.readonly .mb-ctl,
body.readonly .imgcell .mini, body.readonly .dyncell .mini, body.readonly .row-add, body.readonly .sw { display: none !important; }
body.readonly .toolbar .btn:not(.keep) { opacity: .9; }

/* masuk / daftar */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--dark); }
.auth-card { width: min(420px, 100%); background: var(--card); border-radius: 16px; padding: 28px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.auth-brand { text-align: center; margin-bottom: 16px; } .auth-brand h1 { margin: 6px 0 2px; }
.auth-logo { font-size: 2.4rem; }
.tabsw { display: flex; border: 2px solid var(--dark); border-radius: 99px; padding: 2px; margin-bottom: 16px; }
.tabbtn { flex: 1; border: none; background: none; font: inherit; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; padding: 7px; border-radius: 99px; cursor: pointer; color: var(--ink); }
.tabbtn.on { background: var(--dark); color: var(--gold); font-weight: 700; }
.auth-form { display: grid; gap: 12px; } .auth-form .inp { width: 100%; }
.auth-err { color: var(--bad); min-height: 1.2em; margin: 0; font-size: .88rem; }
.wide-btn { width: 100%; padding: 10px; }

/* halaman RSVP publik */
.rsvp-page { background: var(--dark); min-height: 100vh; display: grid; place-items: center; padding: 20px 14px; }
.rsvp-card { width: min(520px, 100%); background: var(--card); border-radius: 16px; padding: 30px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.rsvp-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.rsvp-head h1 { font-size: 2.4rem; margin: 0; } .rsvp-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: var(--rose-d) !important; font-weight: 700; }
.greet { margin: 0 0 12px; }
.choices { display: grid; gap: 8px; margin-bottom: 14px; }
.choice { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--rose); background: var(--rose-l); }
.choice input { accent-color: var(--dark); width: 18px; height: 18px; }
.rsvp-card form { display: grid; gap: 12px; } .rsvp-card .inp { width: 100%; }
.rsvp-done { text-align: center; display: grid; gap: 10px; justify-items: center; }

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; } .user #userName { display: none; } .wed-switch { max-width: 150px; }
  .banner { top: 0; position: static; }
}
@media print { .banner, .auth { display: none !important; } }
