:root { --ink: #183f3b; --muted: #627571; --teal: #167166; --line: #dce5df; --red: #b93d40; --background: #f3f5ef; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.5; }
button, input, select { font: inherit; }
button, select, summary, input[type="checkbox"] { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #72bdb2; outline-offset: 3px; }
.shell { max-width: 1184px; margin: 0 auto; padding: 0 32px; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 104px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; font-size: 18px; font-weight: 650; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #f4f8ef; font-size: 29px; font-weight: 400; line-height: 1; }
.brand-light { color: var(--muted); font-weight: 400; }
.header-note { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.small-dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.intro { margin: 48px 0 35px; max-width: 730px; }
.eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 650; letter-spacing: 2px; color: var(--teal); }
h1 { margin: 0 0 16px; font-size: clamp(38px, 4.8vw, 58px); font-weight: 600; line-height: 1.07; letter-spacing: -1.8px; }
.lead { max-width: 640px; margin: 0; font-size: 16px; color: var(--muted); line-height: 1.65; }
.workspace { display: grid; grid-template-columns: 1.18fr 1fr; align-items: start; gap: 24px; }
.camera-card, .settings-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 6px 24px #24473e04; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 19px; }
h2 { font-size: 17px; margin: 0; font-weight: 650; }
.camera-badge { display: flex; align-items: center; gap: 6px; border-radius: 30px; padding: 5px 9px; background: #edf2ee; font-size: 10px; color: #63716d; }
.camera-badge > span:first-child { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.camera-badge[data-state="on"] { color: #a83134; background: #fce9e8; }
.camera-badge[data-state="pending"] { color: #795817; background: #fff2d5; }
.viewfinder { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #132e2b; border-radius: 11px; display: grid; place-items: center; }
.viewfinder::before { content: ""; position: absolute; inset: 18px; border: 1px solid #c5ddd012; border-radius: 3px; pointer-events: none; }
.preview-empty { position: relative; padding: 28px; text-align: center; color: #dce5df; }
.preview-empty svg { width: 52px; height: 52px; color: #94b9ad; margin-bottom: 15px; }
.preview-empty strong { display: block; font-size: 17px; font-weight: 500; }
.preview-empty p { font-size: 12px; color: #95aea4; margin: 9px 0 0; }
video { width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); }
.live-ribbon { display: flex; gap: 7px; align-items: center; position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .8px; background: #152d2cec; color: #fff; border-radius: 5px; padding: 6px 9px; }
.live-ribbon span { width: 6px; height: 6px; border-radius: 50%; background: #ff6766; }
.live-information { margin-top: 19px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; padding-bottom: 17px; border-bottom: 1px solid #edf0ec; }
.status-line > span { color: var(--muted); }
.status-line strong { font-weight: 600; text-align: right; }
.status-line strong[data-busy="true"]::before { content: ""; display: inline-block; width: 9px; height: 9px; border: 2px solid #c8e0da; border-top-color: var(--teal); border-radius: 50%; margin-right: 7px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.metrics { display: grid; grid-template-columns: .8fr 1.1fr 1.2fr; gap: 8px; padding: 17px 0 20px; }
.metrics span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.metrics strong { font-size: 25px; font-weight: 500; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s; }
.primary-button { background: var(--teal); color: white; }
.primary-button:hover:not(:disabled) { background: #105b53; }
.primary-button:disabled { background: #dfe9e2; color: #778980; }
.stop-button { color: var(--red); background: #fff2f0; border-color: #f0d6d3; }
.stop-button:hover:not(:disabled) { background: #fce3df; border-color: #cc7772; }
.stop-button:disabled { color: #8e9a93; border-color: #e6eae5; background: #f5f6f3; }
.stop-button span { font-size: 10px; }
.stop-note { font-size: 10px; margin: 10px 3px 0; color: var(--muted); line-height: 1.6; }
.step-label { color: #81958c; letter-spacing: .5px; font-size: 9px; }
.recipient-box { display: flex; align-items: center; gap: 13px; background: #f1f6f0; padding: 14px; border-radius: 10px; margin-bottom: 21px; }
.recipient-icon { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; background: #e0ede2; border-radius: 50%; font-size: 24px; font-weight: 400; color: var(--teal); }
.recipient-box div span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.recipient-box strong { font-size: 13px; display: block; font-weight: 600; overflow-wrap: anywhere; }
.field-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
input[type="password"], select { width: 100%; min-width: 0; height: 43px; border: 1px solid #cfdcd2; border-radius: 8px; padding: 9px 12px; background: #fff; color: var(--ink); font-size: 13px; }
input:disabled, select:disabled { background: #f7f9f6; }
input::placeholder { color: #93a39b; }
.field-hint { font-size: 10px; line-height: 1.55; color: var(--muted); margin: 7px 0 18px; }
.consent-box { display: flex; align-items: flex-start; gap: 11px; margin: 23px 0 20px; padding: 14px 12px; border: 1px solid #dce6d9; border-radius: 9px; background: #fbfcf8; font-size: 11px; line-height: 1.65; cursor: pointer; }
.consent-box input { accent-color: var(--teal); flex-shrink: 0; width: 16px; height: 16px; margin: 3px 0 0; }
#begin-send { margin-top: 12px; }
.feedback { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 13px 1px 0; min-height: 18px; overflow-wrap: anywhere; }
.feedback[data-kind="error"] { color: #a82d32; background: #fff0ef; border-radius: 8px; padding: 11px 12px; }
.feedback[data-kind="success"] { color: var(--teal); }
.explanation { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 27px; margin-top: 36px; }
.number { display: block; font-size: 10px; color: #85a18c; margin-bottom: 9px; font-variant-numeric: tabular-nums; }
h3 { font-size: 13px; font-weight: 600; margin: 0 0 7px; }
.explanation p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; }
.privacy-details { margin-top: 25px; font-size: 11px; color: var(--muted); }
.privacy-details summary { color: var(--ink); padding: 10px 0; }
.privacy-details p { max-width: 900px; margin-top: 4px; line-height: 1.7; }
footer { display: flex; justify-content: space-between; gap: 16px; color: #84998b; font-size: 10px; padding: 24px 0 30px; margin-top: 18px; border-top: 1px solid var(--line); }
.activity-bar { position: fixed; z-index: 20; left: max(16px, calc((100% - 960px) / 2)); right: max(16px, calc((100% - 960px) / 2)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 2px solid #dbbcb6; border-radius: 13px; padding: 13px 16px; box-shadow: 0 6px 35px #15342d25; }
.activity-info { min-width: 0; }
.activity-info strong { display: block; font-size: 13px; color: #a83134; }
.activity-info span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.activity-bar[data-state="pending"] .activity-info strong { color: #795817; }
.activity-bar .button { width: auto; flex-shrink: 0; padding: 12px 15px; }
body:has(#activity-bar:not([hidden])) { padding-bottom: 105px; }
@media (max-width: 850px) { .workspace { grid-template-columns: 1fr; max-width: 600px; } .intro { margin-top: 34px; } .shell { max-width: 664px; padding: 0 24px; } .camera-card, .settings-card { padding: 22px; } .explanation { gap: 20px; } }
@media (max-width: 480px) { .shell { padding: 0 16px; } .masthead { height: 78px; } .brand { font-size: 15px; gap: 9px; } .brand-mark { width: 29px; height: 29px; font-size: 25px; } .header-note { display: none; } .intro { margin: 29px 0 26px; } h1 { font-size: 40px; letter-spacing: -1.3px; } .lead { font-size: 14px; } .camera-card, .settings-card { padding: 17px; border-radius: 13px; } .camera-badge { font-size: 9px; } .card-heading { gap: 6px; } h2 { font-size: 15px; } .metrics strong { font-size: 23px; } .metrics span { font-size: 9px; } .explanation { grid-template-columns: 1fr; gap: 23px; } footer { flex-direction: column; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
