/* Approved booklet-style translation workspace. Shared control overrides stay inside this feature. */
.tr-review-facts .tr-summary-lines{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}.tr-review-facts dd{min-width:0;overflow-wrap:anywhere}
.tr-workspace .tr-language .ctl-dropdown .ddl .ddl-value,.tr-workspace .tr-language .ctl-dropdown .ddl .ddl-ph,.tr-workspace .tr-language .ctl-dropdown .ddl .ddl-menu .ddl-item{font-family:inherit}
.tr-page,.tr-page-head{width:100%}.tr-page{color:var(--adm-text);font-size:14px}.tr-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:4px}.tr-breadcrumb{font-size:11px;color:var(--adm-muted);margin-bottom:5px}.tr-breadcrumb span{margin:0 8px}.tr-breadcrumb a{color:inherit;text-decoration:none}.tr-page-head h1{display:flex;align-items:center;gap:11px;font-size:22px;letter-spacing:-.4px;font-weight:700;margin:0}.tr-page-head h1 svg{width:23px;height:23px;fill:none;stroke:var(--t-brand-strong);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tr-page-head>.as-btn-base{background:none;border-color:transparent;color:var(--adm-muted);box-shadow:none;font-size:12px}
.tr-steps{display:flex;align-items:center;gap:12px;margin-top:16px;padding:17px 1px;border-top:1px solid var(--adm-border)}.tr-step{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--adm-muted)}.tr-step b{display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--adm-border);border-radius:50%;font-size:11px;font-weight:600}.tr-step--current{color:var(--adm-text);font-weight:600}.tr-step--current b{border-color:var(--t-brand-strong);color:var(--t-brand-strong);background:var(--adm-surface)}.tr-step .as-btn-base{padding:0;min-height:0;background:none;border:0;color:inherit;font:inherit;box-shadow:none}.tr-step-line{width:24px;height:1px;background:var(--adm-border)}.tr-step-note{margin-left:auto;font-size:12px;color:var(--adm-muted)}.tr-form,.tr-story-control{border:0;padding:0;margin:0;min-width:0}.tr-workspace{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:16px;align-items:start}.tr-panel{border:1px solid var(--adm-border);border-radius:12px;background:var(--adm-surface);overflow:hidden}.tr-panel-head{display:flex;align-items:center;gap:8px;padding:14px 16px;border-bottom:1px solid var(--t-panel-border)}.tr-panel-head h2{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;margin:0}.tr-panel-head>span{margin-left:auto;font-size:12px;color:var(--adm-muted)}.tr-panel-body{padding:16px}.tr-pill{display:inline-flex;align-items:center;border-radius:99px;background:var(--adm-surface-2);color:var(--adm-muted);font-size:10.5px;font-weight:600;padding:2px 7px;white-space:nowrap}.tr-pill--ok{background:var(--t-success-soft);color:var(--adm-green)}.tr-pill--warn{background:var(--t-warn-soft);color:var(--adm-warning)}.tr-label{display:block;font-size:9.5px;letter-spacing:.08em;font-weight:700;color:var(--adm-muted)}.tr-hint{font-size:11px;line-height:1.5;color:var(--adm-muted);margin:0}.tr-warning{font-size:10.5px;line-height:1.5;color:var(--adm-warning);margin:12px 0 0}.tr-empty{padding:45px 16px;text-align:center;color:var(--adm-muted);margin:0}
.tr-story-tools{padding:14px 16px 11px}.tr-search{display:flex;gap:9px;align-items:center;border:1px solid var(--adm-border);border-radius:8px;background:var(--t-bg-surface);padding:8px 11px;margin:0}.tr-search i{color:var(--adm-muted);font-size:13px}.tr-search input{border:0;background:none;outline:0;width:100%;font-size:12px;color:var(--adm-text);min-width:0}.tr-search input::placeholder{color:var(--adm-muted)}.tr-search:focus-within{outline:2px solid var(--adm-electric);outline-offset:2px}.tr-filter-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px}.tr-bulk-actions{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--adm-muted)}.tr-bulk-actions .as-btn-base{padding:0;border:0;border-radius:0;background:none;color:var(--adm-electric);font-size:12px;box-shadow:none;min-height:0}.tr-list-head{display:flex;justify-content:space-between;background:var(--adm-panel);border-block:1px solid var(--t-panel-border);padding:8px 17px;font-size:9px;letter-spacing:.09em;font-weight:650;color:var(--adm-muted)}.tr-story-list{max-height:653px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--adm-border) transparent}.tr-story{border-bottom:1px solid var(--t-panel-border)}.tr-story:last-child{border-bottom:0}.tr-story .ctl-row{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;display:block}.tr-story .ctl-row__right{width:100%}.tr-story .uicl{gap:0}.tr-story .uicl-item{width:100%;display:grid;grid-template-columns:18px 68px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 16px;min-height:80px;border:0;border-left:3px solid transparent;border-radius:0;background:none;color:var(--adm-text);white-space:normal;font-size:12.5px;font-weight:400}.tr-story .uicl-item>span:nth-of-type(2){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tr-story .uicl-item:hover{background:var(--adm-hover);border-color:transparent;color:var(--adm-text)}.tr-story .uicl-item.active{background:var(--t-brand-soft);border-left-color:var(--t-brand-strong);color:var(--adm-text)}.tr-story .uicl-check{width:18px;height:18px;border-radius:5px;border-color:var(--adm-border);background:var(--adm-surface)}.tr-story .uicl-item.active .uicl-check{background:var(--t-brand);border-color:var(--t-brand-strong)}.tr-story .uicl-item.active .uicl-check .bi{color:var(--t-brand-on);text-shadow:none;font-size:13px}.tr-story--unavailable .uicl-item{cursor:not-allowed}.tr-cover-wrap{display:grid;place-items:center;background:var(--adm-surface-2);border-radius:6px;width:68px;aspect-ratio:4/3;overflow:hidden;color:var(--adm-muted)}.tr-cover-wrap>*{grid-area:1/1}.tr-cover{display:block;width:68px;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:6px}.tr-story-title{font-weight:600;font-size:12.5px;display:block;margin-bottom:4px;line-height:1.4}.tr-number{font-weight:450;color:var(--adm-muted);margin-right:5px}.tr-story-sub{font-size:10.5px;color:var(--adm-muted);display:flex;align-items:center;gap:7px;line-height:1.5}.tr-story-state{text-align:right}.tr-story-state small{display:block;font-size:10px;margin-top:5px;color:var(--adm-muted)}.tr-list-foot{border-top:1px solid var(--t-panel-border);padding:11px 16px;display:flex;justify-content:space-between;color:var(--adm-muted);font-size:11px}
.tr-configuration{display:flex;flex-direction:column;gap:14px}.tr-settings{display:flex;flex-direction:column;gap:17px}.tr-field{display:flex;flex-direction:column;gap:6px;min-width:0}.tr-workspace .tr-bare .ctl-row,.tr-workspace .tr-compact .ctl-row{padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.tr-workspace .tr-bare .ctl-row{display:block}.tr-workspace .tr-bare .ctl-row__left{display:none}.tr-workspace .tr-bare .ctl-row__right{width:100%;justify-content:stretch}.tr-workspace .tr-compact .ctl-row{display:flex;align-items:center;gap:10px;justify-content:space-between}.tr-workspace .tr-compact .ctl-row__left{flex:1;min-width:0}.tr-workspace .tr-compact .ctl-name{font-size:11.5px;font-weight:600}.tr-workspace .tr-compact .ctl-hint{font-size:10.5px;color:var(--adm-muted);margin-top:2px}.tr-workspace .tr-compact .ctl-row__right{min-width:0;width:auto}.tr-workspace .tr-compact .state{display:none}.tr-workspace .tr-compact .switchy input[type=checkbox]{width:29px;height:17px;margin:0;box-shadow:none;background:var(--adm-surface-2);border:1px solid var(--adm-border)}.tr-workspace .tr-compact .switchy input[type=checkbox]::after{left:2px;top:2px;width:11px;height:11px;box-shadow:none;background:var(--adm-muted);border:0}.tr-workspace .tr-compact .switchy input[type=checkbox]:checked{background:var(--t-brand-soft);border-color:var(--t-brand-strong)}.tr-workspace .tr-compact .switchy input[type=checkbox]:checked::after{transform:translateX(12px);background:var(--t-brand-strong)}.tr-workspace .tr-include .ctl-name{font-size:11.5px;font-weight:400;color:var(--adm-muted)}.tr-workspace .tr-include .ctl-row__left{order:2}.tr-workspace .tr-include .ctl-row{gap:7px}.tr-workspace .tr-language .ddl-field{height:37px;border-radius:8px;background:var(--adm-surface);box-shadow:none;border-color:var(--adm-border)}.tr-workspace .tr-language .ddl-text{font-size:12px;font-weight:550}.tr-workspace .tr-language .ddl-item{font-size:12px}.tr-workspace .tr-language .ddl-btn{background:none;box-shadow:none;border:0;color:var(--adm-muted)}.tr-workspace .tr-ages .uicl{gap:6px;flex-wrap:nowrap}.tr-workspace .tr-ages .uicl-item{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--adm-border);border-radius:7px;padding:6px 7px;font-size:11px;font-weight:400;flex:1;color:var(--adm-text);background:none;white-space:nowrap}.tr-workspace .tr-ages .uicl-check{width:13px;height:13px;border-radius:3px;background:var(--adm-surface);border-color:var(--adm-border)}.tr-workspace .tr-ages .uicl-item.active{background:var(--t-brand-soft);border-color:var(--t-brand-strong);color:var(--adm-text)}.tr-workspace .tr-ages .uicl-item.active .uicl-check{background:var(--t-brand);border-color:var(--t-brand-strong)}.tr-workspace .tr-ages .uicl-item.active .uicl-check .bi{font-size:10px;color:var(--t-brand-on);text-shadow:none}.tr-included{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--t-panel-border);border-radius:8px;background:var(--adm-panel)}.tr-included>i{color:var(--adm-green);font-size:19px}.tr-included strong{font-size:11px;font-weight:600}.tr-included p{font-size:10.5px;color:var(--adm-muted);margin:2px 0 0}.tr-workspace .tr-mode .ctl-seg{width:100%;min-width:0;max-width:none;background:var(--adm-surface-2);border-color:var(--adm-border);border-radius:9px;padding:3px}.tr-workspace .tr-mode .ctl-seg label{font-size:12px;padding:7px 10px;color:var(--adm-muted);font-weight:550}.tr-workspace .tr-mode .ctl-seg input:checked+label{color:var(--t-brand-on)}.tr-workspace .tr-mode .ctl-seg .pill{background:var(--t-brand);box-shadow:0 1px 0 var(--t-brand-strong);border-radius:6px}.tr-replace{border-top:1px solid var(--t-panel-border);padding-top:14px}
.tr-summary-lines{margin:0;display:grid;grid-template-columns:1fr auto;gap:7px;font-size:11.5px}.tr-summary-lines dt{color:var(--adm-muted);font-weight:400}.tr-summary-lines dd{margin:0;text-align:right;font-weight:550}.tr-summary-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--t-panel-border);padding-top:12px;margin-top:12px;font-size:12px}.tr-summary-total strong{font-size:12px}.tr-review-chain{display:flex;align-items:center;justify-content:space-between;gap:3px;color:var(--adm-muted);font-size:9.5px;margin-top:12px}.tr-review-chain i{font-size:10px;color:var(--t-text-subtle)}.tr-selection-hint{margin-top:12px}.tr-review-action{margin-top:14px}.tr-review-action .as-btn-base{width:100%;border-radius:8px;min-height:36px;padding:8px 12px;font-size:12px;background:var(--t-brand);color:var(--t-brand-on);border-color:var(--t-brand);box-shadow:0 2px 0 var(--t-brand-strong)}.tr-review-action .as-btn-inner{width:100%;flex-direction:row-reverse;justify-content:space-between}.tr-review-action .as-btn-ico{font-size:14px}.tr-glossary summary{list-style:none;display:flex;align-items:center;gap:9px;padding:13px 16px;font-size:11.5px;cursor:pointer}.tr-glossary summary::-webkit-details-marker{display:none}.tr-glossary summary>span:first-child{display:flex;align-items:center;gap:8px;flex:1}.tr-glossary summary i{font-size:13px;color:var(--adm-muted)}.tr-glossary[open] summary{border-bottom:1px solid var(--t-panel-border)}.tr-glossary .tr-label{margin:14px 0 6px}.tr-glossary textarea{width:100%;background:var(--adm-surface);color:var(--adm-text);border:1px solid var(--adm-border);border-radius:7px;padding:8px;font-size:11px;line-height:1.6;resize:vertical}.tr-glossary-actions{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.tr-glossary-actions .as-btn-base{font-size:11px;border-radius:7px;min-height:28px;padding:5px 10px}.tr-workspace-foot{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--adm-muted);padding-top:18px}.tr-workspace-foot>i{font-size:13px}.tr-workspace-foot>.as-btn-base{margin-left:auto;background:none;border-color:transparent;box-shadow:none;color:var(--adm-muted);font-size:11px;white-space:nowrap}.tr-notice{padding:12px 16px;border:1px solid var(--adm-border);border-left:3px solid var(--adm-green);border-radius:9px;background:var(--adm-surface);margin-bottom:14px;font-size:12px}.tr-notice--error{border-left-color:var(--adm-danger)}
.confirm-overlay .confirm-panel:has(.tr-review){display:block;padding:0;gap:0;background:var(--adm-surface);border:1px solid var(--adm-border);border-radius:14px;box-shadow:var(--t-shadow);text-align:left}.confirm-panel:has(.tr-review)>.confirm-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}.confirm-panel:has(.tr-review)>.confirm-body{margin:0;display:block}.tr-review-heading{position:relative;border-bottom:1px solid var(--t-panel-border);padding:20px}.tr-review-heading h2{font-size:19px;margin:5px 24px 0 0;font-weight:650}.tr-icon-button{position:absolute;top:24px;right:20px;display:grid;place-items:center;background:none;border:0;color:var(--adm-muted);padding:5px;cursor:pointer}.tr-review-body{padding:20px}.tr-review-story{display:flex;align-items:center;gap:12px;margin-bottom:18px}.tr-review-story .tr-cover{width:80px}.tr-review-story strong{font-size:13px}.tr-review-story p{font-size:11px;color:var(--adm-muted);margin:5px 0 0}.tr-review-facts{background:var(--adm-panel);border:1px solid var(--t-panel-border);border-radius:9px;padding:14px;margin-bottom:16px}.tr-review-parts{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.tr-review-body>.tr-hint{margin-top:14px}.confirm-panel:has(.tr-review)>.confirm-footer{display:flex;justify-content:space-between;gap:12px;margin:0;padding:16px 20px;border-top:1px solid var(--t-panel-border)}.confirm-panel:has(.tr-review) .confirm-btn{font-size:12px;font-weight:550;min-height:36px;padding:8px 12px;border-radius:8px}.confirm-panel:has(.tr-review) .confirm-btn--cancel{border:1px solid var(--adm-border);background:var(--adm-surface);color:var(--adm-text)}.confirm-panel:has(.tr-review) .confirm-btn--ok{margin-left:auto;background:var(--t-brand);color:var(--t-brand-on);box-shadow:0 2px 0 var(--t-brand-strong)}
@media(max-width:1100px){.tr-workspace{grid-template-columns:minmax(0,1fr) 330px}.tr-story .uicl-item{grid-template-columns:18px 54px minmax(0,1fr);gap:9px}.tr-story .tr-cover-wrap,.tr-story .tr-cover{width:54px}.tr-story-state{display:none}.tr-filter-row{align-items:flex-start;gap:12px;flex-direction:column}}
@media(max-width:760px){.tr-workspace{grid-template-columns:1fr}.tr-story-list{max-height:360px}.tr-filter-row{flex-direction:row;align-items:center}.tr-story .uicl-item{grid-template-columns:18px 60px minmax(0,1fr) auto}.tr-story .tr-cover-wrap,.tr-story .tr-cover{width:60px}.tr-story-state{display:block}.tr-step-note{display:none}.tr-configuration{gap:12px}.tr-workspace-foot{align-items:flex-start;flex-wrap:wrap}.tr-page-head h1{font-size:20px}.tr-page-head>.as-btn-base{font-size:11px}}
@media(max-width:420px){.tr-story-state{display:none}.tr-story .uicl-item{grid-template-columns:18px 50px minmax(0,1fr);padding:12px 9px}.tr-story .tr-cover-wrap,.tr-story .tr-cover{width:50px}.tr-filter-row{flex-wrap:wrap}.tr-step,.tr-step .as-btn-base{font-size:11px}.tr-workspace .tr-ages .uicl-item{padding:6px 5px}}
.tr-story{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.tr-story-control{min-width:0}.tr-story .uicl-item{grid-template-columns:18px 68px minmax(0,1fr)}.tr-story--selected{background:var(--t-brand-soft)}.tr-story>.tr-story-state{display:flex;flex-direction:column;align-items:flex-end;gap:4px;padding:10px 16px 10px 0}.tr-story-state .tr-status-button.as-btn-base{min-height:0;border:1px solid transparent;box-shadow:none;padding:3px 7px;font-size:10px;color:var(--adm-muted);background:var(--adm-panel);text-decoration:underline;text-underline-offset:2px}.tr-story-state .tr-status-button.tr-pill--warn{color:var(--t-warn);background:var(--t-warn-soft)}.tr-story-state .tr-status-button.tr-pill--ok{color:var(--t-success);background:var(--t-success-soft)}.tr-status-details{text-align:left;font-size:12px;color:var(--adm-text)}.tr-status-details h4{font-size:13px;font-weight:650;margin:12px 0 8px}.tr-status-details ul,.tr-issue-list{padding-left:19px;margin:8px 0 12px;line-height:1.6}.tr-issue-list li+li,.tr-status-details li+li{margin-top:6px}.tr-review-issues{border:1px solid var(--t-warn);border-radius:8px;padding:12px;background:var(--t-warn-soft);font-size:11.5px;margin:14px 0}.tr-review-issues>strong{font-size:12px}.confirm-panel:has(.tr-review)>.confirm-checkbox{margin:0;padding:0 20px 16px;font-size:12px;align-items:flex-start;text-align:left;color:var(--adm-text)}.confirm-panel:has(.tr-review)>.confirm-checkbox input{accent-color:var(--t-brand-strong);flex-shrink:0}
@media(max-width:1100px){.tr-story .uicl-item{grid-template-columns:18px 54px minmax(0,1fr)}}
@media(max-width:760px){.tr-story .uicl-item{grid-template-columns:18px 60px minmax(0,1fr)}}
@media(max-width:420px){.tr-story{grid-template-columns:1fr}.tr-story .uicl-item{grid-template-columns:18px 50px minmax(0,1fr)}.tr-story>.tr-story-state{align-items:flex-start;padding:0 9px 10px 90px}.tr-story>.tr-story-state small{display:none}}
/* Only package previews use the wide workspace; ordinary confirmations keep their card size. */
.confirm-overlay .confirm-panel.confirm-panel--card:has(.sp-preview){max-width:95vw;height:min(92dvh,1000px);max-height:calc(100dvh - 24px);padding:20px;border-radius:14px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-items:stretch;gap:14px;text-align:start;overflow:hidden}
.confirm-panel.confirm-panel--card:has(.sp-preview)>.confirm-body{min-height:0;min-width:0;display:block;overflow:hidden}
.confirm-panel.confirm-panel--card:has(.sp-preview)>.confirm-title{font-size:18px;line-height:1.3}
.confirm-panel.confirm-panel--card:has(.sp-preview)>.confirm-footer{margin:0;flex-shrink:0}
@media(max-width:560px){.confirm-overlay .confirm-panel.confirm-panel--card:has(.sp-preview){padding:13px;gap:10px}.confirm-panel.confirm-panel--card:has(.sp-preview)>.confirm-title{font-size:15px}}

/* Translate with AI: the language and steps live in one card, like the design. */
.tr-page { display:flex; flex-direction:column; gap:16px; }
.tr-topbar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:14px 32px; padding:16px 20px; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-1); }
.tr-topbar .tr-language { flex:0 1 340px; min-width:240px; }
.tr-topbar .tr-steps { flex:1 1 auto; margin:0; padding:0 0 4px; border:0; }
.tr-topbar .tr-summary-bar { flex:1 0 100%; padding:12px 0 0; border-top:1px solid var(--line); font-size:.8125rem; color:var(--ink-2); }
.tr-notice { margin:0; }
/* Categories: the same chips as the age groups on Translate, full width. */
.cat-card { width:100%; padding:0; overflow:hidden; }
.cat-card__head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; border-bottom:1px solid var(--line); }
.cat-card__head h2 { margin:0; font-size:1rem; font-weight:700; }
.cat-card__count { font-size:.8125rem; color:var(--ink-2); }
.cat-pick { padding:16px 20px 4px; }
.cat-pick .uicl { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:flex-start; gap:8px; }
.cat-pick .uicl-item { display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; width:auto; min-width:0; padding:8px 14px; border:1px solid var(--line); border-radius:8px; background:none; color:var(--ink); font-size:.875rem; font-weight:500; white-space:nowrap; }
.cat-pick .uicl-check { width:15px; height:15px; border-radius:3px; background:var(--surface); border-color:var(--line-strong); }
.cat-pick .uicl-item.active { background:var(--t-brand-soft); border-color:var(--t-brand-strong); }
.cat-pick .uicl-item.active .uicl-check { background:var(--t-brand); border-color:var(--t-brand-strong); }
.cat-pick .uicl-item.active .uicl-check .bi { font-size:11px; color:var(--t-brand-on); text-shadow:none; }
.cat-card__hint { margin:0; padding:8px 20px 16px; font-size:.8125rem; color:var(--ink-2); }
.cat-card .empty-state { padding:24px 20px; }
/* The language list opens over the panels below it instead of being cut off by the panel. */
.tr-configuration > .tr-panel { overflow:visible; }
.tr-configuration > .tr-panel > .tr-panel-head { border-radius:12px 12px 0 0; }
.tr-configuration > .tr-panel:first-child { position:relative; z-index:5; }
.tr-workspace .tr-language .ddl-menu, .tr-workspace .tr-language .ddl-list { z-index:50; }
