:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #263340; background: #f5f6f9; --coral: #c94037; --blue: #2868b5; --muted: #5d6c7d; --line: #e5e8ed; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.topbar { height: 84px; padding: 0 max(32px, calc((100vw - 1240px)/2)); display: flex; align-items: center; gap: 36px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { display: grid; place-items: center; height: 38px; width: 38px; border-radius: 9px; background: var(--coral); }
.mark svg { height: 25px; width: 25px; stroke: #fff; stroke-width: 1.7; }
h1 { font-size: 20px; font-weight: 750; letter-spacing: -.6px; line-height: 1.15; margin: 0; }
h1 span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .2px; }
.workspace-label { border-left: 1px solid var(--line); padding-left: 28px; color: #5d6c7d; font-size: 13px; }
.badge { display: flex; gap: 7px; align-items: center; margin-left: auto; color: #5e6975; font-size: 12px; }
.badge i { width: 6px; height: 6px; background: #7191b8; border-radius: 50%; }
main { max-width: 1240px; margin: auto; padding: 38px 32px 22px; }
.intro { margin-bottom: 28px; }
.eyebrow { font-size: 10px; color: var(--coral); letter-spacing: 1.7px; font-weight: 750; margin: 0 0 12px; }
.intro h2 { margin: 0 0 11px; font-size: clamp(28px, 3vw, 36px); letter-spacing: -1.2px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.intro p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.console { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.session-sidebar { min-width: 0; padding: 25px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 10px #24314603; }
.section-title { display: flex; align-items: center; gap: 9px; }
.section-title h2 { font-size: 14px; font-weight: 650; margin: 0; letter-spacing: -.2px; }
.step-number { display: grid; place-items: center; height: 24px; width: 24px; flex-shrink: 0; background: #fbece9; border-radius: 6px; color: #b3352e; font-size: 10px; font-weight: 750; }
.step-number.blue { color: var(--blue); background: #ecf2fa; }
.section-description { margin: 12px 0 20px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.controls { display: flex; flex-direction: column; gap: 9px; }
button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 42px; border: 1px solid transparent; border-radius: 6px; padding: 11px 14px; font: inherit; font-size: 12px; font-weight: 650; background: var(--coral); color: #fff; cursor: pointer; transition: background .15s, box-shadow .15s; }
button:hover { background: #b3352e; }
button span { font-size: 16px; line-height: 1; }
button.secondary { background: #fff; border-color: #dce1e7; color: #4e5d6d; }
button.secondary:hover { background: #f7f8fa; }
button.end-button { min-height: 34px; padding: 7px 12px; color: #a3423e; }
button:disabled { background: #f4f5f7; color: #a8afb7; border-color: #eceef1; cursor: default; }
button.join-button { margin-top: 12px; background: var(--blue); }
button.join-button:hover { background: #1d5596; }
button.join-button:disabled { background: #f4f5f7; color: #a8afb7; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #4d5a68; font-weight: 650; margin: 0 0 8px; }
.optional { color: #5d6c7d; font-weight: 400; font-size: 10px; }
input { width: 100%; min-width: 0; border: 1px solid #8190a0; border-radius: 6px; padding: 12px; background: #fff; color: #2d3946; font: inherit; font-size: 12px; }
input::placeholder { color: #5d6c7d; }
#invite { margin-top: 22px; }
#code, #join-code { text-align: center; font-variant-numeric: tabular-nums; font-size: 26px; letter-spacing: 7px; font-weight: 650; padding-left: 19px; }
#code { background: #fff6f4; border-color: #f1d7d2; color: var(--coral); }
#name-form { margin-top: 19px; }
.save-button { margin-top: 9px; min-height: 34px; padding: 8px 12px; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
#status { margin: 16px 0 0; color: #687583; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.join-section { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); }
.privacy-note { display: flex; align-items: center; gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.privacy-note svg { flex-shrink: 0; width: 22px; height: 22px; stroke: #87a2bf; stroke-width: 1.4; }
.privacy-note p { font-size: 10px; line-height: 1.7; color: #5d6c7d; margin: 0; }
.viewer { min-width: 0; border: 1px solid #dfe4eb; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 5px 20px #24314604; }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.viewer-head > div { display: flex; align-items: center; gap: 9px; }
.viewer-head h2 { margin: 0; font-size: 12px; font-weight: 650; }
.viewer-dot { height: 6px; width: 6px; border-radius: 50%; background: #a7b2bf; }
.viewer-state { color: #5d6c7d; font-size: 10px; background: #f5f6f8; border: 1px solid #eceff3; border-radius: 4px; padding: 5px 8px; }
.viewer-state::before { content: "Awaiting screen"; }
.screen-stage { position: relative; min-height: 380px; aspect-ratio: 16/10; background: radial-gradient(ellipse at center, #fff 15%, #f4f6f9 100%); }
.empty-screen { display: flex; min-height: inherit; height: 100%; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.screen-illustration { height: 85px; width: 100px; display: grid; place-items: center; margin-bottom: 16px; }
.screen-illustration svg { width: 88px; height: 72px; stroke: #a5b6c9; stroke-width: 1.8; }
.screen-arrow { stroke: #cf645a; }
.empty-screen h3 { margin: 0; font-size: 18px; font-weight: 550; letter-spacing: -.4px; color: #485a70; }
.empty-screen p { margin: 12px 0 21px; color: #5d6c7d; font-size: 12px; line-height: 1.8; }
.empty-caption { color: #5d6c7d; font-size: 10px; letter-spacing: .1px; }
video { display: none; width: 100%; height: 100%; aspect-ratio: 16/10; min-height: 380px; object-fit: contain; background: #18212d; }
.viewer.is-connected video { display: block; }
.viewer.is-connected .empty-screen { display: none; }
.viewer.is-connected .viewer-dot { background: #3b9673; }
.viewer.is-connected .viewer-state { color: #287554; background: #f0f8f3; border-color: #d6ebe0; }
.viewer.is-connected .viewer-state::before { content: "Screen connected"; }
.viewer-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); color: #5d6c7d; font-size: 9px; }
.footer-dot { display: inline-block; height: 5px; width: 5px; margin-right: 5px; border-radius: 50%; background: #83a0bf; vertical-align: 1px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; color: #5d6c7d; font-size: 10px; }
footer > span:first-child { font-weight: 650; color: #5d6c7d; }
.footer-separator { padding: 0 10px; color: #c7cdd5; }
body[data-role="customer"] .viewer { display: none; }
body[data-role="customer"] .console { display: block; max-width: 420px; margin: auto; }
body[data-role="customer"] .intro { text-align: center; }
body[data-role="customer"] .session-tools .section-title, body[data-role="customer"] .session-tools .section-description { display: none; }
@media (max-width: 800px) { .console { grid-template-columns: 260px minmax(0,1fr); gap: 16px; } .session-sidebar { padding: 20px 18px; } main { padding: 28px 20px; } .topbar { padding: 0 20px; } .workspace-label { display: none; } .screen-stage, video { min-height: 330px; } .viewer-footer > span:last-child { display: none; } }
@media (max-width: 640px) { .topbar { height: 72px; } main { padding: 25px 16px 20px; } .console { grid-template-columns: minmax(0,1fr); } .screen-stage, video { min-height: 260px; } .session-sidebar { padding: 22px; } .viewer { margin-top: 5px; } footer { align-items: flex-start; } footer > span:last-child { text-align: right; max-width: 210px; line-height: 1.6; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }

.support-area { min-width: 0; }
.chat-panel { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.chat-header h2 { margin: 0; font-size: 14px; font-weight: 650; }
.chat-header span { color: #5d6c7d; font-size: 10px; }
#chat-log { max-height: 250px; overflow-y: auto; overflow-wrap: anywhere; }
.chat-message { border-left: 2px solid var(--blue); padding: 8px 12px; margin-bottom: 12px; background: #f5f7fa; border-radius: 0 5px 5px 0; }
.chat-message.own { border-color: var(--coral); background: #fff6f4; }
.chat-message strong { font-size: 10px; color: #5d6c7d; }
.chat-message p { font-size: 13px; line-height: 1.6; white-space: pre-wrap; margin: 5px 0 0; }
#chat-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; margin-top: 12px; }
#chat-form label { grid-column: 1/-1; margin: 0; }
textarea { min-width: 0; width: 100%; resize: vertical; border: 1px solid #8190a0; border-radius: 6px; padding: 12px; color: #263340; background: #fff; font: inherit; font-size: 12px; line-height: 1.5; }
textarea::placeholder { color: #5d6c7d; }
textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
#chat-send { align-self: end; width: auto; background: var(--blue); }
#chat-send:hover { background: #1d5596; }
#chat-send:disabled { background: #f4f5f7; color: #a8afb7; }
#chat-status, #chat-connection { color: #5d6c7d; font-size: 10px; line-height: 1.7; margin: 12px 0 0; }
@media (max-width: 640px) { #chat-form { grid-template-columns: minmax(0,1fr); } #chat-send { width: 100%; } }

.account-controls { margin-left:auto; display:flex; align-items:center; gap:16px; font-size:12px; color:var(--muted); min-width:0; }
.account-controls span { overflow-wrap:anywhere; max-width:240px; }
.account-controls button { width:auto; min-height:34px; padding:7px 14px; flex-shrink:0; }
.login-main { max-width:500px; padding-top:70px; }
.login-card { padding:28px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 8px 32px #24314606; }
.login-card label:not(:first-child) { margin-top:20px; }
.login-card button { margin-top:24px; }
#login-status { color:var(--muted); font-size:12px; line-height:1.7; min-height:20px; }
.login-help { color:var(--muted); font-size:11px; line-height:1.6; border-top:1px solid var(--line); padding-top:18px; margin:18px 0 0; }
.customer-link { display:block; margin-top:24px; text-align:center; color:var(--blue); font-size:12px; text-decoration:none; line-height:1.7; }
a:focus-visible { outline:3px solid var(--blue);outline-offset:3px; }
#technician-identity { font-size:12px; line-height:1.7; color:var(--muted); overflow-wrap:anywhere; }
body[data-page="customer"] .join-section { margin-top:0; padding-top:0; border-top:0; }
@media(max-width:640px) { .account-controls {gap:8px;} .account-controls span {max-width:100px;font-size:10px;} .account-controls button {font-size:10px;padding:7px 8px;} .login-main {padding-top:36px;} }

.nav-link { color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 650; }
.nav-link:hover { text-decoration: underline; }
.history-card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:28px; box-shadow:0 4px 18px #26334004; }
.history-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.history-heading h2,.history-detail h2 { font-size:16px; margin:0 0 8px; }
.history-heading p,.history-detail p { color:var(--muted); font-size:12px; line-height:1.6; }
.history-heading button { width:auto; }
.history-filters { display:grid; grid-template-columns:2fr 1.2fr 1.2fr auto auto; gap:14px; align-items:end; margin-top:24px; padding-bottom:22px; border-bottom:1px solid var(--line); }
.history-filters input { margin:0; }
.history-filters button { min-height:42px; }
#history-status { color:var(--muted); font-size:12px; min-height:20px; margin:20px 0; }
.history-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; }
.history-row { display:grid; grid-template-columns:minmax(0,1.8fr) 1.2fr 1fr; gap:16px; align-items:center; border-bottom:1px solid var(--line); padding:18px 0; font-size:12px; }
.history-session-link { background:transparent; color:var(--blue); border:0; text-align:left; justify-content:flex-start; padding:0; min-height:24px; font-size:13px; overflow-wrap:anywhere; }
.history-session-link:hover { background:transparent; text-decoration:underline; }
.history-technician { display:block; color:var(--muted); margin-top:5px; overflow-wrap:anywhere; }
.history-row time { color:var(--muted); line-height:1.6; }
.history-state { font-size:11px; color:#4d627b; }
.history-detail { background:#f8f9fb; border:1px solid var(--line); padding:22px; border-radius:8px; overflow-wrap:anywhere; }
.history-detail h3 { font-size:14px; line-height:1.5; }
.history-id { font-size:10px!important; }
.history-timeline { list-style:none; padding:0; margin:24px 0 0; }
.history-timeline li { position:relative; padding:0 0 20px 18px; border-left:1px solid #dce2ea; font-size:11px; }
.history-timeline li:before { content:''; position:absolute; width:7px; height:7px; left:-4px; top:4px; background:var(--coral); border-radius:50%; }
.history-timeline time,.history-timeline span { display:block; margin-top:6px; color:var(--muted); line-height:1.6; }
.history-pagination { display:flex; justify-content:space-between; gap:12px; margin-top:20px; }
.history-pagination button { width:auto; }
@media(max-width:1000px) { .history-filters { grid-template-columns:1fr 1fr; }.history-filters>div:first-child { grid-column:1/-1; }.history-layout { grid-template-columns:1fr; } }
@media(max-width:600px) { .history-card { padding:18px; }.history-filters { grid-template-columns:1fr; }.history-row { grid-template-columns:1fr; gap:8px; }.history-heading { align-items:flex-start; }.history-heading p { max-width:190px; }body[data-page="history"] .workspace-label { display:none; }body[data-page="history"] .account-controls { gap:8px; }body[data-page="history"] .account-controls>span { display:none; } }
