/* Feature components (scope switcher, setup wizard, checklist, migrator). Uses the tokens from app.css. */

/* migrator */
.mig-track { display: flex; gap: var(--s2); list-style: none; padding: 0; margin: 0 0 var(--s5); flex-wrap: wrap; }
.mig-track li { display: flex; align-items: center; gap: var(--s2); padding: 6px 14px 6px 6px; border-radius: var(--r-pill, 999px); background: var(--sheet); border: 1px solid var(--rule); font-size: 13.5px; font-weight: 650; color: var(--muted); }
.mig-track li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--rule-2); color: var(--ink-2); font-size: 12.5px; }
.mig-track li[aria-current="step"] { color: var(--ink); border-color: var(--brand); }
.mig-track li[aria-current="step"] b { background: var(--brand); color: var(--brand-ink); }
.mig-track li.done b { background: var(--ok-soft); color: var(--ok); }
.mig-path { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; vertical-align: middle; }
.mig-path span { font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: var(--r-xs, 4px); background: var(--sheet-2); border: 1px solid var(--rule); }
.mig-path span + span::before { content: "›"; margin-right: 6px; color: var(--muted); font-weight: 400; }
.mig-key { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: var(--r-xs, 4px); background: var(--brand-soft); color: var(--brand-text); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.mig-shot { border: 1px solid var(--rule); border-radius: var(--r-sm, 7px); overflow: hidden; background: var(--sheet-2); font-size: 12px; max-width: 420px; }
.mig-shot .bar { display: flex; align-items: center; gap: 5px; padding: 6px 10px; background: var(--rule-2); color: var(--muted); }
.mig-shot .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.mig-shot .bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mig-shot .body { padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.mig-shot .fake-btn { padding: 3px 10px; border-radius: var(--r-xs, 4px); background: var(--sheet); border: 1px solid var(--rule); font-weight: 700; }
.mig-shot .fake-btn.hot { background: #1d7a46; color: #fff; border-color: #1d7a46; box-shadow: 0 0 0 3px color-mix(in srgb, #1d7a46 25%, transparent); }
.mig-shot .fake-rows { flex-basis: 100%; display: grid; gap: 4px; margin-top: 4px; }
.mig-shot .fake-rows i { height: 8px; border-radius: 3px; background: var(--rule-2); }
.mig-shot .fake-rows i:nth-child(2) { width: 85%; } .mig-shot .fake-rows i:nth-child(3) { width: 65%; }
.mig-upload input[type=file] { width: 100%; }
.mig-more summary { cursor: pointer; font-weight: 650; font-size: 14px; margin-bottom: var(--s2); }
.mig-bar { height: 12px; border-radius: var(--r-pill, 999px); background: var(--rule-2); overflow: hidden; margin-bottom: var(--s3); }
.mig-bar span { display: block; height: 100%; background: var(--brand); transition: width .3s; }
@media (max-width: 760px) { .mig-how.grid.c2 { grid-template-columns: minmax(0, 1fr); } }

/* onboarding */
/* start wizard (/app/mula) + setup checklist (dashboard card, Tetapan → Persediaan) */
.wz { max-width: 820px; margin: 0 auto; }
.wz-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.wz-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.wz-dots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s1); }
.wz-dots a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 650; text-align: center; padding: 2px; border-radius: var(--r-sm, 7px); }
.wz-dots a:focus-visible { outline: 2px solid var(--focus, var(--brand)); outline-offset: 2px; }
.wz-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--g-key, var(--sheet)); border: 1px solid var(--rule-key, var(--rule)); box-shadow: var(--sh-key, none); color: var(--ink-2); }
.wz-dots .done .wz-dot { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--brand-text, var(--brand)); box-shadow: none; }
.wz-dots .cur .wz-dot { background: var(--g-brand, var(--brand)); border-color: var(--brand-lo, var(--brand)); color: var(--brand-ink); box-shadow: var(--sh-key, none), 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.wz-dots .cur a { color: var(--ink); }
.wz-bar { height: 6px; border-radius: var(--r-pill, 999px); background: var(--rule-2); box-shadow: var(--sh-inset, none); overflow: hidden; margin: var(--s3) 0 var(--s4); }
.wz-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-hi, var(--brand)), var(--brand)); border-radius: inherit; transition: width .3s; }
.wz-card { padding: var(--s6); }
.wz-card h1 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 var(--s2); }
.wz-card .lead { color: var(--ink-2); font-size: 15.5px; margin: 0 0 var(--s5); max-width: 40em; }
.wz-hero { text-align: center; }
.wz-hero .lead { margin-left: auto; margin-right: auto; }
.wz-emoji { width: 64px; height: 64px; margin: 0 auto var(--s3); border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text, var(--brand)); box-shadow: var(--hl, none); }
.wz-emoji svg { width: 30px; height: 30px; }
.wz-plan { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s2); }
.wz-plan li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--r-sm, 7px); background: var(--sheet-2, var(--sheet)); }
.wz-plan li b { font-weight: 750; }
.wz-plan li span { color: var(--muted); font-size: 14px; }
.wz-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule-2); flex-wrap: wrap; }
.wz-nav-r { display: flex; gap: var(--s2); margin-left: auto; flex-wrap: wrap; }
.wz-logo { display: flex; gap: var(--s4); align-items: center; padding: var(--s3); border: 1px dashed var(--rule-key, var(--rule)); border-radius: var(--r-sm, 7px); background: var(--sheet-2, var(--sheet)); }
.wz-logo img, .wz-logo-ph { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; flex: none; }
.wz-logo-ph { display: grid; place-items: center; background: var(--g-brand, var(--brand)); color: var(--brand-ink); font-weight: 800; font-size: 20px; }
.wz-have { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: var(--s4); }
.wz-rows { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.wz-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); }
.wz-row-head span { font-weight: 650; }
.wz-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-bottom: var(--s3); }
.wz-choice { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: var(--s3); padding: var(--s4); text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius, 12px); background: var(--g-paper, var(--sheet)); box-shadow: var(--sh-1, var(--shadow)); transition: transform .12s, box-shadow .12s, border-color .12s; }
.wz-choice:hover { transform: translateY(-1px); box-shadow: var(--sh-2, var(--shadow)); border-color: color-mix(in srgb, var(--brand) 40%, var(--rule)); }
.wz-choice:focus-visible { outline: 2px solid var(--focus, var(--brand)); outline-offset: 2px; }
.wz-choice .wz-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text, var(--brand)); }
.wz-choice .wz-ic svg { width: 20px; height: 20px; }
.wz-choice b { font-size: 15.5px; }
.wz-choice span:last-child { color: var(--muted); font-size: 13.5px; }
.wz-choice.ghost { background: transparent; box-shadow: none; border-style: dashed; }
.wz-toggle { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); margin-bottom: var(--s3); border: 1px solid var(--rule); border-radius: var(--r-sm, 7px); background: var(--sheet-2, var(--sheet)); cursor: pointer; }
.wz-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.wz-toggle b { display: block; }
.wz-toggle small { color: var(--muted); font-size: 13.5px; }
.wz-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.wz-aside { padding: var(--s4); border-radius: var(--radius, 12px); background: var(--sheet-2, var(--sheet)); border: 1px solid var(--rule-2); }
.wz-aside h3 { margin-top: 0; }

.onb-head { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.onb-intro { flex: 1 1 260px; min-width: 0; }
.onb-intro h2 { margin: 0 0 2px; }
.onb-intro p { margin: 0; }
.onb-btns { display: flex; gap: var(--s2); flex-wrap: wrap; }
.onb-ring { --p: 0; width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--sheet) 76%, transparent 78% 100%), conic-gradient(var(--brand) calc(var(--p) * 1%), var(--rule-2) 0); box-shadow: var(--hl, none); }
.onb-ring b { font-size: 15px; font-variant-numeric: tabular-nums; }
.onb-card { border-top: 3px solid var(--brand); }
.onb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.onb-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule-2); }
.onb-tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; border: 2px solid var(--rule-key, var(--rule)); background: var(--field, var(--sheet)); box-shadow: var(--sh-inset, none); color: transparent; }
.onb-item.lv-required.is-todo .onb-tick { border-color: color-mix(in srgb, var(--brand) 55%, var(--rule)); }
.is-done .onb-tick { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: none; }
.is-skipped .onb-tick { color: var(--muted); }
.onb-txt b { font-weight: 700; }
.onb-lv { margin-left: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lv-required .onb-lv { color: var(--brand-text, var(--brand)); }
.onb-why { font-size: 13.5px; color: var(--muted); }
.onb-act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.is-done .onb-txt b, .is-skipped .onb-txt b { color: var(--muted); font-weight: 650; }
.is-done .onb-why, .is-skipped .onb-why { display: none; }
.is-done, .is-skipped { padding: 6px 0; }
.onb-done { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); margin-bottom: var(--s4); border-radius: var(--radius, 12px); background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.onb-done-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-weight: 800; flex: none; }
.onb-done div { color: var(--ink); }
@media (max-width: 760px) {
  .wz-card { padding: var(--s4); }
  .wz-dots li { position: relative; }
  .wz-dots .wz-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wz-choices, .wz-split { grid-template-columns: minmax(0, 1fr); }
  .wz-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wz-row > input { grid-column: 1 / -1; }
  .wz-row-head { display: none; }
  .onb-item { grid-template-columns: 28px minmax(0, 1fr); }
  .onb-act { grid-column: 2; justify-content: flex-start; }
}

/* domain */
/* white-label domain guided flow (Tetapan → Jenama) + admin domain requests */
.dm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.dm-head h2 { margin: 0 0 4px; }
.dm-head .sub { margin: 0; color: var(--muted); font-size: 14px; max-width: 46em; }
.dm-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.dm-step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s4); padding-bottom: var(--s5); }
.dm-step::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: var(--rule-2); }
.dm-step:last-child { padding-bottom: 0; }
.dm-step:last-child::before { display: none; }
.dm-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--g-key, var(--sheet)); border: 1px solid var(--rule-key, var(--rule)); box-shadow: var(--sh-key, none); color: var(--ink-2); position: relative; z-index: 1; }
.dm-step.is-current .dm-num { background: var(--g-brand, var(--brand)); color: var(--brand-ink); border-color: var(--brand-lo, var(--brand)); box-shadow: var(--sh-key, none), 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.dm-step.is-done .dm-num { background: var(--brand-soft); color: var(--brand-text, var(--brand)); border-color: color-mix(in srgb, var(--brand) 35%, transparent); box-shadow: none; }
.dm-step.is-done::before { background: color-mix(in srgb, var(--brand) 35%, var(--rule-2)); }
.dm-body { min-width: 0; padding-top: 5px; }
.dm-body h3 { margin: 0 0 4px; font-size: 16px; }
.dm-body > p { margin: 0 0 var(--s3); color: var(--ink-2); font-size: 14.5px; }
.dm-host { display: flex; align-items: stretch; gap: 0; max-width: 620px; flex-wrap: wrap; }
.dm-prefix { display: grid; place-items: center; padding: 0 10px; font-size: 14px; color: var(--muted); border: 1px solid var(--rule-field, var(--rule)); border-right: 0; border-radius: var(--r-sm, 7px) 0 0 var(--r-sm, 7px); background: var(--sheet-2, var(--sheet)); }
.dm-host input { flex: 1 1 220px; min-width: 0; border-radius: 0 var(--r-sm, 7px) var(--r-sm, 7px) 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.dm-host .btn { margin-left: var(--s2); }
.dm-dns { border: 1px solid var(--rule); border-radius: var(--r-sm, 7px); margin-bottom: var(--s3); background: var(--sheet); }
.dm-dns table { margin: 0; }
.dm-dns code, .dm-copy code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-xs, 4px); background: var(--field, var(--sheet-2)); border: 1px solid var(--rule-2); box-shadow: var(--sh-inset, none); word-break: break-all; }
.dm-copy { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dm-alt td { background: var(--sheet-2, transparent); }
.dm-msg { padding: 8px 12px; border-radius: var(--r-sm, 7px); font-size: 14px; margin: var(--s2) 0; }
.dm-msg.bad { background: var(--stamp-soft); color: var(--stamp); }
.dm-msg.warn { background: var(--warn-soft); color: var(--warn); }
.dm-tips { margin-top: var(--s2); }
.dm-tips summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--brand-text, var(--brand)); }
.dm-tips dl { margin-top: var(--s3); }
.dm-result { margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-sm, 7px); border: 1px solid; font-size: 14px; display: grid; gap: 4px; }
.dm-result.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.dm-result.ok b { color: var(--ok); }
.dm-result.bad { background: var(--stamp-soft); border-color: color-mix(in srgb, var(--stamp) 25%, transparent); }
.dm-result.bad b { color: var(--stamp); }
.dm-result.wait { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.dm-result form { margin-top: 6px; }
.dm-live { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-live a { font-weight: 700; }
.dm-app { display: flex; gap: var(--s5); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dm-app > div { flex: 1 1 320px; min-width: 0; }
.dm-app h2 { margin-top: 0; }
.dm-qr { width: 160px; height: 160px; padding: 8px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius, 12px); box-shadow: var(--sh-1, var(--shadow)); }
.dm-upsell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.dm-upsell h2 { font-size: 22px; margin: var(--s2) 0; }
.dm-ticks { list-style: none; padding: 0; margin: var(--s3) 0 var(--s4); display: grid; gap: 6px; }
.dm-ticks li { padding-left: 28px; position: relative; font-size: 14.5px; }
.dm-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--brand-soft); color: var(--brand-text, var(--brand)); }
.dm-preview { border: 1px solid var(--rule); border-radius: var(--radius, 12px); overflow: hidden; background: var(--sheet); box-shadow: var(--sh-2, var(--shadow)); transform: rotate(-1.5deg); }
.dm-bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: var(--sheet-2, var(--rule-2)); border-bottom: 1px solid var(--rule); font-size: 12px; }
.dm-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-key, var(--rule)); }
.dm-bar b { margin-left: 8px; padding: 2px 10px; border-radius: var(--r-pill, 999px); background: var(--sheet); border: 1px solid var(--rule-2); color: var(--ok); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-preview-body { display: flex; gap: var(--s3); align-items: center; padding: var(--s5); }
.dm-logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--g-brand, var(--brand)); color: var(--brand-ink); font-weight: 800; }
.dm-req { display: flex; justify-content: space-between; gap: var(--s3); align-items: center; flex-wrap: wrap; padding: var(--s3); margin-bottom: var(--s3); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--rule)); border-radius: var(--r-sm, 7px); background: var(--warn-soft); }
.dm-req .form-actions { margin: 0; }
.dm-reject input { max-width: 220px; padding: 4px 8px; }
@media (max-width: 760px) {
  .dm-upsell { grid-template-columns: minmax(0, 1fr); }
  .dm-preview { transform: none; }
  .dm-head { flex-direction: column; }
  .dm-host .btn { margin: var(--s2) 0 0; width: 100%; }
  .dm-prefix { display: none; }
  .dm-host input { border-radius: var(--r-sm, 7px); flex-basis: 100%; }
  .dm-body .btn { white-space: normal; text-align: center; max-width: 100%; }
  .dm-dns { overflow: visible; }
  .dm-dns thead { display: none; }
  .dm-dns table, .dm-dns tbody, .dm-dns tr, .dm-dns td { display: block; width: 100%; }
  .dm-dns tr { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--rule-2); }
  .dm-dns td { border: 0; padding: 3px 0; }
  .dm-dns table { min-width: 0 !important; }
  .dm-dns td[data-label]::before { content: attr(data-label) " "; display: block; font-size: 12px; color: var(--muted); }
}

/* v1.2 polish */
:root { --chart-a: color-mix(in srgb, var(--brand) 22%, #d8dccf); }
@media (min-width: 1000px) {
  .tabs { flex-wrap: wrap; row-gap: 4px; }
}
details.more-info { margin-top: 14px; border-top: 1px dashed var(--rule-key, #d9d4c4); padding-top: 10px; }
details.more-info > summary { cursor: pointer; font-weight: 600; color: var(--brand); list-style: none; }
details.more-info > summary::-webkit-details-marker { display: none; }
details.more-info > summary::before { content: '▸'; display: inline-block; margin-right: 6px; transition: transform .15s; }
details.more-info[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { details.more-info > summary::before { transition: none; } }

/* registration */
.reg-extras .field > .help { display: block; margin: -2px 0 var(--s2); }
.reg-years, .reg-addons { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.reg-tick { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px var(--s2); margin: 0; padding: var(--s3); min-height: 52px; cursor: pointer;
  background: var(--g-paper, var(--sheet)); border: 1px solid var(--rule-key, #b9beb6); border-radius: var(--r-sm, 7px); box-shadow: var(--sh-key, 0 1px 0 rgba(0,0,0,.06)); color: var(--ink); font-size: 14px; font-weight: 600;
  transition: border-color .12s, background-color .12s, box-shadow .12s; }
.reg-tick:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--rule-key, #b9beb6)); }
.reg-tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); grid-row: span 2; }
.reg-tick .rt-main { min-width: 0; overflow-wrap: break-word; hyphens: manual; }
.reg-tick .rt-sub { grid-column: 2; font-size: 12px; font-weight: 500; color: var(--muted); }
.reg-tick .rt-price { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand-text, var(--brand)); white-space: nowrap; }
.reg-tick.on, .reg-tick:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); box-shadow: var(--sh-key-press, inset 0 1px 2px rgba(0,0,0,.12)); }
.reg-tick:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.reg-sum { margin-top: var(--s3); padding: var(--s3) var(--s4); background: var(--sheet); border: 1px dashed var(--rule-key, #b9beb6); border-radius: var(--r-sm, 7px); box-shadow: var(--sh-1, none); }
.reg-sum .rs-head { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s2); }
.reg-sum .rs-line { margin: 0 0 var(--s2); font-size: 14px; color: var(--ink); }
.reg-sum .rs-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.reg-sum .rs-lines td { padding: 5px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.reg-sum .rs-lines td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: var(--s3); }
.reg-sum .rs-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s2); margin-top: var(--s1); border-top: 3px double var(--ink); font-size: 15px; }
.reg-sum .rs-total b { font-size: 20px; font-variant-numeric: tabular-nums; }
.reg-sum .small { margin: var(--s2) 0 0; }
.reg-sum.static { margin: var(--s4) 0; }
.reg-staff { margin-top: var(--s5); }
.reg-status h1 { margin-top: var(--s2); }
.reg-stamp { display: inline-block; padding: 4px 12px; border: 2px solid currentColor; border-radius: var(--r-xs, 4px); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-2deg); }
.reg-stamp.ok { color: var(--ok); background: var(--ok-soft); }
.reg-stamp.warn { color: var(--warn); background: var(--warn-soft); }
.reg-filter { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: 0 0 var(--s3); }
.reg-filter label { margin: 0; }
.reg-filter select { width: auto; min-width: 180px; }
.reg-refund b { display: inline-block; margin-bottom: 4px; }
.reg-sessions legend, .reg-pay-settings fieldset legend { font-size: 13.5px; }
.reg-addon-table { overflow-x: auto; }
.reg-addon-table th, .reg-addon-table td { padding-left: 4px; padding-right: 4px; }
.reg-addon-table input:not([type=checkbox]), .reg-addon-table select { min-width: 84px; }
.reg-addon-table td:first-child input { min-width: 140px; }
@media (max-width: 760px) {
  .reg-addon-table thead { display: none; }
  .reg-addon-table table, .reg-addon-table tbody, .reg-addon-table tr, .reg-addon-table td { display: block; width: 100%; }
  .reg-addon-table tr { padding: var(--s2) 0; border-bottom: 1px solid var(--rule-2); }
  .reg-addon-table td { border: 0; padding: 3px 0; }
  .reg-addon-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .reg-years, .reg-addons { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .reg-tick { transition: none; } }

/* billing explainer */
.bill-explain .bill-kinds { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.bill-explain .bill-kinds li { display: flex; gap: 10px; align-items: baseline; line-height: 1.5; }
.bill-explain .bill-kinds .chip { flex: none; min-width: 9.5em; justify-content: center; text-align: center; }
.bill-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bill-head h3 { margin: 0; }
@media (max-width: 560px) { .bill-explain .bill-kinds li { flex-direction: column; gap: 4px; } .bill-explain .bill-kinds .chip { min-width: 0; } }

/* fee month (advance billing) */
fieldset.bill-when { border: 0; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; }
fieldset.bill-when legend { margin-bottom: 6px; font-weight: 600; }
.bill-example { margin-top: 4px; }

/* manual payments */
/* settings: two method cards */
.pm-intro { margin: 0 0 var(--s4); }
.pm-intro h2 { margin: 0 0 2px; }
.pm-card-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.pm-card-head h2 { margin: 0; font-size: 19px; }
.pm-card-head .chip { margin-left: auto; }
.pm-ic { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--brand-text);
  background: linear-gradient(180deg, #fff, var(--brand-soft)); border: 1px solid color-mix(in srgb, var(--brand) 22%, #fff); box-shadow: var(--hl), 0 1px 2px rgba(30, 38, 52, .12); }
.pm-ic svg { width: 20px; height: 20px; }
.pm-bank { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--sheet-2); border: 1px dashed #c9ccc4; font-size: 14.5px; }
.pm-bank .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.pm-qr-now { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s2); }
.pm-qr-now img { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 4px; }

/* parent: transfer form */
.tf-title { font-size: 22px; margin: 0 0 var(--s4); }
.tf-step { display: flex; align-items: center; gap: 10px; font-size: 16.5px; margin: 0 0 var(--s3); }
.tf-step span { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 800;
  color: var(--brand-ink); background: var(--g-brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(30, 38, 52, .3); }
.tf-bank { border-top: 4px solid var(--brand); }
.tf-acct { border-radius: 10px; background: var(--sheet-2); border: 1px solid var(--rule-2); padding: 2px var(--s4); }
.tf-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 10px 0; border-bottom: 1px dashed #cfd2ca; }
.tf-row:last-child { border-bottom: 0; }
.tf-row .k { font-size: 13px; color: var(--muted); flex: none; }
.tf-row .v { text-align: right; font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.tf-no .v { display: flex; align-items: center; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; }
.tf-no b { font-size: 19px; letter-spacing: .04em; }
.tf-amt .v { font-size: 20px; font-weight: 800; color: var(--brand-text); }
.tf-qr { margin: var(--s4) 0 0; text-align: center; }
.tf-qr img { width: min(220px, 70%); aspect-ratio: 1; object-fit: contain; background: #fff; padding: 8px; border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--sh-1); }
.tf-qr figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.tf-note { margin: var(--s4) 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: linear-gradient(180deg, #fffdf3, var(--warn-soft)); border: 1px solid #ecd9a6; color: #4e3200; font-size: 14px; }
.tf .list-plain .chip { margin-top: 4px; }
.tf-warn { color: var(--warn); margin: var(--s2) 0 0; }
.tf-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tf-drop { display: flex; gap: var(--s3); align-items: center; margin: 0; padding: var(--s4); cursor: pointer; border-radius: 12px; font-weight: 500;
  border: 2px dashed color-mix(in srgb, var(--brand) 40%, #c9ccc4); background: linear-gradient(180deg, #fff, var(--brand-soft)); color: var(--ink); }
.tf-drop:hover { border-color: var(--brand); }
.tf-file:focus-visible + .tf-drop { outline: 3px solid var(--focus); outline-offset: 2px; }
.tf-drop.has-file { border-style: solid; border-color: var(--ok); background: linear-gradient(180deg, #fff, var(--ok-soft)); }
.tf-drop-ic { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand-text); border: 1px solid var(--rule); box-shadow: var(--hl), var(--sh-1); }
.tf-drop-ic svg { width: 22px; height: 22px; }
.tf-drop b { display: block; font-size: 15px; }
.tf-drop small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tf-drop .tf-file-name { color: var(--ok); font-weight: 700; overflow-wrap: anywhere; }
.tf-drop .tf-file-name:empty { display: none; }
.tf-submit { margin: var(--s4) 0 var(--s5); }
.tf-submit .btn { width: 100%; justify-content: center; }
.tf-submit p { margin: var(--s2) 2px 0; }
.tf-msg h2 { font-size: 18px; }
.tf-public { max-width: 560px; margin: 0 auto; }
.tf-inv-claim { margin: var(--s4) 0 0; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }

/* parent: confirmation + my payments */
.tf-done { text-align: center; padding: var(--s5) var(--s4); border-top: 4px solid var(--ok); }
.tf-done h1 { font-size: 21px; margin: var(--s2) 0; }
.tf-done p { margin: 0 auto var(--s3); max-width: 40ch; color: var(--ink-2); }
.tf-done-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 28px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #2a9a72, var(--ok)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 8px -2px rgba(16, 104, 79, .5); }
.tf-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--s4); margin: var(--s3) 0; font-size: 14px; text-align: left; }
.tf-sum dt, .tf-sum dd { padding: 7px 0; border-bottom: 1px solid var(--rule-2); margin: 0; }
.tf-sum dt { color: var(--muted); }
.tf-sum dd { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.tf-claim-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); margin-bottom: var(--s3); }
.tf-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tf-claims-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: 4px; }
.tf-claims .chip { flex: none; }
.tf-reason { color: var(--stamp); }
.tf-cancel { margin: 0 0 var(--s4); }
.tf-child-acts { display: flex; gap: var(--s2); flex-wrap: wrap; margin: 0 0 var(--s4); }
.tf-child-acts .btn { flex: 1 1 auto; justify-content: center; }

/* parent home pay tray with two methods */
.paybar .pay-btns { margin-left: auto; display: flex; gap: var(--s2); }
.paybar .pay-btns .btn { white-space: normal; text-align: center; justify-content: center; line-height: 1.2; }
.paybar.two .in { flex-wrap: wrap; }
.paybar.two .pay-btns { display: contents; }
.paybar.two [data-pay-btn] { margin-left: auto; }
.paybar.two [data-manual-link] { flex: 1 0 100%; min-height: 44px; }
.papp:has(.paybar.two) { padding-bottom: 196px; }
.btn.is-off { opacity: .5; pointer-events: none; filter: grayscale(.3); }

/* staff: review queue + detail */
.pc-list .pc-ref, .pc-kv .pc-ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; letter-spacing: .02em; }
.pc-proof .panel-head { margin-bottom: var(--s3); }
.pc-img { display: block; text-align: center; background: repeating-linear-gradient(45deg, #f1f2ee, #f1f2ee 10px, #eceee8 10px, #eceee8 20px); border: 1px solid var(--rule); border-radius: 10px; padding: var(--s3); cursor: zoom-in; overflow: auto; }
.pc-img img { max-width: 100%; max-height: 640px; object-fit: contain; background: #fff; box-shadow: var(--sh-2); border-radius: 4px; }
.pc-img.zoomed { cursor: zoom-out; max-height: none; text-align: left; }
.pc-img.zoomed img { max-width: none; max-height: none; width: 180%; }
.pc-hint { margin: var(--s2) 0 0; }
.pc-pdf { display: flex; gap: var(--s4); align-items: center; padding: var(--s5); border: 2px dashed #c9ccc4; border-radius: 12px; color: var(--ink); text-decoration: none; background: var(--sheet-2); }
.pc-pdf:hover { border-color: var(--brand); text-decoration: none; }
.pc-pdf-ic { flex: none; display: inline-grid; place-items: center; width: 52px; height: 64px; border-radius: 6px; color: #fff; font-weight: 800; font-size: 13px; background: linear-gradient(180deg, #d4454c, var(--stamp)); box-shadow: var(--sh-1); }
.pc-pdf small { display: block; color: var(--muted); }
.pc-amt { font-size: 18px; }
.pc-dup ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.pc-dup > div { min-width: 0; }
.pc-side .panel h3 { margin-top: 0; }
.pc-approve { border-top: 4px solid var(--ok); }
.pc-reject { border-top: 4px solid #ddb3b1; }
.pc-method { padding: 8px 10px; margin: 0 0 var(--s3); border-radius: var(--r-sm); background: var(--sheet-2); color: var(--ink-2); }
.pc-split { margin: 0 0 var(--s3); padding: var(--s3); border: 1px dashed #c9ccc4; border-radius: var(--r-sm); }
.pc-split ul { list-style: none; margin: 6px 0; padding: 0; }
.pc-split li { display: flex; justify-content: space-between; gap: var(--s3); padding: 4px 0; border-bottom: 1px solid var(--rule-2); font-size: 14px; }
.pc-split li:last-child { border-bottom: 0; }
.pc-confirm { padding: 10px 12px; border-radius: var(--r-sm); background: var(--ok-soft); border: 1px solid #bfdccd; }
.pc-go { width: 100%; justify-content: center; }
.pc-receipts { list-style: none; margin: 0; padding: 0; }
.pc-receipts li { display: flex; gap: var(--s2); align-items: baseline; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--rule-2); }
.pc-receipts li b { margin-left: auto; }
.pc-dash { align-items: center; }
.pc-dash > svg { flex: none; width: 20px; height: 20px; }
@media (max-width: 520px) {
  .tf-row { flex-wrap: wrap; }
  .tf-row .v { text-align: left; }
  .tf-no .v { justify-content: flex-start; }
}
.tf-big { white-space: nowrap; }
.tf-claim-head .chip { flex: none; margin-top: 2px; }
.pc-grid table.t td:first-child a { white-space: nowrap; }
.pc-split li b { white-space: nowrap; }
.pc-split li span { min-width: 0; }

/* live billing example (timeline) */
.bill-example { margin: 6px 0 16px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 6%, #fffdf7); border: 1px solid color-mix(in srgb, var(--brand) 22%, #e3decd); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.05); }
.bill-example .bx-title { font-size: 14px; margin-bottom: 8px; }
.bill-example .bx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: bx; }
.bill-example .bx-steps li { display: grid; grid-template-columns: 26px 9.5em 1fr; gap: 10px; align-items: center; counter-increment: bx; font-size: 14px; }
.bill-example .bx-steps li::before { content: counter(bx); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.bill-example .bx-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.bill-example .bx-note { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--brand); }
.bill-example.is-adv .bx-steps li:last-child .bx-date { color: var(--brand); }
@media (max-width: 560px) { .bill-example .bx-steps li { grid-template-columns: 26px 1fr; } .bill-example .bx-steps li > span:last-child { grid-column: 2; margin-top: -6px; font-size: 13px; color: var(--muted, #6b7280); } }

/* partial payment (v1.5) */
.paybar.partial .in { flex-wrap: wrap; }
.paybar .pay-amt { flex: 1 1 100%; order: 1; display: grid; gap: 2px; }
.paybar.partial .pay-btns, .paybar.partial .pay-btns > * { order: 2; }
.paybar .pay-amt input { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; max-width: 220px; }
.paybar .pay-amt-err { color: var(--stamp); font-weight: 600; }
.pm-example { background: var(--paper-2, #f6f1e7); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; line-height: 1.5; }

/* overdue warning letters (surat amaran: yellow → red) */
.letters-set { scroll-margin-top: 16px; }
.letters-grid { margin-top: var(--s3, 12px); align-items: start; }
.letter-example .bx-steps li.lx-yellow::before { background: #e0a21a; }
.letter-example .bx-steps li.lx-payby::before { background: #c98a12; }
.letter-example .bx-steps li.lx-red::before, .letter-example .bx-steps li.lx-bar::before { background: var(--stamp); }
.letter-example .bx-steps li.lx-due::before { background: var(--muted); }
.letter-example .bx-steps li.lx-bar .bx-date, .letter-example .bx-steps li.lx-bar > span:last-child { color: var(--stamp); font-weight: 700; }
.letter-example .bx-steps li.lx-yellow .bx-date { color: #8a5300; }
.letter-example .bx-note { color: var(--ink); }
.lt-kind { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-pill, 999px); vertical-align: middle; }
.lt-kind.yellow { background: #fbecc0; color: #6a4300; border: 1px solid #e9c66b; }
.lt-kind.red { background: var(--stamp); color: #fff; border: 1px solid var(--stamp); }
.lt-list td { vertical-align: top; }
.lt-act { text-align: right; white-space: nowrap; }
.lt-cancel { display: inline-block; text-align: left; }
.lt-cancel > summary { list-style: none; cursor: pointer; }
.lt-cancel > summary::-webkit-details-marker { display: none; }
.lt-cancel[open] > summary { margin-bottom: 6px; }
.lt-cancel { position: relative; }
.lt-cancel form { display: grid; gap: 6px; width: 260px; max-width: calc(100vw - 48px); padding: 10px; border: 1px solid var(--rule); border-radius: var(--r-sm, 7px); background: var(--sheet); white-space: normal;
  position: absolute; right: 0; top: 100%; z-index: 30; box-shadow: 0 12px 32px rgba(15, 30, 40, .18); }
/* the open cancel/void box floats over the table instead of widening it (no sideways scroll) */
.table-wrap:has(.lt-cancel[open]), .panel:has(.lt-cancel[open]) { overflow: visible; }
.lt-student { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 var(--s4, 16px); padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--radius, 12px); background: var(--sheet); }
.lt-student.yellow { background: linear-gradient(180deg, #fffbee, var(--warn-soft)); border-color: #ecd9a6; }
.lt-student.red { background: linear-gradient(180deg, #fff6f5, var(--stamp-soft)); border-color: #edc3c1; }
.lt-student .lt-exempt { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.lt-student .lt-exempt input { width: 220px; max-width: 100%; }
.lt-dash { align-items: center; }
.lt-dash > svg { flex: none; width: 20px; height: 20px; }
.lt-parent { display: grid; gap: 4px; margin: 0 0 var(--s3, 12px); padding: 14px 16px 14px 20px; border-radius: var(--radius, 12px); text-decoration: none; position: relative; overflow: hidden; border: 1px solid; }
.lt-parent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.lt-parent.yellow { background: linear-gradient(180deg, #fffbee, #fbf0d4); border-color: #ecd9a6; color: #4e3200; }
.lt-parent.yellow::before { background: #e0a21a; }
.lt-parent.red { background: linear-gradient(180deg, #fff3f2, #fbe1df); border-color: #e7b3b0; color: #5d1016; }
.lt-parent.red::before { background: var(--stamp); }
.lt-parent b { font-size: 15.5px; line-height: 1.35; }
.lt-parent-tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.lt-parent.red .lt-parent-tag { color: var(--stamp); }
.lt-parent.yellow .lt-parent-tag { color: #8a5300; }
.lt-status { padding: 14px 16px; border-radius: var(--radius, 12px); border: 1px solid var(--rule); margin-bottom: var(--s3, 12px); display: grid; gap: 4px; }
.lt-status.yellow { background: linear-gradient(180deg, #fffbee, var(--warn-soft)); border-color: #ecd9a6; color: #4e3200; }
.lt-status.red { background: linear-gradient(180deg, #fff6f5, var(--stamp-soft)); border-color: #edc3c1; color: #5d1016; }
.lt-status.done { background: var(--ok-soft); border-color: #bfdccd; color: #0b3d2e; }
.lt-open .list-plain li { align-items: center; }
.lt-sheet { padding: 28px 30px; border-radius: 6px; border: 1px solid var(--rule); box-shadow: 0 1px 3px rgba(0,0,0,.06); font-size: 14px; line-height: 1.55; color: #1b2541; border-left: 8px solid; }
.lt-sheet.yellow { background: #fffaea; border-left-color: #e0a21a; }
.lt-sheet.red { background: #fdf1f0; border-left-color: var(--stamp); }
.lt-sheet table { border-collapse: collapse; width: 100%; }
.lt-sheet p { margin: 0 0 10px; }
.lt-sheet .r { text-align: right; }
.lt-sheet .lt-logo { width: 64px; } .lt-sheet .lt-logo img { width: 54px; height: auto; }
.lt-sheet .lt-org { color: var(--muted); font-size: 12.5px; }
.lt-sheet .lt-school { font-size: 18px; font-weight: 800; color: var(--ink); }
.lt-sheet .lt-band { margin: 14px 0 10px; padding: 8px 12px; text-align: center; font-weight: 800; letter-spacing: .06em; }
.lt-sheet.yellow .lt-band { background: #f2b63f; color: #3d2600; border-top: 2px solid #c98a12; border-bottom: 2px solid #c98a12; }
.lt-sheet.red .lt-band { background: var(--stamp); color: #fff; }
.lt-sheet .lt-ref td { padding-bottom: 10px; font-size: 13px; color: var(--muted); }
.lt-sheet .lt-per { text-decoration: underline; }
.lt-sheet .lt-who { width: auto; margin-bottom: 10px; } .lt-sheet .lt-who td { padding: 1px 8px 1px 0; } .lt-sheet .lt-who .k { color: var(--muted); }
.lt-sheet .lt-inv { background: #fff; margin: 4px 0 12px; font-size: 13px; }
.lt-sheet .lt-inv th { text-align: left; padding: 6px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 12px; }
.lt-sheet .lt-inv th.r { text-align: right; }
.lt-sheet .lt-inv td { padding: 6px; border-bottom: 1px solid #eceff2; }
.lt-sheet .lt-total td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; }
.lt-sheet .lt-box { margin: 6px 0 12px; padding: 10px 12px; border: 1.5px solid; background: #fff; }
.lt-sheet.yellow .lt-box { border-color: #c98a12; }
.lt-sheet.red .lt-box { border-color: var(--stamp); }
.lt-sheet .lt-pay { margin: 0 0 12px; padding-left: 20px; }
.lt-sheet .lt-foot { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--rule); padding-top: 8px; margin-top: 16px; }
@media (max-width: 560px) { .lt-sheet { padding: 18px 14px; font-size: 13.5px; } .lt-sheet .lt-inv { font-size: 12px; } .lt-student .lt-exempt { margin-left: 0; width: 100%; flex-wrap: wrap; } }
@media print { .lt-print .t { font-size: 12px; } }
.lt-list td:nth-child(2) { white-space: nowrap; }
.lt-print td:last-child { white-space: nowrap; }
.lt-list td:nth-child(4) { min-width: 10.5em; }

/* branch order (v1.8.3) */
.branch-order { display: inline-flex; gap: 4px; }
.branch-order form { margin: 0; }
.branch-order .btn { min-width: 34px; padding: 4px 8px; }

/* proof of payment (receipt page + receipt list) */
.t td.center, .t th.center { text-align: center; }
.proofs .proof-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.proofs .proof-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.proof-thumb { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line, #d9dcd6); background: #fff; font-weight: 700; font-size: 13px; color: var(--muted, #6b6f68); text-decoration: none; }
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proof-thumb.pdf { background: #fbeceb; color: #b3261e; }
.proof-thumb.bank svg { width: 26px; height: 26px; }
.proof-meta { min-width: 0; }
.proof-meta b { overflow-wrap: anywhere; }
.proof-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.proof-del summary { list-style: none; cursor: pointer; }
.proof-del summary::-webkit-details-marker { display: none; }
.proof-del[open] form { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.proof-add { display: grid; gap: 6px; border-top: 1px dashed var(--line, #d9dcd6); padding-top: 12px; }
.proof-add input[type=file] { max-width: 100%; }
.proof-add .help { font-size: 12.5px; }

/* booking packages (v1.3 iqra) */
.bk-card { margin: var(--s4) 0; padding: var(--s4); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: var(--r-sm, 7px); }
.bk-card h2 { margin: 2px 0 0; font-size: 19px; }
.bk-card p { margin: var(--s1) 0 0; }
.bk-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-text, var(--brand)); }
.bk-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); margin-top: var(--s3); font-variant-numeric: tabular-nums; }
.bk-card-price s { color: var(--muted); }
.bk-card-price b { font-size: 24px; }
.bk-details { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--rule-2); }
.bk-plans { display: grid; gap: var(--s2); }
.bk-inst { margin-top: var(--s3); }
.bk-sched { margin-top: var(--s2); width: 100%; }
.bk-sched caption { text-align: left; padding-bottom: var(--s1); }
.bk-branch { margin-top: var(--s5); }
.bk-branch h2 { margin: 0; font-size: 18px; }
.bk-list { display: grid; gap: var(--s2); margin-top: var(--s3); }
.bk-pkg { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3); padding: var(--s3) var(--s4); background: var(--g-paper, var(--sheet)); border: 1px solid var(--rule-key, #b9beb6); border-radius: var(--r-sm, 7px); color: var(--ink); text-decoration: none; box-shadow: var(--sh-key, 0 1px 0 rgba(0,0,0,.06)); }
.bk-pkg:hover, .bk-pkg:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.bk-pkg .bk-name { font-weight: 700; }
.bk-pkg .bk-price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-pkg .bk-price s { color: var(--muted); font-size: 13px; }
.bk-pkg .bk-sub { font-size: 12.5px; color: var(--muted); }
.bk-pkg .bk-go { text-align: right; font-size: 13px; font-weight: 700; color: var(--brand-text, var(--brand)); }
.bk-plan-list td, .bk-plan-list th { white-space: nowrap; }
.bk-sched table { width: 100%; }
.bk-sched th, .bk-sched td { padding-left: 6px; padding-right: 6px; }
.bk-sched[hidden] { display: none; }

/* activity media (v1.4 iqra) */
.md-up textarea { width: 100%; }
.md-progress { list-style: none; margin: var(--s3) 0; padding: 0; display: grid; gap: var(--s2); }
.md-progress li { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s2); font-size: 13px; }
.md-progress .md-pn { grid-column: 1 / -1; overflow-wrap: anywhere; color: var(--ink-2); }
.md-progress .md-bar { height: 8px; border-radius: 99px; background: var(--rule-2, #e5e5e0); overflow: hidden; }
.md-progress .md-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.md-progress li.ok b { color: var(--ok); }
.md-list { list-style: none; margin: 0; padding: 0; }
.md-item { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--rule-2); }
.md-thumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.md-th { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: var(--sheet); border: 1px solid var(--rule-2); text-decoration: none; color: var(--muted); }
.md-th img { width: 100%; height: 100%; object-fit: cover; }
.md-vid { position: relative; }
.md-vid span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.md-del summary { cursor: pointer; color: var(--muted); }
.md-ph { font-size: 18px; text-align: center; line-height: 1.1; }
.md-ph small { display: block; font-size: 10px; }
.md-more { font-size: 13px; color: var(--muted); }
.md-cap { margin: 0 0 var(--s1); white-space: normal; }
.md-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: var(--s4); }
.md-card .md-thumbs { margin-bottom: var(--s3); }
.md-card .md-th { width: 84px; height: 84px; }
.md-acts { display: flex; gap: var(--s2); flex-wrap: wrap; }
.md-filter { margin: var(--s3) 0; display: flex; gap: var(--s2); }
.md-files { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.md-files .md-th { width: 100%; height: 180px; }
.md-video { width: 100%; max-height: 320px; border-radius: 6px; background: #000; }
@media (max-width: 520px) { .md-item { grid-template-columns: 1fr; } }
.md-up [hidden], .md-progress:empty { display: none !important; }

/* ---------------------------------------------------------------- staff KPI & performance (v1.5) */
.kp-hero { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s4); margin-bottom: var(--s5); }
.kp-hero > .panel { margin-bottom: 0; }
.kp-score, .kp-head { display: flex; gap: var(--s4); align-items: center; }
.kp-ring { --p: 0; flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; align-content: center; position: relative;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--rule-2, #e6e8e3) 0); }
.kp-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--sheet); box-shadow: inset 0 1px 2px rgba(30,38,52,.12); }
.kp-ring b, .kp-ring small { position: relative; line-height: 1; }
.kp-ring b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kp-ring small { font-size: 12px; color: var(--muted); }
.kp-grade { font-weight: 800; font-size: 17px; margin: 0 0 4px; }
.kp-grade.gA, .kp-g.gA, .kp-gd .gA { color: var(--ok); }
.kp-grade.gB, .kp-g.gB, .kp-gd .gB { color: var(--info); }
.kp-grade.gC, .kp-g.gC, .kp-gd .gC { color: var(--warn); }
.kp-grade.gD, .kp-g.gD, .kp-gd .gD { color: var(--stamp); }
.kp-g { display: inline-block; min-width: 1.6em; text-align: center; font-weight: 800; border-radius: var(--r-xs); background: var(--sheet-2, #f3f4f0); padding: 0 4px; }
.kp-gd { display: flex; gap: 10px; font-size: 18px !important; }
.kp-gd b { font-size: 22px; }
.kp-week { text-align: center; }
.kp-week.done { background: linear-gradient(180deg, #fff, var(--ok-soft)); }
.kp-flame { font-size: 34px; margin: 0; line-height: 1; }
.kp-streak { margin: 4px 0; }
.kp-streak b { font-size: 26px; font-weight: 800; }
.kp-ok { color: var(--ok); font-weight: 700; }
.kp-level .lbl { font-weight: 700; color: var(--muted); margin: 0; }
.kp-pts { margin: 2px 0 8px; } .kp-pts b { font-size: 26px; font-weight: 800; }
.kp-bar { height: 8px; border-radius: 999px; background: var(--rule-2, #e6e8e3); overflow: hidden; }
.kp-bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.kp-bar.hi span { background: var(--ok); } .kp-bar.mid span { background: #d39a1f; } .kp-bar.lo span { background: var(--stamp); }
.kp-crit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); }
.kp-crit li.na { opacity: .62; }
.kp-crit p { margin: 4px 0 0; }
.kp-ch { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.kp-cv { font-size: 13.5px; margin-top: 4px; }
.kp-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: var(--s3); }
.kp-badges li { border: 1px dashed var(--rule); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--muted); display: grid; gap: 2px; }
.kp-badges li.got { border: 1px solid #e8c766; background: linear-gradient(180deg, #fffdf3, #fbf0d4); color: var(--ink); }
.kp-badges small { font-size: 12px; }
.kp-badges.sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kp-badges.sm li { padding: 6px 10px; }
.kp-medal { font-size: 20px; line-height: 1; color: #c99a10; }
.kp-badges li:not(.got) .kp-medal { color: var(--rule-key); }
.kp-table td.kp-cc, .kp-table th.kp-cc { text-align: center; font-variant-numeric: tabular-nums; }
.kp-table th.kp-cc { font-size: 12px; min-width: 62px; white-space: nowrap; line-height: 1.2; }
.kp-table th.kp-cc small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.kp-table .kp-name { min-width: 210px; }
.kp-cc.hi { color: var(--ok); font-weight: 700; } .kp-cc.mid { color: var(--warn); font-weight: 700; } .kp-cc.lo { color: var(--stamp); font-weight: 700; } .kp-cc.na { color: var(--rule-key); }
span.kp-cc { display: inline-block; }
.kp-sc { font-size: 16px; font-variant-numeric: tabular-nums; }
.kp-plus { color: var(--ok); font-weight: 700; } .kp-minus { color: var(--stamp); font-weight: 700; }
.kp-rate { border: 0; padding: 0; margin: 0 0 10px; }
.kp-rate legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.kp-rate label { display: inline-block; margin-right: 4px; }
.kp-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kp-rate span { display: inline-grid; place-items: center; width: 36px; height: 34px; border: 1px solid var(--rule-field); border-radius: var(--r-sm); background: var(--field); cursor: pointer; font-weight: 700; }
.kp-rate input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.kp-rate input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.kp-merits li, .kp-ev li { padding: 6px 0; border-bottom: 1px solid var(--rule-2, #eceee8); }
.kp-w { display: grid; grid-template-columns: minmax(0, 1fr) 72px 14px 150px; gap: 8px; align-items: center; margin-bottom: 8px; }
.kp-w label { font-weight: 600; font-size: 14px; }
.kp-people { max-height: 420px; overflow: auto; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 12px; }
.kp-people .check { display: flex; margin: 4px 0; }
.kp-bh { margin: 10px 0 2px; font-weight: 700; }
.kp-add, .kp-final { margin-top: var(--s3); }
.kp-final { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.kp-final p { margin: 0; flex: 1; }
.kp-evname { margin: 4px 0; font-size: 22px; }
.kp-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.kp-card .kp-ring { width: 64px; height: 64px; }
.kp-card .kp-ring::before { inset: 6px; }
.kp-card .kp-ring b { font-size: 18px; }
@media (max-width: 900px) {
  .kp-hero { grid-template-columns: 1fr; }
  .kp-crit { grid-template-columns: 1fr; }
  .kp-w { grid-template-columns: minmax(0, 1fr) 64px 14px; }
  .kp-w input[type="date"] { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- takwim (v1.6) */
.tk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin: 0 0 var(--s3); }
.tk-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 5px; vertical-align: -1px; }
.tk-monthnav { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); }
.tk-monthnav h2 { margin: 0; font-size: 19px; min-width: 150px; text-align: center; }
.tk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.tk-wd { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet-2); }
.tk-day { min-height: 92px; padding: 4px 5px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tk-day.out { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,.025) 6px 12px); }
.tk-day.wkend { background: #fafaf7; }
.tk-day.today { box-shadow: inset 0 0 0 2px var(--brand); }
.tk-n { font-size: 12px; font-weight: 700; color: var(--muted); }
.tk-n a { color: inherit; text-decoration: none; }
.tk-n a:hover { color: var(--brand); text-decoration: underline; }
.tk-chip { display: block; font-size: 11.5px; line-height: 1.3; padding: 2px 5px; border-radius: 4px; background: color-mix(in srgb, var(--c) 14%, #fff); border-left: 3px solid var(--c); color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-more { font-size: 11px; color: var(--muted); }
.tk-month h3 { margin: var(--s4) 0 var(--s2); font-size: 16px; }
.tk-month:first-child h3 { margin-top: 0; }
.tk-list { list-style: none; margin: 0; padding: 0; }
.tk-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 4px 14px; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--rule-2, #eceee8); border-left: 4px solid var(--c); margin-bottom: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 6%, #fff), transparent 40%); border-radius: 4px; }
.tk-list li.past { opacity: .62; }
.tk-list li:target { box-shadow: 0 0 0 2px var(--focus); }
.tk-when b { display: block; font-size: 14px; }
.tk-when small { color: var(--muted); }
.tk-title { margin: 0; }
.tk-cat { font-size: 12px; color: var(--c); font-weight: 700; margin-left: 4px; }
.tk-what p.small { margin: 2px 0 0; }
.tk-flags { margin: 4px 0 0; display: flex; gap: 4px; flex-wrap: wrap; }
.tk-pick { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.tk-bh { width: 100%; margin: 6px 0 0; font-weight: 700; }
.tk-seg { display: flex; gap: 4px; background: var(--sheet-2); padding: 4px; border-radius: 999px; margin-bottom: var(--s3); }
.tk-seg a { flex: 1; text-align: center; padding: 7px 8px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.tk-seg a[aria-current] { background: var(--brand); color: var(--brand-ink); }
.tk-mini li { padding: 6px 0 6px 10px; border-left: 3px solid var(--c); margin-bottom: 4px; }
.tk-mini b { font-size: 13px; margin-right: 4px; }
.tk-card .sp-h svg { width: 18px; height: 18px; vertical-align: -3px; }
.tk-print h1 { font-size: 22px; margin-bottom: 2px; }
.tk-print .tk-pm td { background: #f3f4ef; }
@media (max-width: 760px) {
  .tk-day { min-height: 46px; padding: 2px; }
  .tk-chip { font-size: 0; height: 6px; padding: 0; border-left: 0; background: var(--c); border-radius: 3px; }
  .tk-more { font-size: 10px; }
  .tk-list li { grid-template-columns: 1fr; }
}
@media print { .tk-print .t { font-size: 12px; } }

/* ---------------------------------------------------------------- manuals & SOP (v1.7) */
.lr-overall { display: flex; gap: var(--s4); align-items: center; }
.lr-ring { --p: 0; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--rule-2, #e6e8e3) 0); }
.lr-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--sheet); }
.lr-ring b { position: relative; font-size: 19px; }
.lr-big { font-weight: 800; font-size: 17px; margin: 0 0 4px; }
.lr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.lr-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; margin: 0; border-top: 4px solid var(--brand); }
.lr-card.done { border-top-color: var(--ok); background: linear-gradient(180deg, #fff, var(--ok-soft)); }
.lr-card:hover { box-shadow: var(--sh-2, 0 4px 14px rgba(0,0,0,.08)); }
.lr-kind { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lr-ct { font-size: 16.5px; }
.lr-bar { display: block; height: 8px; border-radius: 999px; background: var(--rule-2, #e6e8e3); overflow: hidden; }
.lr-bar span { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.lr-bar.sm { display: inline-block; width: 70px; height: 6px; vertical-align: middle; }
.lr-head h1 { margin: 2px 0 4px; }
.lr-progress { display: flex; align-items: center; gap: 10px; margin: 8px 0 var(--s4); max-width: 520px; }
.lr-progress .lr-bar { flex: 1; }
.lr-wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.lr-toc { position: sticky; top: 12px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; max-height: calc(100vh - 40px); overflow: auto; }
.lr-toc summary { cursor: pointer; }
.lr-toc ol { list-style: none; margin: 8px 0 0; padding: 0; }
.lr-toc li a { display: flex; gap: 8px; align-items: flex-start; padding: 5px 2px; color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.lr-toc li a:hover { color: var(--brand); }
.lr-dot { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule-key); font-size: 11px; font-weight: 700; color: var(--muted); }
.lr-toc li.ok .lr-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.lr-sec { scroll-margin-top: 14px; }
.lr-sec.ok { border-left: 4px solid var(--ok); }
.lr-no { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.lr-sec h2 { margin: 2px 0 var(--s3); font-size: 21px; }
.lr-text { font-size: 15.5px; line-height: 1.65; max-width: 760px; }
.lr-text h3 { font-size: 17px; margin: var(--s4) 0 6px; } .lr-text h4 { font-size: 15.5px; margin: var(--s3) 0 4px; }
.lr-text ol, .lr-text ul { padding-left: 22px; } .lr-text li { margin: 4px 0; }
.lr-ui { display: inline-block; padding: 0 6px; border-radius: 5px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, #fff); font-weight: 600; font-size: .93em; color: var(--brand-text); white-space: nowrap; }
.lr-tip, .lr-warn { padding: 10px 14px; border-radius: 8px; margin: 10px 0; border-left: 4px solid var(--info); background: var(--info-soft); }
.lr-tip::before { content: "💡 "; } .lr-warn::before { content: "⚠️ "; }
.lr-warn { border-left-color: #d39a1f; background: var(--warn-soft); }
.lr-fig { margin: 12px 0 16px; }
.lr-fig img { display: block; max-width: 100%; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 4px 16px rgba(30, 38, 52, .10); }
.lr-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.lr-tick { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--rule); }
.lr-done { margin: var(--s4) 0 0; color: var(--ok); font-weight: 700; }
.lr-finish { text-align: center; font-size: 17px; background: linear-gradient(180deg, #fff, var(--ok-soft)); }
.lr-admin { margin: 0; padding: 8px 18px 8px 38px; }
.lr-admin li { padding: 6px 0; border-bottom: 1px solid var(--rule-2, #eceee8); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lr-mv { margin-left: auto; display: flex; gap: 4px; }
.lr-aud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
.lr-imgs li { display: flex; gap: 8px; align-items: center; margin: 6px 0; } .lr-imgs img { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--rule); }
.lr-board .lr-dh { font-size: 11.5px; min-width: 90px; white-space: normal; }
.lr-cell { text-align: center; }
.lr-c-ok { color: var(--ok); font-weight: 800; } .lr-c-mid { color: var(--warn); font-weight: 700; } .lr-c-no { color: var(--stamp); }
.lr-tile.done b { color: var(--ok); }
.lr-tile svg { width: 16px; height: 16px; vertical-align: -3px; }
.lr-legend { columns: 2; }
@media (max-width: 900px) {
  .lr-wrap { grid-template-columns: 1fr; }
  .lr-toc { position: static; max-height: none; }
  .lr-toc details:not([open]) ol { display: none; }
  .lr-aud { grid-template-columns: 1fr; }
}

/* staff portal "More" tab (v1.7) */
.sp-more { display: grid; gap: 0; padding: 4px 0; }
.sp-more a { display: flex; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule-2, #eceee8); }
.sp-more a:last-child { border-bottom: 0; }
.sp-more svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.sp-more span { display: grid; } .sp-more small { color: var(--muted); font-size: 12.5px; }
.sp-kiosk-lang { position: fixed; top: 10px; right: 12px; z-index: 5; }
.kp-week .btn { margin: 6px 0 12px; }
.kp-ev li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.kp-ev .chip, .kp-crit .chip { white-space: normal; }
.sp-punch form + p, .sp-punch .btn + p { margin-top: 14px; }
.kp-hero, .kp-crit, .kp-badges { min-width: 0; }
.tpl-stack { max-width: 980px; } .tpl-stack > .panel { margin-bottom: var(--s4, 16px); }
.setup-t td.actions { white-space: normal; width: 1%; min-width: 84px; text-align: center; } .setup-t td.actions .btn, .setup-t td.actions form { display: block; width: 100%; margin: 0 0 6px; } .setup-t td.actions form .btn { margin: 0; }
/* online payment method picker: the fee text goes under the method name, so "FPX (perbankan internet)" never breaks mid-word */
.pf-box .reg-tick { grid-template-columns: auto minmax(0, 1fr); }
.pf-box .reg-tick .rt-price { grid-column: 2; white-space: normal; font-size: 13px; font-weight: 600; }
/* v1.17: the registration form hides other session years' programmes / tick boxes */
.reg-tick[hidden], .reg-extras .field[hidden], .help[data-year][hidden] { display: none !important; }
/* v1.17: red notice above the extra activities; PAJSK hint (red when Darjah 4–6) */
.reg-note-red { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #f1b5b5; border-left: 4px solid #c62828; border-radius: 10px; background: #fdecec; color: #a11a1a; font-weight: 600; font-size: 14px; line-height: 1.45; }
.reg-pajsk { margin: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.reg-pajsk.must { color: #c62828; }
.reg-pajsk[hidden] { display: none; }
/* v1.18: registration fee breakdown of the chosen programme */
.reg-bd { margin: 8px 0 4px; border: 1px solid var(--line, #e5e1d8); border-radius: 12px; padding: 10px 12px; background: var(--surface, #fff); font-size: 14px; }
.reg-bd[hidden] { display: none; }
.reg-bd-h { font-weight: 700; margin-bottom: 6px; }
.reg-bd-g { margin: 6px 0; }
.reg-bd-g > b { display: block; font-size: 13px; color: var(--brand-text, var(--brand)); margin-bottom: 2px; }
.reg-bd-l { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.reg-bd-l small { display: block; color: var(--muted); font-size: 12px; }
.reg-bd-l > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.reg-bd-t { display: flex; justify-content: space-between; border-top: 1px dashed var(--line, #d9d2c3); margin-top: 6px; padding-top: 6px; }
.reg-bd-eb { color: #b42318; font-weight: 600; }
.reg-bd-adv { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--brand-soft, #eef6f1); font-size: 13.5px; font-weight: 600; }
/* v1.20.1: extra-activity boxes stack name / price / notes in one column next to the tick, so long club names are not squeezed */
.reg-addons { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.reg-addons .reg-tick { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 10px; }
.reg-addons .reg-tick input { grid-row: 1 / span 4; margin-top: 2px; }
.reg-addons .reg-tick .rt-main, .reg-addons .reg-tick .rt-price, .reg-addons .reg-tick .rt-sub { grid-column: 2; }
.reg-addons .reg-tick .rt-main { overflow-wrap: anywhere; word-break: normal; line-height: 1.3; }
.reg-addons .reg-tick .rt-price { white-space: normal; margin-top: 2px; }
.reg-addons .reg-tick .rt-mo { white-space: nowrap; }
@media (max-width: 560px) { .reg-addons { grid-template-columns: minmax(0, 1fr); } }

/* v1.21 terms & conditions FAQ (public forms + settings builder) */
.terms-faq { margin: var(--s3, 16px) 0; }
.terms-faq-h { margin: 0 0 4px; font-size: 1.05rem; }
.terms-q { border: 1px solid var(--line, #e5e1d8); border-radius: 10px; margin: 0 0 6px; background: var(--card, #fff); overflow: hidden; }
.terms-q > summary { cursor: pointer; padding: 10px 36px 10px 12px; font-weight: 600; font-size: 14.5px; list-style: none; position: relative; overflow-wrap: anywhere; }
.terms-q > summary::-webkit-details-marker { display: none; }
.terms-q > summary::after { content: "+"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; opacity: .6; }
.terms-q[open] > summary::after { content: "\2212"; }
.terms-q[open] > summary { border-bottom: 1px solid var(--line, #e5e1d8); }
.terms-a { padding: 10px 12px; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.terms-faq > .check { margin-top: 10px; }
.terms-row { border: 1px solid var(--line, #e5e1d8); border-radius: 12px; padding: 8px 12px 10px; margin: 0 0 10px; min-width: 0; }
.terms-row.is-blank { border-style: dashed; }
.terms-row legend { padding: 0 4px; }
.terms-row-top { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--s2, 8px); }
.terms-row .field { margin-bottom: 6px; }
.terms-row textarea { min-height: 70px; }

/* v1.24 registration form framed on the school website */
.embed-body { background: #fff; }
.embed-main { padding: 12px; }
.embed-main .authbox { box-shadow: none; border: 0; margin: 0 auto; }
.embed-foot { text-align: center; font-size: 11px; color: var(--muted, #6b7280); padding: 4px 0 10px; }
html.in-frame, html.in-frame body { overflow: hidden; }

/* single-school front page: office/admin sign-in kept apart from the staff portal */
.single-admin { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 14px 18px;
  border: 1px dashed var(--rule, #cfd3cb); border-radius: var(--r-lg, 14px); background: rgba(255, 255, 255, .55); }
.single-admin > div { flex: 1; min-width: 0; }
.single-admin p { margin: 2px 0 0; }
.single-admin .btn { white-space: nowrap; }
@media (max-width: 520px) { .single-admin { flex-direction: column; align-items: stretch; text-align: center; } }
/* framed registration form on a phone: the parent page already has its own side gutter, so no extra padding inside */
@media (max-width: 600px) {
  .embed-body .embed-main { padding: 4px 0 0; }
  .embed-body .authbox, .embed-body .reg-embed { padding: 8px 2px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .embed-body .authbox::before { display: none; }
  .embed-body fieldset { padding-left: 12px; padding-right: 12px; margin-left: 0; margin-right: 0; }
}
/* Hebahan (broadcast) */
.bc-aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bc-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rule, #d9ddd6); border-radius: 12px; cursor: pointer; }
.bc-opt:has(input:checked) { border-color: var(--brand, #0e6b57); background: color-mix(in srgb, var(--brand, #0e6b57) 7%, transparent); }
.bc-opt small { display: block; color: var(--muted, #6b7489); font-size: 12.5px; }
.bc-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 14px; }
.bc-grp { border-top: 1px solid var(--rule, #e3e6e0); padding-top: 10px; }
.bc-count { font-size: 15px; margin: 4px 0 10px; }
.bc-body { white-space: pre-wrap; background: var(--paper-2, #f6f7f4); border-radius: 10px; padding: 14px 16px; }
.bc-prog { height: 8px; border-radius: 99px; background: var(--rule, #e3e6e0); overflow: hidden; margin: 8px 0; }
.bc-prog > i { display: block; height: 100%; background: var(--brand, #0e6b57); }
.bc-mini li, .bc-list li { padding: 6px 0; border-bottom: 1px solid var(--rule, #eceee9); }
.bc-mini li:last-child, .bc-list li:last-child { border-bottom: 0; }
.bc-read p { line-height: 1.6; }
/* v1.28 Rekod lama — status table fits beside the side panel */
.t.lg-stats{font-size:.86rem}
.t.lg-stats th,.t.lg-stats td{padding:8px 8px;white-space:normal}
.t.lg-stats th.num{min-width:0;line-height:1.25}

/* ---------- Tiket bantuan (help desk) ---------- */
.tk-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.tk-msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; background: var(--sheet-2); border: 1px solid var(--rule-2); align-self: flex-start; }
.tk-msg.mine { align-self: flex-end; background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, #fff); }
.tk-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.tk-meta b { color: var(--ink); }
.tk-body { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.tk-yt { margin: 8px 0 0; font-size: 14px; }
.tk-yt a, .tk-pdf { display: inline-flex; align-items: center; gap: 6px; }
.tk-yt svg, .tk-pdf svg { width: 16px; height: 16px; flex: none; }
.tk-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tk-img img { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); background: #fff; }
.tk-pdf { padding: 6px 10px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; font-size: 13.5px; max-width: 100%; overflow-wrap: anywhere; }
.tk-sys { align-self: center; font-size: 12.5px; color: var(--muted); }
.tk-table tr.tk-late td:first-child { box-shadow: inset 3px 0 0 var(--stamp); }
.tk-late-txt { color: var(--stamp); font-weight: 600; }
.tk-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: var(--s3); }
.tk-filters input[type=search] { min-width: 220px; flex: 1 1 220px; }
.tk-list .chip { flex: none; }
.tk-tile b .chip { margin-left: 4px; }
@media (max-width: 760px) { .tk-grid { grid-template-columns: 1fr; } .tk-msg { max-width: 100%; } }

/* v1.32 — Kalendar tahunan (colour-coded year, like the school's paper takwim) */
.yc { --yc-cell: 30px; }
.yc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.yc-stats > div { background: var(--surface, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.yc-stats b { font-size: 22px; line-height: 1.1; }
.yc-stats span { font-size: 12.5px; color: var(--muted, #6b6b6b); }
.yc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; font-size: 12.5px; }
.yc-lg { display: inline-flex; align-items: center; gap: 6px; }
.yc-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.yc-bar { display: inline-block; width: 14px; height: 4px; border-radius: 2px; background: var(--c); flex: none; }
.yc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--yc-cell) * 7 + 26px), 1fr)); gap: 12px; }
.yc-m { background: var(--surface, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 12px; padding: 10px 12px 12px; break-inside: avoid; }
.yc-m h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.yc-wk, .yc-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.yc-wk span { font-size: 10.5px; text-align: center; color: var(--muted, #6b6b6b); font-weight: 600; }
.yc-wk .yc-wr { color: #9aa1aa; }
.yc-d { position: relative; height: var(--yc-cell); display: flex; align-items: center; justify-content: center; font-size: 12px; border-radius: 6px; font-variant-numeric: tabular-nums; cursor: default; }
.yc-d.yc-e { visibility: hidden; }
.yc-d.t-rest { background: #eef0f3; color: #8a919a; }
.yc-d.t-public { background: #8e1b1b; color: #fff; font-weight: 700; }
.yc-d.t-closed { background: #e53935; color: #fff; font-weight: 700; }
.yc-d.t-school { background: #f39c12; color: #fff; font-weight: 700; }
.yc-d.t-staff { background: #7e57c2; color: #fff; font-weight: 700; }
.yc-d.yc-today { outline: 2px solid var(--brand, #0e6b57); outline-offset: -2px; }
.yc-marks { position: absolute; left: 3px; right: 3px; bottom: 2px; display: flex; gap: 1px; }
.yc-marks i { flex: 1; height: 3px; border-radius: 2px; background: var(--c); }
.yc-sw.t-rest { background: #d7dbe0; }
.yc-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 16px 0; }
.yc-lists section { background: var(--surface, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 12px; padding: 12px 14px; }
.yc-lists h2 { font-size: 15px; margin: 0 0 8px; }
.yc-list { list-style: none; margin: 0; padding: 0; }
.yc-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line, rgba(0,0,0,.06)); font-size: 13px; flex-wrap: wrap; }
.yc-list li:first-child { border-top: 0; }
.yc-ld { min-width: 96px; font-weight: 600; font-variant-numeric: tabular-nums; }
.yc-list .grow { flex: 1 1 140px; }
@media (max-width: 560px) { .yc { --yc-cell: 34px; } .yc-grid { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .yc-d.t-rest { background: #2a2f36; color: #8a919a; } }
:root[data-theme="dark"] .yc-d.t-rest { background: #2a2f36; color: #8a919a; }
.yc-printing .yc-ptitle { font-size: 20px; margin: 0 0 2px; }
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  .yc { --yc-cell: 17px; }
  .yc-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .yc-m { padding: 5px 6px; border-color: #ccc; }
  .yc-m h3 { font-size: 10px; margin-bottom: 2px; }
  .yc-d { font-size: 8.5px; border-radius: 3px; }
  .yc-wk span { font-size: 7.5px; }
  .yc-stats, .yc-legend { font-size: 9px; margin-bottom: 6px; }
  .yc-stats b { font-size: 13px; }
  .yc-lists { break-before: page; }
  .yc-d, .yc-sw, .yc-bar, .yc-marks i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.yc-lt { display: block; color: var(--muted, #6b6b6b); font-size: 11.5px; }
.yc-list li { align-items: flex-start; }
.yc-list .yc-sw, .yc-list .yc-bar { margin-top: 3px; }
.filters select { max-width: 100%; }
@media print { .yc-lt { font-size: 8px; } }

/* v1.38 discount code on the registration form */
.reg-kod { margin-top: var(--s3); }
.reg-kod-row { display: flex; gap: var(--s2); }
.reg-kod-row input { flex: 1; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.reg-kod .kod-ok { color: var(--ok, #1d7a46); font-weight: 600; }
.reg-kod .kod-bad { color: var(--ink-2, #6b7489); }
.promo-card .promo-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; padding: 10px 14px; border: 2px dashed var(--brand, #0e6b57); border-radius: 12px; background: var(--brand-soft, #e7f1ee); }
.promo-card .promo-code b { font-size: 22px; letter-spacing: .12em; color: var(--brand-text, #0e6b57); }
.promo-card { padding: 16px; border: 1px solid var(--rule, #d2d6d0); border-radius: 14px; background: var(--sheet, #fff); margin-top: 14px; }

/* v1.38 discount code: where it can be used */
.promo-where { border: 1px solid var(--rule, #d2d6d0); border-radius: 14px; padding: 12px 14px 14px; margin: 14px 0; }
.promo-where legend { font-weight: 700; padding: 0 6px; }
.promo-where-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rule, #d2d6d0); border-radius: 12px; margin: 8px 0; cursor: pointer; }
.promo-where-opt input { margin-top: 3px; }
.promo-where-opt span { display: flex; flex-direction: column; gap: 2px; }
.promo-where-opt small { color: var(--muted, #6b7280); font-size: .85em; }
.promo-where-opt:has(input:checked) { border-color: var(--brand, #0e6b57); background: var(--brand-soft, #eef5f2); }
.promo-where-list { margin-top: 6px; display: grid; gap: 10px; }
.promo-where:has(input[name="where"][value="all"]:checked) .promo-where-list { display: none; }
.promo-where-branch { border: 1px solid var(--rule, #d2d6d0); border-radius: 12px; overflow: hidden; }
.promo-where-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--brand-soft, #eef5f2); font-weight: 600; margin: 0; }
.promo-where-head small { margin-left: auto; white-space: nowrap; font-weight: 400; color: var(--muted, #6b7280); font-size: .8em; }
.promo-where-progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 14px; padding: 8px 12px 10px 34px; }
@media (max-width: 600px) { .promo-where-progs { grid-template-columns: 1fr; padding-left: 16px; } }

/* v1.40 Tawaran semula (re-offer quotations) */
.reoffer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s4); align-items: start; }
.reoffer-grid > aside .panel { margin-bottom: var(--s4); }
.reoffer-grid fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
@media (max-width: 980px) { .reoffer-grid { grid-template-columns: 1fr; } }
.reoffer-flag { color: var(--stamp); margin-top: 2px; }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.wa-text { white-space: pre-wrap; font: inherit; font-size: 13px; background: var(--sheet-2); padding: 10px; border-radius: 8px; margin: 8px 0 0; }
.plain-list { list-style: none; padding: 0; margin: 0 0 8px; }
.plain-list li { padding: 4px 0; border-bottom: 1px solid var(--rule-2); }
.quote-doc { font-size: 15px; }
.quote-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink, #1d2a26); padding-bottom: 12px; margin-bottom: 14px; }
.quote-head h1 { margin: 2px 0; }
.quote-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quote-meta { display: grid; gap: 2px; font-size: 13px; }
.quote-meta div { display: flex; gap: 10px; justify-content: space-between; }
.quote-meta span { color: var(--muted); }
.quote-to { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.quote-to > div { display: flex; flex-direction: column; }
.quote-intro, .quote-note { background: var(--sheet-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.quote-lines tr.disc td { color: var(--ok); }
.quote-lines tfoot td { font-weight: 600; }
.quote-lines tfoot tr.big td { font-size: 16px; font-weight: 800; border-top: 2px solid var(--rule-2); }
.quote-monthly { margin: 14px 0; padding: 12px; border: 1px solid var(--rule-2); border-radius: 8px; }
.quote-monthly > div { display: flex; justify-content: space-between; font-size: 16px; }
.quote-terms h2 { font-size: 15px; margin: 16px 0 6px; }
.quote-terms ul { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; }
.quote-act { margin-top: 18px; }
.quote-act .check { margin-bottom: 10px; }
@media print { .quote-act, .no-print { display: none !important; } }
.quote-lines { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.quote-lines th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--rule-2); }
.quote-lines td { padding: 9px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.quote-lines .num { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.quote-lines tfoot td { border-bottom: 0; padding: 5px 0; }
.quote-lines tfoot tr.big td { padding-top: 10px; }
.reoffer-grid table.lines select.item-pick { width: 120px; }
.reoffer-grid table.lines .desc { width: 100%; min-width: 220px; }
.reoffer-grid table.lines td:nth-child(2) { width: 50%; }

/* v1.41 Kerjaya (careers) */
.careers h1 { margin: 2px 0 8px; }
.careers-intro { margin: 0 0 18px; line-height: 1.6; }
.careers-jobs { display: grid; gap: 12px; margin: 0 0 18px; }
.careers-job { display: block; padding: 14px 16px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--sheet, #fff); color: inherit; text-decoration: none; }
.careers-job:hover { border-color: var(--brand); }
.careers-job h2 { font-size: 17px; margin: 0 0 6px; }
.careers-job p { margin: 6px 0; font-size: 14px; }
.careers-more { font-weight: 700; color: var(--brand-text, var(--brand)); font-size: 14px; margin-right: 8px; }
.careers-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.careers-tags span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--sheet-2); }
.careers-desc { margin: 14px 0; }
.careers-desc h2, .careers-form-h { font-size: 16px; margin: 18px 0 6px; }
.careers-desc div { line-height: 1.6; }
.careers-general { text-align: center; }
.careers-thanks { text-align: center; }
.careers-pipe { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.careers-pipe a { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rule-2); font-size: 13px; text-decoration: none; color: inherit; }
.careers-pipe a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.careers-pipe b { font-weight: 700; margin-left: 2px; }
.careers-list tr.unread td:first-child a { font-weight: 800; }
.careers-list tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.star { color: #e0a100; }
.careers-kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 0; }
.careers-kv dt { color: var(--muted); }
.careers-kv dd { margin: 0; }
.careers-about { background: var(--sheet-2); border-radius: 8px; padding: 10px 12px; line-height: 1.55; }
.careers-cv { width: 100%; height: 720px; border: 1px solid var(--rule-2); border-radius: 8px; margin-top: 10px; }
.careers-notes { list-style: none; padding: 0; margin: 12px 0 0; }
.careers-notes li { padding: 8px 0; border-top: 1px solid var(--rule-2); }
@media (max-width: 640px) { .careers-kv { grid-template-columns: 1fr; } .careers-cv { height: 480px; } }
.careers .field small { display: block; margin-top: 4px; }
.careers .enq-form fieldset { background: transparent; box-shadow: none; }
@media (max-width: 640px) { .careers.authbox { padding: var(--s4); } .careers.authbox::before { inset: 6px 0 -7px 0; transform: none; } }
.careers-general .btn { white-space: normal; max-width: 100%; text-align: center; }

/* v1.42 Pusat bantuan (public help centre) */
.help-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 6px; }
.help-door { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--sheet, #fff); color: inherit; text-decoration: none; }
.help-door:hover { border-color: var(--brand); }
.help-door b { font-size: 16px; }
.help-door span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.help-door em { font-style: normal; font-weight: 700; color: var(--brand-text, var(--brand)); font-size: 14px; margin-top: auto; }
.help-pub .tk-thread { margin: 14px 0; }
.help-close { margin-top: 10px; text-align: center; }
@media (max-width: 640px) { .help-doors { grid-template-columns: 1fr; } }

/* v1.43 Betulkan invois: summary panel */
.rv-sum .totals { font-size: 14px; }
.rv-sum .totals div { display: flex; justify-content: space-between; gap: var(--s3); padding: 5px 0; font-variant-numeric: tabular-nums; }
.rv-sum .totals div[hidden] { display: none; }
.rv-sum .totals .grand { border-top: 1.5px solid var(--ink); font-weight: 800; font-size: 17px; margin-top: 4px; padding-top: 8px; }
.rv-sum [data-rv-bad][hidden] { display: none; }

/* v1.44 Acara & lawatan */
.ev-branch { border: 1px solid var(--rule-2); border-radius: 10px; padding: var(--s3) var(--s4); margin: 0 0 var(--s3); }
.ev-branch legend { font-weight: 700; padding: 0 6px; }
.ev-opts { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 8px; }
.ev-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-gh { font-size: 15px; margin: var(--s4) 0 6px; }
.ev-names { margin: 0 0 var(--s3); padding-left: 22px; }
.ev-names li { padding: 2px 0; }
table.ev-ans .grp-row th { background: var(--paper-2, #f4f5f0); text-align: left; font-size: 13px; }
.ev-staff { white-space: nowrap; }
.ev-tick { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.ev-tick li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule-2); flex-wrap: wrap; }
.ev-tick li > span { flex: 1 1 180px; min-width: 0; }
.ev-tick form { white-space: nowrap; }
/* public link + parent app */
.ev-info { display: grid; gap: 6px; margin: var(--s3) 0; padding: var(--s3) var(--s4); border-radius: 12px; background: var(--ok-soft, #e6f3ee); }
.ev-info div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 14px; }
.ev-info b { color: var(--muted); font-weight: 600; }
.ev-details { font-size: 14px; }
.ev-results { display: grid; gap: 6px; margin: 4px 0 8px; max-height: 360px; overflow-y: auto; }
.ev-hit { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n act" "c act"; text-align: left; width: 100%; padding: 9px 12px; border: 1px solid var(--rule-2); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; color: inherit; }
.ev-hit b { grid-area: n; } .ev-hit > .small { grid-area: c; } .ev-hit .act { grid-area: act; align-self: center; font-weight: 700; color: var(--ok); font-size: 13px; }
.ev-hit.on { border-color: var(--ok); background: var(--ok-soft, #e6f3ee); }
.ev-picked { display: grid; gap: 10px; }
.ev-kid { border: 1px solid var(--rule-2); border-radius: 12px; padding: 10px 12px; background: #fff; display: grid; gap: 8px; }
.ev-kid-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ev-kid-h .ev-rm { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.ev-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev-ans label { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px; border: 1.5px solid var(--rule-2); border-radius: 10px; font-weight: 700; cursor: pointer; }
.ev-ans label:has(input:checked).ev-yes { border-color: var(--ok); background: var(--ok-soft, #e6f3ee); color: var(--ok); }
.ev-ans label:has(input:checked).ev-no { border-color: var(--stamp); background: var(--stamp-soft, #fbe9ea); color: var(--stamp); }
.ev-kid input[type=text], .ev-kid input:not([type]) { width: 100%; }
.ev-kid [hidden] { display: none; }
.ev-empty.flash { display: block; }
.ev-outside { margin-top: var(--s5); padding: var(--s4); border: 1px dashed var(--rule-2); border-radius: 12px; }
.ev-done { list-style: none; padding: 0; margin: var(--s3) 0; text-align: left; }
.ev-done li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule-2); }
.ev-card { display: grid; gap: 4px; text-decoration: none; border-left: 4px solid var(--ok); }
.ev-card .ev-kidtag { white-space: nowrap; }
.ev-card em { color: var(--stamp); font-style: normal; font-weight: 700; }
@media (max-width: 520px) { .ev-info div { grid-template-columns: 1fr; gap: 0; } }

/* v1.46 Surat rasmi */
.ol-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: var(--s3) 0; }
.ol-tpl { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: 12px; text-decoration: none; color: inherit; background: #fff; }
.ol-tpl:hover { border-color: var(--ok); }
.ol-prev iframe { width: 100%; height: 980px; border: 0; display: block; background: #f4f4f1; }
.ol-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ol-inline input[name=title] { flex: 1 1 200px; }
.ol-signer { border-bottom: 1px solid var(--rule-2); padding-bottom: var(--s3); margin-bottom: var(--s3); }
.ol-img { display: block; max-height: 70px; max-width: 200px; margin: 4px 0; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.ol-form textarea[name=body] { font-family: inherit; line-height: 1.55; }
@media (max-width: 760px) { .ol-prev iframe { height: 560px; } }

/* v1.49 card processing fee on the next invoice */
.pf-card-set { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--rule-2); }
.pf-card-note { line-height: 1.5; }
#caj-kad .inline-details { display: inline-block; margin-left: 6px; }
#caj-kad .inline-details summary { cursor: pointer; color: var(--muted); }
#caj-kad .row-form { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
#caj-kad .row-form input { min-width: 160px; flex: 1; }

/* v1.50 website posts */
.wp-grid { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
.wp-grid textarea#wb { min-height: 280px; }
.wp-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.wp-img { margin: 0; border: 1px solid var(--rule-2); border-radius: 10px; overflow: hidden; background: var(--sheet); }
.wp-img img { width: 100%; height: 110px; object-fit: cover; display: block; }
.wp-img figcaption { padding: 4px 8px; display: flex; flex-direction: column; gap: 2px; }
.wp-actions .btn.block + .small { margin: 4px 0 12px; }
.wp-actions .btn.block { width: 100%; margin-top: 6px; }
.wp-danger { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.wp-danger .row-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
@media (max-width: 860px) { .wp-grid { grid-template-columns: 1fr; } }
/* v1.58 registration form: child's age does not suit this branch */
.age-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(16, 24, 32, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.age-box { background: #fff; color: #1d2433; border-radius: 16px; max-width: 440px; width: 100%; padding: 22px 20px 16px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .45); max-height: 90vh; overflow: auto; }
.age-box h2 { margin: 0 0 8px; font-size: 19px; color: #b0222a; }
.age-box p { margin: 0 0 12px; line-height: 1.55; }
.age-box .age-fit { font-weight: 700; margin-top: 4px; }
.age-box .btn { margin-top: 8px; }
.age-modal, .age-modal * { box-sizing: border-box; }
.age-box .btn { white-space: normal; height: auto; min-height: 44px; line-height: 1.35; padding-top: 10px; padding-bottom: 10px; text-align: center; max-width: 100%; }

/* v1.59 held parent emails after approval */
.held-notify .held-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.held-notify .held-acts form { margin: 0; }

/* v1.64 Surat masuk */
.ol-io { margin-bottom: var(--s3); }
.sm-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s3); }
.sm-cats .chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #d9ddd6); background: var(--card, #fff); color: inherit; text-decoration: none; font-size: .92em; }
.sm-cats .chip-link.on { background: var(--brand, #0f5c63); border-color: var(--brand, #0f5c63); color: #fff; }
.sm-cats .chip-link.muted { opacity: .6; }
.sm-cats .cnt { min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: .82em; text-align: center; }
.sm-cats .chip-link.on .cnt { background: rgba(255,255,255,.25); }
.sm-cats .cnt.due { background: #c0392b; color: #fff; }
.sm-prev iframe { width: 100%; height: 980px; border: 0; display: block; background: #f4f4f1; }
.sm-prev img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .sm-prev iframe { height: 560px; } }
.sm-docs li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line, #eee); }
.sm-docs li svg { width: 16px; height: 16px; vertical-align: -3px; }
.sm-docs form.inline { display: inline; margin-left: auto; }
.pre-wrap { white-space: pre-wrap; }
/* v1.66 lampiran surat rasmi */
.sm-docs details.inline { margin-left: auto; }
.sm-docs details.inline form { margin-top: 6px; }
