:root {
  --ink: #17202c;
  --muted: #697386;
  --line: #e6e9ee;
  --surface: #ffffff;
  --canvas: #f5f7f9;
  --sidebar: #111820;
  --sidebar-soft: #1a242f;
  --green: #168767;
  --green-soft: #eaf7f2;
  --blue: #2878db;
  --blue-soft: #eaf2fd;
  --amber: #bd7a13;
  --amber-soft: #fff5df;
  --red: #c94f4f;
  --red-soft: #fceeee;
  --shadow: 0 8px 24px rgba(18, 28, 45, .06);
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", "Noto Sans SC", sans-serif; letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; display: flex; flex-direction: column; padding: 24px 16px 18px; background: var(--sidebar); color: #eaf0f4; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; height: 48px; padding: 0 9px; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--green); }
.brand-mark svg { width: 20px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 1px; color: #83909c; font-size: 11px; }
.side-nav { margin-top: 31px; flex: 1; }
.nav-label { margin: 20px 10px 7px; color: #65717d; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.nav-item { width: 100%; height: 42px; margin: 3px 0; padding: 0 11px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 6px; background: transparent; color: #9aa6b2; font-size: 13px; cursor: pointer; text-align: left; }
.nav-item svg { width: 18px; }
.nav-item span { flex: 1; }
.nav-item em { min-width: 23px; padding: 2px 6px; border-radius: 10px; background: #273440; color: #b9c2ca; font-size: 10px; font-style: normal; text-align: center; }
.nav-item:hover { color: #fff; background: #18222c; }
.nav-item.active { color: #fff; background: var(--sidebar-soft); box-shadow: inset 2px 0 0 var(--green); }
.nav-item.active svg { color: #54c9a6; }
.sidebar-foot { border-top: 1px solid #222e38; padding-top: 17px; }
.status-line { display: flex; align-items: center; gap: 8px; padding: 0 9px 15px; color: #77838f; font-size: 10px; }
.status-line span { width: 7px; height: 7px; border-radius: 50%; background: #39b990; box-shadow: 0 0 0 3px rgba(57,185,144,.12); }
.user-card { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 7px; background: #151e27; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #293643; color: #b9c5ce; font-size: 12px; font-weight: 600; }
.user-card > div:nth-child(2) { min-width: 0; flex: 1; }
.user-card strong, .user-card small { display: block; }
.user-card strong { color: #dfe5ea; font-size: 11px; }
.user-card small { margin-top: 2px; color: #6f7d89; font-size: 9px; }

.main-content { min-height: 100vh; margin-left: 232px; padding: 0 34px 40px; }
.topbar { height: 102px; display: flex; align-items: center; justify-content: space-between; }
.eyebrow { margin: 0 0 5px; color: var(--green); font-size: 10px; font-weight: 700; text-transform: uppercase; }
h1 { margin: 0; font-size: 23px; line-height: 1.2; }
.top-actions, .head-tools { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; }
.icon-button:hover { background: #f8f9fa; }
.icon-button svg { width: 17px; }
.notification { position: relative; }
.notification > span { position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: #dc5c5c; }
.button { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.button svg { width: 15px; }
.button.primary { color: #fff; background: var(--green); box-shadow: 0 4px 12px rgba(22,135,103,.18); }
.button.primary:hover { background: #117a5c; }
.button.secondary { border-color: var(--line); background: var(--surface); }
.button.secondary:hover { border-color: #cfd5dc; background: #fafbfb; }
.view { display: none; }
.view.active { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card, .panel { border: 1px solid #e8ebef; border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.stat-card { min-height: 154px; padding: 18px 19px; }
.stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; }
.stat-icon svg { width: 17px; }
.stat-icon.green { color: var(--green); background: var(--green-soft); }
.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }
.stat-icon.amber { color: var(--amber); background: var(--amber-soft); }
.stat-icon.gray { color: #596675; background: #eef1f4; }
.trend, .muted-tag, .live-dot { font-size: 10px; font-weight: 600; }
.trend.up { color: var(--green); }
.trend svg { width: 12px; vertical-align: middle; }
.muted-tag { color: #84909c; }
.live-dot { color: var(--green); }
.live-dot::before { content: ""; width: 6px; height: 6px; margin-right: 6px; display: inline-block; border-radius: 50%; background: var(--green); }
.stat-card p { margin: 0 0 2px; color: var(--muted); font-size: 11px; }
.stat-card > strong { display: block; margin-bottom: 2px; font-size: 25px; line-height: 1.25; }
.stat-card > small { color: #9aa3ad; font-size: 9px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 14px; margin-top: 14px; }
.panel-head { min-height: 76px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.panel-head.compact { min-height: 71px; }
.panel-head h2 { margin: 0 0 4px; font-size: 14px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 10px; }
.search-box { width: 216px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; }
.search-box:focus-within { border-color: #81bfae; box-shadow: 0 0 0 3px rgba(22,135,103,.08); }
.search-box svg { width: 14px; flex: 0 0 auto; color: #8b96a2; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.filter-row { padding: 10px 18px; display: flex; gap: 9px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.filter-row[hidden] { display: none; }
.filter-row select { height: 32px; min-width: 120px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #485463; font-size: 11px; }
.table-wrap { min-height: 370px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 41px; padding: 0 14px; color: #8a95a1; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 600; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { height: 54px; padding: 0 14px; border-bottom: 1px solid #eff1f4; font-size: 10px; white-space: nowrap; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #fbfcfc; }
.license-code { display: flex; align-items: center; gap: 7px; font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 600; }
.license-code svg { width: 13px; color: #8994a0; }
.copy-mini { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #98a2ad; cursor: pointer; }
.copy-mini:hover { color: var(--green); background: var(--green-soft); }
.copy-mini svg { width: 12px; }
.account-cell { display: flex; align-items: center; gap: 8px; }
.account-cell .account-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 700; }
.account-cell strong, .account-cell small { display: block; }
.account-cell strong { font-size: 10px; }
.account-cell small { margin-top: 2px; color: #919ba6; font-size: 8px; }
.server-cell { max-width: 150px; overflow: hidden; color: #53606e; text-overflow: ellipsis; }
.status-badge, .badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; font-size: 9px; font-weight: 600; }
.status-badge { padding: 4px 8px; }
.status-badge::before, .badge span { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.status-badge.active, .badge.success { color: var(--green); background: var(--green-soft); }
.status-badge.active::before, .badge.success span { background: var(--green); }
.status-badge.expiring { color: var(--amber); background: var(--amber-soft); }
.status-badge.expiring::before { background: var(--amber); }
.status-badge.paused { color: #79838d; background: #eff1f3; }
.status-badge.paused::before { background: #8a949e; }
.row-action { margin-left: auto; border: 0; background: transparent; color: #87929d; cursor: pointer; }
.row-action svg { width: 15px; }
.panel-foot { min-height: 50px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: #8e98a3; font-size: 10px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 600; cursor: pointer; }
.text-button svg { width: 13px; }
.empty-state { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #96a0aa; }
.empty-state[hidden] { display: none; }
.empty-state svg { width: 30px; margin-bottom: 10px; }
.empty-state strong { color: #5d6874; font-size: 12px; }
.empty-state p { margin: 5px 0 0; font-size: 10px; }
.side-column { display: grid; gap: 14px; align-content: start; }
.badge { padding: 4px 8px; }
.health-panel { min-height: 284px; }
.health-ring { width: 126px; height: 126px; margin: 19px auto 15px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 99.99%, #e8ecef 99.99%); position: relative; }
.health-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: white; }
.health-ring div { position: relative; z-index: 1; text-align: center; }
.health-ring strong, .health-ring span { display: block; }
.health-ring strong { font-size: 21px; }
.health-ring span { margin-top: 3px; color: #89949f; font-size: 8px; }
.health-metrics { display: grid; grid-template-columns: 1fr 1fr; padding: 0 17px 17px; }
.health-metrics div { text-align: center; }
.health-metrics div:first-child { border-right: 1px solid var(--line); }
.health-metrics span, .health-metrics strong { display: block; }
.health-metrics span { color: #919ba6; font-size: 8px; }
.health-metrics strong { margin-top: 3px; font-size: 11px; }
.activity-panel { min-height: 258px; }
.timeline { padding: 11px 18px 15px; }
.timeline-item { display: grid; grid-template-columns: 23px 1fr; gap: 9px; position: relative; padding: 7px 0; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 30px; bottom: -5px; width: 1px; background: var(--line); }
.timeline-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); position: relative; z-index: 1; }
.timeline-icon svg { width: 11px; }
.timeline-item strong { display: block; margin-bottom: 3px; font-size: 9px; }
.timeline-item p { margin: 0 0 3px; color: #6d7884; font-size: 8px; line-height: 1.5; }
.timeline-item time { color: #a1a9b1; font-size: 7px; }
.placeholder-view { max-width: 540px; margin: 100px auto; text-align: center; }
.placeholder-view.active { display: block; }
.placeholder-icon { width: 54px; height: 54px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); }
.placeholder-view h2 { margin: 0 0 8px; font-size: 18px; }
.placeholder-view p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.mobile-nav { display: none; }

.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; background: rgba(12, 18, 24, .55); backdrop-filter: blur(2px); z-index: 50; }
.modal-backdrop[hidden], .drawer-backdrop[hidden] { display: none; }
.modal-backdrop { display: grid; place-items: center; padding: 20px; }
.modal { width: min(580px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 8px; background: white; box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.modal-head, .drawer-head { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head h2, .drawer-head h2 { margin: 0; font-size: 17px; }
form { padding: 20px 22px 22px; }
.logout-form { padding: 0; }
.logout-form .icon-button { border-color: #2b3945; color: #83909c; background: transparent; }
.logout-form .icon-button:hover { color: #fff; background: #24303b; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label > span { display: block; margin-bottom: 6px; color: #4f5a66; font-size: 10px; font-weight: 600; }
form label > span small { color: #9ba4ae; font-weight: 400; }
form input, form select, form textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: #fff; font-size: 11px; }
form input, form select { height: 38px; padding: 0 10px; }
form textarea { padding: 10px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { border-color: #81bfae; box-shadow: 0 0 0 3px rgba(22,135,103,.08); }
.full-field { display: block; margin-top: 14px; }
.generated-key { margin-top: 15px; padding: 11px 12px; display: flex; justify-content: space-between; align-items: center; border: 1px dashed #b9d9cf; border-radius: 6px; color: var(--green); background: #f5fbf8; font-size: 10px; }
.generated-key span { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.generated-key svg { width: 14px; }
.generated-key small { color: #84958f; font-size: 8px; }
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(410px, 100%); z-index: 60; background: white; box-shadow: -15px 0 40px rgba(11,19,27,.18); transform: translateX(105%); transition: transform .24s ease; }
.drawer.open { transform: translateX(0); }
.drawer-section { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 13px; font-size: 11px; }
.detail-code { padding: 13px; display: flex; align-items: center; justify-content: space-between; border-radius: 6px; background: #f4f7f8; font-size: 12px; font-weight: 700; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.detail-list span, .detail-list strong { display: block; }
.detail-list span { margin-bottom: 4px; color: #8b95a0; font-size: 9px; }
.detail-list strong { font-size: 11px; overflow-wrap: anywhere; }
.drawer-actions { padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 9px; }
.drawer-actions .button { flex: 1; }
.drawer-actions .delete-wide { flex: 1 0 100%; }
.button.danger { color: var(--red); border-color: #f0cece; background: var(--red-soft); }
.status-badge.expired { color: var(--red); background: var(--red-soft); }
.status-badge.expired::before { background: var(--red); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; min-width: 210px; padding: 11px 15px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; color: white; background: #17252b; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 11px; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 15px; color: #64d4b0; }
.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; }

.login-page { min-height: 100vh; background: #f3f6f7; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 39%) 1fr; }
.login-brand { min-height: 100vh; padding: 34px 42px; display: flex; flex-direction: column; position: relative; overflow: hidden; color: #eef4f2; background: #111820; }
.login-brand::after { content: ""; position: absolute; inset: auto -20% 14% 10%; height: 1px; background: #33423f; transform: rotate(-13deg); transform-origin: right; }
.login-logo { padding: 0; position: relative; z-index: 1; }
.login-logo .brand-mark { width: 40px; height: 40px; }
.login-logo strong { font-size: 16px; }
.login-logo small { color: #7f8c96; }
.login-brand-content { margin: auto 0; max-width: 430px; position: relative; z-index: 1; }
.secure-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; color: #61cbae; font-size: 11px; font-weight: 600; }
.secure-label svg { width: 15px; }
.login-brand-content h1 { margin: 0 0 16px; color: #fff; font-size: 35px; line-height: 1.25; }
.login-brand-content p { max-width: 350px; margin: 0; color: #87959f; font-size: 13px; line-height: 1.8; }
.login-brand-foot { display: flex; align-items: center; gap: 9px; color: #71808b; font-size: 10px; position: relative; z-index: 1; }
.login-brand-foot span { width: 7px; height: 7px; border-radius: 50%; background: #41bd94; box-shadow: 0 0 0 4px rgba(65,189,148,.1); }
.login-main { min-height: 100vh; padding: 38px; display: grid; place-items: center; }
.login-form-wrap { width: min(390px, 100%); }
.login-heading { margin-bottom: 27px; }
.login-heading h2 { margin: 0 0 7px; font-size: 25px; }
.login-heading > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.login-alert { margin-bottom: 16px; padding: 11px 12px; display: flex; align-items: flex-start; gap: 8px; border: 1px solid #f0cece; border-radius: 6px; color: #a84141; background: var(--red-soft); font-size: 10px; line-height: 1.5; }
.login-alert svg { width: 15px; flex: 0 0 auto; }
.login-form { padding: 0; }
.login-form > label { display: block; margin-bottom: 16px; }
.login-form label > span:first-child { margin-bottom: 7px; color: #475360; font-size: 10px; font-weight: 600; }
.login-input { height: 44px; padding: 0 11px; display: flex !important; align-items: center; gap: 9px; border: 1px solid #dfe4e8; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(18,28,45,.025); }
.login-input:focus-within { border-color: #73b9a5; box-shadow: 0 0 0 3px rgba(22,135,103,.08); }
.login-input > svg { width: 16px; color: #8c97a2; flex: 0 0 auto; }
.login-input input { height: 40px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.login-input input:focus { border: 0; box-shadow: none; }
.login-input button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 5px; color: #8d98a3; background: transparent; cursor: pointer; }
.login-input button:hover { color: var(--ink); background: #f3f5f6; }
.login-input button svg { width: 15px; }
.login-submit { width: 100%; height: 43px; margin-top: 4px; }
.login-submit:disabled { opacity: .55; cursor: not-allowed; }
.login-submit svg { margin-left: auto; }
.login-notice { margin: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: #909aa4; font-size: 9px; }
.login-notice svg { width: 13px; }

@media (max-width: 1120px) {
  .content-grid { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: 1fr 1fr; }
  .activity-panel, .health-panel { min-height: 275px; }
}

@media (max-width: 860px) {
  .sidebar { width: 72px; padding: 22px 11px; }
  .brand { justify-content: center; padding: 0; }
  .brand > span:last-child, .nav-item span, .nav-item em, .nav-label, .sidebar-foot { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item.active { box-shadow: none; }
  .main-content { margin-left: 72px; padding: 0 22px 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .head-tools { width: 100%; }
  .search-box { flex: 1; width: auto; }
}

@media (max-width: 620px) {
  body { padding-bottom: 70px; }
  .sidebar { display: none; }
  .main-content { margin: 0; padding: 0 14px 24px; }
  .topbar { height: 82px; }
  .topbar h1 { font-size: 20px; }
  .topbar .eyebrow, #newLicenseButton, .notification { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 133px; padding: 14px; }
  .stat-head { margin-bottom: 12px; }
  .stat-card > strong { font-size: 22px; }
  .content-grid { gap: 10px; margin-top: 10px; }
  .panel-head { min-height: 0; padding: 15px; }
  .panel-head h2 { font-size: 13px; }
  .head-tools { flex-wrap: wrap; }
  .search-box { width: 100%; flex-basis: 100%; }
  .export-desktop { display: none; }
  .filter-row { padding: 9px 15px; }
  .filter-row select { min-width: 0; flex: 1; }
  .table-wrap { min-height: 280px; overflow: visible; }
  table, tbody { display: block; }
  thead { display: none; }
  tbody { padding: 0 14px; }
  tbody tr { margin: 0; padding: 13px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; border-bottom: 1px solid var(--line); }
  td { height: auto; padding: 0; border: 0; }
  td:nth-child(1) { grid-column: 1 / -1; }
  td:nth-child(2) { grid-column: 1; }
  td:nth-child(3) { grid-column: 1 / -1; color: #85909b; }
  td:nth-child(3)::before { content: "服务器  "; color: #a2aab2; }
  td:nth-child(4) { grid-column: 1; color: #727e89; }
  td:nth-child(4)::before { content: "到期  "; color: #a2aab2; }
  td:nth-child(5) { grid-column: 2; grid-row: 2; align-self: center; }
  td:nth-child(6) { display: none; }
  .panel-foot { padding: 0 15px; }
  .side-column { grid-template-columns: 1fr; }
  .health-panel { min-height: 278px; }
  .activity-panel { min-height: auto; }
  .mobile-nav { position: fixed; inset: auto 0 0; height: 64px; padding: 5px 9px max(5px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: white; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(18,28,45,.06); z-index: 40; }
  .mobile-nav button { min-width: 0; height: 48px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #818c98; font-size: 8px; }
  .mobile-nav button svg { width: 18px; }
  .mobile-nav button.active { color: var(--green); }
  .mobile-nav .mobile-add { width: 42px; height: 42px; margin: 0 auto 15px; border-radius: 50%; color: white; background: var(--green); box-shadow: 0 5px 14px rgba(22,135,103,.3); }
  .mobile-nav .mobile-add svg { width: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 8px 8px 0 0; }
  .generated-key { align-items: flex-start; flex-direction: column; gap: 5px; }
  .drawer { bottom: 64px; }
  .toast { bottom: 78px; }
  .login-page { padding-bottom: 0; }
  .login-shell { display: block; }
  .login-brand { min-height: 210px; padding: 24px 22px; }
  .login-brand-content { margin: 32px 0 0; }
  .secure-label { display: none; }
  .login-brand-content h1 { margin-bottom: 8px; font-size: 24px; }
  .login-brand-content p { font-size: 11px; }
  .login-brand-foot { display: none; }
  .login-main { min-height: calc(100vh - 210px); padding: 32px 22px 42px; display: block; }
  .login-form-wrap { margin: 0 auto; }
  .login-heading h2 { font-size: 22px; }
}
