:root{--purple:#5e4e87;--purple-dark:#443364;--lavender:#efecf7;--ink:#302c3b;--muted:#797483;--line:#e6e3ed;--paper:#faf9fc;--green:#2f7860;--red:#b94c53;--amber:#a87525;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;background:var(--paper);color-scheme:light;--surface:#fff;--surface-rail:#f7f9fc;--surface-soft:#edf2f8;--surface-source:#f8fafc;--surface-hover:#fbfcff;--surface-selected:#f5f8ff;--surface-selected-label:#e9f0fd;--surface-chip:#eef3fa;--line-soft:#e7ecf3;--secondary-ink:#566575;--source-ink:#244baa;--icon-ink:#96a5b8;--warning-bg:#fffbef;--warning-line:#e8dcb7;--warning-ink:#796126;--error-bg:#fff5f5;--error-line:#efc9ca;--error-ink:#a13a43;--success-bg:#f1faf5;--success-line:#c9e4d7;--badge-bg:#f0f2f5;--badge-ink:#6a7481;--draft-bg:#edf1fc;--draft-ink:#4169b8;--review-bg:#fff3d9;--review-ink:#947127;--approved-bg:#e9f5ee;--attention-bg:#fff0ef;--token-bg:#eff3ff;--token-line:#c9d6fc;--token-ink:#5773c6;--placeholder-bg:#f8f0ff;--placeholder-line:#e2c9f4;--placeholder-ink:#a063c6;--status-neutral:#c5cfdc;--status-approved:#60a483;--status-draft:#658be5;--status-review:#e4af4b;--status-attention:#e89088;--issue-ink:#eb958b;--unsaved-ink:#9d7539;--progress-bg:#e3e9f3;--toast-bg:#25314a;--login-art-bg:#eeebf4;--login-art-ink:#72608e;--orbit-line:#d4cbe0;--primary-fill:var(--purple);--primary-hover:var(--purple-dark);--on-primary:#fff}
*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{outline-offset:3px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:var(--purple);text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:27px;font-weight:600;margin-bottom:8px}h2{font-size:17px;font-weight:600}h3{font-size:14px}p{line-height:1.6}.muted,.subtle{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--purple);font-weight:700;margin-bottom:12px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 13px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--purple);white-space:nowrap}.button.primary{background:var(--primary-fill);color:var(--on-primary);border-color:var(--primary-fill)}.button.primary:hover{background:var(--primary-hover)}.button.secondary:hover{background:var(--lavender)}.button.small{min-height:30px;padding:5px 10px;font-size:12px}.text-button{border:0;background:none;padding:0;color:var(--purple);font-size:inherit}.text-button:hover{text-decoration:underline}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:4px;background:none;color:var(--icon-ink);flex:none}.icon-button:hover,.icon-button.active{color:var(--purple);background:var(--lavender)}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.icon-library{position:absolute;width:0;height:0;overflow:hidden}
input,select,textarea{border:1px solid var(--line);border-radius:4px;background:var(--surface);padding:8px 10px;max-width:100%}input:focus,select:focus,textarea:focus{border-color:var(--purple)}select{min-height:34px}textarea{resize:vertical;line-height:1.6}label{display:block;font-size:12px;font-weight:500;margin-bottom:18px}label input,label textarea,label select{display:block;width:100%;margin-top:7px;font-weight:400}.checkbox{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:400}.checkbox input{width:auto;margin:0;accent-color:var(--purple)}fieldset{border:1px solid var(--line);padding:15px;border-radius:5px;margin:20px 0}legend{font-size:12px}.checkboxes{display:grid;grid-template-columns:1fr 1fr;gap:12px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:#5e4e87;color:var(--on-primary);font-size:30px;letter-spacing:-3px;padding-right:4px;font-family:Georgia,serif}.avatar{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--lavender);color:var(--purple);font-weight:600;flex:none}
.notice{border:1px solid var(--warning-line);background:var(--warning-bg);border-radius:4px;color:var(--warning-ink);padding:12px;font-size:12px;line-height:1.6;white-space:pre-wrap;margin:0 0 16px;overflow-wrap:anywhere}.notice.error{border-color:var(--error-line);background:var(--error-bg);color:var(--error-ink)}.notice.success{border-color:var(--success-line);background:var(--success-bg);color:var(--green)}.footnote{font-size:12px;color:var(--muted);line-height:1.6}.badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:4px;font-size:10px;white-space:nowrap;background:var(--badge-bg);color:var(--badge-ink)}.badge.draft{background:var(--draft-bg);color:var(--draft-ink)}.badge.in_review{background:var(--review-bg);color:var(--review-ink)}.badge.approved{background:var(--approved-bg);color:var(--green)}.badge.changes_requested,.badge.needs_review{background:var(--attention-bg);color:var(--red)}.empty{text-align:center;padding:65px 20px;color:var(--muted)}.empty strong{display:block;color:var(--ink);margin-bottom:8px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 20px;background:var(--toast-bg);color:var(--on-primary);border-radius:6px;box-shadow:0 3px 15px #17253a20;z-index:30;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
/* Project shell */
.workspace{--purple:#2454e7;--purple-dark:#1744cb;--lavender:#edf3fd;--ink:#28303a;--muted:#7b8490;--line:#d7dfe9;--paper:var(--surface);background:var(--surface);height:100dvh;overflow:hidden}
.rail{position:fixed;inset:0 auto 0 0;width:64px;border-right:1px solid var(--line);background:var(--surface-rail);display:flex;flex-direction:column;z-index:10}.rail-brand{display:flex;align-items:center;justify-content:center;height:78px}.rail nav{padding-top:8px}.nav{display:flex;align-items:center;justify-content:center;width:100%;height:60px;border:0;background:none;color:var(--muted);position:relative}.nav .icon{width:23px;height:23px}.nav:hover{background:var(--surface-hover)}.nav.active{color:var(--purple);background:var(--lavender);box-shadow:inset 3px 0 var(--purple)}.rail-bottom{margin-top:auto;display:flex;align-items:center;flex-direction:column;gap:8px}.rail-bottom form{width:100%}.count{position:absolute;top:8px;right:8px;min-width:15px;border-radius:8px;background:var(--primary-fill);color:var(--on-primary);padding:2px 4px;font-size:9px}.main{margin-left:64px;height:100%;display:flex;flex-direction:column;min-width:0}.project-header{flex:none;border-bottom:1px solid var(--line);padding:0 26px;background:var(--surface)}.project-title{display:flex;align-items:center;gap:10px;height:49px;font-size:13px}.project-title>.text-button{color:var(--muted)}.project-title strong{font-weight:500}.host-pill{font-size:10px;background:var(--surface-chip);border-radius:3px;color:var(--muted);padding:3px 6px;margin-left:3px}.global-alert{margin:10px 16px 0;flex:none}.editor-view{display:flex;flex-direction:column;min-height:0;flex:1}.editor-toolbar{flex:none;padding:14px 24px 12px;border-bottom:1px solid var(--line)}.filter-row{display:flex;align-items:center;gap:8px}.filter-row select{font-size:12px;max-width:240px}.file-filter{background:var(--primary-fill);border-color:var(--primary-fill);color:var(--on-primary);min-width:130px}.file-filter option{background:var(--surface);color:var(--ink)}.filter-row .search{display:flex;align-items:center;gap:6px;margin:0 0 0 auto;border:1px solid var(--line);border-radius:4px;width:330px;color:var(--icon-ink);font-weight:400}.search .icon{width:16px;height:16px;margin-left:9px}.search input{border:0;margin:0;min-width:0;width:100%;padding:8px 6px;font-size:12px}.search:focus-within{border-color:var(--purple)}.search input:focus{outline:none}.secondary-row{margin-top:10px;min-height:30px}.catalog-summary{font-size:12px;white-space:nowrap}.catalog-summary strong{font-weight:600}.catalog-summary span{margin-right:11px}.language-controls{margin-left:auto;display:flex;gap:8px;align-items:center}.language-controls select{min-width:170px}.segmented{display:flex;border:1px solid var(--line);border-radius:4px;overflow:hidden}.segmented button{border:0;background:var(--surface);color:var(--purple);font-size:11px;padding:8px 10px}.segmented button+button{border-left:1px solid var(--line)}.segmented button.active{background:var(--lavender)}.review-label{font-size:10px;color:var(--purple);background:var(--lavender);padding:4px 7px;border-radius:4px}.language-picker{position:relative}.language-picker summary{list-style:none;border:1px solid var(--line);border-radius:4px;min-width:170px;padding:8px 10px;cursor:pointer;font-size:12px}.language-picker summary::after{content:'⌄';float:right;margin-left:12px}.language-menu{position:absolute;right:0;top:38px;z-index:15;width:230px;border:1px solid var(--line);border-radius:4px;box-shadow:0 4px 16px #20385922;background:var(--surface);padding:15px}.language-menu p{font-size:11px;color:var(--muted);margin-bottom:12px}.language-menu .checkbox{margin:10px 0}.language-menu button{width:100%;margin-top:10px}
/* Stacked language editor */
.markup-toggle{width:auto;padding-inline:7px;gap:5px;font-size:11px}.approval-summary{min-width:0}.approval-heading{display:flex;align-items:center;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;font-size:11px;margin-bottom:7px}.approval-heading strong{font-size:12px;font-weight:600;white-space:nowrap}.approval-heading>span{color:var(--muted);white-space:nowrap}.approval-track{height:5px;background:var(--progress-bg);border-radius:4px;overflow:hidden}.approval-track>span{display:block;height:100%;background:var(--green);border-radius:4px}.approval-counts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:8px;font-size:11px;color:var(--secondary-ink)}.approval-count{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.approval-count strong{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}.approval-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--status-neutral);flex:none}.approval-count.approved .approval-dot{background:var(--green)}.file-approval{display:flex;align-items:center;gap:24px;border-top:1px solid var(--line-soft);padding-top:12px;margin-top:10px}.file-approval-title{flex:1;min-width:0}.file-approval-title>strong{display:block;font-size:12px;font-weight:600;margin-bottom:5px}.file-approval-title>span{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-approval>.approval-summary{flex:0 1 420px;min-width:280px}.project-approval{margin-bottom:22px}.file-card .approval-heading>span{font-size:10px}.file-card .approval-counts{gap:6px 12px;font-size:10px}
@media(max-width:850px){.context-panel{top:0}}
@media(max-width:600px){.file-approval{flex-wrap:wrap;gap:10px}.file-approval-title{flex:1 1 100%}.file-approval>.approval-summary{flex:1 1 100%;min-width:0}.context-panel{top:0}}
.table-footer{position:sticky;bottom:0;z-index:3;flex-wrap:wrap}.table-footer .pagination-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.load-size{display:flex;align-items:center;gap:7px;margin:0;font-size:11px;font-weight:400}.load-size select{width:auto;min-height:30px;margin:0;padding:5px 7px;font-size:12px}
.editor-layout{position:relative;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 310px;min-height:0}.editor-layout.context-closed{grid-template-columns:minmax(0,1fr)}.catalog-pane{min-width:0;overflow-y:auto;overflow-x:hidden;position:relative}.file-group{border-bottom:1px solid var(--line)}.file-heading{display:flex;align-items:center;gap:9px;background:var(--surface-soft);border-block:1px solid var(--line);min-height:32px;padding:5px 22px;font-size:12px;position:sticky;top:0;z-index:2}.file-heading .icon{width:14px;height:14px;color:var(--muted)}.file-heading strong{font-weight:600}.file-heading small{font-size:11px;color:var(--muted);border-left:1px solid var(--line);padding-left:10px;margin-left:5px}.file-heading>button{margin-left:auto;font-size:11px}.key-block{display:grid;grid-template-columns:clamp(120px,18%,220px) minmax(0,1fr);border-bottom:1px solid var(--line)}.key-block:last-child{border-bottom:0}.key-context{padding:18px 10px 12px 14px;min-width:0;border-right:1px solid var(--line-soft)}.key-name{font-size:12px;color:var(--muted);overflow-wrap:anywhere;line-height:1.6;margin-bottom:5px}.key-file{font-size:11px;line-height:1.5;color:var(--secondary-ink);overflow-wrap:anywhere}.key-tools{display:flex;gap:3px;margin-top:9px}.key-tools .icon-button{width:24px;height:24px}.key-tools .icon{width:15px;height:15px}.language-stack{min-width:0}.language-row{display:grid;grid-template-columns:108px minmax(0,1fr);border-bottom:1px solid var(--line);min-height:62px}.language-row:last-child{border-bottom:0}.language-name{display:flex;align-items:flex-start;justify-content:flex-end;gap:7px;background:var(--surface-soft);padding:19px 12px;font-size:12px;color:var(--secondary-ink);text-align:right;overflow-wrap:anywhere}.source-row .language-name{font-weight:600;color:var(--ink)}.locale-dot{height:7px;width:7px;flex:none;margin-top:4px;border-radius:50%;background:var(--status-neutral)}.locale-dot.approved{background:var(--status-approved)}.locale-dot.in_review{background:var(--status-review)}.locale-dot.draft{background:var(--status-draft)}.locale-dot.changes_requested,.locale-dot.needs_review{background:var(--status-attention)}.translation-cell{display:flex;align-items:flex-start;min-width:0;position:relative}.source-row .translation-cell{background:var(--surface-source)}.translation-text{display:block;flex:1;min-width:0;border:0;background:transparent;padding:18px 15px;text-align:left;font-size:14px;font-weight:400;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:var(--ink)}button.translation-text:hover{background:var(--surface-hover)}.source-row .translation-text{color:var(--source-ink)}.translation-text{max-height:420px;overflow-y:auto}.cell-tools{display:flex;align-items:center;gap:2px;padding:16px 9px 0 0;flex:none}.cell-tools .icon-button{width:23px;height:24px}.cell-tools .icon{width:16px;height:16px}.cell-tools .has-issues{color:var(--issue-ink)}.cell-tools .has-errors{color:var(--red)}.language-row.selected .translation-cell{background:var(--surface-selected);box-shadow:inset 3px 0 var(--purple)}.language-row.selected .language-name{color:var(--purple);background:var(--surface-selected-label)}.inline-editor{width:100%;padding:10px 12px}.inline-editor textarea{width:100%;min-height:78px;max-height:500px;border:1px solid var(--purple);border-radius:4px;font-size:14px;padding:10px 12px;display:block;resize:vertical;background:var(--surface)}.inline-actions{display:flex;align-items:center;gap:6px;margin-top:7px}.inline-actions .text-button{padding:5px 7px;font-size:12px}.character-count{margin-left:auto;color:var(--muted);font-size:10px;background:var(--surface-chip);padding:4px 7px;border-radius:10px;white-space:nowrap}.unsaved-label{font-size:10px;color:var(--unsaved-ink)}.markup-token{display:inline-block;font:11px ui-monospace,SFMono-Regular,monospace;color:var(--token-ink);background:var(--token-bg);border:1px solid var(--token-line);border-radius:3px;padding:0 3px;line-height:1.7;margin:0 1px;vertical-align:baseline;overflow-wrap:anywhere}.markup-token.placeholder{color:var(--placeholder-ink);background:var(--placeholder-bg);border-color:var(--placeholder-line)}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;font-size:11px;color:var(--muted);background:var(--surface);border-top:1px solid var(--line)}.table-footer>div{display:flex;gap:6px}
/* Persistent review and context panel */
.context-panel{border-left:1px solid var(--line);min-width:0;overflow-y:auto;background:var(--surface)}.context-tabs{display:flex;gap:14px;padding:0 16px;border-bottom:1px solid var(--line);height:45px;position:sticky;top:0;background:var(--surface);z-index:3}.context-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:0;font-size:11px;color:var(--muted);white-space:nowrap}.context-tabs button.active{border-bottom-color:var(--purple);color:var(--purple);font-weight:600}.context-tabs span{font-size:10px}.context-empty{padding:32px 22px;color:var(--muted);font-size:12px}.context-empty>.icon{width:30px;height:30px;color:var(--icon-ink);margin-bottom:16px}.context-empty h2{color:var(--secondary-ink);font-size:15px}.context-help{margin-top:35px;padding:15px;background:var(--surface-rail);border-radius:4px}.context-help p{margin:6px 0 0;font-size:11px}.context-heading{padding:20px 18px 16px;border-bottom:1px solid var(--line-soft);margin-bottom:20px}.context-heading>span{font-size:11px}.context-heading h2{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:8px 0 12px}.editor-meta{display:flex;align-items:center;gap:8px;font-size:10px}.context-panel [data-panel]{padding:0 18px 20px}.context-panel .notice{margin-inline:18px}.context-panel #checks .notice{margin-inline:0}.context-panel label{font-size:11px}.context-panel select{font-size:12px}.context-field{margin-bottom:18px}.context-field label{margin-bottom:7px}.context-field select{width:100%}.review-actions{display:flex;flex-direction:column;gap:13px;align-items:flex-start}.review-actions>.button{width:100%;font-size:12px}.review-actions>.text-button{font-size:11px}.context-panel .footnote{font-size:11px;margin-top:16px}.review-feedback{border-top:1px solid var(--line-soft);padding-top:18px;margin-top:20px}.review-feedback .button{font-size:12px;width:100%}.review-feedback label{margin-bottom:10px}.original-files{font-size:11px;margin-top:25px}.original-files summary{color:var(--muted);cursor:pointer}.file-list{overflow-wrap:anywhere;font:10px/1.7 ui-monospace,monospace;margin-top:10px}.history{margin-top:20px}.history-item{border-left:2px solid var(--line-soft);padding:0 0 18px 12px;margin-left:2px;font-size:11px;overflow-wrap:anywhere}.history-item strong{display:block;font-weight:500;line-height:1.5}.history-item small{display:block;color:var(--muted);margin:3px 0 7px;font-size:10px}.history-item p{white-space:pre-wrap;color:var(--secondary-ink);margin:0;max-height:150px;overflow:auto}.check-title{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--green);margin-bottom:15px}.check-title .icon{width:17px;height:17px}
/* File and language overview, contributor administration */
.page-view{padding:28px;overflow:auto;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-heading p{margin:0;font-size:13px}.project-overview{display:grid;grid-template-columns:210px minmax(0,1fr);gap:25px;border-bottom:1px solid var(--line-soft);padding-bottom:30px}.project-metrics{padding-right:24px;border-right:1px solid var(--line-soft)}.project-metrics h2{font-size:24px;color:var(--purple);padding-bottom:12px;border-bottom:2px solid var(--purple);font-weight:500}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 15px}.metric small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;margin-bottom:4px}.metric strong{font-size:23px;font-weight:400;color:var(--secondary-ink)}.project-metrics>.footnote{margin-top:23px;font-size:11px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.section-title h2{margin:0;font-size:13px;color:var(--muted);font-weight:400;text-transform:uppercase}.section-title button{font-size:12px}.file-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px 20px}.file-card{min-width:0}.file-card>.text-button{display:block;overflow-wrap:anywhere;text-align:left;width:100%;font-size:13px;margin-bottom:9px}.progress-track{height:2px;background:var(--progress-bg);width:100%;margin-bottom:9px}.progress-track>span{display:block;height:100%;background:var(--purple)}.file-card .file-meta{font-size:10px;color:var(--muted);margin-top:6px}.file-card .progress-label{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.file-card .progress-label strong{font-size:18px;font-weight:400;color:var(--secondary-ink)}.file-card details{margin-top:10px;font-size:11px;color:var(--muted)}.file-card summary{cursor:pointer}.file-card .file-list{max-height:140px;overflow:auto}.all-files{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;padding-top:8px}.all-files .file-card{border-bottom:1px solid var(--line-soft);padding-bottom:20px}.language-heading{border-top:1px solid var(--line-soft);margin-top:30px;padding-top:25px;font-size:13px;font-weight:400;color:var(--muted);text-transform:uppercase}.language-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.language-progress .file-card>.text-button{display:flex;gap:9px;align-items:center}.locale-label{font-size:9px;border-radius:3px;padding:3px;background:var(--surface-chip);color:var(--muted);text-transform:uppercase}.team-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:50px;max-width:1200px}.team-layout h2{font-size:16px}.team-layout>div>p{font-size:12px}.person{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line-soft);padding:18px 0}.person-copy{min-width:0;flex:1}.person-name{font-weight:500;font-size:13px}.person-email{font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.person-role{font-size:11px;color:var(--muted);margin-top:6px}.locale-approver{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line-soft);padding:12px 0;font-size:12px}.locale-approver select{max-width:200px;flex:1;font-size:12px}.account-dialog{background:var(--surface);max-width:500px;width:calc(100% - 32px);padding:24px;border:1px solid var(--line);border-radius:8px;color:var(--ink);max-height:90dvh;overflow-y:auto}.account-dialog::backdrop{background:#22314a50}.editor-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.editor-head h2{margin:0}.account-dialog .button.primary{width:100%}.account-dialog .muted{font-size:12px}
/* Local sign-in and owner setup */
.login-page{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:var(--surface)}.login-card{width:100%;max-width:480px;padding:70px 48px;align-self:center;justify-self:center}.login-card>.brand-mark{margin-bottom:35px}.login-card h1{font-size:32px;font-weight:600;letter-spacing:-1px}.login-card>.muted{margin-bottom:30px;font-size:14px}.login-card label{margin-bottom:20px}.login-card input{padding:12px}.login-card .button{width:100%;min-height:43px}.login-foot{font-size:10px;color:var(--muted);margin:30px 0 0;text-align:center}.google-button{justify-content:space-between;margin-bottom:20px}.divider{font-size:10px;color:var(--muted);text-align:center;margin:24px 0}.login-art{position:relative;background:var(--login-art-bg);overflow:hidden;display:flex;align-items:flex-end;padding:70px 50px}.login-art>span{position:relative;z-index:1;color:var(--login-art-ink);font-family:Georgia,serif;font-size:39px;line-height:1.3}.orbit{position:absolute;border:1px solid var(--orbit-line);border-radius:50%;width:500px;height:500px;right:-80px;top:20%}.orbit.two{width:620px;height:620px;right:-140px;top:calc(20% - 60px)}.orbit.three{width:740px;height:740px;right:-200px;top:calc(20% - 120px)}

/* Theme preferences apply before paint; palette variables cover all views. */
:root[data-theme="dark"]{color-scheme:dark;--purple:#bea6ff;--purple-dark:#546cdd;--primary-fill:#4b5cc4;--primary-hover:#586bd9;--lavender:#242f49;--ink:#e4ebf5;--muted:#a1aec2;--line:#354359;--paper:#141c28;--green:#94d6b2;--red:#f0a1ae;--amber:#ebc179;--surface:#141c28;--surface-rail:#101722;--surface-soft:#1d293a;--surface-source:#182230;--surface-hover:#1b283c;--surface-selected:#1c2c47;--surface-selected-label:#253958;--surface-chip:#253146;--line-soft:#2b3749;--secondary-ink:#b7c5d9;--source-ink:#a6c1ff;--icon-ink:#9bacc6;--warning-bg:#30291d;--warning-line:#766139;--warning-ink:#f0ce91;--error-bg:#35232c;--error-line:#794957;--error-ink:#f4aabb;--success-bg:#1b3029;--success-line:#3e6b58;--badge-bg:#283346;--badge-ink:#b6c3d6;--draft-bg:#223556;--draft-ink:#a9c5ff;--review-bg:#3a2f20;--review-ink:#f0ce91;--approved-bg:#1d352c;--attention-bg:#382630;--token-bg:#223150;--token-line:#4f6798;--token-ink:#b5c8ff;--placeholder-bg:#332941;--placeholder-line:#70568e;--placeholder-ink:#ddbafc;--status-neutral:#9aa8be;--status-approved:#86cda7;--status-draft:#9ab8ff;--status-review:#e8c17c;--status-attention:#efa4ad;--issue-ink:#efa4ad;--unsaved-ink:#edc58c;--progress-bg:#2c384e;--toast-bg:#293b58;--login-art-bg:#242134;--login-art-ink:#c5b3e3;--orbit-line:#514261}
:root[data-theme="dark"] .workspace{--purple:#9ebcff;--purple-dark:#4778ed;--primary-fill:#315bd9;--primary-hover:#416be7;--lavender:#23334f;--ink:#e4ebf5;--muted:#a1aec2;--line:#354359}
:focus-visible{outline:2px solid var(--purple)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
.theme-toggle .theme-icon-light{display:none}
:root[data-theme="dark"] .theme-toggle .theme-icon-dark{display:none}
:root[data-theme="dark"] .theme-toggle .theme-icon-light{display:block}
.rail .theme-toggle{width:100%;height:44px;border-radius:0;color:var(--muted)}
.login-page>.theme-toggle{position:fixed;right:20px;top:20px;width:38px;height:38px;border:1px solid var(--line);background:var(--surface);z-index:5}
@media(min-width:1700px){.editor-layout{grid-template-columns:minmax(0,1fr) 360px}.language-row{grid-template-columns:130px minmax(0,1fr)}.translation-text{font-size:15px}.key-context{padding-left:18px}.file-cards,.language-progress,.all-files{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.editor-layout{grid-template-columns:minmax(0,1fr) 280px}.editor-toolbar{padding-inline:16px}.filter-row select{max-width:175px}.filter-row .search{width:260px}.language-row{grid-template-columns:90px minmax(0,1fr)}.language-name{font-size:11px;padding-inline:9px}.key-context{padding-left:15px}.cell-tools{flex-direction:column;gap:2px;padding-top:13px;padding-right:6px}.translation-text{padding-inline:12px;font-size:13px}.context-tabs{gap:10px;padding-inline:12px}.context-tabs button{font-size:10px}.file-cards,.all-files,.language-progress{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.rail{width:54px}.main{margin-left:54px}.project-header{padding-inline:17px}.host-pill{display:none}.editor-toolbar{padding:12px}.filter-row{flex-wrap:wrap}.filter-row .search{flex:1;width:230px;min-width:160px}.secondary-row{gap:10px}.language-controls{margin-left:0;flex:1;justify-content:flex-end}.catalog-summary{font-size:11px}.editor-layout{grid-template-columns:minmax(0,1fr)}.context-panel{position:absolute;right:0;top:0;bottom:0;width:310px;z-index:9;box-shadow:-5px 0 18px #1e3c6414}.editor-layout:not(.context-closed) .catalog-pane{padding-right:310px}.editor-layout:not(.context-closed) .key-block{grid-template-columns:1fr}.editor-layout:not(.context-closed) .key-context{padding-block:8px;border-right:0;background:var(--surface-source)}.editor-layout:not(.context-closed) .key-tools{display:none}.editor-layout:not(.context-closed) .key-file{display:none}.editor-layout:not(.context-closed) .key-name{margin:0}.page-view{padding:24px 20px}.team-layout{grid-template-columns:1fr;gap:35px}.project-overview{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:600px){.rail{width:46px}.rail-brand{height:70px}.brand-mark{width:30px;height:30px;font-size:25px;border-radius:8px}.main{margin-left:46px}.nav{height:51px}.nav .icon{width:20px;height:20px}.rail-bottom .avatar{width:27px;height:27px}.project-header{padding-inline:12px}.project-title{height:40px}.editor-toolbar{padding:10px}.filter-row{gap:6px}.filter-row select{font-size:11px;min-width:0;max-width:calc(50% - 3px)}.filter-row .search{order:4;width:100%;flex:auto}.filter-row #show-markup{margin-left:auto}.secondary-row{margin-top:8px}.catalog-summary{width:100%}.language-controls{justify-content:space-between;width:100%;gap:5px}.language-controls select,.language-picker summary{min-width:0;font-size:11px}.segmented button{padding:8px 7px;font-size:10px}.language-controls #toggle-context{width:26px}.key-block{grid-template-columns:1fr}.key-context{padding:8px 10px;background:var(--surface-source);border-right:0;display:flex;align-items:center;gap:8px}.key-name{font-size:11px;margin:0;flex:1}.key-file{display:none}.key-tools{margin:0}.key-tools .icon-button:nth-child(n+2){display:none}.language-row{grid-template-columns:76px minmax(0,1fr);min-height:58px}.language-name{font-size:10px;padding:18px 7px;gap:0}.language-name .locale-dot{display:none}.translation-text{font-size:12px;padding:15px 10px}.cell-tools{padding-top:12px}.cell-tools .icon-button:nth-child(n+2){display:none}.file-heading{padding-inline:10px;font-size:11px}.file-heading small{font-size:10px}.context-panel{position:fixed;top:0;bottom:0;width:min(310px,calc(100vw - 46px));box-shadow:-8px 0 40px #12345630;z-index:20;padding-top:45px}.context-panel::before{content:'Translation details';position:absolute;top:15px;left:18px;font-size:12px;color:var(--muted)}.context-panel .context-tabs{top:0}.language-controls #toggle-context[aria-expanded=true]{position:fixed;right:12px;top:8px;z-index:21;width:28px;height:28px;background:var(--lavender)}.editor-layout:not(.context-closed) .catalog-pane{padding-right:0}.table-footer{padding:12px 10px;flex-wrap:wrap}.inline-editor{padding:8px}.inline-editor textarea{font-size:12px;padding:9px}.inline-actions{flex-wrap:wrap}.character-count{font-size:9px}.unsaved-label{display:none}.project-overview{grid-template-columns:1fr;gap:20px}.project-metrics{border-right:0;padding:0}.metric-grid{grid-template-columns:repeat(3,1fr)}.file-cards,.all-files,.language-progress{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading h1{font-size:23px}.page-heading .button{font-size:11px}.page-view{padding:22px 16px}.person{gap:8px}.person .button{padding:5px 8px}.locale-approver{gap:10px}.account-dialog{padding:20px}.login-page{display:block}.login-card{padding:50px 28px}.login-art{display:none}}

.copy-keys-button{font-size:11px;gap:5px}.copy-keys-button .icon{width:15px;height:15px}.copy-key-count{font-variant-numeric:tabular-nums}.keys-copy-dialog{width:min(620px,calc(100vw - 32px))}.keys-copy-dialog textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;max-height:45dvh}

/* Extra filters stay together and combine with the main editor controls. */
.filter-row{flex-wrap:wrap}.activity-filters{position:relative;flex:none}.activity-filters summary{list-style:none;border:1px solid var(--line);border-radius:4px;padding:8px 10px;cursor:pointer;font-size:12px;white-space:nowrap;background:var(--surface)}.activity-filters summary::-webkit-details-marker{display:none}.activity-filters.active summary{color:var(--purple);background:var(--lavender);border-color:var(--purple)}.activity-filter-menu{position:absolute;left:0;top:calc(100% + 6px);width:360px;max-width:calc(100vw - 100px);max-height:calc(100vh - 170px);overflow:auto;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:0 6px 24px #17253a30;z-index:30}.activity-filter-menu h2{font-size:15px;margin:0 0 18px}.activity-filter-menu select{max-width:100%;width:100%}.activity-filter-menu .checkbox{margin-bottom:18px}.edit-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.edit-date-fields label{min-width:0;margin-bottom:0}.edit-date-fields input{min-width:0;width:100%}.filter-actions{display:flex;align-items:center;gap:18px}.activity-filter-status{display:flex;align-items:center;gap:12px;margin-top:10px;padding:6px 10px;background:var(--lavender);color:var(--purple);border-radius:4px;font-size:11px;overflow-wrap:anywhere}.activity-filter-status>span{flex:1}.activity-filter-status .text-button{font-size:18px;padding:0 2px}
@media(max-width:600px){.activity-filter-menu{position:fixed;top:90px;left:56px;right:10px;width:auto;max-width:none;max-height:calc(100vh - 106px)}.activity-filters summary{font-size:11px}.activity-filter-menu select{max-width:100%}}

/* Whitespace glyphs are paint-only: the underlying text keeps its real spaces. */
:root{--whitespace-light:#657b96;--whitespace-dark:#93a9c4;--whitespace-colour:var(--whitespace-light)}
:root[data-theme="dark"]{--whitespace-colour:var(--whitespace-dark)}
.whitespace-toggle .whitespace-symbol{font:15px ui-monospace,SFMono-Regular,monospace;letter-spacing:-2px;margin-right:3px}
.translation-text,.translation-input textarea,.whitespace-content{tab-size:4}
.whitespace-marker{position:relative}
.whitespace-marker::before{content:attr(data-marker);position:absolute;left:0;top:0;color:var(--whitespace-colour);font-weight:400;pointer-events:none;user-select:none;-webkit-user-select:none}
.whitespace-marker[data-marker="→"]::before,.whitespace-marker[data-marker="↵"]::before{top:50%;transform:translateY(-50%);line-height:1}
.whitespace-marker[data-kind="space"]::before{content:"";width:3px;height:3px;border-radius:50%;background:var(--whitespace-colour);left:50%;top:50%;transform:translate(-50%,-50%)}
.whitespace-settings{flex-shrink:0}
.whitespace-dialog .editor-head h2{font-size:19px}
.whitespace-colour-choice{margin-top:22px}
.whitespace-colour-fields{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.whitespace-colour-fields>label:first-child{flex:1;margin:0;font-size:13px;font-weight:500}
.whitespace-colour-fields input[type="color"]{width:42px;height:36px;min-width:42px;padding:3px;cursor:pointer}
.whitespace-colour-fields .colour-hex{width:102px;font:13px ui-monospace,SFMono-Regular,monospace;padding:9px}
.colour-hex[aria-invalid="true"]{border-color:var(--error-ink)}
.whitespace-preview{white-space:pre-wrap;tab-size:4;padding:15px 18px;border:1px solid var(--line);border-radius:5px;font-size:15px;line-height:1.8}
.preview-light{background:#fff;color:#2f2b38;--whitespace-colour:var(--whitespace-light)}
.preview-dark{background:#141c28;color:#e4ebf5;--whitespace-colour:var(--whitespace-dark)}
.whitespace-dialog-actions{display:flex;justify-content:space-between;gap:12px;margin-top:22px}
.whitespace-dialog-actions .button.primary{width:auto;min-width:90px}
.translation-input{position:relative;min-width:0}
.translation-input textarea,.whitespace-content{font-size:14px;line-height:1.6;padding:10px 12px;white-space:pre-wrap;overflow-wrap:break-word;letter-spacing:normal}
.whitespace-overlay{position:absolute;inset:0;border:1px solid transparent;border-radius:4px;overflow:hidden;pointer-events:none}
.whitespace-content{min-height:100%;color:var(--ink)}
.whitespace-content::after{content:' ';white-space:pre}
.whitespace-visible textarea{color:transparent;caret-color:var(--ink)}
@media(max-width:600px){.translation-input textarea,.whitespace-content{font-size:12px;padding:9px}.whitespace-toggle{font-size:11px}}

/* Translation coverage sits alongside approval progress. */
.coverage-toggle{border:1px solid transparent;border-radius:4px;background:transparent;padding:3px 5px;font:inherit;color:inherit;min-height:26px}
.coverage-toggle:hover{background:var(--surface-soft);border-color:var(--line)}
.coverage-toggle.active{background:var(--lavender);border-color:var(--purple);color:var(--purple)}
.coverage-filter{display:inline-flex;align-items:center;gap:7px;padding:2px 8px;border:1px solid var(--purple);background:var(--lavender);color:var(--purple);border-radius:4px;font-size:11px;white-space:nowrap}
.coverage-filter button{font-size:17px;line-height:1;padding:3px}
.missing-help{display:block;font-size:11px;color:var(--muted);margin-top:5px;white-space:normal}
.language-picker-actions{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-bottom:12px}.language-picker-actions p{margin:0}.language-bulk-select{display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap}.language-menu .language-picker-actions button{width:auto;margin:0;padding:3px 0;font-size:11px;white-space:nowrap}
.progress-unavailable>strong{display:block;margin:0}.progress-unavailable>p{margin:4px 0 0}
.person-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;max-width:190px}.person-actions .button{white-space:nowrap}
#invitation-link-url{width:100%;font:12px ui-monospace,SFMono-Regular,monospace;overflow-wrap:anywhere;resize:vertical}
@media(max-width:600px){.person{flex-wrap:wrap}.person-actions{margin-left:42px;max-width:100%;justify-content:flex-start}.person-copy{min-width:180px}}
.translation-summary{min-width:0}.translation-summary .approval-track>span,.approval-count.translated .approval-dot{background:var(--purple)}.progress-bars{display:grid;gap:14px}.file-approval>.progress-bars{flex:0 1 680px;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
@media(max-width:850px){.file-approval{flex-wrap:wrap;gap:12px}.file-approval-title{flex:1 1 100%}.file-approval>.progress-bars{flex:1 1 100%}}
@media(max-width:600px){.file-approval>.progress-bars{grid-template-columns:1fr;gap:14px}}

/* Warning notes use the shared light/dark palette. */
.warning-card{white-space:normal}.warning-card p{white-space:pre-wrap;margin:8px 0}.warning-card>p:first-child{margin-top:0}.warning-card>p:last-child{margin-bottom:0}.warning-note-form label{font-size:11px;margin:12px 0 8px;color:var(--warning-ink)}.warning-note-form textarea{display:block;width:100%;min-height:64px;resize:vertical;font-size:12px;margin-top:5px}.warning-note-meta{font-size:11px;color:var(--muted)}.warning-note-reason{color:var(--ink)}

/* File upload follows the shared light/dark palette. */
.upload-dialog{max-width:600px}.upload-dialog .footnote{display:block;font-weight:400;margin:8px 0 18px}.upload-languages{margin-bottom:20px}.upload-file{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:18px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line-soft)}.upload-file-name{overflow-wrap:anywhere;font-size:12px}.upload-file-name small{display:block;color:var(--muted);margin-top:4px}.upload-file label{margin:0;font-size:11px}.upload-file input{width:100%}.upload-dialog #upload-browse{width:100%;margin-top:10px}.file-card .file-download{display:inline-block;font-size:11px;margin-top:12px;color:var(--purple)}



/* Subprojects share the workspace roles and organize files and progress. */
.project-title #subproject-filter{width:auto;max-width:230px;font-size:12px;padding:5px 8px}.subprojects-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px}.subprojects-heading h2{font-size:16px;margin:0}.subprojects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:30px}.subproject-card{border:1px solid var(--line);border-radius:6px;padding:16px;min-width:0}.subproject-card.selected{border-color:var(--purple)}.subproject-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.subproject-actions .text-button{font-size:11px}.file-subproject{font-size:11px;margin-top:12px;margin-bottom:0}.file-subproject select{font-size:12px}.subproject-card>.text-button{font-size:16px}.subproject-card .file-download{margin-top:10px}
@media(max-width:600px){.project-title #subproject-filter{max-width:150px;font-size:11px}.subprojects-grid{grid-template-columns:1fr}.subprojects-heading{margin-top:8px}}

.button.danger,.text-button.danger{color:var(--red)}.button.danger{border-color:var(--error-line)}.button.danger:hover{background:var(--error-bg)}.subproject-actions{flex-wrap:wrap;justify-content:flex-start;margin-top:12px}.subproject-actions .file-download{width:100%;margin-top:0}.subproject-actions .text-button{font-size:12px}.subproject-card>.text-button{overflow-wrap:anywhere}
@media(max-width:600px){.project-title{flex-wrap:wrap;height:auto;min-height:49px;padding:8px 0;gap:8px}.project-title #new-subproject-shortcut{font-size:11px}}

#subproject-delete-dialog .filter-actions{flex-wrap:wrap}

/* Off-screen keys skip layout and paint while the current page stays bounded. */
.key-block{content-visibility:auto}
#page-position{white-space:nowrap;font-variant-numeric:tabular-nums}

.heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.language-heading h2{margin:0}.language-heading .button{text-transform:none}#account-add-language{margin-top:8px;font-size:12px}

/* One role-aware sidebar; resource selection stays in the header. */
.rail{width:64px}.main{margin-left:64px}.rail-brand{height:68px;flex:none}.rail nav{padding-top:4px;overflow-y:auto;min-height:0;flex:1}.rail .nav{height:50px;justify-content:center;padding:0;flex:none}.rail .nav .icon{width:20px;height:20px;flex:none}.rail .count{position:absolute;top:6px;right:6px}.rail-bottom{margin-top:12px;flex:none;gap:6px}.rail-bottom .theme-toggle{height:38px}.project-title{height:auto;min-height:64px;padding:12px 0;flex-wrap:wrap}.project-title #subproject-filter{max-width:220px;min-width:140px}.project-title #file-filter{max-width:350px;min-width:170px;font-size:12px;padding:5px 8px;flex:1}.project-title #new-subproject-shortcut{font-size:11px}
@media(max-width:1000px){.rail{width:54px}.main{margin-left:54px}.rail .nav{justify-content:center;padding:0;gap:0}.rail .count{position:absolute;top:4px;right:3px;margin:0}.project-title{gap:8px}.project-title #file-filter{max-width:300px}.project-title #new-subproject-shortcut{margin-left:auto}}
@media(max-width:600px){.rail{width:46px}.main{margin-left:46px}.project-title{min-height:56px;gap:8px}.project-title>strong{display:none}.project-title #subproject-filter{min-width:100px;max-width:none;flex:1;font-size:11px}.project-title #file-filter{min-width:130px;max-width:none;flex:1.4;font-size:11px}.project-title #new-subproject-shortcut{font-size:10px}.rail-brand{height:56px}.rail .nav{height:42px}}

/* Compact resource header and grouped editor controls. */
.project-header{padding:7px 20px}.project-header,.parity-filters,.shared-dialog{--select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566575' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E")}
:root[data-theme="dark"] :is(.project-header,.parity-filters,.shared-dialog){--select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1aec2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E")}
/* Keep native select interaction, with the same inset chevron as View. */
:is(.project-header,.parity-filters,.shared-dialog) select{appearance:none;-webkit-appearance:none;background-image:var(--select-arrow);background-repeat:no-repeat;background-position:right 8px center;background-size:12px 12px;padding-right:28px}
.project-title{grid-area:resources;height:auto;min-height:30px;padding:0;gap:6px;flex-wrap:nowrap;min-width:0}
.project-title select{height:30px;min-height:30px;padding-block:4px}
.project-title #subproject-filter{width:110px;min-width:90px;max-width:140px;font-size:12px;padding-right:28px}
.project-title #file-filter{flex:1;width:180px;min-width:120px;max-width:250px;background-color:var(--surface);border-color:var(--line);color:var(--ink);padding-right:28px}
.project-title #new-subproject-shortcut{width:30px;height:30px;min-height:30px;padding:4px;flex:none}
.project-title #new-subproject-shortcut .icon{width:16px;height:16px}
.rail-brand{height:44px}
.editor-toolbar{padding:3px 20px 6px}
.primary-row{display:grid;grid-template-columns:minmax(280px,360px) max-content max-content minmax(130px,1fr) max-content max-content 30px;grid-template-areas:"resources status filters search languages view context";gap:6px}
.primary-row #status{grid-area:status;width:126px;max-width:none;min-width:0;height:30px;min-height:30px;padding:4px 28px 4px 8px;font-size:12px}
.primary-row .activity-filters{grid-area:filters}
.primary-row .activity-filters summary{height:30px;padding:6px 9px;line-height:16px}
.primary-row .search{grid-area:search;width:auto;min-width:0;height:30px;margin:0}
.primary-row .search input{padding:5px 7px;font-size:12px}
.primary-row .language-controls{grid-area:languages;gap:6px;margin:0;width:auto;min-width:0;justify-content:flex-end}
.primary-row .language-controls select,.primary-row .language-picker summary{width:120px;min-width:0;max-width:none;height:30px;min-height:30px;padding:5px 28px 5px 8px;font-size:12px}
.primary-row .language-picker summary{width:140px;line-height:18px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.primary-row .language-picker summary::after{content:'';position:absolute;right:8px;top:50%;transform:translateY(-50%);float:none;margin:0;width:12px;height:12px;background:var(--select-arrow) center/contain no-repeat}
@media(forced-colors:active){:is(.project-header,.parity-filters,.shared-dialog) select{appearance:auto;-webkit-appearance:auto;background-image:none}}
.primary-row .segmented{height:30px;flex:none}
.primary-row .segmented button{padding:5px 8px;font-size:11px}
.primary-row #toggle-context{grid-area:context;width:30px;height:30px}
.language-menu{top:calc(100% + 6px)}
.editor-view-options{grid-area:view;position:relative}
.editor-view-options summary{height:30px;display:flex;align-items:center;gap:5px;list-style:none;cursor:pointer;padding:5px 8px;border:1px solid var(--line);border-radius:4px;font-size:12px;color:var(--secondary-ink);background:var(--surface)}
.editor-view-options summary::-webkit-details-marker{display:none}
.editor-view-options summary .icon{width:16px;height:16px}
.editor-view-options summary .icon:last-child{width:12px;height:12px;transform:rotate(90deg)}
.editor-view-options[open] summary{color:var(--purple);background:var(--lavender)}
.view-options-menu{position:absolute;right:0;top:calc(100% + 6px);width:240px;max-width:calc(100vw - 80px);padding:6px;border:1px solid var(--line);border-radius:6px;background:var(--surface);box-shadow:0 6px 24px #17253a30;z-index:30}
.key-order-control{display:grid;gap:5px;padding:6px 9px 10px;margin-bottom:4px;border-bottom:1px solid var(--line-soft);font-size:12px;color:var(--muted)}
.key-order-control select{width:100%;min-width:0;max-width:none;margin-top:0;color:var(--ink)}
.view-options-menu .view-option{display:flex;width:100%;height:36px;justify-content:flex-start;gap:9px;padding:6px 9px;font-size:12px;color:var(--ink);text-align:left}
.view-option .icon,.view-option .whitespace-symbol{width:20px;flex:none;color:var(--muted)}
.view-option[aria-pressed]::after{content:'Off';margin-left:auto;font-size:10px;color:var(--muted)}
.view-option[aria-pressed=true]::after{content:'On';color:var(--purple)}
.view-options-menu .view-option.active{background:var(--lavender)}
.view-options-menu #whitespace-settings{border-top:1px solid var(--line-soft);border-radius:0;margin-top:4px;padding-top:9px;height:40px}
.secondary-row{margin-top:4px;min-height:24px;gap:10px;font-size:11px}
.catalog-summary{font-size:11px;color:var(--secondary-ink);width:auto}
.catalog-summary span{margin-right:0}
.catalog-summary span+span::before{content:'·';margin:0 7px;color:var(--muted)}
.secondary-row .copy-keys-button{min-height:24px;height:24px;border:0;background:none;padding:2px 5px;font-size:11px;gap:5px}
.secondary-row .copy-keys-button:hover{background:var(--lavender)}
.secondary-row .copy-key-count{color:var(--muted)}
.secondary-row .coverage-filter,.secondary-row .review-label{padding-block:3px}
.file-approval{padding-top:7px;margin-top:4px;gap:20px}
.file-approval-title{flex:0 1 240px}
.file-approval-title>strong{font-size:11px;margin-bottom:3px}
.file-approval-title>span{font-size:10px}
.file-approval>.progress-bars{flex:1;gap:20px}
.file-approval .approval-heading{margin-bottom:4px;gap:4px}
.file-approval .approval-heading strong{font-size:11px}
.file-approval .approval-heading>span{font-size:10px}
.file-approval .approval-counts{margin-top:4px;font-size:10px;gap:4px 10px}
.file-approval .coverage-toggle{padding:1px 3px}
.activity-filter-status{margin-top:4px;padding-block:4px}
@media(max-width:1150px){
  .primary-row{grid-template-columns:minmax(250px,1fr) max-content max-content 30px;grid-template-areas:"resources status languages languages" "search filters view context"}
  .file-approval-title{flex:0 1 160px}
}
@media(max-width:760px){
  .primary-row{grid-template-columns:minmax(0,1fr) max-content max-content 30px;grid-template-areas:"resources resources resources resources" "status filters languages languages" "search search view context"}
}
@media(max-width:600px){
  .project-header{padding:7px 10px}
  .project-title{min-height:30px;gap:6px}
  .project-title #subproject-filter{width:auto;min-width:80px;max-width:none;flex:1}
  .project-title #file-filter{width:auto;min-width:100px;max-width:none;flex:1.4}
  .project-title #new-subproject-shortcut{margin-left:0;width:28px}
  .rail-brand{height:44px}
  .editor-toolbar{padding:3px 10px 5px}
  .primary-row{grid-template-columns:minmax(0,1fr) max-content max-content 30px;grid-template-areas:"resources resources resources resources" "status filters view context" "search search search search" "languages languages languages languages";gap:5px}
  .primary-row #status{width:100%;font-size:11px}
  .primary-row .search{order:initial}
  .primary-row .language-controls{justify-content:space-between}
  .primary-row .language-controls select,.primary-row .language-picker{flex:1;min-width:0}
  .primary-row .language-picker summary{width:100%}
  .primary-row .segmented button{font-size:10px;padding-inline:6px}
  .primary-row #toggle-context[aria-expanded=true]{position:fixed;top:52px;right:12px;z-index:21;background:var(--lavender)}
  .editor-layout:not(.context-closed) .context-panel{top:44px}
  .secondary-row{gap:4px 7px;min-height:24px}
  .catalog-summary{font-size:10px}
  .catalog-summary span+span::before{margin-inline:4px}
  .file-approval{gap:5px}
  .file-approval-title{flex:1 1 100%;display:flex;align-items:baseline;gap:7px}
  .file-approval-title>strong{margin:0;white-space:nowrap}
  .file-approval>.progress-bars{flex:1 1 100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .file-approval .approval-heading>span{display:none}
}

.file-card>.card-label{display:flex;gap:9px;align-items:center;font-size:13px;font-weight:500;margin-bottom:9px;color:var(--ink)}

/* Export receipts and recoverable key removal. */
.logbook-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:14px}.logbook-controls>label:first-child{flex:1;min-width:200px;margin:0}.logbook-controls .button{margin:0;font-size:12px;cursor:pointer}.logbook-controls .sr-only{margin:0;width:1px}
.export-receipt{border:1px solid var(--line);border-radius:6px;padding:16px;margin:14px 0;background:var(--surface)}.export-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:9px}.export-heading>span{font-size:12px;color:var(--muted)}.export-hash{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}.export-hash>span{color:var(--secondary-ink)}.export-hash code{overflow-wrap:anywhere;user-select:all}.export-receipt summary,#deleted-keys-panel>summary{cursor:pointer;font-size:13px;padding-block:10px}.export-file{padding:12px 0;border-top:1px solid var(--line-soft)}.export-file>strong{display:block;overflow-wrap:anywhere;font-size:12px}.export-file>small{color:var(--muted)}.export-receipt>.footnote{margin:8px 0 0;overflow-wrap:anywhere}.deleted-key{border-bottom:1px solid var(--line);padding:12px 0}.deleted-key>strong{overflow-wrap:anywhere}.deleted-key .footnote{margin-bottom:8px}.key-tools .icon-button[aria-label^="Delete key"]{color:var(--muted)}.key-tools .icon-button[aria-label^="Delete key"]:hover{color:var(--red)}
@media(max-width:600px){.key-tools .icon-button[aria-label^="Delete key"]{display:inline-flex!important}.export-receipt{padding:12px}.export-hash code{font-size:11px}.logbook-controls>label:first-child{min-width:100%}}

/* Shared app catalog and explicit native key mapping. */
.parity-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-bottom:14px}.parity-filters label{flex:1 1 160px;min-width:0;margin:0}.parity-filters select,.parity-filters input{width:100%;min-width:0;max-width:none}.parity-filters .button{flex:none}.parity-key{border:1px solid var(--line);background:var(--surface);border-radius:6px;padding:16px;margin:10px 0;overflow-wrap:anywhere}.parity-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}.parity-heading strong{flex:1;font-size:15px;min-width:0}.parity-native{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.parity-native>div{background:var(--surface-soft);padding:10px;border-radius:4px}.parity-native small,.parity-native code{display:block;color:var(--muted)}.parity-message{white-space:pre-wrap;line-height:1.6}.parity-issues{color:var(--warning-ink);font-size:12px;margin:8px 0}.parity-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.parity-pagination{display:flex;align-items:center;gap:12px;margin:16px 0}.shared-dialog{width:min(680px,calc(100vw - 32px))}.shared-preview{max-height:35vh;overflow:auto;border:1px solid var(--line);padding:14px;margin:14px 0;border-radius:4px}.shared-preview p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.shared-preview strong{font-size:12px}.shared-preview>div{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}.shared-preview>div:first-child{border:0;margin-top:0}.parity-key .badge{white-space:nowrap}.parity-healthy{color:var(--green);font-size:12px}@media(max-width:600px){.parity-native{grid-template-columns:1fr}.parity-filters label{flex-basis:100%}.parity-heading strong{flex-basis:100%}.shared-preview{max-height:30vh}}
/* New keys and bounded translation batches. */
.selection-toolbar,.bulk-selection-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.selection-toolbar{margin-top:8px}.bulk-selection-controls .footnote{margin:0}
.bulk-row-select{width:14px;height:14px;flex:none;margin:0;accent-color:var(--purple)}
.language-stack:has(.bulk-row-select) .language-row{grid-template-columns:128px minmax(0,1fr)}
.language-name:has(.bulk-row-select){padding-inline:8px;gap:6px}
.bulk-preview-item{padding:12px 0;border-top:1px solid var(--line-soft);overflow-wrap:anywhere}
.bulk-preview-item strong{font-size:12px}.bulk-preview-text{white-space:pre-wrap;font-size:12px;margin:8px 0}
.bulk-preview-item .notice{margin:8px 0}
#bulk-form{display:flex;flex-direction:column;gap:12px}
#bulk-form .editor-head,#bulk-form label,#bulk-form p,.bulk-preview,#bulk-apply{margin:0}
.bulk-action-fields,.new-key-native-names{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bulk-action-fields:has(#bulk-reviewer-label[hidden]){grid-template-columns:1fr}
.bulk-preview{display:flex;flex-direction:column;gap:10px}
#bulk-preview-items{max-height:clamp(90px,calc(90dvh - 420px),32dvh);overflow:auto}
#bulk-context,#bulk-action-help{font-size:12px;line-height:1.5}
#new-key-form{display:flex;flex-direction:column;gap:8px}
#new-key-form label,#new-key-form p,#new-key-form .editor-head{margin:0}
#new-key-peer-fields{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:4px;padding:10px}
#new-key-value{height:80px}
@media(max-width:600px){
  .bulk-selection-controls,.selection-toolbar{gap:8px}
  .language-stack:has(.bulk-row-select) .language-row{grid-template-columns:90px minmax(0,1fr)}
  .language-name:has(.bulk-row-select){padding-inline:5px;gap:4px;justify-content:flex-start;flex-wrap:wrap}
  .bulk-action-fields,.new-key-native-names{grid-template-columns:1fr}
  #bulk-preview-items{max-height:clamp(90px,calc(90dvh - 480px),30dvh)}
}
/* Administrator activity and sign-in investigation. */
.audit-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.audit-filters label{flex:1 1 140px;margin:0;min-width:0}.audit-filters label:first-child{flex-basis:220px}
.audit-filter-actions{display:flex;gap:8px}.audit-results{max-width:1100px}
.audit-card{border:1px solid var(--line);border-radius:5px;background:var(--surface);padding:14px 16px;margin:10px 0;overflow-wrap:anywhere}
.audit-event-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px}
.audit-event-heading time{font-size:11px;color:var(--muted);white-space:nowrap}
.audit-event-context{font-size:12px;margin:8px 0}.audit-card .footnote{margin:8px 0}
.audit-card details{font-size:12px}.audit-card summary{cursor:pointer;color:var(--purple)}
.audit-event-details{padding-top:10px}.audit-event-details p{margin:6px 0;white-space:pre-wrap}
.audit-detail-json{background:var(--surface-soft);font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;padding:12px;border-radius:4px}
.audit-success{border-left:3px solid var(--green)}.audit-failure{border-left:3px solid var(--red)}.audit-security{border-left:3px solid var(--warning-ink)}
.login-captcha{margin-bottom:18px}.login-captcha img{display:block;max-width:100%;border:1px solid var(--line);border-radius:4px}
.login-captcha .text-button{display:inline-block;font-size:12px;margin:8px 0}.login-captcha label{margin-bottom:10px}
.login-card:has(.login-captcha){padding-block:24px}.login-card:has(.login-captcha)>.brand-mark{margin-bottom:16px}
.login-card:has(.login-captcha)>.muted{margin-bottom:16px}.login-card:has(.login-captcha) label{margin-bottom:12px}
.login-card:has(.login-captcha) .login-foot{margin-top:16px}.login-captcha .footnote{margin-bottom:8px}
@media(max-width:600px){.audit-event-heading{align-items:flex-start;flex-direction:column;gap:6px}.audit-filters label{flex-basis:calc(50% - 6px)}.audit-filters label:first-child{flex-basis:100%}.audit-card{padding:12px}.audit-filter-actions{width:100%}}

/* A single live editor owns these nodes; repository HTML is always inert data. */
.html-assistant{--html-reader-size:18.5px;--html-highlight-background:var(--html-highlight-light-background,#ffe08a);--html-highlight-foreground:var(--html-highlight-light-foreground,#382500);min-width:0;margin-bottom:10px;font-size:13px;color:var(--ink);container-type:inline-size}
[data-theme=dark] .html-assistant{--html-highlight-background:var(--html-highlight-dark-background,#ffd166);--html-highlight-foreground:var(--html-highlight-dark-foreground,#261900)}
.html-editor-toolbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:6px}
.html-editor-toolbar .text-button{font-size:11px;padding:5px}
.html-editor-toolbar [aria-pressed=true]{background:var(--lavender);border-color:var(--purple);color:var(--purple)}
.html-mode-controls,.html-layout-controls{display:flex;flex:none}
.html-mode-controls .button:first-child,.html-layout-controls .button:first-child{border-radius:4px 0 0 4px}
.html-mode-controls .button:last-child,.html-layout-controls .button:last-child{border-radius:0 4px 4px 0;margin-left:-1px}
.html-editor-toolbar [aria-pressed=true]{position:relative}
.html-display-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;flex:none;max-width:100%;margin-left:auto}
.html-layout-controls{border-left:1px solid var(--line);padding-left:10px}
.html-layout-controls .button{min-width:32px;padding:6px 8px}
.html-layout-controls .icon{width:16px;height:16px}
.html-size-control{display:flex;align-items:center;gap:6px;min-height:30px}
.html-size-control label{font-size:12px;font-weight:500;margin:0}
.html-size-control input{width:80px;min-width:56px;min-height:30px;padding:0;border:0;background:none;margin:0;accent-color:var(--purple)}
.html-size-control output{font-size:11px;min-width:45px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted)}
.html-highlight-options{position:static}
.html-highlight-options>summary{display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none;width:30px;height:30px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted)}
.html-highlight-options>summary::-webkit-details-marker{display:none}
.html-highlight-options>summary .icon{width:16px;height:16px}
.html-highlight-options[open]>summary{color:var(--purple);border-color:var(--purple)}
.html-highlight-panel{position:absolute;top:calc(100% + 6px);right:0;width:252px;max-width:100%;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:5px;box-shadow:0 4px 16px #0003;z-index:4;font-size:12px}
.html-highlight-row{display:flex;align-items:center;gap:8px;margin-block:10px}
.html-highlight-row label{margin:0;font-size:12px;flex:1}
.html-highlight-row input[type=color]{width:32px;height:30px;min-height:30px;padding:2px;flex:none;cursor:pointer}
.html-highlight-row input[type=text]{width:82px;min-height:30px;padding:4px 6px;font-size:12px;font-family:monospace}
.html-highlight-row input[aria-invalid=true]{border-color:var(--red)}
.html-highlight-scale{display:flex;align-items:center;gap:8px;margin-block:12px}
.html-highlight-scale label{margin:0;font-size:12px;flex:none}
.html-highlight-scale input{width:0;flex:1;min-width:40px;min-height:30px;padding:0;border:0;margin:0;background:none;accent-color:var(--purple)}
.html-highlight-scale output{min-width:38px;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted)}
.html-highlight-toggle{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:12px;font-weight:400;cursor:pointer}
.html-highlight-toggle input{width:16px;height:16px;min-height:0;margin:0;padding:0;flex:none;accent-color:var(--purple)}
.html-reader{display:grid;grid-template-columns:minmax(0,1fr);gap:0;border:1px solid var(--line);border-radius:4px;overflow:hidden}
.html-reader-pane{min-width:0;background:var(--surface)}
.html-reader-pane:first-child{background:var(--surface-source)}
.html-reader-target{border-top:1px solid var(--line)}
.html-reader-divider{display:none;position:relative;background:var(--line);cursor:col-resize;touch-action:none;outline-offset:-2px;z-index:1}
.html-reader-divider::before{content:'';position:absolute;inset:0 -5px}
.html-reader-divider::after{content:'';position:absolute;left:1px;right:1px;top:calc(50% - 12px);height:24px;border-radius:2px;background:var(--muted)}
.html-reader-divider:hover,.html-reader-divider:focus-visible,.html-reader-divider.is-dragging{background:var(--purple)}
.html-reader-language{font-size:12px;font-weight:500;padding:5px 10px;background:var(--surface-soft);border-bottom:1px solid var(--line)}
.html-reader-body{min-width:0;max-height:min(52dvh,560px);overflow:auto}
.html-reader .html-reader-source{background:var(--surface-source);color:var(--source-ink);padding:10px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:min(52dvh,560px);overflow:auto}
.html-reader .html-reader-source,.html-reader .html-guided,.html-reader textarea,.html-reader .whitespace-content{font-size:var(--html-reader-size);line-height:1.6;tab-size:4}
.html-reader .html-guided{min-height:160px;max-height:none;overflow:visible;border:0;border-radius:0;padding:10px}
.html-reader textarea{width:100%;min-height:160px;max-height:min(52dvh,560px);padding:10px 12px;border-color:transparent;border-radius:0;display:block;margin:0}
.html-reader .whitespace-content{padding:10px 12px}
.html-assistant #missing-input textarea{margin-bottom:0}
.html-reader .html-text-block{line-height:1.6;min-height:1.6em}
@container(min-width:560px){.html-reader[data-layout=columns]{grid-template-columns:minmax(0,var(--html-source-fraction,50fr)) 5px minmax(0,var(--html-target-fraction,50fr))}.html-reader[data-layout=columns]>.html-reader-target{border-top:0}.html-reader[data-layout=columns]>.html-reader-divider{display:block}}
@container(max-width:559px){.html-size-control input{width:60px}}
@media(pointer:coarse){.html-editor-toolbar .button{min-height:44px}.html-layout-controls .button{min-width:44px}.html-size-control input{min-height:44px}.html-highlight-options>summary{width:44px;height:44px}}
.html-editor-help{font-size:11px;color:var(--muted);line-height:1.5;margin:4px 0 6px}
.html-editor-message{font-size:11px;color:var(--warning-ink);line-height:1.5;margin-bottom:6px}
.html-editor-message:empty{display:none}
.html-guided{min-height:110px;max-height:380px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;line-height:1.8;padding:12px;border:1px solid var(--line);border-radius:4px;background:var(--surface);font-size:14px;cursor:text}
.html-guided:focus{border-color:var(--purple)}
.html-guided[aria-readonly=true]{opacity:.65;cursor:default}
.html-chip{display:inline-flex;vertical-align:baseline;align-items:center;justify-content:center;min-width:22px;line-height:1.3;padding:2px 4px;margin-inline:1px;border:1px solid var(--token-line);border-radius:5px;color:var(--token-ink);background:var(--token-bg);font-size:10px;font-weight:600;white-space:nowrap;user-select:all;cursor:help}
.html-chip-close{border-radius:5px 2px 2px 5px}
.html-pair-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}
.html-pair-tools select{flex:1;min-width:0;max-width:100%;font-size:12px}
.html-pair-tools .button{flex:none;font-size:11px}
.html-translation-dialog{max-width:800px}
.missing-source-details{margin-bottom:16px}
.missing-source-details summary{cursor:pointer;font-size:12px;color:var(--muted);margin-bottom:8px}
.missing-source-details .notice{margin-bottom:0;line-height:1.8}
#missing-input textarea{width:100%;margin-bottom:12px}
#missing-form>label{margin-bottom:7px}
@media(max-width:600px){.html-pair-tools select{flex-basis:100%}.html-translation-dialog{padding:16px}}
.html-unchanged{background:var(--warning-bg);box-shadow:inset 0 -1px var(--warning-line)}
.html-template-status{font-size:11px;line-height:1.5;color:var(--warning-ink);margin:7px 0}
.html-preview{margin-top:8px;font-size:11px;color:var(--muted)}
.html-preview summary{cursor:pointer;padding:4px 0}
.html-preview-body{margin-top:7px;padding:12px;border:1px solid var(--line);border-radius:4px;color:var(--ink);background:var(--surface-soft);font-size:13px;white-space:pre-wrap;overflow:auto;max-height:260px;overflow-wrap:anywhere;line-height:1.6}
.html-preview-body table{border-collapse:collapse}.html-preview-body td,.html-preview-body th{border:1px solid var(--line);padding:4px 8px}
.html-preview-link{text-decoration:underline;color:var(--purple)}.html-preview-image{color:var(--muted);font-style:italic}
/* Empty fields leave room for the hint; completed fields flow with their text. */
.html-guided{cursor:default}
.html-text-block{position:relative;display:inline-block;vertical-align:middle;width:max-content;min-width:0;max-width:100%;min-height:1.8em;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;border:1px dashed var(--line);border-radius:4px;padding:2px 5px;margin:2px 1px;background:var(--surface-source);cursor:text;outline-offset:1px}
.html-text-block:focus,.html-block-empty{min-width:min(160px,100%)}
.html-text-block:focus,.html-block-active{border:1px solid var(--purple);background:var(--surface-selected);outline:2px solid var(--lavender)}
/* Filled fields flow with the tag chips; each wrapped line keeps its own border. */
.html-text-block:not(.html-block-empty){display:inline;width:auto;min-width:0;vertical-align:baseline;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.html-text-block:not(.html-block-empty):focus,.html-block-active:not(.html-block-empty){outline:none;box-shadow:0 0 0 2px var(--lavender)}
.html-assistant[data-highlight-translation=true] .html-block-active{background:var(--html-highlight-background);color:var(--html-highlight-foreground);--whitespace-colour:var(--html-highlight-foreground)}
.html-assistant[data-highlight-translation=true] .html-block-active:not(.html-block-empty){box-shadow:0 0 0 2px var(--html-highlight-background)}
.html-assistant[data-highlight-translation=true] .html-block-active.html-block-empty::before{color:var(--html-highlight-foreground);opacity:.65}
.html-block-empty::before{content:attr(data-placeholder);position:absolute;inset:2px 5px;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;user-select:none}
.html-text-block[aria-readonly=true]{opacity:.65;cursor:default}
.html-source{font-size:14px;line-height:1.8;max-height:28dvh;overflow:auto}
.html-source-block{border-radius:3px;transition:background-color .1s}
.html-assistant[data-highlight-source=true] .html-source-active{background:var(--html-highlight-background,#ffe08a);color:var(--html-highlight-foreground,#382500);box-shadow:0 0 0 2px var(--html-highlight-background,#ffe08a)}
.html-source-active,.html-block-active{font-size:calc(var(--html-reader-size,18.5px) * var(--html-highlight-scale,1.25))}
.html-assistant[data-highlight-source=true] .html-source-active{--whitespace-colour:var(--html-highlight-foreground,#382500)}
.missing-source-details h3{font-size:12px;margin-bottom:7px;color:var(--muted);font-weight:500}
.resizable-dialog{position:fixed;width:min(960px,calc(100vw - 32px));min-width:min(320px,calc(100vw - 32px));min-height:min(300px,calc(100dvh - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);resize:both;overflow:auto}
.resizable-dialog .editor-head{position:sticky;top:-24px;padding-top:4px;padding-bottom:8px;background:var(--surface);z-index:2;margin-bottom:12px}
.popup-controls{display:flex;gap:4px}.popup-controls .icon-button{font-size:20px}
.dialog-resize-footer{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:10px;color:var(--muted);margin-top:8px}
#missing-resize{touch-action:none;cursor:nwse-resize;font-size:20px}
.resizable-dialog.is-maximized{width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);resize:none}
@media(max-width:600px){.html-source{font-size:13px}.resizable-dialog .editor-head{top:-16px}.html-text-block{padding-inline:4px}.html-block-empty::before{font-size:10px}}
#missing-help{margin:8px 0 12px}
#missing-form .missing-source-details{margin-bottom:6px}

.popup-save-actions{display:flex;gap:8px;align-items:center}
.popup-save-actions .button.primary{width:auto;flex:1}
