/* MrHow application tokens. The app chrome never enters the source canvas. */
:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #282b31; background: #e9ecf0; font-size: 13px; font-synthesis: none;
  --accent: #425bd3; --accent-hover: #344abd; --accent-soft: #edf0fc;
  --surface: #f4f5f7; --canvas: #e9ecf0; --line: #dce0e7; --muted: #747b86;
  --ink: #282b31; --record: #df485b; --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body[data-booting] > .app-toolbar, body[data-booting] > .app-body { visibility: hidden; }
.startup-error { margin: auto; padding: 28px; text-align: center; color: var(--muted); }
.phone-workspace { height: auto; min-height: 100dvh; overflow: auto; background: #f5f6f9; }
.mobile-welcome { min-height: 100dvh; display: flex; flex-direction: column; padding: max(28px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom)); }
.mobile-wordmark { font-size: 22px; font-weight: 600; letter-spacing: -.85px; color: #303745; }
.mobile-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(100%, 410px); margin: 24px auto 48px; text-align: center; }
.mobile-mascot { display: block; width: min(300px, 75vw); height: auto; aspect-ratio: 1; object-fit: contain; margin-bottom: 16px; transform-origin: 50% 78%; animation: mobile-wave 4.5s ease-in-out infinite; }
.mobile-content h1 { font-size: clamp(27px, 7vw, 34px); font-weight: 550; letter-spacing: -1px; line-height: 1.2; white-space: pre-line; color: #303745; }
.mobile-description { margin: 20px 0 0; font-size: 15px; line-height: 1.75; color: #69717f; max-width: 320px; }
.mobile-invitation { margin: 25px 0 0; padding-top: 23px; border-top: 1px solid #e0e4ec; font-size: 13px; line-height: 1.85; color: #737c8d; max-width: 310px; }
.mobile-invitation strong { font-weight: 550; color: #425bd3; }
@keyframes mobile-wave { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 25% { transform: translateY(-7px) rotate(2.5deg); } 55% { transform: translateY(-3px) rotate(-2deg); } 80% { transform: translateY(-6px) rotate(1deg); } }
@media (orientation: landscape) and (max-height: 540px) { .mobile-content { margin: 0 auto 12px; }.mobile-mascot { width: 140px; margin-bottom: 6px; }.mobile-description { margin-top: 14px; }.mobile-invitation { margin-top: 14px; padding-top: 14px; } }
button, input, select { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, color .15s, border-color .15s; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible, video:focus-visible, [tabindex]:focus-visible { outline: 3px solid #8c9aff; outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; }
[data-icon] svg { width: 100%; height: 100%; stroke-width: 1.75; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-toolbar { flex: none; min-height: 60px; display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid #dce0e6; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 5px; flex: none; margin-right: 10px; }
.brand-mascot { object-fit: contain; flex: none; }
.brand-name { font-weight: 600; font-size: 19px; letter-spacing: -.8px; color: #292d35; }
.navigation { display: flex; align-items: center; gap: 0; padding-right: 4px; }
.icon-button { width: 32px; height: 32px; flex: none; border-radius: 7px; color: #747b85; background: transparent; padding: 7px; }
.icon-button:hover:not(:disabled) { color: var(--ink); background: #e5e8ed; }
#sound[data-blocked="true"] { color: var(--accent); }
#address-form { flex: 1; display: flex; align-items: center; gap: 10px; background: #e7eaee; border: 1px solid transparent; border-radius: 8px; height: 36px; padding: 0 6px 0 12px; min-width: 0; }
#address-form:focus-within { background: #fff; border-color: #aeb9df; box-shadow: 0 0 0 2px #425bd30b; }
#address-form > [data-icon] { color: #7e8692; width: 14px; height: 14px; }
#address { background: transparent; border: 0; outline: none; color: #3e4652; flex: 1; min-width: 0; width: 100%; font-size: 12px; }
#address::placeholder { color: #616b77; }
#address-form kbd { white-space: nowrap; color: #939ba6; font: 10px inherit; padding: 3px 4px; }
.address-go { width: 26px; height: 26px; background: transparent; color: #737c88; border-radius: 5px; }
.address-go [data-icon] { width: 15px; height: 15px; }
.address-go:hover:not(:disabled) { background: #dce1e9; color: var(--ink); }
.profile-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #e4e7ec; color: #727b88; border: 1px solid #d8dde5; border-radius: 50%; }
.profile-avatar [data-icon] { width: 16px; height: 16px; }
.toolbar-history { flex: none; gap: 7px; min-height: 32px; border-radius: 7px; padding: 7px 8px; font-size: 11px; color: #656d79; background: transparent; }
.toolbar-history:hover:not(:disabled) { background: #e5e8ed; color: var(--ink); }
.toolbar-history [data-icon] { width: 17px; height: 17px; }
.app-body { display: flex; flex: 1; gap: 18px; padding: 8px 16px 12px; min-height: 0; }
.workspace { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: transparent; }
.workspace-topline { height: 30px; padding: 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; }
.workspace-identity { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #747c88; min-width: 0; }
.workspace-identity [data-icon] { width: 12px; height: 12px; color: #9199a5; }
#browser-label { white-space: nowrap; }
.status-divider { width: 1px; height: 11px; background: var(--line); margin: 0 4px; }
#step { color: #77829b; font-size: 10px; }
.simulation-badge { display: inline-flex; align-items: center; gap: 6px; color: #707c96; font-size: 10px; background: transparent; border: 0; padding: 4px 0; white-space: nowrap; }
.simulation-badge i { width: 5px; height: 5px; background: #9398be; border-radius: 50%; }
.answer-tooltip { z-index: 100; max-width: 245px; border-radius: 7px; padding: 9px 12px; color: #fff; background: #30364a; font-size: 11px; line-height: 1.6; box-shadow: 0 8px 24px #252c4720; }
.browser-surface { position: relative; flex: 1; min-height: 0; width: 100%; overflow: hidden; border-radius: 9px; background: var(--canvas); display: flex; align-items: center; justify-content: center; isolation: isolate; }
#browser { display: block; flex: none; touch-action: none; background: #fff; }
#browser:focus { outline-offset: -3px; }
#replay { display: block; width: 100%; height: 100%; object-fit: contain; background: #e3e7ed; }
.welcome, .disconnected { position: absolute; inset: 0; z-index: 2; background: #f5f6f8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; }
.welcome-mascot { flex: none; max-width: min(360px, 43vh); max-height: min(360px, 43vh); aspect-ratio: 1; margin-bottom: 12px; pointer-events: none; }
.welcome h1 { font-size: 29px; letter-spacing: -.9px; }
.empty-browser-icon { position: relative; width: 76px; height: 64px; display: grid; place-items: center; color: #b3bbd0; margin-bottom: 24px; }
.empty-browser-icon > [data-icon] { width: 68px; height: 54px; }
.empty-browser-icon svg { stroke-width: 1.15; }
h1 { font-size: 25px; font-weight: 500; letter-spacing: -.8px; line-height: 1.4; color: #3b414c; }
.welcome p, .disconnected p { font-size: 12px; line-height: 1.9; color: #7a828e; margin: 10px 0 26px; }
.welcome p { max-width: 550px; font-size: 13px; line-height: 1.85; margin: 12px 0 0; color: #69717e; }
.primary, .secondary, .quiet { min-height: 38px; border-radius: 8px; padding: 9px 14px; font-size: 12px; font-weight: 550; }
.primary { background: var(--accent); color: #fff; border: 1px solid transparent; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { color: #59647f; background: #fff; border: 1px solid #dfe3ee; }
.secondary:hover:not(:disabled) { background: #f6f7fc; border-color: #cbd1e6; }
.quiet { color: #8790a7; background: transparent; }
.quiet:hover { background: #f1f3f9; }
.selection { position: absolute; border: 1.5px solid #526ae1; pointer-events: none; box-shadow: 0 0 0 100vmax #17203d24; z-index: 3; }
.selection > span { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; padding: 4px 8px; border: 1px solid #526ae120; border-radius: 5px; color: #344baf; background: #ffffffed; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.corner { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: #fff; border: 1px solid #667aff; }
.corner.tl { top: -4px; left: -4px; } .corner.tr { top: -4px; right: -4px; } .corner.bl { bottom: -4px; left: -4px; } .corner.br { bottom: -4px; right: -4px; }
.recording .selection { border-color: #df485b; box-shadow: none; }
.recording .selection > span { display: none; }
.recording .corner { border-color: #df485b; }
body[data-stage="paused"] .selection { border-color: #8896b8; box-shadow: none; }
body[data-stage="paused"] .selection > span { color: #4c5975; border-color: #8896b830; }
body[data-stage="paused"] .corner { border-color: #8896b8; }
#selection-layer { position: absolute; inset: 0; z-index: 4; cursor: crosshair; touch-action: none; }
#selection-layer:focus { outline-offset: -3px; }
.capture-hint { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 5; pointer-events: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; max-width: min(540px, calc(100% - 32px)); width: max-content; padding: 8px 12px; border: 1px solid #ffffffb3; border-radius: 10px; background: #fffffff2; box-shadow: 0 2px 12px #1824500a; }
.capture-hint strong { font-weight: 550; font-size: 12px; line-height: 1.4; color: #39445c; }
.capture-hint > span { font-size: 11px; color: #5e6a80; line-height: 1.5; text-wrap: pretty; }
.capture-dock { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 4px; padding: 5px; background: #fffffff0; border: 1px solid #ffffff; border-radius: 999px; box-shadow: 0 0 0 1px #414b6412, 0 3px 8px #19233b0a, 0 12px 28px #19233b14; max-width: calc(100% - 24px); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); white-space: nowrap; }
.review .capture-dock { bottom: 63px; }
.capture-dock button { min-height: 44px; flex: none; border-radius: 999px; padding: 11px 17px; font-size: 13px; font-weight: 500; line-height: 1; gap: 7px; transition: background 120ms, color 120ms, box-shadow 120ms; }
.capture-dock button [data-icon] { width: 16px; height: 16px; }
.capture-dock .dock-icon { width: 44px; padding: 11px; background: transparent; color: #63718b; }
.capture-dock .dock-secondary { background: transparent; color: #4c5a74; }
.capture-dock .dock-icon:hover:not(:disabled), .capture-dock .dock-secondary:hover:not(:disabled) { background: #e9edf5; color: #2f3d59; }
.capture-dock button:active:not(:disabled) { box-shadow: inset 0 1px 3px #17203d24; }
.capture-dock button:focus-visible { outline: 2px solid #6d80e5; outline-offset: 2px; }
.capture-dock button:disabled { opacity: .55; }
body[data-stage="paused"] #resume { background: var(--accent); color: #fff; }
body[data-stage="paused"] #resume:hover:not(:disabled) { background: var(--accent-hover); }
body[data-stage="recording"] #stop { background: #c73a4f; border-color: transparent; color: #fff; }
body[data-stage="recording"] #stop:hover:not(:disabled) { background: #b62c41; }
body[data-stage="recording"] #stop .stop-square { background: currentColor; }
body[data-stage="paused"] #stop { background: transparent; border-color: transparent; color: #985061; }
body[data-stage="paused"] #stop:hover:not(:disabled) { background: #f8e9ed; }
.record-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: currentColor; }
.stop { background: #fff0f2; color: #bc3d53; border: 1px solid #ffe0e5; }
.stop:hover { background: #ffe4e9; }
.stop-square { width: 8px; height: 8px; border-radius: 2px; background: #d6455c; }
#timer { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 32px; font-size: 13px; color: #39445c; font-variant-numeric: tabular-nums; padding: 0 13px 0 11px; margin-right: 2px; border-right: 1px solid #dfe4ec; }
#elapsed { font-weight: 600; letter-spacing: -.15px; }
#timer::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #d64157; margin-right: 4px; }
body[data-stage="paused"] #timer::before { background: #7b8baa; }
.timer-limit { font-size: 11px; color: #5e6a80; }
#dock-status { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: #79839e; font-size: 11px; }
#dock-status .spinner { width: 14px; height: 14px; }
.notice { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 10; max-width: min(580px, calc(100% - 28px)); border-radius: 8px; background: #fff; color: #727d95; font-size: 11px; line-height: 1.7; padding: 10px 14px; box-shadow: 0 3px 18px #22294b13; border: 1px solid var(--line); }
.notice:empty { display: none; }
.loading { position: absolute; inset: 0; z-index: 12; background: #fafbfefa; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; font-size: 12px; color: #8992aa; }
.spinner { display: inline-block; width: 24px; height: 24px; border: 2px solid #e0e4f8; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.disconnected h2 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; }
.disconnected > .empty-browser-icon svg { width: 40px; height: 40px; }
.workspace-status { flex: none; min-height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; color: #7b838f; font-size: 10px; }
.workspace-status > span { display: flex; align-items: center; gap: 6px; }
#stage-dot { width: 5px; height: 5px; background: #a5adc3; border-radius: 50%; }
body[data-stage="recording"] #stage-dot { background: var(--record); }
.text-button { padding: 7px 0; color: #74819b; background: transparent; font-size: 10px; gap: 5px; }
.text-button:hover { color: var(--accent); }
.text-button [data-icon] { width: 12px; height: 12px; }
.results { flex: 0 0 392px; min-width: 0; min-height: 0; display: flex; flex-direction: column; margin: 22px 2px 18px 0; border: 1px solid #ffffffb3; border-radius: 18px; background: #ffffffc2; backdrop-filter: blur(20px) saturate(1.04); -webkit-backdrop-filter: blur(20px) saturate(1.04); box-shadow: 0 5px 14px #27314606, 0 18px 48px #27314612; overflow: hidden; }
.result-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 6px 12px 6px 20px; }
.result-heading { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.result-heading h2 { font-size: 12px; line-height: 1.3; font-weight: 550; color: #525b69; letter-spacing: -.1px; transform-origin: left center; transition: transform .18s ease, color .18s ease; }
#clip-summary { display: block; font-size: 10px; line-height: 1.4; color: #65707e; font-variant-numeric: tabular-nums; transition: opacity .18s ease, transform .18s ease; }
.result-header .icon-button { width: 44px; height: 44px; color: #75808d; padding: 14px; }
.result-header .icon-button:hover { background: #e4e8ed99; }
/* Scroll changes only visual chrome; the reading viewport never shifts. */
.results.is-scrolled .result-heading h2 { transform: translateY(3px) scale(.94); color: #65707e; }
.results.is-scrolled #clip-summary { opacity: 0; transform: translateY(-3px); }
.output-tabs { flex: none; display: flex; gap: 2px; margin: 0 20px 15px; padding: 0; border-bottom: 1px solid #cdd3de80; }
.output-tabs button { position: relative; flex: 1; min-width: 0; font-size: 11px; line-height: 1.4; font-weight: 500; min-height: 44px; padding: 4px 2px 9px; color: #626e7e; background: transparent; }
.output-tabs button:first-child { flex: .82; }
.output-tabs button::after { content: ''; position: absolute; right: 3px; bottom: -1px; left: 3px; height: 2px; background: transparent; border-radius: 2px; }
.output-tabs button[aria-selected="true"] { color: #303d51; }
.output-tabs button[aria-selected="true"]::after { background: var(--accent); }
.output-tabs button:hover { color: #394457; background: #ffffff30; }
.output-tabs button:focus-visible { outline-offset: -3px; border-radius: 5px; }
#answer-panel { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.output-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b8c1cf transparent; padding: 0 20px 24px; scroll-padding-top: 12px; }
.output-scroll:focus-visible { outline-offset: -4px; }
.output-footer { flex: none; border-top: 1px solid #d6dce580; padding: 12px 20px; background: #ffffff45; }
.target-context-field { display: block; margin-bottom: 12px; color: #485668; font-size: 12px; line-height: 1.5; }
.target-context-field[hidden] { display: none; }
.target-context-field > span { color: #65707e; margin-left: 4px; font-size: 11px; }
.target-context-field input { display: block; box-sizing: border-box; width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid #c6cfdb; border-radius: 8px; color: #253248; background: #fff; font: inherit; }
.target-context-field input:focus-visible { outline: 2px solid #536b96; outline-offset: 2px; }
.target-context-field input[readonly] { background: #f3f5f8; }
.output-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 7px; }
.output-heading-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.output-mascot { flex: none; pointer-events: none; }
.output-heading h3 { font-size: 16px; line-height: 1.3; font-weight: 550; letter-spacing: -.35px; color: #303946; }
.output-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; line-height: 1.4; font-weight: 400; color: #65707e; }
.output-status[data-state="thinking"]::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
#output-help { color: #65707e; font-size: 10.5px; line-height: 1.6; margin-bottom: 16px; }
.results.has-warning #output-help { color: #525e70; }
.answer-text { font-size: 13px; color: #485363; line-height: 1.75; overflow-wrap: anywhere; }
.answer-prose p { margin: 0 0 14px; }
.answer-prose > :last-child { margin-bottom: 0; }
.answer-prose h1, .answer-prose h2, .answer-prose h3, .answer-prose h4, .answer-prose h5, .answer-prose h6 { font-size: 13px; font-weight: 600; color: #354152; margin: 22px 0 10px; }
.answer-prose strong { color: #3a4556; font-weight: 600; }
.answer-prose ul, .answer-prose ol { padding-left: 19px; margin: 12px 0 20px; list-style-position: outside; }
.answer-prose li { padding-left: 3px; margin: 10px 0; }
.answer-prose li::marker { color: #8792a6; font-size: 11px; }
.answer-prose li p { margin: 6px 0; }
.answer-prose pre { overflow-x: auto; font-size: 11px; border: 1px solid var(--line); background: #f7f8fc; border-radius: 7px; padding: 12px; margin: 16px 0; }
.answer-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: #f3f5fa; padding: 2px 4px; border-radius: 3px; }
.answer-prose pre code { padding: 0; background: none; }
.answer-prose blockquote { border-left: 2px solid #ccd4f6; padding-left: 12px; margin: 16px 0; color: #8590a9; }
.answer-prose table { border-collapse: collapse; font-size: 11px; width: 100%; }
.answer-prose th, .answer-prose td { border: 1px solid var(--line); padding: 7px; text-align: left; }
.answer-table-scroll { max-width: 100%; overflow-x: auto; }
.answer-prose input[type="checkbox"] { accent-color: var(--accent); }
.answer-draft { padding: 6px 0 14px; }
.draft-label { font-size: 13px; line-height: 1.8; color: #414b5c; margin-bottom: 9px; }
.draft-detail { font-size: 12px; line-height: 1.8; color: #68717e; max-width: 290px; }
.output-empty { padding: 9px 0; margin: 8px 0 6px; color: #68717e; }
.output-empty p { font-size: 12px; max-width: 285px; line-height: 1.8; }
.output-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 0; }
.output-actions button { font-size: 11px; min-height: 44px; border-radius: 8px; }
.output-actions .secondary { background: #ffffff66; color: #536178; border-color: #d2d9e5; }
.output-actions [data-icon] { width: 14px; height: 14px; }
.output-actions .primary { width: 100%; }
.output-actions #copy.primary { width: auto; flex: 1; }
.answer-text[data-output="creation_prompt"] .answer-prose { white-space: pre-line; }
.file-label { font-size: 9px; font-weight: 500; color: #65718a; margin-left: 3px; }
.handoff-note { color: #65707e; font-size: 10px; line-height: 1.7; padding: 9px 0 0; display: flex; align-items: flex-start; gap: 7px; }
.handoff-note [data-icon] { width: 13px; height: 13px; margin-top: 3px; }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 32px; max-width: min(550px, calc(100% - 28px)); max-height: calc(100dvh - 40px); color: #64708a; box-shadow: 0 20px 80px #1c254725; }
dialog::backdrop { background: #242b4a50; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 14px; right: 14px; }
.dialog-mark { width: 34px; height: 34px; padding: 7px; background: var(--accent-soft); color: #7784d5; border-radius: 9px; margin-bottom: 15px; }
dialog h2 { font-size: 20px; font-weight: 600; letter-spacing: -.5px; color: #3a4664; margin-bottom: 17px; }
dialog p { font-size: 12px; line-height: 1.85; margin-bottom: 14px; }
dialog .primary { margin-top: 8px; }
/* Workspace information uses a restrained settings layout, separate from Profile. */
#about-dialog { width: 680px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); padding: 0; overflow: hidden; border-radius: 12px; background: #fff; color: #586170; box-shadow: 0 18px 70px #1c254722; }
#about-dialog[open] { display: flex; flex-direction: column; }
#about-dialog::backdrop { background: #242b4a3d; backdrop-filter: blur(2px); }
#about-dialog .workspace-dialog-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 24px; border-bottom: 1px solid #e8ebef; }
#about-dialog h2 { margin: 0; color: #303947; font-size: 17px; font-weight: 600; letter-spacing: -.4px; line-height: 1.35; }
#about-dialog #close-about { flex: none; width: 44px; height: 44px; color: #737c88; border-radius: 8px; }
#about-dialog .workspace-dialog-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c4cad4 transparent; padding: 0 24px; }
#about-dialog .workspace-dialog-content:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
#about-dialog p { font-size: 12px; line-height: 1.75; margin: 0; overflow-wrap: anywhere; }
#about-dialog #about-intro { padding: 20px 0; color: #465160; font-size: 13px; line-height: 1.65; }
#about-dialog .workspace-dialog-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid #e8ebef; }
#about-dialog .workspace-dialog-row h3 { margin: 0; padding-top: 1px; color: #374252; font-size: 11.5px; line-height: 1.65; font-weight: 600; }
#about-dialog .workspace-dialog-row p + p { margin-top: 10px; }
#about-dialog .workspace-dialog-footer { flex: none; display: flex; justify-content: flex-end; padding: 12px 24px; border-top: 1px solid #e8ebef; background: #fafbfd; }
#about-dialog #about-done { min-width: 86px; min-height: 44px; margin: 0; padding: 10px 16px; border-radius: 8px; font-size: 12px; }
@media (max-width: 620px) {
  #about-dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  #about-dialog .workspace-dialog-header { padding-left: 20px; }
  #about-dialog h2 { font-size: 16px; }
  #about-dialog .workspace-dialog-content { padding: 0 20px; }
  #about-dialog #about-intro { padding: 18px 0; }
  #about-dialog .workspace-dialog-row { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 16px 0; }
  #about-dialog .workspace-dialog-row h3 { font-size: 12px; padding: 0; }
  #about-dialog .workspace-dialog-footer { padding: 12px 20px; }
}
.history-drawer { position: fixed; inset: 8px auto 8px 8px; margin: 0; width: 410px; max-width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: none; padding: 0; overflow: hidden; }
.history-drawer[open] { display: flex; flex-direction: column; }
.history-drawer::backdrop { background: #242b4a25; backdrop-filter: none; }
.history-heading { display: flex; align-items: center; justify-content: space-between; padding: 24px 22px 18px; }
.history-heading h2 { font-size: 20px; margin-bottom: 5px; }
.history-heading p { font-size: 11px; margin: 0; color: var(--muted); }
.history-search { flex: none; display: flex; align-items: center; gap: 9px; margin: 0 20px 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f7f8fb; color: #8992a6; }
.history-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; }
.history-search:focus-within { border-color: #a9b0f6; box-shadow: 0 0 0 3px #4b5ce80b; }
.history-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 18px; scrollbar-width: thin; }
.history-card { position: relative; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fff; }
.history-card:has([aria-current="true"]) { border-color: #bbc3ff; background: #f8f9ff; }
.history-open { width: 100%; align-items: center; justify-content: flex-start; gap: 13px; padding: 14px 34px 14px 12px; background: transparent; text-align: left; color: #4b5771; }
.history-open:hover { background: #f5f6fc; }
.history-thumbnail { display: flex; align-items: center; justify-content: center; width: 100px; height: 74px; flex: none; background: #eef0f6; border: 1px solid #e8ebf2; border-radius: 7px; overflow: hidden; }
.history-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.history-thumbnail img:not([src]) { visibility: hidden; }
.history-details { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.history-details strong { font-size: 12px; font-weight: 600; color: #35415c; }
.history-url { font-size: 10px; color: #7e89a1; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.history-meta { font-size: 10px; color: #768098; font-variant-numeric: tabular-nums; }
.history-state { font-size: 9px; color: #6575b5; padding-top: 3px; }
.history-remove { position: absolute; right: 5px; top: 8px; width: 26px; height: 26px; background: transparent; border-radius: 6px; color: #9299ad; font-size: 18px; }
.history-remove:hover { background: #fff0f2; color: #bc3d53; }
.history-empty { padding: 58px 18px; text-align: center; }
.history-empty strong { display: block; color: #50607d; font-size: 14px; font-weight: 550; margin-bottom: 9px; }
.history-empty p { color: #7e8aa2; font-size: 11px; line-height: 1.8; margin: 0; }
.history-footer { border-top: 1px solid var(--line); padding: 16px 20px; font-size: 10px; color: #8892a8; }
.profile-dialog { width: 420px; padding: 0; overflow-y: auto; color: #485363; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 24px; border-bottom: 1px solid var(--line); }
.profile-heading h2 { margin: 0; font-size: 17px; font-weight: 550; color: #303946; letter-spacing: -.2px; }
.profile-heading .icon-button { width: 44px; height: 44px; padding: 14px; }
.profile-body { padding: 22px 24px; }
.profile-label { display: block; font-size: 11px; color: #68717e; margin-bottom: 5px; }
.profile-dialog .profile-email { margin: 0; font-size: 13px; line-height: 1.6; color: #394657; overflow-wrap: anywhere; }
.profile-name-form { margin-top: 24px; }
.profile-name-form label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #394657; margin-bottom: 8px; }
.profile-name-form label span { color: #68717e; font-size: 11px; }
.profile-name-form input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #ccd3df; border-radius: 7px; background: #f8f9fb; color: #303946; font: inherit; font-size: 13px; }
.profile-name-form input::placeholder { color: #778294; }
.profile-name-form input:disabled { opacity: .65; }
.profile-name-form input[aria-invalid="true"] { border-color: #bc3d53; }
.profile-dialog #profile-name-help { margin: 7px 0 0; font-size: 11px; line-height: 1.6; color: #68717e; }
.profile-save-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.profile-dialog #profile-name-status { margin: 0; font-size: 11px; line-height: 1.5; color: #485363; }
.profile-save-row .primary { flex: none; min-height: 44px; margin: 0; padding: 10px 16px; font-size: 12px; }
.profile-credit-details { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.profile-dialog .profile-credits { margin: 0; font-size: 12px; line-height: 1.7; color: #485363; }
.profile-actions { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; border-top: 1px solid var(--line); }
.profile-actions button { justify-content: flex-start; min-height: 44px; padding: 10px; font-size: 12px; border-radius: 6px; color: #536178; }
.profile-actions button:hover { background: #edf0f5; color: #354152; }
.profile-actions [data-icon] { width: 14px; height: 14px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.dialog-actions button { min-height: 38px; padding: 9px 14px; border-radius: 8px; }
@media (max-width: 1150px) { .brand { margin-right: 0; }.app-toolbar { gap: 10px; padding: 10px 16px; }.results { flex-basis: 365px; } }
@media (max-width: 860px) {
  .app-body { gap: 10px; padding: 10px; flex-direction: column; }
  body.has-results .workspace { flex: 0 0 34%; min-height: 210px; }
  .results { flex: 1; width: 100%; margin: 2px 0 4px; border-radius: 15px; }
  .result-header { min-height: 52px; padding: 4px 12px 4px 20px; }.output-tabs { margin-bottom: 12px; }
  .output-scroll { padding: 0 20px 20px; }
  body.has-results .workspace-status { display: none; }
  body.has-results .capture-dock { bottom: 57px; }
}
@media (max-width: 620px) {
  .app-toolbar { min-height: 56px; gap: 7px; padding: 10px 10px; }
  .navigation, #address-form kbd { display: none; }
  .brand { margin-right: 1px; gap: 2px; }.brand-mascot { width: 28px; height: 28px; }.brand-name { font-size: 16px; letter-spacing: -.7px; }
  .profile-avatar { width: 28px; height: 28px; }.toolbar-history { width: 28px; padding: 5px; }.toolbar-history > span:last-child { display: none; }
  #toggle-results { width: 28px; height: 28px; padding: 6px; }
  #address-form { height: 34px; gap: 6px; padding-left: 8px; }#address { font-size: 11px; }#address::placeholder { font-size: 11px; }
  #address-form > [data-icon] { width: 12px; height: 12px; }.address-go { width: 23px; height: 23px; }
  .app-body { padding: 6px 8px 8px; }.workspace-topline { height: 28px; padding: 0 4px; }.workspace-identity { font-size: 10px; gap: 5px; }.workspace-identity > [data-icon], .status-divider, #step { display: none; }
  .simulation-badge { font-size: 9px; }.workspace-status { padding: 0 10px; font-size: 9px; }.text-button { font-size: 9px; }
  h1, .welcome h1 { font-size: 22px; }.welcome { padding: 22px; }.welcome-mascot { max-width: min(280px, 38vh); max-height: min(280px, 38vh); }.welcome p { font-size: 12px; max-width: 300px; }.welcome p br { display: none; }.empty-browser-icon { margin-bottom: 20px; }
  .capture-dock { bottom: 18px; gap: 2px; padding: 4px; }.capture-dock button { padding: 11px 13px; font-size: 12px; }.capture-hint { bottom: 82px; }
  .capture-hint > span { max-width: 300px; }.capture-hint strong { font-size: 11px; }#timer { padding: 0 9px 0 6px; font-size: 12px; gap: 4px; }.timer-limit { font-size: 10px; }
  body.has-results .workspace { min-height: 190px; flex-basis: 29%; }
  .output-tabs { margin-right: 16px; margin-left: 16px; }.output-tabs button { font-size: 10.5px; }
  .output-scroll { padding-right: 16px; padding-left: 16px; }.output-footer { padding: 10px 16px; }
}
@media (prefers-reduced-transparency: reduce) { .results { background: #f7f8fa; backdrop-filter: none; -webkit-backdrop-filter: none; }.capture-dock, .capture-hint, .selection > span { background: #f8f9fc; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
