/*! © 2026 Notha Property (Pty) Ltd. All rights reserved. Confidential: not to be copied or shared without its written permission. */
:root {
color-scheme: light;
--ink: #0f172a; --text: #1e293b; --muted: #64748b; --faint: #94a3b8; --line: #e2e8f0; --page: #f1f5f9;
--card: #ffffff; --primary: #0f766e; --primary-dark: #115e59; --primary-soft: #ccfbf1; --success: #16a34a;
--success-soft: #dcfce7; --warning: #d97706; --warning-soft: #fef3c7; --danger: #dc2626; --danger-soft: #fee2e2;
--top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px);
--radius: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--page); color: var(--text); }
body { font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
-webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.noscript { padding: 24px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
padding: calc(var(--top) + 10px) 12px 10px; background: var(--ink); color: #fff; min-height: 56px; }
.topbar h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden;
text-overflow: ellipsis; }
.voicebtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 40px;
padding: 0; border: 0; background: none; color: inherit; }
.voicedot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; }
.voicedot.on { opacity: .85; }
.voicedot.sent { background: currentColor; opacity: .85; }
.voicedot.blocked { border-style: dashed; opacity: .45; }
.voicetry:empty { display: none; }
.voicetry { margin-top: 10px; padding: 12px; border-radius: 12px; background: rgba(148, 163, 184, .14); }
.voicetry p { margin: 0 0 6px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
border: 0; border-radius: 20px; background: transparent; color: inherit; cursor: pointer; }
.iconbtn:active { background: rgba(255, 255, 255, .12); }
.iconbtn svg { width: 22px; height: 22px; }
.avatar { width: 34px; height: 34px; border-radius: 17px; background: var(--primary); color: #fff; font-weight: 700;
font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.content { padding: 14px 14px calc(96px + var(--bottom)); max-width: 760px; margin: 0 auto; }
.menubtn { position: relative; }
.menudot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 5px; background: #ef4444; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: 272px; display: flex; flex-direction: column;
padding: calc(var(--top) + 18px) 12px calc(var(--bottom) + 14px); background: var(--ink); color: #cbd5e1;
transform: translateX(-100%); transition: transform .2s ease; }
body.nav-open .drawer { transform: none; box-shadow: 8px 0 30px rgba(0, 0, 0, .3); }
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(15, 23, 42, .45); display: none; }
body.nav-open .scrim { display: block; }
.drawer .brand-name { color: #fff; font-size: 20px; font-weight: 600; }
.drawer .brand-sub { color: #94a3b8; font-size: 13px; }
.who { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; }
.who b { display: block; color: #fff; }
.who span { font-size: 13px; color: #94a3b8; }
.nav { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.navitem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin-bottom: 2px; border: 0;
border-radius: 10px; background: none; color: #cbd5e1; font-size: 15px; text-align: left; cursor: pointer; }
.navitem svg { width: 20px; height: 20px; flex: none; }
.navitem:active { background: #1e293b; }
.navitem.on { background: var(--primary); color: #fff; font-weight: 600; }
.navitem .tag { margin-left: auto; padding: 1px 6px; border: 1px solid #334155; border-radius: 8px; font-size: 11px;
color: #64748b; white-space: nowrap; }
.navitem .num { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #ef4444; color: #fff;
font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.drawer .server { margin: 10px 4px; font-size: 12px; color: #64748b; overflow-wrap: anywhere; }
.signout { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid #334155;
border-radius: 10px; background: none; color: #cbd5e1; font-size: 15px; cursor: pointer; }
.signout svg { width: 18px; height: 18px; }
@media (min-width: 960px) {
.drawer { transform: none; }
body.nav-open .drawer { box-shadow: none; }
.scrim { display: none !important; }
.topbar, .tabs, .content, .composer { margin-left: 272px; }
.menubtn { display: none !important; }
.content, .pushwrap { max-width: none; margin-right: 0; padding-left: 28px; padding-right: 28px; }
.content { padding-top: 20px; }
}
.tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 8px; background: #fff; border-bottom: 1px solid var(--line);
scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 12px 10px 9px; border: 0;
border-bottom: 3px solid transparent; background: none; color: var(--muted); font-size: 15px; white-space: nowrap;
cursor: pointer; }
.tab.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab .num { min-width: 20px; padding: 0 6px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 12px;
font-weight: 700; line-height: 20px; text-align: center; }
.totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.totals div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.totals b { display: block; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.totals b.green { color: #15803d; }
.totals b.amber { color: #b45309; }
.totals span { display: block; font-size: 12px; color: var(--muted); }
.unitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.unittile { display: block; min-height: 78px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 12px;
background: #f1f5f9; text-align: left; cursor: pointer; }
.unittile.green { background: var(--success-soft); border-color: #86efac; }
.unittile.amber { background: var(--warning-soft); border-color: #fcd34d; }
.unittile b { display: block; font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden;
text-overflow: ellipsis; }
.unittile span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden;
text-overflow: ellipsis; }
.unittile small { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.unittile.green small { color: #15803d; }
.unittile.amber small { color: #b45309; }
.lead { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b.red { color: var(--danger); }
.stat b.amber { color: var(--warning); }
.stat b.green { color: var(--success); }
.stat small { display: block; font-size: 12px; color: var(--muted); }
.search { width: 100%; margin-bottom: 10px; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 12px;
background: #fff; font-size: 16px; }
.secret { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 17px; background: var(--page); padding: 10px 12px;
border-radius: 10px; user-select: all; -webkit-user-select: all; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
margin-bottom: 12px; }
.card h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.card h3 { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.card.attention { border: 2px solid var(--danger); }
.section-title { margin: 18px 2px 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.spacer { height: 8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 6px 0 4px; }
.facts div span { display: block; font-size: 12px; color: var(--muted); }
.facts div b { display: block; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 11px; font-size: 12px; font-weight: 600;
white-space: nowrap; background: var(--line); color: var(--text); }
.pill.blue { background: #dbeafe; color: #1d4ed8; }
.pill.green { background: var(--success-soft); color: #15803d; }
.pill.amber { background: var(--warning-soft); color: #b45309; }
.pill.red { background: var(--danger-soft); color: var(--danger); }
.pill.pink { background: #fce7f3; color: #9d174d; }
.pill.purple { background: #ede9fe; color: #6d28d9; }
.pill.teal { background: #cffafe; color: #0e7490; }
.notice { background: var(--warning-soft); border: 1px solid #fde68a; color: #92400e; border-radius: 12px;
padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }
.notice.info { background: var(--primary-soft); border-color: #99f6e4; color: #134e4a; }
.pushwrap { padding: 14px 14px 0; max-width: 760px; margin: 0 auto; }
.pushwrap .pushbar { margin-bottom: 0; }
.pushbar .actions { margin: 10px 0 0; }
.empty { text-align: center; color: var(--faint); padding: 36px 16px; }
.error { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px;
font-size: 14px; margin: 8px 0; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
margin-bottom: 12px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0;
border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item:active { background: #f8fafc; }
.item .title { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .side { text-align: right; flex: none; font-size: 12px; color: var(--muted); }
.item .count { display: inline-block; min-width: 20px; height: 20px; margin-top: 4px; padding: 0 6px;
border-radius: 10px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700;
line-height: 20px; text-align: center; }
.chevron { color: var(--faint); flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff;
color: var(--text); font-size: 14px; cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
padding: 10px 16px; border-radius: 12px; border: 1px solid #cbd5e1; background: #fff; color: var(--text);
font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.btn.danger { color: var(--danger); border-color: #fca5a5; }
.btn.block { width: 100%; }
.btn.link { border: 0; background: none; color: var(--primary); min-height: 0; padding: 6px 0; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.actions .btn { flex: 1 1 auto; }
.btn svg { width: 20px; height: 20px; flex: none; }
.fab { position: fixed; right: 16px; bottom: calc(20px + var(--bottom)); z-index: 15; border-radius: 28px;
white-space: nowrap; box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.servicebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.servicebar b { color: var(--ink); font-size: 15px; }
.servicebar .btn { flex: none; }
.idcard { max-width: 320px; margin: 4px auto 12px; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden;
background: #fff; color: #1e293b; text-align: center; padding-bottom: 12px;
box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.idcard .band { background: #0f172a; color: #fff; text-align: left; padding: 10px 16px 12px; }
.idcard .band small { display: block; color: #5eead4; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.idcard .band b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idcard .idphoto { display: block; width: 150px; height: 200px; margin: 16px auto 10px; border-radius: 10px;
object-fit: cover; background: #e2e8f0; }
.idcard .idphoto.none { display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; }
.card > img.idphoto { display: block; width: 150px; height: 200px; margin: 6px auto 12px; border-radius: 12px;
object-fit: cover; background: #e2e8f0; }
.card > img { max-width: 100%; }
.idcard .idname { padding: 0 12px; color: #0f172a; font-size: 18px; font-weight: 700; }
.idcard .idsub { color: #64748b; font-size: 12px; }
.idcard .idvalid { margin: 4px 0 8px; font-weight: 700; }
.idcard .idvalid.ok { color: #15803d; }
.idcard .idvalid.bad { color: #b91c1c; }
.idcard .qr { display: block; width: 176px; height: 176px; margin: 4px auto 2px; }
.sosbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 34px;
padding: 0 12px; border-radius: 17px; background: #dc2626; color: #fff; font-weight: 800; font-size: 14px;
letter-spacing: .08em; text-decoration: none; box-shadow: 0 0 0 3px rgba(248, 113, 113, .35); }
.panic-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 26px; margin: 12px 0 22px; }
.panic-round { display: flex; flex-direction: column; align-items: center; width: min(40vw, 168px); padding: 0; border: 0;
background: none; color: var(--ink); font: inherit; text-align: center; cursor: pointer; }
.panic-disc { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 12px; border-radius: 50%; transition: transform .08s; }
.panic-disc svg { display: block; width: 100%; height: 100%; }
.panic-round.ambulance .panic-disc { background: #dc2626; box-shadow: 0 0 0 6px #fee2e2, 0 10px 24px rgba(220, 38, 38, .35); }
.panic-round.security .panic-disc { background: #facc15; box-shadow: 0 0 0 6px #fef9c3, 0 10px 24px rgba(202, 138, 4, .35); }
.panic-round:active .panic-disc { transform: scale(.95); }
.panic-round b { display: block; font-size: 17px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.panic-round small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.sos-active { margin-bottom: 12px; padding: 22px 16px; border-radius: var(--radius); background: #dc2626; color: #fff;
text-align: center; }
.sos-active .sos-title { font-size: 24px; font-weight: 800; }
.sos-active p { margin: 10px 0 0; }
.sos-active .small { color: #fee2e2; }
.sos-active .btn { margin-top: 12px; }
.btn.sos { background: #dc2626; border-color: #dc2626; color: #fff; }
.sosbtn.support { background: #115e59; letter-spacing: 0; box-shadow: 0 0 0 3px rgba(96, 165, 250, .35); }
.sos-active.support { background: #115e59; }
.sos-active.support .small { color: #ccfbf1; }
.alertbar.support { background: #115e59; }
.alertbar { display: block; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: #dc2626; color: #fff;
font-weight: 700; text-align: center; text-decoration: none; }
.passimg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 12px; border: 1px solid var(--line);
border-radius: 14px; box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1;
border-radius: 10px; background: #fff; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field.check { display: flex; align-items: flex-start; gap: 12px; }
.field.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; padding: 0; accent-color: var(--primary); }
.field.check > span { margin: 0; font-size: 15px; color: var(--text); }
.field.check b { display: block; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary-soft);
border-color: var(--primary); }
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 42, .45); display: flex;
align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto; background: #fff;
border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--bottom)); }
.sheet h2 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.sheet .intro { color: var(--muted); font-size: 14px; margin: 0 0 12px; white-space: pre-line; }
.sheet .search { margin-top: 8px; }
.sheet .list.picker { max-height: 46vh; overflow-y: auto; margin-bottom: 8px; }
.sheet .buttons { display: flex; gap: 10px; margin-top: 6px; }
.sheet .buttons .btn { flex: 1; }
body.offline { --top: calc(env(safe-area-inset-top, 0px) + 26px); }
.offline-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 35; padding: calc(env(safe-area-inset-top, 0px) + 4px) 12px 4px;
background: #b45309; color: #fff; font-size: 13px; font-weight: 600; line-height: 18px; text-align: center; }
.backdrop.callhelp { z-index: 58; }
.callhelp .btn { text-decoration: none; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--bottom)); transform: translateX(-50%); z-index: 60;
background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px;
max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.pollopt { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pollopt:last-of-type { border-bottom: 0; }
.pollopt .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 6px 0 8px; }
.pollopt .bar span { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.pollopt.mine b { color: var(--primary-dark); }
.signin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
padding: calc(var(--top) + 24px) 20px calc(var(--bottom) + 48px); max-width: 440px; margin: 0 auto; }
.signin .powered { position: fixed; right: 16px; bottom: calc(var(--bottom) + 12px); font-size: 12px;
color: var(--muted); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand img { width: 52px; height: 52px; border-radius: 14px; }
.brand b { display: block; font-size: 22px; color: var(--ink); }
.photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -4px 0 12px;
scrollbar-width: none; }
.photos::-webkit-scrollbar { display: none; }
.photos img { flex: none; width: 88%; max-width: 520px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px;
scroll-snap-align: center; background: var(--line); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.thumb { position: relative; width: 96px; height: 72px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--line); cursor: zoom-in; }
.thumb .x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border: 0; border-radius: 12px;
background: var(--ink); color: #fff; font-size: 16px; line-height: 24px; padding: 0; cursor: pointer; }
.backdrop.picture { align-items: center; flex-direction: column; gap: 8px; padding: 12px; background: rgba(15, 23, 42, .9); }
.backdrop.picture img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.backdrop.picture .caption { color: #fff; font-size: 14px; }
p.danger, .sub.danger { color: var(--danger); }
.flags { margin: 2px 0 10px; padding-left: 20px; }
.flags li { margin: 3px 0; }
.item .tick { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--primary); }
.item.line { cursor: default; align-items: flex-start; }
.item.line .sub { white-space: normal; }
.item.line .tick, .item.line .side { margin-top: 2px; }
.item .actions { margin: 2px 0 0; gap: 0 16px; }
.item .actions .btn.link { flex: 0 0 auto; padding: 4px 0; }
.paydone { text-align: center; }
.paydone .big { width: 64px; height: 64px; margin: 6px auto 12px; border-radius: 32px; display: flex; align-items: center;
justify-content: center; font-size: 32px; font-weight: 700; }
.paydone .big.ok { background: var(--success-soft); color: var(--success); }
.paydone .big.no { background: var(--danger-soft); color: var(--danger); }
.paydone .big.wait { background: var(--warning-soft); color: var(--warning); }
.paydone .actions { margin-top: 14px; justify-content: center; }
.payfoot { margin-top: 8px; }
.ozowpay { display: block; width: 100%; max-width: 662px; padding: 0; margin: 4px 0 0; border: 1px solid var(--line);
border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; }
.ozowpay img { display: block; width: 100%; height: auto; }
.ozowpay:hover, .ozowpay:focus-visible { border-color: #00c48c; box-shadow: 0 0 0 3px rgba(0, 196, 140, .18); }
.cover { width: 72px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; background: var(--line); }
.cover.blank { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--faint); }
.step { display: flex; gap: 12px; padding: 8px 0; }
.mark { width: 28px; height: 28px; border-radius: 14px; flex: none; display: flex; align-items: center;
justify-content: center; font-weight: 700; }
.mark.done { background: var(--success-soft); color: var(--success); }
.mark.wait { background: var(--warning-soft); color: var(--warning); }
.step b { display: block; color: var(--ink); }
.step .actions { margin: 6px 0 0; }
.step .actions .btn { flex: 0 0 auto; min-height: 36px; padding: 6px 14px; font-size: 14px; }
.timeline .event { padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline .event:last-child { border-bottom: 0; }
.timeline .who { font-weight: 600; color: var(--ink); }
.timeline .body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.timeline .comment .body { background: var(--page); padding: 8px 10px; border-radius: 10px; }
.chat { display: flex; flex-direction: column; gap: 6px; padding-bottom: 76px; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
align-self: flex-start; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.mine { align-self: flex-end; background: var(--primary); border-color: var(--primary); color: #fff; }
.bubble .from { font-size: 12px; font-weight: 600; color: var(--primary-dark); margin-bottom: 2px; }
.bubble .at { font-size: 11px; opacity: .7; margin-top: 2px; text-align: right; }
.bubble .gone { font-style: italic; opacity: .75; }
.bubble, .list .item { -webkit-touch-callout: none; }
@media (hover: none) { .bubble { -webkit-user-select: none; user-select: none; } }
.sheet .choices { display: grid; gap: 8px; margin: 4px 0 8px; }
.day { align-self: center; font-size: 12px; color: var(--muted); margin: 8px 0 2px; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: flex-end; gap: 8px;
padding: 8px 10px calc(8px + var(--bottom)); background: #fff; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-width: 0; height: 44px; min-height: 44px; max-height: 156px; padding: 10px 14px;
border: 1px solid #cbd5e1; border-radius: 22px; resize: none; font-size: 16px; line-height: 22px;
overflow-y: hidden; }
.composer textarea.scrolls { overflow-y: auto; }
.composer textarea.lines { border-radius: 16px; }
.composer .btn { flex: none; width: 48px; height: 44px; min-height: 44px; padding: 0; border-radius: 22px; }
.money { font-variant-numeric: tabular-nums; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td.r { text-align: right; white-space: nowrap; }
.avatar.photo { padding: 0; overflow: hidden; background: var(--line); }
.avatar.photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.lmap { position: relative; height: 62vh; min-height: 320px; overflow: hidden; background: #e5e7eb; cursor: grab;
touch-action: none; user-select: none; -webkit-user-select: none; }
.lmap.google { cursor: auto; touch-action: auto; }
.lmap-google { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.lmap [hidden] { display: none !important; }
.lmap .btn.mini { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.lmap-tiles, .lmap-marks { position: absolute; left: 0; top: 0; }
.lmap-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.lmap-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.lmap-lines line { stroke: #115e59; stroke-width: 3; stroke-dasharray: 8 6; stroke-linecap: round; }
.lmap-lines line.there { stroke: #16a34a; stroke-dasharray: none; }
.mk { position: absolute; left: 0; top: 0; z-index: 2; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.mk-dot { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border: 3px solid #fff; border-radius: 50%;
background: #0f766e; color: #fff; font: 700 12px/26px "Segoe UI", Arial, sans-serif; text-align: center;
box-shadow: 0 1px 5px rgba(0, 0, 0, .45); }
.mk-tag { position: absolute; left: 20px; top: -12px; padding: 3px 9px; border-radius: 11px; background: rgba(15, 23, 42, .88);
color: #fff; font: 600 12px/18px "Segoe UI", Arial, sans-serif; white-space: nowrap; }
.mk.staff.going .mk-dot { background: #16a34a; }
.mk.staff.stale .mk-dot { background: #94a3b8; }
.mk.staff.stale .mk-tag { background: rgba(100, 116, 139, .9); }
.mk.me { z-index: 3; }
.mk.me .mk-dot { left: -12px; top: -12px; width: 24px; height: 24px; background: #0f766e; box-shadow: 0 0 0 6px rgba(37, 99, 235, .25); }
.mk.me .mk-tag { left: 18px; background: #115e59; }
.mk.alert { z-index: 3; }
.mk.alert .mk-dot { background: #dc2626; font-size: 17px; animation: mkpulse 1.2s ease-in-out infinite; }
.mk.alert .mk-tag { background: #dc2626; }
.mk.chosen { z-index: 4; }
.mk.chosen .mk-dot { outline: 3px solid #facc15; }
@keyframes mkpulse { 50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, .35); } }
@media (prefers-reduced-motion: reduce) { .mk.alert .mk-dot { animation: none; } }
.lmap-controls { position: absolute; right: 10px; top: 10px; z-index: 5; display: flex; flex-direction: column; gap: 6px;
align-items: flex-end; }
.lmap-controls .btn, .lmap-follow { min-width: 36px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.lmap-follow { margin-top: 10px; }
.lmap-credit { position: absolute; right: 0; bottom: 0; z-index: 5; padding: 2px 8px; background: rgba(255, 255, 255, .85);
color: #334155; font-size: 11px; }
.lmap-note, .lmap-told { position: absolute; left: 12px; right: 70px; z-index: 5; padding: 8px 14px; border-radius: 10px;
background: rgba(255, 255, 255, .95); color: var(--muted); font-size: 13px;
box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.lmap-note { top: 12px; }
.lmap-told { bottom: 26px; color: #92400e; background: #fef3c7; }
.helpmap { height: 320px; min-height: 0; margin-top: 12px; border-radius: 12px; }
.helpmap .lmap-full { display: none; }
.sos-active .helpmap .btn { margin-top: 0; }
.docrow { padding: 12px 0; border-top: 1px solid var(--line); }
.card h2 + .docrow { border-top: 0; padding-top: 2px; }
.docrow .actions { margin: 8px 0 0; }
.docrow .actions .btn { flex: 0 1 auto; }
.card h2.sub2 { margin-top: 16px; }
.card .list { margin-bottom: 12px; }
.wording h4 { margin: 16px 0 4px; font-size: 15px; color: var(--ink); }
.wording p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.sigpad { display: block; width: 100%; height: auto; aspect-ratio: 600 / 220; margin: 4px 0 0; background: #fff;
border: 1px dashed #94a3b8; border-radius: 10px; touch-action: none; cursor: crosshair; }
.linkbox { margin-top: 8px; }
.linkbox .secret { font-size: 13px; overflow-wrap: anywhere; }
.logoimg { display: block; max-width: 220px; max-height: 120px; margin: 4px 0 10px; }
body.ym, body.ym-signin { --ym-deep: #083b38; --ym-mid: #0b4f4a; --ym-strong: #0f766e; --ym-accent: #0f766e; --ym-accent2: #14a394;
--ym-shadow: rgba(15, 118, 110, .28); --ym-soft: #e3f6f3; --ym-on-dark: #bfe3dd; --ym-glow: rgba(20, 184, 166, .45);
--ym-avatar: #14b8a6; --ym-signin-top: #0f766e; --ym-night: #041f1d; --ym-faint: #86b3ad; }
body.ym { --page: #f3f7f6; --ink: #13201f; --text: #263532; --muted: #66746f; --line: #e7efed; --primary: var(--ym-accent);
--primary-soft: var(--ym-soft); --radius: 20px; min-height: 100vh; }
body.ym .topbar { background: var(--ym-deep); min-height: 60px; }
body.ym .topbar h1 { font-size: 19px; font-weight: 700; letter-spacing: .01em; }
body.ym .content { padding-bottom: calc(110px + var(--bottom)); }
body.ym .card { border: 0; border-radius: 20px; padding: 18px;
box-shadow: 0 1px 2px rgba(19, 32, 31, .04), 0 10px 28px rgba(19, 32, 31, .07); }
body.ym .card h2 { font-size: 17px; font-weight: 700; }
body.ym .btn { border-radius: 14px; font-weight: 600; }
body.ym .btn.primary { border: 0; background: linear-gradient(135deg, var(--ym-accent2), var(--ym-accent));
box-shadow: 0 8px 18px var(--ym-shadow); }
body.ym .btn.ghost, body.ym .btn:not(.primary):not(.danger):not(.success):not(.sos) { background: var(--primary-soft);
border-color: transparent; color: var(--ym-strong); }
body.ym .btn.mini { min-height: 34px; padding: 4px 14px; font-size: 13px; }
body.ym .field input, body.ym .field select, body.ym .field textarea { border-radius: 12px; border-color: #d9e4e1; background: #fbfdfc; }
body.ym .plan-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; background: rgba(245, 165, 36, .2);
color: #fbbf24; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mtabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
padding: 6px 4px calc(var(--bottom) + 6px); background: rgba(255, 255, 255, .94); border-top: 1px solid #e3ebe9;
-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -6px 20px rgba(19, 32, 31, .05); }
.mtabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 2px;
border: 0; background: none; color: #85928f; font-size: 11px; font-weight: 600; cursor: pointer; }
.mtabs svg { width: 25px; height: 25px; stroke-width: 1.6; }
.mtabs .on { color: var(--ym-accent); }
.mtabs .on::before { content: ""; position: absolute; top: -6px; width: 30px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ym-accent); }
.mtabs .num { position: absolute; top: 0; left: calc(50% + 5px); min-width: 18px; padding: 0 5px; border-radius: 9px;
background: #ef4444; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; }
@media (min-width: 960px) { .mtabs { display: none; } body.ym .content { padding-bottom: 40px; }
body.ym .ym-hero { margin: -20px -28px 0; padding: 30px 40px 84px; }
body.ym .ym-hero.flat { padding-bottom: 46px; }
body.ym .ym-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 14px; margin-top: 30px; }
body.ym .card.ym-sos { margin: -58px 0 0; }
body.ym .ym-sos .panic-choices { justify-content: center; gap: 48px; }
body.ym .ym-sos .panic-round { width: 180px; }
body.ym .card.ym-family, body.ym .card.ym-status { margin-left: 0; margin-right: 0; } }
@media (max-width: 959px) { body.ym .menubtn { display: none !important; }
body.ym .fab { bottom: calc(84px + var(--bottom)); } }
.ym-hero { margin: -14px -14px 0; padding: 22px 22px 74px; border-radius: 0 0 50% 50% / 0 0 34px 34px; color: var(--ym-on-dark);
background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 18px),
repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 26px),
radial-gradient(circle at 88% 30%, var(--ym-glow), transparent 55%),
linear-gradient(180deg, var(--ym-deep) 0%, var(--ym-mid) 55%, var(--ym-strong) 100%); }
.ym-hero.flat { padding-bottom: 34px; }
.ym-hero .hello { margin: 10px 0 4px; color: #fff; font-size: 26px; font-weight: 800; line-height: 1.2; }
.ym-hero p { margin: 0; font-size: 15px; }
.card.ym-sos { position: relative; margin: -52px 4px 0; padding: 20px 14px 6px; text-align: center; }
.ym-sos .label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ym-sos .panic-choices { flex-wrap: nowrap; gap: 14px; margin: 16px 0 14px; }
.ym-sos .panic-round { width: min(38vw, 160px); min-width: 0; }
.ym-sos .panic-round b { font-size: 16px; white-space: normal; }
.ym-sos .btn { margin-bottom: 12px; }
.ym-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 8px; margin: 22px 2px 4px; }
.ym-icon { display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--ink); text-align: center;
text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ym-icon .ic { position: relative; display: flex; align-items: center; justify-content: center; width: 68px; height: 68px;
max-width: 100%; border: 1.5px solid #d9e4e1; border-radius: 20px; background: #fff; color: var(--ym-accent);
box-shadow: 0 2px 8px rgba(19, 32, 31, .04); transition: transform .08s, background .15s; }
.ym-icon .ic svg { width: 32px; height: 32px; stroke-width: 1.4; }
.ym-icon .nm { font-size: 13.5px; line-height: 1.25; }
.ym-icon:active .ic { transform: scale(.94); background: var(--ym-soft); }
.ym-icon.call .ic { color: #dc2626; }
.ym-icon .num { position: absolute; top: -7px; right: -7px; min-width: 22px; padding: 0 6px; border-radius: 11px; border: 2px solid #fff;
background: #ef4444; color: #fff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 18px; }
.card.ym-family { margin: 14px 4px 0; padding: 14px 16px 6px; }
.ym-person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.card h2 + .ym-person { border-top: 0; padding-top: 4px; }
.ym-person b { display: block; color: var(--ink); }
.ym-person .st { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.ym-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
background: linear-gradient(135deg, var(--ym-avatar), var(--ym-accent)); color: #fff; font-weight: 800; font-size: 15px; }
.ym-two { display: flex; gap: 6px; }
.card.ym-status { display: flex; align-items: center; gap: 12px; margin: 14px 4px 0; padding: 14px 16px; }
.ym-status b { display: block; color: var(--ink); font-size: 15px; }
.ym-status span:not(.dot) { font-size: 13px; color: var(--muted); }
.dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #22c55e;
box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); }
.dot.off { background: #c3c7d6; box-shadow: none; }
body.ym .helpmap { height: 300px; margin: 0 0 14px; border-radius: 20px; box-shadow: 0 10px 28px rgba(19, 32, 31, .1); overflow: hidden; }
body.ym-signin { background: radial-gradient(circle at 20% 0%, var(--ym-signin-top) 0%, var(--ym-deep) 52%, var(--ym-night) 100%) fixed; }
body.ym-signin .signin .brand b { color: #fff; }
body.ym-signin .signin .brand .muted { color: var(--ym-on-dark); }
body.ym-signin .signin .brand img { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
body.ym-signin .signin .card { border: 0; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
body.ym-signin .signin .btn.primary { border: 0; background: linear-gradient(135deg, var(--ym-accent2), var(--ym-accent)); border-radius: 14px; }
body.ym-signin .signin .btn:not(.primary) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff;
border-radius: 14px; }
body.ym-signin .signin .small { color: var(--ym-on-dark); }
body.ym-signin .signin .small a { color: #fff; }
body.ym-signin .signin .powered { color: var(--ym-faint); }
.scan-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 6px 0 12px; }
.scan-page { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.scan-page img { display: block; width: 100%; height: 160px; object-fit: contain; background: #f1f5f9; border-radius: 8px; }
.scan-no { position: absolute; top: 140px; right: 12px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.scan-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.scan-tools .btn { flex: 1 1 auto; min-width: 0; min-height: 34px; padding: 4px 8px; font-size: 13px; }
.scan-edit { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: center; gap: 10px;
padding: calc(var(--top) + 10px) 12px calc(var(--bottom) + 12px); background: #0b1220; color: #fff; }
.scan-head { width: 100%; max-width: 900px; font-size: 16px; }
.scan-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.scan-view { touch-action: none; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.scan-modes { justify-content: center; margin: 0; }
.scan-modes .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.scan-modes .chip.on { background: #fff; border-color: #fff; color: var(--ink); }
.scan-buttons { display: flex; gap: 8px; width: 100%; max-width: 520px; }
.scan-buttons .btn { flex: 1; }
.scan-edit .btn:not(.primary) { background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .25) !important;
color: #fff !important; }
.scan-page.busy img { opacity: .55; }
.scan-cam { position: fixed; inset: 0; z-index: 56; display: flex; flex-direction: column; background: #000; color: #fff; }
.cam-top { display: flex; align-items: center; gap: 10px; padding: calc(var(--top) + 10px) 14px 10px; }
.cam-link { padding: 6px 4px; border: 0; background: none; color: #fff; font-size: 16px; cursor: pointer; }
.cam-status { flex: 1; text-align: center; font-size: 14px; font-weight: 600; }
.cam-auto { padding: 5px 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 16px; background: none; color: #fff;
font-size: 13px; font-weight: 700; cursor: pointer; }
.cam-auto.on { border-color: #facc15; background: #facc15; color: #111827; }
.cam-stage { position: relative; flex: 1; min-height: 0; }
.cam-video, .cam-quad { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-video { object-fit: contain; }
.cam-quad { pointer-events: none; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.on { animation: cam-flash .35s ease-out; }
@keyframes cam-flash { from { opacity: .85; } to { opacity: 0; } }
.cam-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px calc(var(--bottom) + 18px); }
.cam-thumb { position: relative; width: 54px; height: 70px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 6px; background: #1f2937; }
.cam-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.cam-thumb[data-n]::after { content: attr(data-n); position: absolute; top: -10px; right: -10px; min-width: 22px; height: 22px;
padding: 0 5px; border-radius: 11px; background: #22c55e; color: #fff; font-size: 12px; font-weight: 700;
line-height: 22px; text-align: center; }
.cam-shutter { width: 74px; height: 74px; padding: 0; border: 5px solid #fff; border-radius: 50%; background: #fff;
box-shadow: inset 0 0 0 4px #000; cursor: pointer; }
.cam-shutter:active { transform: scale(.94); }
.cam-done { min-width: 90px; }
.conv-name { word-break: break-word; }
.conv-to-head { margin: 14px 0 8px; font-size: 14px; color: var(--muted); }
.conv-to { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.conv-to .btn { flex: 0 1 auto; }
.conv-busy { margin: 12px 0 4px; font-weight: 600; color: var(--muted); }
.conv-result { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.conv-result img { flex: none; width: 52px; height: 68px; object-fit: contain; background: #f1f5f9; border-radius: 6px; }
.conv-result .nm { flex: 1 1 160px; min-width: 0; word-break: break-word; }
.conv-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.conv-buttons .btn { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.sign-edit { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; background: #0b1220; color: #fff;
padding: var(--top) 0 var(--bottom); }
.sign-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 12px 6px; }
.sign-bar .btn { flex: 1 1 auto; max-width: 220px; }
.sign-bar .btn:not(.primary) { background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .25) !important;
color: #fff !important; }
.sign-note { padding: 0 12px 6px; text-align: center; font-size: 13px; color: #cbd5e1; }
.sign-pages { flex: 1; min-height: 0; overflow: auto; padding: 6px 12px 28px; -webkit-overflow-scrolling: touch; }
.sign-page { position: relative; width: 100%; margin: 0 auto 14px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.sign-page canvas { display: block; width: 100%; height: 100%; }
.sign-box { position: absolute; touch-action: none; outline: 2px dashed #22c55e; outline-offset: 2px; cursor: move; }
.sign-box img { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-select: none; }
.sign-x { position: absolute; top: -16px; right: -16px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 15px;
background: #ef4444; color: #fff; font-size: 20px; line-height: 30px; cursor: pointer; }
.sign-size { position: absolute; right: -14px; bottom: -14px; width: 26px; height: 26px; border: 3px solid #fff; border-radius: 13px;
background: #22c55e; touch-action: none; cursor: nwse-resize; }
.sign-sheet { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
padding: 12px 12px calc(var(--bottom) + 12px); background: rgba(2, 6, 23, .6); }
.sign-sheet .card { width: 100%; max-width: 560px; margin: 0; color: var(--text); }
.sign-saved { display: block; max-width: 100%; max-height: 140px; margin: 6px auto 12px; background: #fff;
border: 1px solid var(--line); border-radius: 10px; }
.sign-box.words { outline-color: #3b82f6; }
.sign-box.words .sign-x { top: 50%; right: auto; left: -40px; transform: translateY(-50%); }
.sign-box.words .sign-size { top: 50%; bottom: auto; right: -36px; transform: translateY(-50%); }
.sig-back { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; background: rgba(2, 6, 23, .55); }
.sig-panel { width: 100%; max-width: 760px; overflow: hidden; border-radius: 16px 16px 0 0; background: #fff; color: #0f172a;
box-shadow: 0 -10px 30px rgba(0, 0, 0, .3); padding-bottom: var(--bottom); }
@media (min-width: 800px) { .sig-back { align-items: center; } .sig-panel { border-radius: 16px; padding-bottom: 0; } }
.sig-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 14px; background: #f6f6f6;
border-bottom: 1px solid #dcdcdc; }
.sig-cancel, .sig-done { padding: 8px 4px; border: 0; background: none; color: #1473e6; font-size: 17px; font-weight: 600; cursor: pointer; }
.sig-cancel { justify-self: start; }
.sig-done { justify-self: end; }
.sig-done:disabled { color: #9ca3af; cursor: default; }
.sig-title { font-size: 16px; font-weight: 700; }
.sig-tabs { display: flex; gap: 18px; }
.sig-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border: 0; background: none;
color: #1f2937; font-size: 13px; cursor: pointer; }
.sig-tab svg { width: 26px; height: 26px; }
.sig-tab.on { color: #1473e6; }
.sig-area { position: relative; height: 220px; background: #fff; }
.sig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sig-line { position: absolute; left: 0; right: 0; top: 70%; border-top: 1.5px solid #1473e6; pointer-events: none; }
.sig-hint { position: absolute; left: 0; right: 0; top: 70%; transform: translateY(-115%); text-align: center; color: #9ca3af;
font-size: 34px; pointer-events: none; }
.sig-picture { position: absolute; left: 50%; top: 70%; max-width: 80%; max-height: 70%; transform: translate(-50%, -88%); pointer-events: none; }
.sig-clear { position: absolute; top: 6px; right: 10px; padding: 6px; border: 0; background: none; color: #1473e6; font-size: 15px;
font-weight: 600; cursor: pointer; }
.sig-keep { margin: 0 !important; padding: 12px 16px; border-top: 1px solid #e5e7eb; background: #f6f6f6; }
.sig-keep > span { color: #0f172a !important; font-size: 17px !important; }
.sig-body { padding: 16px 16px 10px; }
.sig-input { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; font-size: 22px; }
.sig-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
