/* edboAd Login — design system */
:root {
  --navy: #1C2D57;
  --navy-2: #26396B;
  --navy-soft: #E8ECF6;
  --orange: #EE9835;
  --orange-2: #D9801C;
  --orange-soft: #FDF1E3;
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #F8F9FC;
  --text: #17213D;
  --muted: #66708A;
  --line: #E3E7F0;
  --green: #1E8E5A;
  --green-soft: #E3F5EC;
  --red: #D23B3B;
  --red-soft: #FCE8E8;
  --blue: #2563EB;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 33, 61, .06), 0 4px 16px rgba(23, 33, 61, .06);
  --shadow-lg: 0 20px 50px rgba(23, 33, 61, .18);
  --font: 'Plus Jakarta Sans', 'Anek Malayalam', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ml: 'Anek Malayalam', 'Plus Jakarta Sans', 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; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.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: #1b1305; }
.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: #cfd5e3; }
.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: #36405c; }
.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(28, 45, 87, .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: #cfd5e3; 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: #A85C0B; }
.badge.grey { background: #EEF0F5; 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: #FAFBFD; }
.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(15, 22, 42, .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 #CCD3E2; 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: #B8C0D4; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(28, 45, 87, .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, #eceff5 25%, #f6f7fa 50%, #eceff5 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; background: radial-gradient(1200px 600px at -10% -10%, #2E4688 0%, transparent 60%), linear-gradient(160deg, #1C2D57 0%, #142247 100%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; }
.login-art::after { content: ''; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border: 34px solid rgba(238, 152, 53, .18); }
.login-art .logo-pill { background: #fff; border-radius: 14px; padding: 10px 16px; display: inline-flex; align-self: flex-start; }
.login-art .logo-pill img { height: 40px; width: auto; }
.login-art h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; margin: 40px 0 12px; letter-spacing: -.02em; max-width: 560px; }
.login-art h1 em { font-style: normal; color: var(--orange); }
.login-art .lead { color: #C3CCE4; font-size: 17px; max-width: 520px; margin: 0; }
.login-art .tagline-ml { font-family: var(--ml); color: #fff; font-size: 18px; margin-top: 18px; opacity: .92; }

.compose-demo { margin-top: auto; padding-top: 40px; display: flex; align-items: flex-end; gap: 28px; position: relative; z-index: 1; }
.cd-stack { width: 250px; flex: none; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.35); background: #fff; }
.cd-poster { aspect-ratio: 1080/858; background: linear-gradient(135deg, #FFE7C7, #FFF7EC 55%, #E9EEFA); position: relative; padding: 18px; color: var(--navy); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.cd-poster b { font-family: var(--ml); font-size: 20px; line-height: 1.3; }
.cd-poster span { display: inline-block; margin-top: 8px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.cd-brand { aspect-ratio: 1080/222; background: var(--navy); display: flex; align-items: center; padding: 0 14px; gap: 10px; color: #fff; font-size: 11px; font-weight: 700; animation: slideUp 3.5s ease-in-out infinite; }
.cd-brand i { width: 22px; height: 22px; border-radius: 6px; background: var(--orange); flex: none; }
@keyframes slideUp { 0%, 15% { transform: translateY(100%); opacity: 0; } 35%, 85% { transform: none; opacity: 1; } 100% { transform: none; opacity: 1; } }
.cd-steps { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.cd-step { display: flex; gap: 12px; align-items: center; color: #DCE3F3; font-size: 14px; }
.cd-step b { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; font-size: 13px; color: #fff; flex: none; }
.cd-step small { display: block; color: #8E9BC0; font-size: 12px; }

.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 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; }

@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: #C8D0E6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px; }
.sidebar .brand { background: #fff; border-radius: 12px; padding: 10px 12px; margin: 0 4px 22px; display: flex; align-items: center; justify-content: space-between; }
.sidebar .brand img { height: 30px; width: auto; }
.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: #7D8AB0; padding: 14px 12px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #C8D0E6; 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(238, 152, 53, .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; }
.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 .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: #8E9BC0; }
.sidebar-foot button { background: none; border: 0; color: #C8D0E6; 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%; }

.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), #F4B871); 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%, #2B4182 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(238,152,53,.22); pointer-events: none; }
.hero h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.hero p { margin: 0; color: #C7D0EA; }
.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: #AEB9DA; }
@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 #F6D7B0; 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: #3A4562; transition: .12s; }
.chip:hover { border-color: #C5CCDD; }
.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(23,33,61,.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: cover; opacity: 0; transition: opacity .3s; }
.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: #CBD3E6; }
.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: #0f1630; 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; }
@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: #4a5470; }
.svc .row { margin-top: auto; padding-top: 6px; }

.brand-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: repeating-conic-gradient(#eef0f5 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), #F4B871); 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(10, 16, 36, .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(10,16,36,.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, #2B4182, #1C2D57); }
.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; }

@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; }
  .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(23,33,61,.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%, #2B4182 70%, #34509C 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(238,152,53,.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: #C7D0EA; }
.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: #C7D0EA; font-weight: 600; }
.dh-plan b { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; }
.dh-plan small { color: #C7D0EA; }
.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(238,152,53,.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: inline-flex; align-items: center; gap: 4px; color: var(--blue, #2563EB); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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(23,33,61,.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(23,33,61,.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: 28px; padding-top: 14px; border-top: 1px dashed #ccc; color: #444; }
.ip-foot small { color: #999; font-size: 11px; }
.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 { 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; }
.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 #C5CCDD; 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: #3A4562; 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: #A85C0B; font-weight: 600; }
.bell-rem small { color: #A85C0B; 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: 'Plus Jakarta Sans', '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', 'Plus Jakarta Sans', 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(#EEF0F5 0 25%, #F8F9FC 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(#EEF0F5 0 25%, #F8F9FC 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 #C5CCDD; 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(23,33,61,.14); background: #EEF1F7; }
.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: #C5CCDD; }
.cp-tpl.on { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238,152,53,.18); }
.cp-tpl canvas { display: block; width: 100%; height: auto; border-radius: 7px; background: #EEF1F7; }
.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: #3A4562; }
.yt-desc { margin: 0 0 10px; color: #4a5470; 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(23,33,61,.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: #1C2D57; }
.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; }
.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 #CBD3E6; 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, #FDF0E1); border: 1px solid rgba(238,152,53,.35); }
.brand-lock > .ic, .brand-lock > svg { flex: none; color: var(--orange, #EE9835); 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, #EE9835); padding: 5px 12px; border-radius: 99px; box-shadow: 0 4px 12px rgba(225,29,72,.25); }
.popup-modal.is-offer { border: 2px solid #EE9835; }
.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 #CBD3E6; 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: #EE9835; 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: 150px; }
  .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(238,152,53,.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(10,16,36,.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: #FAFBFD; }
.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: #EE9835; border-color: #EE9835; }
.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; } }