/* Shared control primitives. All presentation is local; no remote fonts. */
:root{color-scheme:light;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-synthesis:none;-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text)}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #89b7d9;outline-offset:3px}
h1,h2,h3,p{margin:0}
small{font-size:12px}
.icon{display:block;flex:none;width:20px;height:20px}

.sidebar{display:none}
.topbar{display:flex;align-items:center;justify-content:space-between}
.brand-lockup,.topbar-right{display:flex;align-items:center}
.brand-mark{display:flex;align-items:center;justify-content:center;gap:4px;color:#fff;width:46px;height:46px;flex:none}
.brand-mark span{display:block;width:4px;border-radius:3px;background:currentColor;height:16px;transform:skewY(-12deg)}
.brand-mark span:nth-child(2){height:26px}
.brand-mark span:nth-child(3){height:20px}
.brand-lockup .brand-mark span{height:12px}
.brand-lockup .brand-mark span:nth-child(3){height:15px}
.avatar{display:grid;place-items:center;overflow:hidden;flex:none}
.avatar img{width:100%;height:100%;object-fit:cover}
.icon-button{display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);color:var(--muted)}
.page-heading{display:flex;justify-content:space-between}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);background:var(--surface);color:var(--text);text-decoration:none;line-height:1.4}
.button-wide{width:100%}
.button-row{display:flex;flex-wrap:wrap}
.section-header{display:flex;align-items:center;justify-content:space-between}
.back-link{display:flex;align-items:center;gap:5px;background:transparent;border:0;padding:0}
.badge{display:inline-flex;align-items:center;white-space:nowrap}
.status-dot{border-radius:50%;flex:none;background:currentColor}

.field{display:flex;flex-direction:column}
.field:last-child{border-bottom:0}
.field-label{display:flex;justify-content:space-between;align-items:center;gap:8px}
.field-help{white-space:pre-wrap}
.field-switch{flex-direction:row;align-items:center;justify-content:space-between}
.field-copy{min-width:0;flex:1}
.input{width:100%;color:var(--text)}
.input::placeholder{color:#9ba8b5}
.input:disabled{opacity:.6}
.input-textarea{resize:vertical}
.switch{display:inline-flex;position:relative;flex:none}
.switch input{opacity:0;width:100%;height:100%;position:absolute;inset:0;margin:0;cursor:pointer;z-index:2}
.switch-track{display:block;transition:background .16s}
.switch-track:after{content:"";position:absolute;border-radius:50%;background:#fff;transition:transform .16s}
.switch input:focus-visible+.switch-track{outline:3px solid #89b7d9;outline-offset:3px}
.save-bar{display:flex;align-items:center;justify-content:space-between}
.profile-top{display:flex;align-items:center}
.profile-grid{display:grid;border-top:1px solid var(--line)}
.key-value{display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}
.key-value:last-child{border-bottom:0}
.key-value dt{color:var(--muted);flex:none}
.key-value dd{margin:0;text-align:right;overflow-wrap:anywhere}
.key-value>span:last-child{min-width:0;text-align:right;overflow-wrap:anywhere}
.tag-list{display:flex;flex-wrap:wrap}
.tag{display:inline-flex;overflow-wrap:anywhere;max-width:100%}
.collection-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.record-content{white-space:pre-wrap;overflow-wrap:anywhere}

.modal-dialog{width:100%;padding:0;background:var(--surface);color:var(--text);overscroll-behavior:contain}
.modal-header{display:flex;align-items:flex-start;justify-content:space-between}
.modal-header .icon-button{flex:none}
.modal-body{overflow-wrap:anywhere}
.modal-header p,.modal-body .notice{white-space:pre-wrap}
.modal-footer{border-top:1px solid var(--line);display:flex;justify-content:flex-end;position:sticky;bottom:0}
.modal-body .settings-form{padding:0;border:0;border-radius:0}
.modal-description,.form-error{white-space:pre-wrap}
.form-error{color:var(--red)}
.file-drop{display:flex;flex-direction:column;align-items:center;gap:11px;text-align:center;position:relative;margin-top:18px}
.file-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.file-name{margin-top:12px;word-break:break-all}
.job-progress{display:flex;align-items:center;margin-top:15px}
.job-progress p{color:var(--muted);margin-top:4px}
.result-lines{margin-top:13px;overflow:auto}
.message-preview-content{white-space:pre-wrap;overflow-wrap:anywhere}
.message-preview-content a{color:var(--blue);text-decoration:underline}
.message-preview-content code{font-family:ui-monospace,monospace;font-size:.9em}
.preview-spoiler{background:var(--line);border-radius:3px}
.preview-media-note{font-size:11px;color:var(--muted);margin-top:10px}
.preview-buttons{display:flex;gap:7px;margin-top:7px}
.preview-buttons .button{flex:1;min-width:0;overflow-wrap:anywhere}
.preview-media{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:7px;margin-top:14px;background:var(--surface-soft)}
audio.preview-media{max-height:60px}
.preview-media-loading{display:flex;align-items:center;gap:9px;padding:16px 0;font-size:12px;color:var(--muted)}

.toast-region{position:fixed;top:calc(18px + var(--safe-top));left:50%;transform:translateX(-50%);z-index:100;pointer-events:none;width:max-content;max-width:calc(100vw - 30px)}
.toast{color:#fff;display:flex;gap:9px;align-items:center;margin-bottom:8px;animation:appear .2s ease-out}
.toast .icon{width:17px;height:17px}
.spinner{width:17px;height:17px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite;display:inline-block;flex:none}
.launch-screen{min-height:100dvh;padding:40px 24px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;text-align:center}
.launch-screen p{color:var(--muted);max-width:360px}
.gate-actions{display:flex;flex-direction:column;gap:9px;max-width:300px;width:100%;margin-top:8px}
.gate-foot{margin-top:13px;font-size:11px!important}
.loading-line{width:90px;overflow:hidden;position:relative;border-radius:3px;margin-top:12px}
.loading-line:after{content:"";display:block;width:40%;height:100%;animation:loadline 1.3s ease-in-out infinite}
.skeleton{position:relative;overflow:hidden}
.skeleton:after{content:"";position:absolute;opacity:.4;animation:pulse 1.2s ease-in-out infinite}
.footer-note{text-align:center}
.noscript{padding:30px;text-align:center}
.kbd{font-family:ui-monospace,monospace;font-size:11px}
.text-muted{color:var(--muted)}
.mt-16{margin-top:16px}
.mt-24{margin-top:24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hidden,[hidden]{display:none!important}
.count-label{font-size:11px;background:var(--surface-soft);padding:2px 6px;border-radius:4px;color:var(--muted)}

@keyframes spin{to{transform:rotate(360deg)}
}
@keyframes loadline{0%{transform:translateX(-100%)}
100%{transform:translateX(350%)}
}
@keyframes pulse{50%{opacity:.15}
}
@keyframes appear{from{opacity:0;transform:translateY(-6px)}
to{opacity:1;transform:translateY(0)}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


/* Compact control panel: one surface per group, data before navigation. */
:root{--bg:#f4f6f8;--surface:#fff;--surface-soft:#f6f8fa;--text:#182330;--muted:#788391;--line:#e6ebf0;--strong:#237fc5;--strong-text:#fff;--green:#287e62;--green-bg:#eaf5f0;--amber:#a87422;--amber-bg:#fff5e4;--red:#c45652;--red-bg:#fdf0ef;--blue:#247cbe;--blue-bg:#edf5fb;--radius:9px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5}

body{font-variant-numeric:tabular-nums}
h1{font-size:25px;font-weight:650;letter-spacing:-.6px;line-height:1.25}
h2{font-size:15px;letter-spacing:0;font-weight:650}
h3{font-size:14px;letter-spacing:0}
.eyebrow{display:none}
.icon{stroke-width:1.7}
.app-shell{min-height:100dvh}
.workspace{min-width:0}

.topbar{height:58px;min-height:calc(58px + var(--safe-top));padding:var(--safe-top) 16px 0;background:var(--surface);border-bottom:1px solid var(--line);gap:8px}
.brand-lockup{gap:8px}
.brand-lockup .brand-mark{width:27px;height:27px;border-radius:6px;gap:3px}
.brand-lockup .brand-mark span{width:2.5px}
.brand-lockup .brand-mark span:nth-child(2){height:17px}
.brand-name{font-size:15px;font-weight:700;letter-spacing:.1px}
.brand-mark{background:#237fc5;border-radius:9px}
.topbar-right{gap:10px}
.topbar-right>.button{font-size:0;min-width:30px;min-height:30px;padding:6px}
.topbar-right>.button .icon{width:17px;height:17px}
.profile-link{display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:0;color:var(--muted);min-width:0}
.profile-link-name{font-size:11px;max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar{width:29px;height:29px;border-radius:50%;font-size:12px;color:#4b5f73;background:#e8eef4;border:1px solid #dfe6ee}
.desktop-context{display:none}
.icon-button{width:32px;height:32px;padding:7px;border-radius:6px}

.content{max-width:1320px;padding:21px 16px calc(88px + var(--safe-bottom));margin:auto}
.page-heading{gap:12px;margin-bottom:17px;align-items:center}
.page-heading h1{margin:0}
.page-subtitle{font-size:12px;line-height:1.6;margin-top:7px;color:var(--muted)}
.overview-date{font-size:10px;color:var(--muted);white-space:nowrap}
.page-heading>.button{margin-top:0}
.back-link{margin-bottom:14px;font-size:11px;color:var(--muted)}
.back-link .icon{width:13px;height:13px}

.button{border-radius:6px;font-size:12px;font-weight:500;min-height:35px;padding:8px 12px;box-shadow:none;transition:background .16s,border-color .16s,color .16s}
.button:hover{background:#edf2f6}
.button-primary{background:var(--strong);color:#fff;border-color:var(--strong)}
.button-primary:hover{background:#1c70b0;border-color:#1c70b0}
.button-danger{background:transparent;border-color:#eddcdb;color:var(--red)}
.button-danger:hover{background:var(--red-bg)}
.button-ghost{border-color:transparent;background:transparent}
.button:active{transform:translateY(1px)}
.button .icon{width:15px;height:15px}
.button-row{gap:7px}
.text-button{display:inline-flex;align-items:center;gap:3px;padding:0;border:0;background:transparent;font-size:11px;color:var(--blue)}
.text-button .icon{width:11px;height:11px}

.membership-strip{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;margin-bottom:17px;min-height:20px}
.membership-strip>span:first-child{display:inline-flex;align-items:center;gap:6px;color:var(--text);font-weight:500}
.membership-strip .status-dot{width:5px;height:5px;background:var(--muted)}
.membership-strip .status-dot.is-active{background:var(--green)}
.membership-strip .text-button{margin-left:auto}

.overview-metrics{background:var(--surface);border-top:2px solid #283b4f;border-radius:0 0 8px 8px;overflow:hidden}
.primary-metrics{display:grid;grid-template-columns:1fr 1fr;padding:20px 0 18px}
.primary-metric{padding:0 20px}
.primary-metric+.primary-metric{border-left:1px solid var(--line)}
.metric-label{font-size:12px;color:#647181}
.metric-number{font-size:35px;font-weight:600;letter-spacing:-1px;line-height:1.15;margin-top:8px}
.metric-number>span{font-size:10px;font-weight:400;color:var(--muted);margin-left:7px;letter-spacing:0}
.secondary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:11px 4px;border-top:1px solid var(--line)}
.secondary-metrics>div{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0}
.secondary-metrics>div+div{border-left:1px solid var(--line)}
.secondary-metrics strong{font-size:12px;font-weight:600;white-space:nowrap}
.secondary-metrics span{font-size:10px;color:var(--muted)}

.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:19px 0 15px;margin-bottom:4px}
.quick-action{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-width:0;border:0;background:transparent;padding:2px 0;color:#53697d;font-size:11px}
.quick-action>.icon{width:22px;height:22px}
.quick-action>span{color:var(--text)}
.quick-action:hover>.icon{color:var(--blue)}
.quick-action:active{transform:translateY(1px)}

.section{margin-top:24px}
.section-header{min-height:20px;margin-bottom:10px;gap:12px}
.section-note{font-size:10px}
.overview-grid{display:grid;gap:20px}
.overview-grid .section{margin-top:0}
.activity-list,.account-summary-list{background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.activity-row{display:block;width:100%;border:0;border-bottom:1px solid var(--line);padding:14px 15px;background:transparent;text-align:left;color:var(--text)}
.activity-row:last-child{border-bottom:0}
.activity-row:hover,.account-summary-row:hover{background:var(--surface-soft)}
.activity-line{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.keyword-mark{font-size:11px;color:var(--blue);font-weight:600;display:inline-flex;gap:5px;align-items:center}
.keyword-mark:before{content:"";width:3px;height:10px;border-radius:2px;background:var(--blue)}
.activity-line time{font-size:10px;color:#929ca6}
.activity-text{font-size:13px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.activity-source{margin-top:8px;display:flex;align-items:center;gap:8px;min-width:0;color:var(--muted);font-size:10px}
.activity-source>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.activity-source>span+span{border-left:1px solid #dfe5eb;padding-left:8px}
.account-summary-row{display:flex;align-items:center;width:100%;gap:10px;text-align:left;padding:15px 13px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text)}
.account-monogram{width:30px;height:30px;display:grid;place-items:center;flex:none;border-radius:7px;font-size:12px;background:#edf2f6;color:#677d90}
.account-summary-copy{min-width:0;flex:1}
.account-summary-copy strong{font-size:12px;font-weight:550;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-summary-copy>span{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.account-summary-row>.badge{font-size:9px;max-width:110px;white-space:normal;flex:none}
.account-manage{border:0;border-radius:0;min-height:40px;color:var(--blue);font-size:11px;background:transparent}
.account-manage .icon{order:2;width:11px;height:11px}

.feature-grid{display:block;background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.feature-card{width:100%;min-height:60px;display:flex;align-items:center;gap:13px;padding:14px 15px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left;box-shadow:none}
.feature-card:last-child{border-bottom:0}
.feature-card:hover{background:var(--surface-soft);transform:none}
.feature-icon{width:21px;height:24px;padding:0;background:transparent;color:#667d91;border:0;border-radius:0;display:grid;place-items:center}
.feature-icon .icon{width:20px;height:20px}
.feature-copy{min-width:0;flex:1}
.feature-copy h3{font-weight:500;font-size:13px;line-height:1.4}
.feature-copy p{font-size:10px;color:var(--muted);line-height:1.5;margin-top:4px}
.feature-card>.icon{width:13px;height:13px;color:#a9b2bb;flex:none}
.panel{border:1px solid var(--line);background:var(--surface);border-radius:8px;box-shadow:none}
.panel-body{padding:14px 16px}

.bottom-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;padding:6px 8px calc(5px + var(--safe-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--surface);border-top:1px solid #e1e6ec;box-shadow:none;min-height:59px;gap:0}
.nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;padding:5px 0;color:#85919e;border-radius:0;font-size:10px;font-weight:500;line-height:1.3;min-height:44px}
.nav-item>.icon{width:20px;height:20px}
.nav-item.active{background:transparent;color:var(--blue)}
.nav-item.active:before{content:"";position:absolute;top:-7px;left:calc(50% - 10px);height:2px;width:20px;background:var(--blue)}
.nav-item.active .icon{stroke-width:2}
.nav-item:hover{color:var(--blue);background:transparent}

.toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px;align-items:center}
.search-field{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface);border-radius:6px;padding:8px 11px;min-width:190px;flex:1;min-height:36px}
.search-field input{font-size:12px;border:0;background:transparent;outline:none;min-width:0;width:100%;color:var(--text)}
.search-field .icon{width:15px;height:15px;color:var(--muted)}
.toolbar>.button{font-size:11px;padding:7px 10px;min-height:34px}
.list,.list.grid-list{display:block;background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.record-card{padding:17px 15px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.record-card:last-child{border-bottom:0}
.record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.record-ident{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.record-ident>.avatar{border-radius:6px;width:31px;height:31px;background:#eff3f7;border:0;color:#6b7e91}
.record-ident>div:last-child{min-width:0}
.record-title{font-size:13px;font-weight:600;line-height:1.4;word-break:break-word}
.record-subtitle{font-size:10px;color:var(--muted);line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.record-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:10px;row-gap:12px;margin-top:16px}
.meta-key{font-size:10px;color:var(--muted);line-height:1.4}
.meta-value{font-size:11px;font-weight:500;color:var(--text);margin-top:4px;line-height:1.5;overflow-wrap:anywhere}
.record-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px;padding-top:13px;border-top:1px solid var(--line)}
.record-actions>.button{min-height:29px;padding:5px 9px;font-size:10px;border-radius:5px}
.record-actions>.button .icon{width:12px;height:12px}
.record-content{font-size:12px;line-height:1.65;color:#536171;margin-top:14px;max-height:104px;overflow:hidden}
.collection-footer{font-size:10px;margin-top:12px}
.collection-footer .button{font-size:11px}

.badge{padding:2px 6px;border-radius:4px;font-size:9px;font-weight:500;line-height:1.5;gap:4px}
.status-dot{width:4px;height:4px}
.badge-success{background:var(--green-bg);color:var(--green)}
.badge-warning{background:var(--amber-bg);color:var(--amber)}
.badge-danger{background:var(--red-bg);color:var(--red)}
.badge-info{background:var(--blue-bg);color:var(--blue)}
.badge-neutral{background:#f0f3f6;color:var(--muted)}

.settings-form{padding:1px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.field{padding:16px 0;gap:7px;border-bottom:1px solid var(--line)}
.field-label{font-size:12px;line-height:1.5;font-weight:550}
.field-required{font-size:9px;font-weight:400;color:#9c817d}
.field-help{font-size:10px;color:var(--muted);line-height:1.6}
.field-switch{min-height:58px;gap:17px}
.field-switch .field-help{margin-top:4px}
.input{min-height:37px;padding:8px 10px;border-radius:5px;border:1px solid #dce3ea;background:var(--surface);font-size:12px;line-height:1.6}
.input-textarea{min-height:103px}
.input:focus{border-color:#7aafd8}
.switch{width:35px;height:21px}
.switch-track{width:35px;height:21px;border-radius:14px;border:0;background:#ccd5dd}
.switch-track:after{width:15px;height:15px;top:3px;left:3px;box-shadow:0 1px 2px #15253615}
.switch input:checked+.switch-track{background:var(--blue)}
.switch input:checked+.switch-track:after{transform:translateX(14px)}
.save-bar{margin-top:16px;gap:10px}
.save-bar p{font-size:10px}
.save-bar .button{min-width:94px}
.tag-list{gap:7px;margin:0}
.tag{font-size:11px;padding:5px 9px;background:#f1f5f8;border:0;border-radius:4px}
.notice{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.65;border:0;border-radius:6px;padding:12px 13px;color:#4d6a81;background:var(--blue-bg)}
.notice>.icon{width:15px;height:15px;flex:none;margin-top:2px}
.notice-warning{background:var(--amber-bg);color:var(--amber)}
.notice-danger{background:var(--red-bg);color:var(--red)}
.notice-info{background:var(--blue-bg);color:#547a99}

.profile-panel{padding:21px 18px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.profile-top{gap:13px}
.profile-top>.avatar{width:46px;height:46px;border-radius:50%;font-size:19px}
.profile-top h2{font-size:18px;letter-spacing:-.2px}
.profile-top p{font-size:11px;margin-top:3px}
.profile-top .badge{margin-top:6px}
.profile-grid{grid-template-columns:1fr 1fr;gap:16px 12px;margin-top:21px;padding-top:17px}
.profile-grid .meta-value{font-size:12px}
.key-value{padding:10px 0;font-size:11px;gap:18px;line-height:1.65}
.key-value dd{max-width:75%}
.footer-note{font-size:9px;color:#9aa4ae;line-height:1.8;margin-top:25px}

.modal-dialog{border:0;border-radius:11px;max-width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-shadow:0 18px 70px #14283f30}
.modal-dialog::backdrop{background:#172b4059;backdrop-filter:blur(2px)}
.modal-header{padding:18px 18px 15px;gap:12px;border-bottom:1px solid var(--line)}
.modal-header h2{font-size:16px;line-height:1.45}
.modal-header p{font-size:11px;line-height:1.6;margin-top:6px}
.modal-header .icon-button{width:24px;height:24px;padding:3px;color:#929eaa;border:0}
.modal-body{padding:2px 18px 18px}
.modal-body .field{padding:15px 0}
.modal-footer{padding:13px 18px;background:var(--surface);gap:8px;flex-wrap:wrap}
.modal-footer .button{font-size:12px;min-width:75px;min-height:35px}
.modal-description{font-size:12px;line-height:1.75;padding-top:15px;color:#59697a}
.form-error{font-size:11px;margin-top:10px}
.message-preview-content{padding:15px;border:1px solid var(--line);border-radius:6px;font-size:13px;background:var(--surface-soft)}
.section-label{font-size:10px;color:var(--muted);font-weight:500;margin:17px 0 10px}
.preview-buttons .button{font-size:11px}
.message-preview{margin-top:15px}
.file-drop{border:1px dashed #b9cad9;border-radius:7px;background:#f8fafc;padding:28px 15px}
.file-drop .icon{color:#688ba8;width:25px;height:25px}
.file-drop strong{font-size:13px}
.file-drop span{font-size:10px}
.file-name{font-size:11px;color:var(--blue)}
.job-progress{border:0;border-radius:6px;background:var(--surface-soft);padding:15px;gap:11px}
.job-progress h3{font-size:12px}
.job-progress p{font-size:11px}
.result-lines{max-height:420px}
.result-lines>.record-card{padding:13px 0}
.result-lines>.record-card h3{font-size:12px}
.result-lines>.record-card .record-content{margin-top:5px}

.empty-state{padding:29px 18px;border:0;border-radius:0;background:var(--surface);text-align:center}
.empty-icon{width:32px;height:32px;border:0;border-radius:7px;background:var(--surface-soft);margin-bottom:10px;color:#8b9aaa}
.empty-icon .icon{width:18px;height:18px}
.empty-state h3{font-size:12px;font-weight:500}
.empty-state p{font-size:11px;line-height:1.65;max-width:265px;margin:6px auto 13px}
.skeleton-list{padding:12px;display:grid;gap:8px}
.skeleton{height:49px;border:0;background:var(--surface-soft);border-radius:4px}
.skeleton:after{inset:12px;background:var(--line);border-radius:3px}
.toast{padding:11px 14px;font-size:12px;border-radius:7px;background:#24384b;box-shadow:0 5px 25px #16304a21}
.toast-error{background:#a94f4b}
.launch-screen{background:var(--bg)}
.launch-screen h1{font-size:23px}
.launch-screen p{font-size:12px}
.loading-line{height:2px;background:#e0e7ee}
.loading-line:after{background:var(--blue)}

@media(min-width:600px){.content{padding:27px 26px 96px}
.topbar{padding-left:26px;padding-right:26px}
.overview-date{font-size:11px}
.primary-metric{padding:0 28px}
.metric-number{font-size:42px}
.primary-metrics{padding:24px 0 22px}
.secondary-metrics{padding:14px 7px}
.secondary-metrics strong{font-size:14px}
.secondary-metrics span{font-size:11px}
.quick-actions{padding:23px 0}
.quick-action{flex-direction:row;gap:10px;font-size:12px}
.record-meta{grid-template-columns:repeat(4,minmax(0,1fr))}
.feature-grid{display:grid;grid-template-columns:1fr 1fr}
.feature-card{border-bottom:1px solid var(--line);min-height:68px}
.feature-card:nth-child(odd){border-right:1px solid var(--line)}
.feature-card:nth-last-child(-n+2){border-bottom:0}
.feature-card:only-child{border-right:0}
.profile-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(min-width:900px){.app-shell{display:grid;grid-template-columns:196px minmax(0,1fr)}
.sidebar{display:flex;position:sticky;top:0;height:100dvh;flex-direction:column;padding:0 14px 20px;border-right:1px solid var(--line);background:var(--surface)}
.sidebar-brand{height:65px;display:flex;align-items:center;padding:0 10px;border-bottom:1px solid var(--line);margin-bottom:22px}
.sidebar-brand .brand-name{font-size:16px}
.sidebar-brand .brand-lockup{gap:10px}
.side-nav{display:flex;flex-direction:column;gap:5px}
.side-nav .nav-item{display:flex;flex-direction:row;justify-content:flex-start;gap:12px;min-height:43px;padding:10px 13px;border-radius:5px;font-size:12px}
.side-nav .nav-item.active{background:var(--blue-bg);color:var(--blue)}
.side-nav .nav-item.active:before{display:none}
.side-nav .nav-item>.icon{width:17px;height:17px}
.sidebar-footer{display:flex;align-items:center;gap:7px;padding:14px 9px 0;font-size:10px;color:#8b98a5;margin-top:auto;border-top:1px solid var(--line)}
.connection-dot{height:5px;width:5px;border-radius:50%;background:#86a795}
.bottom-nav{display:none}
.topbar{height:65px;min-height:65px;padding:0 32px;background:var(--surface)}
.topbar:before{display:none}
.topbar>.brand-lockup{display:none}
.desktop-context{display:block;font-size:11px;color:#9aa5af}
.topbar-right{margin-left:auto;gap:15px}
.topbar-right>.button{font-size:11px;padding:6px 8px}
.profile-link-name{font-size:11px;max-width:170px}
.profile-link .avatar{width:28px;height:28px}
.content{padding:29px 32px 40px}
.page-heading{margin-bottom:18px}
h1{font-size:25px}
.membership-strip{margin-bottom:19px}
.membership-strip .text-button{margin-left:8px}
.overview-metrics{max-width:none;border-top-width:2px;display:grid;grid-template-columns:1.2fr 1fr;align-items:center}
.primary-metrics{padding:23px 0}
.primary-metric{padding:0 27px}
.metric-number{font-size:40px}
.secondary-metrics{padding:15px 18px;border-top:0;border-left:1px solid var(--line);height:65px}
.secondary-metrics>div{flex-direction:column;gap:5px}
.secondary-metrics>div+div{border-left:0}
.secondary-metrics strong{font-size:19px;font-weight:550;line-height:1.2}
.secondary-metrics span{font-size:10px}
.quick-actions{grid-template-columns:repeat(4,1fr);padding:17px 0;margin:3px 0 22px;border-bottom:1px solid var(--line)}
.quick-action{justify-content:flex-start;padding:0 15px;gap:11px;font-size:12px}
.quick-action+.quick-action{border-left:1px solid var(--line)}
.quick-action>.icon{width:19px;height:19px}
.overview-grid{grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:23px;align-items:start}
.section-header{margin-bottom:12px}
.activity-row{padding:16px 18px}
.activity-text{font-size:13px}
.activity-line{margin-bottom:7px}
.activity-source{font-size:10px;margin-top:8px}
.activity-line time{font-size:10px}
.account-summary-row{padding:17px 14px}
.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.feature-card{padding:17px 19px;gap:15px;min-height:71px}
.feature-copy h3{font-size:13px}
.feature-copy p{font-size:11px;max-width:450px}
.feature-icon{width:22px}
.section{margin-top:29px}
.list.grid-list{display:block}
.record-card{padding:19px 20px}
.record-meta{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:15px;column-gap:20px}
.record-meta .meta-key{font-size:10px}
.record-meta .meta-value{font-size:12px}
.record-actions{justify-content:flex-end;margin-top:15px;padding-top:13px}
.record-ident>.avatar{width:33px;height:33px}
.record-title{font-size:14px}
.record-head>.badge{margin-top:5px}
.settings-form{max-width:850px;padding:2px 24px}
.field{padding:18px 0}
.field-label{font-size:13px}
.field-help{font-size:11px}
.field:not(.field-switch) .input{max-width:670px}
.input{font-size:13px}
.field-switch{max-width:670px}
.save-bar{max-width:850px}
.save-bar p{font-size:11px}
.profile-panel{padding:25px;max-width:950px}
.profile-top h2{font-size:20px}
.profile-grid{max-width:800px}
.key-value{font-size:12px}
.modal-body .settings-form{max-width:none}
.modal-body .field{padding:15px 0}
}

@media(min-width:1350px){.app-shell{grid-template-columns:212px minmax(0,1fr)}
.content{padding:33px 43px 45px}
.topbar{padding-left:43px;padding-right:43px}
.overview-grid{grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:28px}
.overview-metrics{grid-template-columns:1.15fr 1fr}
.primary-metric{padding:0 32px}
.metric-number{font-size:44px}
.sidebar-brand{padding-left:14px}
.side-nav .nav-item{padding-left:17px}
}

html[data-theme=dark]{--bg:#111820;--surface:#19232e;--surface-soft:#202d3a;--text:#e0e7ee;--muted:#8b9aaa;--line:#2a3948;--strong:#358ecd;--strong-text:#fff;--green:#83bca3;--green-bg:#20392f;--amber:#d2ab69;--amber-bg:#3a3225;--red:#d98d88;--red-bg:#402d2c;--blue:#77b4df;--blue-bg:#233c50}
html[data-theme=dark] .avatar,html[data-theme=dark] .record-ident>.avatar{background:#26394a;border-color:#344b5e;color:#afc5d8}
html[data-theme=dark] .feature-icon{color:#98b1c7}
html[data-theme=dark] .overview-metrics{border-top-color:var(--line)}
html[data-theme=dark] .metric-label,html[data-theme=dark] .activity-text,html[data-theme=dark] .record-content,html[data-theme=dark] .modal-description{color:#bccad6}
html[data-theme=dark] .badge-neutral{background:#293846}
html[data-theme=dark] .account-monogram,html[data-theme=dark] .tag{background:#25394a;color:#a6bcd0}
html[data-theme=dark] .quick-action{color:#9eb6ca}
html[data-theme=dark] .input{border-color:#3b4d5e}
html[data-theme=dark] .file-drop{background:#1b2a38;border-color:#496276}
html[data-theme=dark] .button:hover{background:#283c4d}
html[data-theme=dark] .modal-dialog::backdrop{background:#030a12a3}
html[data-theme=dark] .bottom-nav{border-color:var(--line)}

.brand-lockup,.topbar,.topbar-right,.profile-link{min-width:0}
.brand-lockup{flex:0 1 auto;white-space:nowrap}
.brand-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar>.brand-lockup{max-width:calc(100% - 138px)}
.overview-metrics{border-top:1px solid #dce4eb;border-radius:7px}
.primary-metrics{padding-top:19px}
.profile-link-name{max-width:90px}
.overview-date{overflow:hidden;text-overflow:ellipsis}
.membership-strip{flex-wrap:nowrap}
.membership-strip>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media(min-width:600px){.topbar>.brand-lockup{max-width:none}
.profile-link-name{max-width:170px}
}


.profile-uid{font-size:10px!important;color:#9ba7b2!important}
.membership-details{margin-top:21px;border-top:1px solid var(--line)}
.membership-detail-row{display:flex;justify-content:space-between;align-items:center;padding:17px 0;border-bottom:1px solid var(--line);gap:16px}
.membership-detail-row:last-child{border-bottom:0;padding-bottom:0}
.membership-detail-row>div:first-child{display:flex;align-items:center;gap:9px}
.membership-detail-row strong{font-size:12px;font-weight:550}
.membership-date{text-align:right}
.membership-date>span:first-child{display:block;font-size:13px;font-weight:550;letter-spacing:.1px}
.membership-date>span:last-child{display:block;font-size:9px;color:var(--muted);margin-top:3px}
@media(min-width:900px){.membership-details{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.membership-detail-row{padding:20px 0 0;border-bottom:0;align-items:flex-start}
.membership-detail-row>div:first-child{align-items:flex-start;flex-direction:column;gap:7px}
}

/* Reference-led blue glass theme. Statistics and controls remain live DOM. */
:root{--bg:#eaf3ff;--surface:#f9fcff;--surface-soft:#eef6ff;--text:#102b52;--muted:#6c83a0;--line:#d0e2f5;--strong:#0878f2;--strong-text:#fff;--blue:#0876df;--blue-bg:#e5f2ff;--radius:14px}
body{background:linear-gradient(180deg,#d7eaff 0,#eef7ff 650px,#eaf3ff 100%)}
.content{padding-top:21px}
.topbar{background:rgba(248,252,255,.88);border-bottom:1px solid #fff9;box-shadow:0 1px 8px #2767ad0a}
.brand-mark{background:linear-gradient(145deg,#44c8ff,#0577e9);box-shadow:0 0 0 1px #8cdbff80,inset 0 1px 2px #fff6,0 3px 10px #0765b72b}
.brand-name{color:#153a64}
.avatar{background:linear-gradient(135deg,#f6fbff,#cbe6ff);color:#2272b5;border:1px solid #fff;box-shadow:0 2px 8px #2e6fac12}
.profile-link-name{color:#5d7d9e}
.app-shell[data-page=overview] .topbar{background:#071b42;border-color:#153963;box-shadow:none}
.app-shell[data-page=overview] .topbar .brand-name,.app-shell[data-page=overview] .topbar .button,.app-shell[data-page=overview] .profile-link-name{color:#edf6ff}
.app-shell[data-page=overview] .topbar .avatar{background:linear-gradient(145deg,#2c79bb,#14437a);color:#e0f3ff;border-color:#6fb6ed77}
.app-shell[data-page=overview] .content{padding-top:0}
.overview-hero{position:relative;overflow:hidden;aspect-ratio:72/25;margin:0 -16px;background:#061c48}
.hero-art{position:absolute;display:block;top:-36%;left:0;width:100%;height:auto;max-width:none}
.membership-vip{position:relative;z-index:1;display:flex;align-items:center;gap:9px;margin:-1px 0 13px;padding:14px 12px;color:#e5efff;border:1px solid #4c9aee;border-radius:13px;background:linear-gradient(115deg,#0b244b,#153b70 70%,#174f9c);box-shadow:inset 0 1px 5px #9ccdff25,0 7px 18px #1a66bd20}
.vip-crown{flex:none;display:grid;place-items:center;width:38px;height:40px;border-radius:9px;color:#ffda8c;background:radial-gradient(ellipse,#ffdc8038,transparent 72%);filter:drop-shadow(0 2px 3px #010d3a)}
.vip-crown .icon{width:30px;height:30px;stroke-width:1.8;fill:#f4c26c38}
.vip-copy{min-width:0;flex:1}
.vip-copy>div{display:flex;align-items:center;gap:7px;white-space:nowrap}
.vip-copy strong{font-size:15px;letter-spacing:.3px;font-weight:650;color:#fff4d8}
.vip-label{font-size:8px;line-height:1.4;color:#755119;background:linear-gradient(120deg,#fff4c6,#eaba66);padding:2px 5px;border-radius:10px;font-weight:650}
.vip-copy p{font-size:9px;color:#c8dcf9;margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.vip-renew{display:flex;align-items:center;justify-content:center;gap:2px;flex:none;min-height:31px;padding:7px 9px;border:1px solid #fff0b1;border-radius:18px;color:#584118;font-weight:650;font-size:11px;background:linear-gradient(180deg,#fff9de,#edc975);box-shadow:0 2px 9px #f3b54b36,inset 0 1px 3px #fff}
.vip-renew .icon{width:12px;height:12px}
.hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 13px}
.hero-stat{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:11px 9px 10px;min-width:0;background:linear-gradient(145deg,#fffdfd,#e4f2ff);border:1px solid #bbdbf5;border-top-color:#fff;border-left-color:#fff;border-radius:13px;box-shadow:0 5px 13px #4b86c81a,inset 0 1px 2px #fff}
.hero-stat-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:linear-gradient(145deg,#55c2ff,#137fec);color:#fff;box-shadow:inset 0 1px 1px #fff9,0 3px 7px #2380da36}
.hero-stat:nth-child(2) .hero-stat-icon{background:linear-gradient(145deg,#9e9bff,#6c79dc)}
.hero-stat:nth-child(3) .hero-stat-icon{background:linear-gradient(145deg,#6ab5ff,#2c82d9)}
.hero-stat:nth-child(4) .hero-stat-icon{background:linear-gradient(145deg,#ffce86,#e9a53e)}
.hero-stat-icon .icon{width:17px;height:17px;stroke-width:2}
.hero-stat-copy{min-width:0;width:100%}
.hero-stat-copy>span{display:block;font-size:10px;color:#355575;white-space:nowrap}
.hero-stat-copy>strong{display:block;font-size:20px;line-height:1.2;font-weight:650;letter-spacing:-.5px;margin-top:5px;color:#08254b;white-space:nowrap}
.control-deck{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 122px minmax(0,1fr);gap:8px;align-items:center;margin:4px -3px 16px;padding:17px 0 20px;isolation:isolate}
.control-deck:after{content:"";position:absolute;left:17%;right:17%;height:29px;bottom:6px;border-radius:50%;z-index:-1;background:radial-gradient(ellipse,#80d5ff66,#339dff33 42%,transparent 72%);border-bottom:1px solid #8bdcff88;box-shadow:0 5px 16px #31aaff30}
.control-column{display:flex;flex-direction:column;gap:11px;min-width:0}
.quick-toggle{display:flex;align-items:center;gap:4px;min-width:0;min-height:33px;padding:7px 6px;color:#153962;border:1px solid #f4fdff;border-radius:18px;background:linear-gradient(110deg,#ffffffcf,#e4f5ffca);box-shadow:inset 0 1px 1px #fff,0 4px 12px #397ec51c;white-space:nowrap}
.quick-toggle>.icon{width:13px;height:13px;color:#1788ec;flex:none}
.quick-toggle-label{font-size:9px;font-weight:550;flex:1;min-width:0}
.quick-switch-state{position:relative;width:23px;height:14px;background:#b7cde1;border-radius:9px;flex:none;transition:background .16s}
.quick-switch-state:after{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #04497b26;transition:transform .16s}
.quick-toggle[aria-checked=true] .quick-switch-state{background:linear-gradient(100deg,#15a6ff,#0874f0)}
.quick-toggle[aria-checked=true] .quick-switch-state:after{transform:translateX(9px)}
.quick-toggle[aria-busy=true]{opacity:.65}
.run-orb{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:122px;height:122px;border:2px solid #95e5ff;border-radius:50%;color:#fff;background:radial-gradient(circle at 36% 19%,#7fc6ff 0,#3378dc 30%,#0a44a7 63%,#0167eb 85%,#8cecff 100%);box-shadow:inset 0 0 0 5px #114b9a8c,inset 0 2px 13px #d4f8ff,0 0 0 5px #1b98ef4f,0 0 0 9px #a3e4fc70,0 7px 20px #007efb70,0 -3px 16px #d6fcff;transition:filter .18s,transform .18s;z-index:1}
.run-orb:hover{filter:brightness(1.08)}
.run-orb:active{transform:scale(.98)}
.run-orb>.icon{width:34px;height:34px;stroke-width:2.8;filter:drop-shadow(0 0 3px #9ee8ff88);margin-bottom:2px}
.run-orb strong{font-size:15px;line-height:1.3;text-shadow:0 1px 2px #123c7e;letter-spacing:.5px}
.run-orb>span{font-size:8px;color:#c1eaff;letter-spacing:.3px}
.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;margin:3px 0 21px;border:0}
.quick-action{padding:14px 5px 12px;gap:7px;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#ffffffef,#e0eeffba);border:1px solid #fff;border-radius:11px;box-shadow:0 5px 13px #4379ba13;color:#1586e8}
.quick-action+.quick-action{border-left:1px solid #fff}
.quick-action>.icon{width:26px;height:26px;stroke-width:1.8;filter:drop-shadow(0 2px 2px #39a5ff40)}
.quick-action>strong{font-size:11px;color:#153961;font-weight:600;white-space:nowrap;margin-top:2px}
.quick-action>span{font-size:8px;color:#7086a0;white-space:nowrap}
.section-header h2{font-size:15px;color:#163c69;position:relative;padding-left:9px}
.section-header h2:before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:2px;background:linear-gradient(#1fa8ff,#0679e9)}
.section-note{color:#7a94ad}
.activity-list,.account-summary-list,.feature-grid,.list,.list.grid-list,.settings-form,.profile-panel,.panel{background:linear-gradient(135deg,#ffffffeb,#f4faffc4);border:1px solid #fff;border-radius:13px;box-shadow:0 6px 20px #426ca911,inset 0 1px 1px #fff;backdrop-filter:blur(6px)}
.feature-card{border-bottom-color:#d6e7f680;min-height:65px;padding:15px;color:#14375e}
.feature-card:hover,.activity-row:hover,.account-summary-row:hover{background:#e7f5ff88}
.feature-icon{width:31px;height:31px;border-radius:9px;background:linear-gradient(145deg,#edf8ff,#d6ebff);color:#1584da;box-shadow:inset 0 1px 1px #fff;border:1px solid #f7fcff}
.feature-icon .icon{width:19px;height:19px}
.feature-copy h3{font-weight:550;color:#173b63}
.feature-copy p{color:#7a91a7}
.feature-card>.icon{color:#95b0c6}
.record-card,.activity-row,.account-summary-row{border-bottom-color:#d4e4f37d}
.record-ident>.avatar,.account-monogram{background:linear-gradient(135deg,#e5f5ff,#cadfff);color:#367cbd;border:1px solid #fff;box-shadow:0 3px 8px #4c81bc12}
.keyword-mark{color:#1688dc}
.activity-line time{color:#7d9bb6}
.activity-text{color:#264669}
.activity-source{color:#87a0b5}
.record-meta .meta-key{color:#7691a9}
.record-meta .meta-value{color:#163b63}
.record-actions{border-top-color:#d5e6f4}
.button{border-color:#c7dff2;border-radius:8px;background:#f9fdff;color:#2b5c86;box-shadow:0 2px 5px #4f81b10a}
.button:hover{background:#e7f4ff}
.button-primary{border-color:#2592f2;color:#fff;background:linear-gradient(145deg,#21a1ff,#0874ea);box-shadow:0 4px 11px #1685ed2b,inset 0 1px 1px #7ed0ff80}
.button-primary:hover{background:linear-gradient(145deg,#2dabff,#0773e6)}
.button-danger{background:#fff8f6;border-color:#efd4cf;color:#b95753;box-shadow:none}
.button-ghost{background:transparent;border-color:transparent;box-shadow:none}
.input{border-color:#d0e2f1;background:#ffffffdc;color:#173b61;border-radius:7px}
.input:focus{border-color:#65b6f3;box-shadow:0 0 0 3px #4eb9ff14}
.field{border-bottom-color:#d8e7f48f}
.field-label{color:#294f72}
.switch-track{background:#bdd2e5}
.switch input:checked+.switch-track{background:linear-gradient(100deg,#1aa8ff,#0875ec)}
.profile-panel{padding:23px 19px;background:linear-gradient(130deg,#fefeff,#e3f2ff)}
.profile-top>.avatar{background:linear-gradient(145deg,#35afff,#246ad3);color:#fff;border:2px solid #fff;box-shadow:0 4px 13px #1878d132}
.membership-details{border-top-color:#cfe4f5}
.membership-detail-row{border-bottom-color:#d2e4f4}
.membership-detail-row strong{color:#284f75}
.membership-date>span:first-child{color:#16497b}
.modal-dialog{border:1px solid #d5ebff;border-radius:17px;background:linear-gradient(150deg,#ffffff,#edf6ff);box-shadow:0 20px 80px #07386a3b}
.modal-dialog::backdrop{background:#0b2d5569;backdrop-filter:blur(4px)}
.modal-header{border-color:#d4e6f6}
.modal-header h2{color:#193c63}
.modal-footer{border-color:#d4e6f6;background:#f3f9ffb8}
.modal-body .settings-form{background:transparent;box-shadow:none;backdrop-filter:none}
.message-preview-content{background:#f7fcff;border-color:#d6e7f6}
.tag{color:#2771ac;background:#e0f0ff;border:1px solid #c9e5fa}
.bottom-nav{left:9px;right:9px;bottom:calc(7px + var(--safe-bottom));padding:5px;min-height:58px;border:1px solid #fff;border-radius:30px;background:linear-gradient(180deg,#f8fcffef,#e2f1ffe8);box-shadow:0 -2px 14px #a8d4fc21,0 5px 18px #255c9f24;backdrop-filter:blur(16px);gap:1px}
.nav-item{min-height:45px;gap:2px;border-radius:24px;font-size:10px;color:#457399;padding:5px 2px}
.nav-item>.icon{width:20px;height:20px}
.nav-item.active{background:linear-gradient(145deg,#37bdff,#087cf2 62%,#0a61d9);color:#fff;box-shadow:inset 0 1px 2px #b1e8ff,0 4px 11px #168af447}
.nav-item.active:before{display:none}
.nav-item.active .icon{stroke-width:2;filter:drop-shadow(0 1px 2px #c8faff70)}
.nav-item:hover{color:#0b78ca;background:#d4ecff66}
.nav-item.active:hover{color:#fff;background:linear-gradient(145deg,#45c7ff,#0c85f7)}
.toast{background:linear-gradient(135deg,#1051a1,#157bd0);box-shadow:0 5px 20px #1b65a332}
@media(max-width:365px){.quick-toggle>.icon{display:none}.control-deck{grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr);gap:7px}.run-orb{width:112px;height:112px}.vip-copy strong{font-size:13px}.vip-label{display:none}.vip-renew{font-size:10px;padding:6px 8px}.hero-stat-copy>strong{font-size:18px}.hero-stat-copy>span{font-size:9px}}
@media(min-width:600px){.overview-hero{margin-left:-26px;margin-right:-26px}.membership-vip{padding:17px 19px;margin-top:0;gap:15px}.vip-crown{width:47px;height:47px}.vip-crown .icon{width:36px;height:36px}.vip-copy strong{font-size:20px}.vip-copy p{font-size:11px}.vip-label{font-size:10px;padding:2px 8px}.vip-renew{font-size:13px;min-height:37px;padding:9px 17px}.hero-stats{gap:12px;margin-top:18px}.hero-stat{flex-direction:row;align-items:center;padding:17px 15px;gap:11px}.hero-stat-icon{width:36px;height:36px;flex:none}.hero-stat-icon .icon{width:23px;height:23px}.hero-stat-copy>span{font-size:11px}.hero-stat-copy>strong{font-size:25px}.control-deck{grid-template-columns:minmax(0,1fr) 156px minmax(0,1fr);gap:24px;max-width:700px;margin:10px auto 23px;padding:25px 0}.run-orb{width:156px;height:156px;gap:7px}.run-orb>.icon{width:46px;height:46px}.run-orb strong{font-size:20px}.run-orb>span{font-size:10px}.quick-toggle{min-height:39px;padding:9px 12px;gap:8px}.quick-toggle-label{font-size:12px}.quick-toggle>.icon{width:17px;height:17px}.quick-switch-state{width:28px;height:16px}.quick-switch-state:after{width:12px;height:12px}.quick-toggle[aria-checked=true] .quick-switch-state:after{transform:translateX(12px)}.quick-action{padding:20px 9px 17px;gap:9px}.quick-action>.icon{width:33px;height:33px}.quick-action>strong{font-size:13px}.quick-action>span{font-size:10px}.quick-actions{gap:13px}.feature-card:nth-child(odd){border-right-color:#d5e8f68f}}
@media(min-width:900px){.sidebar{background:linear-gradient(180deg,#071d43,#0f386a);border-right:1px solid #204d7b;box-shadow:4px 0 17px #254e7915}.sidebar-brand{border-bottom-color:#315b824a}.sidebar-brand .brand-name{color:#e9f6ff}.side-nav .nav-item{color:#a7c4df;border-radius:9px}.side-nav .nav-item.active{color:#fff;background:linear-gradient(115deg,#1475cd,#19579b);box-shadow:inset 0 1px 1px #5aa8e82e,0 4px 9px #03162e33}.side-nav .nav-item:hover{color:#fff;background:#2a5c8a66}.sidebar-footer{color:#8aaccb;border-top-color:#335c7b66}.topbar,.app-shell[data-page=overview] .topbar{background:#f6fbff;border-bottom-color:#dcecf7}.app-shell[data-page=overview] .topbar .button,.app-shell[data-page=overview] .profile-link-name{color:#537a9b}.app-shell[data-page=overview] .topbar .avatar{background:linear-gradient(145deg,#f7fcff,#cfE7ff);border-color:#fff;color:#267abd}.content{padding-top:28px}.overview-hero{margin:0 -32px;height:261.111px;aspect-ratio:auto;background:radial-gradient(ellipse at 50% 70%,#0863be,#061936 75%)}.hero-art{width:752px;max-width:none;left:50%;transform:translateX(-50%);top:-94px}.membership-vip{margin-top:0;border-radius:14px;max-width:none}.hero-stats{margin-top:18px}.hero-stat{padding:19px 20px;border-radius:15px}.hero-stat-icon{width:41px;height:41px}.hero-stat-copy>strong{font-size:29px}.control-deck{max-width:850px;grid-template-columns:minmax(0,1fr) 166px minmax(0,1fr);gap:42px;margin-top:14px;margin-bottom:28px}.run-orb{width:166px;height:166px}.control-column{gap:13px}.quick-toggle{min-height:42px;padding:10px 17px}.quick-toggle-label{font-size:13px}.quick-toggle>.icon{width:20px;height:20px}.quick-switch-state{width:31px;height:18px}.quick-switch-state:after{width:14px;height:14px}.quick-toggle[aria-checked=true] .quick-switch-state:after{transform:translateX(13px)}.quick-actions{max-width:none;margin-top:0;margin-bottom:27px;gap:17px}.quick-action{flex-direction:row;justify-content:flex-start;flex-wrap:wrap;gap:0;padding:19px 22px;position:relative;min-height:82px;align-content:center}.quick-action>.icon{margin-right:15px;width:30px;height:30px;position:absolute;left:22px;top:23px}.quick-action>strong{margin:0 0 4px 45px;display:block;width:calc(100% - 45px);font-size:14px;text-align:left}.quick-action>span{display:block;width:calc(100% - 45px);margin-left:45px;text-align:left;font-size:10px}.feature-grid,.list,.list.grid-list,.settings-form,.profile-panel,.panel,.activity-list,.account-summary-list{border-radius:14px}.feature-card{padding:18px 20px}.feature-icon{width:35px;height:35px}.feature-icon .icon{width:21px;height:21px}.overview-grid{gap:23px}.bottom-nav{display:none}}
@media(min-width:1350px){.overview-hero{margin-left:-43px;margin-right:-43px;height:280.555px}.hero-art{width:808px;top:-101px}.hero-stat{padding:20px 25px}.control-deck{max-width:920px}.quick-action{padding-left:28px}.quick-action>.icon{left:28px}}
html[data-theme=dark]{--bg:#102647;--surface:#193656;--surface-soft:#173455;--text:#d8ebff;--muted:#8eb0d0;--line:#2a5074;--blue:#70c6ff;--blue-bg:#1b4d75}
html[data-theme=dark] body{background:linear-gradient(180deg,#0a1b38,#163252)}
html[data-theme=dark] .topbar{background:#0b2345}
html[data-theme=dark] .activity-list,html[data-theme=dark] .account-summary-list,html[data-theme=dark] .feature-grid,html[data-theme=dark] .list,html[data-theme=dark] .settings-form,html[data-theme=dark] .profile-panel,html[data-theme=dark] .panel{background:linear-gradient(135deg,#193b60ee,#102c4bd9);border-color:#3a6e9c77}
html[data-theme=dark] .feature-copy h3,html[data-theme=dark] .section-header h2,html[data-theme=dark] .field-label,html[data-theme=dark] .record-meta .meta-value,html[data-theme=dark] .activity-text,html[data-theme=dark] .membership-detail-row strong,html[data-theme=dark] .membership-date>span:first-child{color:#d4eaff}
html[data-theme=dark] .hero-stat,html[data-theme=dark] .quick-action{background:linear-gradient(135deg,#244e7c,#173a60);border-color:#5b8cba7d}
html[data-theme=dark] .hero-stat-copy>strong,html[data-theme=dark] .hero-stat-copy>span,html[data-theme=dark] .quick-action>strong{color:#e0f0ff}
html[data-theme=dark] .quick-action>span{color:#a4c6e5}
html[data-theme=dark] .quick-toggle{background:linear-gradient(120deg,#214a73,#173555);border-color:#4f83ac80;color:#d6ecff}
html[data-theme=dark] .bottom-nav{background:linear-gradient(#214873ef,#143354f5);border-color:#5e8cb566}
html[data-theme=dark] .nav-item{color:#9fc4e4}
html[data-theme=dark] .nav-item.active{color:#fff}
html[data-theme=dark] .modal-dialog{background:linear-gradient(135deg,#193e64,#132f4d);border-color:#487aa5}
html[data-theme=dark] .modal-header h2{color:#e2f2ff}
html[data-theme=dark] .modal-footer{background:#153353;border-color:#2f5c84}
html[data-theme=dark] .input,html[data-theme=dark] .message-preview-content{background:#112d49;color:#d9edff;border-color:#38648a}

