:root{
  color-scheme:light;
  --ink:#192438;--muted:#758197;--soft:#a5afbf;--line:#e7edf5;
  --blue:#3478e5;--blue-dark:#2464cb;--blue-soft:#edf4ff;
  --green:#21a675;--red:#d64c52;--amber:#c58a2a;--purple:#8b6bd7;
  --surface:rgba(255,255,255,.82);--surface-solid:#fff;
  --shadow:0 12px 40px rgba(39,62,94,.07),0 2px 8px rgba(39,62,94,.035);
  --radius:22px;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html{min-height:100%;background:#f4f7fc}
body{margin:0;min-height:100vh;color:var(--ink);background:radial-gradient(ellipse at 12% 0%,#e8f1ff 0,transparent 35%),radial-gradient(ellipse at 100% 10%,#f0ebff 0,transparent 28%),#f5f7fb;font-size:14px;-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.48;cursor:not-allowed}
.hidden{display:none!important}
.glass-card{background:var(--surface);border:1px solid rgba(255,255,255,.92);box-shadow:var(--shadow);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.eyebrow{font-size:9px;font-weight:750;letter-spacing:.13em;color:#91a0b6}
.muted-caption{font-size:11px;color:var(--muted)}
/* login */
.login-screen{position:relative;min-height:100vh;display:grid;place-items:center;padding:24px;overflow:hidden}
.login-card{position:relative;z-index:2;width:min(420px,100%);padding:42px 42px 30px;border-radius:30px;text-align:center}
.brand-mark{width:37px;height:37px;border-radius:13px;display:grid;place-items:center;color:#fff;font-size:20px;font-weight:700;background:linear-gradient(145deg,#5594f5,#2868d2);box-shadow:0 7px 17px #3478e536;flex-shrink:0}
.large-mark{width:58px;height:58px;margin:0 auto 19px;border-radius:19px;font-size:29px}
.login-card h1{font-size:31px;letter-spacing:-.055em;margin:8px 0 10px;font-weight:750}
.login-card h1 span,.brand-name span{color:var(--blue)}
.login-description{margin:0 auto 28px;max-width:290px;color:var(--muted);font-size:13px;line-height:1.6}
.login-card form{text-align:left}
.login-card label{display:block;font-size:12px;font-weight:650;margin:0 0 8px}
.login-card input,.search-box input,.notes-search input{width:100%;height:46px;padding:0 14px;border:1px solid #e0e7f1;border-radius:13px;background:#fff;color:var(--ink);outline:none;transition:border-color .2s,box-shadow .2s}
input:focus,textarea:focus{border-color:#8eb6f5!important;box-shadow:0 0 0 4px #3478e512}
.login-card input{margin-bottom:15px}
.form-error{min-height:18px;margin-top:8px;color:var(--red);font-size:12px;text-align:center}
.setup-hint{margin-top:16px;padding:12px;border-radius:12px;background:#fff7e9;color:#85601e;text-align:left;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.setup-hint code{display:block;margin-top:5px;font-size:10px;color:#684a16}
.login-foot{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:20px;padding-top:20px;border-top:1px solid var(--line);font-size:10px;color:#8b97a9}
.login-orbit{position:absolute;border:1px solid #abc8f650;border-radius:50%;pointer-events:none}
.orbit-one{width:580px;height:580px;top:-280px;right:-110px}.orbit-two{width:740px;height:740px;bottom:-520px;left:-210px}
/* app shell */
.app-shell{width:min(1600px,100%);min-height:100vh;margin:0 auto;padding:20px;display:grid;grid-template-columns:244px minmax(0,1fr);gap:20px}
.sidebar{position:sticky;top:20px;height:calc(100vh - 40px);min-height:620px;border-radius:25px;padding:22px 14px 14px;display:flex;flex-direction:column}
.brand-row{display:flex;align-items:center;gap:11px;padding:0 10px 29px}
.brand-name{font-size:15px;font-weight:760;letter-spacing:-.035em;line-height:1.15}
.brand-name small{display:block;margin-top:5px;font-size:8px;font-weight:650;letter-spacing:.14em;color:#a0aabc}
.nav-caption{padding:0 12px 10px;font-size:9px;font-weight:750;letter-spacing:.13em;color:#a1adbd}
.system-caption{margin-top:25px}
.nav-group{display:grid;gap:4px}
.nav-item{width:100%;height:42px;padding:0 12px;display:flex;align-items:center;gap:12px;border:0;border-radius:12px;background:transparent;color:#657288;text-align:left;font-size:12px;font-weight:590;transition:background .18s,color .18s,transform .18s}
.nav-item:hover{background:#f2f6fc;color:var(--ink)}
.nav-item.active{color:var(--blue);background:#edf4ff;font-weight:700}
.nav-symbol{width:21px;text-align:center;font-size:18px;font-weight:500;line-height:1}
.sidebar-bottom{margin-top:auto}
.storage-widget{padding:15px 12px 16px;border:1px solid #edf1f7;border-radius:16px;background:linear-gradient(135deg,#f9fbff,#f3f7fd)}
.storage-heading{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#77859a;margin-bottom:10px}
.storage-heading b{color:#4d5e75;font-size:10px}
.storage-widget small{display:block;margin-top:8px;color:#9aa6b7;font-size:9px}
.profile-row{display:flex;align-items:center;gap:10px;padding:18px 5px 3px}
.profile-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#e8f0ff;color:#3976d7;font-weight:750;font-size:12px}
.profile-meta{display:grid;gap:3px;flex:1;min-width:0}
.profile-meta b{font-size:11px}.profile-meta small{font-size:9px;color:#9aa5b5}
.icon-button{display:grid;place-items:center;width:34px;height:34px;border:1px solid #e7edf5;border-radius:11px;background:#fff;color:#6d7b91;font-size:19px;transition:.18s}
.icon-button:hover{border-color:#cddcf2;color:var(--blue);background:#f8fbff}
.main-area{min-width:0;padding:5px 10px 18px 0}
.topbar{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 22px;padding:0 3px}
.topbar h1{font-size:25px;letter-spacing:-.045em;margin:4px 0 0;font-weight:750}
.topbar-actions{display:flex;align-items:center;gap:10px}
.connection-pill,.live-pill{display:flex;align-items:center;gap:8px;border:1px solid #e6edf6;border-radius:30px;padding:8px 12px;background:#ffffffa8;color:#738198;font-size:10px;font-weight:600}
.status-dot,.online-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#34bd89;box-shadow:0 0 0 3px #34bd891c;flex-shrink:0}
.refresh-button{font-size:21px}
.page-section{animation:page-in .25s ease both}
@keyframes page-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
/* buttons */
.button{height:39px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:12px;font-size:11px;font-weight:680;white-space:nowrap;transition:transform .16s,background .16s,border-color .16s,box-shadow .16s;text-decoration:none}
.button:active{transform:translateY(1px)}
.button.primary{color:#fff;background:linear-gradient(135deg,#4385ed,#2869d6);box-shadow:0 6px 15px #3478e529}
.button.primary:hover{background:linear-gradient(135deg,#3679e2,#225fc7);box-shadow:0 8px 19px #3478e53a}
.button.secondary{color:#53647d;border-color:#e4eaf3;background:#fff}
.button.secondary:hover{border-color:#cbd9ed;background:#f8fbff;color:#2869d6}
.button.small{height:30px;padding:0 10px;border-radius:9px;font-size:10px}
.button.full-width{width:100%;height:47px;font-size:13px}
.button.danger-ghost{color:#bd5157;border-color:#f0dfe0;background:#fffafa}
.button.danger-ghost:hover{border-color:#e7b9bd;background:#fff4f4}
.text-button{border:0;background:transparent;color:var(--blue);font-size:11px;font-weight:680}
/* overview */
.welcome-card{position:relative;isolation:isolate;min-height:242px;overflow:hidden;border:1px solid #e5edfb;border-radius:25px;background:linear-gradient(112deg,#fff 0%,#f9fbff 54%,#eaf2ff 100%);box-shadow:var(--shadow);padding:31px 35px;margin-bottom:17px}
.welcome-content{position:relative;z-index:2;max-width:490px}
.welcome-content h2{margin:12px 0 10px;font-size:32px;line-height:1.11;letter-spacing:-.055em;font-weight:760}
.welcome-content h2 span{color:#4985df}
.welcome-content p{margin:0 0 20px;font-size:12px;color:#7a879a}
.welcome-art{position:absolute;z-index:1;right:60px;top:50%;width:250px;height:205px;transform:translateY(-50%);display:grid;place-items:center}
.art-cloud{position:relative;z-index:2;width:122px;height:122px;display:grid;place-items:center;border:1px solid #fff;border-radius:38px;background:linear-gradient(145deg,#ffffffda,#dceaffae);box-shadow:0 18px 42px #5688c52b,inset 0 1px 5px #fff;color:#4f8be3;font-size:72px;line-height:1;transform:rotate(-8deg)}
.art-orbit{position:absolute;border:1px solid #8db4eb60;border-radius:50%;transform:rotate(-25deg)}
.orbit-a{width:230px;height:100px}.orbit-b{width:185px;height:180px;border-color:#c6a9ec55;transform:rotate(38deg)}
.art-spark{position:absolute;color:#79a6e9}.spark-a{right:15px;top:14px;font-size:24px}.spark-b{left:10px;bottom:15px;font-size:35px;color:#aa92dd}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px}
.stat-card{min-height:144px;border-radius:18px;padding:17px 18px}
.stat-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8190a4;font-size:10px;font-weight:620}
.stat-icon,.quick-symbol{display:grid;place-items:center;border-radius:10px;font-size:16px}
.stat-icon{width:29px;height:29px}.blue{color:#3b7ede;background:#edf4ff}.purple{color:#8669ca;background:#f2edff}.green{color:#239d75;background:#e8f8f2}.amber{color:#bd862e;background:#fff5e3}
.stat-card>strong{display:block;margin:11px 0 3px;font-size:23px;letter-spacing:-.04em;font-weight:760;font-variant-numeric:tabular-nums}
.stat-card>small{display:block;min-height:13px;font-size:9px;color:#98a4b5}
.meter{height:5px;overflow:hidden;border-radius:10px;background:#edf1f7;margin-top:12px}
.meter i{display:block;width:0;height:100%;border-radius:10px;background:linear-gradient(90deg,#4a8bed,#81b3ff);transition:width .4s ease}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 13px}
.section-heading h2{margin:4px 0 0;font-size:16px;letter-spacing:-.025em}
.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:28px}
.quick-card{min-height:123px;padding:15px;text-align:left;border-radius:17px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;color:var(--ink);transition:transform .18s,border-color .18s,box-shadow .18s}
.quick-card:hover{transform:translateY(-2px);border-color:#dbe7f8;box-shadow:0 14px 34px #37577e12}
.quick-symbol{width:31px;height:31px;font-size:17px;margin-bottom:2px}
.quick-card b{font-size:11px}.quick-card small{font-size:9px;color:#93a0b2}
.recent-heading{margin-top:0}
/* files */
.page-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 2px 17px}
.page-toolbar h2{font-size:20px;letter-spacing:-.04em;margin:0 0 4px}
.page-toolbar p{margin:0;color:#8a97aa;font-size:11px}
.toolbar-actions{display:flex;gap:8px;align-items:center}
.upload-label{position:relative;overflow:hidden}.upload-label input{position:absolute;inset:0;opacity:0;cursor:pointer}
.file-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 11px}
.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:34px;color:#8794a7;font-size:10px}
.breadcrumbs button{border:0;background:transparent;padding:5px;color:#718199;font-size:10px}.breadcrumbs button:hover{color:var(--blue)}
.breadcrumbs span{color:#c0c9d6}
.search-box{position:relative;width:min(280px,100%)}
.search-box>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:20px;color:#9aa7b8}
.search-box input{height:36px;padding:0 12px 0 34px;border-radius:11px;font-size:10px}
.drop-target{height:61px;margin:0 0 12px;border:1px dashed #c9d9f0;border-radius:14px;background:#f9fbff9c;display:flex;align-items:center;justify-content:center;gap:10px;color:#91a0b4;font-size:10px;transition:.18s}
.drop-target.drag-active{border-color:#5c97ed;background:#edf5ff;color:#3679dc}
.drop-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#edf4ff;color:#4785e2;font-size:16px}
.entry-list{overflow:hidden;border-radius:18px;min-height:76px}
.entry-list.empty-state{display:grid;place-items:center;padding:30px;color:#9aa6b6;font-size:11px}
.entry-row{min-height:62px;display:flex;align-items:center;gap:12px;padding:10px 15px;border-bottom:1px solid #edf1f6;transition:background .14s}
.entry-row:last-child{border-bottom:0}.entry-row:hover{background:#f9fbff}.entry-row.dragging{opacity:.4}.entry-row.drop-hover{background:#edf5ff;outline:1px dashed #77a7ed;outline-offset:-3px}
.entry-icon{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:#edf4ff;color:#4b83d4;font-size:16px;font-weight:700}
.entry-icon.folder{background:#fff5df;color:#c08a36}.entry-icon.video{background:#f2edff;color:#8669ca}.entry-icon.image{background:#eaf8f2;color:#279b74}.entry-icon.audio{background:#fff0f2;color:#c76a7a}
.entry-copy{min-width:0;flex:1;display:grid;gap:5px}
.entry-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:680;color:#38465a}
.entry-sub{font-size:9px;color:#9aa6b6}
.entry-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.mini-action{min-width:29px;height:29px;padding:0 8px;display:grid;place-items:center;border:1px solid #e9eef5;border-radius:9px;background:#fff;color:#718097;font-size:10px;text-decoration:none;transition:.16s}
.mini-action:hover{border-color:#cbdcf5;background:#f6f9ff;color:#3478e5}
.mini-action.danger:hover{border-color:#f0cfd1;background:#fff7f7;color:#c3484f}
.file-hint{margin:12px 3px;color:#a0aaba;font-size:9px;line-height:1.5}
.upload-progress{margin:0 0 12px;padding:15px 17px;border-radius:16px;border-color:#dce8f8;background:linear-gradient(120deg,#ffffffed,#f2f7ffed)}
.upload-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.upload-progress-file{display:grid;gap:4px;min-width:0}.upload-progress-file strong{max-width:min(65vw,620px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.upload-progress-file small{font-size:9px;color:#8f9caf}
.upload-progress-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.upload-progress-actions>b{font-size:17px;color:#3678df;font-variant-numeric:tabular-nums}
.upload-track{height:7px;border-radius:20px;overflow:hidden;background:#e8eef7}.upload-track i{display:block;width:0;height:100%;border-radius:20px;background:linear-gradient(90deg,#5791eb,#8cb8f7);box-shadow:0 0 12px #5791eb44;transition:width .15s linear}
.upload-progress-details{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-top:9px;color:#909db0;font-size:9px;font-variant-numeric:tabular-nums}.upload-progress-details strong{color:#526a8e;font-weight:650}
.info-banner{display:flex;gap:11px;align-items:flex-start;padding:14px 16px;margin:0 0 13px;border:1px solid #dfeaf9;border-radius:14px;background:#f5f9ff;color:#71839e;font-size:10px;line-height:1.55}.info-banner>span{color:#5590e7;font-size:16px;line-height:1}
/* notes */
.notes-layout{display:grid;grid-template-columns:minmax(210px,270px) minmax(0,1fr);gap:13px;min-height:470px}
.notes-sidebar,.note-editor{border-radius:18px;overflow:hidden}
.notes-search{padding:12px;border-bottom:1px solid #edf1f6}.notes-search input{height:35px;font-size:10px;border-radius:10px}
.notes-list{max-height:590px;overflow:auto;padding:7px}
.note-list-item{width:100%;display:grid;gap:7px;padding:12px;border:0;border-radius:12px;background:transparent;text-align:left;color:#536176;transition:.15s}
.note-list-item:hover{background:#f6f9fd}.note-list-item.active{background:#edf4ff;color:#286bd1}
.note-list-item b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-list-item small{font-size:9px;color:#98a5b6}
.note-list-item .pin-mark{font-size:9px;color:#ba8b37;margin-left:4px}
.note-editor{display:flex;flex-direction:column;min-width:0;padding:15px 18px}
.note-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid #edf1f6;color:#9aa6b5;font-size:9px}
.note-editor-toolbar>div{display:flex;gap:6px;flex-wrap:wrap}
.note-title{width:100%;padding:18px 0 11px;border:0;border-bottom:1px solid #f0f3f7;background:transparent;color:#27364c;outline:none;font-size:20px;font-weight:740;letter-spacing:-.035em}
.note-title:focus{box-shadow:none!important;border-color:#d9e7fa!important}
.note-editor textarea{width:100%;min-height:300px;flex:1;resize:vertical;padding:15px 0;border:0;background:transparent;color:#4a586d;outline:none;font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace}
.note-editor textarea:focus{box-shadow:none!important;border-color:transparent!important}
.note-editor-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:10px;border-top:1px solid #edf1f6;color:#a0aaba;font-size:9px}
.note-preview{min-height:300px;padding:14px 0;color:#4b5b70;font-size:12px;line-height:1.75;overflow-wrap:anywhere}.note-preview h1,.note-preview h2,.note-preview h3{color:#24344b}.note-preview code{padding:2px 5px;border-radius:5px;background:#f0f3f8}.note-preview pre{padding:12px;overflow:auto;border-radius:10px;background:#f2f5f9}.note-preview blockquote{margin:8px 0;padding-left:12px;border-left:3px solid #8fb5ec;color:#8290a4}
/* IP */
.ip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ip-card{min-height:220px;padding:22px;border-radius:20px}
.ip-card-icon{width:38px;height:38px;display:grid;place-items:center;margin-bottom:18px;border-radius:13px;font-size:19px}
.ip-card h3{margin:6px 0 12px;font-size:14px}.ip-card>strong{display:block;font-size:25px;letter-spacing:-.035em;font-weight:760;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.ip-card>small{display:block;margin-top:10px;color:#9aa6b6;font-size:10px}
.subtle-note{margin:13px 3px;color:#99a5b5;font-size:10px;line-height:1.6}
/* monitoring */
.live-pill{color:#4c9d7e;background:#f0faf6;border-color:#dcf2e9;font-size:9px;letter-spacing:.04em}.live-pill i{width:6px;height:6px;border-radius:50%;background:#39b987}
.monitor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:14px}
.monitor-card{min-height:168px;padding:18px 19px;border-radius:18px;overflow:hidden}
.monitor-label{font-size:9px;letter-spacing:.12em;font-weight:750;color:#93a1b4}
.monitor-card>strong{display:block;margin:9px 0 3px;font-size:25px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.monitor-card>small{display:block;color:#9aa6b6;font-size:9px;min-height:13px}
.monitor-card canvas{display:block;width:100%;height:52px;margin-top:11px}
.system-panel{padding:18px 20px;border-radius:18px}
.system-panel .section-heading{margin:0 0 12px}.system-panel .section-heading h3{margin:4px 0 0;font-size:14px}
.service-status-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
.service-line{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #f0f3f7;color:#718096;font-size:10px}
.service-line b{color:#9aa6b6;font-size:9px;font-weight:650}.service-line b.ok{color:#269d74}.service-line b.bad{color:#c44f55}
.uptime-line{padding-top:13px;color:#8c99aa;font-size:10px}.uptime-line strong{margin-left:5px;color:#53647a;font-weight:680}
/* services */
.services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:15px}
.service-card{min-height:167px;padding:20px;border-radius:18px}
.service-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;font-size:18px;margin-bottom:13px}
.service-card h3{margin:0 0 7px;font-size:13px}.service-card p{max-width:430px;min-height:33px;margin:0 0 12px;color:#8a97a9;font-size:10px;line-height:1.55}
.feature-tag{display:inline-flex;padding:5px 8px;border-radius:7px;background:#eef8f3;color:#329575;font-size:9px;font-weight:650}
.security-note{margin-top:8px}
/* preview and shared */
.modal{position:fixed;z-index:30;inset:0;display:grid;place-items:center;padding:22px}
.modal-backdrop{position:absolute;inset:0;border:0;background:#17263d66;backdrop-filter:blur(7px)}
.viewer-window{position:relative;z-index:1;width:min(1080px,96vw);height:min(780px,90vh);display:flex;flex-direction:column;border-radius:19px;overflow:hidden;background:#fff}
.viewer-header{min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px 0 19px;border-bottom:1px solid var(--line);font-size:11px}
.viewer-actions{display:flex;align-items:center;gap:8px}.close-modal{font-size:20px}
.viewer-content{flex:1;min-height:0;display:grid;place-items:center;padding:14px;overflow:auto;background:#f8fafd}
.viewer-content img{max-width:100%;max-height:100%;object-fit:contain}.viewer-content video,.viewer-content audio{max-width:100%;max-height:100%}.viewer-content iframe{width:100%;height:100%;border:0;background:#fff}.viewer-message{color:#8592a4;font-size:12px}
.toast{position:fixed;z-index:50;right:22px;bottom:22px;max-width:min(420px,calc(100vw - 44px));padding:12px 16px;border:1px solid #e3eaf3;border-radius:13px;background:#fff;color:#42536a;box-shadow:0 12px 40px #2c43641c;font-size:11px;opacity:0;transform:translateY(8px);pointer-events:none;transition:.22s}.toast.show{opacity:1;transform:none}
.app-footer{display:flex;align-items:center;gap:8px;margin:30px 3px 2px;color:#aab4c2;font-size:8px;font-weight:680;letter-spacing:.13em}.version-pill{margin-left:auto;padding:4px 7px;border:1px solid #e7edf5;border-radius:7px;background:#ffffff99;letter-spacing:0;font-size:8px}
@media(max-width:1120px){.app-shell{grid-template-columns:215px minmax(0,1fr);gap:15px;padding:14px}.sidebar{top:14px;height:calc(100vh - 28px)}.welcome-art{right:24px}.quick-grid{gap:9px}}
@media(max-width:820px){.app-shell{display:block;padding:10px}.sidebar{position:static;height:auto;min-height:0;margin-bottom:14px;padding:12px;border-radius:18px}.brand-row{padding:0 5px 11px}.nav-caption,.sidebar-bottom{display:none}.system-caption{display:none}.nav-group{display:flex;overflow-x:auto;gap:4px}.nav-item{width:auto;min-width:max-content;height:37px;padding:0 10px;font-size:10px}.nav-symbol{font-size:15px;width:17px}.main-area{padding:0 2px 15px}.topbar{margin-bottom:15px}.connection-pill{display:none}.welcome-card{min-height:220px;padding:25px}.welcome-art{right:0;opacity:.65;transform:translate(18%,-50%) scale(.8)}.welcome-content{max-width:75%}.welcome-content h2{font-size:27px}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.notes-layout{grid-template-columns:1fr}.notes-sidebar{max-height:200px}.notes-list{display:flex;overflow:auto;max-height:140px}.note-list-item{min-width:170px}.note-editor{min-height:400px}}
@media(max-width:560px){.login-card{padding:34px 25px 25px}.app-shell{padding:8px}.sidebar{margin-bottom:10px}.brand-name{font-size:13px}.nav-item{height:34px;padding:0 8px;font-size:9px}.topbar h1{font-size:22px}.welcome-card{min-height:225px;padding:21px}.welcome-content{max-width:88%}.welcome-content h2{font-size:25px}.welcome-content p{max-width:235px;line-height:1.5}.welcome-art{right:-55px;opacity:.3}.stat-grid{gap:7px;grid-template-columns:1fr}.stat-card{min-height:unset;display:grid;grid-template-columns:1fr auto;align-items:center;padding:13px 15px}.stat-card-top{grid-column:1/-1}.stat-card>strong{font-size:20px;margin:6px 0 0}.stat-card>small{text-align:right;align-self:end}.stat-card .meter{grid-column:1/-1;margin-top:8px}.quick-grid{gap:8px}.quick-card{min-height:110px;padding:12px}.page-toolbar{align-items:flex-start;flex-direction:column}.toolbar-actions{width:100%}.toolbar-actions>*{flex:1}.file-tools{align-items:stretch;flex-direction:column}.search-box{width:100%}.entry-row{gap:8px;padding:9px}.entry-icon{width:31px;height:31px}.entry-actions{gap:3px}.mini-action{min-width:27px;height:27px;padding:0 6px}.entry-sub{max-width:52vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-progress{padding:12px}.upload-progress-details{display:grid;grid-template-columns:1fr 1fr}.upload-progress-details strong{grid-column:1/-1}.upload-progress-file strong{max-width:55vw}.upload-progress-actions{gap:7px}.notes-layout{gap:9px}.note-editor{padding:12px}.note-title{font-size:18px}.note-editor-toolbar{align-items:flex-start;flex-direction:column}.ip-grid,.monitor-grid,.services-grid{grid-template-columns:1fr}.ip-card{min-height:185px}.service-status-list{grid-template-columns:1fr}.viewer-window{height:88vh}.app-footer{margin-top:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

.entry-name-button{cursor:pointer}.entry-name-button:hover{color:#2f73d7;text-decoration:underline;text-underline-offset:3px}

.upload-queue-list{display:grid;gap:4px;max-height:106px;overflow:auto;margin-top:10px;padding-top:8px;border-top:1px solid #eaf0f8}
.upload-queue-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 2px;color:#8996a9;font-size:9px}
.upload-queue-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upload-queue-item small{flex-shrink:0;color:#a1adbd;font-size:8px}
.upload-queue-item.current span{color:#3478e5;font-weight:700}
.upload-queue-item.done small{color:#299b75}
.upload-queue-item.error small,.upload-queue-item.cancelled small{color:#c14e55}

/* BTC Cloud 3.0.1 theme switch */
.theme-toggle{font-size:16px;line-height:1}
.single-ip-grid{grid-template-columns:minmax(0,620px)}

html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#e7edf7;--muted:#a0aec2;--soft:#8291a8;--line:#2b374b;
  --blue:#79aaff;--blue-dark:#5c91ed;--blue-soft:#1d2b42;
  --green:#42c99a;--red:#f07880;--amber:#e4b45e;--purple:#b39af4;
  --surface:rgba(23,31,46,.88);--surface-solid:#171f2e;
  --shadow:0 16px 44px rgba(0,0,0,.24),0 2px 9px rgba(0,0,0,.16);
}
html[data-theme="dark"] body{
  color:var(--ink);
  background:radial-gradient(ellipse at 12% 0%,#172943 0,transparent 36%),radial-gradient(ellipse at 100% 10%,#251e3b 0,transparent 29%),#0d111b;
}
html[data-theme="dark"] .glass-card{background:var(--surface);border-color:rgba(151,172,205,.14);box-shadow:var(--shadow)}
html[data-theme="dark"] .eyebrow{color:#8e9db4}
html[data-theme="dark"] .login-card input,
html[data-theme="dark"] .search-box input,
html[data-theme="dark"] .notes-search input{
  border-color:#344158;background:#111927;color:var(--ink);color-scheme:dark;
}
html[data-theme="dark"] .login-card label{color:#dce5f2}
html[data-theme="dark"] .login-foot{border-color:var(--line);color:#8291a8}
html[data-theme="dark"] .setup-hint{background:#302817;color:#e4c98f}
html[data-theme="dark"] .setup-hint code{color:#f0d9a6}
html[data-theme="dark"] .login-orbit{border-color:#6484b24a}
html[data-theme="dark"] .brand-name small,
html[data-theme="dark"] .nav-caption,
html[data-theme="dark"] .profile-meta small{color:#8291a8}
html[data-theme="dark"] .nav-item{color:#a7b3c5}
html[data-theme="dark"] .nav-item:hover{background:#202b3d;color:#eef3fb}
html[data-theme="dark"] .nav-item.active{color:#8ab7ff;background:#1d2e49}
html[data-theme="dark"] .storage-widget{border-color:#2b394e;background:linear-gradient(135deg,#1b2638,#172131)}
html[data-theme="dark"] .storage-heading{color:#a2b0c3}
html[data-theme="dark"] .storage-heading b{color:#e0e8f4}
html[data-theme="dark"] .storage-widget small{color:#8796ab}
html[data-theme="dark"] .profile-avatar{background:#263b5c;color:#a8c9ff}
html[data-theme="dark"] .icon-button{border-color:#344158;background:#192334;color:#b1bfd2}
html[data-theme="dark"] .icon-button:hover{border-color:#4b6c9a;background:#22324a;color:#a7c7ff}
html[data-theme="dark"] .connection-pill,
html[data-theme="dark"] .live-pill{border-color:#334158;background:#1b2738;color:#a4b2c5}
html[data-theme="dark"] .button.secondary{color:#c3d0e2;border-color:#39475d;background:#202b3d}
html[data-theme="dark"] .button.secondary:hover{border-color:#5274a4;background:#273750;color:#a9caff}
html[data-theme="dark"] .button.danger-ghost{color:#ff9ba1;border-color:#5a343c;background:#301f27}
html[data-theme="dark"] .button.danger-ghost:hover{border-color:#8e4c56;background:#40232b}
html[data-theme="dark"] .welcome-card{border-color:#293a53;background:linear-gradient(112deg,#172131 0%,#19263a 54%,#20334f 100%)}
html[data-theme="dark"] .welcome-content h2 span{color:#80b0ff}
html[data-theme="dark"] .welcome-content p{color:#a2b0c3}
html[data-theme="dark"] .art-cloud{border-color:#526987;background:linear-gradient(145deg,#334b6b,#1d2b40);box-shadow:0 18px 42px #050a1470,inset 0 1px 5px #8daed044;color:#8ab8ff}
html[data-theme="dark"] .art-orbit{border-color:#6488ba66}
html[data-theme="dark"] .orbit-b{border-color:#9679c65c}
html[data-theme="dark"] .stat-card-top{color:#a1aec1}
html[data-theme="dark"] .stat-card>small{color:#8291a8}
html[data-theme="dark"] .blue{color:#8ab7ff;background:#1e3554}
html[data-theme="dark"] .purple{color:#c0aaff;background:#30284a}
html[data-theme="dark"] .green{color:#72d9b5;background:#1c3b35}
html[data-theme="dark"] .amber{color:#f0c779;background:#3d3222}
html[data-theme="dark"] .meter{background:#2a3548}
html[data-theme="dark"] .quick-card{color:var(--ink)}
html[data-theme="dark"] .quick-card:hover{border-color:#425a7a;box-shadow:0 14px 34px #0005}
html[data-theme="dark"] .quick-card small{color:#91a0b5}
html[data-theme="dark"] .page-toolbar p{color:#9aa9be}
html[data-theme="dark"] .breadcrumbs{color:#93a2b8}
html[data-theme="dark"] .breadcrumbs button{color:#a8b7cc}
html[data-theme="dark"] .breadcrumbs span{color:#596a82}
html[data-theme="dark"] .search-box input{border-color:#344158;background:#151e2c;color:var(--ink)}
html[data-theme="dark"] .drop-target{border-color:#3b5272;background:#172235;color:#9aaec8}
html[data-theme="dark"] .drop-target.drag-active{border-color:#79aaff;background:#213753;color:#a7c8ff}
html[data-theme="dark"] .drop-icon{background:#263b5b;color:#9fc4ff}
html[data-theme="dark"] .entry-row{border-color:#2b3749}
html[data-theme="dark"] .entry-row:hover{background:#202b3d}
html[data-theme="dark"] .entry-row.drop-hover{background:#1d3553;outline-color:#79aaff}
html[data-theme="dark"] .entry-icon{background:#263b5b;color:#a4c7ff}
html[data-theme="dark"] .entry-icon.folder{background:#3a3021;color:#edc16f}
html[data-theme="dark"] .entry-icon.video{background:#30284a;color:#c0aaff}
html[data-theme="dark"] .entry-icon.image{background:#1d3b34;color:#75d7b4}
html[data-theme="dark"] .entry-icon.audio{background:#402830;color:#f09aa8}
html[data-theme="dark"] .entry-name{color:#e0e8f4}
html[data-theme="dark"] .entry-sub{color:#92a1b6}
html[data-theme="dark"] .entry-name-button:hover{color:#91baff}
html[data-theme="dark"] .mini-action{border-color:#39465b;background:#202b3d;color:#afbdd0}
html[data-theme="dark"] .mini-action:hover{border-color:#5778a8;background:#283a54;color:#a9caff}
html[data-theme="dark"] .mini-action.danger:hover{border-color:#8e4c56;background:#40232b;color:#ff9ba1}
html[data-theme="dark"] .file-hint{color:#8493a8}
html[data-theme="dark"] .upload-progress{border-color:#334760;background:linear-gradient(120deg,#1a2638,#1b2a40)}
html[data-theme="dark"] .upload-progress-file small{color:#9aaac0}
html[data-theme="dark"] .upload-track{background:#2c3b52}
html[data-theme="dark"] .upload-progress-details{color:#9aaac0}
html[data-theme="dark"] .upload-progress-details strong{color:#c4d6ef}
html[data-theme="dark"] .upload-queue-list{border-color:#334158}
html[data-theme="dark"] .upload-queue-item{color:#a0aec2}
html[data-theme="dark"] .upload-queue-item small{color:#8797ad}
html[data-theme="dark"] .info-banner{border-color:#344862;background:#1a293d;color:#adbed4}
html[data-theme="dark"] .notes-search{border-color:#2b3749}
html[data-theme="dark"] .note-list-item{color:#c1cde0}
html[data-theme="dark"] .note-list-item:hover{background:#202b3d}
html[data-theme="dark"] .note-list-item.active{background:#1e3554;color:#a9caff}
html[data-theme="dark"] .note-list-item small{color:#8e9eb4}
html[data-theme="dark"] .note-editor-toolbar{border-color:#2b3749;color:#91a0b5}
html[data-theme="dark"] .note-title{border-color:#303d51;color:#edf3fb}
html[data-theme="dark"] .note-title::placeholder,
html[data-theme="dark"] .note-editor textarea::placeholder{color:#718198}
html[data-theme="dark"] .note-editor textarea{color:#c1cde0}
html[data-theme="dark"] .note-editor-footer{border-color:#2b3749;color:#8796ab}
html[data-theme="dark"] .note-preview{color:#c1cde0}
html[data-theme="dark"] .note-preview h1,
html[data-theme="dark"] .note-preview h2,
html[data-theme="dark"] .note-preview h3{color:#edf3fb}
html[data-theme="dark"] .note-preview code{background:#29364a;color:#d9e5f5}
html[data-theme="dark"] .note-preview pre{background:#151e2c;color:#d9e5f5}
html[data-theme="dark"] .note-preview blockquote{color:#9cacc1}
html[data-theme="dark"] .ip-card>small,
html[data-theme="dark"] .subtle-note{color:#91a0b5}
html[data-theme="dark"] .monitor-label{color:#9aaac0}
html[data-theme="dark"] .monitor-card>small{color:#93a2b7}
html[data-theme="dark"] .service-line{border-color:#2b3749;color:#aab8ca}
html[data-theme="dark"] .service-line b{color:#97a6bc}
html[data-theme="dark"] .uptime-line{color:#93a2b7}
html[data-theme="dark"] .uptime-line strong{color:#c5d2e4}
html[data-theme="dark"] .service-card p{color:#9baac0}
html[data-theme="dark"] .feature-tag{background:#1d3b34;color:#72d9b5}
html[data-theme="dark"] .viewer-window{background:#171f2e}
html[data-theme="dark"] .viewer-content{background:#101722}
html[data-theme="dark"] .viewer-content iframe{background:#fff}
html[data-theme="dark"] .viewer-message{color:#a2b0c3}
html[data-theme="dark"] .toast{border-color:#39465b;background:#202b3d;color:#e0e8f4;box-shadow:0 12px 40px #0007}
html[data-theme="dark"] .version-pill{border-color:#354259;background:#202b3d;color:#9eacc1}
html[data-theme="dark"] .app-footer{color:#77879e}
html[data-theme="dark"] .empty-state{color:#97a6bb}

@media(max-width:820px){.sidebar-bottom{display:block!important;margin-top:10px}.storage-widget{display:none}}


/* BTC Cloud: share dialog */
.share-dialog {
  position: relative; z-index: 1; width: min(540px, 96vw);
  max-height: 90vh; overflow: auto; padding: 23px;
  border: 1px solid #e4eaf3; border-radius: 22px;
  background: #fff; color: #233149; box-shadow: 0 24px 80px #17263d30;
}
.share-dialog-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.share-dialog-header strong { display: block; font-size: 19px; }
.share-dialog-header small {
  display: block; margin-top: 5px; color: #8390a3;
  font-size: 11px; overflow-wrap: anywhere;
}
.share-link-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.share-link-row { display: flex; gap: 8px; }
.share-link-input {
  flex: 1; min-width: 0; padding: 12px 13px;
  border: 1px solid #dce5f0; border-radius: 11px;
  background: #f7f9fc; color: #26364d; font: 12px ui-monospace, monospace;
}
.share-copy-button {
  flex-shrink: 0; padding: 0 16px; border: 0; border-radius: 11px;
  background: #2769d8; color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.share-qr-layout {
  display: grid; grid-template-columns: 234px minmax(0,1fr);
  align-items: center; gap: 20px; margin-top: 20px;
}
.share-qr-box {
  min-height: 234px; display: grid; place-items: center;
  padding: 12px; border: 1px solid #e6ecf4; border-radius: 16px;
  background: #fff;
}
#shareQr canvas, #shareQr img { display: block; max-width: 100%; height: auto; }
.share-info strong { display: block; font-size: 15px; }
.share-info p { color: #78869a; font-size: 12px; line-height: 1.55; }
.share-info small { display: block; color: #8a96a8; font-size: 11px; line-height: 1.5; }
html[data-theme="dark"] .share-dialog { background: #171f2e; color: #edf2f7; border-color: #303c50; }
html[data-theme="dark"] .share-link-input { background: #101827; color: #edf2f7; border-color: #39465b; }
html[data-theme="dark"] .share-qr-box { background: #fff; border-color: #39465b; }
@media(max-width:560px) {
  .share-dialog { width: calc(100vw - 20px); padding: 17px; }
  .share-link-row { flex-direction: column; }
  .share-copy-button { min-height: 42px; }
  .share-qr-layout { grid-template-columns: 1fr; gap: 12px; }
  .share-qr-box { min-height: 225px; }
}


/* BTC Cloud weather widget */
.weather-card {
  display:flex; align-items:center; justify-content:space-between;
  gap:22px; padding:18px 20px; margin-bottom:28px; border-radius:18px;
}
.weather-main {
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex:1; min-width:0;
}
.weather-location { min-width:0; }
.weather-location h3 { margin:5px 0 2px; font-size:22px; letter-spacing:-.04em; }
.weather-location p { margin:0 0 7px; color:#8d9aad; font-size:10px; }
.weather-location > span { font-size:12px; font-weight:650; color:var(--ink); }
.weather-current { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.weather-icon { font-size:39px; line-height:1; }
.weather-current strong { font-size:42px; letter-spacing:-.06em; font-weight:760; }
.weather-stats {
  display:grid; grid-template-columns:repeat(3,minmax(70px,1fr));
  gap:13px; flex:1; max-width:390px;
}
.weather-stats small { display:block; margin-bottom:6px; color:#91a0b3; font-size:9px; }
.weather-stats b { font-size:13px; font-weight:720; }
.weather-actions {
  display:flex; flex-direction:column; align-items:center;
  gap:5px; flex-shrink:0;
}
.weather-actions small { color:#9aa6b6; font-size:8px; white-space:nowrap; }
.weather-actions a { color:var(--blue); text-decoration:none; }
.weather-actions button { width:32px; height:32px; }
@media(max-width:820px) {
  .weather-card { flex-direction:column; align-items:stretch; gap:16px; }
  .weather-main { width:100%; }
  .weather-stats { width:100%; max-width:none; }
  .weather-actions { flex-direction:row; justify-content:space-between; }
}
@media(max-width:560px) {
  .weather-card { padding:15px; }
  .weather-main { gap:8px; }
  .weather-icon { font-size:32px; }
  .weather-current { gap:5px; }
  .weather-current strong { font-size:35px; }
  .weather-location h3 { font-size:20px; }
  .weather-stats { gap:7px; }
  .weather-stats b { font-size:12px; }
}
html[data-theme="dark"] .weather-location p,
html[data-theme="dark"] .weather-stats small,
html[data-theme="dark"] .weather-actions small { color:#9aa9bd; }
