:root {
  color-scheme: light;
  font: 15px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17243a;
  background: #f4f7fb;
  --ink: #17243a;
  --muted: #66758d;
  --border: #e1e8f1;
  --blue: #2866e8;
  --shadow: 0 18px 45px rgba(21, 42, 76, .06);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, p { margin-top: 0; }

.site-header {
  background: #101a2b;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header-inner {
  max-width: 1480px;
  min-height: 76px;
  padding: 0 32px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-icon, .login-symbol {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: linear-gradient(145deg, #76a7ff, #3771e9);
  box-shadow: 0 7px 18px rgba(35, 99, 222, .28);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}
.brand-label { display: grid; line-height: 1.15; }
.brand-label strong { font-size: 15px; letter-spacing: .015em; }
.brand-label small { color: #9cabca; font-size: 11px; margin-top: 3px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border: 1px solid #465672; border-radius: 11px; background: #21314b; color: #f5f8ff; font-size: 12px; font-weight: 750; }
.menu-toggle:hover, .menu-toggle:focus-visible { background: #304666; border-color: #7791bd; }
.menu-bars { display: grid; gap: 4px; width: 17px; }
.menu-bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.nav-drawer { position: fixed; inset: 0 0 0 auto; width: min(100%, 390px); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; overflow-y: auto; border: 0; border-radius: 20px 0 0 20px; color: var(--ink); background: #fff; box-shadow: -24px 0 75px rgba(8, 21, 41, .24); }
.nav-drawer::backdrop { background: rgba(8, 20, 39, .58); backdrop-filter: blur(3px); }
.drawer-content { display: flex; flex-direction: column; min-height: 100%; padding: 30px 25px 24px; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.drawer-head h2 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.drawer-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: #eef2f8; color: #52647d; font-size: 25px; line-height: 1; }
.drawer-close:hover { background: #e1e9f4; }
.drawer-profile { display: flex; align-items: center; gap: 12px; margin: 26px 0 30px; padding: 16px; border: 1px solid #dce7f7; border-radius: 15px; background: linear-gradient(135deg, #f1f6ff, #f8fbff); }
.drawer-avatar { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 12px; background: #2866e8; color: #fff; font-weight: 800; text-transform: uppercase; }
.drawer-profile strong, .drawer-profile small { display: block; }
.drawer-profile strong { font-size: 13px; }
.drawer-profile small { margin-top: 2px; color: #7789a4; font-size: 11px; }
.drawer-section-label { margin: 0 0 9px 11px; color: #8998ae; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.drawer-links { display: grid; gap: 5px; }
.drawer-link { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid transparent; border-radius: 13px; color: #2c3d58; text-decoration: none; }
.drawer-link:hover { background: #f2f6fc; }
.drawer-link.is-active { background: #edf4ff; border-color: #d9e6ff; color: #205ac8; }
.drawer-link-icon { display: grid; place-items: center; width: 41px; height: 41px; flex: 0 0 41px; border-radius: 11px; background: #edf2f8; color: #667b9b; }
.drawer-link.is-active .drawer-link-icon { background: #dce9ff; color: #2866e8; }
.drawer-link-icon svg { width: 21px; height: 21px; }
.drawer-link strong, .drawer-link small { display: block; }
.drawer-link strong { font-size: 13px; }
.drawer-link small { margin-top: 2px; color: #8290a4; font-size: 11px; }
.drawer-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid #e7edf5; }
.drawer-footer form { margin: 0 0 15px; }
.drawer-signout { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 15px; border: 1px solid #e0e7f0; border-radius: 11px; background: #f7f9fc; color: #435571; font-size: 12px; font-weight: 750; }
.drawer-signout:hover { background: #edf2f8; }
.drawer-footer > small { color: #9aa7b8; font-size: 10px; }
.admin-badge { display: inline-flex; align-items: center; gap: 8px; color: #c2cee2; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #43d8a2; box-shadow: 0 0 0 4px rgba(67, 216, 162, .11); }

.app-shell { max-width: 1480px; margin: 0 auto; padding: 38px 32px 72px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: #4774bf; font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -.04em; }
.page-intro, .muted { color: var(--muted); }
.page-intro { margin-bottom: 0; font-size: 14px; }
.port-card { display: grid; gap: 2px; min-width: 225px; padding: 15px 18px; border-radius: 14px; background: #e9f0ff; border: 1px solid #d7e4ff; }
.port-card-label { color: #4b6fae; font-size: 10px; letter-spacing: .15em; font-weight: 800; }
.port-card strong { color: #1a50ba; font-size: 27px; line-height: 1.1; letter-spacing: -.04em; }
.port-card small { color: #5d75a1; font-size: 11px; }

.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.metric-card, .panel, .login-card { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.metric-card { min-width: 0; border-radius: 18px; padding: 22px 24px 19px; }
.metric-top { display: flex; align-items: center; gap: 11px; }
.metric-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 800; font-size: 10px; letter-spacing: .06em; }
.metric-cpu { --metric: #497cf0; --metric-bg: #eaf0ff; }
.metric-memory { --metric: #15ad8b; --metric-bg: #e7f8f2; }
.metric-disk { --metric: #a56be8; --metric-bg: #f3ebff; }
.metric-icon { color: var(--metric); background: var(--metric-bg); }
.metric-label { font-size: 13px; font-weight: 700; color: #465670; }
.metric-number { margin: 18px 0 14px; font-size: clamp(27px, 2.5vw, 36px); line-height: 1; font-weight: 750; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-track { height: 7px; width: 100%; border-radius: 99px; background: #edf1f7; overflow: hidden; }
.metric-track span { display: block; height: 100%; border-radius: inherit; background: var(--metric); transition: width .4s ease; }
.metric-detail { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { border-radius: 18px; padding: 24px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.panel-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.panel-count { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #ecf2ff; color: #356de5; font-size: 22px; font-weight: 300; }
.panel-description { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.account-totals { display: flex; gap: 7px; flex-wrap: wrap; }
.account-totals span { border: 1px solid #e5ebf3; border-radius: 99px; padding: 5px 9px; color: #62718a; font-size: 11px; font-weight: 650; white-space: nowrap; }
.account-totals .active-total { border-color: #d6f1e7; color: #178c68; background: #f0fbf7; }
.account-totals .online-total { border-color: #d6e5ff; color: #3569c8; background: #f0f5ff; }
.account-heading-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.create-trigger { display: inline-flex; align-items: center; gap: 9px; }
.create-trigger span:first-child { font-size: 21px; font-weight: 400; line-height: .6; }
.button-edit { background: #edf3ff; color: #3266c7; }
.button-edit:hover { background: #dce9ff; }
.account-dialog { width: min(100% - 32px, 480px); max-height: min(88vh, 800px); overflow-y: auto; border: 1px solid var(--border); border-radius: 18px; padding: 26px; color: var(--ink); background: #fff; box-shadow: 0 28px 80px rgba(12, 27, 50, .25); }
.account-dialog::backdrop { background: rgba(13, 29, 51, .56); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.dialog-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.dialog-close { width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 9px; background: #f0f4f9; color: #53657e; font-size: 24px; line-height: 1; }
.dialog-close:hover { background: #e4ebf4; }
.account-dialog .panel-description { margin-bottom: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

.account-form p, .login-form p { margin: 0 0 17px; }
label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 750; color: #33425a; }
input { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid #d6dfeb; border-radius: 9px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: #5f8cf1; box-shadow: 0 0 0 3px rgba(50, 106, 229, .13); }
.helptext { display: block; margin-top: 5px; color: #8390a4; font-size: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 750; padding: 10px 15px; white-space: nowrap; text-decoration: none; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 7px 16px rgba(37, 99, 226, .16); }
.button-primary:hover { background: #1656d5; }
.button-wide { width: 100%; min-height: 43px; }
.button-small { padding: 7px 10px; }
.button-secondary { background: #f0f4f9; border-color: #e4eaf2; color: #43536d; }
.button-secondary:hover { background: #e7edf5; }
.button-danger { background: #fff0f1; color: #ae3444; }
.button-danger:hover { background: #ffe1e5; }

.table-scroll { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: collapse; }
th { color: #8390a3; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
th, td { padding: 15px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid #edf1f6; }
tbody tr:last-child td { border-bottom: 0; }
td { color: #506078; font-size: 12px; }
.account-name { display: block; color: #25354f; font-size: 13px; font-weight: 750; }
.account-name-button { border: 0; padding: 0; background: transparent; text-align: left; }
.account-name-button:not(:disabled) { color: #2866e8; text-decoration: underline; text-underline-offset: 3px; }
.account-name-button:disabled { cursor: default; }
.online-trigger { border: 0; }
.online-trigger:hover { background: #d8f3e7; }
.sessions-list { list-style: none; margin: 0; padding: 0; }
.sessions-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #edf1f6; }
.sessions-list span { color: var(--muted); font-size: 12px; }
.sessions-list code { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; text-align: right; }
.usage-total { display: block; color: #25354f; font-size: 12px; white-space: nowrap; }
.password-cell { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.password-cell [data-password-value] { max-width: 175px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.settings-page { max-width: 1240px; margin: 0 auto; }
.settings-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; overflow: hidden; padding: 34px 38px; margin-bottom: 26px; border-radius: 22px; background: linear-gradient(120deg, #12213a 0%, #1a3156 68%, #234c84 100%); color: #fff; }
.settings-hero::after { content: ""; position: absolute; width: 270px; height: 270px; right: 90px; top: -185px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 112px rgba(255,255,255,.02); pointer-events: none; }
.settings-hero > * { position: relative; z-index: 1; }
.settings-hero .eyebrow { color: #8fb8ff; }
.settings-hero h1 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 43px); line-height: 1.1; letter-spacing: -.045em; }
.settings-hero p:last-child { margin: 0; color: #bdcbe0; font-size: 13px; }
.settings-hero .button { flex: 0 0 auto; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.11); color: #fff; }
.settings-hero .button:hover { background: rgba(255,255,255,.2); }
.settings-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: start; gap: 24px; }
.settings-sidebar { position: sticky; top: 22px; padding: 20px 12px 15px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.settings-sidebar-title { margin: 0 0 11px 13px; color: #93a0b3; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.settings-nav { display: grid; gap: 4px; }
.settings-nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 9px 12px; border-radius: 10px; color: #52627a; font-size: 12px; font-weight: 700; text-decoration: none; }
.settings-nav a:hover, .settings-nav a:focus-visible { background: #edf3ff; color: #225ecc; }
.settings-nav-number { color: #9aa9bf; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.settings-sidebar-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 12px 0; padding-top: 17px; border-top: 1px solid #e9eef5; color: #8593a7; font-size: 11px; line-height: 1.45; }
.settings-sidebar-note .status-dot { margin-top: 5px; flex: 0 0 7px; }
.settings-content { display: grid; gap: 20px; min-width: 0; }
.settings-section { padding: 29px 31px 30px; scroll-margin-top: 20px; }
.settings-section-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 23px; }
.settings-section-head .eyebrow { margin-bottom: 4px; }
.settings-section-head h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.035em; }
.settings-section-head p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.settings-section-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; font-size: 12px; font-weight: 800; }
.settings-icon-blue { color: #2d65d2; background: #eaf1ff; }
.settings-icon-purple { color: #7956c2; background: #f1ebfc; }
.settings-icon-green { color: #169776; background: #e8f8f2; }
.settings-current-port { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; margin-bottom: 25px; border: 1px solid #dce8fb; border-radius: 14px; background: #f4f8ff; }
.settings-current-port > div { display: flex; align-items: baseline; gap: 17px; }
.settings-detail-label { color: #6c82a6; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.settings-current-port strong { color: #1f55bd; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.settings-current-web > div { min-width: 0; flex-wrap: wrap; }
.settings-current-web strong { font-size: 16px; overflow-wrap: anywhere; letter-spacing: 0; }
.web-address-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(135px, 1fr); gap: 16px 18px; }
.web-address-form .settings-field-note { grid-column: 1 / -1; }
.web-address-form > .button { justify-self: start; grid-column: 1 / -1; }
.web-change-panel { max-width: 650px; margin: 45px auto; }
.web-change-panel h1 { margin: 0 0 12px; font-size: 28px; }
.web-change-panel > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.web-change-panel .button { margin: 10px 0 16px; }
.settings-live-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 99px; background: #e1f7ed; color: #19835d; font-size: 11px; font-weight: 800; }
.settings-live-badge .status-dot { box-shadow: none; background: #22b67e; }
.settings-port-form { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid #e9eef5; }
.settings-port-form label { margin-bottom: 3px; font-size: 13px; }
.settings-field-note { margin: 0; color: #8794a6; font-size: 11px; line-height: 1.5; }
.settings-port-controls { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.settings-port-controls input { width: 132px; }
.settings-port-controls .button { min-height: 41px; }
.settings-callout { padding: 15px 18px; border: 1px solid #f3dfb7; border-radius: 13px; background: #fff9ed; }
.settings-callout strong { color: #9b6b19; font-size: 12px; }
.settings-callout p { margin: 5px 0 0; color: #8a7857; font-size: 11px; }
.settings-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; margin-top: 17px; }
.settings-actions form { margin: 0; }
.settings-password-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.settings-form-row:first-of-type { grid-column: 1 / -1; max-width: 420px; }
.settings-form-row label { margin-bottom: 7px; }
.settings-password-form .settings-field-note { grid-column: 1 / -1; }
.settings-password-form > .button { justify-self: start; margin-top: 4px; }
.settings-recovery-section { padding-bottom: 25px; }
.settings-recovery-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 19px; border: 1px solid #e4eaf2; border-radius: 14px; background: #f9fbfe; }
.settings-recovery-row strong { display: block; margin-bottom: 3px; font-size: 13px; }
.settings-recovery-row p { margin: 0; color: var(--muted); font-size: 11px; }
.settings-recovery-row .button { flex: 0 0 auto; }
.table-subtext { display: block; margin-top: 3px; color: #95a0b1; font-size: 10px; }
.nowrap { white-space: nowrap; }
.state { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 9px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-active { background: #eaf9f2; color: #159569; }
.state-disabled { background: #edf1f6; color: #687891; }
.state-expired { background: #fff0ed; color: #c36142; }
.action-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.row-actions { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; min-width: max-content; }
.row-actions form { margin: 0; }
.action-button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #e3eaf3; border-radius: 9px; background: #f7f9fc; color: #61738d; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.action-button:hover, .action-button:focus-visible { border-color: #bad0f6; background: #eaf1ff; color: #2866d4; }
.action-button:disabled { opacity: .55; cursor: wait; }
.action-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.action-button-extend { border-color: #d9e9de; background: #f1faf4; color: #278459; }
.action-button-extend:hover, .action-button-extend:focus-visible { border-color: #a8dcc0; background: #e2f6ea; color: #16724a; }
.action-button-danger { color: #b85c66; }
.action-button-danger:hover, .action-button-danger:focus-visible { border-color: #f2c2c9; background: #fff0f2; color: #b03042; }
.extend-dialog { width: min(100% - 32px, 420px); }
.extend-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.extend-option { display: grid; justify-items: center; gap: 2px; padding: 19px 7px; border: 1px solid #d9e7f6; border-radius: 13px; background: #f7faff; color: #2b5ab0; cursor: pointer; }
.extend-option:hover, .extend-option:focus-visible { border-color: #7fa9ee; background: #eaf2ff; }
.extend-option strong { font-size: 25px; line-height: 1; }
.extend-option span { font-size: 11px; font-weight: 700; }
.action-feedback { position: fixed; right: 22px; bottom: 22px; z-index: 20; max-width: min(390px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #bde3cf; border-radius: 11px; background: #f0fbf5; box-shadow: 0 10px 28px rgba(20, 40, 70, .15); color: #1d7750; font-size: 12px; font-weight: 700; }
.action-feedback.is-error { border-color: #f1c8cf; background: #fff2f4; color: #ac4050; }
.copy-details-text { width: 100%; min-height: 190px; padding: 12px; border: 1px solid #d6dfeb; border-radius: 9px; color: #25354f; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; }
.password-details { position: relative; }
.password-details summary { list-style: none; cursor: pointer; white-space: nowrap; border-radius: 8px; padding: 7px 8px; color: #3669c5; font-size: 11px; font-weight: 750; }
.password-details summary::-webkit-details-marker { display: none; }
.password-details summary:hover { background: #eff4ff; }
.password-details[open] { width: 100%; }
.password-details[open] form { display: flex; gap: 7px; align-items: end; flex-wrap: wrap; padding: 9px 0 4px; }
.password-details[open] p { margin: 0; flex: 1 1 130px; }
.password-details[open] input { min-height: 35px; }
.empty-state { padding: 26px 10px; color: #8b98aa; text-align: center; }

.audit-count { color: #71819b; font-size: 12px; font-weight: 700; }
.audit-pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 20px; border-top: 1px solid #edf1f6; }
.audit-pagination > span { color: #71819b; font-size: 12px; }
.backup-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.backup-action { display: flex; flex-direction: column; }
.backup-action .settings-section-head { margin-bottom: 15px; }
.backup-action-copy { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.backup-sensitive-note { margin: 0 0 22px; padding: 11px 13px; border-radius: 10px; background: #fff7eb; color: #92641e; font-size: 11px; font-weight: 700; }
.backup-action > form { margin-top: auto; }
.backup-restore-form p { margin: 0 0 14px; }
.backup-restore-form input[type=file] { height: auto; min-height: 42px; }
.backup-empty { padding: 25px; border: 1px dashed #dce5f0; border-radius: 12px; background: #fafcff; color: #8794a6; font-size: 12px; text-align: center; }
.backup-list-panel { margin-top: 20px; }
.restore-confirm label { display: flex; align-items: flex-start; gap: 9px; font-weight: 600; color: var(--muted); }
.restore-confirm input { width: auto; min-height: 0; margin-top: 4px; }
.restore-complete { max-width: 620px; margin: 30px auto; }
.restore-complete p:not(.eyebrow) { color: var(--muted); }

.notice { padding: 12px 15px; margin-bottom: 18px; border: 1px solid #caecdb; border-radius: 11px; background: #edfaf3; color: #1e7650; font-size: 13px; }
.notice.error { border-color: #f3d3d8; background: #fff0f2; color: #a83b4a; }
.login-shell { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 35px 18px; }
.login-card { width: min(100%, 440px); padding: 38px; border-radius: 20px; }
.login-symbol { width: 52px; height: 52px; margin-bottom: 24px; font-size: 26px; }
.login-card h1 { margin-bottom: 6px; font-size: 30px; letter-spacing: -.04em; }
.login-card .muted { margin-bottom: 26px; font-size: 13px; }
.login-form .button { margin-top: 4px; }

@media (max-width: 720px) {
  .backup-action-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; gap: 16px; }
  .settings-sidebar { position: static; padding: 12px; }
  .settings-sidebar-title, .settings-sidebar-note { display: none; }
  .settings-nav { display: flex; overflow-x: auto; gap: 5px; }
  .settings-nav a { flex: 0 0 auto; }
  .settings-hero { align-items: flex-start; flex-direction: column; padding: 28px 25px; }
  .settings-port-form { align-items: stretch; flex-direction: column; }
  .settings-port-controls { flex: 0 0 auto; }
  .site-header-inner { padding: 0 18px; }
  .app-shell { padding: 25px 16px 50px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .port-card { width: 100%; }
  .metrics-grid { grid-template-columns: 1fr; gap: 11px; }
  .metric-card { padding: 17px 19px; }
  .metric-number { margin: 13px 0; }
  .panel { padding: 20px 16px; }
  .admin-badge { display: none; }
}
@media (max-width: 520px) {
  .web-address-form { grid-template-columns: 1fr; }
  .settings-section { padding: 22px 18px; }
  .settings-password-form { grid-template-columns: 1fr; }
  .settings-form-row:first-of-type { grid-column: auto; max-width: none; }
  .settings-password-form .settings-field-note { grid-column: auto; }
  .settings-recovery-row { align-items: stretch; flex-direction: column; }
  .settings-port-controls input { flex: 1 1 auto; width: min(100%, 180px); }
  .settings-port-controls .button { flex: 0 0 auto; }
  .nav-drawer { width: min(100%, 360px); border-radius: 0; }
  .drawer-content { padding: 25px 19px 20px; }
  .account-totals { display: none; }
  .account-dialog { padding: 21px 17px; }
  .login-card { padding: 28px 23px; }
  .brand-label small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
