.app-window{border-radius:0;border-top:2px solid #fff;border-left:2px solid #fff;border-right:3px solid #000;border-bottom:3px solid #000;background:var(--panel-grey);box-shadow:2px 2px #888,3px 3px #555,4px 4px 8px #0000004d;padding:0;overflow:hidden;margin-bottom:16px}.app-window:last-of-type{margin-bottom:0}.tab-bar{display:flex;gap:1px;margin:0;padding:4px 4px 0;background:transparent;align-items:flex-end}.settings-btn{background:var(--panel-grey);border-top:2px solid #f0f0f0;border-left:2px solid #f0f0f0;border-right:2px solid #707070;border-bottom:2px solid #707070;font-size:14px;cursor:pointer;padding:5px 8px;margin-left:auto;box-shadow:1px 1px #00000026}.settings-btn:hover{background:#e4e4e4;border-top-color:#fff;border-left-color:#fff}.settings-btn:active{border-top:2px solid #707070;border-left:2px solid #707070;border-right:2px solid #f0f0f0;border-bottom:2px solid #f0f0f0;padding:6px 7px 4px 9px;box-shadow:inset 1px 1px 2px #0003}.tab{display:flex;align-items:center;gap:8px;padding:10px 18px;border:none;background:linear-gradient(180deg,#c8c8c8,#b0b0b0);cursor:pointer;font-weight:600;font-size:13px;position:relative;border-top:1px solid #888;border-left:1px solid #888;border-right:1px solid #e0e0e0;border-bottom:none;color:#333;box-shadow:inset 1px 1px 1px #0003}.tab:hover{background:linear-gradient(180deg,#d0d0d0,#b8b8b8)}.tab.active{background:linear-gradient(180deg,#ffe870,gold);color:#000;border-top:3px solid #fff5cc;border-left:3px solid #fff5cc;border-right:3px solid #aa8800;border-bottom:none;box-shadow:0 -1px #ffffff80;z-index:2;margin-bottom:-2px;padding:8px 16px 11px;text-shadow:1px 1px 0 rgba(255,255,255,.6)}.settings-tab{padding:7px 14px;font-size:22px;line-height:1}.settings-tab.active{padding:5px 12px 8px}.tab-zoom-btn{background:transparent;border:1px solid rgba(0,0,0,.3);padding:2px 4px;cursor:pointer;font-size:9px;line-height:1;margin-left:auto;border-radius:2px}.tab-zoom-btn:hover{background:#0000001a}.tab-zoom-btn:active{background:#0003;border-style:inset}.zoom-icon{display:inline-block;letter-spacing:-2px;font-size:10px}.input-area{margin:0;padding:0;background:transparent}.response-separator{height:8px;background:var(--panel-grey);margin:0;border-top:2px solid #999;border-bottom:1px solid #fff}.content-tab-bar{display:flex;gap:1px;margin:0;padding:4px 4px 0;background:var(--panel-grey)}.content-tab{padding:6px 16px;border:none;background:linear-gradient(180deg,#c8c8c8,#b0b0b0);cursor:pointer;font-weight:600;font-size:12px;position:relative;border-top:1px solid #888;border-left:1px solid #888;border-right:1px solid #e0e0e0;border-bottom:none;color:#333;box-shadow:inset 1px 1px 1px #0003}.content-tab:hover{background:linear-gradient(180deg,#d0d0d0,#b8b8b8)}.content-tab.active{background:linear-gradient(180deg,#ffe870,gold);color:#000;border-top:3px solid #fff5cc;border-left:3px solid #fff5cc;border-right:3px solid #aa8800;border-bottom:none;box-shadow:0 -1px #ffffff80;z-index:2;margin-bottom:-3px;padding-bottom:9px;text-shadow:1px 1px 0 rgba(255,255,255,.6)}.content-area{margin:8px;padding:12px;background:#fff;min-height:200px;border-top:3px solid #888;border-left:3px solid #888;border-right:3px solid #fff;border-bottom:3px solid #fff;box-shadow:inset 1px 1px 2px #00000026}.input-area textarea{width:100%;min-height:120px;margin-bottom:10px;padding:10px;background:#fff;font-size:14px;font-family:inherit;resize:vertical;border-top:2px solid #999;border-left:2px solid #999;border-right:1px solid #fff;border-bottom:1px solid #fff;box-shadow:inset 2px 2px 3px #0003}.input-area textarea:focus{outline:none;border-top:2px solid var(--active-blue);border-left:2px solid var(--active-blue);box-shadow:inset 2px 2px 3px #3465a44d}.button-primary{width:100%;padding:10px 12px;border:none;background:var(--button-red);color:#fff;font-weight:700;font-size:13px;cursor:pointer;border-top:3px solid #ff6666;border-left:3px solid #ff6666;border-right:3px solid #660000;border-bottom:3px solid #660000;box-shadow:1px 1px 2px #0006;text-shadow:1px 1px 1px rgba(0,0,0,.3)}.button-primary:hover:not(:disabled){background:#d22;border-top-color:#f77;border-left-color:#f77}.button-primary:active:not(:disabled){border-top:3px solid #660000;border-left:3px solid #660000;border-right:3px solid #ff6666;border-bottom:3px solid #ff6666;padding:11px 10px 9px 14px;box-shadow:inset 2px 2px 3px #0006}.button-primary:disabled{opacity:.4;cursor:not-allowed}.button-green{background:var(--button-green);border-top:3px solid #7ed726;border-left:3px solid #7ed726;border-right:3px solid #2d5703;border-bottom:3px solid #2d5703}.button-green:hover:not(:disabled){background:#5eb00e;border-top-color:#8ee736;border-left-color:#8ee736}.button-green:active:not(:disabled){border-top:3px solid #2d5703;border-left:3px solid #2d5703;border-right:3px solid #7ed726;border-bottom:3px solid #7ed726}.card{margin:0 0 12px;background:#fff;border-top:3px solid #888;border-left:3px solid #888;border-right:3px solid #fff;border-bottom:3px solid #fff;overflow:hidden;box-shadow:2px 2px #0003}.card:first-child{margin-top:0}.card-header{background:linear-gradient(180deg,#ffe870,gold);padding:6px 10px;font-weight:700;font-size:12px;display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #aa8800;text-shadow:1px 1px 0 rgba(255,255,255,.6)}.card-header.collapsible{cursor:pointer;-webkit-user-select:none;user-select:none}.card-header.collapsible:hover{background:linear-gradient(180deg,#fff886,#fde968,#fae521)}.card-body{padding:10px;line-height:1.6}.card-body-jp{font-size:18px;font-weight:500;margin-bottom:8px}.card-actions{padding:8px 10px;border-top:1px solid #ddd;display:flex;gap:8px}.btn-small{padding:5px 12px;background:var(--panel-grey);font-size:11px;cursor:pointer;border-top:2px solid #f0f0f0;border-left:2px solid #f0f0f0;border-right:2px solid #707070;border-bottom:2px solid #707070;font-weight:600;box-shadow:1px 1px #00000026}.btn-small:hover{background:#e4e4e4;border-top-color:#fff;border-left-color:#fff}.btn-small:active{border-top:2px solid #707070;border-left:2px solid #707070;border-right:2px solid #f0f0f0;border-bottom:2px solid #f0f0f0;padding:6px 11px 4px 13px;box-shadow:inset 1px 1px 2px #0003}.error-categories{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.error-tag{padding:3px 6px;background:#ffebcd;font-size:10px;font-weight:600;border-top:1px solid #fff5dd;border-left:1px solid #fff5dd;border-right:1px solid #daa520;border-bottom:1px solid #daa520}.breakdown-item{margin-bottom:10px;padding:6px;background:#f9f9f9;border-top:1px solid #ccc;border-left:1px solid #ccc;border-right:1px solid #fff;border-bottom:1px solid #fff}.breakdown-chunk{font-size:15px;font-weight:700;color:#222}.breakdown-gloss{font-size:13px;color:#555;margin-top:2px}.breakdown-role{font-size:11px;color:#888;font-style:italic;margin-top:2px}.grammar-point-item{margin-bottom:8px;padding:6px;background:#e8f4ff;border-top:1px solid #b0d4ff;border-left:1px solid #b0d4ff;border-right:1px solid #fff;border-bottom:1px solid #fff}.grammar-point-label{font-weight:700;color:#1a5490;margin-bottom:3px;font-size:12px}.history-list{margin-top:0;max-height:600px;overflow-y:auto}.history-item{padding:8px;border-bottom:1px solid #ccc}.history-item summary{cursor:pointer;list-style:none;padding:4px;-webkit-user-select:none;user-select:none}.history-item summary::-webkit-details-marker{display:none}.history-item summary:hover{background:#e8e8e8}.history-item[open] summary{background:#ddd;border-bottom:1px solid #aaa;margin-bottom:8px}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.history-mode{font-weight:700;font-size:10px;padding:2px 5px;background:var(--panel-grey);border-top:1px solid #f0f0f0;border-left:1px solid #f0f0f0;border-right:1px solid #888;border-bottom:1px solid #888}.history-timestamp{font-size:10px;color:#666}.history-snippet{font-size:13px;color:#222;margin-bottom:3px}.history-meta{display:flex;flex-wrap:wrap;gap:3px}.history-tag{font-size:9px;padding:2px 4px;background:#f0f0f0;color:#555;border-top:1px solid #fff;border-left:1px solid #fff;border-right:1px solid #ccc;border-bottom:1px solid #ccc}.settings-drawer{position:fixed;top:0;right:0;width:320px;height:100vh;background:var(--panel-grey);border-left:2px solid #000;border-top:1px solid #fff;box-shadow:-2px 0 #888,-4px 0 8px #0000004d;transform:translate(100%);transition:transform .3s ease;z-index:1000;padding:12px;overflow-y:auto}.settings-drawer.open{transform:translate(0)}.settings-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:8px;border-bottom:2px groove #999}.settings-title{font-size:14px;font-weight:700}.close-btn{background:var(--panel-grey);border-top:1px solid #fff;border-left:1px solid #fff;border-right:1px solid #666;border-bottom:1px solid #666;font-size:18px;cursor:pointer;padding:2px 6px;line-height:1}.close-btn:hover{background:#e4e4e4}.close-btn:active{border-top:1px solid #666;border-left:1px solid #666;border-right:1px solid #fff;border-bottom:1px solid #fff;padding:3px 5px 1px 7px}.settings-field{margin-bottom:14px}.settings-label{display:block;font-weight:600;margin-bottom:4px;font-size:12px}.settings-input{width:100%;padding:6px;border:none;background:#fff;font-size:13px;font-family:inherit;box-shadow:inset 2px 2px #999,inset -1px -1px #fff,inset 3px 3px 2px #00000026}.settings-input:focus{outline:none;box-shadow:inset 2px 2px 0 var(--active-blue),inset -1px -1px #fff,inset 3px 3px 2px #3465a440}.overlay{position:fixed;inset:0;background:#0006;z-index:999}.loading{opacity:.6;pointer-events:none}.mode-selector-btn{width:100%;display:flex;align-items:center;gap:12px;padding:10px 16px;margin-bottom:12px;background:var(--panel-grey);border:none;cursor:pointer;font-size:14px;font-weight:600;border-top:3px solid #f0f0f0;border-left:3px solid #f0f0f0;border-right:3px solid #707070;border-bottom:3px solid #707070;box-shadow:1px 1px 2px #0003}.mode-selector-btn:hover{background:#e4e4e4;border-top-color:#fff;border-left-color:#fff}.mode-selector-btn:active{border-top:3px solid #707070;border-left:3px solid #707070;border-right:3px solid #f0f0f0;border-bottom:3px solid #f0f0f0;padding:11px 15px 9px 17px;box-shadow:inset 1px 1px 2px #0003}.mode-icon{font-size:20px}.mode-label{flex:1;text-align:left}.mode-arrow{font-size:10px;opacity:.7}.mode-tray-overlay{position:fixed;inset:0;z-index:100}.mode-tray{position:absolute;left:0;right:0;top:100%;margin-top:-12px;width:100%;background:#fff;border-top:3px solid #888;border-left:3px solid #888;border-right:3px solid #fff;border-bottom:3px solid #fff;box-shadow:inset 1px 1px 2px #00000026,2px 2px 8px #0000004d;z-index:101;padding:12px;display:flex;gap:8px;justify-content:center}.mode-tray-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 12px;background:transparent;border:none;cursor:pointer;flex:1;max-width:90px;border:1px solid transparent;transition:none}.mode-tray-item:hover{background:#0000000d;border:1px solid rgba(0,0,0,.1)}.mode-tray-item:active{background:#0000001a;border:1px solid rgba(0,0,0,.15)}.mode-tray-item.active{background:#ffe8704d;border:1px solid #aa8800}.mode-tray-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center}.mode-tray-label{font-size:10px;font-weight:500;text-transform:capitalize;color:#000}*{box-sizing:border-box;margin:0;padding:0}:root{--bg-beos-blue: #5b7f9e;--panel-grey: #d6d6d6;--title-yellow: #fce94f;--active-blue: #3465a4;--button-red: #cc0000;--button-red-dark: #800000;--button-green: #4e9a06;--textarea-cream: #fffceb;--border-dark: #6e6e6e;--shadow: #444}body{font-family:Lucida Grande,Segoe UI,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;background:var(--bg-beos-blue);background-image:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,.03) 2px,rgba(0,0,0,.03) 4px),repeating-linear-gradient(90deg,transparent,transparent 2px,rgba(0,0,0,.03) 2px,rgba(0,0,0,.03) 4px);min-height:100vh;padding:12px}#root{max-width:600px;margin:0 auto}
