:root {
  --brand: #2f7cf6;
  --brand-soft: #eaf1ff;
  --ink: #0f1b2d;
  --text: #1e293b;
  --muted: #5b6b80;
  --line: #e6edf7;
  --bg: #f5f8fd;
  --card: #ffffff;
  --sidebar: #0a1526;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .04);
  --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 10px 30px -18px rgba(15, 27, 45, .25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 13.5px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: 13.5px; }
a { color: var(--brand); text-decoration: none; }
::selection { background: rgba(47, 124, 246, .18); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace; letter-spacing: .3px; }

/* ============ 登录 ============ */
#login {
  position: fixed; inset: 0; z-index: 50; display: block; overflow-y: auto;
  padding: 0;
  text-align: center;
  background: linear-gradient(135deg, #edf4f2 0%, #f4f7fb 52%, #edf1f7 100%);
}
.login-wrap {
  position: relative; top: auto; left: auto; transform: none;
  width: calc(100% - 48px); max-width: 1080px; min-width: 0; min-height: 610px;
  margin: max(44px, calc(50vh - 355px)) auto 56px;
  text-align: left; display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  background: #fff; border: 1px solid rgba(98, 118, 126, .18); border-radius: 24px;
  overflow: hidden; box-shadow: 0 42px 90px -48px rgba(12, 39, 42, .46);
}
.login-brand {
  position: relative; color: #eef7f3; padding: 54px 56px;
  background: linear-gradient(145deg, #17232c 0%, #214653 54%, #2d747b 100%);
  display: flex; flex-direction: column; justify-content: center;
}
.login-eyebrow, .login-kicker {
  font: 700 10px/1.2 "Segoe UI", sans-serif; letter-spacing: 1.8px;
}
.login-eyebrow { color: #bcd4ff; margin-bottom: 28px; }
.login-brand .mark { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.login-brand .mark .logo {
  width: 48px; height: 48px; border-radius: 13px; font-size: 21px; font-weight: 800;
  background: #1155ab; color: #ffffff; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(7, 24, 55, .72);
}
.login-brand .mark .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-brand .mark b { font-size: 17px; color: #ffffff; display: block; }
.login-brand .mark span { font-size: 11px; color: #c5d8f7; display: block; margin-top: 3px; }
.login-brand h2 { font-size: 35px; line-height: 1.34; margin: 0 0 18px; color: #f8fbff; letter-spacing: -.6px; }
.login-brand > p { color: #d1e0f7; font-size: 13px; line-height: 1.9; margin: 0; max-width: 500px; }
.login-points { display: grid; gap: 16px; margin-top: 34px; }
.login-points > div { display: flex; align-items: center; gap: 14px; }
.login-points i {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .08);
  color: #ffffff; font: 700 10px/1 monospace; font-style: normal;
}
.login-points span { display: grid; gap: 3px; }
.login-points b { color: #f1f6ff; font-size: 12.5px; font-weight: 600; }
.login-points small { color: #c2d6f4; font-size: 11px; }

.login-card {
  width: auto; background: #fff; border-radius: 0; padding: 52px 48px;
  box-shadow: none; display: flex; flex-direction: column; justify-content: center;
}
.login-kicker { color: #2f7cf6; margin-bottom: 12px; }
.login-card h1 { margin: 0 0 7px; font-size: 26px; letter-spacing: -.4px; color: var(--ink); }
.login-card .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 30px; }
.login-card .field { margin-bottom: 17px; }
.login-card .field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.login-card input { width: 100%; padding: 12px 13px; border-radius: 10px; }
.login-submit { width: 100%; min-height: 46px; margin-top: 7px; border-radius: 10px; font-size: 14px; }
.login-card .demo { margin-top: 26px; font-size: 11.5px; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--line); padding-top: 18px; }
.login-card .demo > span { display: block; margin-bottom: 10px; }
.login-card .demo > div { display: flex; gap: 8px; flex-wrap: wrap; }
.login-card .demo code { background: var(--brand-soft); padding: 2px 7px; border-radius: 6px; color: #24559f; cursor: pointer; font-size: 11.5px; }
.login-footer { position: fixed; bottom: 20px; left: 0; right: 0; text-align: center; color: #7b8b98; font-size: 10.5px; }

/* ============ 布局 ============ */
#app { display: none; min-height: 100vh; }
.app-grid { display: flex; min-height: 100vh; }
aside {
  width: 232px; flex: 0 0 232px; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #475569; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 20;
  border-right: 1px solid var(--line);
}
.brand { min-height: 86px; padding: 20px 18px; display: flex; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); }
.brand .logo {
  width: 46px; height: 46px; border-radius: 13px; font-size: 21px; flex: 0 0 46px;
  background: #1155ab; display: flex; align-items: center; justify-content: center;
  background-position: center; background-size: cover; overflow: hidden;
  box-shadow: 0 8px 20px -8px rgba(79, 140, 255, .9);
}
.brand > div:last-child { min-width: 0; }
.brand b { color: var(--ink); font-size: 16px; display: block; line-height: 1.32; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav { padding: 10px 10px 18px; overflow-y: auto; flex: 1; }
nav::-webkit-scrollbar { width: 6px; }
nav::-webkit-scrollbar-thumb { background: #dbe4f0; border-radius: 3px; }
nav .group { font-size: 11.5px; color: #78879c; padding: 14px 12px 8px; letter-spacing: 1.2px; text-transform: uppercase; }
nav a {
  display: flex; align-items: center; color: #3c4c63; padding: 10px 14px; border-radius: 10px;
  margin-bottom: 3px; font-size: 15px; position: relative; transition: background .15s, color .15s;
}
nav a:hover { background: #f1f6ff; color: #1d4ed8; }
nav a.active { background: linear-gradient(90deg, #e6f0ff, #f2f8ff); color: #1d4ed8; font-weight: 600; }
nav a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.userbox { padding: 14px 16px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; background: #fbfdff; }
.userbox .avatar {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 34px; background: #e6f0ff; color: #24559f;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.userbox .who { min-width: 0; flex: 1; }
.userbox b { color: var(--ink); display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userbox span { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.userbox button {
  border: 1px solid #cfdcee; background: #fff; color: #33445c; height: 30px; padding: 0 10px; border-radius: 9px;
  cursor: pointer; font-size: 12px; font-weight: 500; flex: 0 0 auto; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.userbox button .short { display: none; }
.userbox button:hover { border-color: #9db9dc; background: #eef5ff; color: #1552c0; }

main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
header.top {
  height: 64px; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 15;
}
header.top .titles h2 { font-size: 16px; margin: 0; letter-spacing: -.2px; }
header.top .titles p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
header.top .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.scope-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: #24559f;
  padding: 6px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
}
.scope-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

#view { padding: 22px 24px 44px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ============ 页面头 ============ */
.viewhead { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.viewhead p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.viewhead .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ============ 卡片 ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brand); opacity: .85; }
.card .k { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.card .v { font-size: 26px; font-weight: 660; margin-top: 8px; letter-spacing: -.8px; color: var(--ink); font-variant-numeric: tabular-nums; }
.card .v small { font-size: 13px; font-weight: 500; color: var(--ok); margin-left: 4px; }
.card .s { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.panel h3 { margin: 0 0 14px; font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.panel h3 small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 1180px) { .grid2 { grid-template-columns: 1fr; } }

/* ============ 表格 ============ */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
thead th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 11.5px; padding: 10px 12px;
  background: #f8fafd; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
thead th:first-child { border-left: 1px solid var(--line); border-top-left-radius: 10px; }
thead th:last-child { border-right: 1px solid var(--line); border-top-right-radius: 10px; }
td { padding: 11px 12px; border-bottom: 1px solid #f1f5fb; vertical-align: middle; white-space: nowrap; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #f7faff; }
tbody tr:last-child td { border-bottom: 0; }
td b, td strong { color: var(--ink); font-weight: 600; }
.tablewrap { overflow: auto; border-radius: 10px; }
.tablewrap::-webkit-scrollbar { height: 8px; width: 8px; }
.tablewrap::-webkit-scrollbar-thumb { background: #dbe4f0; border-radius: 4px; }
.tablewrap::-webkit-scrollbar-track { background: transparent; }

/* ============ 标签 ============ */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px;
  line-height: 17px; background: #eef3f9; color: #52627a; white-space: nowrap; font-weight: 500;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.tag.ok { background: #e8f7ee; color: #15803d; }
.tag.bad { background: #fdecec; color: #b91c1c; }
.tag.warn { background: #fef4e5; color: #b45309; }
.tag.info { background: #e9f0ff; color: #1d4ed8; }
.tag:empty::before { display: none; }

/* ============ 按钮 ============ */
.btn {
  border: 1px solid var(--line); background: #fff; color: var(--text); padding: 8px 14px; border-radius: 9px;
  cursor: pointer; font-size: 13px; font-weight: 500; transition: all .15s; box-shadow: var(--shadow-sm);
}
.btn:hover { border-color: #cddcf0; background: #f9fbff; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #3d88ff, var(--brand)); border-color: var(--brand); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(47, 124, 246, .9);
}
.btn.primary:hover { filter: brightness(1.05); color: #fff; }
.btn.danger { color: var(--bad); border-color: #f2cdcd; background: #fffafa; }
.btn.danger:hover { background: #fdf2f2; border-color: #eab3b3; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ============ 表单 ============ */
.filters {
  display: flex; gap: 9px; flex-wrap: wrap; align-items: center; padding: 12px 14px; background: #f8fafd;
  border: 1px solid var(--line); border-radius: 11px; margin-bottom: 14px;
}
.pagination {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px; flex-wrap: wrap;
}
.pager-actions { display: flex; align-items: center; gap: 8px; }
input, select, textarea {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; background: #fff; color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s; min-height: 34px;
}
input:hover, select:hover { border-color: #cddcf0; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 124, 246, .13); }
label.f { display: block; font-size: 12px; color: var(--muted); margin-bottom: 13px; }
label.f > span { display: block; margin-bottom: 6px; font-weight: 500; }
label.f > span::after { content: ""; }
label.f input, label.f select, label.f textarea { width: 100%; }
label.f input[type="checkbox"] { width: auto; min-height: 0; }
.formrow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ============ 个人中心 ============ */
.profile-panel { max-width: 940px; }
.profile-layout { display: grid; grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); gap: 34px; align-items: start; }
.profile-identity {
  min-width: 0; padding: 8px 28px 8px 8px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start;
}
.profile-avatar {
  width: 124px; height: 124px; border-radius: 50%; flex: 0 0 124px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background-color: #e6f0ff;
  background-position: center; background-repeat: no-repeat; background-size: cover;
  color: #24559f; font-size: 42px; font-weight: 650; border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 16px 34px -22px rgba(15, 27, 45, .55);
}
.profile-identity-copy { margin: 16px 0 18px; min-width: 0; }
.profile-identity-copy b { display: block; color: var(--ink); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.profile-identity-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.profile-file { display: none !important; }
.profile-avatar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-identity .hint { margin: 13px 0 0; max-width: 190px; }
.profile-form { min-width: 0; padding-top: 6px; }
.profile-form > .f { max-width: 520px; }
.profile-form input[readonly] { background: #f7f9fc; color: #64748b; cursor: default; }
.profile-readonly-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.profile-actions { display: flex; justify-content: flex-start; gap: 9px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ============ 品牌与账号头像 ============ */
.settings-brand-editor {
  display: flex; align-items: center; gap: 20px; padding: 4px 0 2px;
}
.settings-brand-logo {
  width: 88px; height: 88px; flex: 0 0 88px; border-radius: 22px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background-color: #1155ab;
  background-position: center; background-size: cover; color: #24559f; font-size: 38px;
  border: 1px solid var(--line); box-shadow: 0 12px 28px -20px rgba(15, 27, 45, .65);
}
.settings-brand-fields { min-width: 0; flex: 1; }
.settings-brand-fields .f { margin-bottom: 8px; }
.settings-logo-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.settings-logo-actions .hint { margin-left: 2px; }
.user-list-name { display: flex; align-items: center; gap: 9px; }
.user-list-avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px; display: flex;
  align-items: center; justify-content: center; background-color: #e6f0ff; background-position: center;
  background-size: cover; color: #24559f; font-size: 12px; font-weight: 650;
}
.user-avatar-editor {
  display: flex; align-items: center; gap: 16px; padding: 13px 14px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #f8fafd;
}
.modal-avatar {
  width: 70px; height: 70px; flex: 0 0 70px; border-radius: 18px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background-color: #e6f0ff;
  background-position: center; background-size: cover; color: #24559f; font-size: 25px; font-weight: 650;
}
.user-avatar-editor-copy { min-width: 0; flex: 1; }
.user-avatar-editor-copy b { display: block; color: var(--ink); font-size: 13px; }
.user-avatar-editor-copy > span { display: block; margin: 3px 0 10px; color: var(--muted); font-size: 11.5px; }
.user-avatar-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ 模态 ============ */
#modal { position: fixed; inset: 0; background: rgba(8, 18, 34, .55); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
#modal.show { display: flex; }
.modal-card { background: #fff; border-radius: 18px; width: 540px; max-width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
.modal-card header { padding: 17px 22px; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; }
.modal-card .body { padding: 20px 22px; }
.modal-card footer { padding: 15px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: #fbfcfe; border-radius: 0 0 18px 18px; }
.x { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--muted); line-height: 1; }
.x:hover { color: var(--ink); }

/* ============ 图表 ============ */
.chart { width: 100%; height: 176px; display: block; }
.chart .grid-line { stroke: #eef3fa; stroke-width: 1; }
.chart .area { fill: url(#areaGrad); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.chart .bar { fill: #cfe0fb; transition: fill .15s; }
.chart .bar:hover { fill: var(--brand); }
.chart-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--muted); }

/* ============ 其他 ============ */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translate(-50%, -8px); background: #0f1b2d; color: #fff;
  padding: 11px 20px; border-radius: 11px; font-size: 13px; opacity: 0; transition: .22s; z-index: 99;
  pointer-events: none; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #b91c1c; }
.hint { color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.hr { height: 1px; background: var(--line); margin: 16px 0; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 8px 12px; font-size: 13px; }
.kv .k { color: var(--muted); }
.empty { padding: 38px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty::before { content: "◎"; display: block; font-size: 26px; color: #cdd9e8; margin-bottom: 8px; }
.skeleton { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #eef3fa 25%, #f7faff 37%, #eef3fa 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.loading-block { padding: 22px; }
.loading-block .skeleton { margin-bottom: 10px; }

/* 响应式 */
@media (max-width: 1024px) {
  aside { width: 158px; flex-basis: 158px; }
  .brand { justify-content: center; padding: 18px 0; }
  .brand .logo { width: 42px; height: 42px; flex-basis: 42px; font-size: 19px; }
  .brand b, .brand span, nav .group, .userbox .who { display: none; }
  nav a { justify-content: flex-start; padding: 10px 14px; font-size: 13px; }
  nav a.active::before { display: none; }
  .userbox { justify-content: center; flex-direction: column; gap: 6px; }
  .userbox button { padding: 0 9px; }
  .userbox button .long { display: none; }
  .userbox button .short { display: inline; font-size: 14px; }
  header.top { padding: 0 16px; }
  #view { padding: 16px; }
}
@media (max-width: 950px) {
  #login { padding: 24px; }
  .login-wrap {
    margin: 0 auto; width: 100%;
  }
  .login-wrap { grid-template-columns: 1fr; min-height: auto; max-width: 620px; }
  .login-brand { padding: 38px 40px; }
  .login-brand h2 { font-size: 30px; }
  .login-card { padding: 38px 40px; }
}
@media (max-height: 760px) and (min-width: 951px) {
  #login { padding: 24px; }
  .login-wrap {
    margin: 0 auto; width: 100%;
  }
}
@media (max-width: 720px) {
  #login { padding: 16px 14px 34px; overflow-y: auto; }
  .login-wrap { display: block; border-radius: 16px; width: 100%; margin: 0 auto; }
  .login-brand { padding: 28px 24px; }
  .login-eyebrow { margin-bottom: 16px; }
  .login-brand .mark { margin-bottom: 20px; }
  .login-brand h2 { font-size: 25px; }
  .login-points { display: none; }
  .login-card { padding: 28px 24px 30px; }
  .login-footer { position: static; margin-top: 14px; }
  aside { width: 128px; flex-basis: 128px; }
  nav a { padding: 9px 11px; font-size: 12.5px; }
  .formrow { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; gap: 22px; }
  .profile-identity { padding: 4px 0 22px; border-right: 0; border-bottom: 1px solid var(--line); align-items: center; text-align: center; }
  .profile-avatar { width: 108px; height: 108px; flex-basis: 108px; font-size: 36px; }
  .profile-identity .hint { max-width: none; }
  .profile-readonly-grid { grid-template-columns: 1fr; }
  .settings-brand-editor { align-items: flex-start; gap: 14px; }
  .settings-brand-logo { width: 72px; height: 72px; flex-basis: 72px; border-radius: 18px; font-size: 31px; }
  .user-avatar-editor { align-items: flex-start; }
  header.top .meta .scope-chip { display: none; }
}
