.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:root{color:#17201b;background:#edf1ee;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}body.terminal-page-open{overflow:hidden}body.tool-page-open{overflow-x:hidden}button,input,select,textarea{font:inherit}button{min-height:40px;border:1px solid #26362d;border-radius:6px;padding:0 14px;color:#f6faf6;background:#26362d;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button.danger{border-color:#6d2828;color:#fff7f7;background:#8b3434}.button-link{display:inline-flex;min-height:40px;align-items:center;border:1px solid #26362d;border-radius:6px;padding:0 14px;color:#f6faf6;background:#26362d;text-decoration:none}input{width:100%;min-height:40px;border:1px solid #b7c2bb;border-radius:6px;padding:8px 10px;color:#17201b;background:#fff}select,textarea{border:1px solid #b7c2bb;border-radius:6px;color:#17201b;background:#fff}select{min-height:40px;padding:0 10px}textarea{min-height:160px;resize:vertical;padding:10px;font-family:Consolas,Cascadia Mono,Lucida Console,monospace;font-size:13px;line-height:1.45}label{display:grid;gap:6px;color:#405247;font-size:13px;font-weight:600}h1,h2,h3,p{margin-top:0}h1{margin-bottom:12px;font-size:28px;line-height:1.05;letter-spacing:0}h2{margin-bottom:18px;font-size:20px}h3{margin:22px 0 10px;font-size:15px}.app{min-height:100vh;padding:24px}.auth-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:24px;align-items:stretch;max-width:1120px;min-height:calc(100vh - 48px);margin:0 auto}.simple-auth{grid-template-columns:minmax(280px,380px);place-content:center}.brand-block{display:flex;flex-direction:column;justify-content:center;min-height:420px;padding:24px 0}.brand-block p{max-width:560px;color:#405247;font-size:18px;line-height:1.55}dl{display:grid;gap:10px;margin:30px 0 0}dl div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px}dt{color:#64746b;font-weight:700}dd{margin:0;overflow-wrap:anywhere;color:#17201b}.panel{align-self:center;display:grid;gap:16px;width:100%;border:1px solid #d0d8d3;border-radius:8px;padding:22px;background:#fbfdfb;box-shadow:0 8px 28px #1c2a2114}.auth-panel{align-self:center}.auth-panel h1{margin-bottom:4px}.actions{display:flex;flex-wrap:wrap;gap:10px}.status{border-radius:6px;padding:10px 12px;font-size:14px}.status.ok{color:#0d3a25;background:#dff4e8}.status.warn{color:#4c3607;background:#fff0c2}.status.bad{color:#5c1717;background:#ffe0e0}.status.muted-status{color:#64746b;background:#eef2ef}.notification-block{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:12px;align-items:stretch;border:1px solid #dce5df;border-radius:8px;padding:12px;background:#f9fbfa}.notification-stream,.disk-space-card{display:grid;gap:8px;min-width:0}.notification-stream>span,.disk-space-card span,.disk-space-card small{color:#64746b;font-size:12px;font-weight:700}.notification-block .status{min-width:0;overflow-wrap:anywhere}.disk-space-card{align-content:center}.disk-space-card>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.disk-space-card strong{color:#17201b;font-size:18px}.disk-space-meter{height:8px;overflow:hidden;border-radius:999px;background:#dfe8e2}.disk-space-meter span{display:block;height:100%;min-width:2px;border-radius:inherit;background:#425a4b}.topbar{display:flex;justify-content:space-between;gap:16px;align-items:center;max-width:1180px;margin:0 auto 20px}.topbar div{display:grid;gap:4px}.topbar span,.muted{color:#65756b}.workspace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:20px;max-width:1180px;margin:0 auto}.workspace .panel:last-child{grid-column:1 / -1}.tool-page{min-height:100vh}.manager-topbar{align-items:flex-start}.manager-topbar>div:first-child strong{display:block;margin-bottom:4px;font-size:20px}.manager-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;max-width:1240px;margin:0 auto}.manager-sidebar{display:grid;align-self:start;gap:10px}.stat-block,.health-card{display:grid;gap:4px;border:1px solid #d7e0da;border-radius:8px;padding:14px;background:#fbfdfb}.stat-block span,.health-card span{color:#64746b;font-size:12px;font-weight:700;text-transform:uppercase}.stat-block strong{font-size:28px;line-height:1}.manager-main{display:grid;gap:14px;min-width:0}.manager-tabs,.segmented{display:flex;flex-wrap:wrap;gap:8px}.manager-tabs{border-bottom:1px solid #d2dbd5;padding-bottom:10px}.manager-tabs button,.segmented button{min-height:34px;border-color:#c5d0c9;color:#26362d;background:#f7faf8}.manager-tabs button.active,.segmented button.active{border-color:#26362d;color:#f6faf6;background:#26362d}.manager-panel{display:grid;gap:16px;border:1px solid #d0d8d3;border-radius:8px;padding:18px;background:#fbfdfb;box-shadow:0 8px 28px #1c2a2114}.section-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.section-header.compact{align-items:center}.section-header h2{margin-bottom:4px}.section-header p{margin-bottom:0}.split-panel,.add-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.add-grid form{display:grid;gap:12px;align-content:start;border:1px solid #e1e8e4;border-radius:8px;padding:14px;background:#f8faf8}.add-grid form:nth-child(3){grid-column:1 / -1}.search-row,.two-col{display:grid;gap:8px}.search-row{grid-template-columns:minmax(0,1fr) auto}.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.media-list,.result-cards{display:grid;gap:10px}.media-row,.result-card{display:grid;gap:8px;border:1px solid #e1e8e4;border-radius:8px;padding:12px;background:#f8faf8}.media-row{grid-template-columns:minmax(0,1fr) auto;align-items:start}.media-row>div:first-child,.result-card{min-width:0}.media-row strong,.result-card strong{display:block;color:#17201b;overflow-wrap:anywhere}.media-row span,.result-card span{overflow-wrap:anywhere;color:#64746b;font-size:12px}.season-strip{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:6px}.media-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px}.media-actions button{min-height:34px}.season-strip span{border-radius:999px;padding:4px 8px;background:#e8efeb;font-weight:700}.torrent-progress{grid-column:1 / -1;display:grid;gap:6px}.torrent-actions{grid-column:1 / -1;display:flex;justify-content:flex-start}.torrent-actions button{min-height:34px}.progress-bar{width:100%;height:8px;overflow:hidden;border-radius:999px;background:#e1e8e4}.progress-bar span{display:block;height:100%;border-radius:inherit;background:#3a6f58}.torrent-metrics{display:flex;flex-wrap:wrap;gap:8px 12px;color:#64746b;font-size:12px;font-weight:700}.result-card{grid-template-columns:minmax(0,1fr);align-items:start}.result-card button{justify-self:start}.torrent-result{grid-template-columns:minmax(0,1fr) auto;align-items:center}.torrent-result strong,.torrent-result span{grid-column:1}.torrent-result button{grid-column:2;grid-row:1 / span 2}.torrent-result.unavailable{opacity:.68}.torrent-result.unavailable strong{color:#5c1717}.torrent-section{display:grid;gap:10px}.torrent-match-panel{display:grid;gap:10px;margin-top:16px;border-top:1px solid #e1e8e4;padding-top:14px}.compact-list{max-height:360px;overflow:auto;padding-right:2px}.api-workbench{align-content:start}.tool-grid{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr);gap:20px;max-width:1180px;margin:0 auto}.yui-page{display:grid;grid-template-rows:auto minmax(0,1fr);height:100dvh}.yui-shell{display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:14px;width:100%;max-width:900px;min-height:0;margin:0 auto}.yui-transcript{display:flex;flex-direction:column;gap:12px;min-height:320px;overflow-y:auto;border:1px solid #d7e0da;border-radius:8px;padding:16px;background:#f8faf8}.yui-empty{display:grid;gap:6px;place-content:center;min-height:100%;color:#64746b;text-align:center}.yui-message{align-self:flex-start;max-width:min(78%,680px);border:1px solid #d7e0da;border-radius:8px;padding:10px 12px;background:#fff}.yui-message.user{align-self:flex-end;border-color:#40594a;color:#f6faf6;background:#40594a}.yui-message strong{display:block;margin-bottom:4px;font-size:12px}.yui-message p{margin:0;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.yui-message.pending{color:#64746b}.yui-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.yui-composer textarea{width:100%;min-height:72px;max-height:220px}.yui-composer button{min-width:90px}.image-creator-shell{display:grid;grid-template-columns:minmax(320px,.75fr) minmax(0,1.25fr);gap:20px;max-width:1240px;margin:0 auto}.image-controls{align-self:start}.image-controls textarea{min-height:220px}.image-upload input{padding:7px}.input-image-preview,.generated-image{display:block;max-width:100%;border:1px solid #d0d8d3;border-radius:8px;background:#eef2ef}.input-image-preview{max-height:280px;margin:0 auto;object-fit:contain}.input-image-selection{display:grid;gap:10px;justify-items:center}.input-image-selection button{min-height:34px}.image-setting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.checkbox-label{display:flex;gap:9px;align-items:center}.checkbox-label input{width:auto;min-height:auto}.image-result{align-self:start;min-height:620px}.generated-image{width:100%;max-height:75vh;object-fit:contain}.image-job-progress{display:grid;gap:7px;border:1px solid #dfe7e2;border-radius:8px;padding:12px;background:#f8faf8}.image-job-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;color:#405247;font-size:13px}.image-job-progress small{color:#64746b;font-size:12px}.refined-prompt{border-top:1px solid #dfe7e2;padding-top:12px}.refined-prompt summary{cursor:pointer;color:#405247;font-weight:700}.refined-prompt p{margin:10px 0 0;color:#405247;font-size:13px;line-height:1.5}.refined-prompt-editor{border-top:1px solid #dfe7e2;padding-top:12px;display:grid;gap:10px}.refined-prompt-editor textarea{min-height:140px}.api-controls{align-self:start}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quick-actions button{width:100%}.endpoint-row{display:grid;grid-template-columns:104px minmax(0,1fr) auto;gap:8px;align-items:center}.result-panel{align-self:start;min-height:520px}.result-panel pre{min-height:420px;max-height:calc(100vh - 220px);overflow:auto;border:1px solid #dfe7e2;border-radius:8px;margin:0;padding:14px;color:#d8e2dc;background:#101713;font-family:Consolas,Cascadia Mono,Lucida Console,monospace;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.result-list{display:grid;gap:10px}.result-count{color:#64746b;font-size:13px;font-weight:700}.empty-tool{display:grid;place-items:center;min-height:180px;border:1px dashed #b7c2bb;border-radius:8px;color:#64746b;background:#f6f8f6}.terminal-tool{display:grid;gap:10px}.terminal-page{position:fixed;inset:0;display:grid;width:100vw;height:100vh;overflow:hidden;background:#101713}.floating-toolbar{position:fixed;top:14px;right:14px;z-index:10;display:flex;flex-wrap:wrap;gap:8px;align-items:center;max-width:calc(100vw - 28px);border:1px solid rgba(216,226,220,.18);border-radius:8px;padding:8px;color:#d8e2dc;background:#101713e0;box-shadow:0 8px 24px #00000052;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.floating-toolbar span{color:#b6c4bc;font-size:13px}.floating-toolbar button{min-height:34px;border-color:#d8e2dc3d;color:#f6faf6;background:#2c3f34}.floating-toolbar .actions{gap:8px}.terminal-fullscreen{width:100vw;height:100vh;overflow:hidden;padding:10px;background:#101713;touch-action:pan-y}.terminal-fullscreen .xterm{height:100%}.terminal-fullscreen .xterm-viewport{overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}.terminal-fullscreen .xterm-screen{touch-action:pan-y}.tool-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e1e8e4;border-radius:8px;padding:12px;background:#f8faf8}.tool-card>div:first-child{display:grid;gap:4px}.tool-card span{color:#64746b;font-size:13px}.tool-card .status{grid-column:1 / -1}.tool-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.terminal-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#64746b;font-size:13px}.terminal-toolbar .actions{justify-content:flex-end}.terminal-frame{width:100%;height:min(58vh,520px);min-height:320px;overflow:hidden;border:1px solid #1d2a22;border-radius:8px;padding:8px;background:#101713}.terminal-frame .xterm{height:100%}.table{display:grid;gap:10px}.row,.device-actions,.audit div{display:flex;justify-content:space-between;gap:14px;align-items:center;border-top:1px solid #e5ebe7;padding-top:10px}.row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;align-items:center}.row-actions button{min-height:32px}.row div{display:grid;gap:3px;min-width:0}.row span,.audit span{overflow-wrap:anywhere;color:#64746b;font-size:12px}mark{border-radius:999px;padding:4px 8px;color:#26362d;background:#e7ece9;font-size:12px;font-weight:700}mark.approved{color:#0d3a25;background:#dff4e8}mark.pending{color:#4c3607;background:#fff0c2}mark.revoked{color:#5c1717;background:#ffe0e0}.device-actions button{min-height:34px}.audit{display:grid;gap:10px;max-height:260px;overflow:auto}@media(max-width:800px){.app{padding:16px}.auth-shell,.workspace,.tool-grid,.image-creator-shell,.manager-shell,.notification-block,.split-panel,.add-grid{grid-template-columns:1fr}.brand-block{min-height:auto;justify-content:flex-start}.panel{padding:18px}.manager-topbar{display:grid}.manager-topbar .actions,.section-header,.search-row,.two-col,.torrent-result{grid-template-columns:1fr}.section-header{display:grid}.add-grid form:nth-child(3),.torrent-result strong,.torrent-result span,.torrent-result button,.result-card strong,.result-card span,.result-card button{grid-column:auto;grid-row:auto}.endpoint-row{grid-template-columns:1fr}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.image-setting-grid{grid-template-columns:1fr}.yui-page{padding-bottom:16px}.yui-message{max-width:90%}.yui-composer{grid-template-columns:1fr}.yui-composer button{width:100%}.floating-toolbar{inset:auto 0 0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 10px;align-items:center;border-right:0;border-bottom:0;border-left:0;border-radius:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#101713f5}.floating-toolbar>button{width:68px}.floating-toolbar>span{min-width:0;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.floating-toolbar .actions{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%}.floating-toolbar .actions button{width:100%;min-height:38px}.terminal-page{grid-template-rows:minmax(0,calc(100dvh - 100px))}.terminal-fullscreen{height:calc(100dvh - 100px);padding:8px}}@media(max-width:520px){.floating-toolbar button{padding:0 10px}}
