@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --navy: #1F6FE0; --navy-d: #0B1B3A; --ink: #16212e; --mint: #4DA3FF; --mint-d: #1F6FE0; --gold: #FFB020; --orange: #E8833A;
  --red: #D93025; --bg: #F4F6F9; --card: #fff; --line: #E6EAF0; --muted: #66727F; --soft: #EEF2F7;
  --r: 14px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.55 "Noto Sans Arabic", "Inter", "Segoe UI", Tahoma, sans-serif; color: var(--ink); background: var(--bg); }
[dir="ltr"] body { font-family: "Inter", "Noto Sans Arabic", "Segoe UI", sans-serif; }
a { color: var(--navy); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: linear-gradient(150deg, var(--navy), var(--navy-d)); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art h2 { font-size: 34px; line-height: 1.3; margin: 0 0 14px; }
.auth-art p { opacity: .85; font-size: 16px; max-width: 460px; }
.auth-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-art li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.auth-art li svg { color: var(--mint); }
.auth-box { display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 24px; margin: 18px 0 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.brand small { font-weight: 500; font-size: 12px; opacity: .7; display: block; line-height: 1; }

/* ---------- form ---------- */
label.f { display: block; margin-bottom: 14px; }
label.f span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.in { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
textarea.in { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.in:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,78,121,.12); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: #12306A; }
.btn.mint { background: var(--mint); border-color: var(--mint); color: #0A2A5C; }
.btn.danger { color: var(--red); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; height: 46px; }
.err { color: var(--red); font-size: 13px; min-height: 20px; margin: 4px 0 10px; }
.ok { color: var(--mint-d); font-size: 13px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c8d2dd; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .brand { color: #fff; padding: 18px 18px 10px; }
.side nav { padding: 6px 10px; overflow-y: auto; flex: 1; }
.grp { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7d8a98; padding: 16px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #dbe3ec; font-weight: 500; margin-bottom: 2px; }
.side nav a:hover { background: rgba(255,255,255,.06); }
.side nav a.on { background: rgba(61,220,151,.14); color: var(--mint); }
.side nav a .pill { margin-inline-start: auto; background: var(--red); color: #fff; font-size: 11px; border-radius: 9px; padding: 0 6px; }
.side-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: #0A2A5C; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; }
.who { min-width: 0; flex: 1; }
.who b { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { font-size: 12px; color: #8b98a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.iconbtn { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: inherit; cursor: pointer; }
.iconbtn:hover { background: rgba(255,255,255,.08); }

main { min-width: 0; }
.top { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top h1 { font-size: 18px; margin: 0; flex: 1; }
.search { position: relative; width: 300px; }
.search svg { position: absolute; inset-inline-start: 10px; top: 11px; color: var(--muted); }
.search .in { padding-inline-start: 36px; height: 40px; }
.top .lang { font-weight: 700; }
.content { padding: 24px 28px 48px; max-width: 1360px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: 1.4fr 1fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 15px; }
.card-b { padding: 16px 18px; }
.kpi { padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.kpi .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.kpi .n { font-size: 24px; font-weight: 700; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: 13px; }
.kpi .d { font-size: 12px; color: var(--muted); }
.c-navy { background: #E7EEF6; color: var(--navy); }
.c-mint { background: #E7F0FF; color: var(--mint-d); }
.c-gold { background: #FDF3D3; color: #9A7300; }
.c-orange { background: #FCEBDD; color: #B85A17; }
.c-red { background: #FDECEA; color: var(--red); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #FAFBFC; white-space: nowrap; cursor: default; }
th.sort { cursor: pointer; }
th.sort:hover { color: var(--ink); }
td.c, th.c { text-align: center; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFBFD; }
.subj { font-weight: 600; max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ell { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick { font-weight: 800; letter-spacing: -3px; color: #9aa4b0; }
.tick.on { color: var(--mint-d); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: #b4bec9; margin-bottom: 8px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; color: var(--muted); font-size: 13px; }

/* ---------- feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.feed .t { flex: 1; min-width: 0; }
.feed .t b { font-weight: 600; }
.feed .t .s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- charts ---------- */
.chart { width: 100%; height: 240px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.heat { display: grid; grid-template-columns: 54px repeat(24, 1fr); gap: 3px; font-size: 11px; color: var(--muted); }
.heat div.c { aspect-ratio: 1; border-radius: 4px; background: #EEF2F7; }
.heat div.h { text-align: center; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 140px 1fr 50px; gap: 10px; align-items: center; font-size: 13px; }
.bar .tr { height: 10px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.bar .tr span { display: block; height: 100%; background: var(--navy); border-radius: 6px; }
.score { display: inline-block; min-width: 42px; text-align: center; padding: 2px 8px; border-radius: 8px; font-weight: 700; font-size: 12px; }

/* ---------- settings ---------- */
.set-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.set-nav { display: grid; gap: 2px; position: sticky; top: 84px; }
.set-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.set-nav a:hover { background: #fff; }
.set-nav a.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); font-weight: 600; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row b { display: block; font-weight: 600; }
.row span { color: var(--muted); font-size: 13px; }
.sw { position: relative; width: 42px; height: 24px; border-radius: 12px; background: #C7CFD8; border: 0; cursor: pointer; flex: 0 0 auto; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw.on { background: var(--mint-d); }
.sw.on::after { inset-inline-start: 21px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; }
[dir="rtl"] .chip { padding: 4px 12px 4px 6px; }
.chip button { border: 0; background: #fff; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; }
.step::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; }
code.k { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; direction: ltr; unicode-bidi: embed; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(14,22,32,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal .card-h { position: sticky; top: 0; background: #fff; }
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
[dir="rtl"] .toast { transform: translateX(50%); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { display: flex; gap: 12px; padding: 8px 0; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g2, .g3 { grid-template-columns: 1fr; } .search { width: 200px; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; } .side { position: fixed; z-index: 30; width: 260px; inset-inline-start: -270px; transition: inset-inline-start .2s; }
  .side.open { inset-inline-start: 0; } .menu-btn { display: inline-flex !important; } .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
  .set-wrap { grid-template-columns: 1fr; } .set-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .search { display: none; } .content { padding: 16px; } .top { padding: 0 16px; }
}
.menu-btn { display: none !important; }

.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.err.ok { color: var(--mint-d); }

/* ================= v4 immersive ================= */
.content { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card { transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 28px rgba(16,24,40,.08); }
.side nav a.on { box-shadow: inset 3px 0 0 var(--mint); }
[dir="rtl"] .side nav a.on { box-shadow: inset -3px 0 0 var(--mint); }

.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: radial-gradient(1200px 400px at 85% -20%, rgba(61,220,151,.35), transparent 60%), radial-gradient(800px 300px at 0% 120%, rgba(242,183,5,.25), transparent 60%), linear-gradient(135deg, #102A5C 0%, #0B1B3A 55%, #081430 100%);
  box-shadow: 0 18px 40px rgba(14,42,71,.25); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); pointer-events: none; }
.hero h2 { margin: 6px 0 4px; font-size: 28px; }
.hero p { margin: 0; opacity: .8; }
.hero-txt { position: relative; z-index: 1; flex: 1; min-width: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; background: rgba(61,220,151,.16); color: var(--mint); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(61,220,151,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.hero-stats { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 24px; }
.hero-stats span { font-size: 12px; opacity: .75; }
.hero-donuts { display: flex; gap: 18px; position: relative; z-index: 1; }
.donut { position: relative; width: 132px; height: 132px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 11; }
.donut .trk { stroke: rgba(255,255,255,.12); }
.donut .val { stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 6px rgba(61,220,151,.5)); }
.donut .dc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut .dc b { font-size: 24px; }
.donut .dc span { font-size: 11px; opacity: .8; }

.kpi2 { padding: 16px 18px 10px; position: relative; overflow: hidden; }
.kpi2 .k-top { display: flex; justify-content: space-between; align-items: center; }
.kpi2 .ic { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
.kpi2 .n { font-size: 30px; font-weight: 700; margin-top: 10px; line-height: 1.1; }
.kpi2 .l { color: var(--muted); font-size: 13px; }
.spark { width: 100%; height: 34px; margin-top: 6px; display: block; }
.trend { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.trend.up { background: #E7F0FF; color: var(--mint-d); }
.trend.down { background: #FDECEA; color: var(--red); }
.area { width: 100%; height: 250px; }
.area .grid line { stroke: var(--line); stroke-dasharray: 3 4; }
.area .ln { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.area .ln.dash { stroke-dasharray: 5 5; stroke-width: 2; }
.area .lbl text { font-size: 11px; fill: var(--muted); }
.people { display: grid; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.pav { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink); flex: 0 0 auto; }
.pt { flex: 1; min-width: 0; }
.pt b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt span { font-size: 12px; color: var(--muted); }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 34px; border: 2px dashed #c9d6e4; border-radius: 18px; background: linear-gradient(180deg, #fff, #f6f9fc); cursor: pointer; text-align: center; transition: .2s; }
.drop svg { width: 34px; height: 34px; color: var(--navy); }
.drop span { color: var(--muted); font-size: 13px; }
.drop.over, .drop:hover { border-color: var(--mint-d); background: #F2F7FF; }
.drop.busy { opacity: .7; pointer-events: none; }
.doc-n { display: flex; gap: 10px; align-items: center; }
.doc-n svg { width: 28px; height: 28px; color: var(--navy); }
.doc-n b { display: block; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 16px; }
.tpl { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, #fff, #fafcfe); }
.tpl-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tpl p { margin: 4px 0; font-size: 13px; color: #3c4652; white-space: pre-wrap; flex: 1; }
.tpl-a { display: flex; gap: 6px; }
.push-box { display: flex; gap: 16px; align-items: flex-start; }
.pb-ic { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), #2F80ED); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pb-ic svg { width: 26px; height: 26px; }

.viewer { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(900px 400px at 100% 0, rgba(61,220,151,.12), transparent 60%), var(--bg); }
.vh { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; }
.vb { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vf { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
.vcard { background: #fff; border-radius: 18px; box-shadow: 0 18px 40px rgba(16,24,40,.1); padding: 26px; width: 100%; max-width: 440px; }
.vcard.wide { max-width: 1000px; }
.vtitle { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.vframe { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 12px; }
.vimg { max-width: 100%; border-radius: 12px; display: block; margin: auto; }
.thanks { text-align: center; }
.big-check { font-size: 56px; font-weight: 800; letter-spacing: -10px; color: var(--mint-d); margin-bottom: 8px; }

/* dark mode */
html.dark { --bg: #0d1520; --card: #131e2b; --line: #22303f; --ink: #e6edf5; --muted: #8fa0b2; --soft: #1a2736; }
html.dark body { background: var(--bg); color: var(--ink); }
html.dark .top, html.dark .modal, html.dark .modal .card-h, html.dark th, html.dark .in, html.dark .btn, html.dark .vcard, html.dark .seg button.on, html.dark .drop, html.dark .tpl { background: var(--card); color: var(--ink); border-color: var(--line); }
html.dark .btn.primary { background: #2F80ED; border-color: #2F80ED; }
html.dark .btn.mint { background: var(--mint); color: #0A2A5C; }
html.dark tbody tr:hover, html.dark .item:hover, html.dark .set-nav a:hover { background: #172433; }
html.dark .set-nav a.on { background: var(--card); color: var(--mint); }
html.dark .stat, html.dark .tick { color: inherit; }
html.dark .c-navy { background: #1b2d44; color: #8fb7e8; }
html.dark .kpi .n, html.dark .kpi2 .n { color: var(--ink); }
@media (max-width: 1100px) { .hero { flex-direction: column; align-items: flex-start; } }

/* v5: video, e-sign, watermark, campaigns */
.up-modes{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.chk{display:inline-flex;gap:8px;align-items:center;font-size:13px;cursor:pointer}
.chk input{width:16px;height:16px;accent-color:var(--navy,#0B1B3A)}
.rec{display:flex;flex-direction:column;gap:12px;align-items:center}
.recv{width:100%;max-width:640px;aspect-ratio:16/9;background:#0b1520;border-radius:14px;object-fit:cover}
.rec-time{color:#e5484d;font-weight:700;min-height:20px;font-variant-numeric:tabular-nums}
.sig-row td{background:rgba(46,196,160,.07);font-size:13px}
.sig-row .tag{margin:2px 4px;display:inline-flex;gap:6px}
.vvideo{width:100%;max-height:72vh;border-radius:12px;background:#000}
.wm-wrap{position:relative;overflow:hidden;border-radius:12px}
.wm-wrap>iframe,.wm-wrap>img,.wm-wrap>video{display:block;width:100%}
.wm{position:absolute;inset:-50%;pointer-events:none;transform:rotate(-28deg);color:rgba(14,42,71,.13);font-size:15px;font-weight:700;line-height:64px;word-spacing:30px;user-select:none;overflow:hidden}
.pad-wrap{position:relative;border:2px dashed var(--line,#E6EAF0);border-radius:12px;background:#fff;margin-top:6px}
.pad-wrap canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}
.pad-ph{position:absolute;inset:0;display:grid;place-items:center;color:#9aa5b1;pointer-events:none}
.pv{margin-top:14px;padding:16px;border:1px solid var(--line,#E6EAF0);border-radius:12px;background:var(--soft,#f7f9fb)}
.progress{height:8px;border-radius:99px;background:var(--line,#E6EAF0);overflow:hidden;margin-top:12px}
.progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#0B1B3A,#2F80ED);transition:width .4s}
.modal .thanks{text-align:center;padding:10px 0}
html.dark .pad-wrap{background:#fff}
