@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-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, 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,ui-sans-serif, system-ui, 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{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 #ff5a1f38}}@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-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:#ff5a1f;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:#ff5a1f;background:#fff8f4;border-color:#ff5a1f}.settings-btn svg{color:#ff5a1f}.settings-panel{border-radius:16px;gap:10px;padding:12px;display:grid}.settings-bar{background:#faf9f7;border:0;border-radius:12px;padding:8px;display:block}.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:#ff5a1f;background:#fff8f4}.history-tabs button.active{color:#fff;background:#ff5a1f}.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:#ff5a1f}.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:#ff5a1f}.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:#b91c1c}.tone-scroll{grid-template-columns:repeat(2,minmax(0,140px));justify-content:center;gap:6px;min-width:0;display:grid}.tone-chip{color:#635d57;background:0 0;border:0;border-radius:14px;align-content:center;gap:2px;min-width:82px;min-height:46px;padding:6px 12px;font-size:13px;font-weight:400;transition:background .16s,color .16s;display:grid}.tone-chip:hover:not(.active){color:#ff5a1f;background:#fff8f4}.tone-chip.active{color:#fff;background:#ff5a1f;font-weight:400}.tone-chip small{color:#8b837c;font-size:11px}.tone-chip.active small{color:#ffffffd1}.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:11px;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:8px;min-width:36px;height:30px;font-size:12px;transition:background .16s,color .16s}.target-segment button:hover:not(.active){color:#ff5a1f;background:#fff8f4}.target-segment button.active{color:#fff;background:#ff5a1f}.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:#ff5a1f;background:#fff8f4;border-color:#ff5a1f}.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}.loading-state{color:#ff5a1f;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;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:#ff5a1f;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,transform .16s;display:inline-flex}.primary-btn:hover:not(:disabled){background:#eb4e13;transform:translateY(-1px)}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:#ff5a1f;background:#fff8f4;border-color:#ff5a1f}.modal-btn.danger{color:#b91c1c;border-color:#fecaca}.modal-btn.danger:hover:not(:disabled){color:#b91c1c;background:#fff4f4;border-color:#b91c1c}}@layer utilities{.animate-spin{animation:var(--animate-spin)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}@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}.tone-scroll{flex-wrap:wrap;justify-content:center;display:flex}.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-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}
