.translation-tools{max-width:1160px;margin:auto}.translation-tools .pagehead h1{font-size:32px}.translation-tools .tool-card{padding:28px}.tool-languages{display:grid;grid-template-columns:1fr 42px 1fr;align-items:end;gap:14px;margin-bottom:22px}.translation-tools label{font-size:13px;color:#657890}.translation-tools select,.translation-tools textarea,.translation-tools input:not([type=checkbox]):not([type=file]){display:block;width:100%;border:1px solid #dce5f2;border-radius:10px;background:white;color:#112b45;min-height:44px;padding:11px;margin-top:8px;font:inherit;min-width:0}.translation-tools textarea{resize:vertical;line-height:1.65}.translation-tools [data-count]{display:block;margin-top:5px;color:#74849a}.tool-swap{margin-bottom:0;padding:11px!important;min-width:0}.tool-tabs{display:flex;gap:8px;margin-bottom:18px}.tool-tabs .on{background:#e9f3ff;color:#0975eb;border-color:#cde3ff}.tool-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.tool-result{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:17px;border:1px solid #e0e8f4;background:#f8fbff;border-radius:12px;padding:17px;min-height:180px;margin:8px 0 16px}.tool-bottom-row{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:20px 0}.tool-bottom-row label{max-width:220px;flex:1}.tool-output-actions,.tool-live-controls,.tool-crop-actions,.tool-image-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.translation-tools .check{font-size:12px;line-height:1.6}.tool-status{min-height:25px;color:#397195;font-size:13px;line-height:1.6;margin-top:12px}.tool-status.tool-error{color:#ba4b45}.tool-voice-row{display:flex;gap:12px;align-items:center;margin-top:15px}.tool-voice-row span{font-size:12px;line-height:1.6}.translation-tools details{margin:18px 0;padding:14px;border:1px solid #e3eaf5;border-radius:10px}.translation-tools summary{cursor:pointer;font-size:13px;color:#2876d1}.translation-tools details p{font-size:12px;margin:12px 0}.tool-image-actions>label:not(.btn){margin-left:auto;min-width:190px}.tool-image-actions .btn{cursor:pointer;color:#15324c}.tool-image-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:24px}.tool-drop{background:#f5f9ff;border:1px dashed #c4d8ef;border-radius:13px;min-height:230px;max-height:560px;display:block;overflow:auto;text-align:center;padding:14px;color:#74889f;font-size:14px}.tool-drop p{padding:65px 15px}.tool-drop.dragging{background:#e6f2ff;border-color:#0875f5}.tool-drop canvas{max-width:100%;height:auto;display:block;touch-action:none;cursor:crosshair}.tool-crop-actions .btn{font-size:12px;padding:9px 12px}.tool-image-side small{font-size:12px;line-height:1.7;display:block}.tool-live-options{display:flex;gap:22px;flex-wrap:wrap}.tool-live-options label{display:flex;gap:8px;align-items:center}.tool-live-controls strong{margin-left:auto;align-self:center;color:#526981;font-variant-numeric:tabular-nums}.tool-live-transcript{height:380px;min-height:240px;overflow:auto;border:1px solid #e1e8f3;border-radius:13px;background:#f9fbff;padding:16px;margin:18px 0}.tool-caption{border-bottom:1px solid #e5ebf5;padding:12px 0}.tool-caption:last-child{border:0}.tool-caption small{font-size:11px;color:#75869d}.tool-caption p{font-size:17px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}.tool-caption .tool-caption-translation{color:#4873a0;font-size:15px}.tool-caption.is-pending p{color:#8a9bb0}.tool-bookmark-row{display:flex;gap:10px;align-items:center}.tool-bookmark-row input{flex:1;margin:0!important}.translation-tools ul[data-notes]{padding-left:20px;font-size:13px;line-height:1.8;color:#58728e}.tool-record-filters{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.tool-record-filters .on{background:#e9f3ff;border-color:#cfe4ff;color:#087bf3}.tool-record-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-top:1px solid #e4eaf3}.tool-record-row small{display:block;color:#77889d;font-size:12px;margin-top:7px}.tool-record-row strong{overflow-wrap:anywhere}.tool-record-row>div:last-child{display:flex;gap:8px;flex-shrink:0}.tool-record-dialog{max-width:800px!important}.tool-record-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;line-height:1.8;max-height:60dvh;overflow:auto;margin:20px 0}.unified-workspace .sidebar{overflow:auto}.unified-workspace .sidebar-bottom{position:static;margin-top:24px}
@media(max-width:760px){.translation-tools .tool-card{padding:20px 16px}.translation-tools .pagehead h1{font-size:28px}.tool-two-columns,.tool-image-layout{grid-template-columns:1fr;gap:18px}.tool-languages{gap:8px;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr)}.tool-languages select{font-size:12px;padding:10px 7px}.tool-swap{padding:10px 6px!important}.tool-output-actions .btn{flex:1;padding:10px;font-size:12px}.tool-live-controls .btn{font-size:12px;padding:10px 11px}.tool-image-actions>label:not(.btn){width:100%;margin-left:0}.tool-voice-row{align-items:flex-start;flex-direction:column}.tool-live-transcript{height:45dvh;min-height:240px}.tool-live-options{gap:12px}.tool-live-options label{font-size:12px}.tool-record-row{align-items:flex-start;flex-direction:column;gap:12px}.tool-record-filters .btn{padding:9px 10px;font-size:12px}.tool-caption p{font-size:16px}.tool-bookmark-row{align-items:stretch}.tool-bookmark-row .btn{padding:10px 12px;font-size:12px}}

.tool-hub{display:grid;grid-template-columns:1fr 1fr;gap:20px}.tool-hub-card{display:block;text-align:left}.tool-hub-card h3{margin:16px 0 8px}.tool-hub-card p{font-size:14px;line-height:1.7}.tool-hub-card:hover{border-color:#b8d8fa}.unified-workspace .sidebar .navlabel{margin:20px 14px 8px}.unified-workspace .sidebar .navitem{font-size:13px;min-height:44px;padding-top:11px;padding-bottom:11px}@media(max-width:760px){.tool-hub{grid-template-columns:1fr}.unified-workspace .mobilenav{grid-template-columns:repeat(5,minmax(0,1fr))}}

.tool-image-actions{align-items:center}.tool-image-actions .btn{min-height:44px;display:inline-flex;align-items:center}.translation-tools .pagehead h1>span{color:var(--ink)}.translation-tools textarea{font-size:14px}.tool-languages label{min-width:0}.translation-tools .tool-bottom-row select{min-width:0}

.home-extra-tools{max-width:1420px;margin:auto;padding:4px 48px 15px}.home-extra-heading{font-size:12px;color:#677b94;margin-bottom:12px}.home-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-extra-card{display:flex;gap:12px;align-items:center;text-align:left;border:1px solid #e3eaf4;border-radius:13px;padding:17px;background:#fafcff;color:#102942;min-width:0}.home-extra-card>span{display:grid;place-items:center;background:#edf3ff;border-radius:10px;width:35px;height:35px;color:#167ff4;flex-shrink:0}.home-extra-card strong{font-size:14px}.home-extra-card small{display:block;font-size:11px;color:#6c7e95;line-height:1.6;margin-top:6px}.home-extra-card>svg{margin-left:auto;flex-shrink:0;width:17px;height:17px;color:#7c9bbc}.home-extra-card:nth-child(3)>span{background:#f0e9ff;color:#8141ed}.home-extra-card:hover{border-color:#b8d9fa}@media(max-width:1100px){.home-tools-nav{display:none}.home-extra-tools{padding-left:30px;padding-right:30px}.home-extra-card{padding:13px;gap:9px}}@media(max-width:760px){.home-extra-tools{padding:0 20px 20px}.home-extra-grid{grid-template-columns:1fr;gap:10px}.home-extra-card{padding:16px}.home-extra-card small{font-size:12px}}

.tool-record-dialog textarea,.tool-record-dialog input{display:block;width:100%;border:1px solid #dce5f2;border-radius:10px;padding:12px;margin:8px 0 17px;font:14px/1.6 inherit;min-width:0}.tool-record-dialog .row{flex-wrap:wrap}

.tool-record-dialog textarea,.tool-record-dialog input{font-family:inherit;font-size:14px;line-height:1.6}.translation-tools textarea,.tool-record-dialog textarea{unicode-bidi:plaintext}

/* Photo translation: capture first, image/text results, no persistent photo storage. */
.translation-tools[data-tools-module=image] .tool-photo-languages{grid-template-columns:minmax(180px,320px);margin-bottom:18px}
.tool-photo-capture{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 10px}.tool-photo-capture label.btn{margin:0;cursor:pointer;color:#15324c;font-size:15px}.tool-photo-capture label.primary{color:white}.tool-photo-capture .is-disabled{opacity:.55;pointer-events:none}
.translation-tools .tool-photo-help{font-size:13px;line-height:1.65;color:#586b83;margin:10px 0 16px}
.tool-photo-tabs{display:flex;gap:8px;border-bottom:1px solid #e0e8f4;padding-bottom:12px;margin:18px 0}
.tool-photo-tabs .on{color:#0875eb;background:#e9f3ff;border-color:#cde3ff}
.tool-photo-viewbar,.tool-photo-switch,.tool-photo-exports{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tool-photo-viewbar{justify-content:space-between;margin-bottom:12px}.tool-photo-viewbar .btn{min-height:40px;padding:8px 12px;font-size:13px}.tool-photo-switch [aria-pressed=true]{color:#0875eb;background:#e9f3ff;border-color:#cde3ff}
.tool-photo-stage{position:relative}.translation-tools .tool-photo-stage .tool-drop{display:grid;place-items:center;min-height:310px;max-height:650px;padding:16px;background:#f7faff;border-color:#cbdcf0;overflow:auto}.tool-photo-stage canvas,.tool-photo-stage img{display:block;max-width:100%;height:auto;max-height:610px;object-fit:contain}.tool-photo-stage canvas{touch-action:pan-y}
.translation-tools [hidden]{display:none!important}
[data-image-placeholder]{padding:25px 10px;text-align:center;color:#586b83}[data-image-placeholder] strong{display:block;font-size:17px;color:#183652;font-weight:600}[data-image-placeholder] p{font-size:13px;margin:8px 0 0}.tool-photo-placeholder-icon{display:grid;place-items:center;width:60px;height:60px;margin:0 auto 18px;border-radius:18px;background:#e6f1ff;color:#147df0;font-size:35px}
.tool-photo-progress{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;background:#f6faffdc;color:#175c9d;border-radius:12px;font-size:15px;font-weight:500;pointer-events:none}.tool-photo-spinner{width:20px;height:20px;border:2px solid #b6d4f8;border-top-color:#087af5;border-radius:50%;animation:photo-spin .8s linear infinite}@keyframes photo-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.tool-photo-spinner{animation:none}}
.tool-photo-edit{margin:16px 0}.tool-photo-edit summary{font-size:14px;color:#2876d1;cursor:pointer}.tool-photo-edit .tool-crop-actions{flex-wrap:wrap}.tool-photo-card .tool-two-columns{align-items:start}.tool-photo-card textarea[readonly]{background:#fafcff;cursor:text}.tool-photo-card [data-image-review]{margin:12px 0;font-size:14px;line-height:1.65}.tool-photo-card .tool-result{min-height:240px}
.tool-photo-zoom{width:calc(100% - 32px);max-width:1200px;max-height:calc(100dvh - 32px);padding:18px;border:1px solid #dce5f2;border-radius:16px;color:#15324c;background:#fff;font-family:var(--font-ui)}.tool-photo-zoom::backdrop{background:#0b2139b3}.tool-photo-zoombar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.tool-photo-zoomscroll{overflow:auto;max-height:calc(100dvh - 150px);overscroll-behavior:contain}.tool-photo-zoomscroll img{display:block;width:auto;max-width:none;height:auto;margin:auto}
@media(max-width:760px){.translation-tools[data-tools-module=image] .tool-photo-languages{grid-template-columns:1fr}.tool-photo-capture{display:grid;grid-template-columns:1fr 1fr}.tool-photo-capture label.btn{justify-content:center;padding:12px 10px;font-size:14px}.tool-photo-viewbar{align-items:flex-start;gap:12px}.tool-photo-exports{margin-left:auto}.translation-tools .tool-photo-stage .tool-drop{min-height:270px;max-height:500px;padding:10px}.tool-photo-stage img,.tool-photo-stage canvas{max-height:470px}.tool-photo-tabs .btn{flex:1}.tool-photo-zoom{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:12px}.tool-photo-card .tool-result{min-height:160px}}

.tool-photo-stage [data-image-placeholder] p{padding:0}.tool-photo-card [data-status]:empty{display:none}.tool-photo-card button:disabled{opacity:.45;cursor:default}.tool-photo-placeholder-icon svg{width:30px;height:30px}.tool-photo-card:has([data-image-placeholder]:not([hidden])) .tool-photo-viewbar{display:none}
