.demo-banner { background: #f8ebd2; color: #5b4310; font-size: 13.5px; text-align: center; padding: 6px 12px; }
.demo-banner a { color: #5b4310; font-weight: 700; }
main { padding-top: 26px; padding-bottom: 40px; min-height: 70vh; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 80; box-shadow: var(--shadow); max-width: 92vw; }
.toast[hidden] { display: none; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.role { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.role:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(13,27,42,.14); }
.role .ico { font-size: 28px; }
.role h3 { margin: 0; font-size: 19px; }
.kpi { padding: 16px; }
.kpi b { display: block; font: 700 28px var(--serif); }
.kpi span { color: var(--muted); font-size: 13.5px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.head h1 { margin: 0; font-size: 30px; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; font-size: 13px; padding: 6px 10px 6px 8px; border-radius: 999px; background: #ece6d8; color: var(--muted); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 6px; border-radius: 50%; background: #fff; font-weight: 700; font-size: 11.5px; }
.steps li.done { background: #dcefe4; color: var(--ok); }
.steps li.now { background: var(--ink); color: #fff; }
.steps li.now::before { color: var(--ink); }
.panel { max-width: 860px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spread { justify-content: space-between; }
label.f { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
input.i, select.i, textarea.i { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font: 15px var(--font); background: #fff; }
textarea.i { min-height: 120px; }
.drop { border: 2px dashed #cdbf9f; border-radius: 14px; padding: 26px; text-align: center; background: #fffdf8; cursor: pointer; }
.drop.over { background: #f6efdf; }
.choice { display: grid; gap: 10px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,27,42,.08); }
.choice input { margin-top: 4px; }
.check { list-style: none; padding: 0; margin: 10px 0; }
.check li { padding: 6px 0 6px 28px; position: relative; }
.check li::before { position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.check li.ok::before { content: "\2713"; background: #dcefe4; color: var(--ok); }
.check li.warn::before { content: "!"; background: #f8ebd2; color: var(--warn); }
.check li.bad::before { content: "\00d7"; background: #f6dede; color: var(--red); }
.check li.wait::before { content: ""; border: 2px solid #c9c2b2; border-top-color: var(--ink); animation: spin .8s linear infinite; width: 16px; height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.face { position: relative; width: 260px; height: 300px; margin: 8px auto; border-radius: 18px; overflow: hidden; background: #1b2d44; display: grid; place-items: center; }
.face video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.face .oval { position: absolute; inset: 30px 45px 40px; border: 3px dashed rgba(233,196,106,.9); border-radius: 50%; }
.face .ghost { font-size: 110px; opacity: .55; }
.face .say { position: absolute; bottom: 10px; left: 10px; right: 10px; text-align: center; background: rgba(13,27,42,.8); color: #fff; padding: 6px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.bar { height: 8px; background: #ece6d8; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s; }
.notary { display: flex; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #9aa5b1; }
.dot.on { background: #2fbf71; box-shadow: 0 0 0 3px rgba(47,191,113,.2); }
.room { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } }
.stage { position: relative; aspect-ratio: 16/10; background: #0b1624; border-radius: 14px; overflow: hidden; color: #fff; }
.stage .big { position: absolute; inset: 0; display: grid; place-items: center; }
.stage .big .avatar { width: 120px; height: 120px; font-size: 40px; }
.stage .me { position: absolute; right: 10px; bottom: 10px; width: 30%; aspect-ratio: 4/3; background: #22364f; border-radius: 10px; overflow: hidden; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.3); }
.stage .me video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.stage .rec { position: absolute; left: 12px; top: 10px; font-size: 13px; background: rgba(178,58,58,.9); padding: 3px 9px; border-radius: 99px; }
.stage .name { position: absolute; left: 12px; bottom: 10px; font-size: 13px; background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: 8px; }
.chat { height: 100%; min-height: 240px; display: flex; flex-direction: column; gap: 8px; overflow: auto; max-height: 380px; }
.msg { padding: 8px 12px; border-radius: 12px; background: #f1ece1; font-size: 14.5px; max-width: 92%; }
.msg.me { background: #dde8f5; align-self: flex-end; }
.msg b { display: block; font-size: 12px; color: var(--muted); }
canvas.sig { width: 100%; height: 170px; background: #fff; border: 1.5px dashed #b7ab90; border-radius: 12px; touch-action: none; cursor: crosshair; }
.doc { background: #fff; border: 1px solid #d9d1bf; box-shadow: var(--shadow); padding: 38px 44px; font-family: var(--serif); font-size: 15.5px; line-height: 1.6; max-width: 760px; margin: 0 auto; position: relative; }
.doc h2 { text-align: center; font-size: 19px; letter-spacing: .06em; margin: 10px 0 18px; }
.doc .venue { font-size: 14px; }
.doc .cert { margin-top: 22px; padding-top: 14px; border-top: 1.5px solid #d9d1bf; font-size: 14px; }
.doc .regline { font-family: var(--mono); font-size: 12.5px; margin-top: 10px; }
.doc .sigimg { height: 60px; display: block; }
.doc .stamp { position: absolute; right: 36px; bottom: 120px; width: 110px; height: 110px; border-radius: 50%; border: 3px double var(--gold); color: #8a6219; display: grid; place-items: center; text-align: center; font: 700 11px var(--font); transform: rotate(-12deg); opacity: .9; padding: 8px; }
.doc .qr { position: absolute; right: 36px; top: 30px; text-align: center; font: 10px var(--font); color: var(--muted); }
.doc .qr img, .doc .qr canvas { width: 92px; height: 92px; }
.pricing { width: 100%; border-collapse: collapse; }
.pricing td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.pricing td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.pricing tr.total td { font-weight: 800; border-bottom: 0; font-size: 17px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; background: #ece6d8; padding: 8px 14px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; }
pre.code { background: #0d1b2a; color: #d8e2ee; padding: 14px; border-radius: 12px; overflow: auto; font: 13px/1.5 var(--mono); }
.verify-ok { border-left: 5px solid var(--ok); }
.verify-bad { border-left: 5px solid var(--red); }
.lang { display: inline-flex; gap: 4px; }
.lang button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 9px; font: 600 13px var(--font); cursor: pointer; }
.lang button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
@media print {
  .topbar, .demo-banner, .no-print, footer, .ios-hint, .toast { display: none !important; }
  main { padding: 0; }
  .doc { box-shadow: none; border: 0; }
}
table.dataTable td.mono { word-break: normal; white-space: nowrap; }
table.dataTable .btn { white-space: nowrap; }
