@import "https://fonts.googleapis.com/css2?family=Inter:wght@400&display=swap";@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--animate-spin:spin 1s linear infinite;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{box-sizing:border-box}html{background:#faf9f7}body{min-width:320px;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;overflow-x:hidden}button,input,textarea{font:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #4285f43d}}@layer components{.tool-shell{color:#202020;background:#faf9f7;min-height:100vh;overflow-x:hidden}.tool-frame{flex-direction:column;gap:12px;width:min(100%,1180px);min-height:100vh;margin:0 auto;padding:14px 14px 92px;display:flex}.tool-frame:before{content:"";background:linear-gradient(90deg,#4285f4 0 25%,#ea4335 25% 50%,#fbbc04 50% 75%,#34a853 75% 100%);border-radius:999px;flex:0 0 4px;width:100%;height:4px}.tool-header,.settings-panel,.settings-bar,.translate-panel,.action-dock{background:#fff;border:1px solid #ebe7e2}.tool-header{border-radius:16px;grid-template-columns:1fr;align-items:center;gap:12px;padding:12px;display:grid}.brand{align-items:center;gap:10px;min-width:0;display:flex}.brand-icon{color:#4285f4;flex:none}.brand h1{color:#202020;margin:0;font-size:18px;font-weight:400;line-height:1.15}.brand p,.panel-head p{color:#77716b;margin:0;font-size:12px;font-weight:400}.header-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.history-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-btn{color:#312924;cursor:pointer;background:#fffdfb;border:1px solid #ebe7e2;border-radius:999px;justify-content:center;align-items:center;gap:8px;min-width:0;height:38px;padding:0 12px;font-size:13px;font-weight:400;transition:border-color .16s,background .16s,color .16s;display:inline-flex}.settings-btn:hover:not(:disabled){color:#4285f4;background:#f2f7ff;border-color:#4285f4}.settings-btn svg{color:#4285f4}.settings-panel{border-radius:16px;gap:8px;padding:10px;display:grid}.settings-compact-grid{gap:8px;display:grid}.settings-bar{background:#faf9f7;border:0;border-radius:12px;padding:7px;display:block}.settings-group{--setting-accent:#4285f4;--setting-border:#a8c7fa;--setting-soft:#f2f7ff;--setting-label:#1967d2;--setting-text:#fff;--setting-muted:#ffffffd1;background:#faf9f7;border-radius:12px;gap:6px;padding:8px;display:grid}.settings-group:nth-child(2){--setting-accent:#ea4335;--setting-border:#f6aea7;--setting-soft:#fce8e6;--setting-label:#c5221f}.settings-group:nth-child(3){--setting-accent:#fbbc04;--setting-border:#fdd663;--setting-soft:#fff8e1;--setting-label:#8a6200;--setting-text:#3c2f00;--setting-muted:#3c2f00b8}.settings-label{color:#312924;justify-content:space-between;align-items:baseline;gap:12px;font-size:13px;display:flex}.settings-label small{color:#8b837c;font-size:11px}.settings-group .settings-label>span{color:var(--setting-label)}.settings-bar .tone-heading>span{color:#188038}.tone-label{align-items:center;padding:2px 4px 6px}.tone-heading{gap:2px;display:grid}.preset-switch{color:#77716b;cursor:pointer;background:0 0;border:0;align-items:center;gap:7px;padding:0;font-size:11px;display:inline-flex}.preset-switch-track{background:#d5d0cb;border-radius:999px;flex:none;width:30px;height:18px;transition:background .16s;position:relative}.preset-switch-track>span{background:#fff;border-radius:50%;width:12px;height:12px;transition:transform .16s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #20202038}.preset-switch.active{color:#188038}.preset-switch.active .preset-switch-track{background:#34a853}.preset-switch.active .preset-switch-track>span{transform:translate(12px)}.model-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.model-grid.provider-model-grid{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}.model-chip{color:#312924;text-align:left;background:#fff;border:1px solid #ebe7e2;border-radius:12px;align-content:center;gap:3px;min-height:44px;padding:6px 10px;transition:border-color .16s,background .16s,color .16s;display:grid}.model-chip small{color:#8b837c;font-size:11px}.model-chip:hover:not(.active):not(:disabled){border-color:var(--setting-border);background:var(--setting-soft);color:var(--setting-label)}.model-chip.active{border-color:var(--setting-accent);background:var(--setting-accent);color:var(--setting-text)}.model-chip.active small{color:var(--setting-muted)}.settings-panel .model-chip:disabled{opacity:.62}.settings-panel .model-chip.active:disabled{opacity:1}.history-page{background:#fff;border:1px solid #ebe7e2;border-radius:16px;padding:10px;overflow:hidden}.history-tabs{background:#faf9f7;border:1px solid #ebe7e2;border-radius:12px;grid-template-columns:1fr 1fr;gap:2px;margin-bottom:10px;padding:2px;display:grid}.history-tabs button{color:#635d57;background:0 0;border:0;border-radius:9px;height:34px;font-size:13px;transition:background .16s,color .16s}.history-tabs button:hover:not(.active){color:#4285f4;background:#f2f7ff}.history-tabs button.active{color:#fff;background:#4285f4}.history-list{gap:8px;max-height:560px;display:grid;overflow-y:auto}.history-item{background:#faf9f7;border:1px solid #ebe7e2;border-radius:14px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:8px;display:grid}.history-content{color:#202020;text-align:left;background:0 0;border:0;min-width:0;transition:color .16s;display:grid}.history-content:hover{color:#4285f4}.history-content span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.history-content small,.empty-history{color:#77716b;font-size:12px}.empty-history{margin:0;padding:8px}.star-btn{color:#8b837c;background:0 0;border:0;place-items:center;width:32px;height:32px;transition:color .16s;display:grid}.star-btn:hover:not(:disabled),.star-btn.active{color:#f9ab00}.star-btn.active svg{fill:currentColor}.delete-history-btn{color:#8b837c;background:0 0;border:0;place-items:center;width:32px;height:32px;transition:color .16s;display:grid}.delete-history-btn:hover:not(:disabled){color:#ea4335}.tone-scroll{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;min-width:0;display:grid}.tone-chip{color:#635d57;background:0 0;border:0;border-radius:14px;min-width:0;min-height:36px;padding:5px 9px;font-size:13px;font-weight:400;transition:background .16s,color .16s}.tone-chip:hover:not(.active){color:#188038;background:#e6f4ea}.tone-chip.active{color:#fff;background:#34a853;font-weight:400}.workspace{flex:1;gap:12px;display:grid}.translate-panel{border-radius:16px;flex-direction:column;min-height:300px;display:flex;overflow:hidden}.panel-head{border-bottom:1px solid #ebe7e2;justify-content:space-between;align-items:center;gap:12px;min-height:58px;padding:12px 14px;display:flex}.panel-head h2{color:#202020;margin:0;font-size:15px;font-weight:400}.sample-actions{flex:none;align-items:center;gap:8px;display:flex}.target-segment{background:#faf9f7;border:1px solid #ebe7e2;border-radius:999px;grid-template-columns:1fr 1fr;gap:2px;padding:2px;display:inline-grid}.header-target{background:#fffdfb;height:38px}.target-segment button{color:#635d57;background:0 0;border:0;border-radius:999px;min-width:36px;height:30px;font-size:12px;transition:background .16s,color .16s}.target-segment button:hover:not(.active){color:#4285f4;background:#f2f7ff}.target-segment button.active{color:#fff;background:#4285f4}.icon-btn{color:#3b312b;background:#fff;border:1px solid #ebe7e2;border-radius:11px;place-items:center;min-width:36px;height:36px;font-size:13px;font-weight:400;transition:border-color .16s,background .16s,color .16s;display:inline-grid}.icon-btn:hover:not(:disabled){color:#4285f4;background:#f2f7ff;border-color:#4285f4}.translate-field{resize:none;color:#202020;background:0 0;border:0;outline:none;flex:1;width:100%;min-height:240px;padding:16px;font-size:16px;font-weight:400;line-height:1.65}.translate-field::placeholder{color:#aaa29c}.result-wrap{flex:1;min-height:240px;display:flex;position:relative}.result-output{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.result-output .translate-field{min-height:220px}.variant-tabs{border-top:1px solid #ebe7e2;justify-content:center;gap:6px;padding:10px;display:flex}.variant-tab{color:#312924;background:#faf9f7;border:1px solid #ebe7e2;border-radius:10px;place-items:center;width:36px;height:32px;font-size:13px;transition:border-color .16s,background .16s,color .16s;display:grid}.variant-tab:hover:not(.active){color:#4285f4;background:#f2f7ff;border-color:#a8c7fa}.variant-tab.active{color:#fff;background:#4285f4;border-color:#4285f4}.loading-state{color:#4285f4;justify-content:center;align-items:center;gap:8px;font-size:15px;font-weight:400;display:flex;position:absolute;inset:0}.loading-state svg{width:20px;height:20px}.error-banner{color:#b91c1c;background:#fff4f4;border:1px solid #fecaca;border-radius:14px;padding:12px 14px;font-size:14px;font-weight:400}.action-dock{z-index:20;border-radius:18px;grid-template-columns:1fr 1fr;gap:8px;max-width:560px;margin:0 auto;padding:10px;display:grid;position:fixed;bottom:14px;left:14px;right:14px;box-shadow:0 16px 40px #2a201a14}.primary-btn{color:#fff;background:#4285f4;border:0;border-radius:14px;justify-content:center;align-items:center;gap:8px;min-width:0;height:48px;font-size:14px;font-weight:400;transition:background .16s;display:inline-flex}.primary-btn.secondary{color:#312924;background:#fff;border:1px solid #d8d3ce}.primary-btn:hover:not(:disabled){background:#3367d6}.primary-btn.secondary:hover:not(:disabled){background:#f3f1ee}button:disabled{cursor:not-allowed;opacity:.48}.modal-backdrop{z-index:40;background:#20202047;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-modal{background:#fff;border:1px solid #ebe7e2;border-radius:16px;width:min(100%,360px);padding:16px;box-shadow:0 18px 60px #2a201a2e}.confirm-modal h2{color:#202020;margin:0;font-size:18px;font-weight:400}.confirm-modal p{color:#77716b;margin:8px 0 0;font-size:14px;line-height:1.5}.modal-actions{grid-template-columns:1fr 1fr;gap:8px;margin-top:16px;display:grid}.modal-btn{color:#312924;background:#fff;border:1px solid #ebe7e2;border-radius:12px;height:40px;transition:border-color .16s,background .16s,color .16s}.modal-btn:hover:not(:disabled){color:#4285f4;background:#f2f7ff;border-color:#4285f4}.modal-btn.danger{color:#b91c1c;border-color:#fecaca}.modal-btn.danger:hover:not(:disabled){color:#b91c1c;background:#fff4f4;border-color:#b91c1c}}@layer utilities{.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}}@media (width>=820px){@layer components{.tool-shell{align-items:center;padding:24px 0;display:grid}.tool-frame{gap:14px;width:980px;max-width:calc(100vw - 48px);min-height:auto;padding:0}.tool-header{grid-template-columns:minmax(0,1fr) auto;padding:14px 16px}.header-actions{justify-content:flex-end;display:flex}.settings-bar{display:block}.settings-compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tone-scroll{grid-template-columns:repeat(8,minmax(0,1fr))}.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.translate-panel{height:460px;min-height:0}.translate-field,.result-wrap{min-height:0}.action-dock{max-width:none;box-shadow:none;background:0 0;border:0;justify-content:flex-end;padding:0;display:flex;position:static}.primary-btn{min-width:150px}}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}
