:root { --blue: #0b4f8a; --red: #d62828; --bg: #f3f5f8; --card: #fff; --line: #dde3ea; --muted: #66727f; --ok: #1d7a3a; --warn: #a86400; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #1c2430; background: var(--bg); }
a { color: var(--blue); }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: Consolas, monospace; }
.err { background: #fde8e8; color: #8a1111; padding: 8px 12px; border-radius: 6px; }
.warn { background: #fff4e0; color: var(--warn); padding: 6px 10px; border-radius: 6px; }
.tag { background: #eef; color: #335; font-size: 11px; padding: 1px 6px; border-radius: 8px; }
.top { display: flex; align-items: center; gap: 16px; padding: 8px 16px; background: var(--blue); color: #fff; flex-wrap: wrap; }
.top a { color: #fff; text-decoration: none; } .top .brand { font-weight: 700; font-size: 16px; }
.top nav { display: flex; gap: 14px; flex: 1; } .top .who { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 12px; }
button.link { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; }
main { padding: 12px; max-width: 1500px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.card.tight { padding: 10px 12px; } .card h2, .card h3 { margin: 0 0 8px; } .card h3 { font-size: 14px; margin-top: 10px; }
.card.narrow { max-width: 420px; margin: 40px auto; } .center { text-align: center; }
.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .span2 { grid-column: span 2; }
@media (max-width: 900px) { .cols, .cols3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; } .grid2 .span2 { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 6px; color: #1c2430; }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid #c4ccd6; border-radius: 6px; background: #fff; color: #1c2430; min-width: 0; }
textarea { width: 100%; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row input { flex: 1; }
.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; } .btn.small { padding: 5px 10px; font-size: 13px; } .btn.tiny { padding: 2px 8px; font-size: 12px; }
.btn.ghost { background: #e8edf3; color: #1c2430; } .btn.danger { background: var(--red); } .btn.big { font-size: 18px; padding: 12px 24px; }
.tbl { width: 100%; border-collapse: collapse; } .tbl th, .tbl td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; } .tbl tr.off td { color: #aab; }
.tbl.perms select { padding: 2px 4px; font-size: 12px; } form.inline { display: inline-flex; gap: 4px; margin: 0; }
.filters h2 { margin: 0 12px 0 0; } .filters input { max-width: 460px; } .filters { margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 3px 10px; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery figure { margin: 0; } .gallery img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.gallery figcaption { font-size: 12px; color: var(--muted); }
.logo { max-height: 50px; max-width: 220px; } .plain { list-style: none; padding: 0; margin: 0; }
progress.meter { width: 100%; height: 12px; }
.pill { font-size: 12px; padding: 3px 8px; border-radius: 10px; background: #e8edf3; } .pill.ok { background: #e3f4e8; color: var(--ok); }
.pill.warn { background: #fff4e0; color: var(--warn); } .pill.bad { background: #fde8e8; color: #8a1111; } .pill.rec { background: #fde8e8; color: var(--red); font-weight: 700; }
.btn.banner { position: fixed; left: 50%; top: 60px; transform: translateX(-50%); z-index: 50; background: var(--warn); box-shadow: 0 4px 18px rgba(0,0,0,.25); }

/* tech's call page */
.livegrid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; }
@media (max-width: 1000px) { .livegrid { grid-template-columns: 1fr; } }
.stage { position: relative; background: #000; border-radius: 8px; height: calc(100vh - 170px); min-height: 360px; overflow: hidden; touch-action: none; cursor: crosshair; }
.stage.drawing { cursor: cell; }
.stage video, .stage .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage video { object-fit: contain; } .stage .layer { pointer-events: none; }
.overlaymsg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #cfd8e3; font-size: 18px; text-align: center; padding: 30px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; } .toolbar .grow { flex: 1; } .toolbar .sep { width: 10px; }
.hint { margin: 4px 0 0; font-size: 12px; } .side { display: flex; flex-direction: column; gap: 10px; }
.side input { width: 100%; } .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs img { width: 100%; height: 70px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }

/* customer's phone page */
body.cust { background: #0f1720; color: #fff; font-size: 18px; min-height: 100vh; }
.cscreen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 18px; gap: 14px; }
.cscreen h1 { font-size: 26px; margin: 0; } .cscreen .big { font-size: 19px; max-width: 460px; margin: 0; }
.cscreen ol { text-align: left; } .clogo { max-width: 240px; max-height: 80px; }
.consent { font-size: 15px; color: #c9d3de; max-width: 420px; margin: 0; }
.cbtn { background: #1f9d55; color: #fff; border: 0; border-radius: 14px; font: inherit; font-size: 24px; font-weight: 700; padding: 18px 40px; min-width: 240px; }
.cbtn:disabled { opacity: .5; } .cbtn.small { font-size: 16px; padding: 12px 10px; min-width: 0; flex: 1; border-radius: 10px; background: #2b3a4a; }
.cbtn.danger { background: var(--red); }
.cscreen.call { padding: 0; gap: 0; justify-content: flex-start; }
.cstage { position: relative; width: 100%; flex: 1; min-height: 60vh; background: #000; }
.cstage video, .cstage .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.cstage video { object-fit: contain; transform: none !important; } .cstage .layer { pointer-events: none; }
.cstatus { width: 100%; padding: 10px 14px; font-size: 16px; background: #16212d; }
.cbar { display: flex; gap: 8px; width: 100%; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: #16212d; }
