:root{--bg: #ffffff;--bg-alt: #f7f9fa;--surface: #ffffff;--surface-2: #f3f6f7;--surface-3: #e7edf2;--surface-hover: #f7f9fa;--border: #dce5ec;--border-light: #e7edf2;--divider: #e7edf2;--border-strong: #c7d3dc;--ink: #3f4b5b;--ink-heading: #364253;--ink-2: #6e7b8d;--ink-3: #94a0af;--ink-placeholder: #aeb8c4;--accent: #00757f;--accent-hover: #006a72;--accent-pressed: #005960;--accent-ink: #ffffff;--accent-soft: rgba(0, 117, 127, .08);--accent-soft-hover: rgba(0, 117, 127, .14);--accent-strong: #0c7e84;--slate: #3f4b5b;--slate-2: #364253;--slate-3: #2c3542;--good: #6f9d97;--good-soft: transparent;--warn: #b97c5f;--warn-soft: transparent;--crit: #9c5757;--crit-soft: transparent;--info: #00757f;--info-soft: rgba(0, 117, 127, .08);--neutral: #7b889b;--neutral-soft: #f1f4f6;--folder: #00757f;--folder-soft: #e3f1ee;--project: #00757f;--project-soft: #e3f1ee;--tag: #00757f;--tag-soft: #e3f1ee;--chip-green: #2f8f5b;--chip-green-soft: #e3f3e8;--shadow-sm: 0 1px 2px rgba(20, 40, 60, .02), 0 3px 10px rgba(20, 40, 60, .025);--shadow-md: 0 2px 6px rgba(20, 40, 60, .03), 0 8px 20px rgba(20, 40, 60, .035);--shadow-lg: 0 4px 12px rgba(20, 40, 60, .05), 0 16px 40px rgba(20, 40, 60, .06);--radius-sm: 7px;--radius-md: 8px;--radius-lg: 10px;--sidebar-bg: #f4f8f9;--sidebar-border: #f4f8f9;--sidebar-text: #3f4b5b;--sidebar-hover: rgba(0, 117, 127, .06);--sidebar-active-bg: #00757f;--sidebar-active-text: #ffffff;--brand-bg: #f4f8f9;--notif-badge: #9c3838;--teal-avatar-bg: #e3f1ee;--teal-avatar-text: #2a7c78;--toast-bg: var(--ink);--toast-ink: #ffffff;--toast-border: transparent;--toast-icon: #8fbfae;--toast-action-border: rgba(255, 255, 255, .4);--toast-action-hover-bg: rgba(255, 255, 255, .12);--toast-action-hover-border: rgba(255, 255, 255, .7);--upgrade-bg: #eff8f4;--upgrade-border: #c4ded4;--upgrade-icon-bg: #dcefe9;--upgrade-icon-ink: var(--accent);--upgrade-title: var(--ink-heading);--upgrade-copy: var(--ink-2);--upgrade-button-bg: #ffffff;--upgrade-button-ink: var(--accent-pressed);--upgrade-button-border: var(--border-strong);--upgrade-button-hover: #f7fbf9;--font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;--font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #101719;--surface: #182326;--surface-2: #1f2d30;--surface-3: #2a3a3d;--surface-hover: #243538;--bg-alt: #101719;--border: #304447;--border-strong: #456064;--border-light: #26383b;--ink: #e5efee;--ink-2: #abc0bf;--ink-3: #809998;--ink-placeholder: #6c8281;--accent: #159a9b;--accent-hover: #1baea9;--accent-pressed: #0e7d80;--accent-ink: #081719;--accent-soft: rgba(21, 154, 155, .16);--accent-soft-hover: rgba(21, 154, 155, .24);--accent-strong: #48c3b4;--slate: #0d1517;--slate-2: #101d1f;--slate-3: #1c2a2c;--good: #53bfa0;--good-soft: rgba(83, 191, 160, .16);--warn: #d6a25e;--warn-soft: rgba(214, 162, 94, .16);--crit: #e87979;--crit-soft: rgba(232, 121, 121, .16);--info: #159a9b;--info-soft: rgba(21, 154, 155, .16);--neutral: #9aacab;--neutral-soft: #273639;--folder: #159a9b;--folder-soft: rgba(21, 154, 155, .16);--project: #159a9b;--project-soft: rgba(21, 154, 155, .16);--tag: #159a9b;--tag-soft: rgba(21, 154, 155, .16);--chip-green: #53c9aa;--chip-green-soft: rgba(83, 201, 170, .16);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 4px 16px rgba(0, 0, 0, .35);--shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);--sidebar-bg: linear-gradient(180deg, var(--slate) 0%, var(--slate-2) 100%);--sidebar-border: var(--slate-3);--sidebar-text: #b9cccb;--sidebar-hover: rgba(21, 154, 155, .12);--sidebar-active-bg: var(--accent);--sidebar-active-text: #ffffff;--brand-bg: transparent;--toast-bg: #223336;--toast-ink: #e5efee;--toast-border: #456064;--toast-icon: #79d4c0;--toast-action-border: rgba(229, 239, 238, .36);--toast-action-hover-bg: rgba(229, 239, 238, .12);--toast-action-hover-border: rgba(229, 239, 238, .68);--upgrade-bg: #1b292c;--upgrade-border: #304447;--upgrade-icon-bg: #234345;--upgrade-icon-ink: #79d4c0;--upgrade-title: #e5efee;--upgrade-copy: #abc0bf;--upgrade-button-bg: #24383a;--upgrade-button-ink: #79d4c0;--upgrade-button-border: #456064;--upgrade-button-hover: #2a4143;color-scheme:dark}}:root[data-theme=dark]{--bg: #101719;--surface: #182326;--surface-2: #1f2d30;--surface-3: #2a3a3d;--surface-hover: #243538;--bg-alt: #101719;--border: #304447;--border-strong: #456064;--border-light: #26383b;--ink: #e5efee;--ink-2: #abc0bf;--ink-3: #809998;--ink-placeholder: #6c8281;--accent: #159a9b;--accent-hover: #1baea9;--accent-pressed: #0e7d80;--accent-ink: #081719;--accent-soft: rgba(21, 154, 155, .16);--accent-soft-hover: rgba(21, 154, 155, .24);--accent-strong: #48c3b4;--slate: #0d1517;--slate-2: #101d1f;--slate-3: #1c2a2c;--good: #53bfa0;--good-soft: rgba(83, 191, 160, .16);--warn: #d6a25e;--warn-soft: rgba(214, 162, 94, .16);--crit: #e87979;--crit-soft: rgba(232, 121, 121, .16);--info: #159a9b;--info-soft: rgba(21, 154, 155, .16);--neutral: #9aacab;--neutral-soft: #273639;--folder: #159a9b;--folder-soft: rgba(21, 154, 155, .16);--project: #159a9b;--project-soft: rgba(21, 154, 155, .16);--tag: #159a9b;--tag-soft: rgba(21, 154, 155, .16);--chip-green: #53c9aa;--chip-green-soft: rgba(83, 201, 170, .16);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 4px 16px rgba(0, 0, 0, .35);--shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);--sidebar-bg: linear-gradient(180deg, var(--slate) 0%, var(--slate-2) 100%);--sidebar-border: var(--slate-3);--sidebar-text: #b9cccb;--sidebar-hover: rgba(21, 154, 155, .12);--sidebar-active-bg: var(--accent);--sidebar-active-text: #ffffff;--brand-bg: transparent;--toast-bg: #223336;--toast-ink: #e5efee;--toast-border: #456064;--toast-icon: #79d4c0;--toast-action-border: rgba(229, 239, 238, .36);--toast-action-hover-bg: rgba(229, 239, 238, .12);--toast-action-hover-border: rgba(229, 239, 238, .68);--upgrade-bg: #1b292c;--upgrade-border: #304447;--upgrade-icon-bg: #234345;--upgrade-icon-ink: #79d4c0;--upgrade-title: #e5efee;--upgrade-copy: #abc0bf;--upgrade-button-bg: #24383a;--upgrade-button-ink: #79d4c0;--upgrade-button-border: #456064;--upgrade-button-hover: #2a4143;color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:13px;line-height:1.45;-webkit-font-smoothing:antialiased}h1,h2,h3,h4{font-family:var(--font-display);font-weight:650;letter-spacing:-.02em;margin:0;text-wrap:balance;color:var(--ink)}button,input{font-family:inherit;font-size:inherit;color:inherit}button{cursor:pointer}a{color:inherit}::selection{background:var(--accent-soft)}svg{width:1em;height:1em;flex-shrink:0;vertical-align:-.125em}input::placeholder{color:var(--ink-placeholder)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:10px}*{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}#app{display:grid;grid-template-columns:224px 1fr;grid-template-rows:68px 1fr;grid-template-areas:"sidebar topbar" "sidebar main";height:100vh;overflow:hidden}#sidebar{grid-area:sidebar;background:var(--sidebar-bg);color:var(--sidebar-text);display:flex;flex-direction:column;overflow-y:auto;border-right:1px solid var(--sidebar-border)}.sidebar-logo{display:flex;align-items:center;flex-shrink:0;padding:20px 0 14px 28px}.sidebar-logo img,.auth-logo img{height:22px;width:auto;display:block}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .sidebar-logo img,:root:not([data-theme=light]) .auth-logo img{filter:brightness(0) saturate(100%) invert(31%) sepia(12%) saturate(678%) hue-rotate(178deg) brightness(92%) contrast(89%);opacity:.9}}:root[data-theme=dark] .sidebar-logo img,:root[data-theme=dark] .auth-logo img{filter:brightness(0) saturate(100%) invert(31%) sepia(12%) saturate(678%) hue-rotate(178deg) brightness(92%) contrast(89%);opacity:.9}nav.mainnav{padding:6px 14px 12px;display:flex;flex-direction:column;gap:6px}.navlink{display:flex;align-items:center;gap:11px;height:45px;padding:0 15px;border-radius:8px;color:var(--sidebar-text);text-decoration:none;font-size:13.5px;font-weight:500;border:none;background:none;width:100%;text-align:left;transition:background .12s,color .12s}.navlink svg{width:19px;height:19px;opacity:.9;stroke-width:1.8}.navlink:hover{background:var(--sidebar-hover);color:var(--ink)}.navlink.active{background:var(--sidebar-active-bg);color:var(--sidebar-active-text);font-weight:600}.navlink.active svg{opacity:1}.sidebar-foot{margin-top:auto;padding:14px 16px;border-top:1px solid var(--divider);display:flex;flex-direction:column;gap:8px}.storage-card{background:#ffffff80;border:1px solid var(--border);border-radius:var(--radius-md);padding:14px;font-size:11.5px;color:var(--ink-2)}.storage-card.stub{cursor:default}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .storage-card{background:var(--surface-2);border-color:var(--border)}}:root[data-theme=dark] .storage-card{background:var(--surface-2);border-color:var(--border)}.storage-card .sc-head{margin-bottom:3px}.storage-card .sc-head b{color:var(--ink);font-size:12px;font-weight:600}.storage-card .sc-val{display:block;font-size:12px;color:var(--ink-2);margin-bottom:7px}.storage-card .sc-bar{height:5px;border-radius:999px;background:var(--surface-3);overflow:hidden;margin-bottom:6px}.storage-card .sc-bar:last-child{margin-bottom:0}.storage-card .sc-fill{height:100%;background:var(--accent);border-radius:999px}.storage-card .sc-fill.is-warn{background:var(--warn)}.storage-card .sc-hint{font-size:10.5px;color:var(--ink-3)}#topbar{grid-area:topbar;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:14px;padding:0 26px;position:relative;z-index:20;min-width:0}.topbar-title{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0}.topbar-title .tt-label{font-size:19px;font-weight:700;color:var(--ink);line-height:1.15}.topbar-title .tt-desc{font-size:12px;font-weight:400;color:var(--ink-3);line-height:1.2}@media(max-width:600px){.topbar-title .tt-desc{display:none}}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:10px;min-width:0}.acct-chip{display:flex;align-items:center;gap:6px;padding:0;font-size:11px;font-weight:400;border:none;background:none;white-space:nowrap}.acct-chip.cloud{color:#7e8a9a}.acct-chip.cloud svg{color:#3ba08e;width:15px;height:15px}.acct-chip.inert{cursor:default}.icon-btn{width:38px;height:38px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;color:var(--ink-2);flex-shrink:0;transition:background .12s,border-color .12s,color .12s}.icon-btn:hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--ink)}.icon-btn svg{width:17px;height:17px}.icon-btn:disabled{opacity:.45;cursor:not-allowed}.topbar-user{display:flex;align-items:center;gap:9px;padding:4px 8px 4px 12px;border-left:1px solid var(--border);min-width:0;text-decoration:none;color:inherit;border-radius:0 var(--radius-sm) var(--radius-sm) 0;transition:background .12s}a.topbar-user:hover{background:var(--surface-hover)}a.topbar-user:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.avatar{width:30px;height:30px;border-radius:50%;background:var(--teal-avatar-bg);color:var(--teal-avatar-text);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;flex-shrink:0}.user-meta{line-height:1.25;min-width:0}.user-name{font-size:13px;font-weight:600;color:var(--ink-heading);max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:root[data-theme=dark] .user-name{color:var(--ink)}#main{grid-area:main;overflow-y:auto;padding:22px 26px 60px;position:relative;background:var(--bg)}@media(max-width:760px){html,body{overflow-x:auto}#app{width:1200px;min-width:1200px;overflow:visible}}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:50px 20px;color:var(--ink-3);min-height:320px}.empty-state .ei{width:52px;height:52px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;margin-bottom:14px;color:var(--ink-3)}.empty-state .ei svg{width:24px;height:24px}.empty-state h4{font-size:15px;color:var(--ink);margin-bottom:4px}.empty-state p{font-size:13px;max-width:340px;margin:0 auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 15px;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);color:var(--ink);font-size:13px;font-weight:600;white-space:nowrap;text-decoration:none;transition:background .12s,border-color .12s,color .12s}.btn:hover{background:var(--surface-hover)}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn-primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.btn-primary:active{background:var(--accent-pressed);border-color:var(--accent-pressed)}.btn-block{width:100%}.btn:disabled{opacity:.45;cursor:not-allowed}.btn:focus-visible,.icon-btn:focus-visible,.navlink:focus-visible,.lang-switch button:focus-visible,.link:focus-visible,.field input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.boot{min-height:100%;display:grid;place-items:center;color:var(--ink-3)}.auth-screen{min-height:100%;display:grid;place-items:center;background:var(--bg-alt);padding:24px 16px}.auth-card{width:min(420px,100%);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:22px 28px 28px}.auth-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:8px}.auth-logo{display:flex;justify-content:center;margin:4px 0 22px}.auth-logo img{height:26px}.stack{display:flex;flex-direction:column;gap:14px}.auth-title{font-size:22px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}.auth-lead,.auth-note{margin:0;color:var(--ink-2);font-size:13px}.field{display:flex;flex-direction:column;gap:6px}.field>span:first-child{font-size:12px;font-weight:600;color:var(--ink-2)}.field input{width:100%;height:38px;padding:0 12px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font-size:13px}.field input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.field-hint{color:var(--ink-3);font-size:11.5px}.field-error{color:var(--crit);font-size:12px}.banner{border-radius:var(--radius-sm);padding:10px 12px;font-size:13px;line-height:1.45;color:var(--ink)}.banner-ok{background:var(--accent-soft)}.banner-err{background:#9c57571f}:root[data-theme=dark] .banner-err{background:#e8797929}.banner .btn{margin-top:10px}.link{color:var(--accent-strong);font-weight:600;text-decoration:none;background:none;border:none;padding:0;font-size:inherit}.link:hover{text-decoration:underline}.auth-links{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--ink-2)}.or-row{display:flex;align-items:center;gap:10px;color:var(--ink-3);font-size:12px}.or-row:before,.or-row:after{content:"";height:1px;background:var(--border);flex:1}.google-slot{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:40px}.google-slot .hint,.hint{font-size:12px;color:var(--ink-3)}.lang-switch{display:inline-flex;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;background:var(--surface);flex-shrink:0}.lang-switch button{height:38px;padding:0 10px;border:none;background:transparent;color:var(--ink-2);font-size:12px;font-weight:600}.lang-switch button+button{border-left:1px solid var(--border)}.lang-switch button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}.lang-switch button:hover:not([aria-pressed=true]){background:var(--surface-hover);color:var(--ink)}.btn svg{width:15px;height:15px}.btn-sm{height:30px;padding:0 11px;font-size:12px}.icon-btn-sm{width:24px;height:24px;border-radius:7px}.icon-btn-sm svg{width:13px;height:13px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm)}.card-pad{padding:16px 18px}.seg{display:flex;border:1px solid var(--border-strong);border-radius:var(--radius-sm);overflow:hidden}.seg button{padding:7px 10px;background:var(--surface);border:none;border-right:1px solid var(--border-strong);color:var(--ink-2);display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;transition:background .12s,color .12s}.seg button:last-child{border-right:none}.seg button:hover:not(.active){background:var(--surface-hover)}.seg button.active{background:var(--accent);color:var(--accent-ink)}.settings-tabbar{display:flex;gap:26px;border-bottom:1px solid var(--border);margin-bottom:24px}.settings-tabbar button{padding:10px 1px 12px;background:none;border:none;font-size:14px;font-weight:600;color:var(--ink-3);border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .12s,border-color .12s}.settings-tabbar button:hover{color:var(--ink)}.settings-tabbar button.active,.settings-tabbar button.active:hover{color:var(--accent);border-bottom-color:var(--accent)}.seg-field{flex-shrink:0}.seg-field button{padding:6px 12px;font-size:12.5px}.settings-section{margin-bottom:26px;max-width:920px}.settings-section h3{font-size:16px;margin-bottom:3px;font-weight:650}.settings-section .sec-sub{font-size:12.5px;color:var(--ink-3);margin:0 0 14px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border)}.settings-row:last-child{border-bottom:none}.settings-row.align-start{align-items:flex-start}.settings-row.align-start .sr-label{padding-top:8px}.settings-row .sr-label{display:block;font-size:13.5px;font-weight:600;color:var(--ink)}.settings-row .sr-desc{font-size:12px;color:var(--ink-3);margin-top:2px}.settings-row .sr-desc.is-error{color:var(--crit)}.settings-row .sr-value{font-size:13.5px;color:var(--ink-2);text-align:right;min-width:0;word-break:break-word}.settings-inline{display:flex;align-items:center;gap:8px;min-width:0}.settings-row .settings-inline input.wide-field{width:280px;max-width:calc(100% - 90px)}.settings-inline .btn{flex-shrink:0}.settings-actions{display:flex;justify-content:flex-end;padding-top:12px}.settings-section .banner{margin-bottom:14px}.settings-row select,.settings-row input[type=text],.settings-row input[type=password],.settings-row textarea{padding:7px 10px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;min-width:170px;transition:border-color .12s,box-shadow .12s}.settings-row select:hover,.settings-row input[type=text]:hover,.settings-row input[type=password]:hover,.settings-row textarea:hover{border-color:var(--border-strong)}.settings-row select:focus,.settings-row input[type=text]:focus,.settings-row input[type=password]:focus,.settings-row textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.settings-textarea{resize:vertical}.settings-row input.wide-field,.settings-row textarea.wide-field{width:420px;max-width:60%}.settings-row textarea.wide-field{flex:0 1 420px}.logo-actions{position:relative;display:flex;align-items:center;gap:10px}.logo-box{width:44px;height:44px;border-radius:var(--radius-sm);border:1px dashed var(--border-strong);display:flex;align-items:center;justify-content:center;color:var(--ink-3);flex-shrink:0;overflow:hidden}.logo-box.has-logo{border-style:solid;background:var(--surface-2)}.logo-box svg{width:20px;height:20px}.logo-box img{width:100%;height:100%;object-fit:contain}.file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.switch{position:relative;width:38px;height:22px;flex-shrink:0}.switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.switch .track{position:absolute;inset:0;background:var(--border-strong);border-radius:999px;cursor:pointer;transition:.15s}.switch .track:before{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.15s;box-shadow:0 1px 3px #0003}.switch input:checked+.track{background:var(--accent)}.switch input:checked+.track:before{transform:translate(16px)}.switch input:focus-visible+.track{outline:2px solid var(--accent);outline-offset:2px}.modal-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;background:#19233247;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal{display:flex;flex-direction:column;width:560px;max-width:100%;max-height:88vh;overflow:hidden;background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-head h3{font-size:16px;font-weight:650}.modal-body{padding:18px 20px;overflow-y:auto}.modal-lead{margin:0 0 14px;font-size:12.5px;color:var(--ink-2)}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--border)}.wc-item{display:flex;align-items:center;gap:10px;padding:9px 10px;margin-bottom:6px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);transition:border-color .12s}.wc-item:hover{border-color:var(--border-strong)}.wc-item .grip{display:flex;color:var(--ink-3);cursor:grab}.wc-item .grip svg{width:16px;height:16px}.wc-item .wc-name{flex:1;font-size:13px;font-weight:600}.wc-item.disabled{opacity:.5}.settings-tabbar button:focus-visible,.seg button:focus-visible,.settings-row select:focus-visible,.settings-row input:focus-visible,.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.overview-controls{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start;margin-bottom:16px}.overview-controls .warn-strip{margin-bottom:0}.overview-controls .view-actions{display:flex;justify-content:flex-end}.view-actions{display:flex;gap:8px;flex-wrap:wrap}.btn-ghost{border-color:transparent;background:transparent}.btn-ghost:hover{background:var(--surface-hover)}.warn-strip{display:flex;align-items:center;gap:12px;background:var(--surface);color:var(--ink-2);border:1px solid var(--border);border-radius:var(--radius-md);padding:13px 16px;margin-bottom:16px;font-size:13px;font-weight:400}.warn-strip svg{width:18px;height:18px;flex-shrink:0;color:var(--warn)}.warn-strip .items{display:flex;flex-direction:column;gap:4px;min-width:0;font-weight:400;color:var(--ink-2)}.warn-strip .items.is-scrollable{overflow-y:auto;padding-right:4px;scrollbar-gutter:stable}.warn-strip a{font-weight:600;color:var(--ink);text-decoration:underline}.widget-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}.wg-col-main{grid-column:1;min-width:0}.wg-col-side{grid-column:2;min-width:0}.wg-row1{align-self:stretch}.wg-row1>.widget{height:100%}.wg-stack{display:flex;flex-direction:column;gap:16px;align-self:start}.widget-row-2{display:grid;gap:16px;align-items:start}.widget-row-2>div{min-width:0}.widget{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);overflow:hidden}.widget-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;box-sizing:border-box;padding:12px 14px;border-bottom:1px solid var(--border);background:var(--sidebar-bg);flex-shrink:0}.widget-head h4{margin:0;font-family:var(--font-body);font-size:13px;font-weight:600;letter-spacing:.015em;text-transform:uppercase;color:var(--ink-heading)}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .widget-head h4{color:var(--ink-2)}}:root[data-theme=dark] .widget-head h4{color:var(--ink-2)}.widget-head .btn-ghost{height:30px;padding:0 11px;font-size:12px;font-weight:600;color:var(--ink);background:transparent}.widget-body{padding:12px 14px}.widget-body.wb-limit3{height:190px;overflow-y:auto}.widget-body.wb-limit5{max-height:630px;overflow-y:auto}.widget-body.wb-scroll-always{height:280px;overflow-y:scroll}.widget-body>.hint{padding:10px 0}.dtype-dot{width:6px;height:34px;border-radius:3px;flex-shrink:0;background:var(--accent)}.dtype-dot.sm{width:6px;height:28px}.device-mini{position:relative;isolation:isolate;display:grid;grid-template-columns:7px minmax(0,.95fr) minmax(0,1.25fr);align-items:center;gap:11px;padding:12.5px 0;border-bottom:1px solid var(--border);color:inherit;text-decoration:none}.device-mini:before{content:"";position:absolute;z-index:-1;inset:2px 0;border-radius:7px;transition:background .12s}.device-mini:hover:before{background:var(--surface-hover)}.device-mini:last-child{border-bottom:none}.device-mini .dinfo,.device-mini .dstatus{min-width:0}.device-mini .dname{display:block;font-size:13px;font-weight:600;line-height:1.3;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.device-mini .dmeta{display:block;margin-top:1px;font-size:11.5px;line-height:1.35;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.device-mini .dstatus{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.device-mini .dstat{display:flex;align-items:center;gap:6px;max-width:100%;font-size:11.5px;line-height:1.3;white-space:nowrap}.device-mini .dstat>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.device-mini .dstat svg{width:15px;height:15px;flex-shrink:0}.dstat-good{color:var(--good)}.dstat-warn{color:var(--warn)}.dstat-crit{color:var(--crit)}.dstat-neutral{color:var(--ink-2)}.quick-actions{display:flex;flex-direction:column;gap:8px;flex:1;justify-content:space-between}.quick-actions .btn{justify-content:flex-start;height:auto;min-height:36px;padding:8px 14px;line-height:1.3;text-align:left;white-space:normal;overflow-wrap:anywhere}.quick-actions .btn svg{flex-shrink:0;color:var(--accent)}.project-mini{position:relative;isolation:isolate;display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border);color:inherit;text-decoration:none}.project-mini:last-child{border-bottom:none}.project-mini:before{content:"";position:absolute;z-index:-1;inset:2px 0;border-radius:7px;transition:background .12s}.project-mini:hover:before{background:var(--surface-hover)}.project-mini .pmi-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:var(--accent-soft);color:var(--accent);flex-shrink:0}.project-mini .pmi-icon svg{width:18px;height:18px}.project-mini .pmi-icon.shared{background:var(--project-soft);color:var(--project)}.project-mini .pmi-info{min-width:0}.project-mini .pmi-name{display:block;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-mini .pmi-meta{display:block;margin-top:1px;font-size:11.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.comment-mini{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid var(--border)}.widget-body .rec-row{position:relative;isolation:isolate;display:grid;grid-template-columns:6px minmax(0,1fr) 148px;column-gap:11px;align-items:center;min-height:58px;box-sizing:border-box;padding:10px 0;border-bottom:1px solid var(--border);color:inherit;text-decoration:none}.widget-body .rec-row:last-child{border-bottom:none}.widget-body .rec-row:before{content:"";position:absolute;z-index:-1;inset:2px 0;border-radius:var(--radius-sm);transition:background .12s}.widget-body .rec-row:hover:before{background:var(--surface-hover)}.rec-row .rinfo{min-width:0}.rec-row .rname,.rec-row .rname-text,.rec-row .rmeta{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rec-row .rname{font-size:13.5px;font-weight:600}.rec-row .rmeta,.rec-row .rdate{font-size:11.5px;color:var(--ink-3)}.rec-row .rdate{font-size:12px;color:var(--ink-2)}@media(max-width:900px){.widget-grid{grid-template-columns:1fr}.wg-col-main,.wg-col-side{grid-column:1;grid-row:auto!important}.widget-row-2{grid-template-columns:1fr!important}}@media(max-width:760px){.overview-controls{grid-template-columns:1fr}.overview-controls .view-actions{grid-row:1}}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}.dtype-dot.lg{width:7px;height:44px;border-radius:4px}.device-card{padding:16px 18px;display:flex;flex-direction:column;color:inherit;text-decoration:none;cursor:pointer;transition:box-shadow .12s,transform .12s}.device-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.device-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.device-card-top{display:flex;align-items:flex-start;gap:12px}.device-card h4{font-size:15px;font-family:var(--font-body);font-weight:600}.device-card .dsub,.device-page .dsub{margin-top:2px;font-size:12px;font-weight:400;font-family:var(--font-body);color:var(--ink-3);overflow-wrap:anywhere}.device-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:14px 0 0}.device-facts .df-k{font-size:10.5px;text-transform:uppercase;letter-spacing:.03em;color:var(--ink-3)}.device-facts .df-v{margin-top:1px;font-size:13px;font-weight:600;overflow-wrap:anywhere}.device-facts-rows{display:flex;flex-direction:column;gap:0;margin:0}.device-facts-rows>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:baseline;gap:12px;padding:8px 0;border-bottom:1px solid var(--border)}.device-facts-rows>div:first-child{padding-top:0}.device-facts-rows>div:last-child{padding-bottom:0;border-bottom:0}.device-facts-rows .df-k{font-size:12px;text-transform:none;letter-spacing:0;line-height:1.4;color:var(--ink-2)}.device-facts-rows .df-v{margin:0;font-family:var(--font-body);font-size:12.5px;font-weight:600;line-height:1.4;text-align:right;font-variant-numeric:tabular-nums}.new-project-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:180px;padding:26px;border:2px dashed var(--border-strong);border-radius:var(--radius-md);color:var(--ink-3);background:none;gap:8px;font-size:13px;font-weight:600;transition:border-color .12s,color .12s,background .12s}.new-project-card svg{width:22px;height:22px}.new-project-card:hover{border-color:var(--accent);color:var(--accent-strong);background:var(--accent-soft)}.btn-danger{color:var(--ink-2);border-color:var(--border)}.btn-danger svg{color:#b97c5f}.btn-danger:hover{background:var(--surface-hover)}.devices-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.devices-empty{margin:0 0 14px}.device-page{max-width:720px}.device-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:14px 0 18px}.device-page-head h3{display:flex;align-items:center;gap:8px;font-size:16px}.device-page-head h3 svg{width:18px;height:18px}.device-section-title{margin:0 0 8px;font-family:var(--font-body);font-size:13px;font-weight:650;letter-spacing:0}.back-link{display:inline-flex;color:var(--ink-2);font-size:13px;font-weight:600;text-decoration:none}.back-link:hover{color:var(--ink)}.form-actions{display:flex;justify-content:flex-end;margin-top:14px}.banner strong{display:block;margin-bottom:2px}@media(max-width:1200px){.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.grid-3{grid-template-columns:1fr}.device-page-head{flex-direction:column}.device-facts{grid-template-columns:1fr}}@media(max-width:640px){.device-mini{grid-template-columns:7px minmax(0,1fr)}.device-mini .dstatus{grid-column:2}.widget-body .rec-row{grid-template-columns:6px minmax(0,1fr)}.widget-body .rec-row .rdate{grid-column:2}}.archive-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}.archive-toolbar .search{position:relative;flex:1;min-width:200px;max-width:420px}.archive-toolbar .search>svg{position:absolute;left:11px;top:50%;width:15px;height:15px;color:var(--ink-3);transform:translateY(-50%)}.archive-toolbar .search input{width:100%;height:38px;padding:0 36px 0 34px;border:1px solid var(--border-light);border-radius:var(--radius-md);background:var(--surface-2);color:var(--ink);transition:background .15s,border-color .15s,box-shadow .15s}.archive-toolbar .search input:hover{border-color:var(--border-strong)}.archive-toolbar .search input:focus{outline:none;background:var(--surface);border-color:#c8d5e7;box-shadow:0 4px 18px #1e3c6414,0 0 0 3px #1677f214}.archive-toolbar .search-clear{position:absolute;right:8px;top:50%;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink-3);transform:translateY(-50%)}.archive-toolbar .search-clear:hover{background:var(--surface-hover);color:var(--ink)}.archive-toolbar .search-clear svg{width:14px;height:14px}.archive-toolbar .seg button,.archive-toolbar .btn{height:38px}.archive-banner,.projects-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.filter-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;margin-bottom:14px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md)}.filter-panel>.btn,.filter-panel>.filter-empty{grid-column:1 / -1}.filter-panel>.btn{justify-self:end}.filter-panel>.filter-empty{margin:0}.filter-ms{position:relative;align-self:start}.filter-ms summary{display:flex;align-items:center;justify-content:space-between;width:100%;padding:7px 10px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font-size:12.5px;list-style:none;cursor:pointer;box-sizing:border-box}.filter-ms summary::-webkit-details-marker{display:none}.filter-ms summary:after{content:"▾";margin-left:6px;color:var(--ink-3);font-size:10px}.filter-ms summary b{color:var(--accent);font-weight:700}.filter-ms[open] summary{border-color:var(--accent)}.filter-ms-panel{position:absolute;z-index:30;top:calc(100% + 4px);left:0;width:max-content;min-width:100%;max-width:280px;max-height:220px;overflow-y:auto;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-md)}.filter-ms-opt{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;font-size:12.5px;white-space:nowrap;cursor:pointer}.filter-ms-opt:hover{background:var(--surface-hover)}.filter-ms-group-title{margin-top:4px;padding:7px 8px 4px;border-top:1px solid var(--border);color:var(--ink-3);font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.filter-ms-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.chip{display:inline-flex;align-items:center;gap:4px;min-height:22px;padding:0 8px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);font-size:11px;font-weight:650}.chip-access{background:var(--project-soft);color:var(--project)}.chip-x{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit}.chip-x svg{width:12px;height:12px}.archive-group{margin-bottom:16px}.archive-group-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:9px;box-sizing:border-box;min-height:48px;margin:0 0 8px;padding:9px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-hover);color:var(--ink);font-size:13px;font-weight:700}.archive-group-head svg{width:15px;height:15px;color:var(--ink-3);flex-shrink:0}.archive-group-head .agh-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-group-head .cnt{margin-left:auto;padding-left:10px;color:var(--ink-3);font-weight:600;flex-shrink:0}.archive-list .rec-table-head,.archive-list .rec-row{display:grid;grid-template-columns:6px minmax(0,1fr) 168px;column-gap:11px;align-items:center}.archive-list .rec-table-head{padding:0 12px 8px;border-bottom:1px solid var(--border);margin-bottom:6px;color:var(--ink-3);font-size:10.5px;font-weight:650;letter-spacing:.03em;text-transform:uppercase}.archive-list .rec-row{box-sizing:border-box;min-height:58px;padding:10px 12px;border:1px solid transparent;border-radius:var(--radius-sm)}.archive-list .rec-row .rmeta{display:flex;align-items:center;gap:12px}.record-location-item{display:inline-flex;align-items:center;gap:5px;min-width:0}.record-location-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-location-item svg{width:13px;height:13px;flex-shrink:0}.project-card{display:flex;flex-direction:column;padding:18px 20px;color:inherit;text-decoration:none;cursor:pointer;transition:box-shadow .12s,transform .12s}.project-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.project-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.project-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.project-card .picon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:7px;background:var(--project-soft);color:var(--project)}.project-card .picon svg{width:18px;height:18px}.project-card h4{margin-bottom:8px;color:var(--ink);font-family:var(--font-body);font-size:15px;font-weight:600}.project-card p.hint{margin:0 0 4px;overflow:hidden;color:var(--ink-2);font-size:13px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.project-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px;margin-top:auto;padding-top:12px;border-top:1px solid var(--border)}.ps-item{display:flex;align-items:center;gap:7px;color:var(--ink-3);font-size:11px}.ps-item svg{width:15px;height:15px;color:var(--accent);flex-shrink:0}.ps-item b{display:block;color:var(--ink);font-size:14px;font-weight:600}.projects-grid{margin-bottom:28px}.project-section-head{display:flex;align-items:center;margin:4px 0 12px}.project-section-head h5{margin:0;font-family:var(--font-body);font-size:13px;font-weight:650}.project-section-head.section-divider{margin-top:8px;padding-top:18px;border-top:1px solid var(--border)}.project-records-head{display:flex;align-items:center;gap:10px;margin:14px 0 8px}.project-records-head h3{margin:0;font-size:16px}.project-records-desc{margin:0 0 14px}.field textarea{width:100%;min-height:88px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;font-size:13px;resize:vertical}.field textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}@media(max-width:900px){.filter-panel{grid-template-columns:1fr 1fr}.archive-list .rec-table-head,.archive-list .rec-row{grid-template-columns:6px minmax(0,1fr) 128px}}@media(max-width:600px){.filter-panel{grid-template-columns:1fr}}
