:root {
  --navy: #071a33;
  --navy-2: #0c284c;
  --blue: #1478ff;
  --blue-2: #0b5bd3;
  --cyan: #14b8d4;
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-2: #f6f9fc;
  --ink: #17243a;
  --muted: #66758d;
  --line: #dfe7f0;
  --success: #15a66a;
  --warning: #e99616;
  --danger: #e34850;
  --purple: #7558db;
  --shadow: 0 12px 32px rgba(15, 45, 83, .10);
  --radius: 14px;
  --font: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.launcher {
  min-height: 100vh; display: grid; place-items: center; padding: 42px;
  background:
    radial-gradient(circle at 20% 20%, rgba(25, 139, 255, .25), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(20, 184, 212, .16), transparent 32%),
    linear-gradient(135deg, #06172d 0%, #0a2b55 62%, #0b426b 100%);
}
.launcher-panel { width: min(1060px, 100%); color: #fff; }
.launcher-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 48px; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #1b91ff, #16c1c8); color: #fff; font-size: 24px; box-shadow: 0 10px 30px rgba(18, 158, 232, .35); }
.launcher h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 54px); letter-spacing: -.04em; }
.launcher .lead { max-width: 690px; margin: 0 0 36px; color: #bcd1e8; font-size: 17px; line-height: 1.75; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.entry-card { position: relative; overflow: hidden; min-height: 240px; padding: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.085); backdrop-filter: blur(10px); transition: .25s ease; }
.entry-card:hover { transform: translateY(-4px); border-color: rgba(89,196,255,.75); background: rgba(255,255,255,.13); }
.entry-card .entry-icon { font-size: 42px; }
.entry-card h2 { margin: 20px 0 8px; font-size: 24px; }
.entry-card p { min-height: 48px; margin: 0; color: #bfd1e5; line-height: 1.6; }
.entry-card .entry-action { position: absolute; right: 26px; bottom: 24px; font-weight: 800; color: #7fd8ff; }
.launcher-note { margin-top: 22px; color: #96b2ce; font-size: 13px; }

.pc-shell { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; }
.pc-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 236px; overflow: auto; background: linear-gradient(180deg, var(--navy), #092749); color: #c6d3e2; }
.pc-logo { display: flex; gap: 11px; align-items: center; padding: 22px 18px 18px; color: #fff; }
.pc-logo .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 19px; }
.pc-logo strong { display: block; font-size: 17px; }
.pc-logo small { color: #7391b0; }
.nav-section { padding: 13px 12px 0; }
.nav-title { padding: 7px 9px; color: #6484a6; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.nav-link { display: flex; align-items: center; gap: 10px; margin: 3px 0; padding: 10px 12px; border-radius: 9px; color: #aebed0; font-size: 14px; transition: .18s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(26,130,255,.9), rgba(18,113,231,.72)); box-shadow: 0 5px 16px rgba(0, 70, 164, .28); }
.nav-ico { width: 20px; text-align: center; }
.pc-main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 26px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.breadcrumb { color: var(--muted); font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.role-select { max-width: 260px; }
.content { padding: 24px 26px 44px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading h1 { margin: 0 0 5px; font-size: 25px; letter-spacing: -.02em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

.btn { min-height: 38px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-weight: 700; transition: .16s; }
.btn:hover { transform: translateY(-1px); border-color: #a9b9cc; box-shadow: 0 4px 12px rgba(22, 54, 90, .08); }
.btn.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn.success { border-color: var(--success); background: var(--success); color: #fff; }
.btn.warning { border-color: var(--warning); background: var(--warning); color: #fff; }
.btn.danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 30px; padding: 5px 10px; font-size: 12px; }
.btn:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 7px 20px rgba(14, 49, 88, .055); }
.stat-card::after { content: ""; position: absolute; width: 86px; height: 86px; right: -24px; bottom: -28px; border-radius: 50%; background: var(--accent, #1478ff); opacity: .08; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { margin: 10px 0 4px; font-size: 30px; font-weight: 850; }
.stat-note { color: var(--success); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 17px; }
.rule-config-layout { grid-template-columns: minmax(240px, .62fr) minmax(0, 2fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(17, 48, 85, .06); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 18px 19px; }
.role-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 11px 13px; border-left: 3px solid #b8cde4; border-radius: 4px; background: #f5f8fc; color: #68788b; }
.role-note-icon { flex: 0 0 17px; width: 17px; height: 17px; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; background: #e2ebf5; color: #647c98; font-size: 11px; font-weight: 800; }
.role-note-content { min-width: 0; }
.role-note-title { margin-bottom: 4px; color: #586b81; font-size: 12px; font-weight: 700; }
.role-note-content p { margin: 2px 0 0; font-size: 12px; line-height: 1.6; }
.role-note-content b { color: #4d6178; font-weight: 650; }
.metric-bars { display: grid; gap: 15px; }
.metric-row { display: grid; grid-template-columns: 82px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.bar { height: 8px; overflow: hidden; border-radius: 99px; background: #edf2f7; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.input, .select, .textarea { width: 100%; border: 1px solid #ccd7e3; border-radius: 8px; background: #fff; color: var(--ink); outline: none; transition: .16s; }
.input, .select { height: 38px; padding: 0 11px; }
.textarea { min-height: 86px; padding: 10px 11px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,120,255,.11); }
.toolbar .input { width: 230px; }
.toolbar .select { width: 160px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 12px 13px; background: #f6f9fc; color: #52637a; text-align: left; white-space: nowrap; font-weight: 750; }
td { padding: 13px; border-top: 1px solid #e8eef4; vertical-align: middle; }
tr:hover td { background: #fbfdff; }
.cell-main { font-weight: 750; color: #1e2d43; }
.cell-sub { margin-top: 4px; color: var(--muted); font-size: 11px; }
.link { color: var(--blue); font-weight: 700; cursor: pointer; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: #edf2f7; color: #53657b; font-size: 11px; font-weight: 750; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.success { background: #e9f8f1; color: #118459; }
.tag.warning { background: #fff4dc; color: #c97800; }
.tag.danger { background: #ffebed; color: #d83a45; }
.tag.info { background: #e9f2ff; color: #126bd8; }
.tag.purple { background: #f0ecff; color: #684bc6; }
.tag.gray { background: #edf1f5; color: #687588; }

.form-section { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form-section + .form-section { margin-top: 15px; }
.section-title { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 17px; }
.section-number { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: #e8f2ff; color: var(--blue); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.field { min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field.span-3 { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: #34445b; font-size: 13px; font-weight: 700; }
.required::before { content: "*"; margin-right: 3px; color: var(--danger); }
.help { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.choice-row { display: flex; flex-wrap: wrap; gap: 9px; }
.choice { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; }
.choice.active { border-color: var(--blue); background: #edf5ff; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.multi-select { position: relative; }
.multi-select-trigger { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border: 1px solid #ccd7e3; border-radius: 8px; background: #fff; color: var(--ink); text-align: left; }
.multi-select-trigger:hover, .multi-select.open .multi-select-trigger { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,120,255,.11); }
.multi-select-trigger > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-select-arrow { flex: 0 0 auto; color: var(--muted); transition: transform .16s; }
.multi-select.open .multi-select-arrow { transform: rotate(180deg); }
.multi-select-menu { position: absolute; z-index: 120; top: calc(100% + 7px); left: 0; width: max(100%, 260px); max-height: 310px; overflow: auto; display: none; padding: 7px; border: 1px solid #cfdbe8; border-radius: 11px; background: #fff; box-shadow: 0 16px 42px rgba(10, 39, 75, .18); }
.multi-select.open .multi-select-menu { display: block; }
.multi-select-title { padding: 7px 9px 9px; color: var(--muted); font-size: 11px; }
.multi-select-option { display: flex !important; align-items: flex-start; gap: 9px; margin: 0 !important; padding: 9px; border-radius: 7px; color: var(--ink) !important; font-size: 13px !important; font-weight: 650 !important; cursor: pointer; }
.multi-select-option:hover { background: #f1f6fc; }
.multi-select-option input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--blue); }
.multi-select-option span { line-height: 1.45; }
.multi-select-foot { position: sticky; bottom: -7px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 5px -7px -7px; padding: 9px 12px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; }
.multi-select-foot .link { padding: 0; border: 0; background: transparent; }
.form-footer { position: sticky; bottom: 0; z-index: 12; display: flex; justify-content: space-between; gap: 12px; margin: 18px -26px -44px; padding: 13px 26px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 45, 80, .07); }
.steps { display: flex; margin-bottom: 20px; padding: 13px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step { position: relative; flex: 1; text-align: center; color: #8a98aa; font-size: 12px; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 58%; right: -42%; top: 14px; height: 2px; background: #dce4ed; }
.step-dot { position: relative; z-index: 2; width: 29px; height: 29px; margin: 0 auto 6px; display: grid; place-items: center; border: 2px solid #d5deea; border-radius: 50%; background: #fff; font-weight: 800; }
.step.active, .step.done { color: var(--blue); }
.step.active .step-dot, .step.done .step-dot { border-color: var(--blue); background: var(--blue); color: #fff; }
.step.done:not(:last-child)::after { background: var(--blue); }

.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #eaf3ff; color: #235b9e; font-size: 13px; line-height: 1.6; }
.alert.warning { background: #fff6e5; color: #965d08; }
.alert.danger { background: #ffedef; color: #a82d36; }
.alert.success { background: #eaf8f1; color: #17764f; }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 5px; bottom: 7px; width: 2px; background: #dce5ee; }
.timeline-item { position: relative; padding: 0 0 18px 12px; }
.timeline-item::before { content: ""; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #a8c8ee; }
.timeline-item strong { display: block; font-size: 13px; }
.timeline-item span { color: var(--muted); font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.detail-item { min-height: 72px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-item:nth-child(3n) { border-right: 0; }
.detail-item label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.detail-item div { font-size: 13px; font-weight: 700; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .empty-icon { font-size: 42px; opacity: .55; }

.device-page { min-height: 100vh; padding: 22px; background: radial-gradient(circle at 20% 10%, #dbeaff, transparent 30%), #e9eff6; }
.device-toolbar { width: min(1180px, 100%); margin: 0 auto 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.device-toolbar .toolbar-left, .device-toolbar .toolbar-right { display: flex; gap: 9px; align-items: center; }
.phone-stage { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(390px, 430px) 1fr; gap: 24px; align-items: start; }
.phone { width: 390px; max-width: 100%; height: min(820px, calc(100vh - 108px)); min-height: 670px; margin: 0 auto; overflow: hidden; border: 10px solid #142238; border-radius: 36px; background: #f3f6fa; box-shadow: 0 24px 70px rgba(11, 32, 61, .25); }
.phone-screen { height: 100%; overflow: auto; }
.mini-status { height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: #fff; color: #1d2734; font-size: 11px; font-weight: 800; }
.mini-header { position: sticky; top: 0; z-index: 7; min-height: 52px; display: grid; grid-template-columns: 48px 1fr 60px; align-items: center; background: #fff; border-bottom: 1px solid #edf0f4; text-align: center; }
.mini-header strong { font-size: 16px; }
.mini-body { min-height: calc(100% - 132px); padding: 14px 14px 82px; }
.mini-hero { margin: -14px -14px 14px; padding: 25px 20px 38px; background: linear-gradient(135deg, #0865d9, #168dda 62%, #19acbd); color: #fff; }
.mini-hero h2 { margin: 6px 0; font-size: 23px; }
.mini-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; }
.mini-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: -32px 0 14px; padding: 15px 8px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.mini-shortcut { text-align: center; font-size: 11px; color: #43546a; }
.mini-shortcut i { width: 38px; height: 38px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 12px; background: #eaf3ff; color: var(--blue); font-style: normal; font-size: 18px; }
.mini-card { margin-bottom: 11px; overflow: hidden; border-radius: 13px; background: #fff; box-shadow: 0 5px 15px rgba(14, 45, 80, .06); }
.mini-card-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid #eef2f6; }
.mini-card-body { padding: 13px 14px; }
.mini-list-item { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #edf1f5; }
.mini-list-item:last-child { border-bottom: 0; }
.mini-list-item .item-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #edf5ff; color: var(--blue); }
.mini-list-item .item-content { flex: 1; min-width: 0; }
.mini-list-item .item-content strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mini-list-item .item-content span { color: var(--muted); font-size: 11px; }
.rule-category-list { padding-top: 8px; padding-bottom: 8px; }
.rule-category { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border: 1px solid transparent; border-bottom-color: #edf1f5; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.rule-category:last-child { border-bottom-color: transparent; }
.rule-category:hover { background: #f6f9fd; }
.rule-category.active { border-color: #c9ddfa; border-radius: 10px; background: #eef6ff; }
.rule-category-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #edf5ff; color: var(--blue); font-size: 16px; }
.rule-category-copy { flex: 1; min-width: 0; }
.rule-category-copy strong, .rule-category-copy small { display: block; }
.rule-category-copy strong { font-size: 13px; }
.rule-category-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.rule-category-arrow { color: #8090a3; font-size: 20px; }
.rule-category.active .rule-category-arrow { color: var(--blue); }
.schema-editor { padding: 14px; border: 1px solid #dce7f3; border-radius: 12px; background: #f8fbff; }
.schema-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.schema-editor-toolbar .select { width: min(250px, 50%); }
.schema-field-card { margin: 10px 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.schema-field-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.schema-field-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 10px; }
.schema-field-grid .field { margin: 0; }
.field-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.schema-required { display: flex; align-items: center; gap: 6px; min-height: 40px; white-space: nowrap; font-size: 13px; }
.schema-options { margin-top: 10px; }
.mini-nav { position: sticky; bottom: 0; z-index: 8; height: 62px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.98); border-top: 1px solid #e4eaf0; }
.mini-nav a { display: grid; place-items: center; align-content: center; gap: 2px; color: #7d8998; font-size: 10px; }
.mini-nav a i { font-style: normal; font-size: 19px; line-height: 1; }
.mini-nav a.active { color: var(--blue); font-weight: 800; }
.mini-form .field { margin-bottom: 14px; }
.mini-form .input, .mini-form .select { height: 43px; }
.mini-form .choice-row { display: grid; grid-template-columns: 1fr 1fr; }
.mini-form .choice { text-align: center; }
.mini-fixed-action { position: sticky; bottom: 0; z-index: 6; display: flex; gap: 9px; padding: 10px 14px; margin: 0 -14px -82px; background: #fff; border-top: 1px solid var(--line); }
.mini-fixed-action .btn { flex: 1; }
.demo-panel { position: sticky; top: 20px; padding: 20px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.demo-panel h2 { margin: 0 0 6px; font-size: 18px; }
.demo-panel p { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.demo-role-guide { margin-top: 15px; padding: 12px; border-left: 3px solid #9bbce2; border-radius: 4px; background: #f2f7fd; color: #61738a; font-size: 12px; line-height: 1.7; }
.demo-role-guide strong { display: block; margin-bottom: 4px; color: #415a77; font-size: 13px; }
.demo-role-guide p { margin: 0; color: inherit; font-size: inherit; }
.demo-state { margin-top: 15px; padding: 12px; border-radius: 10px; background: #f5f8fb; font-size: 12px; line-height: 1.65; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(4, 16, 31, .56); backdrop-filter: blur(3px); }
.modal { width: min(760px, 100%); max-height: 88vh; overflow: auto; border-radius: 16px; background: #fff; box-shadow: 0 28px 90px rgba(4, 21, 44, .32); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--line); }
.toast-root { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 9px; }
.toast { min-width: 270px; max-width: 380px; padding: 13px 16px; border-left: 4px solid var(--success); border-radius: 9px; background: #fff; box-shadow: 0 12px 40px rgba(8, 32, 60, .20); font-size: 13px; animation: toast-in .2s ease; }
.toast.error { border-color: var(--danger); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field.span-3 { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .detail-item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 860px) {
  .pc-shell { grid-template-columns: 74px 1fr; }
  .pc-sidebar { width: 74px; }
  .pc-logo { padding: 17px; }
  .pc-logo strong, .pc-logo small, .nav-title, .nav-link span:not(.nav-ico) { display: none; }
  .nav-link { justify-content: center; padding: 12px; }
  .pc-main { grid-column: 2; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .schema-field-grid { grid-template-columns: 1fr; }
  .schema-editor-toolbar { align-items: stretch; flex-direction: column; }
  .schema-editor-toolbar .select { width: 100%; }
  .phone-stage { grid-template-columns: 1fr; }
  .demo-panel { position: static; }
}
@media (max-width: 620px) {
  .launcher { padding: 24px 18px; }
  .entry-grid { grid-template-columns: 1fr; }
  .device-page { padding: 0; }
  .device-toolbar { padding: 8px; margin: 0; background: #fff; }
  .device-toolbar .toolbar-left strong, .device-toolbar .toolbar-right .role-select { display: none; }
  .phone { width: 100%; height: calc(100vh - 54px); min-height: 0; border: 0; border-radius: 0; }
  .demo-panel { display: none; }
  .content { padding: 17px 14px 38px; }
  .topbar { padding: 9px 14px; }
  .breadcrumb { display: none; }
  .role-select { max-width: 170px; }
  .stats-grid, .form-grid { grid-template-columns: 1fr; }
  .field.span-2, .field.span-3 { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item, .detail-item:nth-child(3n), .detail-item:nth-child(2n) { border-right: 0; }
  .page-heading { flex-direction: column; }
  .heading-actions { justify-content: flex-start; }
  .form-footer { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
}
