/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.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;right:0;left:0;top:0;bottom: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;left:0;top:0;bottom:0;right: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{--bg: #f4f6fb;--surface: #ffffff;--surface-2: #f8fafc;--border: #e5e9f0;--text: #1f2937;--muted: #6b7280;--accent: #4f46e5;--accent-hover: #4338ca;--accent-soft: #eef2ff;--danger: #dc2626;--danger-hover: #b91c1c;--success: #16a34a;--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,system-ui,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.muted{color:var(--muted)}button,a,select,input,label{-webkit-tap-highlight-color:transparent}button,a,select{touch-action:manipulation}.center{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:20px}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:22px;box-shadow:var(--shadow)}.auth-card{width:360px;max-width:calc(100vw - 40px);display:flex;flex-direction:column;gap:14px}.auth-card h1{margin:0;font-size:22px;font-weight:700}.auth-card label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--muted)}input{padding:10px 12px;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:14px;outline:none;transition:border-color .15s,box-shadow .15s}input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.btn{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font-size:14px;font-weight:500;line-height:1;transition:background .15s,border-color .15s,opacity .15s}.btn:hover{background:var(--surface-2)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover{background:var(--accent-hover)}.btn.danger{background:#fff;border-color:#f3c0c0;color:var(--danger)}.btn.danger:hover{background:#fdf2f2}.error{background:#fef2f2;border:1px solid #fecaca;color:var(--danger);padding:9px 11px;border-radius:9px;font-size:13px}.page{min-height:100vh;min-height:100dvh}.topbar{display:flex;align-items:center;gap:10px;padding:12px 22px;background:var(--surface);border-bottom:1px solid var(--border)}.topbar strong{font-size:15px}.spacer{flex:1}.conn{font-size:12px;padding:3px 10px;border-radius:999px;font-weight:500}.conn.on{background:#ecfdf3;color:#15803d}.conn.off{background:#fff7ed;color:#c2410c}.app-shell{display:flex;min-height:100vh;min-height:100dvh}.sidebar{width:244px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;gap:18px;padding:18px 14px;padding-left:calc(14px + env(safe-area-inset-left));position:sticky;top:0;height:100vh;height:100dvh}.sidebar-brand{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0 6px}.sidebar-brand strong{font-size:15px}.sidebar-brand .conn{flex-basis:100%;width:fit-content}.sidebar-nav{display:flex;flex-direction:column;gap:4px}.sidebar-link{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;color:var(--text);font-size:14px;font-weight:500;text-decoration:none;transition:background .15s,color .15s}.sidebar-link:hover{background:var(--surface-2);text-decoration:none}.sidebar-link.active{background:var(--accent-soft);color:var(--accent-hover);font-weight:600}.nav-icon{display:inline-flex;flex-shrink:0;color:inherit}.sidebar-toggle{display:none;align-items:center;justify-content:center;width:40px;height:40px;border:none;border-radius:9px;background:transparent;color:var(--text);cursor:pointer}.sidebar-toggle:hover{background:var(--surface-2)}.sidebar-avatar{display:none;align-items:center;justify-content:center;width:40px;height:40px;border:none;border-radius:50%;background:var(--accent);color:#fff;font-weight:600;font-size:15px;cursor:pointer;margin:0 auto}.sidebar-scrim{display:none}.sidebar-footer{margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:0 6px}.sidebar-email{font-size:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-footer .btn{width:100%;justify-content:center}.org-switcher{width:100%;padding:6px 8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:13px}.lang-selector{padding:6px 8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:13px}.app-main{flex:1;min-width:0;display:flex;flex-direction:column}.app-header{display:flex;align-items:center;gap:10px;padding:14px 24px;padding-right:calc(24px + env(safe-area-inset-right));background:var(--surface);border-bottom:1px solid var(--border)}.app-header strong{font-size:16px}.page-subtitle{color:var(--muted);font-size:14px}.content{padding:24px;display:flex;flex-direction:column;gap:16px;max-width:1100px}@media (max-width: 720px){.app-shell{flex-direction:column}.sidebar{width:100%;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;position:static;border-right:none;border-bottom:1px solid var(--border)}.sidebar-nav{flex-direction:row;flex-wrap:wrap}.sidebar-footer{margin-top:0;margin-left:auto;flex-direction:row;align-items:center}.sidebar-footer .btn{width:auto}}.device-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}.device-head h2{margin:0;font-size:17px;font-weight:600}.projects{display:flex;flex-direction:column;gap:10px}.project-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:11px;padding:13px 16px}.project-info{min-width:0}.project-name{display:flex;align-items:center;gap:8px;font-weight:600}.project-desc{color:var(--muted);font-size:13px;margin-top:3px}.project-actions{display:flex;align-items:center;gap:10px;row-gap:8px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}.badge{font-size:12px;padding:3px 10px;border-radius:999px;font-weight:500;background:#eef2ff;color:#4338ca}.badge.running{background:#ecfdf3;color:#15803d}.badge.stopped{background:#f1f5f9;color:#64748b}.badge-btn{border:none;cursor:pointer;font:inherit;font-size:12px}.hint-btn{border:none;background:transparent;padding:0;font:inherit;font-size:13px;cursor:pointer}.dot{width:10px;height:10px;border-radius:50%;display:inline-block}.dot.green{background:var(--success)}.dot.gray{background:#cbd5e1}.term-page{display:flex;flex-direction:column;height:100vh;height:100dvh}.term-page .topbar{padding-top:calc(12px + env(safe-area-inset-top))}.term-wrap{flex:1;min-height:0;background:#1e1e2e;padding:8px;padding-left:calc(8px + env(safe-area-inset-left));padding-bottom:calc(8px + env(safe-area-inset-bottom))}.term-keys{display:none;gap:8px;padding:6px 8px;background:#1e1e2e;border-bottom:1px solid #3b3b52}@media (pointer: coarse){.term-keys{display:flex}.term-keys .btn{min-height:44px;background:#2a2a3d;border-color:#3b3b52;color:#cdd6f4}.term-keys .btn:hover{background:#33334a}}.term-host{width:100%;height:100%}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{width:430px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:22px;box-shadow:0 20px 50px #1018282e}.preset-select{padding:8px 10px;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:13px;cursor:pointer}.topbar-logo{height:26px;width:auto;margin-right:4px}.auth-logo{display:block;height:56px;width:auto;margin:0 auto 10px}.toast-stack{position:fixed;z-index:1100;right:calc(18px + env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;max-width:340px}.toast{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:10px;padding:11px 14px;box-shadow:0 10px 30px #10182824;cursor:pointer;animation:toast-in .18s ease-out}.toast-success{border-left-color:var(--success)}.toast-error{border-left-color:var(--danger)}.toast-title{font-weight:600;font-size:13px;margin-bottom:2px}.toast-msg{font-size:13px;color:var(--muted)}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}.metric{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:12px 14px}.metric-value{font-size:22px;font-weight:700}.metric-label{font-size:12px;color:var(--muted);margin-top:2px}.card h2{margin:0 0 12px;font-size:16px;font-weight:600}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 8px}.row input[type=email],.row input[type=text]{flex:1;min-width:220px;padding:9px 11px;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:14px}.row select,table.audit select{padding:7px 9px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer}.modal.wide{width:640px}.modal-title{margin:0 0 8px;font-size:17px;font-weight:600}.modal-title.modal-error{color:var(--danger)}.workitems-list{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto;margin:6px 0 4px}.workitem{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--border);border-radius:9px;cursor:pointer}.workitem:hover{border-color:var(--accent)}.workitem input[type=checkbox]{cursor:pointer}.workitem-id{font-variant-numeric:tabular-nums;color:var(--muted);font-size:13px}.workitem-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wi-detail{display:flex;flex-direction:column}.wi-meta{margin:0 0 10px;font-size:13px}.wi-frame{width:100%;height:48vh;border:1px solid var(--border);border-radius:9px;background:#fff}.modal-title.modal-success{color:var(--success)}.modal-title.modal-info{color:var(--accent)}.modal-body{margin:0 0 18px;color:var(--muted);line-height:1.45;white-space:pre-wrap;word-break:break-word}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}.table-scroll table.audit{min-width:640px}table.audit{width:100%;border-collapse:collapse;font-size:13px}table.audit th,table.audit td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--border)}table.audit th{color:var(--muted);font-weight:600}.audit-filters{margin-top:0}.audit-filters input[type=text]{flex:1;min-width:220px}.pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--border);font-size:13px}.pagination-size{display:inline-flex;align-items:center;gap:6px}.public-site{display:flex;flex-direction:column;min-height:100vh}.public-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:18px;padding:12px 28px;padding-top:calc(12px + env(safe-area-inset-top));background:#ffffffe6;-webkit-backdrop-filter:saturate(180%) blur(8px);backdrop-filter:saturate(180%) blur(8px);border-bottom:1px solid var(--border)}.public-brand{display:flex;align-items:center;gap:8px;color:var(--text);text-decoration:none}.public-brand strong{font-size:16px}.public-nav{display:flex;align-items:center;gap:18px;margin-left:14px}.public-nav a{color:var(--text);font-size:14px;font-weight:500;text-decoration:none}.public-nav a:hover{color:var(--accent);text-decoration:none}.public-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.btn.lg{padding:12px 20px;font-size:15px;border-radius:11px}.hero{padding:76px 28px 64px;background:radial-gradient(1100px 380px at 50% -10%,var(--accent-soft),transparent 70%),linear-gradient(180deg,#fbfcff,var(--bg));border-bottom:1px solid var(--border)}.hero-inner{max-width:860px;margin:0 auto;text-align:center}.hero-eyebrow{display:inline-block;font-size:13px;font-weight:600;color:var(--accent);background:var(--accent-soft);padding:5px 12px;border-radius:999px;margin-bottom:18px}.hero h1{font-size:clamp(28px,5vw,46px);line-height:1.1;margin:0 0 16px;letter-spacing:-.02em}.hero-sub{font-size:18px;color:var(--muted);line-height:1.5;max-width:680px;margin:0 auto 26px}.hero-sub code,.docs-article code{background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:1px 6px;font-size:.9em}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}.hero-note{margin-top:18px;font-size:13px}.section{max-width:1080px;margin:0 auto;padding:64px 28px}.section-alt{max-width:none;background:var(--surface);border-block:1px solid var(--border)}.section-alt>*{max-width:1080px;margin-inline:auto}.section-head{text-align:center;margin-bottom:36px}.section-head h2{font-size:28px;margin:0 0 8px;letter-spacing:-.01em}.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.feature-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:22px;box-shadow:var(--shadow)}.feature-card h3{margin:6px 0 8px;font-size:17px}.feature-card p{margin:0;font-size:14px;line-height:1.5}.feature-icon{font-size:28px}.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.step{text-align:center;padding:10px}.step-n{width:42px;height:42px;margin:0 auto 12px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;font-weight:700;font-size:18px}.step h3{margin:0 0 6px;font-size:17px}.step p{margin:0;font-size:14px;line-height:1.5}.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;max-width:820px;margin:0 auto}.plan{display:flex;flex-direction:column;gap:12px}.plan h3{margin:0;font-size:22px}.plan-featured{border-color:var(--accent);box-shadow:0 8px 30px #4f46e51f}.plan-list{margin:4px 0 14px;padding-left:18px;display:flex;flex-direction:column;gap:8px;color:var(--text);font-size:14px}.plan .btn{margin-top:auto;justify-content:center}.security-banner{display:flex;gap:18px;align-items:flex-start;background:var(--accent-soft);border:1px solid #dfe2fb;border-radius:16px;padding:26px;max-width:1080px;margin:0 auto}.security-icon{font-size:34px;line-height:1}.security-banner h3{margin:0 0 6px;font-size:19px}.security-banner p{margin:0;line-height:1.55}.cta-band{text-align:center;color:#fff;border-radius:20px;padding:48px 28px;background:linear-gradient(135deg,var(--accent),#6d28d9)}.cta-band h2{margin:0 0 8px;font-size:28px}.cta-band p{margin:0 0 24px;opacity:.92}.cta-btn{background:#fff;border-color:#fff;color:var(--accent-hover)}.cta-btn:hover{background:#f1f1ff}.cta-btn-ghost{background:transparent;border-color:#fff9;color:#fff}.cta-btn-ghost:hover{background:#ffffff1f}.public-footer{margin-top:auto;background:var(--surface);border-top:1px solid var(--border);padding:32px 28px}.public-footer-inner{max-width:1080px;margin:0 auto;display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}.public-footer-brand{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.public-footer-links{display:flex;flex-wrap:wrap;gap:18px}.public-footer-links a{font-size:14px}.public-footer-note{max-width:1080px;margin:18px auto 0;font-size:12px;line-height:1.5}.docs-layout{max-width:1100px;margin:0 auto;padding:32px 28px;display:grid;grid-template-columns:250px 1fr;gap:36px;align-items:start}.docs-toc{position:sticky;top:76px;display:flex;flex-direction:column;gap:6px}.docs-toc strong{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:4px}.docs-toc nav{display:flex;flex-direction:column;gap:2px}.docs-toc a{color:var(--text);font-size:14px;padding:6px 10px;border-radius:8px;text-decoration:none}.docs-toc a:hover{background:var(--surface-2);text-decoration:none}.docs-article{min-width:0}.docs-article>h1{font-size:30px;margin:0 0 6px;letter-spacing:-.01em}.docs-section{scroll-margin-top:90px;padding:22px 0;border-top:1px solid var(--border)}.docs-section h2{font-size:21px;margin:0 0 12px}.docs-article p{line-height:1.6}.docs-article ul{line-height:1.6;padding-left:20px}.docs-article li{margin:4px 0}@media (max-width: 860px){.public-header{flex-wrap:wrap;gap:10px;padding:12px 18px}.public-nav{margin-left:0;order:3;flex-basis:100%}.public-actions{margin-left:auto}.section{padding:44px 18px}.hero{padding:52px 18px 44px}.docs-layout{grid-template-columns:1fr;gap:16px}.docs-toc{position:static;top:auto}.docs-toc nav{flex-direction:row;flex-wrap:wrap}}.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:8px;border-radius:9px;background:var(--accent);color:#fff;font-size:11px;font-weight:600}.btn.sm{padding:4px 10px;font-size:13px}.page-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.page-actions h2{margin:0}.org-discoverable{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:14px}.notif-list{display:flex;flex-direction:column;gap:10px}.notif-row{display:flex;gap:12px;align-items:flex-start;padding:12px 14px}.notif-unread{border-left:3px solid var(--accent);background:var(--accent-soft)}.notif-icon{font-size:20px;line-height:1}.notif-body{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.notif-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.search-box{display:flex;align-items:center;gap:10px;padding:10px 14px;margin:12px 0}.search-box input{border:none;outline:none;flex:1;font-size:15px;background:transparent;color:var(--text)}.search-icon{color:var(--muted)}.org-results{display:flex;flex-direction:column;gap:10px}.org-result{display:flex;align-items:center;gap:12px;padding:12px 14px}.org-avatar,.chat-conv-avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--accent);color:#fff;font-weight:600;flex-shrink:0}.org-result-info{display:flex;flex-direction:column;flex:1;min-width:0}.chat-layout{display:grid;grid-template-columns:280px 1fr;gap:14px;height:calc(100vh - 120px);height:calc(100dvh - 120px)}.chat-sidebar{display:flex;flex-direction:column;padding:12px;overflow:hidden}.chat-sidebar-head{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}.chat-new-btns{display:flex;gap:6px}.chat-conv-list{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1}.chat-conv{display:flex;align-items:center;gap:10px;padding:8px;border-radius:8px;cursor:pointer}.chat-conv:hover{background:var(--surface-2)}.chat-conv.active{background:var(--accent-soft)}.chat-conv-avatar{width:30px;height:30px;font-size:13px}.chat-conv-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-main{display:flex;flex-direction:column;padding:0;overflow:hidden}.chat-header{padding:12px 16px;border-bottom:1px solid var(--border);display:flex;align-items:baseline;gap:10px}.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}.chat-msg{display:flex}.chat-msg.mine{justify-content:flex-end}.chat-bubble{max-width:70%;padding:8px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);white-space:pre-wrap;word-break:break-word}.chat-msg.mine .chat-bubble{background:var(--accent);color:#fff;border-color:var(--accent)}.chat-input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--border)}.chat-input input{flex:1;padding:8px 12px;border:1px solid var(--border);border-radius:8px}.chat-empty{display:flex;align-items:center;justify-content:center;height:100%}.chat-compose{padding:16px;display:flex;flex-direction:column;gap:12px}.chat-compose input[type=text]{padding:8px 12px;border:1px solid var(--border);border-radius:8px}.chat-member-pick{display:flex;flex-direction:column;gap:6px;max-height:300px;overflow-y:auto}.chat-member-pick label{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer}.chat-member-pick label.picked{background:var(--accent-soft)}.chat-compose-actions{display:flex;justify-content:flex-end;gap:8px}@media (min-width: 721px) and (max-width: 1023.98px){.app-shell{padding-left:64px}.sidebar{position:fixed;left:0;top:0;width:64px;padding:14px 10px;padding-left:calc(10px + env(safe-area-inset-left));gap:14px;z-index:900;overflow:hidden;transition:width .18s ease}.sidebar-toggle{display:flex;margin:0 auto}.sidebar-brand{justify-content:center;padding:0}.sidebar-brand .topbar-logo,.sidebar-brand strong{display:none}.sidebar-brand .conn{flex-basis:auto;font-size:0;min-width:10px;width:10px;height:10px;padding:0;border-radius:50%}.sidebar-brand .conn.on{background:var(--success)}.sidebar-brand .conn.off{background:#c2410c}.sidebar-link{justify-content:center;padding:12px 0;position:relative;min-height:44px}.sidebar .nav-label{display:none}.nav-badge{position:absolute;top:4px;right:4px;margin-left:0}.sidebar-footer{padding:0;align-items:center}.sidebar-avatar{display:flex}.sidebar-footer>:not(.sidebar-avatar){display:none}.sidebar.expanded{width:244px;padding:18px 14px;box-shadow:0 12px 40px #10182838}.sidebar.expanded .sidebar-brand{justify-content:flex-start;flex-wrap:wrap;gap:8px;padding:0 6px}.sidebar.expanded .sidebar-brand .topbar-logo,.sidebar.expanded .sidebar-brand strong{display:inline}.sidebar.expanded .sidebar-brand .conn{font-size:12px;width:fit-content;min-width:0;height:auto;padding:3px 10px;border-radius:999px;flex-basis:100%}.sidebar.expanded .sidebar-brand .conn.on{background:#ecfdf3}.sidebar.expanded .sidebar-brand .conn.off{background:#fff7ed}.sidebar.expanded .sidebar-toggle{margin:0}.sidebar.expanded .sidebar-link{justify-content:flex-start;padding:11px 12px}.sidebar.expanded .nav-label{display:inline}.sidebar.expanded .nav-badge{position:static;margin-left:auto}.sidebar.expanded .sidebar-footer{padding:0 6px;align-items:flex-start}.sidebar.expanded .sidebar-avatar{display:none}.sidebar.expanded .sidebar-footer>.org-switcher,.sidebar.expanded .sidebar-footer>.sidebar-email{display:block}.sidebar.expanded .sidebar-footer>.badge{display:inline-flex}.sidebar.expanded .sidebar-footer>.lang-selector{display:block}.sidebar.expanded .sidebar-footer>.btn{display:inline-flex}.sidebar-scrim{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:890;background:#0f172a59}.chat-layout{grid-template-columns:232px 1fr}.chat-bubble{max-width:82%}.project-row{flex-wrap:wrap}.project-actions{margin-left:auto}}@media (pointer: coarse){.btn{min-height:44px;padding:10px 16px}.btn.sm{min-height:44px;padding:8px 14px}input,select,.preset-select,.org-switcher,.lang-selector,.row select,table.audit select{min-height:44px;font-size:16px}.sidebar-link{min-height:44px}.chat-conv{min-height:48px;padding:10px}.chat-input input,.pagination .btn{min-height:44px}.workitem,.chat-member-pick label{min-height:44px;padding:10px 11px}.workitem input[type=checkbox],.chat-member-pick input[type=checkbox],.chat-member-pick input[type=radio],.org-discoverable input[type=checkbox]{width:20px;height:20px}.docs-toc a,.public-nav a{padding:10px}.notif-actions{gap:10px}.toast{padding:14px 16px}}
