/* contact.css — ZENTRA CONTACT F0 components. Navy/gold house palette (zentra.css base). */

/* ---- Shell ---- */
#app { display: flex; min-height: 100vh; }
#sidebar { width: 244px; flex-shrink: 0; background: var(--navy-deep, #071120);
  border-right: 1px solid var(--hairline-soft, rgba(201,162,39,.28));
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
#content { flex: 1; min-width: 0; padding: 28px; max-width: 1240px; }
@media (max-width: 900px) { #content { padding: 18px 14px 80px; } }

/* ---- Sidebar internals ---- */
.brand { padding: 18px 16px 14px; border-bottom: 1px solid var(--hairline-soft, rgba(201,162,39,.28));
  display: flex; gap: 10px; align-items: center; }
.brand .mark img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { display: block; font-size: 14px; color: #f2e6c4; }
.brand small { display: block; font-size: 10.5px; color: #9fb0c4; letter-spacing: .3px; }
.nav { padding: 10px 8px; display: block; }
.nav .sec { font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  color: #7d8fa6; padding: 12px 10px 5px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  color: #c9d6e4; text-decoration: none; font-size: 13px; margin-bottom: 2px; }
.nav a:hover { background: rgba(201,162,39,.10); color: #f2e6c4; }
.nav a.on { background: linear-gradient(90deg, rgba(201,162,39,.22), rgba(201,162,39,.05));
  color: #f6e9c6; box-shadow: inset 2px 0 0 var(--gold, #c9a227); }
/* Icons MUST carry an explicit size: an unsized <svg> resolves to 0x0. */
.nav a svg, .nav .ic { width: 17px; height: 17px; flex: 0 0 auto; display: block; }
.pill-live { font-size: 9px; padding: 1px 5px; border-radius: 999px; margin-left: auto;
  background: rgba(201,162,39,.18); color: #e8ce86; border: 1px solid rgba(201,162,39,.3); }
.foot { padding: 14px 16px 20px; font-size: 10.5px; color: #9fb0c4; line-height: 1.5; }

/* ---- Page header ---- */
.phead { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.phead h1 { font-size: 22px; margin: 0 0 3px; color: #f2e6c4; letter-spacing: -.2px; }
.phead p { margin: 0; font-size: 12.5px; color: #9fb0c4; }

/* ---- Demo banner ---- */
.demo-banner { display: flex; gap: 9px; align-items: flex-start; padding: 11px 14px;
  border-radius: 11px; margin-bottom: 18px; font-size: 12px; line-height: 1.55;
  background: rgba(201,162,39,.10); border: 1px solid rgba(201,162,39,.30); color: #e8ce86; }
.demo-banner b { color: #f6e9c6; }
.theme-light .demo-banner { background: rgba(180,140,20,.12); color: #6b5310; border-color: rgba(180,140,20,.35); }
.theme-light .demo-banner b { color: #4a3a08; }

/* ---- Cards ---- */
.card { background: rgba(255,255,255,.035); border: 1px solid var(--hairline-soft, rgba(201,162,39,.20));
  border-radius: 13px; padding: 16px 18px; margin-bottom: 16px; }
.card h2 { font-size: 14px; margin: 0 0 12px; color: #f2e6c4; letter-spacing: .2px; }
.card h3 { font-size: 12.5px; margin: 0 0 9px; color: #e8ce86; }
.theme-light .card { background: #fff; border-color: rgba(20,40,70,.12); }
.theme-light .card h2 { color: #0b1b2e; }

/* ---- Stat cards ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: rgba(255,255,255,.04); border: 1px solid rgba(201,162,39,.20);
  border-radius: 12px; padding: 14px 15px; }
.stat .v { font-size: 25px; font-weight: 700; color: #f6e9c6; line-height: 1.1; }
.stat .l { font-size: 11px; color: #9fb0c4; margin-top: 3px; }
.stat.warn .v { color: #f0b26b; }
.theme-light .stat { background: #fff; border-color: rgba(20,40,70,.12); }
.theme-light .stat .v { color: #0b1b2e; }
.theme-light .stat.warn .v { color: #a35a00; }

/* ---- Filter bar ---- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-btn { padding: 6px 12px; border-radius: 999px; font-size: 11.5px; cursor: pointer;
  background: rgba(255,255,255,.05); color: #c9d6e4; border: 1px solid rgba(201,162,39,.20); }
.filter-btn:hover { background: rgba(201,162,39,.12); }
.filter-btn.on { background: rgba(201,162,39,.22); color: #f6e9c6; border-color: rgba(201,162,39,.5); font-weight: 600; }
input.f, select.f { padding: 8px 11px; border-radius: 9px; font: inherit; font-size: 12.5px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,39,.22); color: #e8eef5; }
input.f::placeholder { color: #7d8fa6; }
.theme-light input.f, .theme-light select.f { background: #fff; color: #0b1b2e; border-color: rgba(20,40,70,.18); }

/* ---- Table ---- */
.card-table { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl th { text-align: left; padding: 9px 10px; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .07em; color: #9fb0c4; border-bottom: 1px solid rgba(201,162,39,.22); white-space: nowrap; }
table.tbl td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.05); color: #d5e0ea; vertical-align: middle; }
table.tbl tr:hover td { background: rgba(201,162,39,.055); }
table.tbl a { color: #e8ce86; text-decoration: none; font-weight: 600; }
table.tbl a:hover { text-decoration: underline; }
.theme-light table.tbl td { color: #24384f; border-color: rgba(20,40,70,.08); }
.theme-light table.tbl th { color: #5b6d80; }
.theme-light table.tbl a { color: #8a6a12; }
.tel a { color: #8fd4a8; text-decoration: none; }
.theme-light .tel a { color: #1c6b3a; }

/* ---- Badges / pills ---- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px;
  font-weight: 600; white-space: nowrap; }
.b-new      { background: rgba(90,150,220,.20); color: #9dc4ee; }
.b-contact  { background: rgba(140,120,220,.20); color: #c3b4f0; }
.b-qual     { background: rgba(90,190,180,.20); color: #8fdcd4; }
.b-view     { background: rgba(230,180,90,.20); color: #f0cf95; }
.b-nego     { background: rgba(230,140,90,.22); color: #f5b48a; }
.b-won      { background: rgba(90,200,130,.22); color: #96e0b4; }
.b-lost     { background: rgba(210,110,110,.20); color: #efa0a0; }
.b-nurture  { background: rgba(150,160,175,.20); color: #c2cbd8; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10px; margin: 1px 3px 1px 0;
  background: rgba(201,162,39,.14); color: #e0c98a; border: 1px solid rgba(201,162,39,.22); }
.tag.vip { background: rgba(230,180,90,.22); color: #f6d79a; border-color: rgba(230,180,90,.4); }
.flag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; }
.flag.ok  { background: rgba(90,200,130,.18); color: #96e0b4; }
.flag.no  { background: rgba(210,110,110,.20); color: #efa0a0; }
.flag.due { background: rgba(230,180,90,.20); color: #f0cf95; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px;
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none;
  background: rgba(201,162,39,.16); color: #f0dfae; border: 1px solid rgba(201,162,39,.34); }
.btn:hover { background: rgba(201,162,39,.26); }
.btn.primary { background: linear-gradient(180deg, #d9b348, #b8901f); color: #241a03; border-color: #d9b348; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: #c9d6e4; border-color: rgba(201,162,39,.24); }
.btn.small { padding: 5px 10px; font-size: 11.5px; }
.btn.danger { background: rgba(210,110,110,.16); color: #efa0a0; border-color: rgba(210,110,110,.34); }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(201,162,39,.22); margin-bottom: 16px;
  overflow-x: auto; }
.tab { padding: 9px 14px; font-size: 12.5px; color: #9fb0c4; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; }
.tab:hover { color: #e8ce86; }
.tab.on { color: #f6e9c6; border-bottom-color: var(--gold, #c9a227); font-weight: 600; }
.tabpane { display: none; }
.tabpane.on { display: block; }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 1px;
  background: rgba(201,162,39,.28); }
.act { position: relative; padding: 0 0 15px; }
.act::before { content: ''; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--gold, #c9a227); box-shadow: 0 0 0 3px rgba(201,162,39,.16); }
.act .at { font-size: 10.5px; color: #7d8fa6; }
.act .ab { font-size: 12.5px; color: #d5e0ea; margin-top: 2px; }
.theme-light .act .ab { color: #24384f; }

/* ---- Kanban ---- */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kcol { min-width: 232px; width: 232px; flex-shrink: 0; background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,162,39,.18); border-radius: 12px; padding: 11px; }
.kcol h3 { font-size: 11.5px; margin: 0 0 9px; color: #e8ce86; display: flex; justify-content: space-between; }
.kcol h3 span { color: #9fb0c4; font-weight: 500; }
.kcard { background: rgba(255,255,255,.05); border: 1px solid rgba(201,162,39,.16); border-radius: 9px;
  padding: 10px; margin-bottom: 8px; cursor: grab; }
.kcard:hover { border-color: rgba(201,162,39,.4); }
.kcard .kn { font-size: 12.5px; font-weight: 600; color: #f2e6c4;
  overflow-wrap: anywhere; word-break: break-word; line-height: 1.35; }
.kcard .km { font-size: 10.5px; color: #9fb0c4; margin-top: 3px; }
.kcard .kv { font-size: 11px; color: #8fd4a8; margin-top: 5px; font-weight: 600; }
.theme-light .kcol { background: #f7f9fc; }
.theme-light .kcard { background: #fff; }
.theme-light .kcard .kn { color: #0b1b2e; }

/* ---- Forms ---- */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld label { font-size: 11.5px; color: #9fb0c4; font-weight: 600; }
.fld .req { color: #efa0a0; }
.fld input, .fld select, .fld textarea { padding: 9px 11px; border-radius: 9px; font: inherit; font-size: 12.5px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,39,.22); color: #e8eef5; }
.fld textarea { min-height: 76px; resize: vertical; }
.fld .hint { font-size: 10.5px; color: #7d8fa6; }
.theme-light .fld input, .theme-light .fld select, .theme-light .fld textarea {
  background: #fff; color: #0b1b2e; border-color: rgba(20,40,70,.18); }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: #e8ce86;
  margin: 20px 0 11px; padding-bottom: 6px; border-bottom: 1px solid rgba(201,162,39,.18); }
.actions-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px;
  padding-top: 16px; border-top: 1px solid rgba(201,162,39,.18); }

/* ---- Profile ---- */
.prof-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.avatar { width: 62px; height: 62px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(201,162,39,.30), rgba(201,162,39,.10));
  border: 1px solid rgba(201,162,39,.35); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #f6e9c6; }
.prof-head .pn { font-size: 19px; font-weight: 700; color: #f2e6c4; }
.prof-head .pm { font-size: 12px; color: #9fb0c4; margin-top: 3px; }
.kv-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 12.5px; }
.kv-list dt { color: #9fb0c4; font-size: 11.5px; }
.kv-list dd { margin: 0; color: #d5e0ea; }
.theme-light .kv-list dd { color: #24384f; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12.5px; }
.doc-row .di { width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
  background: rgba(201,162,39,.14); display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* ---- Empty ---- */
.empty { text-align: center; padding: 34px 16px; color: #7d8fa6; font-size: 12.5px; }

/* ---- Toast (demo action layer) ---- */
.dtoast { position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: 22px; z-index: 9999; max-width: 440px; width: calc(100% - 32px);
  background: #10203a; border: 1px solid rgba(201,162,39,.4); border-radius: 12px;
  padding: 13px 15px; box-shadow: 0 12px 34px rgba(0,0,0,.45); transition: transform .28s ease; }
.dtoast.on { transform: translateX(-50%) translateY(0); }
.dtoast b { display: block; font-size: 12.5px; color: #f6e9c6; margin-bottom: 4px; }
.dtoast span { display: block; font-size: 12px; color: #c9d6e4; line-height: 1.5; }
.dtoast a { display: inline-block; margin-top: 7px; font-size: 11.5px; color: #e8ce86; text-decoration: none; font-weight: 600; }
.dtoast i { display: block; margin-top: 8px; font-size: 10.5px; color: #7d8fa6; font-style: normal;
  border-top: 1px solid rgba(201,162,39,.18); padding-top: 7px; }

/* ---- Burger / mobile ---- */
.burger { display: none; position: fixed; top: 12px; left: 12px; z-index: 200;
  width: 40px; height: 40px; border-radius: 10px; background: rgba(16,32,58,.94);
  border: 1px solid rgba(201,162,39,.35); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 19px; height: 19px; color: #e8ce86; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 149; }
.overlay.on { display: block; }
@media (max-width: 900px) {
  #sidebar { position: fixed; left: 0; top: 0; z-index: 150; transform: translateX(-100%);
    transition: transform .25s ease; }
  #sidebar.open { transform: translateX(0); }
  .burger { display: flex; }
  .phead { padding-left: 48px; }
}

/* ---- Mobile: table → cards ---- */

/* Nilai panjang (cth senarai kawasan) mesti berpusing, bukan melimpah keluar kad. */
table.tbl.responsive td { overflow-wrap: anywhere; }
table.tbl.responsive td::before { white-space: nowrap; }

@media (max-width: 760px) {
  table.tbl.responsive thead { display: none; }
  table.tbl.responsive tr { display: block; margin-bottom: 11px; border-radius: 10px;
    border: 1px solid rgba(201,162,39,.20); background: rgba(255,255,255,.035); padding: 10px 12px; }
  table.tbl.responsive td { display: flex; justify-content: space-between; gap: 12px;
    border: none; padding: 5px 0; font-size: 12.5px; }
  table.tbl.responsive td > *:last-child, table.tbl.responsive td { text-align: right; }
  table.tbl.responsive td { flex-wrap: wrap; }
  table.tbl.responsive td::before { content: attr(data-l); color: #9fb0c4; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; padding-top: 2px; }
  .theme-light table.tbl.responsive tr { background: #fff; border-color: rgba(20,40,70,.12); }
  .theme-light table.tbl.responsive td::before { color: #5b6d80; }
}


/* ── Baris telefon/emel dinamik (Fasa 2) ─────────────────────────────── */
.row-dinamik {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.row-dinamik input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}
.row-dinamik input.label-kecil {
  flex: 0 0 110px;
}
.row-dinamik .buang-baris {
  flex: 0 0 auto;
  line-height: 1;
  padding: 6px 10px;
}
form.inline {
  display: inline;
  margin: 0;
}

/* ── Susun atur asas yang HILANG (ditemui semasa F3) ──────────────────
   Kelas ini dipakai sejak F1 (borang + profil) tetapi tiada peraturan CSS,
   jadi grid dua-lajur tidak pernah berfungsi. Diukur melalui DOM, bukan mata. */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px; margin-bottom: 14px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.field > label { font-size: 11.5px; color: #9fb0c4; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 9px 11px; border-radius: 9px; font: inherit; font-size: 12.5px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(201,162,39,.22);
  color: #e7eef7; width: 100%; box-sizing: border-box; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(201,162,39,.55); outline-offset: 1px;
  border-color: rgba(201,162,39,.55); }
.field textarea { resize: vertical; min-height: 68px; }
.formact { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.drow { display: grid; grid-template-columns: 132px 1fr; gap: 6px 12px;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12.5px; }
.drow:last-child { border-bottom: 0; }
.drow .dl { color: #9fb0c4; }
.drow .dv { color: #e7eef7; overflow-wrap: anywhere; }
.theme-light .field input, .theme-light .field select, .theme-light .field textarea {
  background: #fff; border-color: rgba(20,40,70,.18); color: #0b1b2e; }
.theme-light .drow { border-color: rgba(20,40,70,.08); }
.theme-light .drow .dl { color: #5b6d80; }
.theme-light .drow .dv { color: #0b1b2e; }

/* ── KPI + cip penapis (F3) ─────────────────────────────────────────── */
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px; margin-bottom: 4px; }
.kbox { background: rgba(255,255,255,.04); border: 1px solid rgba(201,162,39,.16);
  border-radius: 10px; padding: 10px 12px; }
.kbox .kn { font-size: 19px; font-weight: 700; color: #f2e6c4;
  font-variant-numeric: tabular-nums; line-height: 1.15; }
.kbox .kl { font-size: 10.5px; color: #9fb0c4; text-transform: uppercase;
  letter-spacing: .06em; margin-top: 3px; }
.theme-light .kbox { background: #fff; }
.theme-light .kbox .kn { color: #0b1b2e; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
.chip { padding: 5px 12px; border-radius: 999px; font-size: 11.5px; text-decoration: none;
  color: #c9d6e4; background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,162,39,.18); }
.chip:hover { border-color: rgba(201,162,39,.45); color: #f2e6c4; }
.chip.on { background: linear-gradient(90deg, rgba(201,162,39,.26), rgba(201,162,39,.08));
  color: #f6e9c6; border-color: rgba(201,162,39,.5); }
.theme-light .chip { color: #33455c; background: #fff; }

/* ── Kanban (F3) ────────────────────────────────────────────────────── */
.kboard { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px;
  align-items: flex-start; margin-bottom: 18px; }
/* Papan menatal SECARA DALAMAN (overflow-x:auto), jadi limpahan dokumen = 0
   dan tiada scrollbar halaman muncul. Papan 8 lajur melimpah pada SEMUA lebar
   yang disokong (1125px ruang vs 1972px kandungan @1440) — jadi petunjuk ini
   bukan hiasan mudah alih, ia perlu pada setiap lebar. */
.scroll-hint { display: block; font-size: 11.5px; color: #9fb0c4; margin: 0 0 10px; }
.kboard .kcol { min-width: 236px; width: 236px; flex-shrink: 0;
  background: rgba(255,255,255,.03); border: 1px solid rgba(201,162,39,.18);
  border-radius: 12px; padding: 11px; }
.khead { font-size: 11.5px; color: #e8ce86; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.kcount { background: rgba(201,162,39,.18); color: #e8ce86; border-radius: 999px;
  padding: 1px 7px; font-size: 10px; }
.khint { font-size: 10.5px; color: #9fb0c4; margin-bottom: 9px; }
.kref { font-size: 9.5px; color: #9fb0c4; letter-spacing: .06em; }
.kname { font-size: 12.5px; font-weight: 600; color: #f2e6c4; margin: 2px 0 4px;
  overflow-wrap: anywhere; word-break: break-word; line-height: 1.35; }
.kname a { color: inherit; }
.kmove { display: flex; gap: 5px; margin-top: 7px; }
.kmove select { flex: 1 1 auto; min-width: 0; font-size: 11px; padding: 5px 7px;
  border-radius: 7px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,162,39,.22); color: #e7eef7; }
.kmove .btn { flex: 0 0 auto; }
.theme-light .kboard .kcol { background: #f7f9fc; }
.theme-light .kname { color: #0b1b2e; }
.theme-light .kmove select { background: #fff; color: #0b1b2e; border-color: rgba(20,40,70,.18); }

/* ── Lipatan borang (F3) ────────────────────────────────────────────── */
.fold { border: 1px solid rgba(201,162,39,.18); border-radius: 10px;
  padding: 10px 13px; margin-top: 12px; background: rgba(255,255,255,.02); }
.fold > summary { cursor: pointer; font-size: 12.5px; color: #e8ce86; font-weight: 600; }
.fold[open] > summary { margin-bottom: 11px; }
.theme-light .fold { background: #fff; }


/* ── Kanban pada telefon (F3) ─────────────────────────────────────────
   Mesti berada SELEPAS peraturan asas .kboard .kcol di atas: spesifisiti
   sama (0,2,0), jadi yang kemudian menang. Lajur tetap 236px terpotong
   separuh pada skrin 390px — 78vw membolehkan lajur seterusnya mengintai
   sebagai isyarat boleh skrol. */
@media (max-width: 760px) {
  .kboard { scroll-snap-type: x mandatory; }
  .kboard .kcol { min-width: 78vw; width: 78vw; scroll-snap-align: start; }
  .kcard .kn { overflow-wrap: anywhere; }
  .scroll-hint { display: block; font-size: 11px; color: #9fb0c4; margin: 0 0 10px; }
}

/* ── PDPA (F4) ────────────────────────────────────────────────────────
   NOTA: peraturan asas sahaja di sini — JANGAN letak override .kboard/.kcol
   selepas blok media di atas (spesifisiti + urutan menentukan pemenang). */
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 14px; align-items: start; }
.formgrid .formact { grid-column: 1 / -1; }
.stat.danger .v { color: #ff9b8a; }
.theme-light .stat.danger .v { color: #b3261e; }

/* Eksport subjek akses: teks monospace yang boleh dibaca dan disalin. */
.eksport { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11.5px;
  line-height: 1.5; background: rgba(0,0,0,.22); border: 1px solid rgba(201,162,39,.18);
  border-radius: 10px; padding: 13px 15px; max-height: 62vh; overflow: auto;
  color: #dbe6f2; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.theme-light .eksport { background: #f4f7fb; color: #0b1b2e; }

/* Senarai tindakan tidak boleh undur mesti kelihatan berbeza. */
.flash.danger { border-color: rgba(255,110,90,.45); }
.flash.warn { border-color: rgba(240,178,107,.42); }

/* ── Kekerasan (F6) ───────────────────────────────────────────────────
   Kad auth: borang sempit yang berpusat. `wide` untuk halaman yang membawa
   kod QR / kod pemulihan — kandungannya lebih lebar daripada borang biasa. */
.auth-card { max-width: 420px; margin: 40px auto; }
.auth-card.wide { max-width: 720px; }
.auth-card h2 { margin-top: 0; }
.auth-card h2 + .hint { margin-top: -4px; }

/* Kod pemulihan: monospace, boleh dibaca, sengaja menonjol untuk disalin. */
.kod-pulih { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px; margin: 16px 0; }
.kod-pulih div { background: rgba(0,0,0,.24); border: 1px solid rgba(201,162,39,.24);
  border-radius: 8px; padding: 9px 12px; text-align: center; }
.kod-pulih code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; letter-spacing: 1px; color: #f2e6c8; }
.theme-light .kod-pulih div { background: #f4f7fb; }
.theme-light .kod-pulih code { color: #0b1b2e; }
