/* Public device-local video recording. Made by Duhyun, Kim / Datetime 1 Nov 2026. */
/* Mobile clip controls use a full touch target without splitting the local-storage note. */
@media(max-width:560px){.dc-library .dc-library-note{max-width:none;white-space:nowrap}.dc-clips .dc-clip-actions .dc-icon{width:44px;height:44px}}
.dashcam-page{max-width:1280px;padding-top:30px;padding-bottom:24px}.dc-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}.dc-heading h1{font-size:29px;letter-spacing:-1px;margin:8px 0}.dc-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}.dc-test{display:inline-block;padding:4px 8px;background:#e8eeff;color:#244fba;border-radius:6px;font-size:11px;font-weight:700;letter-spacing:.02em}.dc-local{display:flex;align-items:center;gap:6px;white-space:nowrap;color:var(--muted);font-size:12px}.dc-local svg,.dc-placeholder svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.dc-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:20px;align-items:start}.dc-camera-card{min-width:0}.dc-stage{position:relative;aspect-ratio:16/9;background:#070c13;border:1px solid #202938;border-radius:16px;overflow:hidden;color:#fff}.dc-stage canvas{display:block;width:100%;height:100%;object-fit:contain}.dc-stage-top,.dc-stage-bottom{position:absolute;inset:16px 16px auto;display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none}.dc-state{display:inline-flex;align-items:center;gap:6px;background:#182332d9;border:1px solid #ffffff28;border-radius:100px;padding:6px 10px;font-size:11px;font-weight:650}.dc-state.is-recording{background:#a92126;border-color:#ff8589}.dc-state.is-recording::before{content:"";width:6px;height:6px;border-radius:100%;background:#fff;animation:dc-pulse 1.4s infinite}.dc-timer{font:600 14px ui-monospace,monospace;font-variant-numeric:tabular-nums;padding:5px 8px;border-radius:6px;background:#080e19a8}.dc-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:40px 20px;text-align:center;background:radial-gradient(ellipse at center,#172335,#080d16);pointer-events:none}.dc-placeholder svg{width:44px;height:44px;margin-bottom:5px;stroke:#93a9cb}.dc-placeholder strong{font-size:16px;font-weight:600}.dc-placeholder span{font-size:12px;color:#a0aec2;line-height:1.6}.dc-stage-top,.dc-stage-bottom{z-index:1}.dc-stage-bottom{inset:auto 16px 13px;align-items:flex-end}.dc-stage-bottom>span:first-child{font-size:11px;line-height:1.5;white-space:pre-line;padding:5px 7px;background:#080e19a8;border-radius:6px;max-width:78%;overflow-wrap:anywhere}.dc-speed{display:flex;gap:5px;align-items:baseline;text-shadow:0 1px 3px #000}.dc-speed b{font:500 32px ui-monospace,monospace;font-variant-numeric:tabular-nums}.dc-speed small{font-size:10px}.dc-controls{display:flex;align-items:center;gap:9px;padding-top:14px}.dc-controls button{min-height:46px;font-size:13px;border-radius:10px;gap:9px;white-space:nowrap}.dc-record{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-width:139px;background:var(--accent);color:#fff;border:1px solid transparent;padding:12px 18px;font-weight:650}.dc-record:hover:enabled{filter:brightness(1.08)}.dc-record-dot{width:9px;height:9px;border-radius:50%;background:currentColor}.dc-stop{padding:11px 15px}.dc-stop.is-active{border-color:#c6545c;color:#be2636}.dc-screen{color:var(--muted);font-size:11px;margin-inline-start:auto;line-height:1.5;text-align:end}.dc-panel{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px}.dc-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.dc-section-head h2{font-size:16px;font-weight:650;margin:0;letter-spacing:-.3px}.dc-section-head>span{font-size:11px;color:var(--muted)}.dc-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 10px;border:0;padding:0;margin:0;min-width:0}.dc-fields>label:not(.dc-check){display:grid;gap:7px;color:var(--muted);font-size:12px;min-width:0}.dc-fields select{width:100%;min-width:0;min-height:42px;border:1px solid var(--line);border-radius:8px;padding:8px;color:var(--text);background:var(--input);font-size:12px}.dc-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.6;color:var(--text);cursor:pointer}.dc-check input{width:17px;height:17px;flex-shrink:0;margin:2px 0 0;accent-color:var(--accent)}.dc-check-hint{display:block;color:var(--muted);font-size:10px;margin-top:2px}.dc-rotation{grid-column:1/-1;padding-top:13px;border-top:1px solid var(--line)}.dc-consent{margin:18px 0 8px;padding:13px 11px;background:var(--input);border-radius:9px;border:1px solid var(--line);font-weight:600}.dc-footnote{font-size:11px;color:var(--muted);line-height:1.7;margin:10px 0 0}.dc-message{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere;min-height:1.6em}.dc-message:empty{margin-top:0;min-height:0}.dc-message.is-error{color:#b42336}.dc-rescue{background:#fff7e8;border:1px solid #ebca84;color:#7b4d0b;border-radius:11px;padding:14px;margin-top:12px;font-size:12px}.dc-rescue p{margin:5px 0 10px}.dc-rescue button{font-size:12px;margin:4px 5px 0 0;min-height:40px}.dc-library{margin-top:22px}.dc-library .dc-section-head{margin-bottom:14px}.dc-section-head p{margin:6px 0 0;font-size:11px;color:var(--muted)}.dc-storage-track{height:4px;background:var(--input);border-radius:4px;overflow:hidden;margin-bottom:5px}.dc-storage-track span{display:block;width:0;height:100%;background:var(--accent);transition:width .2s}.dc-empty{font-size:13px;color:var(--muted);text-align:center;padding:27px 10px;margin:0}.dc-clip{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid var(--line);min-width:0}.dc-clip:last-child{border:0}.dc-clip-symbol{width:43px;height:43px;flex-shrink:0;display:grid;place-items:center;background:var(--input);border:1px solid var(--line);border-radius:10px;color:var(--muted)}.dc-clip-symbol svg,.dc-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.dc-clip-info{min-width:0;flex:1}.dc-clip-info strong{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}.dc-clip-info small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.dc-clip-actions{display:flex;gap:6px;flex-shrink:0}.dc-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:9px;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:21px}.dc-icon:hover:enabled{background:var(--input);color:var(--text)}.dc-icon.is-protected{color:var(--accent);border-color:var(--accent);background:var(--input)}.dc-help{padding:0 2px;margin:15px 0 0;color:var(--muted)}.dc-help summary{font-size:12px;padding:10px 0;min-height:40px}.dc-help p{font-size:11px;line-height:1.8;margin:5px 0}.dc-preview{width:min(900px,calc(100vw - 24px));max-width:none;border:1px solid var(--line);border-radius:16px;padding:18px;background:var(--card);color:var(--text);box-shadow:0 20px 80px #0005}.dc-preview::backdrop{background:#07101cc9}.dc-preview video{display:block;width:100%;max-height:72vh;background:#070c13;border-radius:9px}.dc-preview p{font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin:10px 0 0}.dc-preview .dc-section-head{margin-bottom:12px}.dc-preview .dc-icon{border:0;width:34px;height:34px}.dc-clips button:focus-visible,.dc-fields select:focus-visible,.dc-check input:focus-visible,.dc-controls button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}@keyframes dc-pulse{50%{opacity:.3}}@media(prefers-reduced-motion:reduce){.dc-state.is-recording::before{animation:none}.dc-storage-track span{transition:none}}@media(max-width:880px){.dc-layout{grid-template-columns:minmax(0,1fr)}.dc-settings{padding:18px}.dc-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.dc-check{grid-column:span 2}.dc-rotation{grid-column:1/-1}.dc-consent{margin-top:14px}.dc-library{margin-top:18px}}@media(max-width:560px){.dashcam-page{padding:22px 14px}.dc-heading{margin-bottom:18px;gap:10px;align-items:flex-start}.dc-heading h1{font-size:24px}.dc-heading p{font-size:12px}.dc-local{font-size:10px;margin-top:5px;gap:4px}.dc-local svg{width:14px;height:14px}.dc-test{font-size:10px}.dc-stage{border-radius:12px}.dc-stage-top{inset:11px 11px auto}.dc-stage-bottom{inset:auto 10px 9px}.dc-state{font-size:10px;padding:5px 8px}.dc-timer{font-size:12px}.dc-stage-bottom>span:first-child{font-size:9px;max-width:78%;padding:4px 5px}.dc-speed b{font-size:25px}.dc-speed small{font-size:9px}.dc-placeholder strong{font-size:14px}.dc-placeholder span{font-size:10px}.dc-placeholder svg{width:33px;height:33px}.dc-controls{flex-wrap:wrap;gap:8px;padding-top:12px}.dc-controls button{flex:1;min-height:46px;min-width:0}.dc-screen{flex-basis:100%;text-align:center;margin:0;font-size:10px}.dc-fields{grid-template-columns:1fr 1fr;gap:15px 10px}.dc-fields .dc-check{grid-column:auto}.dc-fields .dc-rotation{grid-column:1/-1}.dc-panel{padding:16px;border-radius:12px}.dc-section-head h2{font-size:15px}.dc-library-note{max-width:95px;text-align:end;line-height:1.5}.dc-clip{gap:9px;flex-wrap:wrap}.dc-clip-symbol{width:36px;height:36px}.dc-clip-info strong{font-size:11px}.dc-clip-actions{margin-inline-start:auto;gap:5px}.dc-icon{width:37px;height:37px}.dc-clip-info{min-width:140px}.dc-consent{font-size:11px}.dc-preview{padding:12px}.dc-library .dc-footnote{font-size:10px}}
/* Small permission states stay beside the existing SingoQ controls and usage. */
.dc-screen-status{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:34px;margin-inline-start:auto;color:var(--muted)}.dc-screen-status>svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.dc-screen-status .dc-screen{margin:0;min-width:0;flex-basis:auto}.dc-screen-status.is-active,.dc-persistence-status.is-active{color:var(--accent)}.dc-screen-status.is-warning,.dc-persistence-status.is-warning{color:var(--amber)}.dc-screen-status.is-active .dc-screen,.dc-screen-status.is-warning .dc-screen{color:inherit}.dc-screen.is-active,#dashcamPersistenceState.is-active{color:var(--accent)}.dc-screen.is-warning,#dashcamPersistenceState.is-warning{color:var(--amber)}.dc-controls .dc-permission-retry,.dc-permission-retry{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;min-width:34px;height:34px;min-height:34px;padding:7px;border:1px solid var(--line);border-radius:8px;background:transparent;color:inherit;cursor:pointer}.dc-permission-retry svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.dc-permission-retry:hover:enabled{background:var(--input)}.dc-permission-retry:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.dc-library .dc-section-head>div{min-width:0;flex:1}.dc-storage-meta{display:flex;align-items:center;flex-wrap:wrap;gap:2px 12px;min-height:34px}.dc-storage-meta>p{flex-shrink:1;max-width:100%;overflow-wrap:anywhere}.dc-persistence-status{display:inline-flex;align-items:center;gap:5px;min-height:34px;font-size:10px;line-height:1.5;color:var(--muted)}.dc-persistence-status .dc-permission-retry{width:30px;min-width:30px;height:30px;min-height:30px;padding:6px}@media(max-width:560px){.dc-screen-status{flex-basis:100%;justify-content:center;min-height:34px;margin:0}.dc-screen-status .dc-screen{font-size:10px;text-align:center;flex-basis:auto}.dc-storage-meta{gap:0 8px}.dc-storage-meta>p{margin-top:4px}.dc-persistence-status{font-size:9px}.dc-controls .dc-permission-retry{flex:none;width:34px;min-width:34px;height:34px;min-height:34px}.dc-screen-status.is-warning,.dc-persistence-status.is-warning{color:var(--amber)}}
/* Keep both permission retry touch targets steady on mobile. */
@media(max-width:560px){.dc-screen-status,.dc-storage-meta,.dc-persistence-status{min-height:44px}.dc-controls .dc-permission-retry,.dc-persistence-status .dc-permission-retry{width:44px;min-width:44px;height:44px;min-height:44px;padding:12px}}
/* Reserve usage and permission status as separate mobile rows before retries appear. */
.dc-fields .dc-check>span{word-break:keep-all;overflow-wrap:anywhere}@media(max-width:560px){.dc-storage-meta{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;align-items:start}.dc-storage-meta>p{min-height:16px;margin:4px 0 0}.dc-storage-meta .dc-persistence-status{min-width:0;min-height:44px;align-self:start}}
/* The capture dimensions drive the preview ratio; the camera view stays bounded. */
.dc-stage{aspect-ratio:var(--dc-stage-ratio,16/9);max-height:72dvh}.dc-stage-tools{display:inline-flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}.dc-orientation{font-size:10px;line-height:1.4;color:#d7e2f2;padding:4px 6px;border-radius:5px;background:#080e19a8;white-space:nowrap}.dc-stage-tool{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:12px;border:1px solid #ffffff3d;border-radius:9px;background:#080e19cc;color:#fff;pointer-events:auto}.dc-stage-tool svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.dc-stage-tool:hover:enabled{background:#263d59}.dc-stage-tool:focus-visible{outline:3px solid #8db7ff;outline-offset:2px}@media(max-width:560px){.dc-stage-tools{gap:4px}.dc-orientation{font-size:9px;padding:4px}.dc-stage-top{inset:8px 8px auto}.dc-stage-tool{width:44px;min-width:44px;height:44px;min-height:44px}.dc-stage{max-height:68dvh}}@media(orientation:landscape) and (min-width:760px) and (max-height:520px){.dc-layout{grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr)}.dashcam-page{padding-top:14px}.dc-heading{margin-bottom:14px}.dc-stage{max-height:58dvh}}
/* A capped portrait preview keeps the full camera column and readable overlays. */
.dc-stage{width:100%}.dc-state{white-space:nowrap;flex-shrink:0}@media(orientation:landscape) and (min-width:760px) and (max-height:520px){.dc-settings .dc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.dc-settings .dc-fields>.dc-check{grid-column:auto}.dc-settings .dc-fields>.dc-rotation{grid-column:1/-1}}

/* Translated controls fit narrow screens; machine-readable values stay in order. */
.dc-heading>div{min-width:0}.dc-heading h1,.dc-heading p,.dc-settings label,.dc-check>span,.dc-help p{overflow-wrap:anywhere}
.dc-local{white-space:normal;max-width:34%;line-height:1.5}.dc-local svg{flex-shrink:0}
.dc-controls{flex-wrap:wrap}.dc-controls>.dc-record,.dc-controls>.dc-stop{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%;text-align:center}
.dc-screen-status{min-width:0;max-width:100%;flex:1 1 180px}.dc-screen{overflow-wrap:anywhere}.dc-screen-status>svg,.dc-record-dot{flex-shrink:0}
.dc-stage-top{align-items:flex-start}.dc-state{max-width:43%;white-space:normal;overflow-wrap:anywhere;flex-shrink:1;min-width:0}.dc-stage-tools{max-width:68%;flex-wrap:wrap}.dc-orientation{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%}
.dc-library .dc-library-note{white-space:normal;overflow-wrap:anywhere;max-width:35%}.dc-persistence-status{min-width:0;max-width:100%}.dc-persistence-status>span{overflow-wrap:anywhere;min-width:0}
.dc-timer,.dc-speed,.dc-clip-info strong,#dashcamUsage,#dashcamGps{direction:ltr;unicode-bidi:isolate}.dc-timer,.dc-speed{white-space:nowrap}
.dc-clip-info strong{text-align:start}.dc-clip-info small{overflow-wrap:anywhere}.dc-check-hint{letter-spacing:normal}
@media(max-width:560px){.dc-heading{flex-wrap:wrap}.dc-heading>div{flex:1 1 190px}.dc-local{max-width:100%;margin:0}.dc-controls>.dc-record,.dc-controls>.dc-stop{flex:1 1 120px;padding:11px 10px}.dc-screen-status{flex-basis:100%}.dc-library .dc-section-head{flex-wrap:wrap}.dc-library .dc-library-note{max-width:100%;text-align:start}.dc-stage-tools{gap:3px;max-width:67%}.dc-orientation{max-width:calc(100% - 48px)}.dc-state{max-width:40%}}
@media(max-width:560px){.dc-placeholder{gap:5px;padding:50px 12px 32px}.dc-placeholder svg{display:none}.dc-placeholder strong{font-size:13px;line-height:1.4}.dc-placeholder span{font-size:10px;line-height:1.5}.dc-clip-info{min-width:0;flex:1 1 130px}.dc-clip-actions{flex-wrap:wrap;max-width:100%}}
/* Small phones use one settings column instead of breaking long translated words. */
html:not([lang="ko"]) .dc-fields .dc-check>span{word-break:normal;hyphens:auto}
@media(max-width:360px){.dc-fields{grid-template-columns:minmax(0,1fr)}.dc-fields>.dc-check,.dc-fields>.dc-rotation{grid-column:1/-1}.dc-fields select{font-size:12px}.dc-library .dc-section-head>div{flex-basis:100%}.dc-library .dc-library-note{max-width:100%;margin-top:0}.dc-storage-meta{grid-template-columns:minmax(0,1fr)}}
#dashcamLimit,.dc-clip-info small{direction:ltr;unicode-bidi:isolate;text-align:start}
/* Measured output dimensions stay outside the camera controls and wrap at 320px. */
.dc-recording-quality{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
