:root {
  color-scheme: light;
  --navy: #10233f;
  --navy-soft: #1b3558;
  --ink: #162235;
  --muted: #66748a;
  --line: #dce3ee;
  --canvas: #f4f6fa;
  --paper: #ffffff;
  --blue: #2f6bff;
  --blue-soft: #eaf0ff;
  --teal: #14877a;
  --teal-soft: #e6f5f1;
  --amber: #b96a20;
  --amber-soft: #fff2e5;
  --red: #b74343;
  --red-soft: #fdecec;
  --shadow: 0 10px 30px rgba(16, 35, 63, 0.07);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, summary, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(47, 107, 255, 0.3); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(27px, 2.1vw, 38px); letter-spacing: -0.04em; }
h2 { margin-bottom: 10px; font-size: 20px; letter-spacing: -0.02em; }
h3 { margin-bottom: 14px; font-size: 17px; }
small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.data-number, .account-number, .metric b, .stat-inline b, .login-facts dt { font-family: Bahnschrift, "DIN Alternate", Consolas, sans-serif; font-variant-numeric: tabular-nums; }

.application { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 232px; flex-direction: column; padding: 26px 18px 20px; color: #edf4ff; background: var(--navy); }
.brand, .owner { display: flex; align-items: center; gap: 12px; }
.brand { padding: 0 12px 28px; }
.brand b { display: block; font-size: 20px; letter-spacing: 0.08em; }
.brand small, .owner small { color: #9db0ca; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 13px; color: white; background: linear-gradient(145deg, #3d78ff, #244ac6); box-shadow: inset 0 1px rgba(255, 255, 255, 0.25); font-weight: 800; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 11px; color: #b8c6d9; background: transparent; text-align: left; }
.nav-item:hover { color: white; background: rgba(255, 255, 255, 0.06); }
.nav-item.active { color: white; background: #23456f; box-shadow: inset 3px 0 #68a0ff; }
.nav-mark { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; font-size: 11px; }
.owner { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.owner > div { min-width: 0; flex: 1; }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #dbe8ff; background: #294c76; font-weight: 700; }
.quiet-button { border: 0; color: #a9bad1; background: transparent; font-size: 12px; }
.main { min-height: 100vh; margin-left: 232px; padding: 0 34px 52px; }
.page { width: min(1500px, 100%); margin: 0 auto; }
.page-header { position: relative; display: flex; min-height: 118px; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0 22px; }
.page-header::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; content: ""; background: linear-gradient(90deg, var(--blue) 0 84px, var(--line) 84px); }
.eyebrow { margin-bottom: 7px; color: #728199; font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.date { color: var(--muted); font-size: 13px; }

.panel { margin-top: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 0; }
.primary, .secondary, .danger, .danger-text, .text-button { min-height: 38px; padding: 8px 15px; border-radius: 10px; font-weight: 700; }
.primary { border: 1px solid var(--blue); color: white; background: var(--blue); box-shadow: 0 6px 14px rgba(47, 107, 255, 0.18); }
.primary:hover { background: #2458d9; }
.secondary { border: 1px solid #cbd6e5; background: white; }
.secondary:hover { border-color: #9eb1cd; background: #f8faff; }
.danger { border: 1px solid var(--red); color: white; background: var(--red); }
.danger-text { border: 0; color: var(--red); background: var(--red-soft); }
.text-button, .inline-link, .table-link { border: 0; color: var(--blue); background: transparent; font-weight: 700; }
.text-button { padding-right: 0; padding-left: 0; }
.inline-link, .table-link { padding: 0; text-align: left; }
.wide { width: 100%; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
.badge { display: inline-flex; align-items: center; width: fit-content; min-height: 25px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.good { color: var(--teal); background: var(--teal-soft); }
.badge.warn { color: var(--amber); background: var(--amber-soft); }
.badge.danger { color: var(--red); background: var(--red-soft); }
.badge-row, .legend { display: flex; flex-wrap: wrap; gap: 8px; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 14px; margin-top: 22px; }
.metric { position: relative; min-height: 134px; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.metric::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ""; background: #b9c8dc; }
.metric:nth-child(1)::before, .metric:nth-child(2)::before { background: var(--blue); }
.metric:nth-child(3)::before { background: #7a61d6; }
.metric:nth-child(4)::before { background: var(--amber); }
.metric:nth-child(5)::before { background: var(--teal); }
.metric-alert::before { background: var(--red); }
.metric span { display: block; color: var(--muted); font-size: 13px; }
.metric b { display: block; margin: 9px 0 4px; font-size: 34px; line-height: 1; }
.split-grid, .two-columns { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; }
.todo-list { display: grid; gap: 4px; }
.todo-row, .customer-mini { width: 100%; border: 0; background: transparent; text-align: left; }
.todo-row { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 13px; padding: 13px 4px; border-bottom: 1px solid #edf1f6; }
.todo-row:last-child { border-bottom: 0; }
.todo-row:hover { background: #f8faff; }
.todo-row em { color: var(--blue); font-size: 12px; font-style: normal; font-weight: 700; }
.severity { width: 7px; height: 30px; border-radius: 9px; background: var(--amber); }
.severity-设备 { background: #7a61d6; }
.severity-版本 { background: var(--red); }
.severity-账号 { background: var(--blue); }
.progress { height: 5px; overflow: hidden; border-radius: 9px; background: #e9eef5; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.customer-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.customer-mini { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.customer-mini:hover { border-color: #9db4d6; background: #f8faff; }
.initial { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #355b8c; background: #e9eff8; font-weight: 800; }

.filter-panel { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.filter-main { display: grid; grid-template-columns: minmax(280px, 1fr) 230px auto; gap: 12px; align-items: center; }
.search-box { display: flex; min-height: 42px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #cbd6e5; border-radius: 10px; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search-box input { width: 100%; border: 0; outline: 0; }
select, input, textarea { width: 100%; border: 1px solid #cbd6e5; border-radius: 9px; color: var(--ink); background: white; }
select, input { min-height: 42px; padding: 0 12px; }
textarea { padding: 11px 12px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { min-height: 32px; padding: 5px 12px; border: 1px solid #d7e0ec; border-radius: 999px; color: var(--muted); background: #f8fafd; font-size: 12px; }
.chip.selected { border-color: #b7c9ff; color: #2157d1; background: var(--blue-soft); font-weight: 700; }
.result-line { margin: 18px 2px -8px; color: var(--muted); font-size: 13px; }
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 16px; color: #68778e; background: #f7f9fc; font-size: 12px; text-align: left; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid #e8edf4; font-size: 13px; vertical-align: middle; }
tbody tr:hover { background: #fafcff; }
td small { margin-top: 4px; }
.empty-state { padding: 48px 20px; text-align: center; }
.empty-mark { display: grid; width: 46px; height: 46px; margin: 0 auto 12px; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 24px; }

.page-intro, .detail-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.page-intro h2, .detail-head h2 { margin-bottom: 5px; }
.page-intro p, .detail-head p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.focus-note { display: flex; gap: 10px; margin-top: 22px; padding: 13px 16px; border: 1px solid #bfd0ff; border-radius: 10px; color: #264fba; background: var(--blue-soft); font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-grid .panel { position: relative; min-height: 290px; }
.detail-section { position: relative; }
.section-kicker { position: absolute; top: 18px; right: 20px; color: #c2cee0; font-family: Bahnschrift, sans-serif; font-size: 24px; font-weight: 800; }
.spotlight { border-color: #7da1ff; box-shadow: 0 0 0 3px var(--blue-soft), var(--shadow); }
.facts, .device-facts { display: grid; gap: 0; margin: 0; }
.facts > div, .device-facts > div { display: grid; grid-template-columns: 125px 1fr; padding: 10px 0; border-bottom: 1px solid #edf1f6; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; font-size: 13px; font-weight: 700; }
.authorization-state { display: grid; gap: 10px; margin: 18px 0 22px; }
.authorization-state b { font-family: Bahnschrift, sans-serif; font-size: 27px; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.account-number { margin: 16px 0 10px; font-size: 42px; font-weight: 700; letter-spacing: 0.04em; }
details { margin: 14px 0; }
summary { color: #31588d; font-size: 13px; font-weight: 700; }
.history-list { color: var(--muted); font-size: 12px; line-height: 1.8; }
.device-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.device-name { display: block; margin: 20px 0 12px; font-size: 24px; }
.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 11px; padding: 13px 0; border-bottom: 1px solid #edf1f6; }
.timeline i { width: 9px; height: 9px; margin-top: 5px; border: 2px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px #b8caff; }
.timeline p { margin: 4px 0; color: var(--muted); font-size: 13px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
.form-layout .panel { max-width: 760px; }
.field { display: grid; gap: 7px; margin: 14px 0; color: #36465d; font-size: 13px; font-weight: 700; }
.field small { font-weight: 400; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hint-card { align-self: start; margin-top: 22px; padding: 28px; border-radius: 16px; color: #eaf2ff; background: var(--navy-soft); box-shadow: var(--shadow); }
.hint-card h3 { margin-top: 22px; }
.hint-card p { margin-bottom: 0; color: #b7c8de; line-height: 1.8; }
.stat-inline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.stat-inline article { padding: 18px 22px; background: white; }
.stat-inline span { color: var(--muted); font-size: 12px; }
.stat-inline b { display: block; margin-top: 8px; font-size: 26px; }
.package-card { display: grid; grid-template-columns: 1fr 210px; gap: 30px; margin-top: 22px; padding: 28px; overflow: hidden; border-radius: 17px; color: #edf5ff; background: linear-gradient(120deg, #173152, #244c7e); box-shadow: var(--shadow); }
.package-title { display: flex; align-items: center; gap: 12px; }
.package-title h2 { margin: 0; }
.package-card p { color: #bdcce0; }
.package-card summary { color: #d7e5f7; }
.package-visual { display: grid; min-height: 170px; place-items: center; align-content: center; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px; background: rgba(255, 255, 255, 0.07); }
.package-visual span { font-size: 44px; font-weight: 800; }
.package-visual b { margin: 7px 0; font-family: Bahnschrift, sans-serif; font-size: 22px; }
.package-visual small { color: #b8c9dd; }

.release-list, .compatibility-list { display: grid; gap: 10px; }
.release-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 15px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.release-row > div { display: grid; gap: 7px; justify-items: start; }
.release-当前正式版 { border-left: 4px solid var(--teal); }
.release-已验证，待发布 { border-left: 4px solid var(--blue); background: #fbfcff; }
.release-历史正式版 { opacity: 0.78; }
.release-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 18px; border-radius: 12px; background: #f4f7fb; }
.release-footer p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.compatibility-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 16px 0; border-bottom: 1px solid #edf1f6; }
.compatibility-row small { grid-column: 1 / -1; }

.exception-list { display: grid; gap: 14px; margin-top: 22px; }
.exception-card { padding: 22px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.exception-card.resolved { opacity: 0.72; border-left-color: var(--teal); }
.exception-top { display: flex; justify-content: space-between; gap: 20px; }
.exception-top h2 { margin: 10px 0 5px; }
.exception-top p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.exception-top time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.exception-meta { display: grid; grid-template-columns: 0.8fr 1fr 1.5fr; gap: 14px; margin: 18px 0; padding: 14px 0; border-block: 1px solid #edf1f6; }
.exception-meta div { display: grid; gap: 4px; }
.exception-actions { display: flex; gap: 10px; align-items: center; }
.resolved-copy { color: var(--teal); font-size: 13px; font-weight: 700; }

.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.settings-grid .panel { min-height: 330px; }
.price-list { margin-top: 20px; }
.package-price { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #edf1f6; }
.package-price span { color: var(--muted); }
.toggle { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 13px; }
.toggle input { width: 18px; min-height: 18px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; max-width: 420px; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid #b7decf; border-radius: 12px; color: #125f53; background: #eefaf6; box-shadow: 0 16px 40px rgba(16, 35, 63, 0.18); font-size: 13px; font-weight: 700; }
.toast span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: white; background: var(--teal); }
.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(7, 20, 38, 0.55); backdrop-filter: blur(3px); }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px; border-radius: 17px; background: white; box-shadow: 0 24px 70px rgba(7, 20, 38, 0.3); }
.modal-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: #f0f3f8; font-size: 22px; }
.operation-preview { padding: 13px 15px; border-radius: 10px; color: #2b4f7c; background: #edf3fb; font-size: 13px; }
.operation-preview ul { margin-bottom: 0; padding-left: 20px; line-height: 1.8; }
.warning-copy { margin-top: 14px; padding: 12px; border-radius: 9px; color: var(--amber); background: var(--amber-soft); font-size: 12px; line-height: 1.6; }
.warning-copy.error, .form-error { color: var(--red); background: var(--red-soft); }
.form-error { padding: 10px 12px; border-radius: 8px; font-size: 12px; }

.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr); background: white; }
.login-story { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: center; padding: 7vw; color: #eef5ff; background: var(--navy); }
.login-story::after { position: absolute; right: -16%; bottom: -32%; width: 520px; height: 520px; border: 90px solid rgba(69, 123, 210, 0.18); border-radius: 50%; content: ""; }
.login-brand { position: absolute; top: 42px; left: 7vw; display: flex; align-items: center; gap: 12px; font-size: 20px; }
.login-story .eyebrow { color: #81a9e1; }
.login-story h1 { max-width: 700px; margin-bottom: 25px; white-space: pre-line; font-size: clamp(42px, 4.3vw, 64px); line-height: 1.15; }
.login-copy { max-width: 600px; color: #b6c6da; font-size: 15px; line-height: 1.9; }
.login-facts { display: flex; gap: 50px; margin: 42px 0 0; }
.login-facts dt { color: white; font-size: 31px; font-weight: 700; }
.login-facts dd { color: #9eb2cb; font-size: 12px; }
.login-card { display: flex; width: min(460px, calc(100% - 64px)); justify-self: center; flex-direction: column; justify-content: center; }
.login-card h2 { font-size: 28px; }
.login-card form { margin-top: 20px; }

@media (max-width: 1200px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .two-columns, .settings-grid { grid-template-columns: 1fr; }
  .customer-strip { grid-template-columns: repeat(2, 1fr); }
  .release-row { grid-template-columns: 1fr 1fr; }
  .release-row > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .sidebar { position: sticky; top: 0; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 10px 14px; }
  .brand { padding: 0; }
  .brand div, .owner div, .owner .quiet-button { display: none; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
  .sidebar nav { display: flex; flex: 1; justify-content: center; gap: 2px; }
  .nav-item { width: auto; padding: 7px; }
  .nav-item > span:last-child { display: none; }
  .nav-mark { width: 29px; height: 29px; }
  .owner { margin: 0; padding: 0; border: 0; }
  .avatar { width: 31px; height: 31px; }
  .main { margin-left: 0; padding: 0 18px 40px; }
  .page-header { min-height: 96px; }
  .date { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid, .detail-grid, .form-layout { grid-template-columns: 1fr; }
  .customer-strip { grid-template-columns: 1fr; }
  .filter-main { grid-template-columns: 1fr; }
  .stat-inline { grid-template-columns: repeat(2, 1fr); }
  .package-card { grid-template-columns: 1fr; }
  .package-visual { display: none; }
  .exception-meta { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-story { min-height: 38vh; padding: 90px 34px 42px; }
  .login-story h1 { font-size: 39px; }
  .login-brand { top: 25px; left: 34px; }
  .login-facts { gap: 25px; }
  .login-card { min-height: 62vh; padding: 42px 0; }
}

@media (max-width: 520px) {
  .sidebar nav { overflow-x: auto; justify-content: flex-start; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric { min-height: 120px; padding: 16px; }
  .metric b { font-size: 29px; }
  .panel { padding: 18px; }
  .todo-row { grid-template-columns: 7px 1fr; }
  .todo-row em { grid-column: 2; }
  .progress { display: none; }
  .page-intro, .detail-head, .release-footer, .exception-top { align-items: flex-start; flex-direction: column; }
  .stat-inline { grid-template-columns: 1fr 1fr; }
  .release-row { grid-template-columns: 1fr; }
  .release-row > div:last-child { grid-column: auto; }
  .facts > div, .device-facts > div { grid-template-columns: 1fr; gap: 5px; }
  .account-number { font-size: 34px; }
  .toast { right: 14px; bottom: 14px; left: 14px; }
  .login-story h1 { font-size: 32px; }
  .login-facts { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Figma V2 delivery tokens and responsive application shell. */
:root {
  --lq-primary: #315ef6;
  --lq-primary-hover: #254bd1;
  --lq-canvas: #f5f7fb;
  --lq-surface: #ffffff;
  --lq-nav: #111a2d;
  --lq-ink: #172033;
  --lq-muted: #60708a;
  --lq-line: #e2e8f0;
  --lq-success: #16866a;
  --lq-success-soft: #e8f7f1;
  --lq-warning: #a85b17;
  --lq-warning-soft: #fff4e8;
  --lq-danger: #c14343;
  --lq-danger-soft: #fff0f0;
  --lq-radius: 12px;
  --lq-shadow: 0 10px 28px rgba(17, 26, 45, 0.06);
}

html { background: var(--lq-canvas); }
body { color: var(--lq-ink); background: var(--lq-canvas); font-family: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: rgba(49, 94, 246, 0.35); }
h1 { font-size: clamp(26px, 2vw, 32px); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 18px; font-weight: 650; }

.application { min-height: 100vh; background: var(--lq-canvas); }
.sidebar { width: 248px; padding: 24px 16px; color: #c4cee1; background: var(--lq-nav); }
.brand { align-items: baseline; gap: 8px; padding: 8px 12px 36px; }
.brand b { color: #ffffff; font-size: 22px; letter-spacing: 0.02em; }
.brand small { color: #8e9ab0; font-size: 12px; }
.sidebar-nav { display: grid; gap: 4px; }
.nav-item { min-height: 44px; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #aebbd0; font-size: 14px; font-weight: 500; }
.nav-item:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.nav-item.active { color: #ffffff; background: rgba(49, 94, 246, 0.28); box-shadow: none; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 5px; opacity: 0.9; }
.main { min-height: 100vh; margin-left: 248px; padding: 0 40px 48px; }
.topbar { display: flex; min-height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--lq-line); }
.breadcrumb { margin: 0; color: var(--lq-muted); font-size: 13px; }
.owner-chip { min-height: 36px; padding: 0 13px; border: 1px solid #dbe3f0; border-radius: 8px; color: #34425a; background: #ffffff; font-size: 13px; font-weight: 600; }
.owner-chip:hover { border-color: #aec0ec; color: var(--lq-primary); }
.mobile-navigation-toggle, .mobile-navigation-backdrop { display: none; }
.page { width: min(1320px, 100%); margin: 0 auto; }
.page-header { min-height: 128px; align-items: center; padding: 32px 0 24px; }
.page-header::after { height: 0; background: none; }
.page-header h1 { margin: 0; }
.page-subtitle { margin: 8px 0 0; color: var(--lq-muted); font-size: 14px; }
.eyebrow { color: #71819b; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; }

.panel, .filter-panel, .page-intro, .detail-head, .metric, .exception-card { border-color: var(--lq-line); border-radius: var(--lq-radius); box-shadow: var(--lq-shadow); }
.panel { margin-top: 16px; padding: 24px; background: var(--lq-surface); }
.primary, .secondary, .danger, .danger-text, .text-button { min-height: 40px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.primary { border-color: var(--lq-primary); background: var(--lq-primary); box-shadow: none; }
.primary:hover { background: var(--lq-primary-hover); }
.secondary { border-color: #d7dfeb; color: #34425a; }
.secondary:hover { border-color: #aebfeb; color: var(--lq-primary); background: #ffffff; }
.danger { border-color: var(--lq-danger); background: var(--lq-danger); }
.danger-text { color: var(--lq-danger); background: var(--lq-danger-soft); }
.text-button, .inline-link, .table-link { color: var(--lq-primary); }
.badge { min-height: 26px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.badge-success, .badge.good { color: var(--lq-success); background: var(--lq-success-soft); }
.badge-warning, .badge.warn { color: var(--lq-warning); background: var(--lq-warning-soft); }
.badge-danger, .badge.danger { color: var(--lq-danger); background: var(--lq-danger-soft); }
.badge-neutral { color: #566780; background: #eff3f8; }
.muted { color: var(--lq-muted); }

.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 0; }
.metric { min-height: 132px; padding: 20px; background: #ffffff; }
.metric::before { width: 0; }
.metric span { color: var(--lq-muted); font-size: 13px; }
.metric b { margin: 10px 0 5px; color: var(--lq-ink); font-size: 30px; }
.metric small { font-size: 12px; }
.split-grid, .two-columns { gap: 16px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.todo-row { padding: 14px 4px; }
.todo-row:hover { background: #f8faff; }
.customer-mini { border-color: var(--lq-line); border-radius: 10px; }
.initial { color: var(--lq-primary); background: #edf2ff; }

.filter-panel { margin-top: 0; padding: 16px; background: #ffffff; }
.filter-main { grid-template-columns: minmax(260px, 1fr) 220px auto; }
.search-box, select, input, textarea { border-color: #d7dfeb; border-radius: 8px; }
.search-box, select, input { min-height: 40px; }
.search-box:focus-within { border-color: var(--lq-primary); box-shadow: 0 0 0 3px #e7edff; }
.chips { gap: 8px; margin-top: 12px; }
.chip { min-height: 32px; border-color: #dce4ef; border-radius: 7px; color: #5d6b82; background: #ffffff; }
.chip.selected { border-color: #cbd8ff; color: var(--lq-primary); background: #edf2ff; }
.table-panel { border-radius: var(--lq-radius); }
th { padding: 13px 16px; color: #66758d; background: #f8faff; font-size: 12px; font-weight: 600; }
td { padding: 16px; border-color: #edf1f6; color: #27344a; }

.page-intro, .detail-head { margin-top: 0; padding: 20px 24px; background: #ffffff; }
.focus-note { border-color: #cbd8ff; color: #294aa8; background: #eef2ff; }
.detail-grid { gap: 16px; }
.detail-grid .panel { min-height: 0; }
.section-kicker { color: #d5ddea; }
.spotlight { border-color: #9db5ff; box-shadow: 0 0 0 3px #edf2ff; }
.account-number { color: var(--lq-ink); }
.release-row, .compatibility-row { border-color: var(--lq-line); }
.release-footer { background: #f7f9fc; }
.exception-card { border-left-color: var(--lq-warning); background: #ffffff; }
.exception-card.resolved { border-left-color: var(--lq-success); }
.resolved-copy { color: var(--lq-success); }
.settings-grid { gap: 16px; }
.settings-grid .panel { min-height: 0; }
.hint-card, .package-card { background: var(--lq-nav); }
.toggle input { accent-color: var(--lq-primary); }
.toast { border-color: #b9e6d7; color: #126a54; background: #f0faf6; }
.toast span { background: var(--lq-success); }
.modal { border-radius: 14px; }

@media (max-width: 1279px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 76px; height: 100vh; flex-direction: column; align-items: center; padding: 22px 12px; }
  .sidebar .sidebar-nav { display: grid; flex: 0 0 auto; overflow: visible; justify-content: stretch; }
  .brand { justify-content: center; padding: 10px 0 30px; }
  .brand small, .nav-label { display: none; }
  .brand b { font-size: 0; }
  .brand b::after { content: "聊"; font-size: 21px; }
  .nav-item { width: 48px; justify-content: center; padding: 10px; }
  .main { margin-left: 76px; padding-right: 28px; padding-left: 28px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .sidebar { width: 248px; align-items: stretch; transform: translateX(-100%); transition: transform 160ms ease; }
  .brand { justify-content: flex-start; padding: 8px 12px 32px; }
  .brand small, .nav-label { display: block; }
  .brand b { font-size: 22px; }
  .brand b::after { content: none; }
  .nav-item { width: 100%; justify-content: flex-start; }
  .navigation-open .sidebar { transform: translateX(0); }
  .mobile-navigation-backdrop { position: fixed; inset: 0; z-index: 10; background: rgba(17, 26, 45, 0.42); }
  .navigation-open .mobile-navigation-backdrop { display: block; }
  .main { margin-left: 0; padding: 0 16px 32px; }
  .topbar { min-height: 64px; gap: 12px; }
  .mobile-navigation-toggle { display: block; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #d7dfeb; border-radius: 8px; background: #ffffff; font-size: 0; }
  .mobile-navigation-toggle::before { display: block; width: 16px; height: 10px; margin: auto; border-top: 1.5px solid #34425a; border-bottom: 1.5px solid #34425a; content: ""; }
  .breadcrumb { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
  .owner-chip { min-width: 0; padding: 0 10px; }
  .page-header { min-height: 108px; padding: 24px 0 20px; }
  .page-subtitle { font-size: 13px; }
  .metric-grid, .customer-strip, .stat-inline { grid-template-columns: 1fr; }
  .split-grid, .two-columns, .detail-grid, .form-layout, .settings-grid { grid-template-columns: 1fr; }
  .filter-main { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .table-scroll { margin: 0 -18px; }
  th:first-child, td:first-child { padding-left: 18px; }
  .page-intro, .detail-head, .release-footer, .exception-top { align-items: flex-start; flex-direction: column; }
  .exception-meta { grid-template-columns: 1fr; }
  .release-row { grid-template-columns: 1fr; }
}

.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 0; padding: 0 0 16px; }
.page-toolbar h2 { margin: 0; }
.secondary-heading { margin-top: 32px; padding-bottom: 0; }
.secondary-heading p { margin: 6px 0 0; color: var(--lq-muted); font-size: 13px; }
.compact-action { min-height: 34px; padding: 6px 12px; }
.compatibility-alert { margin-bottom: 16px; padding: 22px 24px; border-radius: 14px; background: #fff4db; }
.compatibility-alert b { color: var(--lq-warning); font-size: 18px; }
.compatibility-alert p { margin: 8px 0 0; color: #4a3a23; font-size: 13px; }
.review-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 16px; }
.review-grid .panel { margin-top: 0; }
.review-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 28px 0 0; }
.review-facts div { display: grid; gap: 6px; }
.review-facts dt { color: var(--lq-muted); font-size: 12px; }
.review-facts dd { margin: 0; color: var(--lq-ink); font-weight: 600; }
.decision-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.decision-option { display: grid; min-height: 78px; gap: 3px; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.decision-option input { position: absolute; opacity: 0; pointer-events: none; }
.decision-option b { font-size: 16px; }
.decision-option small { color: var(--lq-ink); font-size: 12px; }
.decision-option.compatible { border-color: #c1eadc; color: var(--lq-success); background: var(--lq-success-soft); }
.decision-option.incompatible { border-color: #ffd0d0; color: var(--lq-danger); background: var(--lq-danger-soft); }
.decision-option:has(input:focus-visible) { outline: 3px solid rgba(49, 94, 246, 0.3); outline-offset: 2px; }

@media (max-width: 767px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; height: 100vh; flex-direction: column; }
  .sidebar .sidebar-nav { display: grid; flex: 0 0 auto; overflow: visible; justify-content: stretch; }
  .review-grid, .decision-options, .review-facts { grid-template-columns: 1fr; }
}
