:root {
    --page: #f7f8f4;
    --paper: #fff;
    --ink: #203c33;
    --muted: #6a756d;
    --green: #285647;
    --line: #e4e8df;
    --lime: #dfedb8;
    --radius: 22px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
button, input { font: inherit; }
a { color: var(--green); text-underline-offset: 4px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #6f9660; outline-offset: 4px; }
[hidden] { display: none !important; }
.app-container { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 100; background: var(--ink); color: white; border-radius: 8px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip-path: none; width: auto; height: auto; padding: 12px 20px; }
.site-header { border-bottom: 1px solid var(--line); }
.nav-inner { height: 88px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-size: 28px; font-weight: 700; letter-spacing: -1.3px; }
.brand:hover { color: var(--green); }
.brand-mark { width: 38px; height: 42px; border-radius: 13px; background: var(--green); color: #eef4db; display: grid; place-items: center; margin-right: 11px; transform: rotate(-7deg); }
.brand-mark svg { width: 29px; height: 29px; }
.brand-country { font-weight: 400; color: #788373; }
.brand-beta { align-self: center; margin: 2px 0 0 11px; font-size: 8px; font-weight: 700; letter-spacing: 1px; border: 1px solid #dce2d4; padding: 4px 6px; border-radius: 5px; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-translator { color: var(--ink); }
.nav-links .icon { width: 13px; height: 13px; }
.main-content { flex: 1; }
.intro { display: flex; align-items: center; justify-content: space-between; padding: 36px 0 32px; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #667560; font-size: 9px; font-weight: 650; letter-spacing: 1.9px; }
.little-star { font-size: 19px; line-height: 1; color: #78905e; }
h1 { font-size: clamp(34px, 4.1vw, 57px); font-weight: 500; line-height: 1.12; letter-spacing: -2.3px; margin: 0 0 14px; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: #638161; }
.intro-copy { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.intro-note { display: flex; align-items: center; gap: 17px; margin-top: 25px; padding-right: 18px; }
.intro-note p { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 17px; line-height: 1.6; color: #829077; margin: 0; }
.note-line { height: 52px; width: 1px; background: #d1dbc5; transform: rotate(16deg); }
.mobile-break { display: none; }
.workspace-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 19px; animation-delay: .07s !important; }
.mode-picker { padding: 5px; margin: 0; border: 1px solid #e1e6d9; background: #eef1e8; border-radius: 13px; display: inline-flex; gap: 3px; min-width: 0; }
.mode-option { cursor: pointer; position: relative; margin: 0; }
.mode-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mode-option > span { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 9px; color: #67735f; font-size: 12px; font-weight: 500; transition: background .2s, color .2s, box-shadow .2s; }
.mode-option .icon { width: 16px; height: 16px; }
.mode-option input:checked + span { color: var(--ink); background: white; box-shadow: 0 2px 5px #263d2310, 0 0 0 1px #243d2310; }
.mode-option input:focus-visible + span { outline: 3px solid #6f9660; outline-offset: 2px; }
.mode-option input:disabled + span { opacity: .5; cursor: wait; }
.mode-option:hover input:not(:checked):not(:disabled) + span { background: #e3e9db; }
.workspace-label { display: inline-flex; align-items: center; gap: 10px; color: #677461; font-size: 11px; }
.status-dot { height: 5px; width: 5px; border-radius: 50%; background: #87a375; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(320px, 1fr); gap: 22px; align-items: start; animation-delay: .13s !important; }
.camera-panel, .result-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 20px #283d2204; min-width: 0; overflow: hidden; }
.camera-panel { padding: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 25px; margin-bottom: 18px; }
.panel-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.1px; }
.step-number { color: #98a18f; font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; }
.camera-status { border: 1px solid #e5e9e0; padding: 5px 9px; border-radius: 6px; font-size: 10px; color: #687260; display: inline-flex; align-items: center; gap: 6px; max-width: 58%; text-align: right; }
.camera-status::before { content: ""; display: block; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #aeb4a8; }
.camera-status[data-tone="success"] { color: #396644; background: #f0f6e9; border-color: #dce9d2; }
.camera-status[data-tone="success"]::before { background: #6c995c; }
.camera-status[data-tone="primary"] { color: #345c4d; background: #edf4ee; }
.camera-status[data-tone="primary"]::before { background: #64896b; animation: status-pulse 1.3s ease-in-out infinite; }
.camera-status[data-tone="warning"] { color: #795c29; background: #faf4e6; }
.camera-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 13px; background: radial-gradient(ellipse at 48% 44%, #294e40, #15372e 80%); isolation: isolate; }
.camera-stage::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: radial-gradient(#c0d2b3 0.6px, transparent 0.6px); background-size: 18px 18px; z-index: -1; }
.camera-stage video { width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transition: opacity .5s; background: #15372e; }
.camera-stage[data-active="true"] video { opacity: 1; }
.camera-stage video { transform: none; }
.camera-stage video.preview-mirrored { transform: scaleX(-1); }
.camera-preview-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--green); margin-top: 14px; }
.camera-preview-controls input { accent-color: var(--green); }
.camera-preview-controls span { color: var(--muted); font-size: 10px; }
.capture-duration-control { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.capture-duration-control label { font-size: 11px; color: var(--green); }
.capture-duration-control select { width: auto; max-width: 100%; font-size: 11px; border-color: var(--line); color: var(--ink); }
.capture-duration-control p { width: 100%; margin: 0; font-size: 10px; line-height: 1.8; color: var(--muted); }
.http-camera-notice { padding: 14px; border: 1px solid #e7d9b9; background: #fff7e9; border-radius: 10px; margin-top: 16px; }
.http-camera-notice p { font-size: 11px; line-height: 1.8; color: #7d6135; margin-bottom: 7px; }
.stage-caption { position: absolute; top: 19px; left: 22px; color: #c4d2bb; font-size: 7px; letter-spacing: 1.7px; display: flex; gap: 6px; align-items: center; opacity: .7; }
.stage-caption .icon { height: 11px; width: 11px; }
.camera-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 30px; color: #eff4e7; }
.hand-art { width: 150px; height: 143px; position: relative; display: grid; place-items: center; margin-bottom: 8px; }
.hand-illustration { width: 77px; height: 95px; color: #ccdda7; transform: rotate(-9deg); animation: hand-welcome 1.5s ease-out both; }
.hand-orbit { position: absolute; border: 1px solid #b7c99013; border-radius: 50%; pointer-events: none; }
.orbit-one { width: 127px; height: 127px; }
.orbit-two { width: 174px; height: 174px; border-style: dashed; opacity: .6; }
.camera-placeholder h3 { font-size: 18px; font-weight: 450; letter-spacing: -.3px; margin: 8px 0 9px; }
.camera-placeholder p { font-size: 12px; line-height: 1.8; color: #afc1af; margin: 0; }
.camera-off-note { display: flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 8px; color: #9db29c; }
.camera-off-note span { width: 4px; height: 4px; background: #9db29c; border-radius: 50%; }
.camera-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.camera-switch { display: flex; gap: 5px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 9px; font-size: 12px; font-weight: 550; line-height: 1.4; border: 1px solid transparent; transition: background .2s, box-shadow .2s, color .2s, transform .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid #6f9660; outline-offset: 3px; box-shadow: none; }
.btn:disabled { opacity: 1; color: #a0a79a; background: #f1f3ed; border-color: #e9ece3; cursor: not-allowed; }
.btn .icon { width: 15px; height: 15px; }
.btn-ink, .btn-primary { background: var(--ink); color: #fff; }
.btn-ink:hover:not(:disabled), .btn-primary:hover { background: #315444; color: #fff; box-shadow: 0 4px 12px #203c331a; }
.btn-quiet { color: var(--muted); background: none; padding-inline: 10px; }
.btn-quiet:disabled { background: none; border-color: transparent; }
.btn-quiet:hover:not(:disabled) { background: #f1f3ed; }
.btn-capture { color: var(--green); background: #edf2e5; border-color: #dfe8d4; }
.btn-capture:hover:not(:disabled) { background: #dfeacd; color: var(--ink); }
.shutter-icon { width: 15px; height: 15px; border: 1.4px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.shutter-icon::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.capture-help { display: flex; align-items: center; gap: 7px; margin: 15px 0 0; font-size: 11px; line-height: 1.6; color: #697461; }
.capture-help .icon { width: 12px; height: 12px; }
.capture-tray { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 18px; animation: fade-up .3s ease-out; }
.capture-tray-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 11px; }
.capture-tray-heading p { margin: 0; font-size: 11px; color: var(--muted); }
.text-button { display: flex; align-items: center; gap: 5px; border: none; padding: 5px 0; background: none; color: #62715e; font-size: 10px; }
.text-button:hover { color: #944e3a; }
.text-button .icon { width: 12px; height: 12px; }
.capture-filmstrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; scrollbar-color: #c8d2c0 transparent; }
.capture-frame { position: relative; flex: 0 0 78px; margin: 0; animation: frame-in .3s ease-out both; }
.capture-thumbnail { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #183b30; border-radius: 7px; display: block; }
.capture-frame figcaption { position: absolute; bottom: 3px; left: 4px; padding: 0 4px; background: #123327cf; border-radius: 3px; color: #fff; font-size: 8px; font-variant-numeric: tabular-nums; }
.capture-progress { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(270px, 80%); color: #fff; background: #12372ee8; padding: 12px 15px; border: 1px solid #76927655; border-radius: 10px; backdrop-filter: blur(12px); text-align: center; font-size: 11px; }
.capture-progress-track { height: 3px; background: #ffffff20; border-radius: 3px; margin-top: 9px; overflow: hidden; }
.capture-progress-track span { display: block; width: 0; height: 100%; background: var(--lime); transition: width .18s linear; }
.capture-flash { position: absolute; inset: 0; pointer-events: none; background: white; opacity: 0; }
.capture-stage-complete .capture-flash { animation: capture-flash .4s ease-out; }
.result-panel { display: flex; flex-direction: column; min-height: 100%; }
.result-panel > .panel-heading { margin: 0; padding: 22px 24px 0; }
.result-heading-icon { color: #90a573; width: 18px; height: 18px; }
.result-content { flex: 1; min-height: 245px; padding: 33px 28px 15px; text-align: center; display: flex; align-items: center; flex-direction: column; justify-content: center; }
.result-empty-art { width: 73px; height: 61px; margin-bottom: 22px; color: #a9b99b; }
.result-empty-art svg { width: 100%; height: 100%; }
.result-kicker { display: block; font-size: 9px; letter-spacing: 1.2px; font-weight: 500; color: #6c795f; margin-bottom: 12px; }
.recognition-result { margin: 0 0 10px; font-size: 18px; letter-spacing: -.4px; line-height: 1.4; font-weight: 450; max-width: 240px; overflow-wrap: anywhere; }
.recognition-observation { color: #697461; font-size: 12px; line-height: 1.8; max-width: 280px; margin: 0; }
.recognition-confidence { color: #697461; font-size: 11px; line-height: 1.7; margin: 13px 0 0; }
.recognition-confidence:empty { display: none; }
.result-content[data-state="recognized"] .recognition-result { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-size: 43px; margin-top: 10px; animation: fade-up .4s ease-out; }
.result-content:not([data-state="empty"]) .result-empty-art { display: none; }
.result-content[data-state="error"] .recognition-result { color: #9a6044; }
.result-content[data-state="loading"] { background: radial-gradient(ellipse at center, #f2f5eb, transparent 70%); }
.thinking-dots { display: none; gap: 5px; margin-top: 22px; }
.result-content[data-state="loading"] .thinking-dots { display: flex; }
.thinking-dots i { width: 5px; height: 5px; border-radius: 50%; background: #78915e; animation: thinking 1.3s ease-in-out infinite; }
.thinking-dots i:nth-child(2) { animation-delay: .15s; }
.thinking-dots i:nth-child(3) { animation-delay: .3s; }
.translation-action { padding: 5px 24px 20px; }
.btn-translate { width: 100%; color: var(--ink); background: var(--lime); border-color: #d2e2a5; padding: 13px 16px; font-size: 12px; }
.btn-translate:hover:not(:disabled) { background: #d0e3a3; color: var(--ink); box-shadow: 0 4px 13px #bfd29725; }
.btn-translate:disabled { color: #78826e; background: #eaf0df; border-color: #e4ead9; }
.btn-translate .arrow-icon { margin-left: auto; transition: transform .2s; }
.btn-translate:hover:not(:disabled) .arrow-icon { transform: translateX(3px); }
.translation-action > p { text-align: center; font-size: 11px; color: #697461; margin: 9px 0 0; }
.sentence-section { border-top: 1px solid var(--line); padding: 19px 24px 22px; background: #fcfdf9; }
.sentence-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.sentence-heading h3 { font-size: 12px; font-weight: 600; margin: 0; }
.sentence-heading > span { color: #697461; font-size: 10px; }
.sentence-tokens { font-size: 12px; color: #697461; line-height: 1.7; margin-bottom: 15px; overflow-wrap: anywhere; }
.word-chip { display: inline-block; padding: 3px 8px; margin: 0 4px 4px 0; border: 1px solid #dde7d1; border-radius: 5px; background: #eef4e6; color: #4f6641; animation: frame-in .25s ease-out; }
.sentence-text { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.sentence-text:empty { display: none; }
.sentence-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn-listen { background: white; border-color: #dce5d4; color: #49633d; padding: 8px 12px; font-size: 11px; }
.btn-listen:disabled { background: transparent; color: #a0a892; border-color: #e6eadf; }
.btn-listen:hover:not(:disabled) { background: #edf4e5; }
.sentence-tools { display: flex; gap: 3px; }
.icon-button { border: none; background: none; color: #708065; display: grid; place-items: center; height: 32px; width: 32px; border-radius: 7px; transition: background .2s; }
.icon-button:hover:not(:disabled) { background: #eaf0e1; }
.icon-button:disabled { color: #b6bdae; cursor: not-allowed; }
.icon-button .icon { width: 14px; height: 14px; }
.studio-footnotes { display: flex; justify-content: space-between; gap: 30px; margin: 21px 2px 35px; animation-delay: .2s !important; }
.studio-footnotes p { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: #697461; font-size: 11px; line-height: 1.8; }
.studio-footnotes p:first-child { max-width: 550px; }
.studio-footnotes p:last-child { text-align: right; }
.studio-footnotes .icon { width: 13px; height: 13px; margin-top: 2px; }
.studio-footnotes a { color: #5f7652; }
.prototype-tag { white-space: nowrap; font-size: 9px; letter-spacing: .6px; background: #eaf0e0; color: #637149; padding: 2px 5px; border-radius: 4px; }
.configuration-note { padding: 12px 16px; font-size: 12px; background: #f0ecd9; color: #746b3d; border-radius: 10px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 69px; color: #697461; font-size: 11px; }
.footer-inner > span:last-child { display: flex; align-items: center; gap: 9px; }
.footer-divider { color: #c1c9b7; margin: 0 7px; }
.guatemala-flag { display: inline-flex; width: 14px; height: 10px; border-radius: 2px; overflow: hidden; border: 1px solid #00000006; }
.guatemala-flag i { flex: 1; background: #9cc8da; }
.guatemala-flag i:nth-child(2) { background: white; }
.privacy-page { max-width: 740px; margin: 54px auto; padding: 40px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.privacy-page h1 { font-size: 35px; margin-bottom: 25px; }
.privacy-page h2 { font-size: 17px; margin-top: 28px; margin-bottom: 12px; }
.privacy-page p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.swal2-popup { border-radius: 22px !important; padding: 28px !important; color: var(--ink) !important; font-family: inherit !important; }
.swal2-title { font-size: 23px !important; letter-spacing: -.5px; }
.swal2-html-container { font-size: 14px !important; line-height: 1.8 !important; color: var(--muted) !important; }
.swal2-styled.swal2-confirm { background: var(--green) !important; border-radius: 9px !important; font-size: 13px !important; }
.swal2-styled.swal2-cancel { background: #eef1e8 !important; color: var(--ink) !important; border-radius: 9px !important; font-size: 13px !important; }
.reveal { animation: fade-up .65s cubic-bezier(.2,.7,.25,1) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes frame-in { from { opacity: 0; transform: translateY(5px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hand-welcome { from { opacity: 0; transform: translateY(8px) rotate(-16deg); } to { opacity: 1; transform: translateY(0) rotate(-9deg); } }
@keyframes thinking { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }
@keyframes status-pulse { 50% { opacity: .35; } }
@keyframes capture-flash { from { opacity: .32; } to { opacity: 0; } }
@media (min-width: 1600px) { .intro { padding-top: 62px; padding-bottom: 45px; } }
@media (max-width: 1100px) {
    .app-container { width: calc(100% - 64px); }
    .studio-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; }
    .camera-panel { padding: 18px; }
    .camera-stage { aspect-ratio: 4 / 3; }
    .intro-note { display: none; }
    .camera-controls .btn { padding: 11px 12px; }
    .camera-controls { gap: 8px; }
    .camera-controls .btn-quiet { padding-inline: 7px; }
    .studio-footnotes { gap: 25px; }
}
@media (max-width: 850px) {
    .app-container { width: calc(100% - 40px); }
    .nav-inner { height: 75px; }
    .intro { padding: 35px 0 28px; }
    .studio-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .camera-stage { aspect-ratio: 16 / 10; }
    .result-content { min-height: 250px; }
    .studio-footnotes { flex-direction: column; gap: 12px; }
    .studio-footnotes p:last-child { text-align: left; }
    .workspace-label { font-size: 9px; gap: 6px; }
    .mode-option > span { padding: 10px 13px; }
}
@media (max-width: 540px) {
    .app-container { width: calc(100% - 32px); }
    .nav-inner { height: 73px; }
    .brand { font-size: 25px; }
    .brand-mark { width: 32px; height: 36px; border-radius: 10px; margin-right: 8px; }
    .brand-mark svg { width: 25px; height: 25px; }
    .brand-beta { font-size: 7px; margin-left: 8px; }
    .nav-links { gap: 0; }
    .nav-links a { font-size: 11px; }
    .nav-translator { display: none !important; }
    .intro { padding: 32px 3px 26px; }
    h1 { font-size: 42px; line-height: 1.11; letter-spacing: -1.8px; }
    .mobile-break { display: block; }
    .eyebrow { font-size: 7px; letter-spacing: 1.6px; margin-bottom: 17px; }
    .intro-copy { font-size: 12px; max-width: 290px; margin-top: 15px; }
    .workspace-toolbar { align-items: stretch; gap: 12px; flex-direction: column-reverse; margin-bottom: 14px; }
    .workspace-label { align-self: flex-start; font-size: 9px; margin-left: 4px; }
    .mode-picker { display: flex; width: 100%; }
    .mode-option { flex: 1; }
    .mode-option > span { padding: 11px 6px; font-size: 11px; gap: 6px; }
    .mode-option .icon { height: 14px; width: 14px; }
    .camera-panel { padding: 14px; border-radius: 17px; }
    .panel-heading { margin-bottom: 14px; gap: 6px; }
    .panel-heading h2 { font-size: 11px; gap: 6px; }
    .camera-status { font-size: 9px; padding: 4px 6px; }
    .camera-stage { aspect-ratio: 1 / 1; }
    .camera-placeholder { padding: 20px 10px; }
    .camera-placeholder h3 { font-size: 16px; }
    .hand-art { height: 105px; }
    .hand-illustration { width: 66px; height: 80px; }
    .orbit-one { width: 110px; height: 110px; }
    .orbit-two { width: 142px; height: 142px; }
    .camera-off-note { margin-top: 12px; }
    .camera-controls { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 10px; }
    .camera-switch { justify-content: space-between; }
    .camera-switch .btn-ink { flex: 1; }
    .camera-controls .btn { min-height: 42px; font-size: 12px; }
    .camera-controls .btn-quiet { padding-inline: 14px; }
    .btn-capture { width: 100%; }
    .capture-help { font-size: 11px; align-items: flex-start; margin-top: 12px; }
    .capture-help .icon { margin-top: 2px; }
    .capture-tray-heading { align-items: flex-start; }
    .capture-tray-heading p, .text-button { font-size: 9px; }
    .result-panel { border-radius: 17px; }
    .result-panel > .panel-heading { padding: 20px 20px 0; }
    .result-panel .panel-heading h2 { font-size: 12px; }
    .result-content { min-height: 250px; }
    .translation-action { padding-inline: 20px; }
    .sentence-section { padding-inline: 20px; }
    .icon-button { height: 40px; width: 36px; }
    .btn-listen { min-height: 40px; }
    .studio-footnotes { margin-inline: 3px; }
    .footer-inner { font-size: 10px; gap: 8px; flex-wrap: wrap; padding-block: 17px; min-height: 65px; }
    .footer-divider { margin: 0 2px; }
    .privacy-page { padding: 25px; margin: 28px 0; }
    .privacy-page h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Accounts and conversations share the translator's visual foundation. */
.live-capture-control { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.live-switch { display: inline-flex; gap: 9px; align-items: center; position: relative; cursor: pointer; font-size: 11px; color: var(--green); }
.live-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.live-switch-track { width: 29px; height: 17px; border-radius: 12px; background: #dce3d4; position: relative; transition: background .2s; }
.live-switch-track::before { content: ""; width: 11px; height: 11px; background: white; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform .2s; }
.live-switch input:checked + .live-switch-track { background: var(--green); }
.live-switch input:checked + .live-switch-track::before { transform: translateX(12px); }
.live-switch input:focus-visible + .live-switch-track { outline: 3px solid #6f9660; outline-offset: 3px; }
.live-switch input:disabled ~ span { opacity: .5; cursor: not-allowed; }
#auto-status { font-size: 10px; color: var(--muted); }
.nav-logout { background: none; border: none; color: var(--muted); font-size: 12px; padding: 0; }
.account-card { width: min(480px, 100%); padding: 36px; margin: 48px auto; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.account-card h1 { font-size: 42px; line-height: 1.12; }
.account-copy { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 20px 0 24px; }
.account-form .form-label { display: block; margin-top: 18px; margin-bottom: 7px; font-size: 12px; font-weight: 550; }
.account-form .form-control, .account-form .form-select { border-color: #dfe5d7; border-radius: 9px; padding: 11px 13px; font-size: 13px; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: #829d70; box-shadow: 0 0 0 3px #a1bb8120; }
.form-help { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 7px 0 0; }
.account-bottom { margin: 26px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.conversation-start { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; }
.conversation-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #eef3e7; margin-bottom: 28px; }
.conversation-entry .eyebrow { font-size: 9px; }
.conversation-entry h2 { font-family: Georgia, serif; font-size: 23px; margin: 8px 0; }
.conversation-entry p, .conversation-guide { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.conversation-entry p { max-width: 620px; }
.conversation-entry .btn { flex-shrink: 0; }
.conversation-guide { margin: -10px 0 25px; }
.invitation-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .6fr); gap: 30px; padding: 28px; background: #eef4e5; border: 1px solid #dce7cf; border-radius: var(--radius); margin-bottom: 24px; }
.invitation-area:has(.invitation-preview[hidden]) { grid-template-columns: minmax(0, 1fr); }
.invitation-intro h2 { font-family: Georgia, serif; font-size: 29px; }
.invitation-intro p:not(.eyebrow) { font-size: 12px; line-height: 1.8; color: var(--muted); }
.invitation-preview { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.invitation-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.invitation-warning { padding: 12px 15px; border-radius: 9px; background: #fff4df; color: #7d6135 !important; margin-top: 15px; }
.conversation-list { border: 1px solid var(--line); background: white; border-radius: var(--radius); overflow: hidden; margin-bottom: 45px; }
.conversation-empty { padding: 60px 25px; text-align: center; }
.conversation-empty > .icon { color: #8a9e74; width: 38px; height: 38px; margin-bottom: 20px; }
.conversation-empty h2 { font-size: 19px; font-weight: 500; }
.conversation-empty p { font-size: 13px; color: var(--muted); margin-top: 13px; }
.conversation-row { display: flex; align-items: center; gap: 16px; padding: 22px 25px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); transition: background .2s; }
.conversation-row:last-child { border-bottom: none; }
.conversation-row:hover { background: #f5f8ef; }
.conversation-row strong { display: block; font-size: 14px; font-weight: 550; }
.conversation-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.conversation-row .conversation-state { margin-left: auto; }
.conversation-avatar { flex: 0 0 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #edf3e3; color: #658253; font-family: Georgia, serif; font-size: 22px; }
.conversation-state { font-size: 10px; border-radius: 6px; padding: 5px 8px; color: #6d7961; background: #edf0e7; white-space: nowrap; }
.conversation-state[data-state="Activa"] { background: #e9f3df; color: #4f6e3c; }
.conversation-state[data-state="Finalizada"] { background: #f1eee6; color: #81725b; }
.invite-code-input { letter-spacing: 4px; text-transform: uppercase; font-size: 21px !important; text-align: center; }
.room-intro { padding: 30px 0 26px; }
.room-back { font-size: 11px; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 22px; }
.room-intro h1 { font-size: 38px; margin-bottom: 12px; }
.room-preference { display: inline-block; font-size: 11px; margin-top: 14px; color: var(--green); }
.room-viewer-panel { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #eef3e7; }
.room-viewer-panel h2 { font-size: 33px; line-height: 1.18; font-family: Georgia, serif; margin-bottom: 18px; }
.room-viewer-panel h2 em { font-weight: normal; }
.viewer-description { font-size: 12px; line-height: 1.9; color: var(--muted); }
.received-message { background: white; border: 1px solid #dfe7d6; border-radius: 16px; padding: 25px; margin: 25px 0; }
.received-message-text { font-family: Georgia, serif; font-size: 28px; line-height: 1.5; color: var(--ink); margin: 15px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.viewer-footnote { color: var(--muted); font-size: 10px; line-height: 1.8; margin-bottom: 0; }
.prefer-signs .room-camera-panel { grid-column: 1; grid-row: 1; }
.prefer-signs .chat-panel { grid-column: 2; grid-row: 1; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr); gap: 22px; margin-bottom: 35px; align-items: start; }
.chat-panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.chat-heading { padding: 24px; display: flex; gap: 15px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.chat-heading h2 { font-size: 17px; margin: 0 0 8px; font-weight: 550; }
.chat-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.chat-heading-status { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
#connection-status { font-size: 10px; color: var(--muted); }
.chat-toolbar { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 10px 24px; border-bottom: 1px solid var(--line); }
.chat-toolbar .text-button { font-size: 11px; }
.text-button:disabled { color: #a8b19d; cursor: not-allowed; }
.message-scroll { height: 470px; overflow-y: auto; padding: 22px; background: #fafbf6; scrollbar-width: thin; scrollbar-color: #c9d3c0 transparent; }
.chat-empty { display: flex; flex-direction: column; justify-content: center; text-align: center; height: 100%; color: #879879; align-items: center; }
.chat-empty > .icon { width: 40px; height: 40px; margin-bottom: 20px; }
.chat-empty h3 { font-size: 19px; color: #5f7651; }
.chat-empty p { font-size: 12px; max-width: 220px; line-height: 1.8; }
#message-list { display: flex; flex-direction: column; gap: 16px; }
.message-bubble { max-width: 86%; padding: 13px 16px; border: 1px solid #e2e8da; border-radius: 15px 15px 15px 3px; background: white; align-self: flex-start; animation: fade-up .25s ease-out; }
.message-own { align-self: flex-end; background: #eaf2df; border-color: #e0e9d4; border-radius: 15px 15px 3px 15px; }
.message-meta { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.message-meta strong { font-size: 10px; font-weight: 550; color: #60724f; }
.message-meta time { font-size: 9px; color: #79876b; }
.message-content { margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-source { display: block; font-size: 9px; line-height: 1.7; color: #768369; margin-top: 8px; }
.message-resources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.message-resources figure { margin: 0; max-width: 220px; }
.message-resources img, .message-resources video { width: 100%; max-height: 210px; object-fit: contain; border-radius: 8px; background: #e1e9d5; }
.message-resources figcaption { font-size: 10px; color: var(--muted); margin-top: 4px; }
.room-notice { font-size: 11px; color: var(--muted); padding: 12px 24px; margin: 0; border-top: 1px solid var(--line); }
.message-compose { display: flex; gap: 10px; align-items: flex-end; padding: 0 22px 16px; }
.message-compose textarea { resize: vertical; min-height: 66px; max-height: 150px; flex: 1; width: 0; border: 1px solid #e0e6d8; border-radius: 11px; background: #f8faf3; padding: 12px; font-size: 13px; color: var(--ink); }
.message-compose textarea::placeholder { color: #89957b; }
.message-compose .btn { min-height: 43px; }
.chat-privacy { color: #78846e; font-size: 10px; line-height: 1.8; margin: 0; padding: 0 24px 20px; }
.room-modes { display: flex; margin-bottom: 16px; }
.room-modes .mode-option { flex: 1; }
.room-modes .mode-option > span { padding: 8px; font-size: 11px; }
.room-camera-panel .camera-stage { aspect-ratio: 4 / 3; }
.room-camera-panel .camera-controls { display: grid; grid-template-columns: 1fr; }
.room-camera-panel .camera-switch { justify-content: space-between; }
.room-camera-panel .camera-placeholder h3 { font-size: 16px; }
.room-camera-panel .camera-placeholder p { max-width: 220px; }
.room-camera-icon { width: 37px; height: 37px; color: #c0d496; margin-bottom: 22px; }
.room-result { min-height: 155px; padding: 25px 8px 20px; }
.room-camera-panel .capture-help { flex-wrap: wrap; }
.invitation-card { display: flex; align-items: center; flex-direction: column; }
.invitation-qr { width: min(230px, 100%); height: auto; margin: 15px 0 20px; }
.invitation-card p { font-size: 13px; line-height: 1.8; }
.invitation-code { font-size: 25px; letter-spacing: 5px; color: var(--ink); background: #eef4e3; padding: 10px 20px; border-radius: 9px; margin-bottom: 15px; }
.invitation-link { font-size: 12px; margin-top: 12px; }
.prefer-signs .room-camera-panel { box-shadow: 0 0 0 3px #dce9cb; border-radius: var(--radius); }
@media (max-width: 850px) {
    .room-grid { grid-template-columns: minmax(0, 1fr); }
    .prefer-signs .room-camera-panel { grid-row: 1; }
    .prefer-signs .chat-panel { grid-column: 1; grid-row: 2; }
    .prefer-spanish .room-viewer-panel { grid-row: 1; }
    .nav-links { gap: 18px; }
    .nav-privacy, .nav-account { display: none !important; }
    .message-scroll { height: 430px; }
}
@media (max-width: 540px) {
    .conversation-entry { flex-direction: column; align-items: flex-start; padding: 20px; }
    .nav-inner { height: auto; min-height: 73px; flex-wrap: wrap; gap: 14px; padding-block: 16px; }
    .nav-links { width: 100%; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .conversation-entry .btn { width: 100%; }
    .invitation-area { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 15px; }
    .account-card { padding: 25px; margin-block: 28px; }
    .account-card h1 { font-size: 37px; }
    .conversation-start { flex-wrap: wrap; }
    .conversation-row { gap: 10px; padding: 18px 15px; }
    .conversation-row strong { font-size: 12px; }
    .conversation-row .icon { display: none; }
    .conversation-row .conversation-state { font-size: 9px; }
    .conversation-avatar { flex-basis: 36px; height: 36px; }
    .room-intro h1 { font-size: 32px; }
    .chat-heading { padding: 18px; }
    .chat-toolbar { padding-inline: 18px; }
    .message-scroll { padding: 15px; height: 390px; }
    .message-bubble { max-width: 92%; }
    .message-compose { padding-inline: 15px; }
    .message-compose .btn { padding-inline: 12px; }
    .message-compose .btn span { display: none; }
    .room-notice, .chat-privacy { padding-inline: 18px; }
    .room-camera-panel .camera-stage { aspect-ratio: 4 / 3; }
}
