/* A organização e as paletas continuam a ser as do desktop. */
:root { --canvas: color-mix(in srgb, var(--surface-2) 66%, var(--background)); --hairline: var(--border-soft); }
body { background: var(--canvas); }
.auth-gate { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px 24px 28px; background: radial-gradient(ellipse at 60% 25%, var(--accent-subtle), transparent 65%), var(--canvas); }
.login-card { width: min(100%, 460px); padding: 42px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 18px; box-shadow: 0 18px 65px #00000004; }
.login-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 43px; }
.login-brand > strong { font-size: 22px; letter-spacing: -.7px; }
.login-card > .overline { color: var(--accent-text); font-size: 8px; margin-bottom: 16px; }
.login-card h1 { font-size: 34px; line-height: 1.25; letter-spacing: -1.3px; font-weight: 500; }
.login-description { color: var(--text-muted); font-size: 12px; line-height: 1.9; margin: 19px 0 28px; }
#login-button { width: 100%; min-height: 43px; font-size: 12px; border-radius: 7px; justify-content: space-between; }
.login-assurance { border-top: 1px solid var(--border-soft); padding-top: 20px; margin-top: 24px; font-size: 9px; line-height: 1.8; color: var(--text-muted); display: flex; gap: 9px; }
.login-assurance > span { font-size: 15px; color: var(--accent-text); }
.login-footer { width: min(100%, 460px); display: flex; justify-content: space-between; gap: 20px; font-size: 9px; color: var(--text-muted); margin-top: 25px; padding: 0 4px; }
.login-pending { margin-top: 18px; font-size: 11px; line-height: 1.9; color: var(--text-secondary); }
.login-pending .spinner { float: left; margin: 4px 10px 0 0; }
.login-pending a { color: var(--accent-text); font-size: 11px; display: inline-block; margin-top: 14px; text-decoration: none; }
.login-pending button { font-size: 10px; margin: 12px 0 0 10px; }
#login-error { color: var(--danger); font-size: 11px; line-height: 1.8; margin-top: 14px; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { transition: background .15s, border-color .15s, box-shadow .15s; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 3px; }
.brand-symbol { display: flex; align-items: center; justify-content: center; gap: 3px; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--text-on-accent); }
.brand-symbol i { width: 2px; height: 10px; background: currentColor; border-radius: 2px; }
.brand-symbol i:nth-child(2), .brand-symbol i:nth-child(4) { height: 18px; }
.brand-symbol i:nth-child(3) { height: 25px; }
.web-label { color: var(--text-muted); border: 1px solid var(--border); border-radius: 4px; padding: 2px 4px; font-size: 8px; letter-spacing: 1px; }
.workspace, .workspace.sidebar-collapsed { height: 100dvh; min-height: 0; grid-template-columns: 250px 320px minmax(0, 1fr); gap: 20px; padding: 24px; }
.workspace.sidebar-collapsed { grid-template-columns: 60px 320px minmax(0, 1fr); }
.workspace > .panel { min-height: 0; }
.sidebar, .workspace.sidebar-collapsed .sidebar { background: transparent; border: 0; padding: 0 0 0 0; border-radius: 0; gap: 16px; }
.sidebar-header { height: 49px; }
.sidebar-header h1 { font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.overline { font-size: 9px; font-weight: 600; letter-spacing: 1.35px; color: var(--text-muted); line-height: 1.5; margin-bottom: 5px; }
.sidebar-header .icon-button { width: 30px; height: 30px; }
.sidebar-header .icon { width: 17px; height: 17px; }
.sidebar-body { gap: 14px; }
.new-document { justify-content: flex-start; min-height: 40px; padding: 10px 12px; background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: 0 2px 3px #00000003; border-radius: 8px; font-size: 12px; }
.new-document > span { font-size: 19px; color: var(--accent-text); margin-right: 5px; }
.library-controls { display: flex; flex-direction: column; gap: 10px; }
.search { background: transparent; border-radius: 12px; min-height: 36px; }
.search input { background: transparent; font-size: 11px; }
.library-filters { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.library-filters select { background: transparent; border: 0; color: var(--text-secondary); font-size: 10px; padding: 3px 0; min-width: 0; }
.library-filters select:first-of-type { flex: 1; }
select option { background: var(--surface); color: var(--text); }
.history-heading { gap: 7px; min-height: 22px; }
.history-heading h2 { font-size: 10px; font-weight: 600; color: var(--text-muted); }
.history-heading .icon-button { width: 24px; height: 24px; min-height: 24px; font-size: 15px; }
.badge { font-size: 9px; border-radius: 4px; padding: 1px 5px; min-width: 16px; border: 0; background: var(--surface-3); color: var(--text-secondary); }
.history-card { background: transparent; padding: 0; border-radius: 0; min-height: 40px; }
.history-list { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.history-item { background: transparent; gap: 3px; padding: 4px 5px; margin-bottom: 5px; align-items: flex-start; border-radius: 8px; }
.history-item.active { border-color: color-mix(in srgb, var(--accent) 16%, transparent); background: var(--accent-subtle); }
.history-open { padding: 8px 5px; min-height: 58px; border-radius: 5px; }
.history-open:hover:enabled { background: transparent; }
.history-open strong { font-size: 12px; font-weight: 500; line-height: 1.5; }
.history-open small { font-size: 10px; color: var(--text-muted); line-height: 1.7; }
.history-favorite, .history-delete { border: 0; background: transparent; min-height: 24px; padding: 2px 4px; margin-top: 6px; font-size: 15px; color: var(--text-muted); }
.history-favorite { opacity: 0; }
.history-favorite[aria-pressed=true] { opacity: 1; color: var(--accent-text); }
.history-item:hover .history-favorite, .history-favorite:focus-visible { opacity: 1; }
.history-delete { font-size: 14px; }
.history-empty { text-align: center; padding: 26px 12px; line-height: 1.9; font-size: 11px; }
.library-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px 6px 0; border-top: 1px solid var(--border-soft); color: var(--text-muted); }
.library-note > span { font-size: 15px; }
.library-note p { font-size: 10px; line-height: 1.8; }
.identity { border: 1px solid var(--border-soft); background: var(--surface); border-radius: 10px; padding: 10px; margin: 0; }
.identity-header { padding: 0 0 10px; gap: 9px; }
.avatar { border-radius: 9px; width: 32px; height: 32px; font-size: 13px; background: var(--accent-subtle); color: var(--accent-text); border: 0; }
.identity-header strong { font-size: 11px; font-weight: 600; }
.identity-header small { font-size: 9px; }
.connection { border: 0; border-top: 1px solid var(--border-soft); border-radius: 0; background: transparent; font-size: 10px; padding: 9px 0 0; min-height: 25px; justify-content: flex-start; }
.connection > span:last-child { margin-left: auto; }
.sidebar-footer { min-height: 32px; padding: 0; }
.settings-button { font-size: 11px; padding: 4px; min-height: 32px; }
.settings-button .icon { width: 15px; height: 15px; }
.sidebar-footer small { font-size: 9px; color: var(--text-muted); }
.source-panel, .editor-panel { padding: 20px; border-radius: 12px; border: 1px solid var(--hairline); box-shadow: 0 2px 7px #00000002; }
.source-panel { gap: 14px; overflow-y: auto; scrollbar-width: thin; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; }
.panel-heading h2, .document-heading h2 { font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
.count-pill { font-size: 9px; color: var(--text-muted); padding: 4px 7px; border: 1px solid var(--border-soft); border-radius: 5px; white-space: nowrap; }
.source-panel > .primary { min-height: 40px; font-size: 12px; border-radius: 7px; }
.add-audio { flex-shrink: 0; }
.add-audio .shortcut-hint { margin-left: auto; opacity: .7; font-size: 16px; font-weight: 400; }
.drop-zone, .queue-section:not([hidden]) ~ .drop-zone { margin: 0; height: 174px; min-height: 160px; flex-shrink: 0; border: 1px dashed var(--border); border-radius: 9px; background: color-mix(in srgb, var(--surface-2) 38%, var(--surface)); gap: 7px; padding: 18px 10px; }
.drop-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-soft); margin-bottom: 3px; color: var(--accent-text); box-shadow: 0 2px 2px #00000002; }
.drop-icon .icon { width: 19px; height: 19px; }
.drop-zone p { font-size: 12px; font-weight: 500; }
.drop-zone small { font-size: 10px; }
.upload-limit { font-size: 9px; color: var(--text-muted); margin-top: 3px; }
.queue-section { border: 0; padding: 0; border-radius: 0; flex: 0 1 auto; min-height: 75px; overflow-y: auto; max-height: 290px; }
.queue-overview { flex-shrink: 0; }
.queue-overview > div { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--text-muted); margin-bottom: 7px; }
.queue-overview strong { font-size: 10px; font-weight: 500; }
progress { accent-color: var(--accent); }
.queue-overview progress { width: 100%; height: 8px; display: block; border: 0; border-radius: 4px; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
.queue-item { padding: 10px 9px; margin: 0 0 7px; gap: 8px; flex-wrap: wrap; border: 1px solid var(--border-soft); border-radius: 8px; position: relative; }
.queue-item.selected { outline: 0; border-color: color-mix(in srgb, var(--accent) 32%, var(--border-soft)); background: var(--accent-subtle); }
.queue-item[data-status=done] .queue-type { color: var(--success); }
.queue-item[data-status=running] .queue-type { color: var(--accent-text); }
.queue-type { display: grid; place-items: center; width: 29px; height: 32px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border-soft); font-size: 8px; font-weight: 600; color: var(--text-muted); }
.queue-info { flex: 1 1 calc(100% - 40px); }
.queue-info strong { font-size: 11px; font-weight: 500; }
.queue-info small { font-size: 9px; margin-top: 4px; }
.queue-file-meta { font-size: 9px; color: var(--text-muted); margin-top: 5px; display: block; }
.queue-item progress { width: auto; flex: 1; height: 6px; margin-left: 37px; }
.queue-item .quiet { min-height: 20px; font-size: 9px; padding: 2px 4px; }
.queue-item.error { border-color: color-mix(in srgb, var(--danger) 25%, var(--border)); background: var(--danger-hover); }
.source-panel.has-audio .drop-zone { min-height: 65px; height: 65px; flex-direction: row; gap: 9px; padding: 10px; }
.source-panel.has-audio .drop-zone p { font-size: 10px; }
.source-panel.has-audio .drop-zone small, .source-panel.has-audio .upload-limit { display: none; }
.source-panel.has-audio .drop-icon { width: 29px; height: 29px; margin: 0; border-radius: 7px; }
.source-panel.has-audio .queue-section { flex-shrink: 0; min-height: 110px; max-height: 250px; }
.audio-preview { padding: 11px; border: 1px solid var(--border-soft); border-radius: 9px; background: var(--surface-2); flex-shrink: 0; }
.preview-header { display: flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 10px; }
.preview-header strong { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.preview-header .icon { width: 13px; height: 13px; }
.preview-header > span:last-child { color: var(--text-muted); font-size: 9px; white-space: nowrap; }
audio { display: block; width: 100%; height: 36px; margin-top: 9px; }
.audio-preview small { font-size: 9px; line-height: 1.7; display: block; margin-top: 7px; }
.source-spacer { min-height: 0; }
.summary-option { display: flex; align-items: center; gap: 9px; padding: 11px; background: var(--surface-2); border-radius: 8px; border: 1px solid var(--border-soft); cursor: pointer; }
.summary-option .icon { width: 17px; height: 17px; color: var(--accent-text); }
.summary-option > span:nth-child(2) { flex: 1; }
.summary-option strong { display: block; font-size: 10px; font-weight: 500; }
.summary-option small { display: block; font-size: 9px; margin-top: 4px; }
.summary-option input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.connect-hint { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--text-muted); }
.connect-hint button { border: 0; background: transparent; padding: 0; min-height: 15px; color: var(--accent-text); margin-left: auto; font-size: 10px; }
#transcribe-button > span:last-child { margin-left: auto; font-size: 16px; font-weight: 400; }
.queue-tools { gap: 6px; }
.queue-tools button { font-size: 10px; background: transparent; border-color: var(--border-soft); }
.editor-panel { gap: 0; }
.document-heading { min-height: 60px; padding: 0 0 18px; gap: 10px; border-color: var(--border-soft); }
.document-heading-text { flex: 1; min-width: 0; }
.document-heading .icon-button { width: 32px; height: 32px; font-size: 22px; }
.save-controls .primary { min-height: 36px; font-size: 11px; border-radius: 7px; }
.save-controls > .primary:first-child { border-radius: 7px 0 0 7px; }
.save-controls > .save-arrow { border-radius: 0 7px 7px 0; min-width: 28px; }
.save-options { border-radius: 9px; background: var(--surface); padding: 7px; box-shadow: 0 8px 28px #00000012; }
.editor-navigation { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 58px; flex-shrink: 0; }
.tabs { align-self: stretch; align-items: stretch; gap: 20px; }
.tabs button, .tabs button:first-child, .tabs button:last-child { padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; min-width: 0; background: transparent; font-size: 12px; gap: 7px; font-weight: 400; }
.tabs button[aria-selected=true] { background: transparent; color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
.tabs button:hover:enabled { background: transparent; }
.tabs .icon { width: 14px; height: 14px; }
.summary-ready { width: 5px; height: 5px; background: var(--success); border-radius: 50%; }
.editor-actions { display: flex; align-items: center; gap: 6px; }
.editor-actions .quiet { font-size: 10px; }
.editor-actions .icon-button { width: 28px; height: 28px; }
.editor-actions .icon { width: 14px; height: 14px; }
#text-size { border: 1px solid var(--border-soft); border-radius: 5px; padding: 4px; font-size: 10px; background: var(--surface); color: var(--text-secondary); height: 26px; }
.find-bar { display: flex; align-items: center; gap: 5px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 7px; padding: 6px 8px; margin-bottom: 10px; flex-shrink: 0; }
.find-bar input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 11px; outline: none; }
.find-bar > span { font-size: 9px; color: var(--text-muted); white-space: nowrap; }
.find-bar .icon-button { width: 24px; height: 24px; min-height: 24px; }
.document-content { border-radius: 9px; background: var(--surface); }
.editor-page { padding: 18px 20px 13px; }
.empty-document { padding: 20px 10px; gap: 12px; }
.empty-art { position: relative; width: 95px; height: 97px; display: grid; place-items: center; margin-bottom: 8px; }
.empty-art::before { content: ""; width: 83px; height: 83px; border-radius: 50%; background: var(--surface-2); position: absolute; }
.empty-sheet { display: flex; flex-direction: column; gap: 7px; justify-content: center; width: 52px; height: 65px; padding: 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); transform: rotate(-9deg); box-shadow: 0 3px 6px #00000004; }
.empty-sheet i { width: 100%; height: 2px; background: var(--border); border-radius: 2px; }
.empty-sheet i:last-child { width: 60%; }
.empty-spark { position: absolute; right: 5px; top: 9px; color: var(--accent-text); font-size: 31px; background: var(--surface); line-height: 1; }
.empty-document > .overline { color: var(--accent-text); font-size: 8px; letter-spacing: 1.7px; margin-bottom: 0; }
.empty-document h3 { font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; color: var(--text); letter-spacing: -.6px; line-height: 1.4; }
.empty-document p { color: var(--text-muted); font-size: 12px; line-height: 1.9; }
.empty-actions { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 9px; }
.empty-actions .primary { font-size: 11px; min-height: 36px; border-radius: 7px; padding: 8px 15px; gap: 19px; }
.empty-actions .quiet { font-size: 10px; }
.workflow { display: flex; align-items: center; gap: 10px; margin-top: 29px; color: var(--text-muted); }
.workflow span { font-size: 9px; display: flex; align-items: center; gap: 6px; }
.workflow b { font-size: 8px; font-weight: 400; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface-2); }
.workflow i { width: 15px; height: 1px; background: var(--border-soft); }
.document-title-row { display: flex; align-items: center; border-bottom: 1px solid var(--border-soft); padding-bottom: 13px; gap: 8px; margin-bottom: 8px; }
.document-title { flex: 1; border: 0; font-size: 19px; font-weight: 500; letter-spacing: -.4px; padding: 4px 0; min-width: 0; background: transparent; }
.document-title::placeholder { color: var(--text-muted); }
.document-title-row .icon-button { font-size: 21px; width: 28px; height: 28px; color: var(--text-muted); }
.document-title-row .icon-button[aria-pressed=true] { color: var(--accent-text); }
textarea { font-size: 14px; line-height: 1.95; padding: 12px 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
body[data-text-size=large] .editor-page textarea { font-size: 16px; }
body[data-text-size=larger] .editor-page textarea { font-size: 18px; }
.transcript-options { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 12px; border-top: 1px solid var(--border-soft); padding-top: 11px; }
.timestamp-option { font-size: 10px; margin-top: 0; color: var(--text-muted); }
.timestamp-option input { width: 13px; height: 13px; }
.origin-label { font-size: 9px; color: var(--text-muted); text-align: right; }
.document-footer, .document-footer:has(#save-status:empty) { display: flex; flex-direction: column; align-items: stretch; min-height: 28px; padding-top: 12px; font-size: 9px; color: var(--text-muted); }
.document-footer-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.document-footer-row > div { display: flex; align-items: center; gap: 12px; }
.review-note { margin: 4px 0 0; color: var(--text-muted); font-size: 9px; line-height: 1.5; }
.cloud-status-row { display: flex; align-items: center; gap: 9px; padding: 11px 0 0; flex-shrink: 0; color: var(--text-secondary); }
.cloud-status-row > span { font-size: 19px; color: var(--text-muted); }
.cloud-status-row > div { flex: 1; min-width: 0; }
.cloud-status-row strong { display: block; font-size: 10px; font-weight: 500; }
.cloud-status-row small { display: block; font-size: 9px; margin-top: 3px; overflow-wrap: anywhere; }
.cloud-status-row .quiet { font-size: 10px; flex-shrink: 0; color: var(--accent-text); }
.cloud-status-row[data-status=synced] > span { color: var(--success); }
.cloud-status-row[data-status=error] > span { color: var(--warning); }
.summary-toolbar { margin: 0; padding: 0 0 16px; }
.summary-toolbar h3 { font-size: 15px; font-weight: 500; letter-spacing: -.25px; }
.summary-toolbar p { font-size: 10px; margin-top: 6px; }
.summary-toolbar button { font-size: 11px; padding: 7px 11px; border-radius: 6px; }
.summary-status { font-size: 11px; line-height: 1.8; color: var(--accent-text); padding: 14px 0 5px; display: flex; gap: 10px; align-items: flex-start; }
.spinner { border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; width: 15px; height: 15px; flex-shrink: 0; animation: spin 1s linear infinite; margin-top: 3px; }
.summary-buttons { display: flex; gap: 7px; flex-wrap: wrap; }
.summary-status > div { flex: 1; min-width: 0; }
.summary-status strong { display: block; font-size: 11px; font-weight: 500; }
.summary-status small { display: block; color: var(--text-muted); font-size: 10px; margin-top: 3px; }
.summary-status progress { display: block; width: 100%; height: 4px; margin: 10px 0; }
.summary-status[data-status=error] { color: var(--danger); }
.summary-status[data-status=done] { color: var(--success); }
.summary-status[data-status=error] .spinner,.summary-status[data-status=cancelled] .spinner,.summary-status[data-status=done] .spinner { display: none; }
.summary-status[data-status=error] progress,.summary-status[data-status=cancelled] progress { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.workspace.focus-mode { grid-template-columns: minmax(0, 1fr); max-width: 1120px; margin: auto; }
.workspace.focus-mode .sidebar, .workspace.focus-mode .source-panel { display: none; }
.mobile-navigation { display: none; }
.workspace.sidebar-collapsed .sidebar-header > div, .workspace.sidebar-collapsed .sidebar-body, .workspace.sidebar-collapsed .settings-label, .workspace.sidebar-collapsed #app-version { display: none; }
dialog { border-radius: 14px; padding: 26px; box-shadow: 0 22px 80px #00000028; width: 480px; }
.dialog-heading { margin-bottom: 22px; }
.dialog-heading .overline { font-size: 8px; color: var(--accent-text); margin-bottom: 7px; }
.dialog-heading h2 { font-size: 23px; font-weight: 500; letter-spacing: -.6px; }
.dialog-heading .icon-button { width: 28px; height: 28px; font-size: 22px; }
dialog::backdrop { background: #10182066; backdrop-filter: blur(4px); }
dialog input:not([type=checkbox]), dialog select { font-size: 12px; border-radius: 7px; }
dialog .dialog-note { font-size: 10px; line-height: 1.8; }
.settings-form { grid-template-columns: 125px 1fr; }
.settings-form label { font-size: 11px; }
.dialog-actions .primary { border-radius: 7px; min-height: 36px; font-size: 12px; padding: 8px 15px; }
#paste-dialog { width: 600px; }
#paste-text { border: 1px solid var(--border); border-radius: 7px; padding: 12px; margin-top: 9px; min-height: 230px; resize: vertical; font-size: 12px; }
.notice { border-radius: 9px; font-size: 11px; background: var(--surface); box-shadow: 0 6px 30px #00000017; }
:root[data-theme=dark], :root[data-theme=github-dark] { color-scheme: dark; }
:root[data-theme=white], :root[data-theme=light], :root[data-theme=linearui] { color-scheme: light; }
@media(min-width:1700px) { .workspace { grid-template-columns: 280px 350px minmax(0,1fr); padding: 28px; gap: 24px; } }
@media(max-width:1250px) { .workspace { grid-template-columns: 220px 280px minmax(0,1fr); gap: 14px; padding: 18px; } .workspace.sidebar-collapsed { grid-template-columns: 50px 280px minmax(0,1fr); gap: 14px; padding: 18px; } .source-panel,.editor-panel { padding: 16px; } .history-favorite,.history-delete { padding-left: 2px; padding-right: 2px; } .tabs { gap: 12px; } .tabs button { font-size: 11px; } .editor-actions { gap: 2px; } .empty-document h3 { font-size: 20px; } .empty-document p { font-size: 11px; } .origin-label { display: none; } }
@media(max-width:1020px) and (min-width:761px) { .workspace { grid-template-columns: 190px 245px minmax(0,1fr); padding: 14px; gap: 12px; } .workspace.sidebar-collapsed { grid-template-columns: 45px 245px minmax(0,1fr); } .source-panel,.editor-panel { padding: 14px; } .editor-actions .quiet { display: none; } .tabs { gap: 12px; } .tabs .icon { display: none; } .empty-document p br { display: none; } .workflow { gap: 5px; } .workflow i { width: 8px; } .summary-option { padding: 9px 7px; gap: 6px; } .summary-option strong { font-size: 9px; } .summary-option .icon { display: none; } .history-open strong { font-size: 11px; } .history-open small { font-size: 9px; } .document-footer-row { gap: 5px; } #reading-time { display: none; } .identity { padding: 8px; } }
@media(max-width:760px) {
  .auth-gate { padding: 24px 15px; }
  .login-card { padding: 30px 25px; border-radius: 14px; }
  .login-card h1 { font-size: 32px; }
  .brand-symbol { width: 29px; height: 29px; border-radius: 8px; }
  .web-label { display: none; }
  .workspace,.workspace.sidebar-collapsed { display: block; height: auto; min-height: 100dvh; padding: 14px 12px calc(101px + env(safe-area-inset-bottom)); }
  .workspace > .sidebar,.workspace > .source-panel,.workspace > .editor-panel { display: none; }
  body[data-mobile-view=library] .workspace > .sidebar { display: flex; min-height: calc(100dvh - 96px); }
  body[data-mobile-view=audio] .workspace > .source-panel { display: flex; min-height: calc(100dvh - 96px); }
  body[data-mobile-view=document] .workspace > .editor-panel { display: flex; min-height: calc(100dvh - 96px); }
  .workspace.focus-mode { display: block; padding: 14px 12px calc(101px + env(safe-area-inset-bottom)); }
  .sidebar { padding: 4px 6px; gap: 18px; height: auto; }
  .sidebar-header { height: 46px; } .sidebar-header h1 { font-size: 23px; } .sidebar-header .icon-button { display: none; }
  .sidebar-body { display: flex; gap: 14px; } .history-card { grid-column: auto; grid-row: auto; max-height: none; padding: 0; min-height: 160px; }
  .history-list { display: block; overflow: visible; } .history-item { min-width: 0; max-width: none; margin-bottom: 7px; padding: 6px; }
  .history-open { min-height: 64px; } .history-open strong { font-size: 13px; } .history-open small { font-size: 11px; }
  .history-delete,.history-favorite { opacity: 1; font-size: 18px; padding: 5px 8px; }
  .identity { grid-column: auto; grid-row: auto; padding: 12px; margin-top: 10px; } .identity-header { display: flex; }
  .connection { font-size: 11px; padding-top: 10px; } .sidebar-footer { margin-top: 6px; }
  .search input { font-size: 12px; } .library-filters select { font-size: 11px; } .library-note p { font-size: 11px; }
  .source-panel,.editor-panel { height: auto; padding: 18px; border-radius: 12px; }
  .panel-heading { min-height: 42px; } .panel-heading h2,.document-heading h2 { font-size: 21px; }
  .source-panel { gap: 16px; } .drop-zone { height: 178px; min-height: 178px; }
  .queue-section { max-height: 340px; min-height: 70px; } .queue-item { flex-wrap: wrap; padding: 12px; } .queue-info { flex-basis: calc(100% - 40px); }
  .queue-item progress { flex: 1; } .queue-info strong { font-size: 13px; } .queue-info small { font-size: 11px; }
  .workspace button, dialog button, .workspace select { min-height: 44px; }
  .workspace .icon-button, .dialog-heading .icon-button { width: 44px; height: 44px; min-width: 44px; }
  .workspace .queue-item .quiet, .workspace .cloud-status-row .quiet { min-height: 44px; }
  .workspace .save-arrow { min-width: 44px; }
  .workspace audio { height: 44px; }
  .source-spacer { display: block; min-height: 0; } .source-panel .primary { min-height: 43px; font-size: 13px; }
  .summary-option strong { font-size: 11px; } .summary-option small { font-size: 10px; }
  .connect-hint { font-size: 11px; } .queue-tools button { font-size: 12px; min-height: 44px; }
  .editor-panel { min-height: calc(100dvh - 96px); } .document-content { min-height: 390px; flex: 1; }
  .document-heading { gap: 7px; min-height: 58px; padding-bottom: 15px; }
  .editor-navigation { min-height: 56px; gap: 5px; } .tabs { gap: 15px; } .tabs button { font-size: 11px; gap: 5px; } .tabs .icon { width: 12px; height: 12px; }
  .editor-actions { gap: 3px; } .editor-actions .quiet { display: none; }
  .editor-page { min-height: 380px; padding: 17px 14px 12px; } .empty-document { min-height: 340px; padding: 18px 4px; }
  .empty-document h3 { font-size: 20px; } .empty-document p { font-size: 11px; } .empty-document p br { display: none; }
  .empty-art { margin-bottom: 1px; } .workflow { margin-top: 20px; gap: 8px; }
  .transcript-content { min-height: 300px; } textarea { min-height: 240px; padding: 12px 0; }
  .document-title { font-size: 17px; } .transcript-options { flex-wrap: wrap; } .timestamp-option { font-size: 11px; }
  .summary-toolbar { gap: 12px; } .summary-toolbar h3 { font-size: 15px; } .summary-toolbar p { font-size: 12px; line-height: 1.7; }
  .summary-toolbar button { font-size: 12px; } .document-footer { font-size: 11px; gap: 6px; } .review-note { font-size: 11px; } .document-footer-row { gap: 7px; } .document-footer-row > div { gap: 7px; } #reading-time { display: none; }
  .cloud-status-row strong { font-size: 12px; } .cloud-status-row small { font-size: 11px; } .cloud-status-row .quiet { font-size: 12px; }
  .find-bar { flex-wrap: wrap; gap: 4px; } .find-bar input { flex-basis: 65%; } .find-bar > span { margin-left: auto; } .find-bar .icon-button { width: 44px; height: 44px; }
  .mobile-navigation { display: flex; align-items: center; justify-content: space-around; position: fixed; z-index: 9; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--border); min-height: 65px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); box-shadow: 0 -3px 15px #00000003; }
  .mobile-navigation button { display: flex; flex: 1; flex-direction: column; gap: 5px; border: 0; background: transparent; color: var(--text-muted); font-size: 12px; padding: 5px; min-height: 48px; border-radius: 8px; position: relative; }
  .mobile-navigation button[aria-pressed=true] { background: var(--accent-subtle); color: var(--accent-text); }
  .mobile-navigation .icon { width: 19px; height: 19px; } #mobile-queue-count { position: absolute; top: 3px; right: 25%; border-radius: 8px; padding: 0 4px; font-size: 10px; background: var(--accent); color: var(--text-on-accent); }
  dialog { padding: 22px; width: calc(100vw - 24px); } .settings-form { grid-template-columns: 110px 1fr; }
  .dialog-heading h2 { font-size: 22px; } .notice { bottom: calc(91px + env(safe-area-inset-bottom)); }
  .cloud-status-row { align-items: flex-start; flex-wrap: wrap; }
  .cloud-status-row .quiet { margin-left: 24px; padding: 0; min-height: 22px; }
}
@media(prefers-reduced-motion:reduce) { .spinner { animation: none; } button { transition: none; } }
