:root { color-scheme: dark; font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; background: #0b1220; color: #eaf1fb; }
:root[data-theme="light"] { color-scheme: light; background: #f4f7fb; color: #172235; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: #0b1220; }
button { font: inherit; }

:root[data-theme="light"] body, :root[data-theme="light"] .settings-layout { background: #f4f7fb; }
:root[data-theme="light"] .home-brand, :root[data-theme="light"] .settings-brand { color: #172235; }
:root[data-theme="light"] .home-login, :root[data-theme="light"] .home-primary, :root[data-theme="light"] .primary-button { border-color: #176d9e; }
:root[data-theme="light"] .home-login { background: #ffffff; color: #17405e; }
:root[data-theme="light"] .home-login:hover { border-color: #177eae; color: #102c42; }
:root[data-theme="light"] .home-connection, :root[data-theme="light"] .logout-button, :root[data-theme="light"] .home-link, :root[data-theme="light"] .secondary-button, :root[data-theme="light"] .icon-button, :root[data-theme="light"] .theme-toggle, :root[data-theme="light"] .status-pill { border-color: #c7d5e4; background: #ffffff; color: #38536d; }
:root[data-theme="light"] .home-metric-card, :root[data-theme="light"] .home-storage, :root[data-theme="light"] .admin-login-content, :root[data-theme="light"] .settings-section, :root[data-theme="light"] .server-card, :root[data-theme="light"] .panel, :root[data-theme="light"] .host-details div, :root[data-theme="light"] .server-dialog { border-color: #d1ddea; background: #ffffff; color: #172235; }
:root[data-theme="light"] .server-card:hover { border-color: #4a94c4; background: #f0f7fc; }
:root[data-theme="light"] .home-metric-label, :root[data-theme="light"] .home-metric-detail, :root[data-theme="light"] .home-description, :root[data-theme="light"] .home-footer, :root[data-theme="light"] .page-subtitle, :root[data-theme="light"] .panel-heading p, :root[data-theme="light"] .subtle, :root[data-theme="light"] .muted, :root[data-theme="light"] .current-user, :root[data-theme="light"] .settings-heading p, :root[data-theme="light"] .settings-section-heading p, :root[data-theme="light"] .settings-field small, :root[data-theme="light"] .threshold-group small, :root[data-theme="light"] .toggle-field small, :root[data-theme="light"] .server-card-type, :root[data-theme="light"] .platform, :root[data-theme="light"] .host-details dt, :root[data-theme="light"] .trend-legend, :root[data-theme="light"] .metric-row, :root[data-theme="light"] .health-row, :root[data-theme="light"] .event-row { color: #60748a; }
:root[data-theme="light"] .home-metric-value, :root[data-theme="light"] .home-disk-value, :root[data-theme="light"] .settings-field > span, :root[data-theme="light"] .field-label, :root[data-theme="light"] .toggle-field strong, :root[data-theme="light"] .storage-summary strong, :root[data-theme="light"] .hostname, :root[data-theme="light"] .host-details dd, :root[data-theme="light"] .metric-row strong, :root[data-theme="light"] .event-row strong, :root[data-theme="light"] td { color: #172235; }
:root[data-theme="light"] .home-disk-name, :root[data-theme="light"] .disk-name, :root[data-theme="light"] .disk-value { color: #405973; }
:root[data-theme="light"] .home-disk-track, :root[data-theme="light"] .disk-bar { background: #d8e5f0; }
:root[data-theme="light"] .home-disk-total, :root[data-theme="light"] .home-disk-details dd { color: #172235; }
:root[data-theme="light"] .home-disk-details dt, :root[data-theme="light"] .home-disk-usage { color: #60748a; }
:root[data-theme="light"] .home-disk-progress { background: #d8e5f0; }
:root[data-theme="light"] .settings-topbar { border-color: #d1ddea; background: #ffffff; }
:root[data-theme="light"] .settings-nav { border-color: #d1ddea; background: #f8fafc; }
:root[data-theme="light"] .settings-nav > div > p:last-child { color: #60748a; }
:root[data-theme="light"] .settings-nav nav a { color: #405973; }
:root[data-theme="light"] .settings-nav nav a:hover { border-color: #c1d9eb; background: #eef7fc; color: #172235; }
:root[data-theme="light"] .settings-field input, :root[data-theme="light"] .settings-field select, :root[data-theme="light"] .input-with-suffix, :root[data-theme="light"] .storage-summary select, :root[data-theme="light"] .toggle-field, :root[data-theme="light"] .settings-readonly-value, :root[data-theme="light"] .server-form-grid input { border-color: #c7d5e4; background: #f8fafc; color: #172235; }
:root[data-theme="light"] .network-range-controls select, :root[data-theme="light"] .network-custom-range input { border-color: #c7d5e4; background: #f8fafc; color: #172235; }
:root[data-theme="light"] .input-with-suffix span { border-color: #c7d5e4; color: #60748a; }
:root[data-theme="light"] .host-details { border-color: #d1ddea; background: #d1ddea; }
:root[data-theme="light"] .trend-grid line { stroke: #d7e1eb; }
:root[data-theme="light"] .trend-axis { fill: #60748a; }
:root[data-theme="light"] .trend-point { stroke: #ffffff; }
:root[data-theme="light"] .metric-row, :root[data-theme="light"] .health-row, :root[data-theme="light"] .event-row, :root[data-theme="light"] th, :root[data-theme="light"] td { border-color: #e0e8f0; }
:root[data-theme="light"] th { color: #60748a; }
:root[data-theme="light"] .server-dialog::backdrop { background: rgba(35, 53, 71, .3); }
:root[data-theme="light"] .settings-section-icon { border-color: #b9d8ec; background: #eaf7ff; color: #147bb4; }
:root[data-theme="light"] .settings-section-icon.warning { border-color: #efd7ab; background: #fff7e5; color: #af6916; }
:root[data-theme="light"] .settings-section-icon.secure { border-color: #b6dfd2; background: #edf9f5; color: #168466; }
:root[data-theme="light"] .settings-section-icon.storage { border-color: #c9d5ef; background: #eef3ff; color: #496ecc; }

.home-page { min-height: 100vh; }
.home-shell { display: flex; flex-direction: column; width: min(1120px, calc(100% - 56px)); min-height: 100vh; margin: 0 auto; padding: 28px 0 38px; }
.home-header, .home-actions, .topbar, .topbar-actions, .server-card, .server-card-main, .detail-header, .panel-heading, .metric-row, .health-row, .event-row, footer { display: flex; align-items: center; }
.home-header, .topbar, .detail-header, .panel-heading, .server-card, .metric-row, .health-row, .event-row { justify-content: space-between; }
.home-brand { display: inline-flex; align-items: center; gap: 10px; color: #eaf1fb; font-size: 14px; font-weight: 650; }
.organization-logo { display: block; width: 28px; height: 28px; flex: 0 0 auto; object-fit: contain; }
.home-login, .home-primary { border: 1px solid #3978a8; color: #ddecfa; text-decoration: none; }
.home-login { padding: 7px 10px; background: #101c2d; font-size: 13px; }.home-login:hover { border-color: #83d0ff; color: #fff; }
.home-status-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 72px 0 24px; }.home-status-heading h1 { margin-bottom: 12px; font-size: 38px; }.home-description { margin-bottom: 0; color: #9aacc2; font-size: 15px; }.home-connection { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; border: 1px solid #2a4059; border-radius: 3px; padding: 7px 10px; background: #101c2d; color: #c5d3e5; font-size: 13px; }.home-connection.offline .status-dot { background: #fb7185; box-shadow: 0 0 0 3px rgba(251, 113, 133, .12); }
.home-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }.home-metric-card, .home-storage { border: 1px solid #263b55; border-radius: 4px; background: #111d2f; }.home-metric-card { min-height: 148px; padding: 20px; }.home-metric-label { margin-bottom: 27px; color: #8498ad; font-size: 12px; }.home-metric-value { display: block; overflow: hidden; margin-bottom: 8px; color: #eaf4ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.home-uptime-value { font-size: 20px; }.home-metric-detail { overflow: hidden; margin-bottom: 0; color: #8498ad; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.home-storage { margin-top: 14px; padding: 22px; }.home-storage-heading { margin-bottom: 20px; }.home-storage h2 { font-size: 17px; }.home-disk-list { display: grid; gap: 14px; }.home-disk-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; }.home-disk-name, .home-disk-value { color: #b6c4d8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }.home-disk-value { color: #dce6f4; white-space: nowrap; }.home-disk-track { grid-column: 2 / 4; height: 5px; overflow: hidden; background: #273c56; }.home-disk-track span { display: block; height: 100%; background: #55b7ff; }.home-footer { margin-top: auto; padding-top: 26px; color: #71849e; font-size: 12px; }

.admin-login-page { min-height: 100vh; }
.admin-login-shell { display: grid; width: min(680px, calc(100% - 56px)); min-height: 100vh; margin: 0 auto; place-items: center; }
.admin-login-content { position: relative; width: 100%; border: 1px solid #263b55; border-radius: 4px; padding: 38px; background: #111d2f; }
.admin-login-logo { display: block; width: 46px; height: 46px; margin-bottom: 22px; object-fit: contain; }
.admin-login-content h1 { margin-bottom: 14px; font-size: 28px; }
.admin-login-content > p:not(.eyebrow) { margin-bottom: 0; color: #9aacc2; font-size: 15px; line-height: 1.7; }
.admin-login-action { display: inline-flex; margin-top: 28px; border: 1px solid #3978a8; border-radius: 3px; padding: 10px 13px; background: #1b6093; color: #f0f8ff; font-size: 14px; font-weight: 650; text-decoration: none; }
.admin-login-action:hover { background: #2475ae; }

.shell { width: min(1360px, calc(100% - 56px)); margin: 0 auto; padding: 42px 0 34px; }
.topbar { gap: 20px; margin-bottom: 30px; }.topbar-title { display: flex; min-width: 0; align-items: flex-start; gap: 12px; }.topbar-brand { display: block; flex: 0 0 auto; }.topbar-brand .organization-logo { width: 34px; height: 34px; }.topbar-actions { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }.logout-form { display: flex; margin: 0; }
.eyebrow { margin: 0 0 9px; color: #6eaee4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 5px; font-size: 32px; font-weight: 680; letter-spacing: 0; } h2 { margin-bottom: 0; font-size: 18px; font-weight: 650; letter-spacing: 0; }
.page-subtitle, .panel-heading p, .subtle, .muted { margin-bottom: 0; color: #8498ad; font-size: 13px; }
.current-user { display: inline-flex; align-items: center; gap: 7px; max-width: 170px; overflow: hidden; color: #9aacc2; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.logout-button, .home-link, .primary-button, .secondary-button, .icon-button, .theme-toggle { height: 32px; border: 1px solid #2a4059; border-radius: 3px; padding: 0 10px; background: #101c2d; color: #c5d3e5; cursor: pointer; font-size: 13px; line-height: 1; }.logout-button, .home-link, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }.home-link svg, .primary-button svg { width: 14px; }.logout-button:hover, .home-link:hover, .secondary-button:hover, .icon-button:hover, .theme-toggle:hover { border-color: #559bda; color: #fff; }.primary-button { border-color: #3978a8; background: #1b6093; color: #f0f8ff; font-weight: 650; }.primary-button:hover { background: #2475ae; }.primary-button:disabled { cursor: wait; opacity: .65; }
.theme-toggle { display: inline-grid; width: 32px; flex: 0 0 auto; place-items: center; padding: 0; }.theme-toggle svg { width: 15px; height: 15px; }.theme-icon-light, .theme-icon-dark { display: none; }:root[data-theme="dark"] .theme-icon-light, :root:not([data-theme]) .theme-icon-light { display: block; }:root[data-theme="light"] .theme-icon-dark { display: block; }.admin-login-theme { position: absolute; top: 18px; right: 18px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #2a4059; border-radius: 3px; padding: 7px 10px; background: #101c2d; color: #c5d3e5; font-size: 13px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #43d1a1; border-radius: 50%; box-shadow: 0 0 0 3px rgba(67, 209, 161, .12); }
.status-dot.offline { background: #fb7185; box-shadow: 0 0 0 3px rgba(251, 113, 133, .12); }
.hidden { display: none !important; }

.settings-layout { display: grid; min-height: 100vh; grid-template-columns: 272px minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); background: #0b1220; }.settings-topbar { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #20354c; padding: 0 32px; background: #0d1727; }.settings-brand { display: inline-flex; align-items: center; gap: 10px; color: #eaf1fb; font-size: 14px; font-weight: 650; text-decoration: none; }.settings-brand-mark { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #3978a8; border-radius: 4px; background: #12304a; color: #83d0ff; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }.settings-nav { display: flex; flex-direction: column; gap: 32px; border-right: 1px solid #20354c; padding: 34px 22px; background: #0d1727; }.settings-nav h1 { margin-bottom: 9px; font-size: 22px; }.settings-nav > div > p:last-child { margin-bottom: 0; color: #8295ab; font-size: 13px; line-height: 1.65; }.settings-nav nav { display: grid; gap: 4px; }.settings-nav nav a { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 4px; padding: 9px 10px; color: #aebfd3; font-size: 13px; text-decoration: none; }.settings-nav nav a:hover { border-color: #294760; background: #111f31; color: #eaf1fb; }.settings-nav nav svg { width: 16px; color: #65b9ef; }.settings-content { width: min(1040px, calc(100% - 64px)); margin: 0 auto; padding: 42px 0 64px; }.settings-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }.settings-heading h2 { margin-bottom: 7px; font-size: 27px; }.settings-heading p { margin-bottom: 0; color: #8fa2b8; font-size: 14px; }.settings-content form { display: grid; gap: 16px; }.settings-section { scroll-margin-top: 18px; border: 1px solid #263b55; border-radius: 5px; padding: 24px; background: #111d2f; }.settings-section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }.settings-section-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #285273; border-radius: 4px; background: #12304a; color: #64c2ff; }.settings-section-icon svg { width: 17px; }.settings-section-icon.warning { border-color: #6b5230; background: #322a19; color: #f6bd61; }.settings-section-icon.secure { border-color: #285b50; background: #12362f; color: #55d0a4; }.settings-section-icon.storage { border-color: #3d4d70; background: #182845; color: #91b9ff; }.settings-section-heading h3 { margin-bottom: 5px; font-size: 16px; }.settings-section-heading p { margin-bottom: 0; color: #8b9eb5; font-size: 13px; line-height: 1.55; }.settings-fields { display: grid; gap: 16px; }.settings-fields.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }.settings-fields.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }.settings-field, .threshold-group { display: grid; gap: 8px; min-width: 0; color: #c3d0df; font-size: 13px; }.settings-field > span, .field-label { color: #c3d0df; font-weight: 600; }.settings-field small, .threshold-group small, .toggle-field small { color: #8195ad; font-size: 12px; line-height: 1.45; }.settings-field input, .settings-field select, .input-with-suffix input { width: 100%; min-width: 0; height: 36px; border: 1px solid #2a4059; border-radius: 3px; padding: 0 10px; background: #0d1828; color: #eaf1fb; font: 13px Inter, "Microsoft YaHei", sans-serif; outline: none; }.settings-field input:focus, .settings-field select:focus, .input-with-suffix:focus-within { border-color: #62b9f5; box-shadow: 0 0 0 2px rgba(98, 185, 245, .13); }.input-with-suffix { display: flex; overflow: hidden; border: 1px solid #2a4059; border-radius: 3px; background: #0d1828; }.input-with-suffix input { border: 0; box-shadow: none !important; }.input-with-suffix span { display: grid; min-width: 35px; place-items: center; border-left: 1px solid #2a4059; color: #8498ad; font-size: 12px; }.alert-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); align-items: start; }.threshold-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.threshold-inputs label { display: grid; gap: 7px; color: #aebfd3; font-size: 12px; }.webhook-field { display: grid; gap: 12px; }.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }.remote-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); align-items: start; }.toggle-field { display: flex; align-items: flex-start; gap: 10px; min-height: 72px; border: 1px solid #2a4059; border-radius: 4px; padding: 12px; background: #0d1828; cursor: pointer; }.toggle-field input { position: absolute; opacity: 0; }.toggle-ui { position: relative; display: block; width: 32px; height: 18px; flex: 0 0 auto; margin-top: 2px; border: 1px solid #39526f; border-radius: 10px; background: #1a2a3d; }.toggle-ui::after { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #9aacc2; content: ""; transition: transform .15s ease, background .15s ease; }.toggle-field input:checked + .toggle-ui { border-color: #3684b8; background: #1a5478; }.toggle-field input:checked + .toggle-ui::after { transform: translateX(14px); background: #f0f8ff; }.toggle-field strong { display: block; margin-bottom: 5px; color: #dce8f7; font-size: 13px; }.storage-summary { display: grid; grid-template-columns: 1fr 1fr minmax(180px, 1.25fr) auto; align-items: end; gap: 14px; }.storage-summary > div { display: grid; gap: 6px; min-height: 50px; border-left: 2px solid #285273; padding-left: 10px; }.storage-summary span { color: #8295ac; font-size: 12px; }.storage-summary strong { color: #eaf4ff; font: 15px ui-monospace, SFMono-Regular, Menlo, monospace; }.storage-summary select { height: 32px; border: 1px solid #2a4059; border-radius: 3px; padding: 0 8px; background: #0d1828; color: #eaf1fb; font: 13px Inter, "Microsoft YaHei", sans-serif; }.maintenance-section code { color: #9fcff1; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }.settings-page-status { min-height: 22px; margin: 18px 0 0; color: #8fa2b8; font-size: 13px; }.settings-page-status.success { color: #68d9a8; }.settings-page-status.error { color: #fb8191; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }.section-heading h2 { font-size: 22px; }
.server-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.server-card { min-height: 102px; gap: 14px; border: 1px solid #263b55; border-radius: 4px; padding: 18px; background: #111d2f; color: inherit; text-decoration: none; }.server-card:hover { border-color: #559bda; background: #142238; }.server-card-main { min-width: 0; align-items: flex-start; flex-direction: column; gap: 7px; }.server-card-name { overflow: hidden; max-width: 100%; margin-bottom: 0; font-size: 16px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.server-card-type { margin-bottom: 0; color: #8498ad; font-size: 12px; }
.server-dialog { width: min(560px, calc(100% - 28px)); border: 1px solid #3978a8; border-radius: 4px; padding: 0; background: #111d2f; color: #eaf1fb; box-shadow: 0 20px 60px rgba(0, 0, 0, .48); }.server-dialog::backdrop { background: rgba(4, 10, 18, .72); }.server-dialog form { padding: 22px; }.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 21px; }.dialog-heading .eyebrow { margin-bottom: 7px; }.dialog-heading h2 { font-size: 18px; }.icon-button { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; padding: 0; }.icon-button svg { width: 16px; }.server-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.server-form-grid label { display: grid; gap: 7px; color: #aebfd3; font-size: 12px; }.server-form-grid input { width: 100%; min-width: 0; border: 1px solid #2a4059; border-radius: 3px; padding: 9px 10px; background: #0d1828; color: #eaf1fb; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; outline: none; }.server-form-grid input:focus { border-color: #62b9f5; box-shadow: 0 0 0 2px rgba(98, 185, 245, .14); }.wide-field { grid-column: 1 / -1; }.form-message { min-height: 18px; margin: 16px 0 0; color: #9aacc2; font-size: 12px; }.form-message.error { color: #fb8191; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; color: #9fcff1; font-size: 13px; text-decoration: none; }.back-link:hover { color: #eaf6ff; }.back-link svg { width: 15px; }
.detail-header { gap: 16px; margin-bottom: 20px; }.server-identity { display: flex; min-width: 0; align-items: center; gap: 14px; }.server-mark { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid #285273; border-radius: 4px; background: #12304a; color: #64c2ff; }.server-mark svg { width: 21px; }.hostname { overflow: hidden; margin-bottom: 4px; font-size: 20px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.platform { margin-bottom: 0; color: #8498ad; font-size: 13px; }
.host-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 16px; border: 1px solid #263b55; border-radius: 4px; overflow: hidden; background: #263b55; }.host-details div { min-width: 0; padding: 15px; background: #111d2f; } dl, dt, dd { margin: 0; }.host-details dt { margin-bottom: 7px; color: #8397b0; font-size: 12px; }.host-details dd { overflow: hidden; color: #dce8f7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }.panel { grid-column: span 4; min-width: 0; min-height: 176px; border: 1px solid #263b55; border-radius: 4px; padding: 18px; background: #111d2f; }.panel-wide { grid-column: span 8; }.panel-heading { gap: 14px; margin-bottom: 18px; }.panel-heading h2 { margin-bottom: 6px; font-size: 15px; }.panel-heading p { font-size: 12px; }
.trend-legend { display: flex; gap: 16px; color: #9aacc2; font-size: 12px; }.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }.legend-dot.cpu { background: #55b7ff; }.legend-dot.memory { background: #46d19f; }.trend-chart { height: 160px; margin-top: 14px; }.trend-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }.trend-grid line { stroke: #263b55; stroke-width: 1; stroke-dasharray: 3 4; }.trend-axis { fill: #71849e; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }.trend-area.cpu { fill: url(#cpu-area); }.trend-area.memory { fill: url(#memory-area); }.trend-line { fill: none; stroke-width: 2.25; vector-effect: non-scaling-stroke; }.trend-line.cpu { stroke: #55b7ff; }.trend-line.memory { stroke: #46d19f; }.trend-point { stroke: #111d2f; stroke-width: 2; }.trend-point.cpu { fill: #55b7ff; }.trend-point.memory { fill: #46d19f; }
.metric-row, .health-row, .event-row { gap: 10px; min-height: 28px; border-bottom: 1px solid #21354d; color: #9aacc2; font-size: 13px; }.metric-row:last-child, .health-row:last-child, .event-row:last-child { border-bottom: 0; }.metric-row strong, .event-row strong { color: #e4eef9; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }.danger-text { color: #fb8191 !important; }.health-state { font-size: 12px; }.health-state.ok { color: #68d9a8; }.health-state.warn { color: #fbc26b; }
.network-panel { display: flex; flex-direction: column; }.network-range-controls { display: grid; gap: 8px; margin: -5px 0 12px; }.network-range-controls select, .network-custom-range input { height: 30px; border: 1px solid #2a4059; border-radius: 3px; padding: 0 8px; background: #0d1828; color: #eaf1fb; font: 12px Inter, "Microsoft YaHei", sans-serif; }.network-custom-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 7px; }.network-custom-range label { display: grid; gap: 5px; min-width: 0; color: #8498ad; font-size: 11px; }.network-custom-range input { width: 100%; min-width: 0; }.network-custom-range .secondary-button { height: 30px; padding: 0 9px; }.network-summary { display: grid; gap: 0; }.network-usage-note { min-height: 18px; margin: 10px 0 0; color: #8498ad; font-size: 12px; line-height: 1.5; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; } th { padding: 0 8px 9px; border-bottom: 1px solid #2a4059; color: #8397b0; font-size: 11px; font-weight: 600; } td { padding: 10px 8px; border-bottom: 1px solid #21354d; color: #d4e1ef; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } tr:last-child td { border-bottom: 0; }.disk-list { display: grid; gap: 11px; margin-top: 16px; }.disk-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; }.disk-name, .disk-value { color: #b6c4d8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }.disk-value { color: #dce6f4; white-space: nowrap; }.disk-bar { grid-column: 1 / -1; height: 5px; overflow: hidden; background: #273c56; }.disk-bar span { display: block; height: 100%; background: #55b7ff; }
footer { justify-content: center; gap: 10px; margin-top: 25px; color: #71849e; font-size: 12px; }.footer-separator { width: 3px; height: 3px; background: #60728b; border-radius: 50%; }

@media (max-width: 900px) { .panel, .panel-wide { grid-column: span 6; }.trend-panel { grid-column: 1 / -1; } }
@media (max-width: 780px) { .home-shell, .shell { width: min(100% - 28px, 680px); }.home-shell { padding-top: 18px; }.home-status-heading { align-items: flex-start; flex-direction: column; margin: 48px 0 20px; }.home-status-heading h1 { font-size: 31px; }.home-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.admin-login-shell { width: min(100% - 28px, 680px); }.admin-login-content { padding: 26px; }.shell { padding-top: 28px; }.topbar { align-items: flex-start; flex-direction: column; }.topbar-actions { justify-content: flex-start; }.host-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }.panel, .panel-wide { grid-column: 1 / -1; }.detail-header { align-items: flex-start; flex-direction: column; }.current-user { max-width: 120px; } }
@media (max-width: 520px) { .server-form-grid { grid-template-columns: 1fr; }.wide-field { grid-column: auto; }.dialog-actions { align-items: stretch; flex-direction: column-reverse; }.dialog-actions button { justify-content: center; } }
@media (max-width: 440px) { .topbar-actions { gap: 8px; }.server-card { padding: 15px; }.host-details div, .panel { padding: 14px; }.trend-chart { gap: 2px; }.disk-row { grid-template-columns: 34px 1fr; }.disk-value { grid-column: 2; }.disk-bar { grid-column: 1 / -1; } }

.settings-layout { display: block; min-height: 100vh; }
.settings-content { width: min(1040px, calc(100% - 56px)); margin: 0 auto; }
.settings-topbar { display: block; padding: 0; }
.settings-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1040px, calc(100% - 56px)); height: 64px; margin: 0 auto; }

@media (max-width: 780px) {
  .settings-topbar-inner { width: min(100% - 28px, 680px); }
  .settings-content { width: min(100% - 28px, 680px); }
  .settings-heading { align-items: flex-start; flex-direction: column; }
  .settings-fields.three-columns, .settings-fields.two-columns, .alert-grid, .remote-grid { grid-template-columns: 1fr; }
  .storage-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storage-summary > .secondary-button { grid-column: 1 / -1; justify-self: start; }
  .network-custom-range { grid-template-columns: 1fr; }.network-custom-range .secondary-button { justify-self: start; }
}

.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.secondary-button svg, .icon-button svg { width: 14px; height: 14px; flex: 0 0 auto; }
.secondary-button:disabled { cursor: wait; opacity: .65; }
.settings-readonly-value { display: flex; align-items: center; height: 36px; border: 1px solid #263b55; border-radius: 3px; padding: 0 10px; background: #0d1828; color: #eaf4ff; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Keep every settings section header on the same visual baseline. */
.settings-section-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 13px; }
.settings-section-heading h3 { margin: 0 0 5px; line-height: 1.35; }
.settings-section-heading p { margin: 0; line-height: 1.55; }
.settings-section-icon { align-self: start; }

.settings-brand .organization-logo { width: 27px; height: 27px; }

/* Homepage presents a single durable-storage total instead of mount-by-mount detail. */
.home-disk-list { display: none; }
.home-disk-summary { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; column-gap: 32px; row-gap: 16px; }
.home-disk-label { margin-bottom: 8px; color: #8498ad; font-size: 12px; }
.home-disk-total { display: block; color: #eaf4ff; font: 28px ui-monospace, SFMono-Regular, Menlo, monospace; }
.home-disk-details { display: flex; gap: 28px; }
.home-disk-details div { display: grid; gap: 6px; }
.home-disk-details dt { color: #8498ad; font-size: 12px; }
.home-disk-details dd { color: #dce6f4; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.home-disk-progress { grid-column: 1 / -1; height: 7px; overflow: hidden; background: #273c56; }
.home-disk-progress span { display: block; height: 100%; background: #55b7ff; transition: width .2s ease; }
.home-disk-usage { grid-column: 1 / -1; margin: -7px 0 0; color: #9aacc2; font-size: 12px; }

@media (max-width: 780px) {
  .home-disk-summary { grid-template-columns: 1fr; }
  .home-disk-details, .home-disk-progress, .home-disk-usage { grid-column: 1; }
  .topbar-title { align-items: flex-start; }
}
