/* Compose identity: lavender grey, charcoal blue, sand and banana cream. */
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#364156;background:#f5f5f8;font-size:14px;--accent:#364156;--line:#dcdde5}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #bfc2cf;background:white;border-radius:6px;padding:7px 11px;color:inherit}button:hover{background:#eef0f6}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);color:white;border-color:var(--accent)}input,select{min-width:0;border:1px solid #bfc2cf;border-radius:5px;background:white;color:inherit;padding:7px}input:focus,select:focus,button:focus-visible,[contenteditable]:focus-visible{outline:2px solid #364156;outline-offset:1px}label{display:flex;gap:7px;align-items:center}small,.muted{color:#626a7d;font-size:12px}.brand{font-size:16px;font-weight:750;letter-spacing:2px;color:#364156}.brand span{font-size:10px;letter-spacing:1px;font-weight:500;margin-left:10px}.auth{display:grid;place-items:center;min-height:100vh;background:radial-gradient(ellipse at 10% 0%,#AAADC4,transparent 65%)}.auth-card{width:min(480px,90vw);padding:40px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 80px #36415614}.auth h1{font-size:28px;line-height:1.2;margin:32px 0 14px}.auth p{line-height:1.6}.auth form label{display:block;margin:16px 0}.auth input{display:block;width:100%;margin-top:6px}.buttons{display:flex;gap:8px}.topbar{height:62px;background:#fff;display:flex;align-items:center;padding:12px 18px;gap:9px;border-bottom:1px solid var(--line)}.topbar .brand{margin-right:15px}.spacer{flex:1}.local-pill{color:#364156;background:#f7f1d4;border-radius:20px;padding:5px 10px;font-size:12px}.main{display:flex;height:calc(100vh - 100px)}.file-list{width:205px;flex:none;border-right:1px solid var(--line);padding:15px 8px;background:#eeeff4;overflow:auto}.file-list h3{font-size:11px;letter-spacing:1.3px;margin:3px 8px 12px;color:#626a7d}.file-list button{width:100%;display:block;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:none;font-size:12px;padding:8px}.file-list button:hover{background:#dddfea}.panes{display:flex;flex:1;min-width:0}.pane{display:flex;flex-direction:column;flex:1;min-width:320px;border-right:1px solid var(--line);background:white}.pane:last-child{border-right:0}.pane-toolbar{padding:9px 12px;background:#f7f7fa;display:flex;gap:6px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line)}.pane-toolbar input.filter{flex:1;width:110px}.pane-toolbar input.font{width:55px}.pane-toolbar button,.pane-toolbar select{padding:5px 7px;font-size:12px}.status-tools{padding:6px 12px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.status-tools button,.status-tools select{font-size:11px;padding:4px 7px}.column-head{display:grid;grid-template-columns:86px 1fr 1fr;background:#e7e8f0;color:#364156;font-size:11px;font-weight:600;letter-spacing:.5px;border-block:1px solid var(--line)}.column-head span{padding:8px 12px}.viewport{position:relative;overflow:auto;flex:1;min-height:120px;overflow-anchor:none}.canvas{position:relative;min-height:100%}.segment{position:absolute;left:0;right:0;display:grid;grid-template-columns:86px minmax(0,1fr) minmax(0,1fr);align-items:stretch;border-bottom:1px solid #dcdde5;background:white;font-size:var(--segment-font,16px);line-height:1.55}.segment>div{padding:12px;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}.segment .meta{font-size:10px;color:#626a7d;white-space:normal;background:#f3f3f7;padding:10px 7px}.segment .meta strong{font-size:12px;display:block;color:#364156}.segment .meta .dirty{color:#78621e}.segment .source{border-inline:1px solid #dcdde5;user-select:text}.segment .target{cursor:text}.segment.selected{background:#eef0f7;box-shadow:inset 3px 0 #D4C685}.segment.mostly{background:#edeaf5}.segment.mostly.selected{background:#dddfee;box-shadow:inset 3px 0 #364156}.segment.readonly .target{color:#626a7d}.tag{display:inline-block;font:600 .73em ui-monospace,monospace;color:#364156;background:#f7f1d4;border:1px solid #D4C685;border-radius:4px;padding:0 4px;margin:0 2px;user-select:none;vertical-align:1px}.run{outline:none;white-space:pre-wrap;min-width:2px}.run:empty:before{content:'\200b'}.run:focus{background:#ffffff70}.find-panel{padding:8px 12px;border-bottom:1px solid var(--line);background:#f0f0f6;display:flex;gap:6px;flex-wrap:wrap}.find-panel input[type=text]{width:130px;flex:1}.find-panel label{font-size:11px}.tm-panel{height:270px;min-height:130px;resize:vertical;overflow:auto;border-top:2px solid #AAADC4;background:#f7f7fa}.tm-tools{position:sticky;top:0;z-index:2;background:#e7e8f0;padding:8px 12px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.tm-tools input{flex:1;width:100px}.tm-tools button,.tm-tools select{font-size:11px;padding:5px 7px}.tm-caption{font-size:11px;color:#626a7d;padding:7px 12px}.tm-result{padding:9px 12px;border-bottom:1px solid var(--line)}.tm-result header{font-size:10px;color:#626a7d;display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.tm-result header button{padding:3px 8px;font-size:11px}.tm-text{display:grid;grid-template-columns:1fr 1fr;gap:16px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.tm-text>div{min-width:0}mark{background:#F7EF81;color:inherit}.diff{background:#f1e8bd;color:#364156}.footer{height:38px;border-top:1px solid var(--line);display:flex;align-items:center;padding:0 16px;gap:16px;background:white;font-size:12px}.footer .message{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.error{color:#a4372c}.toast{position:fixed;bottom:48px;left:50%;transform:translateX(-50%);background:#364156;color:white;padding:12px 20px;border-radius:8px;z-index:20;max-width:80vw}.empty{padding:65px 30px;text-align:center;color:#626a7d;max-width:620px;margin:auto}.empty h2{font-size:23px;color:#364156}.empty p{line-height:1.7}.loading{opacity:.65;pointer-events:none}dialog{border:1px solid var(--line);border-radius:10px;min-width:420px;max-width:90vw;max-height:80vh;overflow:auto;padding:24px}dialog::backdrop{background:#36415655}.user-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.user-row span{flex:1}.user-row small{display:block}@media(max-width:1000px){.file-list{width:150px}.topbar .brand span,.local-pill{display:none}.segment,.column-head{grid-template-columns:65px minmax(0,1fr) minmax(0,1fr)}.segment>div{padding:10px}.pane{min-width:300px}}

:root{--compose-grey:#8D909B;--compose-lavender:#AAADC4;--compose-blue:#364156;--compose-sand:#D4C685;--compose-highlight:#F7EF81}
.topbar{border-top:4px solid var(--compose-blue)}.brand span{color:var(--compose-blue);background:var(--compose-highlight);padding:4px 7px;border-radius:3px}.auth-card{border-top:5px solid var(--compose-sand)}.column-head{border-bottom-color:var(--compose-lavender)}.file-list button{border-left:2px solid transparent}.file-list button:hover{border-left-color:var(--compose-grey)}.segment.mostly .meta{background:#e2e1ed}.tag{border-color:var(--compose-sand)}

.browser-notice{background:#f7f1d4;color:#364156;border-left:4px solid #D4C685;padding:13px 16px;font-size:13px;line-height:1.6}.browser-notice strong{display:block;font-size:14px}.browser-notice p{margin:5px 0 0}.auth-card{width:min(540px,92vw)}#app{height:100dvh;display:flex;flex-direction:column}#app .topbar,#app .footer,#app .browser-notice{flex-shrink:0}#app .main{height:auto;flex:1;min-height:0}.browser-notice-app{display:flex;align-items:baseline;gap:14px;padding:10px 18px;border-left:0;border-bottom:1px solid #D4C685}.browser-notice-app strong{white-space:nowrap}@media(max-width:1000px){.browser-notice-app{display:block}.browser-notice-app strong{margin-bottom:3px}}

.app-brand-logo{display:block;width:145px;height:auto;max-height:34px;object-fit:contain}.topbar .brand{flex-shrink:0}

/* Workspace controls and explicit segment states. */
.main{position:relative}.files-shell{position:relative;width:30px;flex:none;background:#eeeff4;border-right:1px solid var(--line);z-index:5}.files-tab{writing-mode:vertical-rl;border:0;border-radius:0;width:29px;padding:12px 5px;background:transparent}.files-drawer{display:none;position:absolute;inset:0 auto 0 0;width:240px;background:#eeeff4;box-shadow:5px 0 16px #36415620;flex-direction:column;border-right:1px solid var(--line)}.files-shell:hover .files-drawer,.files-shell:focus-within .files-drawer,.files-shell.peek .files-drawer,.files-shell.pinned .files-drawer{display:flex}.files-shell.pinned{width:240px}.files-controls{display:flex;align-items:center;justify-content:space-between;padding:10px;gap:8px}.files-controls strong{font-size:12px}.files-controls button{font-size:12px}.files-shell .file-list{width:100%;flex:1;min-height:0;border:0}.tm-size-controls{display:flex;align-items:center;gap:6px;padding:5px 10px;border-top:2px solid #AAADC4;background:#e7e8f0;flex:none;font-size:12px}.tm-size-controls button{padding:3px 9px;font-size:12px}.tm-panel{flex:none;min-height:100px;max-height:60%;border-top:0}.high-match-control{font-size:11px}.high-match-control input[type=number]{width:50px;padding:3px}.high-match-control input[type=checkbox]{margin:0}.segment.mostly{background:white}.segment.mostly.selected{background:#eef0f7}.segment.mostly .meta{background:#f3f3f7}.segment.high-match,.segment.high-match>div{background:#e8e8f3}.segment.selected{box-shadow:inset 4px 0 #364156;outline:1px solid #AAADC4;outline-offset:-1px}.segment.unsaved,.segment.unsaved>div,.segment.unsaved .run:focus{background:#fff1c2}.segment.unsaved .meta .dirty{color:#68521a;font-weight:600}.segment.locked .source,.segment.locked .target{color:#737986}.segment.locked .tag{opacity:.65}.segment.locked .target{cursor:default}.lock-icon{display:inline-block;margin:3px 4px 3px 0;font-size:13px}.segment.high-match.selected,.segment.unsaved.selected{box-shadow:inset 4px 0 #364156}

.files-drawer{left:29px}.files-shell.pinned{width:269px}.font-control{font-size:12px;white-space:nowrap}.browser-notice-app>button{margin-left:auto;flex:none}

.term-panel{height:160px;min-height:90px;max-height:40%;flex-shrink:1;overflow:auto;resize:vertical;background:#fafafd}.term-result{padding:10px 12px;border-bottom:1px solid var(--line);font-size:13px;user-select:text}.term-result header{font-size:10px;color:#626a7d;margin-bottom:6px}.term-languages{display:flex;flex-wrap:wrap;gap:12px}.term-languages>div{flex:1;min-width:100px}.term-languages small{display:block;font-size:10px}.term-note{font-size:12px;margin:5px 0}.term-hit{background:#F7EF81;color:#364156;border-bottom:2px solid #b4a051;border-radius:2px}.tm-panel{height:220px;flex-shrink:1}.tm-size-controls{min-height:34px}.browser-notice-app{flex:none}.pane{min-height:0}.viewport{min-height:100px}.tm-panel,.term-panel{max-height:40%}

.segment.high-match .meta{background:#e8e8f3}.segment.unsaved .meta{background:#fff1c2}

.source .tag{cursor:pointer}.source .tag:hover{outline:2px solid #D4C685;outline-offset:1px}

.project-insights{height:310px;min-height:160px;max-height:48vh;resize:vertical;overflow:auto;flex:none;background:#fafafd;border-top:3px solid #AAADC4;display:flex;flex-direction:column}.project-insights>header{display:flex;gap:8px;align-items:center;padding:8px;flex-wrap:wrap}.project-insights>header input{flex:1}.project-insights>small{padding:0 12px 6px}.project-insights button[aria-pressed=true]{background:#364156;color:white}.insights-body{display:grid;grid-template-columns:minmax(180px,28%) 1fr;min-height:0;flex:1}.insights-list,.insights-detail{overflow:auto;padding:10px}.insights-list{border-right:1px solid #dcdde5}.insights-list>button{display:block;text-align:left;width:100%;margin:5px 0;overflow-wrap:anywhere}.insights-list small{display:block}.insights-detail h3{margin:0 0 10px}.insights-detail textarea{display:block;width:100%;font:inherit;padding:8px;margin:8px 0}.insight-occurrence{border-top:1px solid #dcdde5;margin-top:12px;padding:10px 0;overflow-wrap:anywhere}.insight-occurrence header{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.insight-occurrence>div{padding:6px;background:#f0f0f6;margin-top:4px;white-space:pre-wrap}.topbar{flex-wrap:wrap;height:auto;min-height:62px}.project-insights mark{background:#F7EF81}@media(max-width:700px){.insights-body{grid-template-columns:150px 1fr}.project-insights{height:38vh}}

.project-insights.insights-fullscreen{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh!important;max-height:none;min-height:0;resize:none;border-top:0}.review-variants{padding:12px;background:#eeeff5;border:1px solid #dcdde5;border-radius:7px;margin:10px 0 16px}.review-variants h4{margin:0 0 10px}.review-variants article{padding:10px;background:white;border:1px solid #dcdde5;border-radius:5px;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.review-variants article>div{margin:7px 0}.review-variants>small{display:block}.review-variants .diff{background:#F7EF81;color:#364156}.insights-fullscreen .insights-body{grid-template-columns:minmax(220px,28%) 1fr}

/* Two stable metadata lines: selecting a row never adds a score line. */
.segment,.column-head{grid-template-columns:124px minmax(0,1fr) minmax(0,1fr)}
.segment .meta{padding:10px 7px;min-height:64px;overflow:hidden}
.segment-meta-heading,.segment-meta-status{display:flex;align-items:center;gap:5px;height:22px;white-space:nowrap;min-width:0}
.segment .meta .segment-meta-heading strong{display:block;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.tm-pill{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:46px;height:19px;padding:0 5px;border-radius:10px;background:#e2e4ef;color:#364156;font-size:10px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:19px}
.tm-pill.no-match{background:#ececf0;color:#737986}
.status-pill{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:10px;padding:0 7px;height:19px;line-height:19px;font-size:10px;font-weight:600;background:#ececf0;color:#50596a}
.status-translated{background:#dceee4;color:#205739}.status-draft{background:#f3d889;color:#715009}.status-untranslated{background:#e6e7ed;color:#535c6c}.status-approved{background:#dceaf7;color:#244c75}.status-signed-off{background:#e8dff3;color:#593775}.status-rejected{background:#f7dfe2;color:#8a303b}
.segment-indicators{display:inline-flex;gap:3px;align-items:center;flex:none;margin-left:auto;font-size:10px;line-height:16px}.segment-indicators:empty{display:none}.segment .meta .lock-icon{margin:0;font-size:10px}.internal-flag{font-size:9px;border-radius:3px;background:#ded9ec;color:#514267;padding:0 3px;font-weight:700}
