/* CampusGlows Admission Booster — one stylesheet for every area. Brand: #0E3121 green, champagne gold, ivory, accent #37A4E0, Poppins. */
:root {
  --g: #0E3121; --g2: #164A33; --g3: #1F6446; --gold: #C8A24A; --gold2: #E6CF8F; --ivory: #FBF8F1; --ivory2: #F3EEE2; --accent: #37A4E0;
  --ink: #17201B; --ink2: #4B5A52; --mute: #7D8A83; --line: #E4DED0; --line2: #EFEBE1; --white: #fff;
  --ok: #15803D; --okbg: #E8F6EC; --warn: #B45309; --warnbg: #FDF3E1; --bad: #B91C1C; --badbg: #FDECEC; --info: #1D6FA5; --infobg: #E7F3FB;
  --r: 14px; --r2: 10px; --sh: 0 1px 2px rgba(14,49,33,.06), 0 8px 24px rgba(14,49,33,.07); --sh2: 0 18px 50px rgba(14,49,33,.18);
  --brand: var(--g); --brand2: var(--g2); --brandInk: #fff;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.theme-blue { --brand: #0B4F8A; --brand2: #0E63AC; }
.theme-maroon { --brand: #6B1F2A; --brand2: #862A37; }
.theme-navy { --brand: #14213D; --brand2: #23355E; }
.theme-teal { --brand: #0F5E5C; --brand2: #137573; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-size: 14.5px; line-height: 1.55; }
a { color: var(--g3); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--g); font-weight: 600; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .8em; }
small, .small { font-size: .82rem; }
.muted { color: var(--mute); } .ink2 { color: var(--ink2); }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.mt0 { margin-top: 0 } .mt1 { margin-top: .5rem } .mt2 { margin-top: 1rem } .mt3 { margin-top: 1.5rem } .mb0 { margin-bottom: 0 } .mb1 { margin-bottom: .5rem } .mb2 { margin-bottom: 1rem }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; }
pre.code { background: #0f1c16; color: #d9f2e6; padding: 12px 14px; border-radius: var(--r2); overflow: auto; font-size: .8rem; white-space: pre-wrap; word-break: break-all; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62em 1.1em; border-radius: 10px; border: 1px solid transparent;
  background: var(--g); color: #fff; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--g2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-busy { opacity: .6; cursor: wait; }
.btn.gold { background: var(--gold); color: var(--g); } .btn.gold:hover { background: #b89238; }
.btn.ghost { background: #fff; color: var(--g); border-color: var(--line); } .btn.ghost:hover { background: var(--ivory2); }
.btn.light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); } .btn.light:hover { background: rgba(255,255,255,.24); }
.btn.blue { background: var(--accent); } .btn.blue:hover { background: #2589c1; }
.btn.wa { background: #1FA855; } .btn.wa:hover { background: #178a45; }
.btn.danger { background: #fff; color: var(--bad); border-color: #f1c9c9; } .btn.danger:hover { background: var(--badbg); }
.btn.sm { padding: .4em .75em; font-size: .85rem; border-radius: 8px; }
.btn.lg { padding: .85em 1.5em; font-size: 1.02rem; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.brand { background: var(--brand); } .btn.brand:hover { background: var(--brand2); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--g3); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--bad); }
.btns { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
form.inline { display: inline; }

/* ---------- cards & layout helpers ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh); }
.card + .card { margin-top: 16px; }
.card.flat { box-shadow: none; }
.card.pad0 { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 12px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3, .g-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .g2, .g4 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* ---------- KPI tiles ---------- */
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.kpi .v { font-size: 1.7rem; font-weight: 600; color: var(--g); line-height: 1.1; }
.kpi .l { color: var(--ink2); font-size: .84rem; margin-top: 2px; }
.kpi .s { color: var(--mute); font-size: .76rem; margin-top: 4px; }
.kpi.gold { border-top: 3px solid var(--gold); } .kpi.blue { border-top: 3px solid var(--accent); } .kpi.green { border-top: 3px solid var(--g3); } .kpi.red { border-top: 3px solid #e26464; }
a.kpi { color: inherit; text-decoration: none; display: block; } a.kpi:hover { border-color: var(--gold); }

/* ---------- badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .16em .6em; border-radius: 999px; font-size: .74rem; font-weight: 500; background: var(--ivory2); color: var(--ink2); white-space: nowrap; line-height: 1.5; }
.badge.ok { background: var(--okbg); color: var(--ok); } .badge.warn { background: var(--warnbg); color: var(--warn); } .badge.bad { background: var(--badbg); color: var(--bad); }
.badge.info { background: var(--infobg); color: var(--info); } .badge.gold { background: #f6ecd2; color: #7a5d14; } .badge.dark { background: var(--g); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: .35em; padding: .3em .75em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink2); font-size: .82rem; text-decoration: none !important; }
.chip.on, .chip:hover { border-color: var(--g3); color: var(--g); background: #eef6f1; }
.chip .n { background: var(--ivory2); border-radius: 999px; padding: 0 .45em; font-size: .75rem; }
.chip.on .n { background: var(--g); color: #fff; }
.pill-n { display: inline-block; min-width: 1.5em; padding: 0 .4em; border-radius: 999px; background: var(--gold); color: var(--g); font-size: .72rem; font-weight: 600; text-align: center; line-height: 1.6; }

/* ---------- alerts ---------- */
.alert { padding: 11px 14px; border-radius: var(--r2); border: 1px solid; margin-bottom: 14px; font-size: .9rem; white-space: pre-line; }
.alert.success { background: var(--okbg); border-color: #bfe5ca; color: #0f5a2b; } .alert.error { background: var(--badbg); border-color: #f3c3c3; color: #8f1515; }
.alert.info { background: var(--infobg); border-color: #bcdcf1; color: #0f4c74; } .alert.warn { background: var(--warnbg); border-color: #f1d8a6; color: #7c3f06; }
.flashes { position: fixed; right: 18px; top: 18px; z-index: 90; width: min(420px, calc(100vw - 36px)); }
.flashes .alert { box-shadow: var(--sh2); animation: fin .25s ease; }
@keyframes fin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- forms ---------- */
.f { margin-bottom: 14px; }
.f > label, .lbl { display: block; font-weight: 500; font-size: .86rem; color: var(--ink); margin-bottom: 5px; }
.f .req { color: var(--bad); margin-left: 2px; }
.f .help { color: var(--mute); font-size: .78rem; margin-top: 4px; }
.f .err { color: var(--bad); font-size: .8rem; margin-top: 4px; }
.f.has-err input, .f.has-err select, .f.has-err textarea { border-color: #e59b9b; background: #fffafa; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: .62em .8em; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: .92rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g3); box-shadow: 0 0 0 3px rgba(31,100,70,.13); }
textarea { min-height: 84px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
input[type=checkbox], input[type=radio] { accent-color: var(--g3); width: 16px; height: 16px; vertical-align: -3px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; cursor: pointer; margin: 4px 0; }
.check input { margin-top: 3px; flex: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 14px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.input-group { display: flex; } .input-group > select { width: 96px; border-radius: 10px 0 0 10px; border-right: 0; } .input-group > input { border-radius: 0 10px 10px 0; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.counter { float: right; color: var(--mute); font-size: .74rem; font-weight: 400; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg label { padding: .35em .8em; font-size: .82rem; cursor: pointer; border-right: 1px solid var(--line); margin: 0; }
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: #fff; }
.seg label:has(input:checked) { background: var(--g); color: #fff; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink2); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fcfaf5; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fcfbf7; }
.tbl th a { color: inherit; }
.tbl .t-strong { font-weight: 500; color: var(--ink); }
.tbl.compact td, .tbl.compact th { padding: 7px 10px; }
.empty { text-align: center; padding: 34px 16px; color: var(--mute); }
.empty .big { font-size: 2rem; display: block; margin-bottom: 6px; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 12px; flex-wrap: wrap; }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 7px 0; border-bottom: 1px solid var(--line2); vertical-align: top; font-size: .9rem; }
.kv td:first-child { color: var(--mute); width: 38%; padding-right: 12px; }
.kv tr:last-child td { border-bottom: 0; }

/* ---------- progress ---------- */
.progress { height: 9px; background: var(--ivory2); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--g3), var(--gold)); border-radius: 999px; }
.meter { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.meter .progress { flex: 1; }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--ivory2) 0); display: grid; place-items: center; flex: none; }
.ring > span { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 600; color: var(--g); font-size: 1.15rem; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--ink2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; font-size: .9rem; }
.tabs a.on { color: var(--g); border-color: var(--gold); font-weight: 500; }
.tabs a:hover { color: var(--g); }

/* ---------- dialogs ---------- */
dialog.dlg { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: var(--sh2); color: var(--ink); }
dialog.dlg::backdrop { background: rgba(10,30,20,.45); backdrop-filter: blur(2px); }
.dlg-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-h h3 { margin: 0; }
.dlg-b { padding: 18px 20px; max-height: 70vh; overflow: auto; }
.dlg-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fcfaf5; }
.x { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--mute); }

/* =================================================================== PORTAL / HQ SHELL */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--g); color: #d5e5dc; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .brand { display: flex; gap: 10px; align-items: center; padding: 18px 18px 14px; color: #fff; text-decoration: none !important; }
.side .brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #fff; }
.side .brand .ini { width: 38px; height: 38px; border-radius: 10px; background: var(--gold); color: var(--g); display: grid; place-items: center; font-weight: 700; flex: none; }
.side .brand b { display: block; font-size: .92rem; line-height: 1.25; font-weight: 600; }
.side .brand small { color: var(--gold2); font-size: .72rem; }
.side nav { padding: 6px 10px 18px; flex: 1; }
.side .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #8fb3a1; margin: 14px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: #d5e5dc; font-size: .88rem; text-decoration: none; }
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side nav a.on { background: rgba(200,162,74,.16); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side nav a .pill-n { margin-left: auto; }
.side .foot { padding: 12px 18px 16px; font-size: .74rem; color: #8fb3a1; border-top: 1px solid rgba(255,255,255,.08); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { background: rgba(251,248,241,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 10px 24px; }
.top .menu { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--g); }
.top .search { flex: 1; max-width: 460px; position: relative; }
.top .search input { padding-left: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237D8A83' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 11px 50% no-repeat; }
.search .results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh2); overflow: hidden; z-index: 40; }
.search .results a { display: block; padding: 9px 12px; color: var(--ink); border-bottom: 1px solid var(--line2); text-decoration: none; }
.search .results a:hover, .search .results a.act { background: var(--ivory); }
.search .results small { display: block; color: var(--mute); }
.top .sp { flex: 1; }
.iconbtn { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--g); }
.iconbtn .pill-n { position: absolute; top: -6px; right: -6px; background: #e04848; color: #fff; }
.notif-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh2); z-index: 50; overflow: hidden; }
.notif-pop .n { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line2); color: var(--ink); font-size: .86rem; text-decoration: none; }
.notif-pop .n.unread { background: #fbf6e8; }
.notif-pop .n small { color: var(--mute); display: block; }
.me { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--g); display: grid; place-items: center; font-weight: 600; font-size: .85rem; flex: none; }
.content { padding: 22px 24px 48px; max-width: 1360px; width: 100%; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h1 { margin: 0; }
.page-h p { margin: 4px 0 0; color: var(--ink2); }
.banner-camp { padding: 9px 24px; font-size: .85rem; background: var(--warnbg); color: var(--warn); border-bottom: 1px solid #f1d8a6; }
.banner-camp.expired { background: var(--badbg); color: var(--bad); border-color: #f3c3c3; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 262px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--sh2); }
  .top .menu { display: block; }
  .content { padding: 16px 14px 40px; }
  .top { padding: 10px 14px; }
  .me .nm { display: none; }
}
.hq .side { background: #101a2b; }
.hq .side nav a.on { background: rgba(55,164,224,.18); box-shadow: inset 3px 0 0 var(--accent); }
.hq .side .brand .ini { background: var(--accent); color: #fff; }

/* ---------- filters bar ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.filters .f { margin: 0; min-width: 130px; }
.filters .f.grow { flex: 1; min-width: 200px; }
.filters label { font-size: .74rem; color: var(--mute); margin-bottom: 3px; }
.bulkbar { display: none; position: sticky; bottom: 14px; z-index: 20; margin-top: 12px; background: var(--g); color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh2); gap: 8px; align-items: center; flex-wrap: wrap; }
.bulkbar.show { display: flex; }
.bulkbar select, .bulkbar input { width: auto; padding: .4em .6em; font-size: .85rem; }

/* ---------- enquiry detail ---------- */
.prof-h { display: flex; gap: 14px; align-items: center; }
.prof-h .avatar { width: 52px; height: 52px; font-size: 1.15rem; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl { position: relative; padding: 0 0 14px; }
.tl::before { content: ''; position: absolute; left: -19px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--g3); }
.tl.t-whatsapp_in::before, .tl.t-whatsapp_out::before { border-color: #1FA855; } .tl.t-voice::before, .tl.t-ai_chat::before, .tl.t-ai_draft::before { border-color: #8b5cf6; }
.tl.t-converted::before { background: var(--ok); border-color: var(--ok); } .tl.t-lost::before { border-color: #94a3b8; } .tl.t-callback::before { border-color: #e26464; }
.tl .meta { font-size: .75rem; color: var(--mute); }
.tl .body { font-size: .88rem; white-space: pre-line; word-break: break-word; }
.next { list-style: none; margin: 0; padding: 0; }
.next li { padding: 8px 10px 8px 34px; border-radius: 10px; margin-bottom: 6px; font-size: .86rem; position: relative; }
.next li::before { position: absolute; left: 11px; top: 8px; }
.next .danger { background: var(--badbg); color: #8f1515; } .next .danger::before { content: '⚠'; }
.next .warn { background: var(--warnbg); color: #7c3f06; } .next .warn::before { content: '⏰'; }
.next .info { background: var(--infobg); color: #0f4c74; } .next .info::before { content: 'ℹ'; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

/* ---------- kanban ---------- */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; min-height: 60vh; }
.col { flex: 0 0 268px; background: var(--ivory2); border-radius: 14px; padding: 10px; border: 1px solid var(--line); max-height: calc(100vh - 210px); display: flex; flex-direction: column; }
.col-h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .86rem; padding: 2px 4px 10px; color: var(--g); }
.col-h .n { margin-left: auto; background: #fff; border-radius: 999px; padding: 0 .55em; font-size: .75rem; color: var(--ink2); }
.col-b { overflow-y: auto; flex: 1; min-height: 60px; border-radius: 10px; transition: background .15s; }
.col-b.over { background: rgba(200,162,74,.18); }
.kc { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.04); font-size: .84rem; }
.kc:active { cursor: grabbing; }
.kc.drag { opacity: .45; }
.kc b { display: block; color: var(--ink); font-weight: 500; }
.kc .m { color: var(--mute); font-size: .76rem; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.kc.p-hot { border-left: 3px solid #e04848; } .kc.p-high { border-left: 3px solid var(--gold); }

/* ---------- chat / whatsapp ---------- */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr) 280px; height: calc(100vh - 150px); min-height: 520px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.inbox .list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox .list a { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line2); color: var(--ink); text-decoration: none; }
.inbox .list a.on { background: #eef6f1; box-shadow: inset 3px 0 0 var(--g3); }
.inbox .list a:hover { background: var(--ivory); }
.inbox .list .t { display: flex; justify-content: space-between; gap: 6px; font-weight: 500; font-size: .88rem; }
.inbox .list .p { font-size: .8rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox .thread { display: flex; flex-direction: column; min-width: 0; background: #f4efe4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23e4dccb'/%3E%3C/svg%3E"); }
.thread-h { padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.bub { max-width: 74%; padding: 8px 11px 6px; border-radius: 12px; font-size: .88rem; white-space: pre-line; word-break: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.06); position: relative; }
.bub.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.bub.out { background: #d9f6dc; align-self: flex-end; border-top-right-radius: 4px; }
.bub.out.ai { background: #ece6fb; }
.bub.internal { background: #fff6d6; align-self: center; font-size: .8rem; max-width: 86%; border: 1px dashed #e0c46b; }
.bub.pending { background: #fff; border: 2px dashed #8b5cf6; align-self: flex-end; }
.bub .bm { display: block; font-size: .68rem; color: var(--mute); text-align: right; margin-top: 2px; }
.composer { background: #fff; border-top: 1px solid var(--line); padding: 10px 12px; }
.composer textarea { min-height: 54px; }
.inbox .side-info { border-left: 1px solid var(--line); overflow-y: auto; padding: 14px; font-size: .86rem; }
@media (max-width: 1200px) { .inbox { grid-template-columns: 290px minmax(0, 1fr); } .inbox .side-info { display: none; } }
@media (max-width: 760px) { .inbox { grid-template-columns: minmax(0, 1fr); height: auto; } .inbox .list { max-height: 260px; } .inbox .thread { min-height: 480px; } }

.aichat { border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; height: 520px; overflow: hidden; }
.aichat .msgs { background: var(--ivory); }
.aichat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.aichat form input { flex: 1; }
.src { font-size: .72rem; color: var(--mute); margin-top: 4px; }
.typing { display: inline-flex; gap: 3px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: bl 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s } .typing i:nth-child(3) { animation-delay: .3s }
@keyframes bl { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }

/* ---------- charts ---------- */
.chart { width: 100%; height: 190px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bars { display: flex; flex-direction: column; gap: 7px; }
.bars .b { display: grid; grid-template-columns: 120px minmax(0, 1fr) 42px; gap: 8px; align-items: center; font-size: .82rem; }
.bars .b > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.bars .track { height: 10px; background: var(--ivory2); border-radius: 999px; overflow: hidden; }
.bars .track i { display: block; height: 100%; background: var(--g3); border-radius: 999px; }
.bars .b:nth-child(3n+2) .track i { background: var(--gold); } .bars .b:nth-child(3n) .track i { background: var(--accent); }
.funnel .b .track i { background: linear-gradient(90deg, var(--g3), var(--gold)); }

/* ---------- QR ---------- */
.qrbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.qr svg { width: 200px; height: 200px; display: block; }
.qr.lg svg { width: 260px; height: 260px; }
.copybox { display: flex; gap: 6px; }
.copybox input, .copybox textarea { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; background: #fcfaf5; }

/* =================================================================== AUTH / SETUP */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth .art { background: radial-gradient(1200px 600px at 10% 0%, #1F6446 0%, #0E3121 55%, #0a2418 100%); color: #e8f1ec; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .art::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(200,162,74,.13); }
.auth .art h1 { color: #fff; font-size: 2rem; max-width: 460px; }
.auth .art .gold { color: var(--gold2); }
.auth .art ul { list-style: none; padding: 0; margin: 20px 0 0; }
.auth .art li { padding: 6px 0 6px 30px; position: relative; color: #cfe1d7; }
.auth .art li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--g); font-size: .75rem; display: grid; place-items: center; font-weight: 700; }
.auth .panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth .box { width: 100%; max-width: 470px; }
.auth .box.wide { max-width: 640px; }
.logo-line { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; text-decoration: none !important; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gold); color: var(--g); display: grid; place-items: center; font-weight: 800; letter-spacing: -.02em; }
.steps { display: flex; gap: 6px; margin: 0 0 22px; }
.steps i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.steps i.on { background: var(--gold); } .steps i.done { background: var(--g3); }
.otp { letter-spacing: .5em; font-size: 1.5rem; text-align: center; font-weight: 600; }
@media (max-width: 880px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth .art { padding: 28px 22px; } .auth .art h1 { font-size: 1.4rem; } .auth .art ul, .auth .art .foot-art { display: none; } }

.setup-top { background: var(--g); color: #fff; }
.setup-top .in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.setup-top .sp { flex: 1; }
.setup-top a { color: #dfeee6; }
.wiz-steps { background: #fff; border-bottom: 1px solid var(--line); }
.wiz-steps ol { max-width: 1180px; margin: 0 auto; padding: 0 20px; list-style: none; display: flex; overflow-x: auto; counter-reset: s; }
.wiz-steps li { counter-increment: s; }
.wiz-steps a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--mute); font-size: .84rem; white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; }
.wiz-steps a::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .72rem; font-weight: 600; }
.wiz-steps a.done { color: var(--g3); } .wiz-steps a.done::before { content: '✓'; background: var(--g3); color: #fff; border-color: var(--g3); }
.wiz-steps a.on { color: var(--g); border-color: var(--gold); font-weight: 500; }
.setup-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.sec-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.sec-nav a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ink2); font-size: .86rem; text-decoration: none; }
.sec-nav a .L { width: 24px; height: 24px; border-radius: 7px; background: var(--ivory2); display: grid; place-items: center; font-weight: 600; font-size: .75rem; color: var(--g); flex: none; }
.sec-nav a.on { background: #fff; color: var(--g); box-shadow: var(--sh); font-weight: 500; }
.sec-nav a.ok .L { background: var(--g3); color: #fff; }
.sec-nav a:hover { background: #fff; }
.with-nav { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .with-nav { grid-template-columns: minmax(0, 1fr); } .sec-nav { position: static; flex-direction: row; overflow-x: auto; } .sec-nav a { white-space: nowrap; } }
.savebar { position: sticky; bottom: 0; background: rgba(251,248,241,.95); backdrop-filter: blur(6px); border-top: 1px solid var(--line); margin: 18px -20px -18px; padding: 12px 20px; display: flex; gap: 8px; justify-content: flex-end; border-radius: 0 0 var(--r) var(--r); flex-wrap: wrap; }
.rows .rowi { display: grid; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fcfbf8; }
.rows .rowi .f { margin: 0; }
.rows .rowi label { font-size: .74rem; color: var(--mute); }
.rowi.cls { grid-template-columns: 1.2fr .55fr .55fr .6fr 1.3fr 1fr 34px; }
.rowi.fee { grid-template-columns: 1.1fr 1.1fr 1fr .8fr .9fr .6fr 1.2fr 34px; }
.rowi.route { grid-template-columns: 1fr 1.3fr .8fr .8fr .7fr .8fr 34px; }
.rowi.faq { grid-template-columns: 1.2fr 2fr .8fr .5fr 34px; }
.rowi.custom { grid-template-columns: 1fr 2fr .45fr 34px; }
.rowi .rm { align-self: end; background: none; border: 1px solid var(--line); border-radius: 8px; height: 38px; cursor: pointer; color: var(--bad); }
@media (max-width: 980px) { .rowi.cls, .rowi.fee, .rowi.route, .rowi.faq, .rowi.custom { grid-template-columns: 1fr 1fr; } .rowi .rm { grid-column: 1 / -1; } }
.sec-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none !important; }
.sec-card:hover { border-color: var(--gold); box-shadow: var(--sh); }
.sec-card .L { width: 34px; height: 34px; border-radius: 10px; background: var(--ivory2); color: var(--g); display: grid; place-items: center; font-weight: 700; flex: none; }
.sec-card.ok .L { background: var(--g3); color: #fff; }
.sec-card .s { font-size: .76rem; color: var(--mute); }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; background: #fcfbf8; }
.drop.over { border-color: var(--gold); background: #fbf4df; }
.thumb { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.thumb.logo { object-fit: contain; padding: 6px; }
.kb-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; margin-bottom: 10px; }
.kb-item.pending { border-left: 4px solid var(--gold); } .kb-item.rejected { opacity: .6; border-left: 4px solid #94a3b8; } .kb-item.approved { border-left: 4px solid var(--g3); }
.kb-item .c { white-space: pre-line; font-size: .86rem; color: var(--ink2); max-height: 150px; overflow: auto; }
.kb-item details summary { cursor: pointer; font-size: .8rem; color: var(--g3); margin-top: 6px; }
.celebrate { text-align: center; padding: 26px 10px 10px; }
.celebrate .em { font-size: 3rem; }

/* =================================================================== PUBLIC SCHOOL PAGE */
.pub { background: var(--ivory); }
.pub .hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%); color: #fff; position: relative; overflow: hidden; }
.pub .hero.has-cover { background-size: cover; background-position: center; }
.pub .hero.has-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,24,16,.88), rgba(8,24,16,.55)); }
.pub .hero .in { position: relative; max-width: 1140px; margin: 0 auto; padding: 26px 20px 56px; }
.pub .topline { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.pub .topline img { width: 56px; height: 56px; border-radius: 14px; background: #fff; object-fit: contain; padding: 4px; }
.pub .topline .nm { font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.pub .topline .nm small { display: block; font-weight: 400; color: rgba(255,255,255,.75); font-size: .78rem; }
.pub .topline .sp { flex: 1; }
.pub h1.big { color: #fff; font-size: clamp(1.7rem, 4vw, 2.7rem); max-width: 760px; margin: 0 0 12px; }
.pub .lead { font-size: 1.05rem; color: rgba(255,255,255,.88); max-width: 680px; }
.pub .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.pub .facts span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: .35em .8em; border-radius: 999px; font-size: .82rem; }
.pub .announce { background: var(--gold); color: var(--g); text-align: center; padding: 8px 14px; font-weight: 500; font-size: .9rem; }
.pub .wrap { max-width: 1140px; margin: -36px auto 0; padding: 0 20px 60px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .pub .wrap { grid-template-columns: minmax(0, 1fr); } .pub .formcol { order: -1; } }
.pub .formcol { position: sticky; top: 14px; }
.pub .formcard { border-top: 4px solid var(--gold); }
.pub section.card h2 { display: flex; align-items: center; gap: 8px; }
.pub section.card h2 .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--ivory2); display: grid; place-items: center; font-size: .95rem; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.class-grid div { border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; background: #fcfbf8; font-size: .86rem; }
.class-grid b { display: block; color: var(--g); }
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fac { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.fac img { width: 100%; height: 110px; object-fit: cover; display: block; }
.fac div { padding: 8px 10px; font-size: .84rem; }
.fac b { display: block; color: var(--g); font-weight: 500; }
details.faq { border-bottom: 1px solid var(--line2); padding: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 500; color: var(--g); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: '+'; color: var(--gold); font-weight: 700; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 8px 0 0; color: var(--ink2); white-space: pre-line; }
.prewrap { white-space: pre-line; }
.assist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.assist button, .assist a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .8rem; color: var(--ink); cursor: pointer; text-decoration: none !important; text-align: center; }
.assist button:hover, .assist a:hover { border-color: var(--gold); background: #fffbf0; }
.assist .i { font-size: 1.35rem; }
.pub footer.pf { text-align: center; color: var(--mute); font-size: .78rem; padding: 24px 14px 40px; }
.pub footer.pf a { color: var(--ink2); }
.success-box { text-align: center; padding: 10px 4px; }
.success-box .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--okbg); color: var(--ok); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 10px; }
.widget { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: min(380px, calc(100vw - 24px)); background: #fff; border-radius: 18px; box-shadow: var(--sh2); overflow: hidden; display: none; flex-direction: column; max-height: min(620px, calc(100vh - 36px)); }
.widget.open { display: flex; }
.widget .wh { background: var(--brand); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.widget .wh .x { color: #fff; margin-left: auto; }
.widget .msgs { background: var(--ivory); min-height: 260px; }
.widget form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.widget form input { flex: 1; }
.voice-ui { padding: 22px 18px; text-align: center; }
.orb { width: 112px; height: 112px; border-radius: 50%; margin: 6px auto 14px; background: radial-gradient(circle at 35% 30%, var(--gold2), var(--gold) 45%, var(--brand) 100%); box-shadow: 0 0 0 0 rgba(200,162,74,.5); }
.orb.live { animation: pulse 1.8s infinite; } .orb.speaking { animation: pulse .7s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,162,74,.55); } 70% { box-shadow: 0 0 0 22px rgba(200,162,74,0); } 100% { box-shadow: 0 0 0 0 rgba(200,162,74,0); } }
.voice-lines { text-align: left; max-height: 170px; overflow: auto; font-size: .82rem; margin-top: 10px; }
.voice-lines p { margin: 0 0 5px; } .voice-lines .u { color: var(--ink2); } .voice-lines .a { color: var(--g); }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 65; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.fab button, .fab a { border-radius: 999px; box-shadow: var(--sh2); }
.embed-body { background: transparent; }
.embed-body .formcard { box-shadow: none; border: 1px solid var(--line); }

/* =================================================================== MARKETING HOME */
.mk-nav { max-width: 1160px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.mk-nav .sp { flex: 1; }
.mk-hero { background: radial-gradient(900px 520px at 85% 10%, #1F6446 0%, #0E3121 60%); color: #fff; }
.mk-hero .in { max-width: 1160px; margin: 0 auto; padding: 40px 20px 80px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.mk-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.mk-hero h1 em { font-style: normal; color: var(--gold2); }
.mk-hero p.lead { font-size: 1.1rem; color: #cfe1d7; max-width: 560px; }
.mk-hero .tag { display: inline-block; background: rgba(200,162,74,.18); color: var(--gold2); border: 1px solid rgba(200,162,74,.4); border-radius: 999px; padding: .3em .9em; font-size: .82rem; margin-bottom: 16px; }
.mk-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 20px; box-shadow: var(--sh2); }
.mk-sec { max-width: 1160px; margin: 0 auto; padding: 60px 20px; }
.mk-sec h2 { font-size: 1.7rem; text-align: center; }
.mk-sec .sub { text-align: center; color: var(--ink2); max-width: 680px; margin: 0 auto 30px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feat .i { width: 44px; height: 44px; border-radius: 12px; background: var(--ivory2); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 10px; }
.steps-mk { counter-reset: st; }
.steps-mk .feat { position: relative; padding-top: 30px; }
.steps-mk .feat::before { counter-increment: st; content: counter(st); position: absolute; top: -14px; left: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--g); display: grid; place-items: center; font-weight: 700; }
@media (max-width: 880px) { .mk-hero .in { grid-template-columns: minmax(0, 1fr); padding-bottom: 50px; } }
.legal { max-width: 820px; margin: 0 auto; padding: 30px 20px 60px; }
.legal h2 { margin-top: 1.6em; }

/* =================================================================== PRINT */
.print-bar { background: var(--g); color: #fff; padding: 10px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.print-bar .sp { flex: 1; }
.sheet { background: #fff; margin: 20px auto; box-shadow: var(--sh2); }
.poster { width: 210mm; min-height: 297mm; padding: 14mm; display: flex; flex-direction: column; position: relative; overflow: hidden; color: var(--ink); }
.poster.a5 { width: 148mm; min-height: 210mm; padding: 9mm; font-size: 12px; }
.poster.square { width: 180mm; min-height: 180mm; padding: 10mm; }
.poster.story { width: 135mm; min-height: 240mm; padding: 10mm; }
.poster .p-top { background: var(--g); color: #fff; margin: -14mm -14mm 0; padding: 12mm 14mm 16mm; text-align: center; }
.poster.a5 .p-top, .poster.square .p-top, .poster.story .p-top { margin: -10mm -10mm 0; padding: 9mm 10mm 12mm; }
.poster .p-top img { width: 26mm; height: 26mm; background: #fff; border-radius: 6mm; object-fit: contain; padding: 2mm; }
.poster .p-top h1 { color: #fff; font-size: 2.1em; margin: 4mm 0 1mm; }
.poster .p-top .ss { color: var(--gold2); letter-spacing: .25em; text-transform: uppercase; font-size: .9em; }
.poster .p-open { background: var(--gold); color: var(--g); text-align: center; font-weight: 700; font-size: 1.8em; padding: 4mm; margin: 0 -14mm; letter-spacing: .02em; }
.poster.a5 .p-open, .poster.square .p-open, .poster.story .p-open { margin: 0 -10mm; }
.poster .p-mid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; padding: 8mm 0; align-items: center; }
.poster.story .p-mid { grid-template-columns: 1fr; text-align: center; }
.poster .p-qr { text-align: center; }
.poster .p-qr .qr svg { width: 62mm; height: 62mm; }
.poster.a5 .p-qr .qr svg { width: 46mm; height: 46mm; }
.poster .p-qr b { display: block; font-size: 1.3em; color: var(--g); margin-top: 2mm; }
.poster ul { margin: 0; padding-left: 1.1em; } .poster li { margin: 1mm 0; }
.poster .p-foot { border-top: 2px solid var(--gold); padding-top: 4mm; display: flex; justify-content: space-between; gap: 6mm; font-size: .95em; flex-wrap: wrap; }
.poster .p-foot b { color: var(--g); }
.doc { width: 210mm; min-height: 297mm; padding: 14mm 16mm; font-size: 12.5px; }
.doc h1 { font-size: 22px; } .doc h2 { font-size: 15px; border-bottom: 2px solid var(--gold); padding-bottom: 3px; margin-top: 16px; }
.doc table.tbl td, .doc table.tbl th { padding: 5px 7px; }
@media print {
  @page { margin: 0; }
  body { background: #fff; }
  .print-bar, .noprint { display: none !important; }
  .sheet { margin: 0; box-shadow: none; }
  .poster, .doc { page-break-after: always; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.print-list { padding: 10mm; font-size: 11px; }
.print-list table { width: 100%; border-collapse: collapse; }
.print-list th, .print-list td { border: 1px solid #ccc; padding: 4px 6px; text-align: left; vertical-align: top; }
.print-list th { background: #f3eee2; }

/* =================================================================== E-MAIL-LIKE PLAIN / ERROR */
.plain { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.plain .card { max-width: 520px; text-align: center; padding: 34px 28px; }
.plain .code { font-size: 3.4rem; font-weight: 700; color: var(--gold); line-height: 1; }

/* ---- portal extras ---- */
.li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); color: inherit; text-decoration: none; }
.li:last-child { border-bottom: 0; } a.li:hover b { color: var(--g3); }
.li.pad { padding: 12px 16px; } .li.unread { background: #fbf6e8; }
.card.p0 { padding: 0; overflow: hidden; }
.danger-t { color: var(--bad); }
a.alert { display: block; text-decoration: none; }
.progress.warn > i { background: linear-gradient(90deg, #f0b44a, #e08a1e); } .progress.red > i { background: linear-gradient(90deg, #e98a8a, #d23c3c); }
.qr.sm svg { width: 150px; height: 150px; margin: 0 auto; }
.sortlink { color: inherit; text-decoration: none; } .sortlink.on { color: var(--g); font-weight: 600; }
.enq-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.enq-head .av { width: 54px; height: 54px; border-radius: 16px; background: var(--g); color: var(--gold2); display: grid; place-items: center; font-weight: 600; font-size: 1.2rem; flex: 0 0 auto; }
.enq-head h1 { margin: 0; }
.tl-wrap { padding-left: 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.mini-form { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px; margin-top: 10px; }
.mini-form .f { margin-bottom: 10px; }
.wa-mini .bub { max-width: 90%; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.stat-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.stat-line:last-child { border-bottom: 0; }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; height: auto; } .inbox .side-info { border-left: 0; border-top: 1px solid var(--line); } .inbox.has-conv .list { display: none; } }
.ok-t { color: var(--ok); }
.only-mobile { display: none; } @media (max-width: 900px) { .only-mobile { display: inline-flex; } }
.side-info h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); margin: 0 0 6px; }
.theme-green-dot { background: #0E3121; } .theme-blue-dot { background: #1d5fa8; } .theme-maroon-dot { background: #7a1f2b; } .theme-navy-dot { background: #1b2a4a; } .theme-teal-dot { background: #0f6b6b; }
.seg.sm label span { padding: .3em .7em; font-size: .8rem; }
.otp-single { font-size: 1.5rem; letter-spacing: .35em; text-align: center; }
.kb-item.pending { border-left: 3px solid var(--gold); }
