/* (c) 2026 Seva. All rights reserved. Proprietary - copying, cloning or reuse without written permission is prohibited. */
/* Seva — design system */
:root {
  --navy: #1e3582;
  --navy-2: #172a6a;
  --navy-soft: #E8ECF7;
  --orange: #23866E;
  --orange-2: #1C6E5A;
  --orange-soft: #E3F1EC;
  --cream: #F2F5FC;
  --cream-soft: #F7F9FD;
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --surface-2: #F9F8F4;
  --text: #14263A;
  --muted: #65707C;
  --line: #E7E4DD;
  --green: #1E8E5A;
  --green-soft: #E3F5EC;
  --red: #C62828;
  --red-soft: #FCE9E9;
  --blue: #2563EB;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30,53,130, .06), 0 4px 16px rgba(30,53,130, .06);
  --shadow-lg: 0 20px 50px rgba(30,53,130, .18);
  --font: 'Manrope', 'Anek Malayalam', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ml: 'Anek Malayalam', 'Manrope', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.ml { font-family: var(--ml); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }   /* wide content inside a column must not push the page sideways on phones */
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-2[style*="grid-template-columns"] { grid-template-columns: 1fr !important; } }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--navy); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .05s, box-shadow .15s; }
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.orange { background: var(--orange); color: #fff; }
.btn.orange:hover { background: var(--orange-2); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); border-color: #D2D8DE; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.danger:hover { background: #f8d6d6; }
.btn.green { background: var(--green); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn.icon-only { width: 38px; padding: 0; height: 38px; }
.btn.block { width: 100%; }
.btn.lg { height: 50px; font-size: 16px; padding: 0 24px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; color: #3A4654; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; }
.input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(30,53,130, .1); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 44px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #D2D8DE; border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(18px); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 16px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--navy-soft); color: var(--navy); white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.orange { background: var(--orange-soft); color: #9A5B00; }
.badge.grey { background: #EFF1F3; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FAFAF7; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- toast & modal ---------- */
#toasts { position: fixed; z-index: 1000; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 440px; }
.toast { pointer-events: auto; background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; font-size: 14px; animation: toastIn .25s ease; }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

.modal-back { position: fixed; inset: 0; z-index: 900; background: rgba(20,28,37, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .2s ease; }
.modal.wide { max-width: 920px; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; flex: 1; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); }
.x-btn { background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--muted); display: inline-flex; }
.x-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- dropzone ---------- */
.drop { border: 2px dashed #CDD4DB; border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; transition: .15s; background: var(--surface-2); position: relative; }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--orange-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .icon { margin: 0 auto 8px; color: var(--orange); width: 32px; height: 32px; }
.drop strong { display: block; }
.drop-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.drop-preview img { border-radius: 8px; aspect-ratio: 1080/858; object-fit: cover; border: 1px solid var(--line); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; margin: 0 auto 12px; color: #BAC2CB; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(30,53,130, .15); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; }
.btn .spinner { width: 16px; height: 16px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #EEF0F2 25%, #f6f7fa 50%, #EEF0F2 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ======================================================
   LOGIN
   ====================================================== */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; overflow: hidden; color: #fff; padding: 44px 56px 36px; display: flex; flex-direction: column; gap: 32px;
  background: radial-gradient(700px 420px at 100% 0%, rgba(35,134,110,.16), transparent 65%), radial-gradient(900px 600px at -10% 110%, rgba(35,134,110,.20), transparent 60%), linear-gradient(160deg, #1e3582 0%, #18222D 100%); }
/* faint dot grid for texture */
.login-art::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); pointer-events: none; }
.login-art > * { position: relative; }
.login-art .logo-pill { display: inline-flex; align-self: flex-start; }
.login-art .logo-pill img { height: 48px; width: auto; }
.la-main { margin: auto 0; max-width: 580px; }
.la-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8FDCC5; background: rgba(35,134,110,.12); border: 1px solid rgba(35,134,110,.3); padding: 5px 12px; border-radius: 99px; }
.login-art h1 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.15; margin: 18px 0 12px; letter-spacing: -.02em; }
.login-art h1 em { font-style: normal; color: var(--orange); }
.login-art .lead { color: #C9D1DA; font-size: 16px; line-height: 1.6; max-width: 520px; margin: 0; }
.login-art .tagline-ml { font-family: var(--ml); color: #fff; font-size: 18px; margin-top: 14px; opacity: .92; }
.la-features { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.la-features li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.la-features .icon { width: 38px; height: 38px; padding: 9px; flex: none; border-radius: 10px; background: rgba(35,134,110,.14); color: #8FDCC5; }
.la-features b { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.la-features span { display: block; font-size: 12.5px; color: #9DA9B6; margin-top: 1px; }
.la-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #B5C0CB; }
.la-foot span { display: inline-flex; align-items: center; gap: 6px; }
.la-foot .icon { width: 15px; height: 15px; color: #4ADE80; }
@media (max-width: 1150px) { .login-art { padding: 36px 36px 30px; } .la-features li { padding: 10px 12px; gap: 10px; } .la-features span { display: none; } .la-features .icon { width: 34px; height: 34px; padding: 8px; } }
@media (max-height: 760px) and (min-width: 901px) { .la-features li:nth-child(n+5) { display: none; } .login-art h1 { margin-top: 12px; } .la-features { margin-top: 22px; } }

.login-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.login-box { width: 100%; max-width: 400px; }
.login-box .mobile-logo { display: none; height: 46px; width: auto; margin-bottom: 24px; }
.login-box .home-link, .login-art a.logo-pill { display: inline-block; text-decoration: none; cursor: pointer; border-radius: 8px; }
.login-art a.logo-pill { display: inline-flex; }
.login-box .home-link:focus-visible, .login-art a.logo-pill:focus-visible { outline: 2px solid #23866E; outline-offset: 3px; }
.login-box h2 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.02em; }
.login-box .sub { color: var(--muted); margin: 0 0 28px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer; border-radius: 6px; display: inline-flex; }
.pw-toggle:hover { color: var(--text); background: rgba(0,0,0,.05); }
.input-icon .pw-toggle .icon { position: static; transform: none; left: auto; top: auto; color: inherit; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert.error { background: var(--red-soft); color: #9d2323; }
.alert.info { background: var(--navy-soft); color: var(--navy); }
.alert.warn { background: var(--orange-soft); color: #8a4a06; }
.login-help { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.login-help a { font-weight: 600; text-decoration: none; }
/* sign up + learn more */
.or-line { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signup-btn { background: var(--navy); color: #fff; }
.signup-btn:hover { background: #1F7CC0; }
.learn-btn { margin-top: 10px; }
.input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.hint.hint-bad { color: var(--red); font-weight: 600; }
.forgot-link { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.login-box .btn .icon { width: 18px; height: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 0; margin: 0 0 14px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.back-link .icon { transform: rotate(180deg); width: 16px; height: 16px; }
.back-link:hover { color: var(--navy); }
#signupView { max-width: 100%; }
#signupView .sub { margin-bottom: 20px; }
#signupView .field { margin-bottom: 12px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-done { text-align: center; padding: 10px 0; }
.signup-done h3 { margin: 12px 0 8px; font-size: 22px; }
.signup-done p { margin: 0 0 10px; }
.sd-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto; }
.sd-icon .icon { width: 32px; height: 32px; }
.login-form-side:has(#signupView:not(.hidden)) .login-box { max-width: 480px; }
@media (max-width: 480px) { #signupView .grid-2 { grid-template-columns: 1fr; gap: 0; } }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-box .mobile-logo { display: block; }
}

/* ======================================================
   APP SHELL (admin + customer)
   ====================================================== */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #CBD3DC; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px; }
.sidebar .brand { padding: 6px 10px 14px; margin: 0 4px 18px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; }
.sidebar .brand img { height: 34px; width: auto; }
a.brand { text-decoration: none; cursor: pointer; }
a.brand:focus-visible { outline: 2px solid var(--orange-2, #8FDCC5); outline-offset: 2px; border-radius: 6px; }
.sidebar .brand small { font-size: 10.5px; font-weight: 700; color: var(--orange-2); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8593A3; padding: 14px 12px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #CBD3DC; text-decoration: none; font-weight: 500; font-size: 14.5px; transition: .12s; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: rgba(35,134,110, .16); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.nav a.active .icon { color: var(--orange); }
.nav a .count { margin-left: auto; font-size: 11.5px; background: rgba(255,255,255,.12); padding: 1px 8px; border-radius: 99px; }
.nav a .count.reg-count { background: var(--orange); color: var(--navy); font-weight: 800; }
.reg-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.reg-card:last-child { border-bottom: 0; }
.reg-info { flex: 1; min-width: 0; }
.reg-info dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 8px 0 0; font-size: 13.5px; }
.reg-info dt { color: var(--muted); }
.reg-info dd { margin: 0; overflow-wrap: anywhere; }
.reg-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }
@media (max-width: 600px) { .reg-card { flex-direction: column; padding: 14px; } .reg-actions { flex-direction: row; flex-wrap: wrap; width: 100%; } .reg-actions .btn { flex: 1; justify-content: center; } }
.sidebar-foot { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--orange); color: var(--navy); font-weight: 800; display: grid; place-items: center; flex: none; font-size: 15px; }
.sidebar-foot .who { min-width: 0; flex: 1; }
.sidebar-foot .me-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; text-decoration: none; border-radius: 8px; margin: -4px; padding: 4px; }
.sidebar-foot .me-link:hover { background: rgba(255,255,255,.07); }
.sidebar-foot .me-link:focus-visible { outline: 2px solid #8FDCC5; outline-offset: 1px; }
.ml-acc { display: grid; gap: 12px; }
.ml-acc .check { align-items: flex-start; gap: 10px; }
.ml-acc .check input { margin-top: 3px; flex: none; }
.signout-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.signout-card .so-text { flex: 1; min-width: 200px; }
.sidebar-foot .who b { display: block; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .who span { font-size: 12px; color: #93A0AE; }
.sidebar-foot button { background: none; border: 0; color: #CBD3DC; cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; }
.sidebar-foot button:hover { background: rgba(255,255,255,.1); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(244, 246, 251, .88); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 12px; padding: 16px 32px; border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { font-size: 22px; margin: 0; letter-spacing: -.015em; }
.topbar .crumb { color: var(--muted); font-size: 13px; }
.menu-btn { display: none; }
.content { padding: 8px 32px 48px; max-width: 1400px; width: 100%; }
/* Accounts → Staff: on phones each staff member becomes a card (no sideways scrolling) */
@media (max-width: 640px) {
  .table-wrap:has(.staff-table) { overflow: visible; }
  .staff-table, .staff-table tbody { display: block; width: 100%; min-width: 0; }
  .staff-table thead { display: none; }
  .staff-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .staff-table td.nowrap { white-space: normal; overflow-wrap: anywhere; }
  .staff-table tr:last-child { border-bottom: 0; }
  .staff-table td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; min-width: 0; }
  .staff-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
  .staff-table td.st-name { grid-column: 1 / -1; font-size: 15px; }
  .staff-table td.st-name .muted { display: inline; margin-left: 6px; }
  .staff-table td.st-act { grid-column: 1 / -1; margin-top: 6px; }
  .staff-table td.st-act .actions { justify-content: flex-start; }
}
/* big monitors: use the full width (lines up with the top bar, no empty band on the right); phones/tablets/laptops unchanged */
@media (min-width: 1500px) { .content { max-width: none; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.stat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 10px 0 0; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--orange), #8FDCC5); min-height: 3px; }
.bars .b span { font-size: 10.5px; color: var(--muted); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.list-item:last-child { border-bottom: 0; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input-icon { flex: 1; min-width: 220px; max-width: 380px; }
.thumb { width: 72px; aspect-ratio: 1080/858; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.thumb.brand { width: 160px; aspect-ratio: 1080/222; }

@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 200; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .shell.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 150; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 8px 16px 40px; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat .num { font-size: 21px; }
}

/* ======================================================
   CUSTOMER — poster gallery
   ====================================================== */
.hero { background: linear-gradient(120deg, var(--navy) 0%, #1F7CC0 100%); color: #fff; border-radius: 18px; padding: 24px 28px; display: flex; gap: 20px; align-items: center; position: relative; overflow: hidden; margin-bottom: 18px; }
.hero::after { content: ''; position: absolute; right: 30%; bottom: -120px; width: 180px; height: 180px; border: 20px solid rgba(35,134,110,.22); pointer-events: none; }
.hero h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.hero p { margin: 0; color: #C9D1DA; }
.hero .hero-stats { display: flex; gap: 26px; margin-left: auto; position: relative; z-index: 1; }
.hero .hero-stats div b { display: block; font-size: 24px; font-weight: 800; }
.hero .hero-stats div span { font-size: 12.5px; color: #AFBAC6; }
@media (max-width: 720px) { .hero { flex-direction: column; align-items: flex-start; padding: 20px; } .hero .hero-stats { margin-left: 0; } }

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--orange-soft); border: 1px solid #F3D9A8; color: #6d3d06; padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; font-size: 14.5px; }
.notice .icon { color: var(--orange-2); margin-top: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 10px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 14px; color: #3A4654; transition: .12s; }
.chip:hover { border-color: #C8D0D8; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .n { font-size: 11.5px; background: var(--surface-2); color: var(--muted); padding: 1px 7px; border-radius: 99px; }
.chip.active .n { background: rgba(255,255,255,.18); color: #fff; }

.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(30,53,130,.13); }
.pcard .pimg { position: relative; aspect-ratio: 1; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; } /* contain: portrait posters (4:5, 3:4, 9:16) show whole */
.pcard .pimg img.loaded { opacity: 1; }
.pcard .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.pcard .tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.95); color: var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.pcard .tag.new { background: var(--orange); color: #fff; }
.pcard .tag.done { background: var(--green); color: #fff; }
.pcard .tag.star { color: var(--orange); font-size: 13px; line-height: 1; padding: 3px 6px; display: inline-flex; align-items: center; }
.pcard .pbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .ptitle { font-weight: 700; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .pmeta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.pcard .pactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pcard .pactions .btn { flex: 1; min-width: 0; }
/* Download always gets its own full-width row, so it sits in the same place on every card */
.pcard .pactions .btn[data-dl] { flex: 1 0 100%; order: 1; }
.pcard .pactions .btn.icon-only { flex: 0 0 auto; margin-left: auto; }
.pcard .pactions .btn.pdetails { color: var(--navy); border-color: #CDD5DD; }
/* WhatsApp share sits on its own row under Download */
.pcard .pactions .btn[data-wa] { flex: 1 0 100%; order: 2; }
/* profile: WhatsApp share content */
.share-nums { display: grid; gap: 6px; }
.share-nums .row { gap: 6px; }
.share-tpl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.share-tpl label, .share-extras label { border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px; background: var(--surface); }
.share-tpl label:has(input:checked), .share-extras label:has(input:checked) { border-color: var(--orange); background: #E3F1EC; }
.share-extras { display: grid; gap: 6px; }
.share-preview { white-space: pre-wrap; font-size: 13px; line-height: 1.5; background: #E7F7EE; border: 1px solid #c4e9d3; border-radius: 12px; padding: 12px 14px; max-height: 460px; overflow: auto; word-break: break-word; color: #13301f; }
@media (max-width: 560px) { .share-tpl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.viewer .vbtns { display: flex; gap: 10px; }
.viewer .vbtns .btn { min-width: 0; padding-left: 12px; padding-right: 12px; }
.viewer .vbtns .btn.orange { flex: 1.6; }
.viewer .vbtns .btn.ghost { flex: 1; }
@media (max-width: 560px) {
  .chips { gap: 6px; }
  .chip { height: 30px; padding: 0 9px; font-size: 12px; gap: 5px; }
  .chip .n { font-size: 10.5px; padding: 0 5px; }
  .pcard .pactions { gap: 6px; }
  .pcard .pactions .btn .icon { display: none; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard .pbody { padding: 10px; }
  .pcard .tags { top: 6px; left: 6px; gap: 4px; flex-wrap: wrap; right: 6px; }
  .pcard .tag { font-size: 9.5px; padding: 2px 7px; }
  .pcard .tag:not(.new):not(.done):not(.star) { display: none; }
  .pcard .tag.star { font-size: 11px; padding: 2px 5px; }
  .pcard .pmeta { flex-wrap: wrap; gap: 4px 8px; font-size: 11.5px; }
  .hero::after { display: none; }
  .pcard .ptitle { font-size: 13px; }
  .pcard .pactions .btn.ghost.icon-only { display: none; }
  .pcard .pactions .btn { height: 36px; font-size: 13px; padding: 0 8px; }
}

.viewer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; }
.viewer .vimg { background: #141C25; display: flex; align-items: center; justify-content: center; padding: 18px; border-radius: 18px 0 0 18px; }
.viewer .vimg img { border-radius: 8px; max-height: calc(100vh - 120px); width: auto; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.viewer .vinfo { padding: 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: calc(100vh - 32px); }
.viewer h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.viewer .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.viewer .kv dt { color: var(--muted); }
.viewer .kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.fmt { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fmt button { border: 0; background: var(--surface); padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.fmt button.on { background: var(--navy); color: #fff; }
/* poster viewer: download size picker (1:1, 4:5, 3:4, 9:16) */
.vsize { display: flex; flex-direction: column; gap: 6px; }
.size-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.size-pick button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink, #14263A); font: inherit; min-width: 0; }
.size-pick button b { font-size: 14px; }
.size-pick button small { font-size: 10.5px; color: var(--muted); }
.size-pick button i { font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.size-pick button.on { border-color: var(--orange); background: #E3F1EC; box-shadow: 0 0 0 1px var(--orange) inset; }
.size-pick button.on small, .size-pick button.on i { color: #9C2F17; }
@media (max-width: 760px) {
  .viewer { grid-template-columns: 1fr; }
  .viewer .vimg { border-radius: 18px 18px 0 0; padding: 10px; }
  .viewer .vinfo { max-height: none; }
  .modal.viewer-modal { overflow-y: auto; }
}

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.svc { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.svc h4 { margin: 0; font-size: 15.5px; }
.svc .ml { color: var(--muted); font-size: 13.5px; }
.svc p { margin: 0; font-size: 13.5px; color: #4D5866; }
.svc .row { margin-top: auto; padding-top: 6px; }

.brand-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: repeating-conic-gradient(#EFF1F3 0 25%, #fff 0 50%) 50% / 16px 16px; }
.brand-preview img { width: 100%; }
.compose-preview { max-width: 420px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- video ---------- */
.progress { height: 8px; border-radius: 99px; background: var(--navy-soft); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #8FDCC5); border-radius: 99px; transition: width .3s; }
.thumb.vthumb { width: 46px; aspect-ratio: 9/16; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.pcard .pimg.v916 { aspect-ratio: 9/16; }
.pcard .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(18,24,32, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; display: flex; gap: 4px; align-items: center; }
.pcard .playbtn { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: .92; transition: transform .15s; pointer-events: none; }
.pcard:hover .playbtn { transform: scale(1.08); }
.pcard .playbtn .icon { fill: currentColor; margin-left: 3px; }
.vplayer { position: relative; display: inline-block; line-height: 0; max-height: calc(100vh - 120px); }
.vplayer video { max-height: calc(100vh - 120px); max-width: 100%; border-radius: 8px; background: #000; display: block; }
.vplayer .ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; border-radius: 8px; }
.vplayer .ov-hint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(18,24,32,.7); color: #fff; font-size: 11px; line-height: 1.4; padding: 3px 10px; border-radius: 99px; white-space: nowrap; pointer-events: none; }
.render-box { padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; gap: 4px; margin-bottom: 14px; }
.seg a { padding: 7px 16px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.seg a.on { background: var(--navy); color: #fff; }
@media (max-width: 560px) { .vgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .pcard .playbtn { width: 42px; height: 42px; } }

.size-guide {display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); font-size: 12px; font-weight: 700; max-width: 220px; }
.size-guide div { display: grid; place-items: center; color: #fff; }
.size-guide .a { aspect-ratio: 1080/858; background: linear-gradient(135deg, #1F7CC0, #1e3582); }
.size-guide .b { aspect-ratio: 1080/222; background: var(--orange); color: var(--navy); }

/* ======================================================
   CUSTOMER — shell extras (search, bell, bottom nav)
   ====================================================== */
.ellipsis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer .nav { overflow-y: auto; flex: 1; margin: 0 -6px 12px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.customer .nav a { padding: 9px 12px; font-size: 14px; }
.customer .nav a[data-n]::after { content: attr(data-n); margin-left: auto; font-size: 11px; background: rgba(255,255,255,.1); padding: 0 7px; border-radius: 99px; }
.tb-title { min-width: 0; }
.tb-title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-search { position: relative; flex: 1; max-width: 420px; margin-left: 18px; }
.tb-search > .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.tb-search .input { padding-left: 40px; height: 42px; border-radius: 99px; background: var(--surface); }
.tb-search-btn { display: none; }
.tb-bell { position: relative; }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.tb-me { text-decoration: none; }
.tb-me .avatar { width: 38px; height: 38px; border-radius: 50%; }
.bottom-nav { display: none; }
.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice-item { padding: 12px 14px; border-radius: 12px; background: var(--orange-soft); }
.notice-item p { margin: 0 0 4px; }
.hide-sm { display: inline; }
/* phones: page buttons (Export, Add …) move to their own row under the title so the title never gets squeezed */
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  #pageActions:has(> *) { order: 10; flex: 1 0 100%; gap: 8px; flex-wrap: wrap; }
  #pageActions > .btn { height: 38px; }
}

@media (max-width: 860px) {
  .tb-search { display: none; }
  .tb-search-btn { display: inline-flex; }
  .search-open .tb-search { display: block; position: absolute; left: 12px; right: 12px; top: 10px; margin: 0; max-width: none; z-index: 5; }
  .search-open .tb-search .input { box-shadow: var(--shadow-lg); height: 46px; }
  .topbar { gap: 6px; }
  .topbar h1 { font-size: 18px; }
  .topbar .crumb { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .customer .topbar .menu-btn { display: none; }
  .tb-me .avatar { width: 34px; height: 34px; font-size: 13px; }
  .tb-title { flex: 1; }
  .customer .content { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(30,53,130,.07); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px; }
  .bottom-nav a .icon { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--navy); }
  .bottom-nav a.active .icon { color: var(--orange-2); }
  .hide-sm { display: none; }
}

/* ======================================================
   CUSTOMER — dashboard
   ====================================================== */
.dash-hero { position: relative; overflow: hidden; display: flex; gap: 20px; align-items: center; background: linear-gradient(120deg, var(--navy) 0%, #1F7CC0 70%, #1F7CC0 100%); color: #fff; border-radius: 20px; padding: 26px 28px; margin-bottom: 16px; }
.dash-hero::before { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(35,134,110,.35), transparent 70%); pointer-events: none; }
.dh-text { flex: 1; min-width: 0; position: relative; }
.dash-hero h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.015em; }
.dash-hero p { margin: 0; color: #C9D1DA; }
.btn.glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
.btn.glass:hover { background: rgba(255,255,255,.2); }
.pill-n { background: var(--navy); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.dh-plan { position: relative; flex: none; width: 130px; text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 14px 10px; }
.dh-plan span { display: block; font-size: 12px; color: #C9D1DA; font-weight: 600; }
.dh-plan b { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; }
.dh-plan small { color: #C9D1DA; }
.dh-plan a { display: block; margin-top: 6px; color: var(--orange); font-weight: 700; font-size: 13px; text-decoration: none; }
.dh-plan.warn { border-color: var(--orange); }
.dh-plan.bad { background: rgba(210,59,59,.25); border-color: #f08a8a; }

.ticker { display: flex; align-items: center; gap: 12px; background: #111827; color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; overflow: hidden; }
.ticker > .icon { color: var(--orange); flex: none; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 22px; white-space: nowrap; padding-left: 100%; animation: tick 28s linear infinite; font-weight: 600; font-size: 14px; }
.ticker-move i { color: var(--orange); font-style: normal; }
.ticker-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(35,134,110,.7); text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 6px; }
.ticker-link .icon { color: var(--orange); }
.ticker-link:hover { color: var(--orange); }
.notice-a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.notice-a .icon { vertical-align: -2px; }
.notice-form { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: center; }
@media (max-width: 760px) { .notice-form { grid-template-columns: 1fr; } }
.notice-link { display: block; color: var(--blue, #2563EB); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-link .icon { vertical-align: -3px; margin-right: 4px; }
@media (max-width: 600px) {
  .list-item { padding: 12px 14px; gap: 10px; }
  .card-head { flex-wrap: wrap; row-gap: 8px; }
  .card-head h3 { min-width: 0; overflow-wrap: anywhere; }
}
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; padding-left: 0; white-space: normal; } }

a.dash-stat { text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
a.dash-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30,53,130,.1); }

.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.sec-head h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.sec-head a { text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.sec-head a .icon { width: 15px; height: 15px; }

.group-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.group-btn { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 10px 44px 10px 16px; border-radius: 12px; background: linear-gradient(135deg, #1D4ED8, #2563EB); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.3; box-shadow: 0 4px 12px rgba(37,99,235,.22); transition: transform .12s, box-shadow .12s; }
.group-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,.3); }
.group-btn small { font-weight: 500; font-size: 12px; opacity: .85; }
.group-btn em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; background: rgba(255,255,255,.2); padding: 1px 8px; border-radius: 99px; }
.group-btns.compact { margin-bottom: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.group-btns.compact .group-btn { min-height: 48px; background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.group-btns.compact .group-btn em { background: var(--navy-soft); }
.group-btns.compact .group-btn.on { background: linear-gradient(135deg, #1D4ED8, #2563EB); color: #fff; border-color: transparent; }
.group-btns.compact .group-btn.on em { background: rgba(255,255,255,.2); }
.group-title { font-size: 18px; margin: 4px 0 14px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--c); }
.tile-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.tile b { font-size: 14px; line-height: 1.3; }
.tile small { color: var(--muted); font-size: 12px; }
.tile em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); }

.dash-posters { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.dash-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 26px; align-items: start; }
.linkrow { cursor: pointer; text-decoration: none; color: inherit; transition: background .1s; }
.linkrow:hover { background: var(--surface-2); }
.lr-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.inv-no { font-weight: 800; font-size: 13px; color: var(--muted); min-width: 38px; }
.empty.small { padding: 24px 16px; }
.empty .btn .icon { width: 18px; height: 18px; margin: 0; color: inherit; }

@media (max-width: 1000px) { .dash-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .dash-hero { padding: 20px; flex-direction: column; align-items: stretch; }
  .dash-hero h2 { font-size: 20px; }
  .dh-plan { width: auto; display: flex; align-items: baseline; gap: 8px; text-align: left; padding: 10px 14px; }
  .dh-plan b { font-size: 22px; }
  .dh-plan a { margin: 0 0 0 auto; }
  .group-btns { grid-template-columns: 1fr 1fr; gap: 8px; }
  .group-btn { font-size: 13px; padding: 10px 34px 10px 12px; min-height: 54px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { padding: 12px 8px; align-items: center; text-align: center; }
  .tile-ic { margin: 0 0 6px; }
  .tile b { font-size: 12.5px; }
  .tile small, .tile em { display: none; }
  .dash-posters { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat .lbl { font-size: 12px; }
}

/* ======================================================
   CUSTOMER — page items (services, forms, documents…)
   ====================================================== */
.view-toggle { margin: 0; }
.view-toggle a { padding: 7px 10px; }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.icard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.icard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,53,130,.12); }
.iimg { position: relative; aspect-ratio: 4/5; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.iimg > img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; background: #fff; }
.iimg > img.loaded { opacity: 1; }
.iimg .tag { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--orange); color: #fff; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; text-align: center; color: var(--c); background: #FEF8EA; }
.ph .icon.lg { width: 40px; height: 40px; }
.ph-title { color: var(--text); font-weight: 700; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; overflow-wrap: break-word; }
.ph-title.ml { font-size: 17px; line-height: 1.45; -webkit-line-clamp: 3; padding-top: 2px; }
.ph-sub { margin-top: -6px; color: var(--muted); font-weight: 600; font-size: 12px; line-height: 1.3; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .ph { gap: 8px; padding: 12px; } .ph-title.ml { font-size: 14.5px; } .ph-sub { font-size: 11px; margin-top: -4px; } }
.ext { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; flex: none; }
.ph .ext { position: absolute; right: 10px; bottom: 10px; }
.ibody { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ititle { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.isub { color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
/* buttons share a row when they fit; otherwise each takes a full row (e.g. "Download" + "Details" on a narrow card) */
.iactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.iactions .btn { flex: 1 0 auto; padding: 0 10px; justify-content: center; white-space: nowrap; }
.icon-only.btn.sm { width: 34px; padding: 0; flex: none; }

.idetail.two { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.idetail-img { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; position: sticky; top: 0; }
.prose { white-space: pre-line; line-height: 1.65; color: #2b3552; }
.dh { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 14px; color: var(--navy); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.checklist li .icon { color: var(--green); flex: none; margin-top: 2px; }
.link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mini { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; font-weight: 600; }
.mini img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mini.v img { aspect-ratio: 9/16; }
.mini span { display: block; padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 720px) {
  .idetail.two { grid-template-columns: 1fr; }
  .idetail-img { position: static; max-width: 240px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .igrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ibody { padding: 10px; }
  .ititle { font-size: 13px; }
  .iactions { flex-direction: column; }
  .iactions .btn { height: 32px; font-size: 12.5px; }
  .mini-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ======================================================
   CUSTOMER — invoices
   ====================================================== */
.inv-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.inv-filters > .input { width: auto; flex: 1; min-width: 130px; }
.inv-filters .chip { height: 32px; font-size: 13px; }
.inv-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1180px) { .inv-summary { grid-template-columns: repeat(3, 1fr); } }
.inv-lines { container-type: inline-size; }
@container (max-width: 700px) {
  .inv-lines .inv-line { grid-template-columns: 58px 1fr 1fr 32px; gap: 6px; }
  .inv-lines .inv-line .l-desc { grid-column: 1 / -1; }
  .inv-lines .inv-line.head { display: none; }
  .inv-lines .inv-line:not(.head) { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .inv-lines .inv-line .l-amt { grid-column: 1 / -1; grid-row: 3; text-align: right; font-size: 13px; color: var(--muted); }
  .inv-lines .inv-line .l-del { grid-column: 4; grid-row: 2; align-self: end; margin-bottom: 6px; }
  .inv-lines .inv-line .lf span { display: block; }
  .inv-lines .inv-line .l-amt::before { content: "Amount: "; font-weight: 500; }
}
.inv-summary > div.hl { border-color: #bfe3cf; background: var(--green-soft); }
.inv-summary > div.hl b { color: var(--green); }
.inv-date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.inv-date .input { width: auto; }
.nowrap { white-space: nowrap; }
.inv-summary > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.inv-summary span { display: block; font-size: 12.5px; color: var(--muted); }
.inv-summary b { font-size: 20px; font-weight: 800; }
.inv-table tbody tr { cursor: pointer; }
.inv-lines { padding: 10px 20px 0; }
.inv-line { display: grid; grid-template-columns: minmax(160px, 1fr) 64px 120px 120px 90px 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.inv-line.head i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
.inv-line .l-fee::placeholder { font-size: 13px; }
.inv-line .lf { display: block; min-width: 0; }
.inv-line .lf span { display: none; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.inv-line .lf span i { font-style: normal; font-weight: 500; }
.inv-line.head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.inv-line .l-amt { text-align: right; }
.inv-totals .row { padding: 6px 0; }
.inv-totals .grand { border-top: 1px dashed var(--line); margin: 6px 0 14px; padding-top: 12px; font-size: 20px; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.inv-actions .seg { margin: 0; }

.invoice-paper { background: #fff; color: #111; max-width: 800px; margin: 0 auto; padding: 36px 40px; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 14px; }
.ip-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--navy); padding-bottom: 16px; margin-bottom: 16px; }
.ip-head h2 { margin: 0 0 4px; font-size: 22px; color: var(--navy); }
.ip-muted { color: #555; font-size: 13px; }
.ip-meta { text-align: right; }
.ip-title { font-size: 22px; font-weight: 800; letter-spacing: .12em; color: var(--orange-2); }
.ip-bill { display: flex; flex-direction: column; margin-bottom: 16px; }
.ip-table { width: 100%; border-collapse: collapse; }
.ip-table th { background: var(--navy-soft); text-align: left; font-size: 12.5px; padding: 8px 10px; }
.ip-table td { padding: 9px 10px; border-bottom: 1px solid #eee; }
.ip-table .r { text-align: right; }
.ip-totals { margin: 14px 0 0 auto; width: 260px; }
.ip-totals > div { display: flex; justify-content: space-between; padding: 4px 0; }
.ip-totals .grand { border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 8px; font-size: 18px; }
.ip-note { margin: 16px 0 0; padding: 10px 12px; background: #f7f7f7; border-radius: 8px; }
.ip-foot { text-align: center; margin-top: 20px; padding-top: 10px; border-top: 1px dashed #ccc; color: #444; font-size: 12.5px; }
.ip-foot small { color: #999; font-size: 11px; }
.ip-terms { margin-top: 6px; font-size: 10px; line-height: 1.45; color: #777; font-style: normal; font-family: inherit; }
.ip-terms b { color: #555; }
.invoice-paper.thermal .ip-terms { font-size: 9.5px; color: #333; }
.invoice-paper.thermal { max-width: 320px; padding: 16px 14px; font-size: 12.5px; font-family: 'Courier New', monospace; }
.invoice-paper.thermal .ip-head { flex-direction: column; text-align: center; gap: 6px; border-bottom: 1px dashed #000; }
.invoice-paper.thermal .ip-head h2 { font-size: 16px; color: #000; }
.invoice-paper.thermal .ip-meta { text-align: center; }
.invoice-paper.thermal .ip-title { font-size: 14px; color: #000; }
.invoice-paper.thermal .ip-table th { background: none; border-bottom: 1px dashed #000; padding: 4px 2px; }
.invoice-paper.thermal .ip-table td { padding: 4px 2px; border-bottom: 0; }
.invoice-paper.thermal .ip-table .c-no { display: none; }
.invoice-paper.thermal .ip-table th { font-size: 10.5px; white-space: normal; line-height: 1.15; vertical-align: bottom; }
.invoice-paper.thermal .ip-table td { font-size: 11.5px; }
.ip-status { justify-content: flex-end !important; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--green); }
.ip-status.due { color: var(--red); }
.invoice-paper.thermal .ip-totals { width: 100%; }
.invoice-paper.thermal .ip-totals .grand { border-top: 1px dashed #000; }

@media (max-width: 720px) {
  .inv-summary b { font-size: 16px; }
  .inv-summary > div { padding: 10px 12px; }
  .inv-lines { padding: 10px 12px 0; }
  .inv-summary { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .inv-summary > div:first-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
  .inv-filters .input-icon { flex-basis: 100%; }
  .inv-date { flex: 1; }
  .inv-date .input { flex: 1; min-width: 0; }

  .inv-table th:nth-child(4), .inv-table td:nth-child(4), .inv-table th:nth-child(2), .inv-table td:nth-child(2) { display: none; }
  .invoice-paper { padding: 20px 14px; overflow-x: auto; }
  .ip-table th, .ip-table td { padding: 7px 4px; font-size: 12.5px; }
  .ip-table th { font-size: 11px; }
  .ip-table .c-no { display: none; }
  .ip-totals { width: 100%; }
  .ip-head { flex-direction: column; }
  .ip-meta { text-align: left; }
}

@media print {
  body.customer { background: #fff; }
  .customer .sidebar, .customer .topbar, .customer .bottom-nav, .no-print, .toast-wrap, #toasts { display: none !important; }
  .customer .shell { display: block; }
  .customer .content { padding: 0 !important; max-width: none; }
  .invoice-paper { box-shadow: none; border: 0; border-radius: 0; max-width: none; padding: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-thermal .invoice-paper { width: 72mm; page: receipt; }
  @page receipt { size: 80mm auto; margin: 3mm 4mm; }
  @page { margin: 12mm; }
}

/* ======================================================
   ADMIN — pages & items managers
   ====================================================== */
.sidebar .nav { overflow-y: auto; flex: 1; margin: 0 -6px 12px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.page-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.page-row:last-child { border-bottom: 0; }
.page-row.off { opacity: .55; }
.page-row .reorder { display: flex; flex-direction: column; }
.page-row .reorder .x-btn { padding: 2px; }
.page-row .reorder .x-btn:disabled { opacity: .25; cursor: default; }
.pr-main { flex: 1; min-width: 0; }
.page-row .switch { margin-bottom: 12px; }
.switch em { position: absolute; top: 100%; left: -6px; right: -6px; text-align: center; font-size: 10.5px; font-style: normal; color: var(--muted); margin-top: 2px; }
.page-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.icon-pick button, .color-pick button { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.icon-pick button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.color-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.color-pick button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.color-pick button.on { box-shadow: 0 0 0 2px var(--orange); }
.color-pick input[type=color] { width: 40px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.grp-row { display: grid; grid-template-columns: 1.2fr 1fr auto auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
#gadd .input { flex: 1; }
.link-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; margin-bottom: 8px; }
.it-thumb { width: 44px; height: 44px; max-width: none; flex: none; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.it-thumb.lg { width: 64px; height: 80px; }
.items-table td { vertical-align: middle; }
.items-table td:nth-child(2) { min-width: 200px; }
.star { background: none; border: 0; font-size: 20px; line-height: 1; color: #CBD2E1; cursor: pointer; padding: 4px; }
.star.on { color: var(--orange); }
@media (max-width: 720px) {
  .page-row { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .pr-main { flex-basis: calc(100% - 110px); }
  .page-row .actions { width: 100%; justify-content: flex-start; }
  .grp-row { grid-template-columns: 1fr auto auto; }
  .grp-row .g-ml, .grp-row > span { display: none; }
  .link-row { grid-template-columns: 1fr auto; }
  .link-row .l-label { grid-column: 1 / -1; }
  #gadd { flex-wrap: wrap; }
}

/* ======================================================
   CENTRE TOOLS — reminders, CV maker, certificate, customers, reports
   ====================================================== */
.badge.blue { background: #E6EEFF; color: var(--blue); }
.badge .icon { width: 13px; height: 13px; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* profile photo editor */
.avatar-edit { display: flex; gap: 18px; align-items: center; }
.avatar-big { width: 96px; height: 96px; border-radius: 18px; flex: none; overflow: hidden; background: var(--orange); color: var(--navy); font-weight: 800; font-size: 32px; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(20, 37, 74, .12); }
.avatar-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-ctl { min-width: 0; flex: 1; }
.avatar-ctl .check { align-items: flex-start; line-height: 1.35; }
@media (max-width: 480px) { .avatar-edit { gap: 14px; align-items: flex-start; } .avatar-big { width: 68px; height: 68px; font-size: 24px; border-radius: 14px; } }
/* profile photo on invoices */
.ip-head { align-items: flex-start; }
.ip-photo { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; border: 1px solid #e3e7ef; }
.ip-brand { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 0; }
.ip-from { flex: 1; min-width: 0; }
.invoice-paper.thermal .ip-brand { flex-direction: column; align-items: center; gap: 6px; }
.invoice-paper.thermal .ip-photo { width: 56px; height: 56px; filter: grayscale(1); }
@media (max-width: 720px) { .ip-photo { width: 52px; height: 52px; border-radius: 10px; } .ip-brand { gap: 10px; } }
.btn.wa { color: var(--green); }
.inv-tabs { margin-bottom: 14px; max-width: 100%; overflow-x: auto; }

/* reminders */
.rem-quick { display: flex; gap: 10px; margin-bottom: 14px; }
.rem-bar { gap: 10px; margin-bottom: 4px; align-items: flex-start; }
.rem-bar .seg { flex-wrap: wrap; }
.seg a em { font-style: normal; font-size: 11.5px; background: var(--surface-2); color: var(--muted); padding: 1px 7px; border-radius: 99px; }
.seg a em.red { background: var(--red-soft); color: var(--red); }
.seg a.on em { background: rgba(255,255,255,.2); color: #fff; }
.rem-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rem-row:last-child { border-bottom: 0; }
.rem-row.high { box-shadow: inset 3px 0 0 var(--orange); }
.rem-check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C8D0D8; background: var(--surface); display: grid; place-items: center; cursor: pointer; color: transparent; margin-top: 1px; transition: .12s; }
.rem-check:hover { border-color: var(--green); color: var(--green); }
.rem-check .icon { width: 14px; height: 14px; }
.rem-row.done .rem-check { background: var(--green); border-color: var(--green); color: #fff; }
.rem-row.done .rem-title { text-decoration: line-through; color: var(--muted); }
.rem-main { flex: 1; min-width: 0; }
.rem-title { font-weight: 700; font-size: 15px; display: flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.rem-star { color: var(--orange); display: inline-flex; }
.rem-star .icon { fill: currentColor; }
.rem-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; color: #3A4654; align-items: center; }
.rem-meta > span:not(.badge) { display: inline-flex; gap: 5px; align-items: center; }
.rem-meta > span:not(.badge) .icon { width: 14px; height: 14px; color: var(--muted); }
.rem-note { margin-top: 6px; font-size: 13px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.rem-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.dash-rem { margin-top: 22px; }
.dash-rem .card-head .badge { margin-left: 4px; }
.bell-rem { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--orange-soft); border-radius: 12px; margin-bottom: 14px; text-decoration: none; color: var(--navy); font-size: 13.5px; }
.bell-rem b { display: flex; gap: 6px; align-items: center; }
.bell-rem em { font-style: normal; color: #9A5B00; font-weight: 600; }
.bell-rem small { color: #9A5B00; font-weight: 700; margin-top: 4px; }
@media (max-width: 720px) {
  .rem-row { flex-wrap: wrap; padding: 12px 14px; }
  .rem-main { flex-basis: calc(100% - 40px); }
  .rem-actions { width: 100%; padding-left: 38px; justify-content: flex-start; }
  .rem-bar .input-icon { width: 100%; }
}

/* customers + reports */
.cust-summary { grid-template-columns: repeat(4, 1fr); }
.cust-table tbody tr td { vertical-align: middle; }
.cust-table .actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: nowrap; }
.inv-summary small { display: block; font-size: 11.5px; margin-top: 2px; }
@media (max-width: 1200px) { .cust-table .c-svc { display: none; } }
.chip.active .icon { color: #fff; }
.rep-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.rep-days { padding: 8px 20px 16px; max-height: 420px; overflow-y: auto; }
.rep-day { display: grid; grid-template-columns: 58px 1fr 90px; gap: 10px; align-items: center; font-size: 12.5px; padding: 3px 0; }
.rd-date { color: var(--muted); }
.rd-val { text-align: right; font-weight: 700; }
.rd-bar { position: relative; height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.rd-bar i, .rd-bar b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.rd-bar i { background: #C9D3EA; }
.rd-bar b { background: var(--green); }
.lg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--green); vertical-align: middle; }
@media (max-width: 1000px) { .rep-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .cust-summary { grid-template-columns: repeat(2, 1fr); }
  .cust-summary > div:first-child { grid-column: auto; display: block; }
  .cust-table th:nth-child(3), .cust-table td:nth-child(3), .cust-table th:nth-child(5), .cust-table td:nth-child(5) { display: none; }
  .cust-table .btn span { display: none; }
  .cust-table .actions { flex-wrap: wrap; width: 72px; margin-left: auto; }
  .cust-table td, .cust-table th { padding-left: 10px; padding-right: 10px; }
}

/* CV maker */
.cv-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 8px; }
.cv-tpl { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; transition: .15s; }
.cv-tpl:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.cv-thumb { height: 220px; overflow: hidden; border-radius: 8px; background: #F4F6FB; margin-bottom: 8px; position: relative; container-type: inline-size; }
.cv-thumb .cv-scale { width: 794px; transform-origin: 0 0; transform: scale(var(--s, .3)); position: absolute; left: 0; top: 0; pointer-events: none; }
.cv-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cv-form .card { margin-bottom: 12px; }
.cv-det summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.cv-det summary::-webkit-details-marker { display: none; }
.cv-det summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.cv-det[open] summary::before { transform: rotate(90deg); }
.cv-det[open] summary { margin-bottom: 12px; }
.cv-row { display: grid; grid-template-columns: 1.1fr 1.5fr 70px 90px 30px; gap: 6px; margin-bottom: 8px; align-items: center; }
.cv-row.exp { grid-template-columns: 1fr 1.2fr 1fr 30px; }
.cv-row.exp [data-f=details] { grid-column: 1 / 4; }
.cv-row.exp [data-rm] { grid-column: 4; grid-row: 1; }
.cv-row .input { padding: 0 10px; height: 38px; font-size: 13.5px; }
.cv-photo-pick { width: 86px; height: 108px; flex: none; border: 2px dashed #C5CCDD; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; cursor: pointer; overflow: hidden; background: var(--surface-2); }
.cv-photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.cv-photo-pick:hover { border-color: var(--orange); }
.cv-side-pane { position: sticky; top: 84px; }
.cv-toolbar { margin-bottom: 12px; }
.cv-toolbar .seg { margin: 0; display: flex; }
.cv-toolbar .seg a { flex: 1; justify-content: center; padding: 7px 8px; }
.cv-preview { background: #E7EAF2; border-radius: 14px; padding: 0; overflow: hidden; min-width: 0; }
.cv-preview-scale { --s: .6; width: 794px; transform: scale(var(--s)); transform-origin: 0 0; margin-bottom: calc(1123px * (var(--s) - 1)); margin-right: calc(794px * (var(--s) - 1)); }
.cv-print-area { display: none; }
@media (max-width: 1100px) {
  .cv-editor { grid-template-columns: minmax(0, 1fr); }
  .cv-side-pane { position: static; order: -1; }
  .cv-preview { max-height: 380px; overflow-y: auto; }
}
@media (max-width: 720px) {
  .cv-tpls { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cv-thumb { height: 160px; }
  .cv-row { grid-template-columns: 1fr 1fr 30px; }
  .cv-row [data-f=course] { grid-column: 1 / 3; }
  .cv-row [data-rm] { grid-column: 3; grid-row: 1; }
  .cv-row.exp [data-f=details] { grid-column: 1 / 3; }
  .cv-row.exp [data-rm] { grid-column: 3; }
}

/* the CV paper itself (A4 = 794 × 1123 CSS px) */
.cv-paper { width: 794px; min-height: 1123px; background: #fff; color: #1d2433; font-family: 'Manrope', 'Anek Malayalam', Arial, sans-serif; font-size: 13.5px; line-height: 1.5; box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cv-paper h2 { margin: 0; font-size: 28px; letter-spacing: -.01em; line-height: 1.2; }
.cv-paper p { margin: 0; }
.cv-sec { margin-top: 18px; }
.cv-sec h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #1C2D57; border-bottom: 2px solid #1C2D57; padding-bottom: 4px; }
.cv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cv-table th, .cv-table td { border: 1px solid #c9cfdc; padding: 6px 8px; text-align: left; vertical-align: top; }
.cv-table th { background: #EEF1F7; font-weight: 700; }
.cv-kv { border-collapse: collapse; }
.cv-kv td { padding: 3px 8px 3px 0; vertical-align: top; }
.cv-kv td:first-child { width: 200px; color: #4a5470; }
.cv-ul { margin: 0; padding-left: 18px; }
.cv-ul li { margin: 2px 0; }
.cv-exp { margin-bottom: 10px; }
.cv-exp .row { display: flex; gap: 8px; }
.cv-exp .spacer { flex: 1; }
.cv-exp .row span { color: #4a5470; font-size: 12.5px; }
.cv-org { color: #4a5470; font-style: italic; }
.cv-exp p { margin-top: 2px; }
.cv-photo { width: 118px; height: 148px; object-fit: cover; border: 1px solid #c9cfdc; flex: none; }
.cv-addr { color: #4a5470; margin-top: 4px; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-weight: 600; align-items: center; }
.cv-contact .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.cv-contact span { color: #9aa2b6; }
.cv-decl p { text-align: justify; }
.cv-sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 26px; }
.cv-signname { font-weight: 700; }
.cv-classic, .cv-compact { padding: 56px 60px; }
.cv-classic .cv-kicker { text-align: center; font-weight: 800; letter-spacing: .3em; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; margin-bottom: 18px; color: #1C2D57; }
.cv-headrow { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; }
.cv-headtext { flex: 1; min-width: 0; }
.cv-compact .cv-head { border-bottom: 4px solid #EE9835; padding-bottom: 14px; }
.cv-compact .cv-head h2 { color: #1C2D57; font-size: 30px; }
.cv-compact .cv-sec h4 { border-bottom: 0; color: #EE9835; padding: 0; margin-bottom: 6px; }
.cv-compact .cv-sec { margin-top: 14px; }
.cv-compact .cv-photo { width: 96px; height: 120px; border-radius: 8px; }
.cv-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cv-modern { display: grid; grid-template-columns: 250px 1fr; }
.cv-side { background: #1C2D57; color: #E6EAF4; padding: 40px 24px; }
.cv-side .cv-photo { display: block; margin: 0 auto 16px; width: 130px; height: 160px; border: 4px solid #EE9835; border-radius: 10px; }
.cv-side h2 { color: #fff; font-size: 24px; text-align: center; margin-bottom: 18px; overflow-wrap: anywhere; }
.cv-sblock { margin-top: 18px; font-size: 12.5px; }
.cv-sblock h5 { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #EE9835; }
.cv-sblock > div { margin-bottom: 5px; overflow-wrap: anywhere; }
.cv-sblock .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.cv-side .cv-addr { color: #C9D3EA; }
.cv-sk small { display: block; color: #9FAED0; font-size: 10.5px; }
.cv-side .cv-ul { padding-left: 16px; }
.cv-body { padding: 40px 36px; }
.cv-body .cv-sec:first-child { margin-top: 0; }

/* certificate (A4 landscape) */
.cert-wrap { padding-bottom: 8px; overflow: hidden; }
.cert-fit { --s: 1; width: calc(1000px * var(--s)); height: calc(707px * var(--s)); margin: 0 auto; }
.cert-fit .cert { transform: scale(var(--s)); transform-origin: 0 0; }
.cert { width: 1000px; height: 707px; aspect-ratio: 297 / 210; background: #fff; padding: 22px; box-sizing: border-box; box-shadow: var(--shadow); border-radius: 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; background-image: radial-gradient(circle at 0 0, #FFF3E2 0, transparent 34%), radial-gradient(circle at 100% 100%, #E8EDF8 0, transparent 38%); }
.cert-border { height: 100%; border: 3px solid #1C2D57; outline: 1px solid #EE9835; outline-offset: -10px; padding: 36px 56px 28px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; text-align: center; color: #1d2433; }
.cert-top { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cert-logo { height: 46px; }
.cert-auth { font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: #66708A; font-weight: 700; }
.cert-title { font-size: 40px; font-weight: 800; color: #1C2D57; margin-top: 14px; letter-spacing: -.01em; }
.cert-sub { margin-top: 10px; color: #66708A; font-size: 15px; font-style: italic; }
.cert-name { font-size: 34px; font-weight: 800; color: #C26A0E; margin-top: 6px; padding: 0 30px 6px; border-bottom: 2px solid #EE9835; font-family: 'Anek Malayalam', 'Manrope', sans-serif; line-height: 1.25; }
.cert-line { margin-top: 8px; font-weight: 600; color: #3A4562; }
.cert-line.small { font-weight: 500; font-size: 13px; color: #66708A; margin-top: 2px; }
.cert-text { max-width: 680px; margin: 14px auto 0; font-size: 15px; line-height: 1.6; color: #3A4562; }
.cert-foot { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; }
.cert-meta { text-align: left; font-size: 13px; display: grid; gap: 4px; }
.cert-meta span { color: #66708A; display: inline-block; width: 100px; }
.cert-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cert-qr img { width: 104px; height: 104px; }
.cert-qr small { color: #66708A; font-size: 11px; }
.cert-sign { text-align: center; display: flex; flex-direction: column; align-items: center; justify-self: end; min-width: 200px; }
.cert-sigline { width: 180px; border-bottom: 1.5px solid #1d2433; height: 40px; margin-bottom: 6px; }
.cert-sign small { color: #66708A; font-size: 12px; }

@media print {
  body.print-cv #view > :not(.cv-print-area) { display: none !important; }
  body.print-cv .cv-print-area { display: block; }
  body.print-cv .cv-paper { page: cv; min-height: 0; width: auto; }
  body.print-cv .cv-classic, body.print-cv .cv-compact, body.print-cv .cv-pad { padding: 0; }
  body.print-cv .cv-modern, body.print-cv .cv-bleed { min-height: 297mm; }
  @page cv { size: A4; margin: 14mm 14mm; }
  body.print-cv:has(.cv-modern) .cv-print-area .cv-paper, body.print-cv .cv-print-area .cv-bleed { page: cvfull; }
  @page cvfull { size: A4; margin: 0; }
  body.print-cert .cert-wrap { overflow: visible; padding: 0; }
  body.print-cert .cert-fit { width: auto; height: auto; }
  body.print-cert .cert { page: cert; width: 297mm; height: 210mm; aspect-ratio: auto; box-shadow: none; border-radius: 0; margin: 0; transform: none; }
  @page cert { size: A4 landscape; margin: 0; }
}

/* ======================================================
   ACCESS TOOLS — image & PDF utilities
   ====================================================== */
.input.sm { height: 36px; font-size: 13.5px; padding: 0 10px; width: auto; }
.at-note { align-items: center; }
.at-note .ml { display: block; margin-top: 2px; opacity: .85; }
.at-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.at-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; transition: .15s; }
.at-card:hover { border-color: var(--c); box-shadow: var(--shadow); transform: translateY(-2px); }
.at-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.at-card b { display: block; font-size: 15px; }
.at-card small { display: block; color: var(--c); font-weight: 600; font-size: 13px; }
.at-card span:not(.at-ic) { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.4; }
.at-drop { padding: 44px 20px; }
.at-private { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 12px; color: var(--green); font-weight: 600; background: var(--green-soft); padding: 4px 10px; border-radius: 99px; }
.at-private .icon { width: 13px; height: 13px; margin: 0; color: var(--green); }
.at-tip { display: flex; gap: 6px; align-items: center; }
.at-tool.narrow { max-width: 640px; margin: 0 auto; }
.at-editor { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.at-stage-card { overflow: hidden; }
.at-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.at-bar .input.sm { height: 32px; }
.at-cropon { gap: 6px; font-weight: 600; margin: 0 4px; }
.flipx .icon { transform: scaleX(-1); }
.at-stage { overflow: hidden; position: relative; padding: 14px; background: repeating-conic-gradient(#EFF1F3 0 25%, #F9F8F4 0 50%) 0 0 / 18px 18px; display: flex; justify-content: center; }
.at-srcinfo { padding: 8px 14px; border-top: 1px solid var(--line); }
.crop-wrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; user-select: none; }
.crop-img { max-width: 100%; max-height: 62vh; width: auto; height: auto; display: block; }
.crop-box { position: absolute; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55); outline: 2px solid #fff; cursor: move; touch-action: none; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 33.33% 33.33%; background-position: -1px -1px; }
.crop-box i { position: absolute; width: 22px; height: 22px; background: var(--orange); border: 3px solid #fff; border-radius: 50%; touch-action: none; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.crop-box i[data-h=nw] { left: -11px; top: -11px; cursor: nwse-resize; }
.crop-box i[data-h=ne] { right: -11px; top: -11px; cursor: nesw-resize; }
.crop-box i[data-h=sw] { left: -11px; bottom: -11px; cursor: nesw-resize; }
.crop-box i[data-h=se] { right: -11px; bottom: -11px; cursor: nwse-resize; }
.at-panel { display: grid; gap: 14px; position: sticky; top: 84px; }
.at-panel .grid-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
.at-seg { margin: 0; display: flex; }
.at-seg a { flex: 1; justify-content: center; padding: 6px 10px; }
.at-result .alert { margin: 0 0 10px; }
.at-result { position: relative; }
.at-result.working::after { content: 'Working…'; position: absolute; inset: 0; background: rgba(255,255,255,.75); display: grid; place-items: center; font-weight: 700; color: var(--navy); border-radius: inherit; }
.at-out { background: repeating-conic-gradient(#EFF1F3 0 25%, #F9F8F4 0 50%) 0 0 / 14px 14px; border-radius: 10px; padding: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.at-out img { max-width: 100%; max-height: 300px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.at-out.small img { image-rendering: auto; min-width: 120px; }
.at-out.sheet img { max-height: 420px; }
.at-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.at-stats > div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.at-stats span { display: block; font-size: 11.5px; color: var(--muted); }
.at-stats b { font-size: 15px; }
.at-stats b.ok, .at-compare b.ok { color: var(--green); }
.at-stats b.bad, .at-compare b.bad { color: var(--red); }
.at-progress { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); padding: 6px 0; }
.at-progress > div { flex: 1; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.at-progress i { display: block; height: 100%; background: var(--orange); transition: width .2s; }
.at-listbar, .at-orgbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.at-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.at-thumb { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.at-thumb small { color: var(--muted); font-size: 11.5px; }
.at-timg { position: relative; aspect-ratio: 3 / 4; background: var(--surface-2); border-radius: 8px; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.at-timg img { max-width: 92%; max-height: 92%; box-shadow: 0 1px 6px rgba(0,0,0,.18); transition: transform .2s; }
.at-pno { position: absolute; left: 6px; top: 6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.at-chk { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C8D0D8; background: #fff; display: grid; place-items: center; color: transparent; }
.at-chk .icon { width: 13px; height: 13px; }
.at-thumb.sel { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
.at-thumb.sel .at-chk { background: var(--orange); border-color: var(--orange); color: #fff; }
.at-tbtns { display: flex; justify-content: space-between; align-items: center; gap: 2px; }
.at-tbtns .x-btn { font-size: 18px; line-height: 1; padding: 4px 6px; }
.at-tbtns .x-btn:disabled { opacity: .25; }
.at-pdfopts { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.at-pdfopts .field { margin: 0; }
.at-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.at-done { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.at-done > .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--green-soft); color: var(--green); flex: none; }
.at-done b { display: block; }
.at-done.inline { margin: 0; flex-wrap: wrap; }
.at-done.inline > .icon { width: 28px; height: 28px; padding: 5px; }
.at-fileic { flex: none; width: 40px; height: 48px; border-radius: 6px; background: #FDECEC; color: #DC2626; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.at-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.at-level input { position: absolute; opacity: 0; }
.at-level span { display: block; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; height: 100%; box-sizing: border-box; }
.at-level small { display: block; color: var(--muted); font-size: 12px; }
.at-level input:checked + span { border-color: var(--orange); background: var(--orange-soft); }
.at-level input:focus-visible + span { outline: 2px solid var(--navy); }
.at-compare { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.at-compare span { display: block; font-size: 12px; color: var(--muted); }
.at-compare b { font-size: 20px; }
.at-compare .arrow { font-size: 22px; color: var(--muted); }
.at-compare em { font-style: normal; background: var(--green-soft); color: var(--green); font-weight: 700; padding: 4px 10px; border-radius: 99px; font-size: 13px; }
@media (max-width: 1000px) {
  .at-editor { grid-template-columns: minmax(0, 1fr); }
  .at-panel { position: static; }
  .at-pdfopts { grid-template-columns: 1fr 1fr; }
  .at-pdfopts .btn { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .at-grid { grid-template-columns: 1fr; gap: 8px; }
  .at-card { padding: 12px; }
  .at-thumbs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .crop-img { max-height: 52vh; }
  .at-levels { grid-template-columns: 1fr; }
  .at-orgbar .input-icon { width: 100% !important; }
  .at-actions .btn { flex: 1 1 45%; }
}

/* ===================== PVC CARD PRINT ===================== */
.pvc-step { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.pvc-step.sm { width: 24px; height: 24px; font-size: 12px; }
.pvc-types-card, .pvc-upload { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.pvc-upload .drop { margin-top: 10px; }
.pvc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.pvc-type { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.pvc-type b { display: block; font-size: 13.5px; }
.pvc-type small { display: block; color: var(--muted); font-size: 12px; }
.pvc-type:hover { border-color: #0E7490; }
.pvc-type.on { border-color: var(--orange); background: var(--orange-soft); }
.pvc-ed { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.pvc-side { display: grid; gap: 14px; position: sticky; top: 84px; }
.pvc-side .grid-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
.pvc-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pvc-previews figure { margin: 0; cursor: pointer; text-align: center; }
.pvc-previews figcaption { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.pvc-previews figure.on figcaption { color: var(--orange); }
.pvc-card { aspect-ratio: 85.6 / 53.98; border-radius: 6px; overflow: hidden; background: var(--surface-2); box-shadow: 0 3px 12px rgba(15,23,42,.22); display: grid; place-items: center; outline: 2px solid transparent; outline-offset: 2px; }
.pvc-card.port { aspect-ratio: 53.98 / 85.6; max-width: 62%; margin: 0 auto; }
.pvc-previews figure.on .pvc-card { outline-color: var(--orange); }
.pvc-card canvas { width: 100%; height: 100%; display: block; }
.pvc-sliders { display: grid; gap: 8px; }
.pvc-sliders label { display: grid; grid-template-columns: 80px 1fr 44px; gap: 8px; align-items: center; font-size: 13px; }
.pvc-sliders input { width: 100%; accent-color: var(--orange); }
.pvc-sliders em { font-style: normal; color: var(--muted); font-size: 12px; text-align: right; }
.pvc-sheet .card-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pvc-sheet .card-head h3 { margin: 0; }
.pvc-list { display: grid; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pvc-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.pvc-item.on { border-color: var(--orange); background: color-mix(in srgb, var(--orange-soft) 50%, transparent); }
.pvc-thumbs { display: flex; gap: 4px; flex: none; }
.pvc-thumbs img, .pvc-empty { width: 56px; height: 35px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.2); display: block; background: var(--surface-2); }
.pvc-meta { flex: 1; min-width: 0; }
.pvc-meta b, .pvc-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvc-layouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.pvc-layouts .at-level { position: relative; }
.pvc-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; align-items: end; }
.pvc-opts .field { margin: 0; }
.pvc-chk { gap: 6px; padding-bottom: 10px; }
.pvc-go { gap: 10px; align-items: center; margin-top: 16px; }
.pvc-tip { margin: 12px 0 0; line-height: 1.5; }
@media (max-width: 1000px) {
  .pvc-ed { grid-template-columns: minmax(0, 1fr); }
  .pvc-side { position: static; }
}
@media (max-width: 720px) {
  .pvc-types { grid-template-columns: repeat(2, 1fr); }
  .pvc-layouts { grid-template-columns: 1fr; }
  .pvc-opts { grid-template-columns: 1fr 1fr; }
  .pvc-go .btn { flex: 1 1 45%; }
  .pvc-types-card .pvc-step, .pvc-upload .pvc-step { display: none; }
}
/* ===================== CV DESIGNS (10 newer) ===================== */
.cv-pos { font-size: 15px; font-weight: 600; margin-top: 3px; }
.cv-pad { padding: 52px 56px; }
.cv-item { margin-bottom: 10px; }
.cv-ihead { display: flex; gap: 10px; align-items: baseline; }
.cv-ihead b { flex: 1; min-width: 0; }
.cv-ihead span { color: #5a6480; font-size: 12.5px; white-space: nowrap; }
.cv-isub { color: #4a5470; font-size: 12.8px; }
.cv-isub em { font-style: normal; font-weight: 600; }
.cv-item p { margin-top: 2px; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tags span { background: #EEF1F7; border-radius: 6px; padding: 3px 9px; font-size: 12.5px; font-weight: 600; }
.cv-kvg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.cv-kvg small { display: block; color: #6a7390; font-size: 11px; }
.cv-kvg span { font-weight: 600; }
.cv-sk { margin-bottom: 6px; overflow-wrap: anywhere; }
.cv-sk small { display: block; color: #6a7390; font-size: 10.5px; }
.cv-crow { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 12.8px; }
.cv-crow > div, .cv-ci { display: flex; gap: 6px; align-items: flex-start; overflow-wrap: anywhere; }
.cv-paper .cv-crow .icon, .cv-paper .cv-ci .icon { width: 13px; height: 13px; flex: none; margin-top: 3px; }
.cv-ci { margin-bottom: 6px; }
.cv-paper .cv-ul li::marker { color: inherit; }

/* executive */
.cv-exec .cv-xband { background: #14254A; color: #fff; padding: 40px 48px 30px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.cv-exec .cv-xband h2 { color: #fff; font-size: 32px; letter-spacing: .02em; text-transform: uppercase; }
.cv-exec .cv-pos { color: #F2B45A; }
.cv-exec .cv-photo { width: 110px; height: 136px; border: 4px solid #fff; border-radius: 6px; }
.cv-exec .cv-xcontact { background: #22396A; color: #DCE4F5; padding: 6px 48px 10px; }
.cv-exec .cv-xcontact .cv-crow { margin-top: 4px; }
.cv-exec .cv-xbody { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 30px; padding: 26px 48px 0; }
.cv-exec .cv-xbody aside { border-left: 1px solid #E1E5EE; padding-left: 22px; font-size: 12.8px; }
.cv-exec .cv-sec h4 { color: #14254A; border-bottom: 2px solid #F2B45A; }
.cv-exec .cv-xbody .cv-sec:first-child { margin-top: 0; }
.cv-exec .cv-xfoot { padding: 0 48px 40px; }

/* elegant */
.cv-elegant { font-family: Georgia, 'Times New Roman', 'Anek Malayalam', serif; color: #222; }
.cv-elegant .cv-ehead { text-align: center; position: relative; padding-bottom: 16px; border-bottom: 3px double #8A6D3B; }
.cv-elegant .cv-ehead h2 { font-weight: 400; font-size: 34px; letter-spacing: .14em; text-transform: uppercase; }
.cv-elegant .cv-pos { font-style: italic; font-weight: 400; color: #8A6D3B; font-size: 16px; }
.cv-elegant .cv-econtact { margin-top: 8px; font-size: 13px; color: #444; }
.cv-elegant .cv-econtact i { font-style: normal; color: #8A6D3B; margin: 0 10px; font-size: 9px; vertical-align: 2px; }
.cv-elegant .cv-photo { position: absolute; right: 0; top: 0; width: 84px; height: 104px; }
.cv-elegant .cv-ehead:has(.cv-photo) { padding-right: 96px; padding-left: 96px; }
.cv-elegant .cv-sec h4 { text-align: center; border: 0; color: #8A6D3B; font-weight: 400; letter-spacing: .25em; display: flex; align-items: center; gap: 12px; }
.cv-elegant .cv-sec h4::before, .cv-elegant .cv-sec h4::after { content: ''; flex: 1; border-top: 1px solid #D8CBB0; }
.cv-elegant .cv-table th, .cv-elegant .cv-table td { border: 0; border-bottom: 1px solid #E6DECD; }
.cv-elegant .cv-table th { background: none; color: #8A6D3B; font-weight: 400; font-style: italic; }
.cv-elegant .cv-isub, .cv-elegant .cv-ihead span { color: #555; }

/* timeline */
.cv-tline .cv-thead { display: flex; gap: 22px; align-items: center; padding-bottom: 18px; border-bottom: 3px solid #0E8A87; }
.cv-tline .cv-photo { width: 112px; height: 112px; border-radius: 50%; border: 4px solid #CDEDEB; }
.cv-tline h2 { color: #0B4F4D; font-size: 31px; }
.cv-tline .cv-pos { color: #0E8A87; }
.cv-tline .cv-sec h4 { color: #0B4F4D; border: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.cv-tline .cv-sec h4::before { content: ''; width: 18px; height: 4px; border-radius: 2px; background: #0E8A87; }
.cv-tl { border-left: 2px solid #CDEDEB; margin-left: 92px; }
.cv-tli { position: relative; padding: 0 0 12px 18px; }
.cv-tli::before { content: ''; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #0E8A87; box-sizing: border-box; }
.cv-tly { position: absolute; left: -100px; width: 84px; text-align: right; top: 1px; font-size: 12px; font-weight: 700; color: #0E8A87; }
.cv-tline .cv-tags span { background: #E3F4F3; color: #0B4F4D; }

/* creative */
.cv-creative { display: grid; grid-template-columns: 245px 1fr; }
.cv-cside { background: #3B1F5C; color: #E9E0F5; padding: 40px 24px; font-size: 12.5px; }
.cv-cside .cv-photo { display: block; width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 10px; border: 5px solid #FF7A59; }
.cv-cside .cv-sblock h5 { color: #FF9C82; }
.cv-cside .cv-dot { position: relative; padding-left: 14px; margin-bottom: 5px; }
.cv-cside .cv-dot::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #FF7A59; }
.cv-cmain { padding: 46px 38px; }
.cv-cmain h2 { font-size: 34px; color: #3B1F5C; line-height: 1.1; }
.cv-creative .cv-pos { color: #FF7A59; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 4px; }
.cv-creative .cv-sec h4 { border: 0; color: #3B1F5C; padding: 0 0 0 12px; border-left: 4px solid #FF7A59; }

/* fresher */
.cv-fresher { border-top: 10px solid #16A34A; }
.cv-fresher .cv-fhead { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; background: #F0FAF3; margin: -52px -56px 0; padding: 34px 56px 20px; }
.cv-fresher h2 { color: #14532D; font-size: 31px; }
.cv-fresher .cv-pos { color: #16A34A; }
.cv-fresher .cv-photo { width: 104px; height: 130px; border-radius: 8px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.cv-fresher .cv-sec h4 { color: #14532D; border-bottom: 2px solid #BBE5C8; }
.cv-fresher .cv-tags span { background: #DCF5E3; color: #14532D; }
.cv-fresher .cv-table th { background: #E7F6EC; }

/* gulf */
.cv-gulf .cv-ghead { display: flex; gap: 22px; justify-content: space-between; align-items: flex-start; border-bottom: 4px solid #0B4F6C; padding-bottom: 14px; }
.cv-gulf .cv-gkick { font-size: 12px; letter-spacing: .3em; font-weight: 800; color: #B8902F; }
.cv-gulf h2 { color: #0B4F6C; font-size: 30px; }
.cv-gulf .cv-gpos { margin-top: 4px; font-size: 14px; }
.cv-gulf .cv-gpos b { color: #0B4F6C; }
.cv-gulf .cv-photo { width: 110px; height: 138px; border: 2px solid #0B4F6C; }
.cv-gulf .cv-gpass { margin-top: 16px; border: 1.5px solid #B8902F; background: #FBF6EA; border-radius: 8px; padding: 10px 14px; }
.cv-gulf .cv-gpass h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8C6A1C; }
.cv-gulf .cv-gpass .cv-kvg { grid-template-columns: repeat(3, 1fr); }
.cv-gulf .cv-sec h4 { color: #fff; background: #0B4F6C; border: 0; padding: 4px 10px; border-radius: 3px; }
.cv-gulf .cv-table th { background: #E5EFF4; }

/* formal */
.cv-formal .cv-ftitle { text-align: center; font-weight: 800; font-size: 18px; letter-spacing: .25em; border: 2px solid #222; padding: 6px; margin-bottom: 14px; }
.cv-formal .cv-ftable { width: 100%; border-collapse: collapse; }
.cv-formal .cv-ftable th, .cv-formal .cv-ftable td { border: 1px solid #555; padding: 5px 9px; text-align: left; vertical-align: top; font-size: 13px; }
.cv-formal .cv-ftable th { width: 190px; background: #F1F1F1; font-weight: 600; }
.cv-formal .cv-fphoto { width: 130px; text-align: center; vertical-align: middle !important; }
.cv-formal .cv-fphoto .cv-photo { width: 112px; height: 140px; }
.cv-formal .cv-fph { width: 112px; height: 140px; border: 1px dashed #999; display: grid; place-items: center; color: #999; margin: 0 auto; font-size: 12px; }
.cv-formal .cv-fsec { margin-top: 14px; background: #E9E9E9; border: 1px solid #555; padding: 4px 9px; font-weight: 800; text-transform: uppercase; font-size: 12.5px; letter-spacing: .06em; }
.cv-formal .cv-fbody { border: 1px solid #555; border-top: 0; padding: 8px 10px; }
.cv-formal .cv-fbody .cv-table th, .cv-formal .cv-fbody .cv-table td { border-color: #777; }
.cv-formal .cv-fbody .cv-sec { margin: 0; }
.cv-formal .cv-fbody .cv-sign { margin-top: 18px; }

/* ATS */
.cv-ats { font-family: Arial, 'Anek Malayalam', sans-serif; color: #111; }
.cv-ats .cv-ahead { border-bottom: 1.5px solid #111; padding-bottom: 10px; }
.cv-ats h2 { font-size: 28px; }
.cv-ats .cv-pos { font-size: 14px; }
.cv-ats .cv-aline { margin-top: 4px; font-size: 13px; }
.cv-ats .cv-sec { margin-top: 14px; }
.cv-ats .cv-sec h4 { color: #111; border-bottom: 1px solid #999; letter-spacing: .04em; }
.cv-ats .cv-isub, .cv-ats .cv-ihead span { color: #333; }

/* corporate */
.cv-corp .cv-chead { display: flex; gap: 24px; align-items: center; padding: 40px 44px 24px; border-bottom: 5px solid #0F766E; }
.cv-corp .cv-photo { width: 120px; height: 120px; border-radius: 50%; border: 3px solid #0F766E; }
.cv-corp h2 { font-size: 31px; color: #1F2937; }
.cv-corp .cv-pos { color: #0F766E; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.cv-corp .cv-cobj { margin-top: 8px; color: #4B5563; font-size: 13px; }
.cv-corp .cv-cgrid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; min-height: calc(1123px - 190px); }
.cv-corp .cv-cgrid main { padding: 22px 30px 40px 44px; }
.cv-corp .cv-cgrid aside { background: #F1F5F4; padding: 22px 26px 40px; font-size: 12.8px; }
.cv-corp .cv-cgrid .cv-sec:first-child { margin-top: 0; }
.cv-corp .cv-sec h4 { color: #0F766E; border-bottom: 1px solid #B9D8D4; }
.cv-corp .cv-table th { background: #E6F2F0; }

/* bold */
.cv-bold .cv-bhead { background: #1F2328; color: #fff; padding: 44px 48px 30px; display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; border-bottom: 8px solid #F97316; }
.cv-bold .cv-bhead h2 { color: #fff; font-size: 40px; font-weight: 800; line-height: 1.05; }
.cv-bold .cv-pos { color: #FDBA74; font-size: 16px; }
.cv-bold .cv-crow { color: #D1D5DB; }
.cv-bold .cv-photo { width: 118px; height: 140px; border: 3px solid #fff; box-shadow: 8px 8px 0 #F97316; }
.cv-bold .cv-bbody { padding: 26px 48px 40px; }
.cv-bold .cv-sec { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 18px; row-gap: 0; margin-top: 16px; }
.cv-bold .cv-sec h4 { grid-row: span 2; }
.cv-bold .cv-sec > :not(h4) { grid-column: 2; }
.cv-bold .cv-sec h4 { border: 0; padding: 0; color: #1F2328; font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; }
.cv-bold .cv-sec h4::before { content: ''; flex: none; width: 10px; height: 10px; background: #F97316; margin-top: 3px; }
.cv-bold .cv-tags span { background: #FFF1E6; color: #9A3412; }

/* editor helpers */
.cv-tplbar { display: flex; gap: 6px; align-items: center; }
.cv-tplbar .input { flex: 1; min-width: 0; height: 38px; }
.cv-tplbar .btn { font-size: 20px; line-height: 1; width: 38px; height: 38px; }
.cv-pick { margin-bottom: 8px; height: 38px; font-size: 13.5px; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cv-chips button { border: 1px dashed #C5CCDD; background: var(--surface); border-radius: 99px; padding: 3px 10px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.cv-chips button:hover { border-color: var(--orange); color: var(--orange); }
.cv-chips button.used { border-style: solid; border-color: var(--green); color: var(--green); }
.cv-tpl b .badge { font-size: 10.5px; vertical-align: 1px; }
/* ================= CUSTOM POSTER ================= */
.cp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 470px); gap: 20px; align-items: start; }
.cp-side { position: sticky; top: 84px; order: 2; }
.cp-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cp-form .card-pad { padding: 18px; }
.cp-prev { padding: 14px; }
.cp-prev canvas { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 6px 22px rgba(30,53,130,.14); background: #EFF0F2; }
.cp-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.cp-actions .btn.orange { flex: 1; }
.cp-note { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; line-height: 1.45; }
.cp-note .icon, .cp-tip .icon { flex: none; margin-top: 2px; }
.cp-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cp-h b { font-size: 15px; }
.cp-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.cp-tpl { border: 2px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: .12s; }
.cp-tpl:hover { border-color: #C8D0D8; }
.cp-tpl.on { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(35,134,110,.18); }
.cp-tpl canvas { display: block; width: 100%; height: auto; border-radius: 7px; background: #EFF0F2; }
.cp-tpl span { display: block; font-weight: 700; font-size: 13px; margin-top: 6px; line-height: 1.25; }
.cp-tpl small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.cp-themes { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-sw { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); outline: 2px solid transparent; cursor: pointer; padding: 0; }
.cp-sw.on { outline-color: var(--navy); }
.cp-form input[type=range] { width: 100%; accent-color: var(--orange); margin-top: 10px; }
.cp-tip { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; padding: 0 4px; }
@media (max-width: 900px) {
  .cp-wrap { grid-template-columns: 1fr; }
  .cp-side { position: static; order: 0; }
}
@media (max-width: 560px) {
  .cp-tpls { grid-template-columns: repeat(2, 1fr); }
  .cp-form .card-pad { padding: 14px; }
}
.cp-tpl { position: relative; }
.cp-new { position: absolute; top: 10px; right: 10px; z-index: 1; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; background: var(--orange); color: #fff; padding: 2px 8px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* ================= YOUTUBE VIDEOS ================= */
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0B0F1A; border-radius: 12px; overflow: hidden; }
.yt-frame.short { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-prev .yt-frame.short { max-width: 240px; }
.yt-thumb { width: 96px; height: 54px; object-fit: cover; }
.yt-stage { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 22px; padding: 18px; align-items: start; }
.yt-main.is-short { background: #0B0F1A; border-radius: 12px; padding: 10px 0; }
.yt-info h2 { margin: 10px 0 6px; font-size: 21px; line-height: 1.3; }
.yt-ml { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #3A4654; }
.yt-desc { margin: 0 0 10px; color: #4D5866; white-space: pre-line; line-height: 1.55; }
.yt-btns { gap: 8px; margin-top: 14px; }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.yt-card { display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 12px; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.yt-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30,53,130,.12); }
.yt-card.playing { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.yt-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #0B0F1A; margin-bottom: 6px; }
.yt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 55%, rgba(0,0,0,.35)); }
.yt-play i { width: 54px; height: 38px; border-radius: 11px; background: rgba(220,38,38,.92); position: relative; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.yt-play i::after { content: ''; position: absolute; left: 22px; top: 11px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.yt-play em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: rgba(220,38,38,.92); padding: 4px 10px; border-radius: 99px; }
.yt-tag { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.95); color: #1D222B; }
.yt-tag.new { background: var(--orange); color: #fff; }
.yt-title { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 4px; }
.yt-sub { font-size: 12.5px; color: var(--muted); padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .yt-stage { grid-template-columns: 1fr; padding: 12px; gap: 14px; } }
@media (max-width: 560px) { .yt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .yt-title { font-size: 13px; } .yt-play i { width: 42px; height: 30px; } .yt-play i::after { left: 17px; top: 8px; border-width: 7px 0 7px 11px; } }

/* ---- video items (Service Videos): Watch Video + Details ---- */
.icard .iimg.vimg16 { aspect-ratio: 16 / 9; background: #0B0F1A; }
.vid-thumb { position: absolute; inset: 0; display: block; cursor: pointer; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.vid-thumb img.loaded { opacity: 1; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 50%, rgba(0,0,0,.3)); transition: background .15s; }
.vid-thumb:hover .vid-play { background: rgba(0,0,0,.18); }
.vid-play i { width: 58px; height: 40px; border-radius: 12px; background: rgba(220,38,38,.93); position: relative; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: transform .15s; }
.vid-thumb:hover .vid-play i { transform: scale(1.08); }
.vid-play i::after { content: ''; position: absolute; left: 23px; top: 12px; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; }
/* video picture made from the Malayalam name (brand slate / cream / vermillion, flat), scales with its box like a thumbnail */
.vid-thumb, .vgen-wrap { container-type: inline-size; }   /* .vgen sizes (cqw) follow the picture box */
.vgen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6cqw; padding: 9cqw 30cqw 8cqw 6.5cqw; background: #1e3582; color: #F2F5FC; text-align: left; overflow: hidden; }
/* soft cream circle on the right behind the play button + thin vermillion strip at the bottom (flat, no lines around the picture) */
.vgen::before { content: ''; position: absolute; right: -12cqw; top: 50%; width: 50cqw; height: 50cqw; transform: translateY(-50%); border-radius: 50%; background: rgba(255, 250, 210, .07); box-shadow: 0 0 0 7cqw rgba(255, 250, 210, .035); pointer-events: none; }
.vgen::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5cqw; min-height: 3px; background: #23866E; pointer-events: none; }
.vgen-tag { position: absolute; top: 4cqw; right: 4cqw; z-index: 1; font-size: 2.5cqw; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #F2F5FC; background: rgba(255, 250, 210, .12); padding: .8cqw 2.2cqw; border-radius: 99px; line-height: 1.4; }
.vgen-t { position: relative; font-family: var(--ml); font-weight: 700; font-size: 6cqw; line-height: 1.34; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; overflow-wrap: anywhere; }
.vgen-s { position: relative; font-size: 3.1cqw; line-height: 1.3; color: rgba(255, 250, 210, .7); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.vgen-play { position: absolute; right: 9cqw; top: 50%; transform: translateY(-50%); }
.vgen-play i { display: block; width: 14cqw; height: 14cqw; min-width: 36px; min-height: 36px; border-radius: 50%; background: #F2F5FC; position: relative; transition: transform .15s; box-shadow: 0 0 0 1.8cqw rgba(255, 250, 210, .14); }
.vgen-play i::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 2.5cqw 0 2.5cqw 4cqw; border-color: transparent transparent transparent #23866E; }
.vid-thumb:hover .vgen-play i, .vgen-wrap:hover .vgen-play i { transform: scale(1.08); }
.vgen-wrap { cursor: pointer; }
.vgen-wrap:focus-visible { outline: 3px solid #23866E; outline-offset: 2px; }
.vcard .iactions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vcard .iactions .btn { justify-content: center; min-width: 0; padding-left: 8px; padding-right: 8px; }
.idetail-video { margin-bottom: 16px; }
.video-modal .yt-frame { border-radius: 10px; }
.it-btns-box { border: 1px dashed #CDD5DD; border-radius: 12px; padding: 14px 14px 4px; margin-bottom: 14px; background: #FAFBFE; }
.it-btns-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.it-btns-box .yt-prev:empty { display: none; }
@media (max-width: 560px) { .vcard .iactions .btn .icon { display: none; } .vid-play i { width: 44px; height: 30px; } .vid-play i::after { left: 17px; top: 8px; border-width: 7px 0 7px 11px; } }
.igrid.vgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vcard .iactions .btn { font-size: 13px; white-space: nowrap; }
@media (max-width: 560px) { .igrid.vgrid { grid-template-columns: 1fr; } .vcard .iactions .btn .icon { display: inline-block; } }

/* ---- customer brand locked: contact admin ---- */
.brand-lock { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--orange-soft, #E3F1EC); border: 1px solid rgba(35,134,110,.35); }
.brand-lock > .ic, .brand-lock > svg { flex: none; color: var(--orange, #23866E); width: 26px; height: 26px; }
.brand-lock .bl-text { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14px; }
.brand-lock .bl-text b { font-size: 15px; line-height: 1.35; }
.brand-lock .bl-text > span { color: var(--muted, #5B6480); }
.brand-lock .bl-phone { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; color: var(--text) !important; font-size: 16px; letter-spacing: .02em; }
.brand-lock .bl-phone .sel { user-select: all; }
.brand-lock .btn { flex: none; }
/* pop-up image (customer announcement) */
.modal.popup-modal { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.popup-modal .popup-x { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(255,255,255,.95); border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.popup-modal .popup-title { font-weight: 700; font-size: 17px; line-height: 1.35; padding-right: 40px; color: var(--text); }
.popup-modal .popup-offer-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #E11D48, #23866E); padding: 5px 12px; border-radius: 99px; box-shadow: 0 4px 12px rgba(225,29,72,.25); }
.popup-modal.is-offer { border: 2px solid #23866E; }
.popup-modal .popup-img { display: block; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.popup-modal .popup-img img { display: block; width: 100%; height: auto; max-height: calc(100vh - 170px); object-fit: contain; }
.popup-admin { display: flex; gap: 22px; align-items: flex-start; }
.popup-admin-img { width: 260px; flex: none; }
.popup-admin-img > img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 760px) { .popup-admin { flex-direction: column; } .popup-admin-img { width: 100%; max-width: 320px; } }
.brand-preview.wm-auto { background: #fff; }
.centre-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.centre-info dt { color: var(--muted); }
.centre-info dd { margin: 0; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 560px) { .centre-info { grid-template-columns: 1fr; gap: 2px; } .centre-info dd { margin-bottom: 8px; } }
@media (max-width: 560px) { .brand-lock { flex-wrap: wrap; } .brand-lock .btn { width: 100%; justify-content: center; } }
.profile-grid { grid-template-columns: 1.35fr 1fr; align-items: start; gap: 18px; }
.profile-grid > * { min-width: 0; }
.profile-side { position: sticky; top: 90px; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } .profile-side { position: static; } }

/* ================= ACCOUNTS ================= */
.acc-tabs { flex-wrap: wrap; }
.acc-bar { gap: 10px; margin-bottom: 14px; align-items: center; }
.month-bar { display: inline-flex; align-items: center; gap: 6px; }
.month-bar .input { width: 170px; height: 38px; }
.month-bar [data-mon="-1"] .icon { transform: rotate(180deg); }
.neg { color: var(--red); }
.red-t { color: var(--red); }
.green-t { color: var(--green); }
.btn.ghost.green-t { color: var(--green); border-color: rgba(30,142,90,.35); }
.btn.ghost.red-t { color: var(--red); }
.acc-grid { margin-bottom: 16px; }
.acc-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.acc-line > span { display: inline-flex; align-items: center; gap: 6px; }
.cat-list { display: grid; gap: 12px; margin-top: 14px; }
.cat-bar { font-size: 14px; }
.cat-bar i { display: block; height: 6px; border-radius: 99px; margin-top: 5px; }
.cat-bar i.income, .legend i.income, .day-chart i.income { background: var(--green); }
.cat-bar i.expense, .legend i.expense, .day-chart i.expense { background: var(--red); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.day-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; overflow-x: auto; padding-bottom: 2px; }
.day-chart .dc { flex: 1 0 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.day-chart .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.day-chart .bars i { width: 8px; min-height: 2px; border-radius: 3px 3px 0 0; }
.day-chart span { font-size: 11px; color: var(--muted); }
.acc-totals { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.acc-totals > span { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 14px; }
.acc-totals .in .icon, .acc-totals .in b { color: var(--green); }
.acc-totals .out .icon, .acc-totals .out b { color: var(--red); }
.table td.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td.amt.income { color: var(--green); font-weight: 700; }
.table td.amt.expense { color: var(--red); font-weight: 700; }
.acc-table tbody tr { cursor: pointer; }
.table tr.inactive td { opacity: .6; }
.kind-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; background: var(--surface-2); }
.kind-toggle button { height: 42px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.kind-toggle[data-k="income"] button.on { background: var(--green); color: #fff; }
.kind-toggle[data-k="expense"] button.on { background: var(--red); color: #fff; }
.input.big-num { font-size: 20px; font-weight: 700; }
.cat-chips { gap: 6px; margin-top: 8px; }
.chip.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.wa-mini { color: #16A34A; display: inline-flex; vertical-align: middle; }
/* attendance sheet */
.att-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; margin-bottom: 10px; }
.att-legend span { display: inline-flex; align-items: center; gap: 6px; }
.att-legend i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; }
.att-table { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.att-table th, .att-table td { padding: 4px 2px; text-align: center; border-bottom: 1px solid var(--line); }
.att-table th { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 8px 2px; }
.att-table th small { display: block; font-size: 10px; font-weight: 600; opacity: .8; }
.att-table th.sun, .att-table td.sun { background: #FFF6F6; }
.att-table th.today { background: var(--navy); color: #fff; }
.att-table td.today { background: #EEF2FA; }
.att-table .att-name { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; padding: 6px 12px; min-width: 130px; font-weight: 700; white-space: nowrap; box-shadow: 1px 0 0 var(--line); }
.att-table th.att-name { background: var(--surface-2); }
.att-table .att-name small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.att-table td.att-sum, .att-table thead th:nth-last-child(-n+5) { padding: 4px 8px; }
button.att { width: 28px; height: 28px; border-radius: 7px; border: 1px dashed #CDD5DD; background: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; padding: 0; color: #fff; }
button.att:disabled { opacity: .35; cursor: default; }
button.att.P, .att-legend i.P { background: var(--green); border: 0; color: #fff; }
button.att.A, .att-legend i.A { background: var(--red); border: 0; color: #fff; }
button.att.H, .att-legend i.H { background: #23866E; border: 0; color: #fff; }
button.att.L, .att-legend i.L { background: #6B7BA8; border: 0; color: #fff; }
.att-sum b.p { color: var(--green); } .att-sum b.a { color: var(--red); } .att-sum b.h { color: #C26D0C; } .att-sum b.l { color: #6B7BA8; }
/* CRM */
.crm-intro { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; background: #F0FBF4; border-color: #BFE8CF; font-size: 14px; line-height: 1.55; }
.crm-intro-ic { width: 42px; height: 42px; border-radius: 12px; background: #16A34A; color: #fff; display: grid; place-items: center; flex: none; }
.crm-table td { vertical-align: top; }
.crm-table .actions { flex-wrap: nowrap; }
.crm-table .btn.green.sm { background: #16A34A; }
.crm-log-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.crm-log-row > span:first-of-type { flex: 1; }
.wa-preview { white-space: pre-wrap; background: #E7FFDB; border-radius: 10px 10px 10px 2px; padding: 12px 14px; font-size: 14px; line-height: 1.55; max-width: 420px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
@media (max-width: 720px) {
  .month-bar .input { width: 172px; padding: 0 8px; font-size: 14px; }
  .acc-tabs a span { font-size: 13px; }
  .acc-tabs a { padding: 7px 10px; }
  .day-chart { height: 120px; }
}@media (max-width: 720px) {
  .crm-table thead { display: none; }
  .crm-table, .crm-table tbody { display: block; }
  .crm-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .crm-table tr:last-child { border-bottom: 0; }
  .crm-table td { display: block; padding: 0; border: 0 !important; }
  .crm-table td:nth-child(1), .crm-table td:nth-child(2) { grid-column: 1; }
  .crm-table td:nth-child(3) { grid-column: 2; grid-row: 1 / 3; text-align: right; }
  .crm-table td:nth-child(4) { grid-column: 1; text-align: left; }
  .crm-table td:nth-child(5) { grid-column: 2; text-align: right; }
  .crm-table td:nth-child(6) { grid-column: 1 / -1; margin-top: 4px; }
  .crm-table .actions { justify-content: flex-start; }
  .crm-table .actions .btn.green { flex: 1; justify-content: center; }
  .crm-table tr:hover td { background: none; }
}.vplayer .vp-start { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; color: #fff; font: inherit; line-height: 1.3; }
.vplayer .vp-start .icon { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: rgba(35,134,110,.95); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .15s; }
.vplayer .vp-start:hover .icon { transform: scale(1.08); }
.vplayer .vp-start span { background: rgba(18,24,32,.75); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.vplayer .vp-start:disabled { cursor: progress; }
.vplayer .vp-start:disabled .icon { animation: vpPulse 1.2s ease-in-out infinite; }
@keyframes vpPulse { 50% { opacity: .55; } }
/* attendance — month calendar per staff (replaces the wide sheet) */
.att-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 520px)); gap: 16px; }
.att-card { padding: 16px; }
.att-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.att-head b { font-size: 16px; }
.att-sums { display: flex; flex-wrap: wrap; gap: 6px; }
.att-sums .as { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.att-sums .as b { font-size: 13px; }
.att-sums .as.P b { color: var(--green); } .att-sums .as.A b { color: var(--red); } .att-sums .as.H b { color: #C26D0C; } .att-sums .as.L b { color: #6B7BA8; }
.att-sums .as.earn { background: var(--navy-soft, #E8ECF5); color: var(--navy); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding-bottom: 2px; }
.cal-wd.sun { color: var(--red); }
.cal-day { position: relative; aspect-ratio: 1 / 1; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; padding: 0; display: grid; place-items: center; transition: transform .1s, box-shadow .1s; }
.cal-day:hover { box-shadow: 0 0 0 2px #C9D2E8; }
.cal-day:active { transform: scale(.94); }
.cal-day .dn { position: absolute; top: 4px; left: 6px; font-size: 11.5px; font-weight: 600; color: #6B7591; line-height: 1; }
.cal-day .st { font-size: 17px; font-weight: 800; color: #fff; line-height: 1; }
.cal-day.sun { background: #FFF6F6; }
.cal-day.future { background: #FAFAF7; }
.cal-day.future .dn { color: #A9B1C6; }
.cal-day.today { box-shadow: 0 0 0 2px var(--navy); }
.cal-day.P { background: var(--green); border-color: var(--green); }
.cal-day.A { background: var(--red); border-color: var(--red); }
.cal-day.H { background: #23866E; border-color: #23866E; }
.cal-day.L { background: #6B7BA8; border-color: #6B7BA8; }
.cal-day.P .dn, .cal-day.A .dn, .cal-day.H .dn, .cal-day.L .dn { color: rgba(255,255,255,.85); }
@media (max-width: 560px) { .att-card { padding: 12px; } .cal-grid { gap: 4px; } .cal-day { border-radius: 8px; min-height: 0; } .cal-day .st { font-size: 15px; } .cal-day .dn { font-size: 10.5px; top: 3px; left: 4px; } }
/* upload too large message */
.too-big .tb-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.too-big .tb-row b { overflow-wrap: anywhere; text-align: right; }
/* ======================================================
   TOKEN & DATA COLLECTION (tokens.js / token-form.js / token.html)
   ====================================================== */
.tk-sbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.tk-sbar-l { display: flex; align-items: center; gap: 8px; color: var(--navy); min-width: 0; flex: 0 1 320px; }
.tk-sbar-l .input { font-weight: 700; }
.tk-sbar-m { flex: 1; min-width: 140px; }
.tk-sbar-r { gap: 6px; margin-left: auto; }
.tk-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; margin-bottom: 12px; }
.tk-hcard { padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.tk-hcard.give { align-items: stretch; text-align: center; }
.tk-hlbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.tk-hlbl .ml { letter-spacing: 0; font-weight: 600; }
.tk-big { font-size: 52px; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 4px 0 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tk-big.purple { color: #7C3AED; }
.tk-hcard.give .btn.lg { white-space: nowrap; }
.tk-link-btn { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: 13px; cursor: pointer; margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding: 4px; }
.tk-link-btn:hover { text-decoration: underline; }
.tk-now-name { min-height: 22px; font-weight: 600; margin: -4px 0 10px; overflow-wrap: anywhere; }
.tk-now-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-waitlist { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; }
.tk-waitlist .chip { height: 28px; padding: 0 10px; font-size: 12.5px; }
.tk-online { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; }
.tk-online.off { background: var(--surface-2, #F6F8FC); }
.tk-on-l { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1 1 300px; min-width: 0; line-height: 1.35; }
.tk-on-r { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-listbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tk-listbar select.tk-morefilter { width: auto; flex: 0 0 auto; height: 40px; font-size: 13.5px; font-weight: 600; padding-right: 30px; }
.tk-sbar .tk-sbar-l { flex: 1 1 auto; }
.tk-sbar-l select.input { width: auto; max-width: 260px; flex: 0 1 auto; }
.tk-morefilter.on { border-color: var(--orange); color: var(--orange); }
.tk-search { flex: 1 1 170px; margin-left: auto; max-width: 340px; }
.tk-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.tk-tags .tk-src { margin-top: 0; }
.tk-src.ok { background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; gap: 3px; }
.tk-src.ok .icon { width: 11px; height: 11px; }
.tk-src.plain { background: var(--surface-2, #F1F4F9); color: var(--muted); }
.tk-more { font-size: 18px; font-weight: 800; line-height: 1; }
.tk-menu { display: flex; flex-direction: column; gap: 6px; }
.tk-menu > * { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; text-decoration: none; }
.tk-menu > *:hover { border-color: var(--navy); }
.tk-menu span { display: flex; flex-direction: column; }
.tk-menu small { color: var(--muted); font-size: 12px; }
.tk-menu .red-t, .tk-menu .red-t .icon { color: var(--red); }
.tk-steps { text-align: left; display: inline-flex; flex-direction: column; gap: 10px; margin: 18px auto 22px; padding-left: 22px; font-size: 14.5px; }
.tk-steps .ml { display: block; font-size: 12.5px; }
.tk-pub-st { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; margin: 4px 0 8px; }
.tk-pub-st.ok { color: var(--green); }
.tk-pub-st.bad { color: var(--red); }
.tk-link { margin-bottom: 8px; }
.tk-link .input { font-size: 12.5px; height: 36px; background: var(--surface-2, #F6F8FC); }
.tk-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tk-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.tk-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.tk-stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tk-stat.st-wait b { color: #B45309; } .tk-stat.st-coll b { color: var(--blue); } .tk-stat.st-app b { color: #7C3AED; } .tk-stat.st-done b, .tk-stat.st-money b { color: var(--green); }
.tk-filter { max-width: 100%; }
.tk-table td.tk-no b { display: block; font-size: 17px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.tk-table td.tk-no small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.tk-table td.tk-who { min-width: 160px; overflow-wrap: anywhere; }
.tk-table tr.tk-serving td { background: #FFF8EC; }
.tk-table tr.tk-serving td.tk-no b::after { content: ' ◀'; color: var(--orange); font-size: 12px; }
.tk-src { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #EEF2FF; color: var(--blue); }
.tk-src.batch { background: #F3E8FF; color: #7C3AED; }
.tk-sel { height: 34px; font-size: 13px; font-weight: 600; padding: 0 28px 0 10px; width: auto; min-width: 130px; }
.tk-sel.st-wait { background-color: #FFF7E6; color: #B45309; }
.tk-sel.st-coll { background-color: #EEF4FF; color: var(--blue); }
.tk-sel.st-app { background-color: #F3E8FF; color: #7C3AED; }
.tk-sel.st-done { background-color: var(--green-soft); color: var(--green); }
.tk-sel.st-cancel { background-color: var(--red-soft); color: var(--red); }
.tk-paid { border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 2px 9px; cursor: pointer; margin-left: 4px; }
.tk-paid.on { background: var(--green-soft); color: var(--green); border-color: #bfe3cf; }
.tk-table .actions { flex-wrap: nowrap; }
.tk-st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.tk-intro { text-align: center; max-width: 640px; margin: 10px auto; padding: 30px 24px; }
.tk-intro h2 { margin: 10px 0 6px; }
.tk-intro-ic { width: 64px; height: 64px; border-radius: 18px; background: #F3E8FF; color: #7C3AED; display: grid; place-items: center; margin: 0 auto; }
.tk-intro-ic .icon { width: 30px; height: 30px; }
.tk-feat { list-style: none; padding: 0; margin: 18px auto 22px; text-align: left; display: inline-flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tk-feat li { display: flex; gap: 8px; align-items: flex-start; }
.tk-feat .icon { color: var(--green); flex: none; margin-top: 2px; }
.tk-next-big, .tk-issued { text-align: center; padding: 6px 0 14px; }
.tk-next-big small, .tk-issued small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.tk-next-big b { font-size: 40px; font-weight: 800; color: #7C3AED; }
.tk-issued b { display: block; font-size: 64px; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 4px 0 6px; }
.tk-issued div { font-weight: 700; }
.tk-hno { color: #7C3AED; }
.tk-chips { gap: 6px; }
.tk-radio { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-radio label { position: relative; cursor: pointer; }
.tk-radio input { position: absolute; opacity: 0; pointer-events: none; }
.tk-radio span { display: inline-flex; flex-direction: column; justify-content: center; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--surface); }
.tk-radio input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.tk-radio input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 1px; }
.tk-radio.wide { flex-direction: column; }
.tk-radio.wide span { width: 100%; }
.tk-radio.wide span small { font-weight: 400; font-size: 12.5px; opacity: .8; }
.tk-radio.wide input:checked + span { background: #F0F3FA; color: var(--text); box-shadow: 0 0 0 1px var(--navy) inset; }
.tkf-h { margin: 18px 0 10px; font-size: 15px; color: var(--navy); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.tkf-h .ml { font-weight: 500; color: var(--muted); font-size: 13px; }
.tkf-bar { background: var(--navy); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 700; text-align: center; }
.tkf .up, .tkf [autocapitalize="characters"] { text-transform: uppercase; }
.tk-bonus { gap: 8px; margin-top: 8px; }
.tk-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; }
.tk-opt { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: center; }
.tk-opt b { font-size: 12.5px; color: var(--muted); text-align: right; }
.tk-opt .input { height: 36px; padding: 0 8px; font-size: 13.5px; }
.tk-printopts { display: flex; flex-direction: column; gap: 8px; }
.tk-po { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.tk-po:has(input:checked) { border-color: var(--orange); background: #E3F1EC; }
.tk-po:has(input:disabled) { opacity: .5; cursor: default; }
.tk-po input { margin-top: 3px; accent-color: var(--orange); }
.tk-po span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.tk-po small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) { .tk-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tk-hero { grid-template-columns: 1fr; gap: 10px; }
  .tk-big { font-size: 42px; }
  .tk-sbar-r { margin-left: 0; }
  .tk-search { max-width: none; flex-basis: 100%; }
  .tk-listbar .tk-filter { flex: 1 1 100%; }
  .tk-opts { grid-template-columns: 1fr; }
  .tk-filter { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  .tk-filter a { white-space: nowrap; padding: 7px 12px; }
  .table-wrap:has(.tk-table) { overflow: visible; }
  .tk-table, .tk-table tbody { display: block; width: 100%; min-width: 0; }
  .tk-table thead { display: none; }
  .tk-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tk-table tr:last-child { border-bottom: 0; }
  .tk-table td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; background: none !important; }
  .tk-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .tk-table td.tk-who { min-width: 0; }
  .tk-table td.tk-act { grid-column: 1 / -1; }
  .tk-table td.tk-act .actions { justify-content: flex-start; flex-wrap: wrap; }
  .tk-table tr.tk-serving { background: #FFF8EC; }
  .tk-sel { min-width: 0; width: 100%; }
}

/* ---- Now serving display (TV / second screen) ---- */
body.tk-display-on .sidebar, body.tk-display-on .topbar, body.tk-display-on .bottom-nav { display: none !important; }
body.tk-display-on .shell { display: block; }
body.tk-display-on .content { padding: 0 !important; max-width: none; }
.tk-disp { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 35%, #1F7CC0 0%, #1e3582 55%, #18222D 100%); color: #fff; display: flex; flex-direction: column; padding: 28px 40px; overflow: hidden; }
.tkd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.tkd-top b { display: block; font-size: clamp(20px, 2.6vw, 34px); }
.tkd-top span { font-size: clamp(14px, 1.6vw, 20px); color: #8FDCC5; font-weight: 600; }
.tkd-clock { font-size: clamp(20px, 2.6vw, 34px); font-weight: 700; font-variant-numeric: tabular-nums; }
.tkd-main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 0; }
.tkd-lbl { font-size: clamp(18px, 2.6vw, 36px); letter-spacing: .14em; font-weight: 700; color: #C7D2EE; }
.tkd-no { font-size: clamp(110px, 24vw, 340px); font-weight: 800; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; text-shadow: 0 10px 40px rgba(0,0,0,.35); }
.tkd-no.flash { animation: tkFlash 1.2s ease 2; }
@keyframes tkFlash { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.08); color: #fff; } }
.tkd-name { font-size: clamp(22px, 3.6vw, 52px); font-weight: 700; min-height: 1.2em; }
.tkd-next { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: rgba(255,255,255,.08); border-radius: 18px; padding: 14px 20px; }
.tkd-nl { font-weight: 700; color: #C7D2EE; font-size: clamp(16px, 1.8vw, 24px); }
#tkdNext { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
#tkdNext span { background: rgba(255,255,255,.14); border-radius: 12px; padding: 6px 16px; font-size: clamp(20px, 2.6vw, 36px); font-weight: 800; font-variant-numeric: tabular-nums; }
#tkdNext em { opacity: .6; }
.tkd-wait { color: #C7D2EE; font-weight: 600; font-size: clamp(14px, 1.4vw, 20px); }
.tkd-tools { position: absolute; top: 14px; left: 50%; transform: translate(-50%, -140%); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; background: rgba(0,0,0,.45); padding: 8px; border-radius: 14px; transition: transform .25s; }
.tkd-tools.show { transform: translate(-50%, 0); }
.tkd-tools .btn { background: rgba(255,255,255,.14); color: #fff; }
.tkd-start { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: rgba(17,28,56,.82); }
.tkd-start small { color: #C7D2EE; }
@media (max-width: 640px) { .tk-disp { padding: 18px; } }

/* ---- printing (forms, token slips, QR poster) ---- */
#tkPrint { display: none; }
@media print {
  body.print-tk > :not(#tkPrint) { display: none !important; }
  body.print-tk #tkPrint { display: block; }
  body.print-tk { background: #fff !important; }
  @page tkA4 { size: A4; margin: 7mm; }
  @page tkslip { size: 80mm auto; margin: 3mm; }
}
#tkPrint { color: #111; font-family: 'Manrope', 'Anek Malayalam', system-ui, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#tkPrint .ml { font-family: 'Anek Malayalam', 'Manrope', sans-serif; }
.tkp-page { page: tkA4; width: 196mm; height: 282mm; box-sizing: border-box; overflow: hidden; break-after: page; position: relative; font-size: 9.5pt; display: flex; flex-direction: column; }
.tkp-page:last-child { break-after: auto; }
.tkp-head { display: flex; justify-content: space-between; align-items: center; gap: 6mm; }
.tkp-intro { font-size: 9pt; line-height: 1.35; max-width: 82mm; }
.tkp-phone { display: flex; align-items: center; gap: 2mm; }
.tkp-ph-l { text-align: right; line-height: 1.05; }
.tkp-ph-l small { display: block; font-size: 8.5pt; font-weight: 600; }
.tkp-ph-l b { font-size: 15pt; }
.tkp-ph-ic { width: 10mm; height: 10mm; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 14pt; }
.tkp-ph-box { width: 66mm; height: 9mm; border: .5mm solid #111; border-radius: 3mm; display: flex; align-items: center; padding: 0 3mm; font-size: 13pt; font-weight: 700; letter-spacing: .06em; }
.tkp-nb { font-size: 8.2pt; font-style: italic; margin: 1.5mm 0 2mm; }
.tkp-titlerow { display: grid; grid-template-columns: 46mm 1fr; gap: 3mm; margin-bottom: 2.5mm; }
.tkp-token { display: flex; flex-direction: column; gap: 1.5mm; }
.tkp-tbox { border: .5mm solid #111; border-radius: 3mm; text-align: center; padding: 1.5mm 2mm; min-height: 14mm; display: flex; flex-direction: column; justify-content: center; }
.tkp-tbox small { font-size: 10pt; font-weight: 800; letter-spacing: .04em; }
.tkp-tbox b { font-size: 17pt; font-weight: 800; min-height: 7mm; }
.tkp-date { border: .5mm solid #111; border-radius: 3mm; text-align: center; padding: 1.2mm; font-weight: 700; font-size: 10.5pt; }
.tkp-title { border: .5mm solid #111; border-radius: 3mm; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2mm; }
.tkp-t1 { display: flex; align-items: flex-end; gap: 3mm; }
.tkp-t1 small { font-size: 9.5pt; font-weight: 800; text-align: right; line-height: 1.05; }
.tkp-t1 b { font-size: 21pt; font-weight: 800; line-height: 1; }
.tkp-gen .tkp-t1 b { font-size: 17pt; }
.tkp-shop { font-size: 9pt; font-weight: 600; margin-top: 1.5mm; color: #333; text-align: center; }
.tkp-bar { background: #111; color: #fff; border-radius: 5mm; text-align: center; font-weight: 700; font-size: 9.5pt; padding: 1.6mm 4mm; margin: 1mm 0 2mm; }
.tkp-rows { display: flex; flex-direction: column; gap: 1.6mm; }
.tkp-row { display: grid; grid-template-columns: 40mm 1fr; align-items: center; }
.tkp-lbl { line-height: 1.05; }
.tkp-lbl b { display: block; font-size: 9.5pt; }
.tkp-lbl span { font-size: 8.5pt; font-weight: 600; }
.tkp-val { display: flex; align-items: center; gap: 1.6mm; min-width: 0; }
.tkp-val.col { flex-direction: column; align-items: stretch; gap: 1mm; }
.tkp-boxes { display: flex; flex: none; }
.tkp-boxes span { width: 7.2mm; height: 6.6mm; border: .3mm solid #111; margin-left: -.3mm; display: grid; place-items: center; font-weight: 700; font-size: 10.5pt; }
.tkp-boxes span:first-child { margin-left: 0; }
.tkp-boxes .sep { width: 2mm; background: #111; }
.tkp-boxes.dob span { width: 6.4mm; }
.tkp-boxes.reg span, .tkp-boxes.aad span { width: 5.6mm; }
.tkp-boxes.aad { margin-right: 1.4mm; }
.tkp-boxes.code span, .tkp-boxes.yr span { width: 6.2mm; }
.tkp-boxes.mob span { width: 6.6mm; }
.tkp-boxes.pin { align-self: flex-end; }
.tkp-boxes.pin span { width: 7mm; }
.tkp-line { flex: 1; min-width: 0; height: 6.6mm; border: .3mm solid #111; display: flex; align-items: center; padding: 0 2mm; font-weight: 700; font-size: 10pt; white-space: nowrap; overflow: hidden; }
.tkp-line.month { flex: 0 0 22mm; }
.tkp-gap { width: 3mm; }
.tkp-tag { display: inline-flex; align-items: center; border: .3mm solid #111; border-radius: 1.2mm; height: 6.6mm; overflow: hidden; flex: none; }
.tkp-tag b { padding: 0 2.2mm; font-size: 9pt; }
.tkp-tag.dark b { background: #111; color: #fff; height: 100%; display: flex; align-items: center; }
.tkp-tag.sm b { padding: 0 1.6mm; font-size: 8.5pt; }
.tkp-ck { width: 6mm; height: 100%; border-left: .3mm solid #111; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 11pt; }
.tkp-mini { display: inline-flex; flex-direction: column; line-height: 1; font-size: 7.5pt; text-align: center; flex: none; }
.tkp-mini b { font-size: 7.8pt; }
.tkp-mini.dark { background: #111; color: #fff; padding: 1mm 2mm; border-radius: 1.2mm; }
.tkp-addr { min-height: 19.5mm; line-height: 6.5mm; font-weight: 700; font-size: 10pt; background: repeating-linear-gradient(to bottom, transparent 0, transparent 6.1mm, #555 6.1mm, #555 6.4mm); background-size: 100% 6.5mm; padding-left: 1mm; text-transform: uppercase; overflow-wrap: anywhere; }
.tkp-dots { display: flex; gap: 3mm; align-items: flex-end; margin: 2.2mm 0 0; }
.tkp-dl { display: flex; align-items: flex-end; gap: 1mm; flex: 1; min-width: 0; }
.tkp-dl i { font-style: normal; font-weight: 700; font-size: 9.5pt; white-space: nowrap; }
.tkp-dl em { flex: 1; min-width: 0; border-bottom: .35mm dotted #111; font-style: normal; font-weight: 700; font-size: 10pt; min-height: 5mm; padding: 0 1mm; white-space: nowrap; overflow: hidden; text-transform: uppercase; }
.tkp-cat { display: flex; align-items: center; gap: 1.2mm; flex: none; }
.tkp-cat > b { font-size: 9.5pt; }
.tkp-dots.bonus { margin-bottom: 2.5mm; }
.tkp-dots.bonus .tkp-dl em { font-size: 8.5pt; }
.tkp-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; }
.tkp-opt { border-collapse: collapse; width: 100%; font-size: 9pt; }
.tkp-opt th, .tkp-opt td { border: .3mm solid #111; text-align: center; height: 5.9mm; padding: 0 1mm; font-weight: 700; }
.tkp-opt th { font-size: 7.6pt; height: 7mm; }
.tkp-opt th:first-child, .tkp-opt td:first-child { width: 7mm; font-size: 8.5pt; }
.tkp-foot { font-size: 7.8pt; text-align: center; margin-top: 2mm; line-height: 1.3; }
.tkp-cut { position: relative; border-top: .35mm dashed #111; margin: 3.5mm 0 2.5mm; }
.tkp-cut span { position: absolute; left: 4mm; top: -3.2mm; background: #fff; padding: 0 1mm; font-size: 11pt; }
.tkp-slip { display: flex; gap: 4mm; align-items: center; }
.tkp-slip-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2mm; }
.tkp-slip-l .tkp-dots { margin: 0; }
.tkp-slip-r2 { display: flex; align-items: center; gap: 1.6mm; }
.tkp-slip-r2 > b { font-size: 9pt; margin-right: 1mm; }
.tkp-tbox.slip { width: 44mm; flex: none; }
.tkp-slip2 { display: flex; justify-content: space-between; align-items: center; gap: 4mm; border: .5mm solid #111; border-radius: 3mm; padding: 2mm 3mm; margin-top: 2.5mm; }
.tkp-slip2 > .ml { font-size: 8.5pt; max-width: 80mm; line-height: 1.3; }
.tkp-slip2 .tkp-ph-box { width: 58mm; }
/* general form */
.tkp-glist { display: flex; flex-direction: column; gap: 3mm; margin-top: 3mm; }
.tkp-grow { display: grid; grid-template-columns: 42mm 1fr; align-items: end; }
.tkp-gval { border-bottom: .35mm dotted #111; min-height: 8mm; font-weight: 700; font-size: 11pt; padding: 0 1mm 1mm; white-space: pre-wrap; overflow-wrap: anywhere; }
.tkp-grow.tall .tkp-gval { min-height: 20mm; line-height: 7mm; background: repeating-linear-gradient(to bottom, transparent 0, transparent 6.6mm, #555 6.6mm, #555 6.9mm); border: 0; }
.tkp-grow.taller .tkp-gval { min-height: 48mm; line-height: 7mm; background: repeating-linear-gradient(to bottom, transparent 0, transparent 6.6mm, #555 6.6mm, #555 6.9mm); border: 0; }
.tkp-sign { margin-top: auto; text-align: right; padding: 14mm 4mm 0; }
.tkp-sign span { border-top: .35mm solid #111; padding: 1mm 8mm 0; font-size: 9pt; font-weight: 600; }
/* instructions page */
.tkp-tips { font-size: 10.6pt; line-height: 1.5; }
.tkp-tips-h { background: #111; color: #fff; border-radius: 4mm; text-align: center; font-weight: 700; font-size: 13pt; padding: 2mm; margin: 2mm 0 3mm; }
.tkp-tips ul { margin: 0 0 3mm; padding-left: 5mm; }
.tkp-tips li { margin-bottom: 2.2mm; }
.tkp-tips ul.tkl-bar { list-style: none; padding-left: 0; }
.tkp-tips ul.tkl-bar li { border-left: 1mm solid #111; padding-left: 2.5mm; }
.tkp-tips p { margin: 0 0 2mm; }
.tkp-tips .just { text-align: justify; }
.tkp-tips-f { margin-top: auto; text-align: center; font-weight: 700; font-size: 10pt; border-top: .3mm solid #999; padding-top: 2mm; }
/* token slip (80 mm receipt printer) */
.tkp-slips { width: 72mm; }
.tkp-slipcard { page: tkslip; break-after: page; text-align: center; padding: 2mm 0 4mm; font-size: 10pt; }
.tkp-slipcard:last-child { break-after: auto; }
.tkp-slipcard .sc-shop { font-weight: 800; font-size: 13pt; }
.tkp-slipcard .sc-sub { font-size: 8.5pt; }
.tkp-slipcard .sc-season { margin: 2mm 0; font-weight: 700; border-top: .3mm dashed #111; border-bottom: .3mm dashed #111; padding: 1.2mm 0; }
.tkp-slipcard .sc-lbl { font-size: 9pt; font-weight: 700; letter-spacing: .05em; }
.tkp-slipcard .sc-no { font-size: 38pt; font-weight: 800; line-height: 1.05; }
.tkp-slipcard .sc-row { font-size: 9.5pt; margin-top: 1mm; }
.tkp-slipcard .sc-note { font-size: 8.5pt; margin-top: 2mm; text-align: left; border: .3mm solid #111; border-radius: 1.5mm; padding: 1.5mm; }
.tkp-slipcard .sc-qr { display: flex; align-items: center; gap: 2mm; margin-top: 2mm; text-align: left; font-size: 8pt; }
.tkp-slipcard .sc-qr img { width: 22mm; height: 22mm; }
.tkp-slipcard .sc-foot { font-size: 8.5pt; margin-top: 2mm; }
/* QR poster */
.tkp-qrp { align-items: center; text-align: center; justify-content: center; gap: 3mm; border: 1.2mm solid #1C2D57; border-radius: 8mm; padding: 12mm; }
.tkp-qrp .qp-shop { font-size: 22pt; font-weight: 800; color: #1C2D57; }
.tkp-qrp .qp-season { font-size: 16pt; font-weight: 700; color: #D9801C; }
.tkp-qrp .qp-h { font-size: 24pt; font-weight: 800; margin-top: 4mm; }
.tkp-qrp .qp-sub { font-size: 13pt; }
.tkp-qrp .qp-qr { width: 120mm; height: 120mm; margin: 4mm 0; }
.tkp-qrp .qp-steps { display: flex; gap: 4mm; font-weight: 700; font-size: 12pt; }
.tkp-qrp .qp-steps span { background: #1C2D57; color: #fff; border-radius: 99px; padding: 1.5mm 5mm; }
.tkp-qrp .qp-link { font-size: 11pt; margin-top: 2mm; word-break: break-all; }
.tkp-qrp .qp-last { font-size: 13pt; }
.tkp-qrp .qp-ph { font-size: 16pt; font-weight: 800; }
.tkf .input::placeholder { text-transform: none; }
/* compact A4 so the tear-off slip fits on the same page */
.tkp-rows { gap: 1.1mm; }
.tkp-boxes span, .tkp-line, .tkp-tag { height: 6mm; }
.tkp-addr { min-height: 18mm; line-height: 6mm; background-size: 100% 6mm; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 5.6mm, #555 5.6mm, #555 5.9mm); }
.tkp-dots { margin-top: 1.6mm; }
.tkp-dots.bonus { margin-bottom: 1.8mm; }
.tkp-opt th, .tkp-opt td { height: 5.15mm; }
.tkp-opt th { height: 6mm; }
.tkp-tbox { min-height: 12mm; padding: 1mm 2mm; }
.tkp-bar { padding: 1.3mm 4mm; margin: .8mm 0 1.6mm; }
.tkp-head { margin-bottom: 0; }
.tkp-nb { margin: 1mm 0 1.6mm; }
.tkp-titlerow { margin-bottom: 1.8mm; }
.tkp-foot { margin-top: 1.4mm; }
.tkp-cut { margin: 2.8mm 0 2.2mm; }
.tkp-slip-l { gap: 1.6mm; }
.tkp-slip2 { margin-top: 2mm; padding: 1.5mm 3mm; }.tkp-opt td { height: 4.9mm; }
.tkp-slip2 { margin-top: 1.6mm; }
.tkp-cut { margin: 2.4mm 0 2mm; }
.tkp-tips ul.tkl-dot { list-style: disc; }
.tkp-tips ul.tkl-dot li { display: list-item; }
.tkp-tips { font-size: 10pt; line-height: 1.42; }
.tkp-tips li { margin-bottom: 1.6mm; }

/* ---- Degree (CAP) form ---- */
.tk-opts.deg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-opt.wide { grid-template-columns: 26px minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 760px) { .tk-opts.deg { grid-template-columns: 1fr; } }
.tkp-brand { display: flex; justify-content: space-between; align-items: center; gap: 4mm; border: .4mm solid #111; border-radius: 4mm; padding: 2.5mm 4mm; min-height: 14mm; margin-bottom: 3mm; }
.tkp-brand-l b { display: block; font-size: 13pt; }
.tkp-brand-l small { font-size: 8.5pt; }
.tkp-brand .tkp-ph-box { width: 62mm; }
.tkp-title.dark { background: #111; color: #fff; border-color: #111; }
.tkp-title.dark .tkp-shop { color: #ddd; }
.tkp-deg .tkp-t1 b { font-size: 20pt; letter-spacing: .06em; }
.tkp-row.dg { grid-template-columns: 50mm 1fr; }
.tkp-row.dg .tkp-lbl b { font-size: 8.4pt; font-weight: 800; }
.tkp-row.dg .tkp-lbl span { font-size: 6.6pt; font-weight: 700; display: block; }
.tkp-deg .tkp-rows { gap: 1.5mm; }
.tkp-uline { flex: 1; min-width: 0; border-bottom: .35mm solid #555; min-height: 6mm; font-weight: 700; font-size: 10pt; padding: 0 1mm; display: flex; align-items: flex-end; white-space: nowrap; overflow: hidden; text-transform: uppercase; }
.tkp-uline.email { text-transform: none; }
.tkp-boxes.reg2 span { width: 6.4mm; }
.tkp-boxes.par span { width: 7.4mm; }
.tkp-boxes.aad12 span { width: 7mm; }
.tkp-deg .tkp-addr { min-height: 15mm; }
.tkp-deg .tkp-tag b { font-size: 8pt; padding: 0 1.6mm; }
.tkp-deg .tkp-mini { font-size: 6.8pt; }
.tkp-deg .tkp-mini b { font-size: 7.2pt; }
.tkp-capblk { display: grid; grid-template-columns: 1fr 44mm 38mm; gap: 5mm; margin-top: 3mm; align-items: stretch; }
.tkp-cap { display: flex; flex-direction: column; gap: 2.4mm; justify-content: center; }
.tkp-cap div { display: grid; grid-template-columns: 30mm 1fr; align-items: center; }
.tkp-cap b { font-size: 10pt; }
.tkp-cap span { border: .4mm solid #111; border-radius: 2mm; height: 8.5mm; display: flex; align-items: center; padding: 0 3mm; font-weight: 700; font-size: 11pt; }
.tkp-docs { display: flex; flex-direction: column; gap: 1.4mm; align-items: flex-end; }
.tkp-docs > b { font-size: 11pt; text-decoration: underline; align-self: center; }
.tkp-docs div { display: flex; align-items: center; gap: 2mm; font-size: 10pt; }
.tkp-docs i { width: 6mm; height: 6mm; border: .35mm solid #111; border-radius: 1.2mm; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.tkp-photo { border: .4mm solid #999; border-radius: 3mm; display: grid; place-items: center; color: #aaa; font-weight: 700; min-height: 40mm; }
.tkp-dbar { background: #111; color: #fff; border-radius: 2mm; padding: 2mm 4mm; font-size: 8.6pt; font-weight: 700; text-align: center; line-height: 1.4; }
.tkp-p2tok { margin-top: 3mm; font-size: 10pt; }
.tkp-dopt-h { font-size: 14pt; font-weight: 800; margin: 5mm 0 1.5mm 2mm; }
.tkp-dopt { width: 100%; border-collapse: collapse; font-size: 10pt; }
.tkp-dopt th, .tkp-dopt td { border: .3mm solid #777; padding: 0 2mm; height: 7.6mm; font-weight: 700; text-align: left; }
.tkp-dopt th { font-size: 11pt; text-align: center; height: 11mm; }
.tkp-dopt th:first-child, .tkp-dopt td:first-child { width: 13mm; text-align: center; font-size: 9.5pt; }
.tkp-dopt th:last-child { width: 62mm; }.tkp-dl.keep em { text-transform: none; }
.tkp-dopt th, .tkp-dopt td { height: 7.1mm; }
.tkp-dopt th { height: 10mm; }
.tkp-dopt-h { margin-top: 4mm; }
.tk-opts.deg { grid-template-columns: 1fr; max-width: 760px; }

/* ---- Print Tokens (numbered paper token slips on A4) ---- */
.tkt-wrap { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 18px; align-items: start; }
.tkt-form .field > span, .tkt-lbl { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.tkt-form small.ml { font-weight: 500; color: var(--muted); }
.tkt-q { background: #F0FDFA; border: 1px solid #CCFBF1; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.tkt-q .field { margin-bottom: 8px; }
.tkt-lbl { font-size: 15px !important; color: var(--navy); }
.tkt-count { font-size: 26px; font-weight: 800; height: 54px; text-align: center; }
.tkt-shopd { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 4px; }
.tkt-shopd summary { cursor: pointer; font-weight: 600; font-size: 13.5px; display: flex; gap: 6px; align-items: center; }
.tkt-sum { background: var(--surface-2, #F6F8FC); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; text-align: center; }
.tkt-prevbox { position: sticky; top: 14px; min-width: 0; }
.tkt-prevbox > .small { margin-bottom: 6px; }
.tkt-prev { overflow: hidden; }
.tkt-prev .tkt-page { zoom: .62; background: #fff; box-shadow: 0 6px 24px rgba(15, 23, 42, .12); border-radius: 4px; outline: 7mm solid #fff; margin: 7mm; color: #111; font-family: 'Manrope', 'Anek Malayalam', system-ui, sans-serif; }
.tkt-page { width: 196mm; height: 283mm; box-sizing: border-box; display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); grid-template-rows: repeat(var(--r), minmax(0, 1fr)); gap: 4mm; align-content: start; font-size: 8.5pt; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tkt-page.s12 { font-size: 7.6pt; }
.tkt-page.s8 { font-size: 7.8pt; }
.tkt-page.s8 .tkt-fl { margin-top: .45em; }
.tkt-page.s8 .tkt-cut { margin: 1.2mm -3mm 1.6mm; }
.tkt-page.s4 { font-size: 12pt; }
.tkt-print .tkt-page { page: tkA4; break-after: page; }
.tkt-print .tkt-page:last-child { break-after: auto; }
.tkt-card { border: .3mm solid #222; border-radius: 5mm; padding: 2.6mm 3mm 2.2mm; display: flex; flex-direction: column; min-height: 0; overflow: hidden; break-inside: avoid; }
.tkt-top, .tkt-bot { flex: 1 1 0; }
.tkt-bot { display: flex; flex-direction: column; justify-content: space-between; }
.tkt-page.s4 .tkt-fl { margin-top: 1em; }
.tkt-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6mm; }
.tkt-box { border: .3mm solid #222; border-radius: 2.6mm 2.6mm 3.4mm 3.4mm; overflow: hidden; text-align: center; min-width: 0; }
.tkt-box i { display: block; background: #111; color: #fff; font-style: normal; font-weight: 700; font-size: .82em; padding: .25em .2em; white-space: nowrap; }
.tkt-box b { display: flex; align-items: center; justify-content: center; height: 1.25em; font-size: 2.2em; font-weight: 800; line-height: 1; letter-spacing: .02em; overflow: hidden; }
.tkt-box.tkt-svc b { font-size: 1.15em; height: 2.4em; padding: 0 .3em; line-height: 1.1; overflow-wrap: anywhere; }
.tkt-dash { display: inline-block; width: 55%; border-bottom: .8mm dashed #111; }
.tkt-shop { font-weight: 800; font-size: 1.45em; text-transform: uppercase; line-height: 1.1; margin-top: .45em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tkt-addr { font-size: .95em; line-height: 1.2; margin-top: .15em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tkt-mob { font-weight: 700; margin-top: .15em; }
.tkt-cut { position: relative; border-top: .3mm dashed #555; margin: 1.6mm -3mm 2mm; }
.tkt-cut span { position: absolute; left: .6mm; top: -.72em; font-size: 1.35em; line-height: 1; background: #fff; padding-right: .5mm; }
.tkt-fl { display: flex; align-items: flex-end; gap: .4em; margin-top: .6em; }
.tkt-fl span { white-space: nowrap; font-weight: 600; }
.tkt-fl small { font-size: .78em; font-weight: 500; }
.tkt-fl em { flex: 1; min-width: 0; border-bottom: .25mm dotted #333; min-height: 1.15em; font-style: normal; font-weight: 600; }
@media (max-width: 1000px) {
  .tkt-wrap { grid-template-columns: 1fr; }
  .tkt-prevbox { position: static; }
  .tkt-prev .tkt-page { zoom: .44; }
}
/* ---- My brand & profile → automatic brand strip designs ---- */
.bs-h { font-size: 13px; font-weight: 700; color: var(--navy); margin: 14px 0 8px; }
.bs-h .muted { font-weight: 500; }
.bs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bs-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s; }
.bs-opt:hover { border-color: #cbd5e1; }
.bs-opt.on { border-color: var(--orange); background: #FFF7ED; }
.bs-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bs-opt input:focus-visible + img { outline: 2px solid var(--orange); outline-offset: 2px; }
.bs-opt img { width: 100%; aspect-ratio: 1080 / 222; border-radius: 6px; display: block; background: #e2e8f0; }
.bs-opt span { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 2px; }
.bs-opt em { font-style: normal; color: var(--orange); display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; }
@media (max-width: 520px) { .bs-grid { grid-template-columns: 1fr; } }
/* ---- Request Service Poster (customer) + Poster requests (admin) ---- */
.rq-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
/* referral program */
.nav a.nav-referral { margin-top: 10px; background: rgba(15, 118, 110, .28); box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .35); }
.nav a.nav-referral.active, .nav a.nav-referral:hover { background: rgba(15, 118, 110, .5); }
.ref-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.ref-code-card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ref-code { font: 800 34px/1.1 'Manrope', sans-serif; letter-spacing: .08em; color: var(--navy); padding: 12px 16px; border: 2px dashed #9fb3d9; border-radius: 12px; background: var(--navy-soft); width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.ref-link { overflow-wrap: anywhere; }
.ref-how { line-height: 1.65; font-size: 14.5px; min-width: 0; }
.ref-how ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ref-stats .card { display: grid; gap: 2px; }
.ref-stats b { font-size: 26px; }
.t-green { color: var(--green); } .t-orange { color: #C2410C; }
.ref-list { display: grid; }
.ref-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 20px 22px; margin-bottom: 16px; background: linear-gradient(120deg, #0F766E, #134E4A); color: #fff; border: 0; }
.ref-wallet-main { display: flex; align-items: center; gap: 14px; flex: 1 1 240px; min-width: 0; }
.ref-wallet-ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex: 0 0 auto; }
.ref-wallet-ic .icon { width: 26px; height: 26px; }
.ref-wallet-lbl { opacity: .85; }
.ref-bal { font: 800 36px/1.1 'Manrope', sans-serif; }
.ref-wallet-side { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 26px; }
.ref-wallet-side > div { display: grid; }
.ref-wallet-side span { opacity: .8; }
.ref-wallet-side b { font-size: 18px; }
.ref-amount { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.ref-amt-in { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 18px; }
.ref-amt-in .input { width: 120px; font-weight: 700; }
.ref-stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ref-wf { display: grid; grid-template-columns: 150px 120px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 12px; }
.ref-wf2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; align-items: end; }
.ref-wf2 .field label { font-size: 12.5px; }
.ref-wf2 > .btn { grid-column: 3; }
@media (max-width: 600px) { .ref-wf2 { grid-template-columns: 1fr 1fr; } .ref-wf2 > .btn { grid-column: 1 / -1; } }
.ref-preq { margin-bottom: 16px; border: 1px solid #FDBA74; }
.ref-preq .card-head { flex-wrap: wrap; gap: 4px 12px; }
.ref-preq > .ref-row { padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 8px 12px; }
.ref-wh { max-height: 320px; overflow: auto; border-top: 1px solid var(--line); }
.ref-wh .ref-row { padding: 10px 2px; }
@media (max-width: 900px) { .ref-stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ref-wf { grid-template-columns: 1fr 1fr; } }
.ref-info { white-space: pre-wrap; background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; border-radius: 12px; padding: 12px 16px; margin: -4px 0 16px; line-height: 1.65; font-size: 14.5px; }
.ref-mk { margin-bottom: 16px; }
.ref-mk .card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ref-size { width: auto; max-width: 220px; height: 36px; }
.ref-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ref-poster { display: grid; gap: 8px; align-content: start; min-width: 0; }
.ref-thumb { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f3f5f9; cursor: zoom-in; display: block; }
.ref-thumb img { display: block; width: 100%; height: auto; }
.ref-ptitle { font-size: 14px; overflow-wrap: anywhere; }
.ref-msgs { display: grid; gap: 10px; margin-top: 18px; }
.ref-msgs h4 { margin: 0; }
.ref-msg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.ref-msg p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; color: var(--text); }
.ref-big { display: block; width: 100%; height: auto; border-radius: 10px; }
.ref-cap { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13.5px; background: #f5f7fb; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
@media (max-width: 760px) { .ref-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .ref-poster .btn.sm { padding: 0 8px; } }
.ref-payout { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px; }
.ref-payout-btn { background: #fff; color: #0F766E; border: 0; font-weight: 700; }
.ref-payout-btn:hover:not(:disabled) { background: #ECFDF5; }
.ref-payout-btn:disabled { opacity: .55; cursor: not-allowed; }
.ref-payout-st { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 100%; background: rgba(255, 255, 255, .14); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.ref-payout-note { opacity: .85; }
.ref-renew { flex: 1 1 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.ref-renew .ref-amt-in { width: 100%; }
#refShortF { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
/* Distributor portal (/partner) */
body.partner { background: var(--bg, #f5f7fb); min-height: 100vh; }
.pt-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px max(16px, calc((100vw - 1100px) / 2)); background: #1e3582; color: #fff; }
.pt-logo { height: 30px; width: auto; }
.pt-tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #F2A93B; }
.pt-who { font-weight: 600; font-size: 14px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-bar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.pt-main { max-width: 1100px; margin: 0 auto; padding: 18px 16px 40px; display: grid; gap: 16px; }
.pt-hero { display: flex; flex-wrap: wrap; gap: 18px; padding: 20px; align-items: center; justify-content: space-between; }
.pt-hello { flex: 1 1 320px; min-width: 0; }
.pt-hello h1 { margin: 2px 0 6px; font-size: 24px; }
.pt-hello p { margin: 0; line-height: 1.7; }
.pt-code { flex: 0 1 380px; min-width: 0; background: linear-gradient(135deg, #1e3582, #1F7CC0); color: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 6px; }
.pt-code .muted { color: rgba(255,255,255,.75); }
.pt-code > b { font-size: 34px; letter-spacing: .06em; overflow-wrap: anywhere; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-code .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.pt-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pt-stats .card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pt-stats b { font-size: 24px; }
.pt-bal .btn { margin-top: 6px; align-self: flex-start; }
.pt-list { display: grid; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.pt-c { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pt-c b { overflow-wrap: anywhere; }
.pt-ph { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.pt-ph a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.pt-s { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.pt-m { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 90px; text-align: right; }
.pt-acc { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
@media (max-width: 900px) { .pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-bal { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .pt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pt-s { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; text-align: left; }
  .pt-row > .pt-m { grid-row: 1; grid-column: 2; }
  .pt-who { display: none; }
  .pt-hello h1 { font-size: 20px; }
  .pt-code > b { font-size: 28px; }
}
.ds-renew { grid-template-columns: minmax(0, 1fr) auto !important; }
@media (max-width: 700px) { .ds-renew { grid-template-columns: 1fr !important; } .ds-renew .ref-renew-ck { grid-column: 1 / -1 !important; } }
/* reward pop-up on the customer app */
.modal.reward-news { position: relative; width: min(420px, 100%); padding: 0; overflow: hidden; }
.reward-news .popup-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.2); color: #fff; border-radius: 50%; }
.reward-news .rn-top { background: linear-gradient(135deg, #0F766E, #14B8A6); color: #fff; text-align: center; padding: 26px 20px 22px; }
.reward-news .rn-coin { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE08A, #F2A93B 70%); color: #8a4b00; font-weight: 800; font-size: 28px; line-height: 58px; box-shadow: 0 6px 18px rgba(0,0,0,.18); animation: rnPop .6s cubic-bezier(.2,1.6,.4,1) both; }
.reward-news .rn-amt { font-size: 40px; font-weight: 800; line-height: 1.1; animation: rnPop .6s .1s cubic-bezier(.2,1.6,.4,1) both; }
.reward-news .rn-title { font-size: 17px; font-weight: 700; margin-top: 6px; }
.reward-news .rn-sub { font-size: 13px; opacity: .85; }
.reward-news .rn-list { list-style: none; margin: 0; padding: 12px 18px 4px; display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.reward-news .rn-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; line-height: 1.5; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.reward-news .rn-list li b { color: #0F766E; white-space: nowrap; }
.reward-news .rn-list li.out b { color: var(--muted, #667085); }
.reward-news .rn-bal { padding: 6px 18px 0; font-size: 14px; text-align: right; }
.reward-news .rn-foot { display: flex; gap: 8px; padding: 14px 18px 18px; }
.reward-news .rn-foot .btn { flex: 1 1 0; justify-content: center; }
@keyframes rnPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .reward-news .rn-coin, .reward-news .rn-amt { animation: none; } }
.dup-flag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid #f5c26b; background: #fff6e0; color: #9a5b00; font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1.4; cursor: pointer; vertical-align: middle; }
.dup-flag.hi { border-color: #f3a5a5; background: #fdecec; color: #b42318; }
.dup-note { margin: 6px 0 2px; padding: 8px 10px; border-radius: 10px; background: #fdecec; color: #b42318; font-size: 13px; display: grid; gap: 4px; }
.dup-note > div { display: flex; gap: 6px; align-items: flex-start; }
.dup-note .icon { flex: 0 0 auto; margin-top: 2px; }
.notice.red { background: #fdecec; border-color: #f3a5a5; color: #b42318; }
.dup-list { margin: 0; padding-left: 18px; }
.ref-report-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.ref-report-head .input { min-width: 190px; }
@media (max-width: 600px) { .ref-report-head > .btn { flex: 1 1 100%; justify-content: center; } }
.ref-short-in { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ref-short-in .ref-amt-in .input { width: 100%; min-width: 0; }
@media (max-width: 700px) { #refShortF { grid-template-columns: 1fr 1fr 1fr; } #refShortF .ref-amt-in { font-size: 15px; } }
.ref-renew-ck { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
@media (max-width: 700px) { .ref-renew { grid-template-columns: 1fr 1fr; } .ref-renew > .btn { grid-column: 1 / -1; } }
.ref-renew-note { flex: 1 1 100%; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.6; background: rgba(255, 255, 255, .12); border-radius: 10px; padding: 8px 12px; }
.ref-renew-note .icon { flex: 0 0 auto; margin-top: 3px; }
.ref-ph { display: inline-flex; align-items: center; gap: 3px; color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ref-ph.wa { color: #15803D; }
.ref-ph:hover { text-decoration: underline; }
.ref-faq { margin-top: 16px; }
.ref-faq-list { padding: 6px 18px 12px; }
.ref-faq details { border-bottom: 1px solid var(--line); }
.ref-faq details:last-child { border-bottom: 0; }
.ref-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.ref-faq summary::-webkit-details-marker { display: none; }
.ref-faq summary::before { content: '+'; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-weight: 800; line-height: 1; }
.ref-faq details[open] summary::before { content: '−'; background: #0F766E; color: #fff; }
.ref-faq details p { margin: -4px 0 14px 32px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.ref-row-end { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .ref-bal { font-size: 30px; }
  .ref-wallet-side { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px 12px; }
  .ref-wallet-side b { font-size: 16px; }
  .ref-row .ref-row-end { margin-left: 52px; justify-content: flex-start; }
}
.ref-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.ref-row:first-child { border-top: 0; }
.ref-who { display: grid; min-width: 0; flex: 1; }
.ref-who b { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .ref-top { grid-template-columns: 1fr; }
  .ref-code { font-size: 28px; }
  .ref-stats b { font-size: 21px; }
  .ref-row { flex-wrap: wrap; padding: 12px 14px; }
}
.rq-note { margin-bottom: 20px; line-height: 1.65; font-size: 14.5px; border: 1px solid #f3c58f; }
.rq-note > svg, .rq-note > i { flex: 0 0 auto; margin-top: 3px; }
.rq-note > div { min-width: 0; }
.rq-note-title { display: block; font-size: 16.5px; margin-bottom: 4px; }
.rq-note p { margin: 0 0 8px; }
.rq-note ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; }
.rq-note .btn { margin-top: 2px; }
.rq-list { display: grid; gap: 12px; min-width: 0; }
.rq-list .empty { padding: 26px 16px; }
.rq-svc { font-size: 15px; overflow-wrap: anywhere; }
.rq-details { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; font-size: 13.5px; color: var(--text); max-height: 180px; overflow: auto; }
.rq-att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rq-att a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line, #E7E4DD); font-size: 12.5px; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.rq-att a:hover { border-color: var(--orange); }
.rq-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rq-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--orange-soft); font-size: 12.5px; overflow-wrap: anywhere; }
.rq-chip button { border: 0; background: rgba(0,0,0,.08); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; flex: none; }
.rq-who { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13.5px; }
.rq-who span { color: var(--muted); }
@media (max-width: 900px) { .rq-wrap { grid-template-columns: 1fr; } }

/* renewal warning pop-up (last 10 days) + plan-ended panel on the sign-in page */
.modal.renew-warn { position: relative; width: min(440px, 100%); padding: 0; overflow: hidden; }
.renew-warn .popup-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.22); color: #fff; border-radius: 50%; }
.renew-warn .rw-top { background: linear-gradient(135deg, #C2410C, #F59E0B); color: #fff; text-align: center; padding: 24px 20px 20px; }
.renew-warn .rw-top.over { background: linear-gradient(135deg, #991B1B, #DC2626); }
.renew-warn .rw-days { width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 50%; background: #fff; color: #C2410C; display: grid; place-content: center; line-height: 1; box-shadow: 0 6px 18px rgba(0,0,0,.18); animation: rnPop .6s cubic-bezier(.2,1.6,.4,1) both; }
.renew-warn .rw-top.over .rw-days { color: #DC2626; }
.renew-warn .rw-days b { font-size: 30px; font-weight: 800; }
.renew-warn .rw-days span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.renew-warn .rw-days svg { width: 34px; height: 34px; }
.renew-warn .rw-title { font-size: 19px; font-weight: 700; }
.renew-warn .rw-sub { font-size: 13px; opacity: .9; margin-top: 2px; }
.renew-warn .rw-body { padding: 14px 20px 0; }
.renew-warn .rw-body p { margin: 0 0 8px; line-height: 1.6; }
.renew-warn .rw-foot { display: grid; gap: 8px; padding: 8px 20px 20px; }
.renew-warn .rw-foot .btn { justify-content: center; }
.notice.renew-note { align-items: center; }
.notice.renew-note > div { flex: 1 1 220px; min-width: 0; }
.notice.renew-note .btn { flex: none; }
@media (max-width: 560px) { .notice.renew-note { flex-wrap: wrap; } .notice.renew-note .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .renew-warn .rw-days { animation: none; } }
.renew-box { border: 1px solid #f3c4c4; background: #FEF2F2; border-radius: var(--radius); padding: 16px; margin-bottom: 18px; display: grid; gap: 10px; }
.renew-box .rb-head { display: flex; gap: 10px; align-items: center; color: #991B1B; }
.renew-box .rb-head svg { width: 26px; height: 26px; flex: none; }
.renew-box .rb-head b { display: block; font-size: 17px; }
.renew-box .rb-head span { font-size: 13px; }
.renew-box p { margin: 0; line-height: 1.6; }
.renew-box { min-width: 0; }
.renew-box .btn { justify-content: center; white-space: normal; text-align: center; height: auto; min-height: 48px; line-height: 1.3; }
.renew-box .rb-user { text-align: center; }

/* sign-up: "I agree to the Terms and Conditions" */
.terms-ck { margin: 0 0 14px; font-size: 14px; }
.terms-ck a { font-weight: 600; text-decoration: underline; }

/* ── Admin → Renewals due ── */
.rn-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.rn-tab { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.rn-tab span { flex: 1; min-width: 0; font-size: 13.5px; }
.rn-tab b { font-size: 20px; line-height: 1; }
.rn-tab .icon { color: var(--muted); }
.rn-tab:hover { border-color: #c9d1e3; }
.rn-tab.on { border-color: var(--orange, #23866e); box-shadow: 0 0 0 3px rgba(35,134,110, .12); }
.rn-tab.today b, .rn-tab.expired b { color: var(--red); }
.rn-tab.week b { color: #C2410C; }
.rn-tab.ten b { color: var(--blue); }
.rn-table td { vertical-align: middle; }
.rn-table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.rn-preview { white-space: pre-wrap; word-break: break-word; background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0; font: inherit; font-size: 14px; line-height: 1.55; max-height: 60vh; overflow: auto; }
@media (max-width: 900px) { .rn-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rn-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ── poster form: publish time / greeting / notify ── */
.sched-box { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border: 1px dashed #cdd5e6; border-radius: 12px; background: #fafbfe; }
.sched-box label.check { align-items: flex-start; line-height: 1.4; }
.sched-box .field label .icon { width: 15px; height: 15px; vertical-align: -2px; }
/* ── install app / notifications card (dashboard) ── */
.app-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 44px 14px 14px; margin: 0 0 18px; border-radius: 16px; background: linear-gradient(135deg, #1e3582, #34485e); color: #fff; }
.app-card .ac-ic { width: 52px; height: 52px; border-radius: 14px; flex: none; background: #fff; }
.app-card .ac-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.app-card .ac-text b { font-size: 15.5px; }
.app-card .ac-text span { font-size: 13px; opacity: .85; line-height: 1.45; }
.app-card .ac-ios { opacity: 1 !important; background: rgba(255,255,255,.1); padding: 6px 8px; border-radius: 8px; margin-top: 4px; }
.app-card .ac-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.app-card .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.app-card .ac-x { position: absolute; top: 8px; right: 8px; color: #fff; opacity: .7; background: transparent; }
@media (max-width: 700px) { .app-card { flex-wrap: wrap; } .app-card .ac-text { flex-basis: calc(100% - 66px); } .app-card .ac-btns { width: 100%; justify-content: stretch; } .app-card .ac-btns .btn { flex: 1; } }

/* ── today's festival greeting pop-up ── */
.greet-pop { width: min(440px, calc(100vw - 32px)); background: #fff; border-radius: 20px; padding: 18px; position: relative; overflow: hidden; }
.greet-pop::before { content: ''; position: absolute; inset: 0 0 auto; height: 120px; background: radial-gradient(circle at 20% 0, #ffe1d6, transparent 60%), radial-gradient(circle at 90% 10%, #fff3c4, transparent 55%); pointer-events: none; }
.greet-pop .gp-head { position: relative; display: flex; gap: 12px; align-items: center; padding-right: 30px; margin-bottom: 12px; }
.greet-pop .gp-burst { font-size: 34px; line-height: 1; }
.greet-pop .gp-head b { display: block; font-size: 18px; color: #1D222B; }
.greet-pop .gp-head small { color: var(--muted); }
.greet-pop .gp-img { position: relative; border-radius: 12px; overflow: hidden; background: #f3f5f9; box-shadow: 0 6px 24px rgba(20, 30, 60, .12); }
.greet-pop .gp-img img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: contain; }
.greet-pop .gp-title { font-weight: 700; margin: 12px 0; text-align: center; }
.greet-pop .gp-foot { display: flex; gap: 8px; }
.greet-pop .gp-foot .btn { flex: 1; justify-content: center; }

/* ── poster request ready pop-up ── */
.req-news { width: min(420px, calc(100vw - 32px)); background: #fff; border-radius: 20px; padding: 22px 18px 18px; position: relative; }
.req-news .rqn-top { text-align: center; display: grid; gap: 4px; margin-bottom: 14px; }
.req-news .rqn-ic { font-size: 40px; line-height: 1.1; }
.req-news .rqn-top b { font-size: 18px; color: #1D222B; }
.req-news .rqn-top small { color: var(--muted); }
.req-news .rqn-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; max-height: 46vh; overflow: auto; }
.req-news .rqn-list li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.req-news .rqn-list li.done { border-color: #bfe5cf; background: #f4fbf7; }
.req-news .rqn-list p { margin: 0; color: #4D5866; white-space: pre-line; font-size: 14px; }
.req-news .rqn-list .btn { justify-self: start; }
.req-news .rqn-foot { display: flex; gap: 8px; }
.req-news .rqn-foot .btn { flex: 1; justify-content: center; }.greet-pop .popup-x, .req-news .popup-x { position: absolute; top: 10px; right: 10px; left: auto; z-index: 2; }
.greet-pop .gp-head { padding-right: 40px; }
/* ── Name Slip Maker ── */
.ns-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.ns-left, .ns-right { display: grid; gap: 16px; min-width: 0; }
.ns-step { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ns-step span { width: 26px; height: 26px; border-radius: 50%; background: #16A34A; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.ns-step b { font-size: 15.5px; }
.ns-step small { color: var(--muted); }
.ns-chips { gap: 6px; margin-top: 8px; }
.ns-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; color: #4D5866; }
.ns-chip.on { background: #DCFCE7; border-color: #86EFAC; color: #166534; font-weight: 600; }
.ns-cropbar { gap: 6px; margin-bottom: 8px; }
.ns-stage { max-height: 340px; }
.ns-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ns-theme { border: 2px solid transparent; background: #f6f8fb; border-radius: 12px; padding: 6px 6px 4px; cursor: pointer; font: inherit; display: grid; gap: 4px; }
.ns-theme canvas { width: 100%; height: auto; display: block; border-radius: 6px; }
.ns-theme span { font-size: 12px; font-weight: 600; color: #4D5866; }
.ns-theme.on { border-color: #16A34A; background: #F0FDF4; }
.ns-theme.on span { color: #166534; }
.ns-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.ns-seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 6px; font: inherit; cursor: pointer; display: grid; gap: 2px; text-align: center; }
.ns-seg button b { font-size: 14px; }
.ns-seg button small { color: var(--muted); font-size: 11.5px; }
.ns-seg button.on { border-color: #16A34A; background: #F0FDF4; }
.ns-seg button.on small { color: #166534; }
.ns-out { display: grid; gap: 12px; }
.ns-one { background: repeating-conic-gradient(#f3f5f9 0 25%, #fff 0 50%) 0 0 / 18px 18px; border-radius: 12px; padding: 14px; display: grid; place-items: center; }
.ns-one canvas { width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 6px 16px rgba(20, 30, 60, .18)); }
.ns-sheetprev { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.ns-sheetprev img { width: 120px; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.08); background: #fff; }
@media (max-width: 980px) { .ns-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ns-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ns-sheetprev { grid-template-columns: 90px 1fr; } .ns-sheetprev img { width: 90px; } }
.ns .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ns-step .spacer { flex: 1; }
/* admin: automatic backups */
.alert.success { background: var(--green-soft); color: #166534; }
.alert.danger { background: var(--red-soft); color: #9d2323; }
.ab-card .card-head { flex-wrap: wrap; gap: 10px; }
.ab-card .card-head .row { flex-wrap: wrap; }
.ab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ab-stats > div { background: #f6f8fb; border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.ab-stats b { font-size: 16px; }
.ab-stats span { font-size: 12px; color: var(--muted); }
.ab-set { gap: 10px 24px; align-items: center; font-size: 14px; }
.ab-sub { margin: 4px 0 12px; font-size: 16px; }
@media (max-width: 760px) { .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ns-tabs { display: inline-flex; background: #eef1f6; border-radius: 999px; padding: 3px; gap: 2px; }
.ns-tabs button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: #4D5866; cursor: pointer; white-space: nowrap; }
.ns-tabs button.on { background: #fff; color: #166534; box-shadow: 0 1px 4px rgba(20, 30, 60, .12); }
.ns-colors { margin-top: 12px; display: grid; gap: 8px; }
.ns-mix { gap: 8px; }
.ns-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-sw { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; background: var(--bg); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; position: relative; }
.ns-sw::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--tx); }
.ns-sw.on { box-shadow: 0 0 0 2.5px #16A34A; }
.ns-layout button b { font-size: 14.5px; }
.ns-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin-top: 14px; font-size: 13.5px; }
.ns-opts label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ns-cutbox { margin-top: 10px; padding: 10px 12px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; display: grid; gap: 8px; font-size: 13.5px; }
.ns-tol { gap: 10px; }
.ns-tol input[type=range] { flex: 1; accent-color: #16A34A; }
.ns-sheetwrap { display: grid; gap: 6px; justify-items: center; background: #f3f5f9; border-radius: 12px; padding: 12px; }
.ns-sheetwrap img { max-width: 100%; max-height: 420px; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.1); background: #fff; cursor: zoom-in; }
.ns .t-green { color: #15803D; font-weight: 600; } .ns .t-orange { color: #C2410C; font-weight: 600; }
@media (max-width: 560px) { .ns-opts { grid-template-columns: 1fr; } .ns-step { flex-wrap: wrap; } }

/* ---- online renewal payment (Razorpay) ---- */
.pay-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.pay-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.pay-plan:hover { border-color: #c9d2e6; }
.pay-plan.on { border-color: var(--orange); background: var(--orange-soft); }
.pay-plan .pp-l { font-size: 13px; color: var(--muted); font-weight: 600; }
.pay-plan b { font-size: 20px; }
.pay-plan .pp-s { font-size: 12px; color: var(--muted); }
.pay-ways { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 9px 12px; }
.pay-ok { padding: 28px 24px 22px; text-align: center; }
.pay-ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 12px; }
.pay-ok-ic svg { width: 32px; height: 32px; }
.pay-ok h3 { margin: 0 0 4px; font-family: var(--ml); }
.pay-ok p { margin: 0 0 14px; color: var(--muted); }
.pay-ok-date { background: var(--navy-soft); color: var(--navy); border-radius: 10px; padding: 10px; margin-bottom: 16px; }
.pay-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.pay-stats .card { display: flex; flex-direction: column; gap: 2px; }
.pay-stats b { font-size: 24px; }
.pay-set h4 { margin: 20px 0 8px; }
.pay-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.pay-prices .field > span, .pay-keys .field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pay-keys { display: grid; gap: 10px; max-width: 520px; }
@media (max-width: 700px) { .pay-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pay-prices .btn { grid-column: 1 / -1; } }
/* ---- service details: formatted text + point-wise documents ---- */
.prose.pz { white-space: normal; }
.pz-h { margin: 12px 0 4px; font-size: 14px; color: var(--navy); }
.pz-p { margin: 0 0 6px; }
.pz-ul, .pz-ol { margin: 4px 0 8px; padding-left: 22px; }
.pz-ul li, .pz-ol li { margin: 2px 0; }
.pz-gap { height: 6px; }
.pz-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; align-items: center; }
.pz-prev { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 120px; background: var(--bg); line-height: 1.6; }
.dx { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: var(--bg); display: grid; gap: 10px; }
.dx-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dx-list { display: grid; gap: 6px; }
.dx-row { display: grid; grid-template-columns: auto auto minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 6px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.dx-row .input { padding: 8px 10px; }
.dx-row.dx-h { grid-template-columns: auto minmax(0, 1fr) auto; background: var(--navy-soft); border-color: #d3dbef; }
.dx-row.dx-h .input { font-weight: 700; color: var(--navy); }
.dx-mv { display: flex; flex-direction: column; }
.dx-mv button { border: 0; background: none; padding: 0 2px; line-height: 0; cursor: pointer; color: var(--muted); }
.dx-mv button:hover { color: var(--navy); }
.dx-n { min-width: 22px; height: 22px; border-radius: 50%; background: var(--orange-soft); color: #b46a17; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.dx-opt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; cursor: pointer; white-space: nowrap; user-select: none; }
.dx-opt input { display: none; }
.dx-opt.on { background: var(--orange-soft); border-color: var(--orange); color: #9a5a12; }
.dx-empty { padding: 10px; text-align: center; }
.dx-quick { display: flex; gap: 8px; align-items: flex-start; }
.dx-quick > span { padding-top: 5px; white-space: nowrap; }
#dxQuick { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-chip { border: 1px dashed #c4cce0; background: var(--surface); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.dx-chip:hover { border-color: var(--orange); color: #9a5a12; }
.dx-chip.used { border-style: solid; border-color: var(--green-soft); background: var(--green-soft); color: var(--green); cursor: default; }
.dx-pick { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; }
.dx-pl { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.dx-pl > button { flex: none; }
.dx-pl > button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.vp-cur { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.vp-prev { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.vp-prev img { width: 160px; max-width: 45%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.dx-pl button { display: flex; justify-content: space-between; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; color: var(--text); }
.dx-pl button:hover { border-color: var(--orange); background: var(--orange-soft); }
@media (max-width: 700px) {
  .dx-row:not(.dx-h) { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
  .dx-row:not(.dx-h) .dx-mv, .dx-row:not(.dx-h) .dx-n { grid-row: 1 / 3; }
  .dx-row:not(.dx-h) .dx-t { grid-column: 3 / 5; grid-row: 1; }
  .dx-row:not(.dx-h) .x-btn { grid-column: 5; grid-row: 1; }
  .dx-row:not(.dx-h) .dx-note { grid-column: 3; grid-row: 2; }
  .dx-row:not(.dx-h) .dx-opt { grid-column: 4 / 6; grid-row: 2; }
  .dx-quick { flex-direction: column; gap: 4px; }
}
.doc-box { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.doc-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.doc-prog { font-size: 12px; font-weight: 700; background: var(--orange-soft); color: #9a5a12; border-radius: 999px; padding: 3px 10px; }
.doc-prog.ok { background: var(--green-soft); color: var(--green); }
.doc-tip { margin: 4px 0 8px; }
.doc-sec { margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--navy-soft); border-radius: 8px; padding: 6px 10px; }
.doc-list { gap: 4px; }
.doc-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.doc-item:hover { background: var(--bg); }
.doc-item input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.doc-n { min-width: 20px; height: 20px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.doc-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.doc-t b { font-weight: 600; }
.doc-t small { color: var(--muted); font-size: 12px; }
.doc-t .badge { align-self: flex-start; margin-top: 2px; }
.doc-item.done .doc-t b { text-decoration: line-through; color: var(--muted); }
.doc-item.done .doc-n { background: var(--green-soft); color: var(--green); }
/* ---- Admin → Security ---- */
.sec-top { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.sec-score { display: flex; gap: 12px; align-items: center; }
.sec-score > div:last-child { display: flex; flex-direction: column; }
.sec-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sec-score.ok .sec-ic { background: var(--green-soft); color: var(--green); }
.sec-score.warn .sec-ic { background: var(--orange-soft); color: #b46a17; }
.sec-stat { display: flex; flex-direction: column; gap: 2px; }
.sec-stat b { font-size: 24px; }
.sec-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sec-check { display: flex; gap: 10px; align-items: flex-start; }
.sec-check > div { display: flex; flex-direction: column; }
.sec-check.ok > .icon { color: var(--green); }
.sec-check.bad > .icon { color: var(--red); }
.sec-grid { margin: 14px 0; gap: 14px; }
.sec-sess { display: grid; gap: 8px; margin-top: 10px; }
.sec-s { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.sec-ips { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-qr { display: grid; place-items: center; margin: 6px 0; }
.sec-qr svg { width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
.sec-key { font-size: 13px; letter-spacing: .5px; word-break: break-all; }
.sec-code { font-size: 22px; letter-spacing: 6px; text-align: center; max-width: 220px; margin: 0 auto; display: block; }
.sec-steps { padding-left: 20px; margin: 6px 0; }
.sec-steps li { margin: 4px 0; }
.sec-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.sec-codes code { font-size: 15px; text-align: center; padding: 8px; background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; letter-spacing: 1px; }
@media (max-width: 800px) { .sec-top { grid-template-columns: 1fr 1fr; } .sec-score { grid-column: 1 / -1; } }
/* Admin → Online payments: WhatsApp / Online choice */
.pay-mode{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pm-opt{display:flex;gap:12px;align-items:flex-start;text-align:left;padding:14px;border:2px solid var(--line,#e3e7ef);border-radius:14px;background:var(--surface);cursor:pointer;font:inherit;color:inherit;transition:border-color .15s,box-shadow .15s}
.pm-opt:hover{border-color:#c9d1e3}
.pm-opt.on{border-color:var(--orange,#F0962D);box-shadow:0 0 0 4px rgba(240,150,45,.14)}
.pm-opt>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.pm-opt b{font-size:15px}
.pm-ic{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center}
.pm-ic svg{width:22px;height:22px}
.pm-ic.wa{background:#e5f7ec;color:#1f9d55}
.pm-ic.rz{background:#E8ECF7;color:#1D222B}
.pm-opt.on .pm-ic{box-shadow:inset 0 0 0 2px currentColor}
@media (max-width:700px){.pay-mode{grid-template-columns:1fr}}
/* Sign-in page: green "activate now" payment card for new registrations (online payment mode) */
.paycard{position:relative;overflow:hidden;margin:0 0 18px;padding:20px 18px 16px;border-radius:18px;color:#fff;text-align:left;
  background:radial-gradient(circle at 100% 0,rgba(255,255,255,.18),transparent 45%),linear-gradient(145deg,#1FA463 0%,#168A52 55%,#0F6E41 100%);
  box-shadow:0 14px 32px -12px rgba(15,110,65,.55)}
.paycard::after{content:"";position:absolute;right:-40px;bottom:-40px;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.07)}
.pc-step{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:99px;background:rgba(255,255,255,.18);font-size:12px;font-weight:700;letter-spacing:.02em}
.pc-step .icon{width:13px;height:13px}
.pc-head h3{margin:10px 0 4px;font-size:21px;line-height:1.2;color:#fff}
.pc-head p{margin:0;font-size:14px;opacity:.95}
.pc-plans{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 2px}
.pc-plan{display:flex;flex-direction:column;padding:7px 12px;border-radius:12px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);line-height:1.2}
.pc-plan small{font-size:11px;opacity:.85}
.pc-plan b{font-size:16px}
.pc-feats{list-style:none;margin:12px 0 14px;padding:0;display:grid;gap:6px;font-size:13.5px}
.pc-feats li{display:flex;align-items:center;gap:8px}
.pc-feats .icon{width:15px;height:15px;flex:none;padding:2px;border-radius:50%;background:rgba(255,255,255,.22)}
.pc-btn{position:relative;z-index:1;overflow:hidden;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:12px 18px;border:0;border-radius:14px;
  background:#fff;color:#0F6E41;font:inherit;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 6px 18px -6px rgba(0,0,0,.35);transition:transform .15s,box-shadow .15s;animation:pcPulse 2.4s ease-in-out infinite}
.pc-btn:hover{transform:translateY(-1px);box-shadow:0 10px 22px -8px rgba(0,0,0,.4)}
.pc-btn:active{transform:translateY(1px)}
.pc-btn .icon{width:20px;height:20px}
.pc-btn::before{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(31,164,99,.18),transparent);transform:skewX(-20deg);animation:pcShine 3s ease-in-out infinite}
.pc-arrow{font-style:normal;font-size:20px;transition:transform .2s}
.pc-btn:hover .pc-arrow{transform:translateX(4px)}
.pc-ways{position:relative;z-index:1;margin-top:10px;text-align:center;font-size:12px;opacity:.9}
@keyframes pcPulse{0%,100%{box-shadow:0 6px 18px -6px rgba(0,0,0,.35),0 0 0 0 rgba(255,255,255,.45)}50%{box-shadow:0 6px 18px -6px rgba(0,0,0,.35),0 0 0 7px rgba(255,255,255,0)}}
@keyframes pcShine{0%,60%{left:-60%}100%{left:130%}}
@media (prefers-reduced-motion:reduce){.pc-btn,.pc-btn::before{animation:none}}
.signup-done .paycard{margin-top:6px}
/* Offer prices: normal price struck through, % off, best value, you-save line */
.pay-offer{display:flex;gap:8px;align-items:center;margin:0 0 12px;padding:9px 12px;border-radius:12px;background:linear-gradient(90deg,#FFF4E5,#FDE7EC);color:#9A3412;font-size:13px}
.pay-offer .icon{color:#EA580C;flex:none}
.pay-plan{position:relative}
.pay-plan .pp-mrp{color:#94A3B8;font-size:13px;text-decoration-thickness:1.5px;margin-top:2px}
.pay-plan .pp-save{display:inline-block;align-self:flex-start;margin:4px 0 2px;padding:2px 8px;border-radius:99px;background:var(--green-soft);color:var(--green);font-size:11.5px;font-weight:700}
.pp-best,.pp-off{position:absolute;top:-10px;right:10px;padding:3px 9px;border-radius:99px;font-size:11px;font-weight:800;letter-spacing:.02em;color:#fff;box-shadow:0 4px 10px -4px rgba(0,0,0,.3)}
.pp-best{background:linear-gradient(90deg,#16A34A,#0F7A3E)}
.pp-off{background:#E11D48}
.pay-plan.best{border-color:#16A34A}
.pay-plan.best.on{background:#F0FBF4;border-color:#16A34A;box-shadow:0 0 0 3px rgba(22,163,74,.15)}
.pay-plans{padding-top:6px}
.pay-you-save{display:flex;gap:8px;align-items:center;margin:10px 0 0;padding:9px 12px;border-radius:12px;background:var(--green-soft);color:#166534;font-size:13px}
.pay-you-save .icon{flex:none;color:var(--green)}
.pay-you-save s{color:#64748B;margin-left:4px}
.pc-plan s{font-size:11.5px;opacity:.75;text-decoration-thickness:1.5px}
.pc-plan em{font-style:normal;font-size:10px;font-weight:800;padding:1px 5px;border-radius:6px;background:#FDE047;color:#713F12;margin-left:2px}
.pc-deal{display:inline-flex;gap:6px;align-items:center;margin:10px 0 0;padding:5px 11px;border-radius:99px;background:#FDE047;color:#713F12;font-size:12.5px;font-weight:800}
.pc-deal .icon{width:13px;height:13px}
/* admin price grid */
.pay-price-grid{display:grid;grid-template-columns:auto 1fr 1fr minmax(120px,auto);gap:8px 10px;align-items:center;max-width:720px}
.pp-save.bad{color:var(--red,#DC2626);font-weight:600}
.pay-price-grid .pp-save{color:var(--green);font-weight:600}.pay-price-grid .pp-save.muted{color:var(--muted,#64748B);font-weight:400}
@media (max-width:600px){.pay-price-grid{grid-template-columns:auto 1fr 1fr}.pay-price-grid>span:nth-child(4){display:none}.pay-price-grid .pp-save{grid-column:2/4;margin-top:-4px}}
/* Offer message editor (admin) + countdown */
.pof-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 10px}
.pof-chips button{border:1px solid var(--line);background:var(--surface);border-radius:99px;padding:5px 12px;font:inherit;font-size:13px;cursor:pointer;color:inherit}
.pof-chips button:hover{border-color:var(--orange);color:#C2410C}
.pof-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pof-prev{margin-top:10px}
.pof-prev .pay-offer{margin:4px 0 0}
.pay-cd{display:inline-block;margin-left:4px;padding:1px 8px;border-radius:99px;background:#9A3412;color:#fff;font-size:11.5px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.pc-cd{margin:8px 0 0;background:rgba(0,0,0,.25);font-size:12.5px;padding:3px 10px}
@media (max-width:600px){.pof-grid{grid-template-columns:1fr}}
/* "Both" payment mode: WhatsApp as the second way */
.pay-mode{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){.pay-mode{grid-template-columns:1fr}}
.pm-ic.both{background:linear-gradient(135deg,#E8ECF7 50%,#e5f7ec 50%);color:#1D222B}
.pc-or{position:relative;z-index:1;display:flex;align-items:center;gap:10px;margin:12px 0 8px;font-size:12px;opacity:.8}
.pc-or::before,.pc-or::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.35)}
.pc-wa{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;border-radius:12px;border:1.5px solid rgba(255,255,255,.6);color:#fff;font-weight:700;font-size:14px;text-decoration:none;background:rgba(255,255,255,.08)}
.pc-wa:hover{background:rgba(255,255,255,.16)}
.pc-wa .icon{width:17px;height:17px}
.btn.wa-alt{margin-top:8px;background:var(--green-soft);color:var(--green);border:1px solid #bfe3cf}
.pay-wa-btn{color:var(--green)}
@media (max-width:420px){.pc-btn{font-size:15.5px;gap:8px;padding:12px 14px}.pc-arrow{font-size:18px}}

/* sign-up: the username note under the mobile number is information (blue), not an error */
#phoneHint{display:inline-flex;align-items:center;gap:5px;color:var(--blue);font-weight:600}
#phoneHint::before{content:"i";display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#DBEAFE;color:var(--blue);font-size:10.5px;font-weight:800;font-style:italic;font-family:Georgia,serif;flex:none}
#phoneHint.hint-ok{color:var(--blue)}
#phoneHint.hint-bad{color:var(--red)}
#phoneHint.hint-bad::before{content:"!";background:var(--red-soft);color:var(--red);font-style:normal;font-family:inherit}
/* Admin → Page items → Import / Export */
.bk-steps { display: grid; gap: 14px; }
.bk-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bk-n { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 700; }
.bk-b { flex: 1; min-width: 0; }
.bk-sum { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.bk-table { max-height: 260px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
.bk-table .table td, .bk-table .table th { padding: 6px 10px; }
.t-red { color: var(--red); }
@media (max-width: 520px) { .bk-step { padding: 12px; gap: 10px; } .bk-n { flex-basis: 26px; height: 26px; } #bkFile { max-width: 100% !important; } }
/* Bill → service name search list (replaces the browser datalist) */
.svc-pop { position: fixed; z-index: 1200; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); overflow-y: auto; padding: 4px; overscroll-behavior: contain; }
.svc-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.svc-opt.on, .svc-opt:hover { background: #FFF3E6; }
.svc-t { flex: 1 1 60%; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.svc-t span { font-weight: 600; font-size: 14px; line-height: 1.3; }
.svc-t small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.svc-opt mark { background: #FFE2BF; color: inherit; border-radius: 3px; padding: 0 1px; }
.svc-fee { flex: 0 1 auto; max-width: 40%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 600; color: var(--orange); background: #FFF3E6; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.svc-tag { flex: none; font-size: 11px; font-weight: 600; color: var(--blue); background: #E6EEFF; border-radius: 999px; padding: 2px 7px; }
.svc-hint, .svc-none { padding: 8px 10px; font-size: 12.5px; color: var(--muted); }
.svc-none b { color: var(--text, inherit); }
/* ======================================================
   Required Documents print (customer #documents)
   ====================================================== */
.dp-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dp-side { position: sticky; top: 12px; }
.dp-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.dp-n { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dp-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #BFE5DD; background: #E8F7F3; color: #0F766E; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dp-chip:hover { background: #D5F0E9; }
.dp-chip.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.dp-rows { display: grid; gap: 8px; margin: 12px 0; }
.dp-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); }
.dp-row.off { opacity: .5; }
.dp-row.off .dp-t { text-decoration: line-through; }
.dp-row.dp-h { align-items: center; background: #F1F5F9; }
.dp-row.dp-h input { font-weight: 700; flex: 1; }
.dp-chk { padding-top: 10px; }
.dp-chk input, .dp-sub input { width: 18px; height: 18px; accent-color: var(--orange); }
.dp-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.dp-t { font-weight: 600; }
.dp-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dp-note { flex: 1 1 160px; min-width: 0; height: 34px; font-size: 13px; }
.dp-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.dp-opt.on, .dp-opt:has(input:checked) { color: var(--orange); border-color: var(--orange); background: #FFF3E6; }
.dp-opt input { width: 14px; height: 14px; }
.dp-subbtn { display: inline-flex; align-items: center; gap: 5px; border: 1px dashed #0F766E; color: #0F766E; background: #E8F7F3; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dp-subbtn b { background: #0F766E; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.dp-subbtn.on { border-style: solid; }
.dp-subs { border-left: 3px solid #0F766E; padding: 6px 0 4px 12px; display: grid; gap: 4px; background: #F6FBFA; border-radius: 0 8px 8px 0; }
.dp-sub { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.dp-sub.off { opacity: .5; text-decoration: line-through; }
.dp-subh { font-weight: 700; font-size: 12.5px; margin-top: 4px; }
.dp-mv { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.dp-mv button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 1px 4px; border-radius: 6px; line-height: 0; }
.dp-mv button:hover:not(:disabled) { background: #F1F5F9; color: var(--text, #111); }
.dp-mv button:disabled { opacity: .25; cursor: default; }
.dp-row .x-btn { margin-top: 6px; }
.dp-empty { display: flex; gap: 12px; align-items: center; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); }
.dp-empty .icon { width: 28px; height: 28px; flex: none; }
.dp-add { display: flex; gap: 8px; flex-wrap: wrap; }
.dp-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.dp-opts { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.dp-opts > div { display: grid; gap: 4px; }
.dp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dp-paper-wrap { background: #E9EDF3; border-radius: 14px; padding: 16px; display: flex; justify-content: center; }
.dp-mylist { display: grid; gap: 8px; }
.dp-my { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.svc-tag.green { color: #0F766E; background: #E8F7F3; }
.svc-tag.orange { color: var(--orange); background: #FFF3E6; }

/* the sheet */
.dp-paper { background: #fff; color: #1f2937; width: 100%; box-shadow: 0 6px 24px rgba(15, 23, 42, .12); padding: 26px 26px 20px; font-family: 'Anek Malayalam', 'Manrope', system-ui, sans-serif; font-size: 15px; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dp-paper.a4 { max-width: 640px; }
.dp-paper.a5 { max-width: 460px; font-size: 14px; padding: 22px 20px 16px; }
.dp-paper.r80 { max-width: 300px; font-size: 12.5px; padding: 12px 10px; }
.dpp-head { text-align: center; }
.dpp-title { display: inline-block; background: #4B5563; color: #fff; font-weight: 700; font-size: 1.45em; padding: .35em 1em; border-radius: 2px; }
.r80 .dpp-title { display: block; font-size: 1.25em; padding: .3em .5em; }
.dpp-svc { text-align: center; font-weight: 700; margin-top: .45em; font-size: 1.05em; }
.dpp-who { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .85em; color: #4b5563; margin-top: .7em; padding-bottom: .4em; border-bottom: 1px dashed #cbd5e1; }
.dpp-list { list-style: none; margin: .9em 0 0; padding: 0 0 0 .4em; }
.cols2 .dpp-list { column-count: 2; column-gap: 1.6em; }
.dpp-list > li { break-inside: avoid; }
.dpp-d { display: flex; gap: .55em; align-items: flex-start; margin: .32em 0; }
.dpp-m { flex: none; min-width: 1.1em; font-weight: 700; color: #374151; }
.mk-box .dpp-m { width: .95em; height: .95em; min-width: 0; border: 1.6px solid #374151; border-radius: 2px; margin-top: .25em; }
.mk-arrow .dpp-m { font-size: .8em; margin-top: .2em; }
.dpp-t { font-weight: 600; }
.dpp-opt { font-style: normal; font-size: .82em; color: #6b7280; }
.dpp-note { font-size: .85em; color: #4b5563; }
.dpp-h { font-weight: 800; font-size: .95em; color: #0F766E; margin: .8em 0 .2em; border-bottom: 1px solid #d1e7e2; padding-bottom: .15em; break-after: avoid; }
.dpp-subs { margin: .2em 0 .1em; font-size: .86em; color: #374151; }
.dpp-subl { font-weight: 700; font-size: .92em; color: #0F766E; }
.dpp-subs ul { margin: .1em 0 0; padding-left: 1.2em; }
.dpp-subs li { margin: .08em 0; }
.dpp-subs .dpp-subh { list-style: none; margin-left: -1.2em; font-weight: 700; margin-top: .25em; }
.dpp-empty { text-align: center; color: #9ca3af; padding: 2em 0; }
.dpp-tip { margin-top: 1em; padding: .55em .75em; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 6px; font-size: .88em; white-space: pre-line; }
.dp-tips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.dp-tipc { border: 1px dashed var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 13px; line-height: 1.45; text-align: left; cursor: pointer; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.dp-tipc:hover { border-color: var(--orange); }
.dp-tipc.on { border-style: solid; border-color: var(--orange); background: var(--orange-soft); }
.dp-tipc.on::before { content: '✓ '; color: var(--orange); font-weight: 700; }
.dpp-foot { margin-top: 1em; text-align: center; font-size: .95em; padding: 0 .5em; }
.dpp-brand { margin: .9em auto 0; border: 2px solid #374151; padding: .55em .8em; text-align: center; max-width: 92%; }
.dpp-shop { font-weight: 800; font-size: 1.35em; color: #1f2937; line-height: 1.2; }
.dpp-addr { font-size: .85em; color: #374151; }
.dpp-ph { font-weight: 800; font-size: 1.25em; letter-spacing: .02em; color: #1f2937; }
.r80 .dpp-brand { border-width: 1px; max-width: none; }

@media (max-width: 1100px) {
  .dp-wrap { grid-template-columns: 1fr; }
  .dp-side { position: static; }
}
@media (max-width: 560px) {
  .dp-row { padding: 8px 6px; gap: 6px; }
  .dp-paper-wrap { padding: 8px; }
  .dp-paper.a4, .dp-paper.a5 { padding: 18px 14px 14px; font-size: 13.5px; }
  .cols2 .dpp-list { column-count: 1; }
  .dp-add .input-icon { flex-basis: 100% !important; }
  .dp-opts .seg { flex-wrap: wrap; }
}
@media print {
  body.dp-printing .svc-pop, body.dp-printing #toasts, body.dp-printing .modal-back { display: none !important; }
  body.dp-printing .dp-wrap { display: block; }
  body.dp-printing .dp-side { position: static; }
  body.dp-printing .dp-paper-wrap { background: none; padding: 0; display: block; }
  body.dp-printing .dp-paper { box-shadow: none; max-width: none; width: auto; margin: 0 auto; }
  body.dp-print-a4 .dp-paper { page: dpA4; font-size: 15.5px; padding: 0; }
  body.dp-print-a4 .dp-paper.cols2 { font-size: 13px; }
  body.dp-printing .dpp-brand, body.dp-printing .dpp-tip, body.dp-printing .dpp-foot { break-inside: avoid; }
  body.dp-print-a5 .dp-paper { page: dpA5; font-size: 13.5px; padding: 0; }
  body.dp-print-r80 .dp-paper { page: dpR80; width: 72mm; font-size: 11.5px; padding: 0; }
  @page dpA4 { size: A4; margin: 14mm 14mm; }
  @page dpA5 { size: A5; margin: 9mm 9mm; }
  @page dpR80 { size: 80mm auto; margin: 3mm 4mm; }
}
/* ======================================================
   BRAND THEME (older base layer; the SEVA DESIGN 2026 block at the end of this file wins).
   Flat, calm product styling: solid colours, thin borders, small shadows (no glows, no gradients).
   ====================================================== */
::selection { background: rgba(35,134,110,.18); }
a { color: var(--navy); }
.topbar h1 { color: var(--navy); }

/* buttons */
.btn { box-shadow: none; transition: background .15s, border-color .15s, transform .05s; }
.btn.orange { background: var(--orange); color: #fff; }
.btn.orange:hover { background: var(--orange-2); }
.btn.ghost:hover { border-color: #D3CFC5; background: #FAF9F6; }
.input:focus, select.input:focus, textarea.input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,53,130,.10); }
.check input, input[type=checkbox], input[type=radio] { accent-color: var(--orange); }

/* surfaces */
.card, .pcard, .icard, .tile { border-color: #E8E5DE; }
.card, .pcard, .icard, .tile, .stat { box-shadow: 0 1px 2px rgba(30,53,130,.05); }
.pcard:hover, .icard:hover, .tile:hover, a.dash-stat:hover { transform: none; box-shadow: 0 4px 14px rgba(30,53,130,.08); border-color: #D6D1C6; }
.card-head h3 { color: var(--navy); }
.table th { background: #F8F7F3; color: #6C7480; }
.table tr:hover td { background: #FBFAF7; }
.badge { background: var(--navy-soft); color: var(--navy); }
.badge.orange { background: #FFF3D6; color: #9A5B00; }
.notice { background: var(--cream-soft); border-color: #EDE3B4; color: #5B4A12; }
.notice .icon { color: var(--orange); }
.notice-item { background: var(--cream-soft); border: 1px solid #F1E8BE; }
.alert.warn { background: #FFF6DA; color: #7A5300; }
.seg a.on, .fmt button.on, .chip.active { background: var(--navy); }
.chip:hover { border-color: #D3CEC3; }
.progress i { background: var(--orange); }
.spinner { border-color: rgba(30,53,130,.15); border-top-color: var(--orange); }

/* sidebar */
.sidebar { background: var(--navy); color: #CBD3DC; }
.sidebar .brand { border-bottom-color: rgba(255,255,255,.08); }
.sidebar .brand small { color: #8FDCC5; }
.nav-label { color: #8995A3; }
.nav a { color: #D0D7DE; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(255,255,255,.10); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.nav a.active .icon { color: #6FD0B4; }
.nav a .count.reg-count { background: var(--orange); color: #fff; }
.sidebar-foot { background: rgba(255,255,255,.05); }
.avatar, .avatar-big { background: var(--orange); color: #fff; }
.size-guide .b { color: #fff; }

/* topbar + mobile bottom bar */
.topbar { background: rgba(246,245,241,.92); }
.bell-dot { background: var(--orange); }
.bottom-nav a.active, .bottom-nav a.active .icon { color: var(--orange); }

/* banners */
.hero, .dash-hero { background: var(--navy); box-shadow: none; }
.hero::after, .dash-hero::before { display: none; }
.hero p, .dash-hero p, .dh-plan span, .dh-plan small { color: #D0D7DE; }
.dh-plan a { color: #8FDCC5; }
.dh-plan { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.ticker { background: #14263A; }
.ticker > .icon, .ticker-move i, .ticker-link .icon { color: #6FD0B4; }

/* dashboard shortcut buttons (were blue) */
.group-btn { background: var(--navy); box-shadow: none; }
.group-btn:hover { transform: none; background: var(--navy-2); box-shadow: none; }
.group-btns.compact .group-btn { background: #fff; color: var(--navy); }
.group-btns.compact .group-btn.on { background: var(--navy); color: #fff; }
.pcard .tag.new, .iimg .tag { background: var(--orange); }
.ph { background: var(--cream-soft); }
.dash-cols > * { min-width: 0; }   /* long names inside must not push the page sideways */

/* ---------- sign-in page ---------- */
.login-art { background: var(--navy); padding: 40px 56px 28px; gap: 24px; }
.login-art::before { display: none; }
.login-art .logo-pill img { height: 42px; }
.la-main { max-width: 620px; }
.la-kicker { display: block; background: none; border: 0; padding: 0; margin: 0; border-radius: 0; color: #8FDCC5; font-size: 12.5px; letter-spacing: .08em; }
.login-art h1 { font-size: clamp(28px, 2.7vw, 40px); margin: 12px 0 12px; letter-spacing: -.015em; }
.login-art h1 em { color: var(--cream); }
.login-art .lead { color: #C9D1DA; font-size: 15.5px; }
.login-art .tagline-ml { font-size: 17px; margin-top: 10px; color: #E6EBF0; }
.la-features { margin-top: 26px; gap: 0 28px; }
.la-features li { background: none; border: 0; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; padding: 12px 0; }
.la-features .icon { background: none; color: #6FD0B4; width: 22px; height: 22px; padding: 0; border-radius: 0; }
.la-features span { color: #9EAAB7; }
.la-foot { border-top-color: rgba(255,255,255,.08); color: #9EAAB7; gap: 6px 20px; }
.la-foot a { color: #C9D1DA; text-decoration: none; }
.la-foot a:hover { color: #fff; text-decoration: underline; }
.signup-btn { background: var(--navy); }
.signup-btn:hover { background: var(--navy-2); }

/* sign-in slider: 16:9 pictures from Admin → Sign-in slider */
.la-slider { position: relative; margin-top: 26px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #14263A; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ls-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.ls-slide { flex: 0 0 100%; height: 100%; }
.ls-slide a, .ls-slide img { display: block; width: 100%; height: 100%; }
.ls-slide img { object-fit: cover; user-select: none; }
.ls-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--navy); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.ls-nav.prev { left: 10px; } .ls-nav.prev .icon { transform: rotate(180deg); }
.ls-nav.next { right: 10px; }
.la-slider:hover .ls-nav, .ls-nav:focus-visible { opacity: 1; }
.ls-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.ls-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .25s, background .25s; }
.ls-dots button.on { width: 22px; background: #fff; }
.m-slider { display: none; }
@media (max-height: 820px) and (min-width: 901px) { .la-slider { max-width: 520px; } }
@media (max-width: 900px) { .m-slider:not(.hidden) { display: block; margin-top: 22px; box-shadow: none; } .ls-nav { display: none; } }

/* Admin → Sign-in slider */
.sl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sl-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.sl-img { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.sl-img img { width: 100%; height: 100%; object-fit: cover; }
.sl-n { position: absolute; top: 8px; left: 8px; min-width: 24px; height: 24px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.sl-form { padding: 12px; display: grid; gap: 8px; }
.sl-form .input { height: 38px; font-size: 13.5px; }
.sl-acts { display: flex; gap: 6px; align-items: center; }
.sl-acts [data-up] .icon { transform: rotate(180deg); }
/* Passport Photo Print (customer page #passport-photo) */
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pp-col { display: grid; gap: 16px; min-width: 0; }
.pp-step { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pp-step span { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.pp-step b { font-size: 15.5px; }
.pp-step small { color: var(--muted); }
.pp-lbl { display: block; font-size: 13px; font-weight: 600; margin: 4px 0 6px; }
.pp-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pp-seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 6px; font: inherit; cursor: pointer; display: grid; gap: 2px; text-align: center; color: var(--text); }
.pp-seg button b { font-size: 14px; }
.pp-seg button small { color: var(--muted); font-size: 11.5px; }
.pp-seg button.on { border-color: var(--orange); background: var(--orange-soft); }
.pp-seg button.on small { color: var(--orange-2); }
.pp-custom { margin-bottom: 4px; }
.pp-people { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pp-person { width: 62px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 3px 3px 2px; cursor: pointer; display: grid; gap: 2px; justify-items: center; font: inherit; color: var(--text); }
.pp-person img { width: 100%; aspect-ratio: 35 / 45; object-fit: cover; border-radius: 5px; background: var(--surface-2); }
.pp-person span { font-size: 11.5px; font-weight: 700; }
.pp-person.on { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
.pp-add { border-style: dashed; color: var(--muted); align-content: center; min-height: 92px; }
.pp-add .icon { width: 20px; height: 20px; }
.pp-bar { gap: 6px; margin-bottom: 8px; }
.pp-stage { max-height: 420px; }
.pp-fields { margin-top: 14px; }
.pp-copies { gap: 8px; align-items: center; flex-wrap: wrap; }
.pp-copies .input { width: 90px; flex: none; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--text); }
.pp-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pp-range { gap: 10px; align-items: center; }
.pp-range input { flex: 1; accent-color: var(--orange); }
.pp-date { gap: 6px; flex-wrap: nowrap; }
.pp-date .input { min-width: 0; flex: 1; }
.pp-opts { display: grid; gap: 8px; font-size: 13.5px; }
.pp-opts label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.pp-out { display: grid; gap: 12px; }
.pp-sheet { display: grid; place-items: center; background: var(--surface-2); border-radius: 10px; padding: 14px; min-height: 260px; }
.pp-sheet img { max-width: 100%; max-height: 460px; border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(0,0,0,.08); background: #fff; cursor: zoom-in; }
.pp-empty { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 13.5px; }
.pp-empty .icon { width: 30px; height: 30px; opacity: .5; }
.pp-pager { justify-content: center; gap: 10px; align-items: center; }
.pp-info b { color: var(--text); }
@media (max-width: 980px) { .pp-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pp-stage { max-height: 340px; } .pp-person { width: 54px; } .pp-add { min-height: 80px; } }
/* Forgot password (sign-in page) */
.fp-code { letter-spacing: 6px; font-weight: 700; font-size: 18px; }
.fp-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; font-size: 13.5px; }
.fp-links span { color: var(--muted); }
#forgotView .back-link .icon, #signupView .back-link .icon { transform: rotate(180deg); }
/* Admin → key icon (reset password choice) + Admin → Password reset email */
.pw-opts { display: grid; gap: 10px; }
.pw-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 14px; font: inherit; color: var(--text); cursor: pointer; }
.pw-opt:hover { border-color: var(--orange); }
.pw-opt > .icon { flex: none; margin-top: 2px; color: var(--navy); }
.pw-opt div { display: grid; gap: 3px; }
.pw-link { background: var(--surface-2); word-break: break-all; font-size: 13.5px; }
.ml-grid { align-items: start; }
.ml-hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0 14px; }
.ml-adv summary { cursor: pointer; color: var(--muted); margin-bottom: 6px; }
.ml-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.ml-count { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }.fp-sum { display: flex; gap: 8px; }
.fp-sum .input { flex: 1; min-width: 0; font-weight: 700; font-size: 17px; }
.fp-q { color: var(--orange); font-size: 15px; white-space: nowrap; }
/* Admin → Renewals due: renewal prices */
.rn-prices { margin-bottom: 14px; }
.rn-pr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rn-pr-head b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.rn-pr-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.rn-pr { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; min-width: 110px; background: var(--surface); }
.rn-pr small { color: var(--muted); font-size: 12px; }
.rn-pr b { font-size: 17px; color: var(--navy); }
.rn-pr em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.rn-pgrid { display: grid; grid-template-columns: auto auto 1fr 1fr; gap: 8px 12px; align-items: center; }
.rn-new { font-weight: 600; font-size: 14px; }
@media (max-width: 560px) { .rn-pgrid { grid-template-columns: 70px 64px 1fr 1fr; gap: 8px; } .rn-pgrid .input { padding-left: 8px; padding-right: 8px; } }
/* ===== BILL MODELS — invoice designs chosen on the invoice page (class tpl-*, colour --ic) ===== */
.inv-design { padding: 12px 14px; margin: 0 auto 14px; max-width: 800px; }
.ind-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 10px; }
.ind-models { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ind-model { flex: none; width: 104px; display: grid; justify-items: center; gap: 2px; padding: 8px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; text-align: center; font: inherit; color: var(--ink, #1d2433); }
.ind-model b { font-size: 12.5px; line-height: 1.2; }
.ind-model small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.ind-model.on { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(35,134,110, .15); }
.ind-mini { position: relative; width: 46px; height: 60px; margin-bottom: 4px; background: #fff; border: 1px solid #d9dde3; border-radius: 3px; padding: 5px 5px; display: grid; align-content: start; gap: 3px; overflow: hidden; }
.ind-mini i { display: block; height: 3px; border-radius: 1px; background: #cfd5dd; }
.ind-mini .m1 { height: 6px; width: 60%; background: var(--navy); }
.ind-mini .m2 { height: 4px; background: var(--navy); opacity: .35; margin-top: 2px; }
.ind-mini .m4 { width: 50%; margin-left: auto; height: 5px; background: var(--navy); margin-top: 3px; }
.mini-modern .m1 { width: auto; height: 11px; margin: -5px -5px 2px; border-radius: 0; background: var(--orange); }
.mini-minimal .m1, .mini-minimal .m2, .mini-minimal .m4 { background: #222; opacity: 1; }
.mini-minimal .m2 { height: 1px; }
.mini-bold { border-left: 5px solid var(--orange); }
.mini-bold .m4 { width: 60%; height: 7px; background: #222; }
.mini-boxed { border: 2px solid #333; }
.mini-boxed .m1 { margin: 0 auto; }
.mini-boxed .m3 { height: 5px; background: none; border: 1px solid #555; border-radius: 0; }
.mini-elegant .m1 { margin: 0 auto; width: 70%; background: #B45309; }
.mini-elegant .m2 { height: 1px; opacity: 1; background: #B45309; box-shadow: 0 2px 0 #B45309; }
.mini-compact { width: 46px; height: 34px; margin-top: 13px; margin-bottom: 17px; gap: 2px; padding: 3px 4px; }
.mini-compact .m3:nth-of-type(n+5) { display: none; }
.ind-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.ind-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: var(--sw); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.ind-sw.on { box-shadow: 0 0 0 2px var(--orange); }
.invoice-paper { --ic: #1e3582; }
.ip-sign { display: none; }
/* classic (the old design, now in the chosen colour) */
.invoice-paper:not(.thermal) .ip-head { border-bottom-color: var(--ic); }
.invoice-paper:not(.thermal) .ip-head h2 { color: var(--ic); }
.invoice-paper.tpl-classic:not(.thermal) .ip-title { color: var(--ic); }
.invoice-paper:not(.thermal) .ip-totals .grand { border-top-color: var(--ic); }
.invoice-paper.tpl-classic:not(.thermal) .ip-table th { background: color-mix(in srgb, var(--ic) 10%, #fff); }
/* modern: colour header band, coloured table head, total pill */
.invoice-paper.tpl-modern:not(.thermal) .ip-head { background: var(--ic); color: #fff; border: 0; border-radius: 10px; padding: 18px 20px; }
.invoice-paper.tpl-modern:not(.thermal) .ip-head h2, .invoice-paper.tpl-modern:not(.thermal) .ip-title { color: #fff; }
.invoice-paper.tpl-modern:not(.thermal) .ip-head .ip-muted { color: rgba(255, 255, 255, .85); }
.invoice-paper.tpl-modern:not(.thermal) .ip-photo { border-color: rgba(255, 255, 255, .5); }
.invoice-paper.tpl-modern:not(.thermal) .ip-table th { background: var(--ic); color: #fff; }
.invoice-paper.tpl-modern:not(.thermal) .ip-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ic) 5%, #fff); }
.invoice-paper.tpl-modern:not(.thermal) .ip-totals .grand { border: 0; background: var(--ic); color: #fff; border-radius: 8px; padding: 8px 12px; }
.invoice-paper.tpl-modern:not(.thermal) .ip-bill { background: color-mix(in srgb, var(--ic) 6%, #fff); border-radius: 8px; padding: 10px 12px; }
/* minimal: hairlines, no fills */
.invoice-paper.tpl-minimal:not(.thermal) { color: #111; }
.invoice-paper.tpl-minimal:not(.thermal) .ip-head { border-bottom: 1px solid var(--ic); }
.invoice-paper.tpl-minimal:not(.thermal) .ip-head h2 { font-weight: 700; letter-spacing: .01em; }
.invoice-paper.tpl-minimal:not(.thermal) .ip-title { color: var(--ic); font-weight: 600; letter-spacing: .3em; font-size: 18px; }
.invoice-paper.tpl-minimal:not(.thermal) .ip-table th { background: none; border-bottom: 1px solid var(--ic); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.invoice-paper.tpl-minimal:not(.thermal) .ip-table td { border-bottom: 1px solid #e6e6e6; }
.invoice-paper.tpl-minimal:not(.thermal) .ip-totals .grand { border-top: 1px solid var(--ic); }
.invoice-paper.tpl-minimal:not(.thermal) .ip-note { background: none; border: 1px solid #ddd; }
.invoice-paper.tpl-minimal:not(.thermal) .ip-status { color: #111; }
/* bold: thick side stripe, big title, dark total box */
.invoice-paper.tpl-bold:not(.thermal) { border-left: 10px solid var(--ic); }
.invoice-paper.tpl-bold:not(.thermal) .ip-head { border-bottom: 0; }
.invoice-paper.tpl-bold:not(.thermal) .ip-title { font-size: 34px; letter-spacing: .04em; color: var(--ic); line-height: 1; margin-bottom: 6px; }
.invoice-paper.tpl-bold:not(.thermal) .ip-table th { background: #1d2433; color: #fff; }
.invoice-paper.tpl-bold:not(.thermal) .ip-table tbody tr:nth-child(odd) td { background: #f6f6f6; }
.invoice-paper.tpl-bold:not(.thermal) .ip-bill b { font-size: 17px; }
.invoice-paper.tpl-bold:not(.thermal) .ip-totals .grand { border: 0; background: var(--ic); color: #fff; padding: 10px 12px; font-size: 21px; }
/* boxed: traditional bill book — outlined page, centred head, full grid, signature line */
.invoice-paper.tpl-boxed:not(.thermal) { border: 2px solid var(--ic); border-radius: 0; }
.invoice-paper.tpl-boxed:not(.thermal) .ip-head { flex-direction: column; align-items: center; text-align: center; gap: 8px; border-bottom: 2px solid var(--ic); }
.invoice-paper.tpl-boxed:not(.thermal) .ip-brand { justify-content: center; align-items: center; }
.invoice-paper.tpl-boxed:not(.thermal) .ip-from { flex: none; }
.invoice-paper.tpl-boxed:not(.thermal) .ip-head h2 { font-size: 26px; text-transform: uppercase; }
.invoice-paper.tpl-boxed:not(.thermal) .ip-meta { text-align: center; display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; align-items: center; }
.invoice-paper.tpl-boxed:not(.thermal) .ip-title { width: 100%; font-size: 14px; letter-spacing: .2em; color: #fff; background: var(--ic); padding: 3px 0; }
.invoice-paper.tpl-boxed:not(.thermal) .ip-bill { border: 1px solid var(--ic); padding: 8px 10px; }
.invoice-paper.tpl-boxed:not(.thermal) .ip-table th, .invoice-paper.tpl-boxed:not(.thermal) .ip-table td { border: 1px solid var(--ic); }
.invoice-paper.tpl-boxed:not(.thermal) .ip-table th { background: color-mix(in srgb, var(--ic) 12%, #fff); }
.invoice-paper.tpl-boxed:not(.thermal) .ip-totals { border: 1px solid var(--ic); margin-top: -1px; padding: 4px 10px; width: 300px; }
.invoice-paper.tpl-boxed:not(.thermal) .ip-sign, .invoice-paper.tpl-elegant:not(.thermal) .ip-sign { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; font-size: 12.5px; color: #333; }
.invoice-paper.tpl-boxed:not(.thermal) .ip-sign span, .invoice-paper.tpl-elegant:not(.thermal) .ip-sign span { border-top: 1px solid #333; padding-top: 4px; min-width: 160px; text-align: center; }
/* elegant: centred, serif headings, double rules */
.invoice-paper.tpl-elegant:not(.thermal) .ip-head { flex-direction: column; align-items: center; text-align: center; gap: 6px; border-bottom: 3px double var(--ic); }
.invoice-paper.tpl-elegant:not(.thermal) .ip-brand { justify-content: center; align-items: center; flex-direction: column; }
.invoice-paper.tpl-elegant:not(.thermal) .ip-from { flex: none; }
.invoice-paper.tpl-elegant:not(.thermal) .ip-head h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 28px; font-weight: 700; }
.invoice-paper.tpl-elegant:not(.thermal) .ip-meta { text-align: center; display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; align-items: baseline; }
.invoice-paper.tpl-elegant:not(.thermal) .ip-title { width: 100%; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; letter-spacing: .3em; font-size: 16px; color: var(--ic); }
.invoice-paper.tpl-elegant:not(.thermal) .ip-table th { background: none; border-top: 1px solid var(--ic); border-bottom: 1px solid var(--ic); font-family: Georgia, serif; }
.invoice-paper.tpl-elegant:not(.thermal) .ip-totals .grand { border-top: 3px double var(--ic); font-family: Georgia, serif; }
.invoice-paper.tpl-elegant:not(.thermal) .ip-foot { font-family: Georgia, serif; font-style: italic; border-top: 1px solid var(--ic); }
/* compact: half A4 (A5) */
.invoice-paper.tpl-compact:not(.thermal) { max-width: 560px; padding: 22px 24px; font-size: 12.5px; }
.invoice-paper.tpl-compact:not(.thermal) .ip-head { padding-bottom: 10px; margin-bottom: 10px; gap: 12px; }
.invoice-paper.tpl-compact:not(.thermal) .ip-head h2 { font-size: 17px; }
.invoice-paper.tpl-compact:not(.thermal) .ip-title { font-size: 16px; }
.invoice-paper.tpl-compact:not(.thermal) .ip-muted { font-size: 11.5px; }
.invoice-paper.tpl-compact:not(.thermal) .ip-photo { width: 48px; height: 48px; }
.invoice-paper.tpl-compact:not(.thermal) .ip-table th { font-size: 11px; padding: 5px 6px; background: color-mix(in srgb, var(--ic) 10%, #fff); }
.invoice-paper.tpl-compact:not(.thermal) .ip-table td { padding: 5px 6px; }
.invoice-paper.tpl-compact:not(.thermal) .ip-totals { width: 220px; margin-top: 8px; }
.invoice-paper.tpl-compact:not(.thermal) .ip-totals .grand { font-size: 15px; }
.invoice-paper.tpl-compact:not(.thermal) .ip-foot { margin-top: 14px; padding-top: 8px; }
@media (max-width: 560px) {
  .inv-design { padding: 10px; }
  .ind-model { width: 92px; }
  .invoice-paper.tpl-bold:not(.thermal) { border-left-width: 6px; }
  .invoice-paper.tpl-bold:not(.thermal) .ip-title { font-size: 24px; }
  .invoice-paper.tpl-boxed:not(.thermal) .ip-totals, .invoice-paper.tpl-compact:not(.thermal) .ip-totals { width: 100%; }
  .invoice-paper.tpl-boxed:not(.thermal) .ip-head h2, .invoice-paper.tpl-elegant:not(.thermal) .ip-head h2 { font-size: 20px; }
  .ip-sign span { min-width: 0 !important; flex: 1; }
}
/* optional service details (application no, login ID …) — form card + bill block, all models */
.inv-sd .check { align-items: flex-start; gap: 8px; }
.inv-sd .check > span { min-width: 0; overflow-wrap: anywhere; }
.sd-rows { display: grid; gap: 8px; margin-top: 12px; }
.sd-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; gap: 8px; align-items: center; }
.sd-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.ip-sd { margin-top: 14px; border: 1px solid color-mix(in srgb, var(--ic, #1e3582) 35%, #ddd); border-radius: 8px; padding: 10px 12px; break-inside: avoid; }
.ip-sd-h { font-weight: 700; font-size: 12.5px; color: var(--ic, #1e3582); margin-bottom: 6px; }
.ip-sd dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.ip-sd dl > div { display: flex; gap: 6px; min-width: 0; }
.ip-sd dt { color: #555; white-space: nowrap; }
.ip-sd dt::after { content: ':'; }
.ip-sd dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.ip-sd-n { margin-top: 6px; font-size: 11px; color: #666; }
.invoice-paper.tpl-boxed:not(.thermal) .ip-sd { border-radius: 0; border-color: var(--ic); }
.invoice-paper.tpl-minimal:not(.thermal) .ip-sd { border-color: #ccc; }
.invoice-paper.tpl-minimal:not(.thermal) .ip-sd-h { color: #111; }
.invoice-paper.tpl-elegant:not(.thermal) .ip-sd-h { font-family: Georgia, serif; }
.invoice-paper.tpl-compact:not(.thermal) .ip-sd { margin-top: 10px; padding: 8px 10px; }
.invoice-paper.thermal .ip-sd { border: 0; border-top: 1px dashed #000; border-radius: 0; padding: 8px 0 0; }
.invoice-paper.thermal .ip-sd-h { color: #000; }
.invoice-paper.thermal .ip-sd dl { grid-template-columns: 1fr; }
@media (max-width: 560px) {
  .sd-row { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 8px; border-bottom: 1px dashed var(--line, #ddd); }
  .sd-row .sd-v { grid-column: 1; }
  .sd-row .sd-del { grid-row: 1 / span 2; grid-column: 2; }
  .ip-sd dl { grid-template-columns: 1fr; }
}
@media print {
  .invoice-paper.tpl-boxed:not(.thermal) { border: 2px solid var(--ic); padding: 8mm; }
  .invoice-paper.tpl-bold:not(.thermal) { border-left: 10px solid var(--ic); padding-left: 8mm; }
  body.print-a5 .invoice-paper { page: invA5; }
  @page invA5 { size: A5; margin: 8mm; }
}
/* ===== MY CARD — WhatsApp QR Print (#whatsapp-qr) + Digital Visiting Card (#digital-card) ===== */
.mc-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.mc-wrap > * { min-width: 0; }
.mc-side { display: grid; gap: 12px; }
.mc-side > * { min-width: 0; }
.mc-main { position: sticky; top: 84px; }
.mc-link .mc-lhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-link .mc-lhead b { flex: 1; min-width: 0; }
.mc-url { margin: 8px 0 10px; padding: 9px 12px; background: #F6F4EF; border-radius: 10px; font-weight: 700; overflow-wrap: anywhere; }
.mc-url a { color: var(--navy); text-decoration: none; }
.mc-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mc-slug { margin-top: 12px; display: grid; gap: 6px; }
.mc-slug .input { flex: 1; min-width: 0; }
.mc-t { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--navy); flex-wrap: wrap; }
.mc-ta { height: auto; min-height: 60px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.mc-radio { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; line-height: 1.4; }
.mc-radio input { margin-top: 3px; flex: none; }
.mc-qrimg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.mc-qrimg img { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mc-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.mc-sw { display: flex; flex-wrap: wrap; gap: 7px; }
.mc-how { margin-top: 10px; }
.mc-how ol { margin: 6px 0 0; padding-left: 20px; }
.mc-row2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.mc-bar { position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; background: var(--bg, #FAF8F3); border-top: 1px solid var(--line); }
#dcForm { display: grid; gap: 12px; }
#dcForm > * { min-width: 0; }
.dc-pics { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.dc-cover { aspect-ratio: 1200 / 630; border-radius: 10px; background: #E7ECEF center / cover no-repeat; display: grid; place-items: center; margin: 6px 0 8px; color: var(--muted); font-size: 12.5px; text-align: center; padding: 6px; }
.dc-logo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #E7ECEF; display: grid; place-items: center; margin: 6px 0 8px; }
.dc-logo img { width: 100%; height: 100%; object-fit: cover; }
.dc-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 6px; }
.dc-g { position: relative; aspect-ratio: 1; }
.dc-g img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.dc-gx { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.dc-add { aspect-ratio: 1; border: 1.5px dashed var(--line); border-radius: 8px; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 12px; cursor: pointer; text-align: center; }
.dc-phone { max-width: 400px; margin: 0 auto; border: 10px solid #1d2433; border-radius: 34px; overflow: hidden; height: min(760px, calc(100vh - 150px)); background: #fff; box-shadow: var(--shadow); }
.dc-phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.wq-prev { padding: 12px; overflow: hidden; background: #E9E6DF; }
.wq-scale { position: relative; }
.wq-scale .wq-sheet { transform-origin: top left; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
/* the A4 sheet (real size, scaled for the preview) */
.wq-sheet { width: 210mm; height: 297mm; background: #fff; display: grid; overflow: hidden; color: #1d2433; font-family: 'Manrope', 'Anek Malayalam', sans-serif; }
.wq-a4 { grid-template-rows: 1fr; }
.wq-a5x2 { grid-template-rows: 1fr 1fr; }
.wq-a6x4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.wq-a5x2 .wqp + .wqp, .wq-a6x4 .wqp:nth-child(n+3) { border-top: 0.3mm dashed #999; }
.wq-a6x4 .wqp:nth-child(even) { border-left: 0.3mm dashed #999; }
.wqp { --wc: #15803D; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; min-width: 0; min-height: 0; }
.wqp .icon { width: 1em; height: 1em; }
.wqp-top { display: flex; align-items: center; justify-content: center; gap: 0.5em; max-width: 100%; }
.wqp-logo { width: 2.4em; height: 2.4em; border-radius: 50%; object-fit: cover; flex: none; }
.wqp-shop { font-weight: 800; color: var(--wc); line-height: 1.15; overflow-wrap: anywhere; }
.wqp-badge { display: inline-flex; align-items: center; gap: 0.35em; background: #25D366; color: #fff; border-radius: 99em; padding: 0.25em 0.9em; font-weight: 800; }
.wqp-badge .icon { stroke: #fff; }
/* Google review poster: star badge + numbered steps */
.wqp-badge.wqp-rv { background: #fff; color: #1d2433; border: 0.4mm solid #E5E7EB; gap: 0.5em; }
.wqp-stars { display: inline-flex; gap: 0.08em; }
.wqp-badge.wqp-rv .icon, .wqd-bold .wqp-badge.wqp-rv .icon, .wqd-minimal .wqp-badge.wqp-rv .icon { fill: #F59E0B; stroke: #F59E0B; }
.wqd-bold .wqp-badge.wqp-rv { color: #1d2433; border-color: #fff; }
.wqp-num li i { flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--wc); color: #fff; font-style: normal; font-weight: 800; font-size: 0.8em; display: grid; place-items: center; margin-top: 0.05em; }
.wqd-bold .wqp-num li i { background: #fff; color: var(--wc); }
.wqd-minimal .wqp-num li i { background: #111; }
.wqp-h { font-weight: 800; line-height: 1.2; color: #111; overflow-wrap: anywhere; }
.wqp-sub { color: #444; font-weight: 600; line-height: 1.25; }
.wqp-mid { display: flex; flex-direction: column; align-items: center; gap: 0.8em; width: 100%; }
.wqp-qr { background: #fff; border: 0.6mm solid var(--wc); border-radius: 3mm; padding: 2mm; line-height: 0; }
.wqp-qr svg, .wqp-qr img { width: 100%; height: 100%; display: block; object-fit: contain; }
.wqp-pts { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 0.35em; }
.wqp-pts li { display: flex; gap: 0.45em; align-items: flex-start; line-height: 1.3; }
.wqp-pts .icon { color: var(--wc); stroke: var(--wc); flex: none; margin-top: 0.15em; stroke-width: 3; }
.wqp-scan { font-weight: 700; color: var(--wc); }
.wqp-url { color: #555; font-weight: 600; letter-spacing: .02em; }
.wqp-foot { display: flex; align-items: center; gap: 0.4em; justify-content: center; font-weight: 800; color: #111; margin-top: auto; }
/* size: 1 per A4 */
.wqp-a4 { padding: 14mm 14mm 12mm; font-size: 5.2mm; gap: 5mm; }
.wqp-a4 .wqp-shop { font-size: 8mm; } .wqp-a4 .wqp-logo { width: 18mm; height: 18mm; }
.wqp-a4 .wqp-badge { font-size: 6mm; } .wqp-a4 .wqp-h { font-size: 12mm; } .wqp-a4 .wqp-sub { font-size: 6.5mm; }
.wqp-a4 .wqp-qr { width: 105mm; height: 105mm; } .wqp-a4 .wqp-pts { font-size: 5.6mm; } .wqp-a4 .wqp-scan { font-size: 5.4mm; } .wqp-a4 .wqp-url { font-size: 4.2mm; } .wqp-a4 .wqp-foot { font-size: 7mm; }
/* size: 2 per A4 (landscape halves: QR left, points right) */
.wqp-a5 { padding: 8mm 12mm; font-size: 4mm; gap: 2.4mm; }
.wqp-a5 .wqp-shop { font-size: 6mm; } .wqp-a5 .wqp-logo { width: 11mm; height: 11mm; }
.wqp-a5 .wqp-badge { font-size: 4.2mm; } .wqp-a5 .wqp-h { font-size: 7.6mm; } .wqp-a5 .wqp-sub { font-size: 4.6mm; }
.wqp-a5 .wqp-mid { flex-direction: row; justify-content: center; gap: 8mm; } .wqp-a5 .wqp-qr { width: 62mm; height: 62mm; flex: none; }
.wqp-a5 .wqp-pts { font-size: 4.4mm; max-width: 90mm; } .wqp-a5 .wqp-scan { font-size: 4mm; } .wqp-a5 .wqp-url { font-size: 3.3mm; } .wqp-a5 .wqp-foot { font-size: 5mm; }
/* size: 4 per A4 (table cards) */
.wqp-a6 { padding: 6mm 6mm 5mm; font-size: 3.2mm; gap: 2mm; }
.wqp-a6 .wqp-shop { font-size: 4.4mm; } .wqp-a6 .wqp-logo { width: 8mm; height: 8mm; }
.wqp-a6 .wqp-badge { font-size: 3.2mm; } .wqp-a6 .wqp-h { font-size: 5.4mm; } .wqp-a6 .wqp-sub { font-size: 3.4mm; }
.wqp-a6 .wqp-qr { width: 52mm; height: 52mm; } .wqp-a6 .wqp-pts { display: none; } .wqp-a6 .wqp-scan { font-size: 3.1mm; } .wqp-a6 .wqp-url { font-size: 2.7mm; } .wqp-a6 .wqp-foot { font-size: 3.8mm; }
/* designs */
.wqd-classic { border-top: 4mm solid var(--wc); }
.wq-a6x4 .wqd-classic, .wq-a5x2 .wqd-classic { border-top-width: 2.5mm; }
.wqd-bold { background: var(--wc); color: #fff; }
.wqd-bold .wqp-shop, .wqd-bold .wqp-h, .wqd-bold .wqp-sub, .wqd-bold .wqp-scan, .wqd-bold .wqp-url, .wqd-bold .wqp-foot { color: #fff; }
.wqd-bold .wqp-pts .icon { color: #fff; stroke: #fff; }
.wqd-bold .wqp-qr { border-color: #fff; border-width: 1.5mm; }
.wqd-bold .wqp-badge { background: #fff; color: var(--wc); } .wqd-bold .wqp-badge .icon { stroke: var(--wc); }
.wqd-minimal .wqp-shop, .wqd-minimal .wqp-scan { color: #111; }
.wqd-minimal .wqp-badge { background: none; color: #111; border: 0.4mm solid #111; } .wqd-minimal .wqp-badge .icon { stroke: #111; }
.wqd-minimal .wqp-qr { border: 0.4mm solid #111; border-radius: 0; }
#wqPrintBox { display: none; }
@media print {
  body.print-wq > :not(#wqPrintBox) { display: none !important; }
  body.print-wq #wqPrintBox { display: block; }
  body.print-wq { background: #fff !important; }
  body.print-wq .wq-sheet { page: wqA4; -webkit-print-color-adjust: exact; print-color-adjust: exact; width: 210mm; height: 296mm; }
  @page wqA4 { size: A4; margin: 0; }
}
@media (max-width: 960px) {
  .mc-wrap { grid-template-columns: minmax(0, 1fr); }
  .mc-main { position: static; }
  .dc-wrap .mc-main { order: 2; }
  .dc-phone { height: 640px; }
}
@media (max-width: 560px) {
  .dc-pics { grid-template-columns: minmax(0, 1fr); }
  .dc-phone { border-width: 6px; border-radius: 22px; height: 600px; }
}
/* ===== HELP PAGES — Software Guide (#software-guide) + Support (#support) ===== */
.hp { max-width: 920px; display: grid; gap: 14px; }
.hp > * { min-width: 0; }
.hp-print-head { display: none; }
.hp-intro { border-left: 4px solid var(--orange); }
.hp-media { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; max-width: 720px; }
.hp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hp-tools { display: grid; gap: 10px; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-chips a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--navy); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.hp-chips a:hover { border-color: var(--navy); }
.hp-list { display: grid; gap: 10px; }
.hp-sec { overflow: hidden; }
.hp-sec > summary, .hp-faq > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.hp-sec > summary::-webkit-details-marker, .hp-faq > summary::-webkit-details-marker { display: none; }
.hp-sec > summary { padding: 13px 16px; }
.hp-sec > summary b { flex: 1; min-width: 0; color: var(--navy); font-size: 15px; }
.hp-sec > summary .icon, .hp-faq > summary .icon { flex: none; color: var(--muted); transition: transform .15s; }
.hp-sec[open] > summary .icon, .hp-faq[open] > summary .icon { transform: rotate(180deg); }
.hp-sec[open] > summary { border-bottom: 1px solid var(--line); }
.hp-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.hp-sec .hp-body { padding: 12px 16px 16px; }
.hp-body { overflow-wrap: anywhere; }
.hp-body a:not(.btn) { color: var(--orange); font-weight: 600; }
.hp-h { margin: 0 0 8px; font-size: 16px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.hp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.hp-btn { white-space: normal; height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; line-height: 1.3; text-align: left; }
.hp-btn.hp-wa { background: #15803D; }
.hp-btn.hp-wa:hover { background: #166534; }
.hp-btn.hp-in { background: var(--orange); }
.hp-faq { border-top: 1px solid var(--line); }
.hp-faq:first-of-type { border-top: 0; }
.hp-faq > summary { padding: 11px 2px; }
.hp-faq > summary b { flex: 1; min-width: 0; font-weight: 600; }
.hp-faq .hp-body { padding: 0 2px 12px; color: #2b3552; }
.hp-support .hp-card:first-child { border-left: 4px solid var(--orange); }
.nav a.nav-support { margin-top: 4px; }
/* Admin → Guide & Support editor */
.ah-top { margin: 14px 0 12px; gap: 10px; flex-wrap: wrap; }
.ah-card .field:last-child { margin-bottom: 0; }
.ah-ta { height: auto; min-height: 64px; padding: 10px 12px; line-height: 1.55; resize: vertical; font-size: 14px; }
.ah-pdf { gap: 6px; flex-wrap: wrap; align-items: center; }
.field .ah-pdf label.btn { color: #fff; margin: 0; font-size: 13px; font-weight: 600; cursor: pointer; }
.ah-head { margin: 22px 0 6px; gap: 10px; }
.ah-head h3 { margin: 0; }
.ah-fmt { display: block; margin-bottom: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.ah-fmt code, .ah-card code { font-size: 12px; background: #F3F1EC; padding: 1px 5px; border-radius: 5px; }
.ah-list { display: grid; gap: 10px; }
.ah-list > * { min-width: 0; }
.ah-row { padding: 10px; display: grid; gap: 8px; }
.ah-rowhead { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ah-rowhead .input { flex: 1; min-width: 0; font-weight: 600; }
.ah-tools { display: flex; gap: 4px; flex: none; }
.ah-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding: 12px 0; background: var(--bg, #FAF8F3); border-top: 1px solid var(--line); }
.ah-preview { max-width: none; }
@media (max-width: 560px) {
  .ah-rowhead { flex-wrap: wrap; }
  .ah-rowhead .input { flex-basis: calc(100% - 40px); }
  .ah-tools { margin-left: auto; }
}
@media (max-width: 560px) {
  .hp-sec > summary { padding: 12px; gap: 8px; }
  .hp-sec .hp-body { padding: 10px 12px 14px; }
  .hp-sec > summary b { font-size: 14px; }
}
@media print {
  body.hp-printing .hp-tools, body.hp-printing .hp-media, body.hp-printing .hp-video, body.hp-printing .hp-btns, body.hp-printing #hpNone { display: none !important; }
  body.hp-printing .hp { max-width: none; display: block; }
  body.hp-printing .hp-print-head { display: block; font-size: 20px; color: #1D222B; border-bottom: 2px solid #23866E; padding-bottom: 6px; margin-bottom: 12px; }
  body.hp-printing .hp-print-head small { display: block; font-size: 11px; color: #65707C; font-weight: 400; }
  body.hp-printing .card { box-shadow: none; border: 1px solid #ddd; margin-bottom: 10px; break-inside: avoid-page; }
  body.hp-printing .hp-sec > summary .icon, body.hp-printing .hp-faq > summary .icon { display: none; }
  body.hp-printing .hp-faq { break-inside: avoid; }
  body.hp-printing .hp-body { font-size: 12.5px; }
}
/* ===== MOBILE FIT 2026-11 — long button text wraps instead of pushing the page sideways ===== */
.btn.block { white-space: normal; height: auto; min-height: 42px; padding-top: 9px; padding-bottom: 9px; line-height: 1.3; text-align: center; }
.btn.block > svg, .btn.block > .ic { flex: none; }
.login-form-side, .login-box, .login-box > div { min-width: 0; }
.login-box { max-width: 100%; }
@media (max-width: 560px) {
  .btn { max-width: 100%; }
  .btn:not(.icon-only) { white-space: normal; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; line-height: 1.25; text-align: center; }
  .alert, .notice { overflow-wrap: anywhere; }
  img, video, canvas, svg, iframe { max-width: 100%; }
}/* grid / flex children may shrink below their content width (stops wide canvases, links and long words pushing the page) */
.grid-2 > *, .grid-3 > *, .stats > *, .cp-wrap > *, .cp-tpls > *, .ml-grid > *, .pvc-item > *, .card > form, .field { min-width: 0; }
.ml-steps a, .ml-steps li { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .card-pad .row:has(> h3), #mlAcc > .row, .field .row { flex-wrap: wrap; gap: 6px; }
  .stats .stat { padding: 12px; gap: 10px; }
  .stats .stat .ic { width: 34px; height: 34px; flex: none; }
  .stats .stat .num { font-size: 20px; }
  .stats .stat .lbl { overflow-wrap: anywhere; }
  .pvc-item { gap: 8px; padding: 8px; }
  .cp-tpl canvas { width: 100%; height: auto; }
}.pvc-list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 400px) { .pvc-item { flex-wrap: wrap; } .pvc-item .pvc-meta { flex: 1 1 90px; } }
#msg > .btn { margin: 10px 0 16px; }

/* ===== FIRST SIGN-IN POP-UPS (guide / WhatsApp group / review) — E.firstPop in common.js ===== */
.modal.first-pop { position: relative; max-width: 440px; width: 100%; padding: 0; overflow: hidden; }
.first-pop .popup-x { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(255,255,255,.95); border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.first-pop .fp-img { background: #1e3582; }
.first-pop .fp-img img { display: block; width: 100%; height: auto; max-height: 46vh; object-fit: contain; }
.first-pop .fp-ic { display: flex; align-items: center; justify-content: center; height: 96px; background: #1e3582; color: #F2F5FC; }
.first-pop .fp-ic .icon { width: 42px; height: 42px; }
.first-pop.fp-group .fp-ic { background: #15803D; color: #fff; }
.first-pop.fp-review .fp-ic { background: #23866E; color: #fff; }
.first-pop .fp-body { padding: 18px 20px 20px; }
.first-pop .fp-title { font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--text); }
.first-pop .fp-text { margin-top: 8px; color: var(--muted); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.first-pop .fp-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.first-pop .fp-foot .fp-go { flex: 1 1 200px; justify-content: center; white-space: normal; text-align: center; }
.first-pop .fp-foot .btn.ghost { flex: 0 1 auto; }

/* ===== CUSTOMER REMINDER ALERTS (daily pop-up + bell block) — accounts.js ===== */
.bell-rem.crm { background: #E7F8EE; }
.bell-rem.crm em, .bell-rem.crm small { color: #15803D; }
.modal.crm-pop { position: relative; max-width: 520px; width: 100%; padding: 0; overflow: hidden; }
.crm-pop .popup-x { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(255,255,255,.95); border-radius: 50%; }
.crm-pop .cp-top { background: #1e3582; color: #F2F5FC; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.crm-pop .cp-top b { font-size: 18px; line-height: 1.35; padding-right: 36px; }
.crm-pop .cp-top small { opacity: .85; }
.crm-pop .cp-ic { width: 40px; height: 40px; border-radius: 50%; background: #23866E; color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.crm-pop .cp-list { list-style: none; margin: 0; padding: 8px 18px; max-height: 50vh; overflow: auto; }
.crm-pop .cp-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line, #eee); flex-wrap: wrap; }
.crm-pop .cp-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.crm-pop .cp-who span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.crm-pop .cp-who em { font-style: normal; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.crm-pop .cp-who em.red-t { color: #B91C1C; font-weight: 600; }
.crm-pop .cp-act { display: flex; gap: 6px; flex-wrap: wrap; }
.crm-pop .cp-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; }
.crm-pop .cp-foot .btn.orange { flex: 1 1 220px; justify-content: center; white-space: normal; }

/* ===== BULK SELECT (admin lists: tick rows → export / show / hide / move / delete) ===== */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 10px; background: var(--navy-soft, #e8edf3); border: 1px solid var(--line); border-radius: 12px; }
.bulk-bar[hidden] { display: none; }
.bulk-bar > b { font-size: 14px; margin-right: 4px; }
.bulk-bar .spacer { flex: 1 1 auto; }
.bulk-bar .btn { white-space: normal; }
.table th.bk-cell, .table td.bk-cell { width: 34px; padding-right: 0; vertical-align: middle; }
.bk-cell input, .bk-allrow input { width: 17px; height: 17px; accent-color: var(--orange, #23866E); cursor: pointer; }
.table tr.bk-on > td { background: #fff7e0; }
.reg-card > label.bk-cell { flex: 0 0 auto; padding-top: 10px; cursor: pointer; }
.reg-card.bk-on { background: #fff7e0; }
.bk-allrow { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
.bk-allrow[hidden] { display: none; }
@media (max-width: 600px) { .bulk-bar .spacer { flex-basis: 100%; height: 0; } .reg-card > label.bk-cell { padding-top: 0; } }

/* ===== APPLICATION STATUS (#applications) ===== */
.at-st { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.at-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; min-width: 0; }
.at-opt small { color: var(--muted, #5b6b7b); font-size: 12px; }
.at-opt.on { border-color: var(--orange, #23866E); background: #FFF7E0; }
.at-msg { white-space: pre-line; background: #F6F4EF; border-radius: 12px; padding: 12px 14px; font-size: 14px; word-break: break-word; }
.at-note { max-width: 220px; white-space: normal; }
.at-table td { vertical-align: top; }

/* ===== REPORTS: month by month + print ===== */
.rep-months td { vertical-align: middle; }
.rm-bar { height: 4px; background: #eef0f3; border-radius: 4px; margin-top: 5px; max-width: 140px; overflow: hidden; }
.rm-bar i { display: block; height: 100%; background: var(--orange, #23866E); border-radius: 4px; }
.rep-up { color: var(--green, #15803D); font-size: 11px; font-weight: 600; white-space: nowrap; }
.rep-down { color: var(--red, #B91C1C); font-size: 11px; font-weight: 600; white-space: nowrap; }
.rep-print-head { display: none; }
@media print {
  body.rep-printing .inv-filters, body.rep-printing .inv-tabs, body.rep-printing .seg, body.rep-printing .page-head-actions { display: none !important; }
  body.rep-printing .rep-print-head { display: block; font-size: 20px; font-weight: 700; color: #1D222B; border-bottom: 2px solid #23866E; padding-bottom: 6px; margin-bottom: 12px; }
  body.rep-printing .rep-print-head small { display: block; font-size: 11px; color: #65707C; font-weight: 400; }
  body.rep-printing .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid-page; }
  body.rep-printing .table-wrap { overflow: visible; }
  body.rep-printing .rep-grid { display: block; }
}
.rep-months td:first-child { white-space: nowrap; }

/* ===== LETTERS & AFFIDAVITS (#letters) ===== */
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lt-card { display: flex; gap: 12px; align-items: center; padding: 14px; color: inherit; text-decoration: none; min-width: 0; }
.lt-card:hover { border-color: var(--orange, #23866E); }
.lt-card b { display: block; font-size: 15px; }
.lt-card small { color: var(--muted, #5b6b7b); font-size: 12px; }
.lt-ic { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #E6F4F1; color: #0F766E; }
.lt-wrap { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.lt-wrap > * { min-width: 0; }
.lt-form .field { margin-bottom: 10px; }
.lt-paper-wrap { background: #e9e6df; border-radius: 14px; padding: 18px; overflow: auto; }
.lt-sheet { background: #fff; color: #111; max-width: 794px; min-height: 1000px; margin: 0 auto; padding: 64px 70px; box-shadow: 0 2px 10px rgba(0,0,0,.12); white-space: pre-line; line-height: 1.75; font-size: 15px; word-break: break-word; outline: none; }
.lt-sheet.editing { box-shadow: 0 0 0 3px var(--orange, #23866E); }
.lt-blank { background: #FFF1E6; color: #C2410C; border-bottom: 1px dashed #C2410C; padding: 0 3px; border-radius: 3px; }
@media (max-width: 860px) { .lt-wrap { grid-template-columns: 1fr; } .lt-paper-wrap { padding: 8px; } .lt-sheet { padding: 28px 22px; min-height: 0; } }
@media print {
  body.lt-printing * { visibility: hidden !important; }
  body.lt-printing .lt-sheet, body.lt-printing .lt-sheet * { visibility: visible !important; }
  body.lt-printing .lt-sheet { position: absolute; left: 0; top: 0; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; box-shadow: none !important; }
  body.lt-printing .lt-blank { background: none; color: transparent; border-bottom: 1px dotted #555; }
  body.lt-printing .lt-paper-wrap { background: none; padding: 0; overflow: visible; }
}
.lt-title { text-align: center; font-weight: 700; font-size: 1.25em; text-decoration: underline; text-underline-offset: 5px; margin-bottom: 1.2em; white-space: normal; }

.pay-price-grid.ds-grid { grid-template-columns: auto 1fr 1fr; max-width: 560px; }
@media (max-width:600px) { .pay-price-grid.ds-grid > span:nth-child(4) { display: block; } }
.pay-dist { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 4px; padding: 9px 12px; border-radius: 10px; background: #EAF2FF; color: #1E3A8A; font-size: 13px; line-height: 1.45; }
.pay-dist svg { flex: none; margin-top: 2px; }
/* ===== COUPON CODES (payment window + admin) ===== */
.pay-coupon { margin: 10px 0 4px; }
.pay-coupon .linkish { background: none; border: 0; padding: 0; color: var(--orange, #23866E); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pay-coupon .pc-row { display: flex; gap: 8px; }
.pay-coupon .pc-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .5px; }
.pay-coupon .pc-msg { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 13px; color: var(--red, #B91C1C); }
.pay-coupon .pc-msg.ok { color: var(--green, #15803D); }
.pay-coupon .pc-msg .linkish { font-size: 12px; margin-left: 6px; }
.pay-coupon .hidden, .pay-coupon.hidden { display: none !important; }
.cp-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }

/* ===== FEEDBACK & IDEAS ===== */
.fb-wrap { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.fb-wrap > * { min-width: 0; }
.fb-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.fb-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; min-width: 0; }
.fb-kind b { display: block; font-size: 13px; }
.fb-kind small { color: var(--muted, #5b6b7b); font-size: 11px; }
.fb-kind.on { border-color: var(--orange, #23866E); background: #FFF7E0; }
.fb-rate { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 12px; flex-wrap: wrap; }
#fbStars button { background: none; border: 0; font-size: 26px; line-height: 1; color: #d6d3cc; cursor: pointer; padding: 0 2px; }
#fbStars button.on { color: #F59E0B; }
.fb-item { margin-bottom: 10px; }
.fb-item.new { border-color: var(--orange, #23866E); }
.fb-text { margin-top: 8px; white-space: pre-line; word-break: break-word; }
.fb-reply { margin-top: 10px; padding: 10px 12px; background: #F0F7F4; border-radius: 10px; font-size: 14px; white-space: pre-line; }
.fb-reply b { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #0F766E; margin-bottom: 4px; }
.fb-st { color: #F59E0B; letter-spacing: 1px; font-size: 13px; }
@media (max-width: 860px) { .fb-wrap { grid-template-columns: 1fr; } }

/* ===== CARD REQUESTS + MINI WEBSITE (#digital-card, #digital-card/requests) ===== */
.dc-tabs { margin-bottom: 14px; max-width: 100%; overflow-x: auto; }
.dc-tabs a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dc-tabs em { font-style: normal; background: var(--orange, #23866E); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11.5px; line-height: 18px; }
.dc-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.dc-day { position: relative; cursor: pointer; }
.dc-day input { position: absolute; opacity: 0; pointer-events: none; }
.dc-day span { display: inline-block; padding: 6px 11px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 600; background: #fff; }
.dc-day input:checked + span { background: #FEE2E2; border-color: #F3A5A5; color: #991B1B; }
.dc-day input:focus-visible + span { outline: 2px solid var(--orange, #23866E); }
.rq-list { display: grid; gap: 10px; }
.rq-item { min-width: 0; }
.rq-name { font-size: 15.5px; }
.rq-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 4px; font-size: 14px; }
.rq-meta a, .rq-meta span { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.rq-msg { margin: 6px 0 2px; padding: 9px 12px; background: var(--cream-soft, #FFFDF0); border-radius: 10px; white-space: pre-line; font-size: 14px; overflow-wrap: anywhere; }
.rq-item .mc-btns { margin-top: 10px; }
/* ===== PRINT DESIGNS — visiting card / letterhead / profile picture (#print-designs, public/js/designs.js) ===== */
.dg-kinds { margin-bottom: 14px; max-width: 100%; overflow-x: auto; }
.dg-kinds a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dg-kinds a small { display: block; font-size: 11px; opacity: .75; font-weight: 500; line-height: 1.2; }
.dg-kinds a span { line-height: 1.25; }
.dg-prev { padding: 12px; background: #E9EAEC; overflow: hidden; display: flex; justify-content: center; }
.dg-scale { position: relative; }
.dg-sheet { --dc: #9F1239; background: #fff; color: #1d2433; box-shadow: 0 2px 14px rgba(0,0,0,.18); font-family: 'Manrope', 'Anek Malayalam', system-ui, sans-serif; overflow: hidden; box-sizing: border-box; position: relative; }
.dg-sheet *, .dg-sheet *::before { box-sizing: border-box; }
.dg-sheet svg.icon, .dg-sheet .icon { width: 1em; height: 1em; flex: none; }
.dg-a4 { width: 210mm; height: 297mm; }
.dg-a4l { width: 297mm; height: 210mm; }
/* visiting cards: 2 × 5 on A4 */
.dg-cards { display: grid; grid-template-columns: repeat(2, 89mm); grid-auto-rows: 51mm; padding: 21mm 16mm; }
.dg-cards.cut .dg-cell { outline: .2mm dashed #c9cdd2; outline-offset: -.1mm; }
.dg-cell { width: 89mm; height: 51mm; overflow: hidden; }
.dg-vc { width: 89mm; height: 51mm; position: relative; display: grid; font-size: 2.55mm; line-height: 1.3; overflow: hidden; }
.dg-vc .vc-logo { width: 12mm; height: 12mm; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.dg-vc .vc-logo.vc-ini { display: grid; place-items: center; background: var(--dc); color: #fff; font-weight: 800; font-size: 5.5mm; }
.dg-vc .vc-brand { display: flex; align-items: center; gap: 2.4mm; min-width: 0; }
.dg-vc .vc-shop { min-width: 0; }
.dg-vc .vc-shop b { display: block; font-size: 3.6mm; line-height: 1.15; font-weight: 800; }
.dg-vc .vc-shop small { display: block; font-size: 2.2mm; opacity: .8; margin-top: .4mm; }
.dg-vc .vc-who b { display: block; font-size: 3.1mm; font-weight: 800; }
.dg-vc .vc-who small { display: block; font-size: 2.2mm; color: var(--dc); font-weight: 700; text-transform: uppercase; letter-spacing: .15mm; }
.dg-vc .vc-info { display: grid; gap: .6mm; margin-top: 1.4mm; }
.dg-vc .r { display: flex; gap: 1.4mm; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.dg-vc .r .icon { width: 2.6mm; height: 2.6mm; margin-top: .2mm; color: var(--dc); }
.dg-vc .vc-body { position: relative; min-width: 0; }
.dg-vc .vc-qr { position: absolute; right: 0; bottom: 0; width: 13mm; height: 13mm; background: #fff; padding: .6mm; }
.dg-vc .vc-svc { font-size: 2.05mm; font-weight: 600; text-align: center; padding: 1mm 3mm; background: var(--dc); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-vc.t-band { grid-template-columns: 30mm 1fr; grid-template-rows: 1fr auto; }
.dg-vc.t-band .vc-brand { grid-row: 1; flex-direction: column; justify-content: center; text-align: center; background: var(--dc); color: #fff; padding: 3mm 2.4mm; }
.dg-vc.t-band .vc-brand .vc-logo { width: 13mm; height: 13mm; border: .5mm solid #fff; }
.dg-vc.t-band .vc-shop b { font-size: 3.1mm; }
.dg-vc.t-band .vc-body { padding: 3.6mm 3.4mm 2mm; }
.dg-vc.t-band .vc-svc { grid-column: 1 / -1; background: #f1f2f4; color: #374151; }
.dg-vc.t-top { grid-template-rows: auto 1fr auto; }
.dg-vc.t-top .vc-brand { background: var(--dc); color: #fff; padding: 2.6mm 4mm; }
.dg-vc.t-top .vc-body { padding: 2.4mm 4mm 1.6mm; display: grid; grid-template-columns: 1fr 1.25fr; gap: 3mm; align-items: start; }
.dg-vc.t-top .vc-info { margin-top: 0; }
.dg-vc.t-top .vc-svc { background: none; color: var(--dc); border-top: .3mm solid #e5e7eb; }
.dg-vc.t-minimal { grid-template-rows: auto 1fr auto; padding: 4mm 4.5mm 0; border-left: 1.6mm solid var(--dc); }
.dg-vc.t-minimal .vc-brand { padding-bottom: 2mm; border-bottom: .3mm solid var(--dc); }
.dg-vc.t-minimal .vc-shop b { color: var(--dc); }
.dg-vc.t-minimal .vc-body { padding-top: 2mm; display: grid; grid-template-columns: 1fr 1.3fr; gap: 3mm; }
.dg-vc.t-minimal .vc-info { margin-top: 0; }
.dg-vc.t-minimal .vc-svc { margin: 0 -4.5mm; background: none; color: #6b7280; }
.dg-vc.t-dark { grid-template-rows: auto 1fr auto; background: var(--dc); color: #fff; padding: 3.6mm 4.2mm 0; }
.dg-vc.t-dark .r .icon, .dg-vc.t-dark .vc-who small { color: #FFE8A3; }
.dg-vc.t-dark .vc-body { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3mm; padding-top: 2.4mm; }
.dg-vc.t-dark .vc-info { margin-top: 0; }
.dg-vc.t-dark .vc-svc { margin: 0 -4.2mm; background: rgba(0,0,0,.22); }
.dg-vc.t-dark .vc-logo { border: .4mm solid rgba(255,255,255,.7); }
/* letterhead */
.dg-lh { display: flex; flex-direction: column; padding: 14mm 16mm 0; }
.dg-lh .lh-head { display: flex; align-items: center; gap: 5mm; padding-bottom: 4mm; border-bottom: .8mm solid var(--dc); }
.dg-lh .lh-logo { width: 22mm; height: 22mm; object-fit: contain; flex: none; }
.dg-lh .lh-name { flex: 1; min-width: 0; }
.dg-lh .lh-name b { display: block; font-size: 7.4mm; line-height: 1.12; color: var(--dc); font-weight: 800; }
.dg-lh .lh-name small { display: block; font-size: 3.6mm; color: #4b5563; margin-top: 1mm; }
.dg-lh .lh-name em { display: block; font-style: normal; font-size: 3mm; color: #6b7280; margin-top: .8mm; }
.dg-lh .lh-contact { display: grid; gap: 1mm; font-size: 3.1mm; text-align: right; flex: none; max-width: 62mm; }
.dg-lh .lh-contact span { display: flex; gap: 1.6mm; align-items: center; justify-content: flex-end; overflow-wrap: anywhere; }
.dg-lh .lh-contact .icon { color: var(--dc); width: 3.2mm; height: 3.2mm; }
.dg-lh .lh-date { display: flex; justify-content: space-between; font-size: 3.4mm; margin-top: 6mm; color: #374151; }
.dg-lh .lh-body { flex: 1; margin-top: 8mm; font-size: 3.9mm; line-height: 1.75; overflow: hidden; overflow-wrap: anywhere; }
.dg-lh .lh-foot { margin: 0 -16mm; padding: 3.4mm 16mm; background: var(--dc); color: #fff; font-size: 3.1mm; display: flex; gap: 2mm; align-items: center; justify-content: center; min-height: 11mm; text-align: center; }
.dg-lh .lh-foot .icon { width: 3.4mm; height: 3.4mm; }
.dg-lh.t-classic .lh-head { flex-direction: column; text-align: center; gap: 2.4mm; border-bottom: none; padding-bottom: 3mm; }
.dg-lh.t-classic .lh-head::after { content: ''; display: block; width: 100%; height: 2.2mm; border-top: .9mm solid var(--dc); border-bottom: .3mm solid var(--dc); }
.dg-lh.t-classic .lh-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 1mm 6mm; max-width: none; text-align: center; }
.dg-lh.t-modern { padding-top: 0; }
.dg-lh.t-modern .lh-head { margin: 0 -16mm; padding: 9mm 16mm 7mm; background: var(--dc); color: #fff; border-bottom: none; }
.dg-lh.t-modern .lh-name b, .dg-lh.t-modern .lh-name small, .dg-lh.t-modern .lh-name em, .dg-lh.t-modern .lh-contact .icon { color: #fff; }
.dg-lh.t-modern .lh-logo { background: #fff; border-radius: 3mm; padding: 1.4mm; }
.dg-lh.t-modern .lh-foot { background: none; color: #4b5563; border-top: .5mm solid var(--dc); margin: 0; padding-left: 0; padding-right: 0; }
.dg-lh.t-modern .lh-foot .icon { color: var(--dc); }
.dg-locked { background: #F1F3F5 !important; color: #374151; cursor: not-allowed; font-weight: 700; }
.dg-numrow { display: flex; gap: 6px; align-items: center; min-width: 0; }
.dg-numrow .input { flex: 1; min-width: 0; }
.dg-addnum { margin: -2px 0 12px; }.dg-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-width: 0; }
.dg-logo-th { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: #F1F3F5; color: #9ca3af; border: 1px solid var(--line); }
.dg-logo-th img { width: 100%; height: 100%; object-fit: cover; }
.dg-pf { border-left: 4px solid var(--orange, #23866E); }
.dg-pf b { display: flex; align-items: center; gap: 6px; }/* profile picture (canvas 1080 × 1080, shown scaled) */
.dg-dpw { width: 1080px; height: 1080px; background: #fff; }
.dg-dpw canvas { display: block; width: 1080px; height: 1080px; }
.dg-dpw.guide::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 6px dashed rgba(255,255,255,.95); box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 0 0 2000px rgba(0,0,0,.28); pointer-events: none; }@media (max-width: 860px) { .dg-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dg-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .dg-kinds a { flex-direction: column; gap: 2px; white-space: normal; text-align: center; padding: 8px 4px; } }
@media print {
  body.dg-printing * { visibility: hidden !important; }
  body.dg-printing .dg-sheet, body.dg-printing .dg-sheet * { visibility: visible !important; }
  body.dg-printing .dg-sheet { position: fixed; left: 0; top: 0; transform: none !important; box-shadow: none !important; margin: 0; }
  body.dg-printing .dg-prev { overflow: visible; }
  body.dg-printing .dg-cards.cut .dg-cell { outline-color: #bbb; }
  body.dg-printing .dg-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ===== JOB & EXAM ALERTS (#job-alerts) ===== */
.ja-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ja-item { min-width: 0; display: flex; flex-direction: column; }
.ja-title { margin: 10px 0 2px; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.ja-pts { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.55; color: #374151; }
.ja-pts li { overflow-wrap: anywhere; }
.ja-item .mc-btns { margin-top: auto; padding-top: 12px; }
.ja-left { font-size: 12.5px; font-weight: 700; color: #166534; background: #DCFCE7; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.ja-left.soon { color: #991B1B; background: #FEE2E2; }
@media (max-width: 400px) { .ja-list { grid-template-columns: minmax(0, 1fr); } }
/* ===== NEW SERVICES (#new-services, Admin → New services) — pasted content shown like a blog post ===== */
.ns-strip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 14px; border-radius: 12px; background: #F2F5FC; border: 1px solid #F1E3A0; color: #1D222B; text-decoration: none; min-width: 0; }
.ns-strip > .icon { color: #23866E; flex-shrink: 0; }
.ns-strip > span { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; flex: 1; min-width: 0; }
.ns-strip b { font-size: 15px; }
.ns-strip:hover { border-color: #23866E; }
.ns-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ns-card { min-width: 0; display: flex; flex-direction: column; padding: 16px; border-top: 3px solid #23866E; }
.ns-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ns-meta .muted { display: inline-flex; align-items: center; gap: 5px; }
.ns-pic { position: relative; display: block; margin: -16px -16px 12px; background: #F2F5FC; border-bottom: 1px solid var(--line, #EEE); }
.ns-pic img { display: block; width: 100%; height: 260px; object-fit: contain; }
.ns-pic-n { position: absolute; right: 10px; bottom: 10px; background: #1e3582; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.ns-posters { padding: 18px 26px 4px; border-bottom: 1px solid var(--line, #EEE); }
.ns-posters h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 16px; color: #1D222B; }
.ns-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ns-pgrid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #E5E7EB; background: #F2F5FC; }
.ns-pgrid img { display: block; width: 100%; height: auto; }
.ns-pg { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ns-pg .btn { white-space: normal; justify-content: center; }
.ns-dl { margin-top: 10px; justify-content: center; white-space: normal; flex-wrap: wrap; }
.ns-dl-n { font-weight: 500; font-size: 12px; opacity: .85; }
.ns-pl { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ns-pi { border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; background: #fff; min-width: 0; }
.ns-pi img { display: block; width: 100%; height: 150px; object-fit: contain; background: #F2F5FC; }
.ns-pi-b { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 8px 0; }
.ns-pi-b:last-child { padding-bottom: 8px; }
.ns-pl { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ns-pi-d { padding: 4px 8px 0; display: grid; gap: 2px; }
.ns-pi-d .icon, .ns-pa-b .small .icon { vertical-align: -2px; }
/* admin "Service posters" page */
.ns-pstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 14px; color: inherit; text-decoration: none; }
.ns-pstrip:hover { border-color: #1e3582; }
.ns-ptabs { display: flex; flex-wrap: wrap; margin-bottom: 14px; }
.ns-ptabs em { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: rgba(30,53,130, .1); }
.ns-pgrid-a { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ns-pa { display: flex; gap: 12px; padding: 12px; min-width: 0; }
.ns-pa-img { flex: 0 0 96px; }
.ns-pa-img img { width: 96px; height: 120px; object-fit: contain; background: #F2F5FC; border-radius: 8px; display: block; }
.ns-pa-b { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: start; }
.ns-pa-t { font-weight: 700; color: #1D222B; overflow-wrap: anywhere; }
.ns-pa-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ns-pe { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
.ns-pe > img { width: 120px; max-height: 170px; object-fit: contain; background: #F2F5FC; border-radius: 8px; }
@media (max-width: 520px) { .ns-pe { grid-template-columns: minmax(0, 1fr); } .ns-pe > img { width: 100%; max-height: 200px; } }
@media (max-width: 640px) { .ns-posters { padding: 14px 16px 2px; } .ns-pgrid { grid-template-columns: 1fr 1fr; } .ns-pic img { height: 220px; } }
.ns-left { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #166534; background: #DCFCE7; padding: 4px 10px; border-radius: 99px; max-width: 100%; }
.ns-left.soon { color: #991B1B; background: #FEE2E2; }
.ns-left.over { color: #4B5563; background: #F3F4F6; }
.ns-ahead .ns-left { margin-top: 12px; }
.ns-org { margin-top: 4px; font-size: 15px; }
.ns-ed-sec { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 12px; }
.ns-ed-sec .muted { flex-basis: 100%; }
#nsFill { margin-left: 6px; vertical-align: middle; }
.ns-title { margin: 10px 0 4px; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.ns-title a { color: inherit; text-decoration: none; }
.ns-title a:hover { color: #23866E; }
.ns-sum { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: #4B5563; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ns-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.ns-btns .btn, .ns-afoot .btn { white-space: normal; text-align: center; }
.ns-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px; font-weight: 600; color: #1D222B; text-decoration: none; }
.ns-back .icon { transform: rotate(180deg); }
.ns-article { max-width: 880px; margin: 0 auto; padding: 0; overflow: hidden; }
.ns-ahead { padding: 22px 26px 18px; border-bottom: 1px solid var(--line, #EEE); background: #FFFDF0; }
.ns-ahead .ns-btns { margin-top: 14px; padding-top: 0; }
.ns-h1 { margin: 10px 0 0; font-size: 24px; line-height: 1.35; color: #1D222B; overflow-wrap: anywhere; }
.ns-afoot { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 26px 22px; border-top: 1px solid var(--line, #EEE); }
/* the pasted content */
.ns-body { padding: 20px 26px; font-size: 15.5px; line-height: 1.75; color: #1F2937; overflow-wrap: anywhere; min-width: 0; }
.ns-body > :first-child { margin-top: 0; }
.ns-body > :last-child { margin-bottom: 0; }
.ns-body p, .ns-body div { margin: 0 0 14px; }
.ns-body h2, .ns-body h3, .ns-body h4, .ns-body h5, .ns-body h6 { color: #1D222B; line-height: 1.4; margin: 24px 0 10px; }
.ns-body h2 { font-size: 21px; }
.ns-body h3 { font-size: 18px; }
.ns-body h4, .ns-body h5, .ns-body h6 { font-size: 16px; }
.ns-body ul, .ns-body ol { margin: 0 0 14px; padding-left: 24px; }
.ns-body li { margin: 4px 0; }
.ns-body li > p { margin: 0; }
.ns-body a { color: #23866E; text-decoration: underline; text-underline-offset: 2px; }
.ns-body blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 4px solid #23866E; background: #F2F5FC; border-radius: 0 8px 8px 0; }
.ns-body hr { border: 0; border-top: 1px solid var(--line, #E5E7EB); margin: 20px 0; }
.ns-body mark { background: #FFF1A8; padding: 0 2px; }
.ns-body code { background: #F3F4F6; padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.ns-body pre { background: #F3F4F6; padding: 12px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; }
.ns-tw { overflow-x: auto; margin: 0 0 16px; border: 1px solid #D9DEE5; border-radius: 10px; -webkit-overflow-scrolling: touch; }
.ns-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.ns-body th, .ns-body td { border: 1px solid #D9DEE5; padding: 9px 12px; text-align: left; vertical-align: top; min-width: 90px; overflow-wrap: normal; word-break: normal; }
.ns-tw table { border-style: hidden; }
.ns-body th, .ns-body thead td { background: #1e3582; color: #fff; font-weight: 700; }
.ns-body tbody tr:nth-child(even) td { background: #F8FAFC; }
.ns-body caption { padding: 8px; font-weight: 700; text-align: left; }
/* admin editor */
.ns-ed { display: grid; gap: 14px; max-width: 980px; }
.ns-ed-card { padding: 0; overflow: hidden; }
.ns-ed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line, #EEE); }
.ns-ed-head .ns-mode { margin-left: auto; }
.ns-tb { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line, #EEE); background: #FAFAF7; }
.ns-tbb { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid #E2E5EA; border-radius: 7px; background: #fff; color: #1D222B; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ns-tbb:hover { border-color: #1e3582; }
.ns-editor { min-height: 360px; max-height: 70vh; overflow-y: auto; outline: none; }
.ns-editor:empty::before { content: attr(data-ph); color: #9CA3AF; }
.ns-ed-foot { padding: 8px 16px; border-top: 1px solid var(--line, #EEE); }
.ns-ed-bar { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; padding: 10px 0; background: var(--bg, #F6F7F9); }
#nsP { min-height: 200px; max-height: 70vh; overflow-y: auto; }
/* customer New services: search, sort, filter chips */
.ns-filter { display: grid; gap: 10px; margin-bottom: 14px; }
.ns-frow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ns-sort { display: inline-flex; align-items: center; gap: 6px; flex: 0 1 240px; min-width: 0; color: #1D222B; }
.ns-sort select { min-width: 0; width: 100%; }
.ns-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ns-chip { border: 1px solid #E2E5EA; background: #fff; color: #1D222B; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ns-chip em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #EEF1F4; }
.ns-chip.hot { border-color: #F3B8A9; color: #B5321A; }
.ns-chip.on { background: #1e3582; border-color: #1e3582; color: #fff; }
.ns-chip.on em { background: rgba(255, 255, 255, .2); color: #fff; }
.nsp-soon { color: #B5321A; margin-right: 12px; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 640px) { .ns-sort { flex: 1 1 100%; } }
/* dashboard "Newly added service posters" + viewer buttons */
#dashNsp { margin-bottom: 4px; }
.nsp-ld { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 6px; padding: 2px 8px; border-radius: 999px; background: #EEF1F4; color: #1D222B; font-size: 12px; font-weight: 600; max-width: 100%; }
.nsp-ld.soon { background: #FDECE7; color: #B5321A; }
.nsp-act { flex-wrap: wrap; }
.nsp-act .btn { flex: 1 1 auto; min-width: 0; white-space: normal; }
.viewer .vbtns.vns .btn { flex: 1 1 0; min-width: 0; white-space: normal; }
.ns-tag-hide { color: #B5321A; }
.ns-editor.ns-ppbox { min-height: 150px; max-height: 360px; padding: 12px 14px; font-size: 15px; border: 1px solid #E2E5EA; border-radius: 10px; background: #fff; }
.ns-editor.ns-ppbox:focus { border-color: #1e3582; }
.ns-ppout { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #F2F5FC; font-size: 13px; color: #1D222B; }
.ns-ppout ol { margin: 6px 0 4px; padding-left: 22px; }
.ns-ppout li { margin: 2px 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ns-list { grid-template-columns: minmax(0, 1fr); }
  .ns-editor.ns-ppbox { min-height: 120px; }
  .ns-ahead { padding: 16px 16px 14px; }
  .ns-h1 { font-size: 20px; }
  .ns-body { padding: 16px; font-size: 15px; }
  .ns-afoot { padding: 14px 16px 18px; }
  .ns-afoot .btn, .ns-ahead .ns-btns .btn { flex: 1 1 100%; justify-content: center; }
  .ns-body th, .ns-body td { padding: 7px 9px; font-size: 13.5px; }
  .ns-editor { min-height: 280px; }
}
/* ===== AUTO FOLLOW-UP (Admin → Auto follow-up) ===== */
.af-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.af-stats .card-pad { display: grid; gap: 4px; }
.af-stats b { font-size: 24px; line-height: 1.1; }
.af-stats b small { font-size: 13px; font-weight: 600; }
.af-grid { align-items: start; }
.af-grid .check { margin: 8px 0 6px; }
.af-list { display: grid; gap: 2px; max-height: 420px; overflow-y: auto; }
.af-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line, #EEE); min-width: 0; }
.af-row:first-child { border-top: 0; }
.af-row > div { min-width: 0; overflow-wrap: anywhere; }
.af-frame { width: 100%; height: 480px; border: 1px solid var(--line, #E5E5E5); border-radius: 10px; background: #fff; display: block; }
@media (max-width: 720px) { .af-stats { grid-template-columns: 1fr 1fr; } .af-stats b { font-size: 20px; } .af-frame { height: 400px; } }

/* ===== TESTIMONIALS (sign-in page, picked in Admin → Feedback) — row of small cards model, Nov 2026 ===== */
.testi { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line, #E6E4DC); min-width: 0; }
.testi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.testi-sum { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; }
.testi-k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1D222B; }
.testi-avg { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #65707C; }
.testi-avg b { color: #1D222B; }
.testi-avg .icon { fill: #F5A524; stroke: #F5A524; }
.testi-nav { display: flex; gap: 6px; flex: none; }
.testi-nav button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line, #E6E4DC); border-radius: 50%; background: #fff; color: #1D222B; cursor: pointer; }
.testi-nav button:hover { background: #1e3582; border-color: #1e3582; color: #F2F5FC; }
.testi-prev .icon { transform: rotate(180deg); }
.testi-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; overscroll-behavior-x: contain; }
.testi-row::-webkit-scrollbar { display: none; }
.testi-c { flex: 0 0 min(250px, 78%); scroll-snap-align: start; margin: 0; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; border: 1px solid #EFE6BC; border-radius: 14px; background: #FFFDEE; min-width: 0; }
.testi-row.one .testi-c { flex-basis: 100%; }
.testi-st { display: flex; gap: 1px; }
.testi-st .icon { fill: #F5A524; stroke: #F5A524; }
.testi-c blockquote { margin: 0; flex: 1; font-size: 14px; line-height: 1.55; color: #1D222B; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.testi-c figcaption { display: flex; align-items: center; gap: 8px; min-width: 0; padding-top: 8px; border-top: 1px solid #EFE6BC; }
.testi-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #23866E; color: #fff; font-weight: 800; font-size: 13px; }
.testi-who { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.testi-who b { font-size: 13.5px; color: #1D222B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.testi-who small { font-size: 12px; color: #65707C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ===== ADMIN NOTIFICATIONS (bell in the top bar, admin-alerts.js) ===== */
.al-wrap { position: relative; flex: none; }
.al-bell { position: relative; }
.al-bell.has svg { color: var(--orange); }
.al-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #23866E; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.al-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 32px); max-height: min(70vh, 560px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 80; overflow: hidden; }
.al-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.al-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #F2F5FC; }
.al-chip { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.al-chip b { color: #23866E; }
.al-list { overflow-y: auto; }
.al-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.al-item:hover { background: #f6f5f1; }
.al-item.unread { background: #FFF6EF; }
.al-item.unread .al-top b::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #23866E; margin-left: 6px; vertical-align: middle; }
.al-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #eef1f5; color: #1D222B; }
.al-registrations .al-ic { background: #FDECE7; color: #23866E; }
.al-feedback .al-ic { background: #FFF4D6; color: #B45309; }
.al-payments .al-ic { background: #E7F6EC; color: #15803D; }
.al-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.al-top { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.al-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-top .small { flex: none; }
.al-lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.al-msg { font-size: 13px; overflow-wrap: anywhere; }
.al-list .empty { padding: 26px 14px; }
@media (max-width: 600px) {
  .al-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-width: none; }
  .al-head .muted { display: none; }
}
/* ===== CUSTOMER MENU SECTIONS (app.js buildNav, Nov 2026) ===== */
.nav-find { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; padding: 0 10px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); color: #8995A3; }
.nav-find:focus-within { border-color: rgba(255,250,210,.35); background: rgba(255,255,255,.1); }
.nav-find input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 13.5px; }
.nav-find input::placeholder { color: #8995A3; }
.nav-none { padding: 10px 12px; color: #8995A3; font-size: 13px; }
.nav-grp { display: flex; flex-direction: column; gap: 2px; }
.nav > *, .nav-grp > * { flex-shrink: 0; }
.nav-gh { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: #F2F5FC; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.nav-gh:hover { background: rgba(255,255,255,.06); }
.nav-gh > span:first-of-type { flex: 1; min-width: 0; }
.nav-gh .icon { color: #F2B8A8; }
.nav-gh > .icon:last-child { color: #8995A3; transition: transform .15s; transform: rotate(90deg); }
.nav-gn { font-size: 11px; font-weight: 700; letter-spacing: 0; color: #8995A3; }
.nav-grp.closed > .nav-gh > .icon:last-child { transform: none; }
.nav-grp.closed > .nav-gb { display: none; }
.nav-searching .nav-grp.closed > .nav-gb { display: flex; }
.nav-gb { display: flex; flex-direction: column; gap: 2px; padding-left: 6px; margin-left: 12px; border-left: 1px solid rgba(255,255,255,.08); }
.nav-gb a { padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
/* a closed section with something waiting (reminders, CRM alerts, card requests, feedback reply) gets a dot */
.nav-grp.closed:has(a[data-route="crm"][data-n], a[data-route="reminders"][data-n], a[data-route="vcard"][data-n], a[data-route="feedback"][data-n]) > .nav-gh .nav-gn::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #23866E; vertical-align: middle; }
.nav-gb a.nav-referral { margin-top: 2px; }
/* ===== TO DO TODAY (customer dashboard, above Services; src/todo.js) ===== */
.todo { margin: 22px 0 6px; }
.todo-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.todo-head > .icon { color: #23866E; }
.todo-head h3 { margin: 0; font-size: 18px; color: #1D222B; }
.todo-total { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 99px; background: #23866E; color: #fff; font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.todo-c { --tc: #1e3582; --tb: #EEF1F5; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 14px 12px; border: 1px solid var(--line, #E6E4DC); border-top: 3px solid var(--tc); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.todo-c:hover { box-shadow: 0 6px 18px rgba(30,53,130,.10); transform: translateY(-1px); }
.todo-c.t-red { --tc: #23866E; --tb: #FDECE7; }
.todo-c.t-orange { --tc: #D97706; --tb: #FEF3E2; }
.todo-c.t-green { --tc: #15803D; --tb: #E7F6EC; }
.todo-c.t-blue { --tc: #2563EB; --tb: #EAF1FE; }
.todo-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.todo-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--tb); color: var(--tc); }
.todo-tt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.todo-tt b { color: #1D222B; font-size: 14.5px; }
.todo-tt small { color: #65707C; font-size: 12.5px; }
.todo-top em { flex: none; font-style: normal; font-size: 24px; font-weight: 800; color: var(--tc); }
.todo-c ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.todo-c li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; min-width: 0; }
.todo-li { flex: 1; min-width: 0; color: #1D222B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-w { flex: none; font-size: 12px; color: #65707C; }
.todo-w.late { color: #23866E; font-weight: 700; }
.todo-go { margin-top: auto; align-self: flex-end; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--tc); }
@media (max-width: 600px) {
  .todo-grid { grid-template-columns: 1fr; gap: 8px; }
  .todo-c { padding: 10px 12px; border-top-width: 1px; border-left: 4px solid var(--tc); }
  .todo-c ul, .todo-go { display: none; }
}

/* ======================================================
   SEVA DESIGN 2026 — the design system (wins over everything above).
   Brand: blue #1E3582, orange #23866E, cream #F2F5FC, blush #E3F1EC (seva/Branding/Color Code.png).
   Light white sidebar, warm off-white page, rounded cards, Manrope + Anek Malayalam.
   Flat colours; the only decoration is the rounded "pro" pill shape from the logo.
   ====================================================== */
:root {
  --navy: #1E3582;          /* brand blue: primary buttons, links, active items */
  --navy-2: #172A6A;
  --navy-soft: #E8ECF7;
  --ink: #1D222B;           /* deep blue for headings and strong text */
  --orange: #23866E;        /* brand orange: main call to action, highlights */
  --orange-2: #1C6E5A;
  --orange-soft: #E3F1EC;   /* brand blush */
  --cream: #F2F5FC;         /* brand cream */
  --cream-soft: #F7F9FD;
  --bg: #F8F6F2;
  --surface: #FFFFFF;
  --surface-2: #FAF8F4;
  --text: #14263A;
  --muted: #5E6B7A;
  --line: #ECE6DD;
  --line-2: #DED6CA;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11,43,74,.04), 0 6px 20px rgba(11,43,74,.05);
  --shadow-lg: 0 24px 60px rgba(11,43,74,.18);
  --ring: 0 0 0 4px rgba(30,53,130,.14);
}
body { background: var(--bg); color: var(--text); }
::selection { background: rgba(35,134,110,.18); }
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* buttons */
.btn { height: 44px; border-radius: var(--radius-sm); font-weight: 600; background: var(--navy); }
.btn:hover { background: var(--navy-2); }
.btn.orange { background: var(--orange); }
.btn.orange:hover { background: var(--orange-2); }
.btn.green { background: var(--green); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--cream-soft); border-color: #CFC5B6; }
.btn.sm { height: 36px; border-radius: 10px; }
.btn.lg { height: 52px; border-radius: 14px; }
.btn.icon-only { width: 40px; height: 40px; }

/* forms */
.field label { color: #2E4053; }
.input, select.input, textarea.input { height: 46px; border-radius: var(--radius-sm); border-color: var(--line-2); background: #fff; }
textarea.input { height: auto; }
.input:hover { border-color: #CFC5B6; }
.input:focus, select.input:focus, textarea.input:focus { border-color: var(--navy); box-shadow: var(--ring); }
.check input, input[type=checkbox], input[type=radio] { accent-color: var(--navy); }
.switch input:checked + span { background: var(--navy); }

/* surfaces */
.card, .pcard, .icard, .tile, .stat { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pcard:hover, .icard:hover, .tile:hover, a.dash-stat:hover { box-shadow: 0 10px 28px rgba(11,43,74,.09); border-color: var(--line-2); }
.card-head { border-bottom-color: var(--line); }
.card-head h3 { color: var(--ink); font-weight: 700; }
.table th { background: var(--surface-2); color: #6B7684; border-bottom-color: var(--line); }
.table td { border-bottom-color: #F1ECE4; }
.table tr:hover td { background: var(--cream-soft); }
.badge { background: var(--navy-soft); color: var(--navy); }
.badge.orange { background: var(--orange-soft); color: #B23A0A; }
.notice { background: var(--cream); border-color: #F1DFC6; color: #5A4325; }
.notice .icon { color: var(--orange); }
.notice-item { background: var(--cream-soft); border-color: #F3E4CF; }
.alert.info { background: var(--navy-soft); color: var(--navy-2); }
.alert.warn { background: var(--orange-soft); color: #9A3A0C; }
.seg a.on, .fmt button.on, .chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:hover { border-color: var(--line-2); }
.progress i { background: var(--orange); }
.spinner { border-color: rgba(30,53,130,.15); border-top-color: var(--orange); }
.modal { border-radius: 20px; }
.modal-back { background: rgba(11,43,74,.5); }
.drop { border-color: #D8CEC0; background: var(--cream-soft); }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--orange-soft); }
.toast { background: var(--ink); border-radius: 14px; }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }
.bars .b i { background: var(--navy); }
.bars .b:last-child i { background: var(--orange); }

/* app shell: white sidebar */
.sidebar { background: #fff; color: var(--text); border-right: 1px solid var(--line); padding: 18px 12px; }
.sidebar .brand { border-bottom: 1px solid var(--line); padding: 4px 10px 16px; margin: 0 2px 12px; }
.sidebar .brand img { height: 32px; }
.sidebar .brand small { color: var(--orange); background: var(--orange-soft); padding: 3px 8px; border-radius: 99px; letter-spacing: .05em; }
.nav-label { color: #8A96A3; }
.nav a { color: #34475B; font-weight: 500; border-radius: 12px; }
.nav a .icon { color: #7D8A98; }
.nav a:hover { background: #F4F1EB; color: var(--ink); }
.nav a:hover .icon { color: var(--navy); }
.nav a.active { background: var(--navy-soft); color: var(--navy); font-weight: 600; box-shadow: none; }
.nav a.active .icon { color: var(--navy); }
.nav a .count { background: #EFEBE4; color: #4A5A6B; font-weight: 600; }
.nav a .count.reg-count { background: var(--orange); color: #fff; }
.sidebar-foot { background: var(--cream-soft); border: 1px solid var(--line); }
.sidebar-foot .who b { color: var(--ink); }
.sidebar-foot .who span { color: var(--muted); }
.sidebar-foot button { color: var(--muted); }
.sidebar-foot button:hover, .sidebar-foot .me-link:hover { background: #F1EBE2; color: var(--ink); }
.sidebar-foot .me-link:focus-visible { outline-color: var(--navy); }
.avatar, .avatar-big { background: var(--orange); color: #fff; }
.topbar { background: rgba(248,246,242,.9); }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { color: var(--ink); font-weight: 700; }
.bell-dot { background: var(--orange); }
.bottom-nav { border-top-color: var(--line); box-shadow: 0 -8px 24px rgba(11,43,74,.06); }
.bottom-nav a.active, .bottom-nav a.active .icon { color: var(--navy); }
.shell.nav-open::after { background: rgba(11,43,74,.45); }

/* banners: flat brand blue with the logo's rounded pill as decoration */
.hero, .dash-hero { background: var(--navy); color: #fff; box-shadow: none; border-radius: 22px; }
.hero::after, .dash-hero::before { display: block; content: ''; position: absolute; right: -70px; bottom: -70px; top: auto; width: 260px; height: 150px; border: 0; border-radius: 80px; background: var(--orange); transform: rotate(-14deg); pointer-events: none; }
.hero > *, .dash-hero > * { position: relative; z-index: 1; }
.hero h2, .dash-hero h2 { color: #fff; }
.hero p, .dash-hero p, .dh-plan span, .dh-plan small { color: #D6E6F3; }
.dh-plan a { color: var(--cream); }
.dh-plan { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.ticker { background: var(--ink); }
.ticker > .icon, .ticker-move i, .ticker-link .icon { color: #6FD0B4; }
.group-btn { background: var(--navy); border-radius: 14px; }
.group-btn:hover { background: var(--navy-2); }
.group-btns.compact .group-btn { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.group-btns.compact .group-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pcard .tag.new, .iimg .tag { background: var(--orange); }
.ph { background: var(--cream); }

/* sign-in page */
.login-page { background: var(--cream-soft); }
.login-art { background: var(--navy); padding: 40px 56px 28px; }
.login-art::before { display: block; content: ''; position: absolute; inset: auto -120px -110px auto; width: 420px; height: 230px; border-radius: 130px; background: var(--orange); background-image: none; transform: rotate(-14deg); mask-image: none; -webkit-mask-image: none; }
.login-art::after { content: ''; position: absolute; top: -90px; right: 18%; width: 240px; height: 130px; border-radius: 80px; border: 2px solid rgba(255,255,255,.16); transform: rotate(-14deg); pointer-events: none; }
.login-art .logo-pill img { height: 44px; }
.la-kicker { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: var(--cream); padding: 6px 14px; border-radius: 99px; font-size: 12px; letter-spacing: .06em; }
.login-art h1 { color: #fff; font-weight: 700; font-size: clamp(28px, 2.8vw, 42px); }
.login-art h1 em { color: #fff; background: linear-gradient(transparent 64%, rgba(35,134,110,.9) 64%); padding: 0 2px; }
.login-art .lead { color: #D6E6F3; }
.login-art .tagline-ml { color: var(--cream); font-weight: 600; }
.la-features li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; }
.la-features .icon { background: #fff; color: var(--orange); width: 36px; height: 36px; padding: 8px; border-radius: 10px; }
.la-features span { color: #BFD6EA; }
.la-foot { border-top-color: rgba(255,255,255,.16); color: #BFD6EA; }
.la-foot a { color: #fff; }
.la-slider { background: #00497C; border-radius: 16px; }
.login-form-side { background: var(--cream-soft); padding: 32px 20px; }
.login-box { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 50px rgba(11,43,74,.08); padding: 34px 32px; max-width: 440px; }
.login-form-side:has(#signupView:not(.hidden)) .login-box { max-width: 540px; }
.login-box h2 { color: var(--ink); font-weight: 700; }
.signup-btn { background: var(--navy); }
.signup-btn:hover { background: var(--navy-2); }
.login-help { border-top-color: var(--line); }
@media (max-width: 900px) {
  .login-form-side { align-items: flex-start; padding: 20px 16px 32px; }
  .login-box { padding: 26px 20px; border-radius: 20px; }
  .login-box .mobile-logo { height: 40px; margin-bottom: 20px; }
}
@media (max-width: 380px) { .login-box { padding: 22px 16px; } }

/* distributor portal: blue bar stays, tag in cream */
.pt-tag { color: var(--cream); background: rgba(255,255,255,.12); padding: 3px 9px; border-radius: 99px; }

@media print { .sidebar { border: 0; } .hero::after, .dash-hero::before, .login-art::before, .login-art::after { display: none !important; } }

/* Seva: customer menu sections + find box on the white sidebar */
.sidebar .nav { scrollbar-color: #E3DCD1 transparent; }
.nav-find { background: var(--surface-2); border-color: var(--line); color: #8A96A3; }
.nav-find:focus-within { border-color: var(--navy); background: #fff; box-shadow: var(--ring); }
.nav-find input { color: var(--text); }
.nav-find input::placeholder, .nav-none { color: #8A96A3; }
.nav-gh { color: var(--ink); }
.nav-gh:hover { background: #F4F1EB; }
.nav-gh .icon { color: var(--orange); }
.nav-gh > .icon:last-child, .nav-gn { color: #8A96A3; }
.nav-gb { border-left-color: var(--line); }
@media (max-width: 600px) { .dash-hero::before, .hero::after { width: 170px; height: 96px; right: -60px; bottom: -46px; } .dh-plan { background: rgba(0,73,124,.75); } }
.login-art::before { width: 340px; height: 190px; right: -110px; bottom: -100px; }
/* Name Slip: two columns only on wide screens (Manrope is a little wider) */
.ns-step { flex-wrap: wrap; }
@media (max-width: 1180px) { .ns-grid { grid-template-columns: 1fr; } }
/* Name Slip columns share the class name .ns-left with the New services "days left" chip: undo the chip look inside the Name Slip grid */
.ns-grid > .ns-left { display: grid; gap: 16px; min-width: 0; align-items: stretch; align-self: auto; margin: 0; padding: 0; font-size: inherit; font-weight: inherit; color: inherit; background: none; border-radius: 0; white-space: normal; overflow: visible; max-width: none; }
/* small phones: segmented filters wrap, token bar text may shrink */
.seg { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 480px) { .tk-sbar-m { min-width: 0; flex-basis: 100%; } }
/* distributor bar on small phones: smaller logo, no tag, icon-only sign out */
@media (max-width: 420px) {
  .pt-logo { height: 24px; }
  .pt-tag { display: none; }
  .pt-bar .btn.sm { font-size: 0; gap: 0; width: 36px; padding: 0; }
  .pt-bar .btn.sm .icon { font-size: 14px; }
}

/* ======================================================
   SEVA SIMPLE 2026-11b — owner asked for a simpler, cleaner look with a darker colour.
   Darker blue, no decorative pills, flatter cards, quieter sign-in. Wins over the blocks above.
   ====================================================== */
:root {
  --navy: #1E3582;          /* darker brand blue for buttons, links, active items */
  --navy-2: #172A6A;
  --navy-soft: #E8ECF7;
  --deep: #172A6A;          /* dark panels: banners, sign-in side, ticker */
  --ink: #1D222B;
  --text: #1A2B3C;
  --muted: #5F6B78;
  --bg: #F5F5F3;
  --line: #E6E4DF;
  --line-2: #D7D3CB;
  --shadow: 0 1px 2px rgba(23,42,106,.05);
  --ring: 0 0 0 3px rgba(30,53,130,.15);
}
/* no decorations: plain dark panels */
.hero::after, .dash-hero::before, .login-art::before, .login-art::after { display: none !important; }
.hero, .dash-hero { background: var(--deep); border-radius: 16px; }
.hero p, .dash-hero p, .dh-plan span, .dh-plan small { color: #B9C7D6; }
.dh-plan { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.ticker { background: var(--deep); }
.btn-hero-ghost, .dash-hero .btn.ghost { background: transparent; }

/* flatter cards: border only, shadow just on hover */
.card, .pcard, .icard, .tile, .stat { box-shadow: none; border-color: var(--line); border-radius: 14px; }
.pcard:hover, .icard:hover, .tile:hover, a.dash-stat:hover { box-shadow: 0 4px 14px rgba(23,42,106,.07); border-color: var(--line-2); transform: none; }
.stat .ic { border-radius: 10px; }
.modal { border-radius: 16px; }

/* buttons: same height everywhere, calmer ghost */
.btn { border-radius: 10px; font-weight: 600; }
.btn.lg { border-radius: 12px; }
.btn.ghost { border-color: var(--line-2); }
.btn.ghost:hover { background: #F7F6F3; }
.input, select.input, textarea.input { border-radius: 10px; }

/* sidebar: quieter */
.sidebar { border-right-color: var(--line); }
.sidebar .brand { border-bottom: 0; margin-bottom: 6px; }
.nav a { border-radius: 10px; }
.nav a .icon { color: #8693A0; }
.nav a.active { background: var(--navy-soft); color: var(--navy); }
.nav a.active .icon { color: var(--navy); }
.nav-gh .icon { color: #8693A0; }
.sidebar-foot { background: #F7F6F3; }
.topbar { background: rgba(245,245,243,.92); }
.group-btn { background: var(--navy); border-radius: 12px; }

/* sign-in: dark plain panel, simple feature lines, plain white form side */
.login-art { background: var(--deep); }
.la-kicker { background: none; border: 0; padding: 0; color: #8FDCC5; border-radius: 0; }
.login-art h1 em { background: none; color: #8FDCC5; padding: 0; }
.login-art .lead, .la-features span, .la-foot { color: #A9B9CA; }
.login-art .tagline-ml { color: #E3EAF1; }
.la-features { gap: 0 28px; }
.la-features li { background: none; border: 0; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; padding: 12px 0; }
.la-features .icon { background: none; color: #6FD0B4; width: 22px; height: 22px; padding: 0; border-radius: 0; }
.la-foot { border-top-color: rgba(255,255,255,.08); }
.login-page, .login-form-side { background: #fff; }
.login-box { border: 0; box-shadow: none; padding: 8px 4px; border-radius: 0; }
@media (max-width: 900px) { .login-box { padding: 8px 0; } .login-form-side { padding: 24px 18px 32px; } }

/* token page + distributor bar follow the darker colour */
.tp-head { background: var(--deep) !important; }
.tp-head::after { display: none !important; }
.pt-bar { background: var(--deep); }

/* ======================================================
   MENU SECTIONS 2026-11c — coloured icon chips per section, lighter text, open section highlighted.
   Font: Manrope (cleaner than Poppins) + Anek Malayalam.
   ====================================================== */
body { letter-spacing: 0; }
.nav a { font-weight: 600; font-size: 14px; color: #33475B; }
.nav-find { height: 40px; border-radius: 10px; }
.nav-grp { margin-top: 2px; }
.nav-gh { --gc: #1E3582; --gb: #E8ECF7; gap: 10px; padding: 7px 10px 7px 7px; margin-top: 2px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -.005em; transition: background .15s; }
.nav-gh > .icon:first-child { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--gb); color: var(--gc) !important; flex: none; transition: background .15s, color .15s; }
.nav-gh:hover { background: #F3F2EE; }
.nav-gn { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: #EFEDE8; color: #6B7682; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.nav-gh > .icon:last-child { width: 15px; height: 15px; color: #9AA4AE; }
/* section colours */
.nav-grp[data-g="services"] > .nav-gh { --gc: #1E3582; --gb: #E5EEF7; }
.nav-grp[data-g="marketing"] > .nav-gh { --gc: #1C6E5A; --gb: #FCEAE2; }
.nav-grp[data-g="crm"] > .nav-gh { --gc: #0F7B5F; --gb: #E2F3EC; }
.nav-grp[data-g="accounts"] > .nav-gh { --gc: #7A4CC2; --gb: #EFE8FA; }
.nav-grp[data-g="print"] > .nav-gh { --gc: #B7791F; --gb: #FBF0DC; }
.nav-grp[data-g="more"] > .nav-gh { --gc: #4A5A6B; --gb: #ECEEF1; }
.nav-grp[data-g="help"] > .nav-gh { --gc: #C2366B; --gb: #FBE6EE; }
.nav-grp[data-g="account"] > .nav-gh { --gc: #1D222B; --gb: #E9EBEE; }
/* open section: chip fills with its colour, soft card behind the list */
.nav-grp:not(.closed) { background: #F7F6F2; border-radius: 14px; padding-bottom: 6px; }
.nav-grp:not(.closed) > .nav-gh > .icon:first-child { background: var(--gc); color: #fff !important; }
.nav-grp:not(.closed) > .nav-gh:hover { background: transparent; }
.nav-grp:not(.closed) .nav-gn { background: #fff; }
.nav-gb { margin-left: 22px; padding-left: 12px; border-left: 2px solid #E7E4DE; gap: 1px; }
.nav-gb a { padding: 7px 10px; font-size: 13.5px; font-weight: 500; color: #44566A; border-radius: 9px; }
.nav-gb a .icon { width: 17px; height: 17px; }
.nav-gb a:hover { background: #fff; }
.nav-gb a.active { background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 1px 2px rgba(23,42,106,.08); }
/* headings a little tighter with Manrope */
.topbar h1, .card-head h3, .login-box h2, .dash-hero h2, .hero h2 { letter-spacing: -.02em; font-weight: 800; }
.nav-gh { gap: 9px; padding-right: 8px; font-size: 13.5px; }
.nav-gh > .icon:first-child { width: 30px; height: 30px; padding: 7px; }
.nav-gh > span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a little wider menu so section names and items fit on one line */
@media (min-width: 861px) { .shell { grid-template-columns: 276px minmax(0, 1fr); } }
@media (max-width: 860px) { .sidebar { width: 286px; } }
.nav-gb { margin-left: 21px; padding-left: 8px; }

/* ======================================================
   CRAFT 2026-11d — owner: "must look hand-made by a senior designer, never AI-made".
   Rules: one accent colour (brand blue) + orange only for the single main action; neutral monochrome icons
   (no rainbow / pastel icon tiles); small radii (6–10 px); hairline borders, no shadows; tight type scale,
   tabular numbers; launcher tiles as rows (icon left, text right). Wins over every block above.
   ====================================================== */
:root {
  --radius: 10px; --radius-sm: 8px;
  --line: #E4E2DD; --line-2: #D3D0C9;
  --bg: #F4F4F2; --muted: #66707A; --text: #1B2733; --ink: #1D222B;
  --shadow: none;
}
body { font-size: 14.5px; line-height: 1.55; font-feature-settings: "tnum" 1, "cv11" 1; }
.num, .stat .num, .dh-plan b, .money, td { font-variant-numeric: tabular-nums; }
.topbar h1, .card-head h3, .login-box h2, .dash-hero h2, .hero h2 { font-weight: 700; letter-spacing: -.015em; }
.topbar h1 { font-size: 20px; }
.topbar .crumb { font-size: 12px; letter-spacing: .02em; }
h3 { letter-spacing: -.01em; }

/* surfaces: hairlines, small radius, no lift */
.card, .pcard, .icard, .tile, .stat, .todo-c { border-radius: var(--radius); box-shadow: none !important; transform: none !important; }
.pcard:hover, .icard:hover, a.dash-stat:hover, .todo-c:hover { border-color: var(--line-2); }
.card-head { padding: 14px 18px; }
.card-head h3 { font-size: 15px; }
.modal { border-radius: 12px; }
.btn { border-radius: var(--radius-sm); height: 40px; padding: 0 16px; font-weight: 600; letter-spacing: 0; }
.btn.sm { height: 34px; border-radius: 7px; padding: 0 12px; }
.btn.lg { height: 48px; border-radius: 9px; }
.input, select.input, textarea.input { height: 42px; border-radius: var(--radius-sm); }
.badge, .chip { border-radius: 6px; }
.table th { font-size: 11.5px; letter-spacing: .05em; background: #FAFAF8; }

/* stats: plain numbers, quiet monochrome icon (no pastel square) */
.stat { padding: 16px 18px; gap: 12px; }
.stat .ic { background: none !important; color: #8A939C !important; width: 22px; height: 22px; border-radius: 0; margin-top: 3px; }
.stat .ic .icon { width: 20px; height: 20px; }
.stat .num { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.stat .lbl { font-size: 12.5px; }

/* launcher tiles: rows, one neutral icon colour */
.tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tile { --c: var(--navy) !important; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: center; padding: 12px 14px; border-radius: var(--radius); }
.tile:hover { border-color: var(--navy); background: #FBFBFA; }
.tile-ic { grid-row: 1 / 3; width: 36px; height: 36px; margin: 0; border-radius: 8px; background: #F1F3F5; color: #3E4C5A; }
.tile:hover .tile-ic { background: var(--navy); color: #fff; }
.tile b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile em { top: 50%; transform: translateY(-50%); right: 14px; }

/* to-do cards: neutral, a thin coloured top only as status */
.todo-c { border-top-width: 2px; }
.todo-ic { background: #F1F3F5 !important; color: #3E4C5A !important; border-radius: 8px; }

/* dashboard banner: compact, no rounded "promo" feel */
.dash-hero, .hero { border-radius: var(--radius); padding: 22px 24px; }
.dash-hero h2 { font-size: 21px; }
.dh-plan { border-radius: 8px; }
.ticker { border-radius: 8px; }

/* customer menu: monochrome, understated sections, active = left bar */
.nav a { font-size: 13.5px; font-weight: 500; border-radius: 6px; padding: 8px 10px; }
.nav a.active { background: #EEF2F6; color: var(--navy); font-weight: 600; box-shadow: inset 2px 0 0 var(--navy); }
.nav-find { border-radius: 8px; height: 38px; background: #F7F7F5; }
.nav-gh { --gc: #5B6773 !important; --gb: transparent !important; padding: 8px 10px; gap: 10px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: #22303D; }
.nav-gh > .icon:first-child { width: 18px; height: 18px; padding: 0; border-radius: 0; background: none !important; color: #6E7983 !important; }
.nav-grp:not(.closed) { background: none; padding-bottom: 4px; }
.nav-grp:not(.closed) > .nav-gh > .icon:first-child { background: none !important; color: var(--navy) !important; }
.nav-grp:not(.closed) > .nav-gh { color: var(--ink); }
.nav-gn { background: none !important; min-width: 0; padding: 0; font-size: 12px; font-weight: 500; color: #9AA2AA; }
.nav-gb { margin-left: 18px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-gb a { font-size: 13px; padding: 6px 10px; color: #4A5866; border-radius: 6px; }
.nav-gb a:hover { background: #F4F4F2; }
.nav-gb a.active { background: #EEF2F6; box-shadow: none; color: var(--navy); }
.nav-label { font-size: 10.5px; letter-spacing: .1em; color: #98A1AA; }
.sidebar-foot { border-radius: 8px; background: #F7F7F5; }
.avatar { border-radius: 8px; }

/* sign-in: quieter headline, no highlight colour block */
.login-art h1 { font-weight: 700; letter-spacing: -.02em; }
.login-art h1 em { color: #8FDCC5; }
.la-kicker { letter-spacing: .12em; font-size: 11px; color: #9FB1C3; }
.login-box h2 { font-size: 26px; }
/* tiles keep the row layout on phones too (two per row, compact) */
.tile { text-align: left; }
.tile-ic { grid-column: 1; }
.tile b, .tile small { grid-column: 2; min-width: 0; }
@media (max-width: 600px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding: 10px; align-items: center; }
  .tile-ic { width: 32px; height: 32px; margin: 0; }
  .tile b { font-size: 12.5px; white-space: normal; line-height: 1.25; }
  .tile small { display: block; font-size: 11px; }
  .tile b:only-of-type { grid-row: 1 / 3; }
}
@media (max-width: 360px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ===== GUIDE PICTURES 2026-11 — screenshots inside Software Guide / Support sections (Admin → Guide & Support) ===== */
.hp-fig { margin: 12px 0; min-width: 0; }
.hp-fig a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; }
.hp-fig img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #fff; }
.hp-fig figcaption { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.hp-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.hp-figs.one { grid-template-columns: minmax(0, 640px); }
.hp-figs > * { min-width: 0; }
.hp-figs .hp-fig { margin: 0; }
.hp-figs .hp-fig img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; max-height: none; }
.hp-figs.one .hp-fig img { aspect-ratio: auto; object-fit: contain; max-height: 560px; }
.hp-zoom .modal-body { padding: 10px; }
.hp-zoom img { display: block; width: 100%; height: auto; border-radius: 6px; }
/* admin editor: pictures strip under each section's text */
.ah-imgs { border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px; display: grid; gap: 10px; min-width: 0; }
.ah-imgs.over { border-color: var(--navy); background: var(--navy-soft); }
.ah-imgs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.ah-imgs-head > .icon { color: var(--muted); }
.ah-imgs-head b { font-size: 13px; color: var(--ink); }
.ah-imgs-head .muted { flex: 1 1 200px; min-width: 0; }
.field .ah-imgs-head label.btn, .ah-imgs-head label.btn { margin: 0; cursor: pointer; }
.ah-imgs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ah-imgs-list > * { min-width: 0; }
.ah-img { display: grid; gap: 6px; }
.ah-img-pic { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; aspect-ratio: 16 / 10; }
.ah-img-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ah-img-n { position: absolute; left: 6px; top: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.ah-img .input { height: 36px; font-size: 13px; }
.ah-img-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.ah-img-tools .btn:not(.icon-only) { flex: 1; }
.ah-flip { display: inline-flex; transform: scaleX(-1); }
@media print {
  body.hp-printing .hp-fig { break-inside: avoid; }
  body.hp-printing .hp-fig a { border-color: #ccc; }
  body.hp-printing .hp-fig img { max-height: 120mm; }
  body.hp-printing .hp-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.hp-printing .hp-figs.one { grid-template-columns: minmax(0, 1fr); }
}
/* guide chips: one sideways-scrolling row on tablets / phones (the guide has 35+ sections) */
@media (max-width: 900px) {
  .hp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x proximity; }
  .hp-chips::-webkit-scrollbar { display: none; }
  .hp-chips a { flex: none; white-space: nowrap; scroll-snap-align: start; }
}

/* ===== PSC PHOTO MAKER (#psc-photo) — Kerala PSC photo + signature, browser only ===== */
.psc { display: grid; gap: 14px; max-width: 1180px; }
.psc > * { min-width: 0; }
.psc-tabs { justify-self: start; }
.psc-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.psc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.psc-grid > * { min-width: 0; }
.psc-stage-card { overflow: hidden; }
.psc-start { padding: 14px; }
.psc-hint { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); }
.psc-hint .icon { flex: none; margin-top: 2px; }
.psc-side { display: grid; gap: 14px; }
.psc-side > * { min-width: 0; }
.psc-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.psc-2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.psc-up { margin-bottom: 14px; white-space: nowrap; }
.psc-sliders { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }
.psc-sliders input[type=range] { width: 100%; accent-color: var(--navy); }
.psc-sliders .check { margin: 4px 0 10px; }
.psc-out { display: flex; gap: 14px; align-items: flex-end; justify-content: center; padding: 14px; background: repeating-conic-gradient(#EFF1F3 0 25%, #F9F8F4 0 50%) 0 0 / 16px 16px; border-radius: 8px; flex-wrap: wrap; }
.psc-big img { display: block; border: 1px solid var(--line-2); background: #fff; }
.psc-real { display: grid; justify-items: center; gap: 4px; }
.psc-real img { display: block; border: 1px solid var(--line-2); max-width: 100%; height: auto; }
.psc-checks { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.psc-checks li { display: flex; gap: 8px; align-items: center; }
.psc-checks li .icon { flex: none; }
.psc-checks li.ok .icon { color: #15803D; }
.psc-checks li.no { color: #B42318; }
.psc-res .btn.block { width: 100%; margin-top: 6px; }
.psc-rules > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.psc-rules > summary::-webkit-details-marker { display: none; }
.psc-rules > summary b { color: var(--ink); }
.psc-rules > summary .muted { flex: 1; min-width: 0; }
.psc-rules[open] > summary .icon:last-child { transform: rotate(180deg); }
.psc-rules ul { margin: 0; padding: 0 16px 14px 34px; font-size: 13.5px; line-height: 1.6; color: var(--text); }
@media (max-width: 900px) { .psc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .psc-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .psc-2 { grid-template-columns: minmax(0, 1fr); } .psc-up { margin-bottom: 8px; } }

/* ===== DASHBOARD HERO 2026-11e — greeting, quick actions, plan ring; quiet line art (dots + arcs), no glow ===== */
.dash-hero.dh2 { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 28px; background: var(--deep); border-radius: 12px; isolation: isolate; }
.dh2 > * { position: relative; z-index: 1; min-width: 0; }
.dh2 .dh-art { position: absolute; z-index: 0; inset: 0 0 0 auto; width: min(62%, 560px); height: 100%; pointer-events: none; }
.dh2 .dh-dots { fill: rgba(255,255,255,.1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.dh2 .dh-arcs circle { stroke: rgba(255,255,255,.1); stroke-width: 1; }
.dh2 .dh-arcs circle:nth-child(3) { stroke: rgba(255,255,255,.18); }
.dh-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8FB3D6; margin-bottom: 8px; }
.dh-kicker i { width: 3px; height: 3px; border-radius: 50%; background: #8FB3D6; }
.dh-kicker .ml { text-transform: none; letter-spacing: 0; }
.dash-hero.dh2 h2 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.dash-hero.dh2 .dh-tag { margin: 6px 0 0; color: #B9C7D6; font-size: 14px; }
.dh-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dh2 .btn.glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.dh2 .btn.glass:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.dh-plan.dh-plan2 { width: auto; display: flex; align-items: center; gap: 16px; text-align: left; padding: 14px 18px 14px 14px; background: rgba(23,42,106,.72); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dh-ring { position: relative; width: 92px; height: 92px; flex: none; }
.dh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dh-ring circle { fill: none; stroke-width: 6; }
.dh-ring-bg { stroke: rgba(255,255,255,.12); }
.dh-ring-fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.dh-plan2.warn .dh-ring-fg { stroke: var(--orange); }
.dh-plan2.bad .dh-ring-fg { stroke: #F97066; }
.dh-ring-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dh-plan2 .dh-ring-n b { font-size: 26px; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.dh-plan2 .dh-ring-n small { font-size: 10.5px; color: #B9C7D6; margin-top: 3px; }
.dh-plan-info { display: grid; gap: 3px; min-width: 0; }
.dh-plan2 .dh-plan-name { font-size: 15px; font-weight: 700; color: #fff; }
.dh-plan2 .dh-plan-info small { font-size: 12.5px; color: #B9C7D6; font-variant-numeric: tabular-nums; }
.dh-ok { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: #A6E9C0; margin-top: 4px; }
.dh-ok i { width: 7px; height: 7px; border-radius: 50%; background: #32D583; }
.dh-plan2 a[data-renew] { display: inline-block; margin: 4px 0 0; color: #8FDCC5; font-weight: 700; font-size: 13px; text-decoration: none; }
.dh-plan2.warn { border-color: rgba(35,134,110,.6); }
.dh-plan2.bad { background: rgba(120,20,20,.35); border-color: rgba(249,112,102,.6); }
@media (max-width: 760px) {
  .dash-hero.dh2 { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 18px; }
  .dh2 .dh-art { width: 100%; }
  .dash-hero.dh2 h2 { font-size: 23px; }
  .dh-plan.dh-plan2 { padding: 10px 14px 10px 10px; gap: 12px; }
  .dh-ring { width: 64px; height: 64px; }
  .dh-plan2 .dh-ring-n b { font-size: 19px; }
  .dh-plan2 .dh-ring-n small { font-size: 9px; }
}
@media (max-width: 400px) { .dh-acts .btn { flex: 1 1 auto; } }
@media print { .dh2 .dh-art { display: none; } }

/* ===== DASHBOARD HERO 2026-11f — brand-blue circles on the right, a drawn stack of branded posters, plan ring ===== */
.dash-hero.dh3 { grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; padding: 28px 30px; min-height: 196px; }
.dh3 .dh-bg { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dh3 .dh-bg-a { fill: #0B3A63; }
.dh3 .dh-bg-b { fill: #0E4C80; }
.dh3 .dh-bg-l circle { stroke: rgba(255,255,255,.09); stroke-width: 1.2; }
.dash-hero.dh3 h2 { font-size: 30px; }
.dash-hero.dh3 .dh-tag { margin-top: 8px; font-size: 15px; color: #C3D2E1; }
.dh3 .dh-tag em { font-style: normal; font-weight: 700; color: #6FD0B4; }
.dh3 .dh-acts { margin-top: 20px; }
.dh-stack { width: 158px; height: auto; flex: none; margin: -12px -6px -16px; overflow: visible; }
.dh-stack .dh-c1 { fill: #3D7DB8; }
.dh-stack .dh-c2 { fill: #F2F5FC; }
.dh-stack .dh-c2i { fill: #F3DEC3; }
.dh-stack .dh-front { filter: drop-shadow(0 6px 10px rgba(3,20,38,.35)); }
.dh-stack .dh-hd { fill: var(--orange); }
.dh-stack .dh-img { fill: #E8ECF7; }
.dh-stack .dh-img2 { fill: #A9C8E4; }
.dh-stack .dh-ln { fill: #D5DCE4; }
.dh-stack .dh-strip { fill: #1E3582; }
.dh-stack .dh-dl circle { fill: #1E3582; stroke: #fff; stroke-width: 3; }
.dh3 .dh-plan.dh-plan2 { background: rgba(8,35,62,.55); border-color: rgba(255,255,255,.18); }
@media (max-width: 1240px) { .dh-stack { display: none; } .dash-hero.dh3 { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 760px) {
  .dash-hero.dh3 { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; min-height: 0; }
  .dash-hero.dh3 h2 { font-size: 24px; }
  .dh3 .dh-bg { inset: auto 0 0 0; height: 60%; }
}

/* ===== DASHBOARD HERO 2026-11g — owner: plain #1E3582 background, no picture / shapes, nothing "over" ===== */
.dash-hero.dh4 { background: #1E3582; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: 26px 28px; }
.dash-hero.dh4 .dh-tag, .dash-hero.dh4 .dh-tag em { color: #fff; }
.dh4 .btn.glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.dh4 .btn.glass:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.dh4 .dh-plan.dh-plan2 { background: rgba(0,0,0,.14); border-color: rgba(255,255,255,.2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dh4 .dh-plan2 .dh-plan-info small, .dh4 .dh-plan2 .dh-ring-n small { color: #CFE0F0; }
.dh4 .dh-ring-bg { stroke: rgba(255,255,255,.2); }
@media (max-width: 760px) { .dash-hero.dh4 { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; } }

/* ===== DASHBOARD PLAN PASS 2026-11h — white plan card on the blue hero (replaces the ring) ===== */
.dh-pass { flex: none; width: 272px; background: #fff; color: var(--ink, #1D222B); border-radius: 12px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.dh-pass-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dh-pass-lbl { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6B7A8C; }
.dh-pass-lbl .icon { width: 13px; height: 13px; color: var(--orange); }
.dh-pass-st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: #E8F6EE; color: #157F3D; }
.dh-pass-st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dh-pass.warn .dh-pass-st { background: #FFF0E8; color: #C2410C; }
.dh-pass.bad .dh-pass-st { background: #FDECEC; color: #B42318; }
.dh-pass-name { font-size: 17px; font-weight: 800; line-height: 1.2; color: #1D222B; }
.dh-pass-days { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.dh-pass-days b { font-size: 34px; font-weight: 800; line-height: 1; color: #1E3582; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dh-pass-days span { font-size: 13px; color: #6B7A8C; font-weight: 600; }
.dh-pass.warn .dh-pass-days b { color: #C2410C; }
.dh-pass.bad .dh-pass-days b { color: #B42318; }
.dh-pass-bar { height: 6px; border-radius: 3px; background: #E6EDF4; overflow: hidden; }
.dh-pass-bar i { display: block; height: 100%; border-radius: 3px; background: #1E3582; transition: width .6s ease; }
.dh-pass.warn .dh-pass-bar i { background: var(--orange); }
.dh-pass.bad .dh-pass-bar i { background: #D92D20; }
.dh-pass-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; padding-top: 9px; border-top: 1px dashed #D5DEE8; font-size: 12.5px; color: #4A5B6E; font-variant-numeric: tabular-nums; }
.dh-pass-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.dh-pass-foot .icon { width: 14px; height: 14px; color: #8A98A8; }
.dh-pass-renew { font-weight: 700; color: #fff; background: var(--orange); padding: 5px 11px; border-radius: 7px; text-decoration: none; font-size: 12.5px; }
.dh-pass-renew:hover { filter: brightness(.95); }
@media (max-width: 760px) {
  .dh-pass { width: auto; }
  .dh-pass-days b { font-size: 28px; }
}

/* ===== DASHBOARD PLAN PASS 2026-11i — owner: only plan + Active here (days / date live on the profile), links to My profile + Sign out ===== */
.dh-pass { width: 250px; gap: 8px; }
.dh-pass-name { font-size: 19px; }
.dh-pass .dh-pass-renew { display: block; text-align: center; padding: 8px 11px; }
.dh-pass-foot { gap: 6px; flex-wrap: nowrap; margin-top: 2px; padding-top: 10px; }
.dh-pass-foot > a, .dh-pass-foot > button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid #D5DEE8; background: #fff; color: #1D222B; font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.dh-pass-foot > a:hover { border-color: #1E3582; color: #1E3582; }
.dh-pass-foot > button:hover { border-color: #F3B8B2; color: #B42318; background: #FFF7F6; }
.dh-pass-foot .icon { width: 14px; height: 14px; color: currentColor; }
@media (max-width: 760px) { .dh-pass { width: auto; } }

/* ======================================================
   USKLOGIN BRAND 2026-11k — new Seva logo + colour code (seva/Branding/Brand Color.png).
   Blue #1e3582 = accent (buttons, links, active items, dark panels); green #23866e takes the old orange's
   place (single main action, highlights); ink #1d222b, grey #4a5568, light #f2f5fc. Wins over every block above.
   ====================================================== */
:root {
  --navy: #1E3582; --navy-2: #172A6A; --navy-soft: #E8ECF7;
  --deep: #1E3582;
  --orange: #23866E; --orange-2: #1C6E5A; --orange-soft: #E3F1EC;
  --cream: #F2F5FC; --cream-soft: #F7F9FD;
  --ink: #1D222B; --text: #1D222B; --muted: #4A5568;
  --bg: #F4F6FA; --surface-2: #F8F9FC;
  --line: #E2E6EE; --line-2: #CFD5E0;
  --ring: 0 0 0 3px rgba(30,53,130,.15);
}
/* the new logo is taller (about 2.15 : 1), so it gets more height than the old wide one */
.sidebar .brand img { height: 44px; }
.login-art .logo-pill img { height: 64px; }
.login-box .mobile-logo { height: 56px; }
.pt-logo { height: 38px; }
@media (max-width: 760px) { .pt-logo { height: 32px; } }

/* ======================================================
   PREMIUM 2026-11m — owner: "premium look, attractive for customers, easy on mobile and computer".
   Still the CRAFT rules: one accent (brand blue), green only for the main action, monochrome icons
   (one brand-blue tint, never rainbow), no gradients / glows / decorative shapes. Premium here = calm
   space, a clear type scale, soft layered surfaces, crisp focus states, 44 px touch targets.
   LAST block in this file: wins over every block above.
   ====================================================== */
:root {
  --radius: 12px; --radius-sm: 10px;
  --line: #E3E7EF; --line-2: #CDD4E0;
  --bg: #F3F5F9;
  --shadow-1: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.03);
  --shadow-2: 0 6px 16px -4px rgba(16,24,40,.10), 0 2px 4px -2px rgba(16,24,40,.05);
  --ring: 0 0 0 3px rgba(30,53,130,.18);
}
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(30,53,130,.16); }

/* surfaces: hairline + a whisper of depth, a little more on hover (no lift) */
.card, .pcard, .icard, .tile, .stat, .todo-c { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1) !important; }
.pcard:hover, .icard:hover, a.dash-stat:hover, .todo-c:hover, .tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-2) !important; }
.card-head { padding: 16px 20px; border-bottom-color: var(--line); }
.card-head h3 { font-size: 15.5px; color: var(--ink); }
.modal { border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(16,24,40,.30); }
.table th { background: #F7F8FB; color: #5A6578; }
.table td { border-color: var(--line); }

/* buttons + fields: clear targets, crisp focus */
.btn { height: 42px; border-radius: var(--radius-sm); font-weight: 650; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn.sm { height: 34px; border-radius: 8px; }
.btn.lg { height: 48px; border-radius: 12px; font-size: 15px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.orange { box-shadow: 0 1px 2px rgba(16,24,40,.10), inset 0 -1px 0 rgba(0,0,0,.10); }
.btn.ghost { background: #fff; border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.input, select.input, textarea.input { height: 44px; border-color: var(--line-2); background-color: #fff; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; }
.input:hover, select.input:hover, textarea.input:hover { border-color: #B6C0D0; }
.input:focus, select.input:focus, textarea.input:focus { outline: none; border-color: var(--navy); box-shadow: var(--ring); }
.field label { color: var(--ink); font-weight: 600; }

/* top bar: frosted, sharp title */
.topbar { background: rgba(243,245,249,.82); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); }
.topbar.scrolled { background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 21px; letter-spacing: -.02em; }
.topbar .crumb { color: #7A8597; }
.tb-search .input { background: #fff; border-color: var(--line); }
.tb-bell, .tb-search-btn { background: #fff; border: 1px solid var(--line); }

/* sidebar: white, airy, a firm active state */
.sidebar { background: #fff; border-right: 1px solid var(--line); }
.sidebar .brand { padding: 4px 10px 12px; }
.nav a, .nav-gb a { transition: background-color .12s, color .12s; }
.nav a:hover, .nav-gb a:hover, .nav-gh:hover { background: #F3F5F9; color: var(--ink); }
.nav a.active, .nav-gb a.active { background: var(--navy-soft); color: var(--navy); font-weight: 650; box-shadow: inset 3px 0 0 var(--navy); }
.nav a.active .icon { color: var(--navy); }
.nav-find { background: #F3F5F9; border-color: transparent; }
.nav-find:focus-within { background: #fff; border-color: var(--navy); box-shadow: var(--ring); }
.sidebar-foot { background: #F7F8FB; border: 1px solid var(--line); border-radius: 12px; }

/* dashboard banner: more room, bigger greeting */
.dash-hero, .hero { border-radius: 16px; }
.dash-hero.dh4 { padding: 30px 32px; }
.dash-hero h2 { font-size: 27px; letter-spacing: -.025em; line-height: 1.15; }
.dh4 .btn { height: 40px; border-radius: 10px; }
.dh-pass { border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }

/* section headings */
.sec-head { margin: 30px 0 14px; }
.sec-head h3 { font-size: 17.5px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }

/* stats: one brand-blue tint behind a blue icon */
.stat { padding: 18px 20px; gap: 14px; align-items: center; }
.stat .ic { width: 40px; height: 40px; border-radius: 10px; margin-top: 0; display: grid; place-items: center; background: var(--navy-soft) !important; color: var(--navy) !important; flex: none; }
.stat .ic .icon { width: 20px; height: 20px; }
.stat .num { font-size: 26px; font-weight: 750; letter-spacing: -.025em; line-height: 1.1; }
.stat .lbl { color: #5A6578; }

/* quick access tiles */
.tiles { gap: 10px; }
.tile { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 14px 16px; background: #fff; }
.tile-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--navy-soft); color: var(--navy); transition: background-color .15s, color .15s; }
.tile:hover { background: #fff; border-color: rgba(30,53,130,.35); }
.tile:hover .tile-ic { background: var(--navy); color: #fff; }
.tile b { font-size: 14px; font-weight: 650; color: var(--ink); }
.tile small { color: #6A7587; }

/* to-do cards: same icon tint */
.todo-ic { background: var(--navy-soft) !important; color: var(--navy) !important; border-radius: 10px; }

/* phone bottom bar: frosted, clear active tab */
.bottom-nav { background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16,24,40,.06); }
.bottom-nav a { position: relative; font-weight: 600; color: #6A7587; }
.bottom-nav a.active { font-weight: 700; }
.bottom-nav a.active::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; margin-left: -14px; height: 3px; border-radius: 0 0 3px 3px; background: var(--navy); }

/* sign-in: blue story panel + a floating white form card */
.login-page, .login-form-side { background: var(--bg); }
.login-art { background: var(--navy); }
.login-art h1 { font-size: clamp(32px, 3.1vw, 46px); line-height: 1.12; letter-spacing: -.03em; }
.login-art .lead { color: #C9D3EE; font-size: 15.5px; }
.la-kicker { color: #8FDCC5; }
.la-features .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #8FDCC5; box-sizing: border-box; flex: none; }
.la-features li { border-top-color: rgba(255,255,255,.10); align-items: center; }
.la-features b { color: #fff; }
.la-features span, .la-foot { color: #AEBBE0; }
.login-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 36px 28px; max-width: 448px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 16px 40px -12px rgba(16,24,40,.14); }
.login-box h2 { font-size: 28px; letter-spacing: -.025em; color: var(--ink); }
.login-box .sub { color: #5A6578; }
.or-line span { color: #7A8597; }
@media (max-width: 900px) {
  .login-form-side { padding: 20px 14px 32px; }
  .login-box { padding: 26px 20px 22px; border-radius: 18px; }
  .login-box h2 { font-size: 24px; }
}
@media (max-width: 380px) { .login-box { padding: 22px 16px 18px; } }

/* phones: tighter but still roomy, 40-44 px taps */
@media (max-width: 760px) {
  .dash-hero.dh4 { padding: 22px 18px; }
  .dash-hero h2 { font-size: 23px; }
  .dh-pass { box-shadow: none; }
  .topbar h1 { font-size: 19px; }
  .stat { padding: 14px; gap: 12px; align-items: flex-start; }
  .stat .ic { width: 34px; height: 34px; border-radius: 9px; }
  .stat .ic .icon { width: 18px; height: 18px; }
  .stat .num { font-size: 22px; }
  .sec-head { margin: 24px 0 12px; }
  .nav a, .nav-gb a, .nav-gh { min-height: 40px; }
}
@media (max-width: 600px) {
  .tile { grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; padding: 12px; }
  .tile-ic { width: 36px; height: 36px; border-radius: 9px; }
  .tile b { font-size: 13px; }
}

/* ===== DASHBOARD NEW SERVICES CARD 2026-11o — the hero's right side (owner): only a "Newly Added Services"
   card with a button to that page (replaced the short-lived Today card). White card, one blue accent. ===== */
.dh-ns { flex: none; width: 340px; min-width: 0; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "ic t" "btn btn"; gap: 12px 14px; align-items: center; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.dn-ic { grid-area: ic; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); }
.dn-ic .icon { width: 22px; height: 22px; }
.dn-t { grid-area: t; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dn-t b { font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; color: var(--ink); }
.dn-t small { font-size: 12.5px; color: #6A7587; }
.dn-t em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--navy); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-btn { grid-area: btn; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 700; transition: background-color .15s; }
.dn-btn .icon { width: 14px; height: 14px; }
.dh-ns:hover .dn-btn { background: var(--navy-2); }
.dh-ns:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
@media (max-width: 1100px) and (min-width: 761px) { .dh-ns { width: 290px; } }
@media (max-width: 760px) { .dh-ns { width: auto; box-shadow: none; } }
