:root {
    --ink: #0b1726;
    --muted: #657487;
    --line: #dfe7ee;
    --paper: #f4f7f9;
    --white: #ffffff;
    --nav: #07131f;
    --nav-soft: #102131;
    --cyan: #19b9d1;
    --cyan-dark: #0c879b;
    --lime: #a9e43b;
    --purple: #8f7cf4;
    --orange: #ff9e4a;
    --danger: #e05252;
    --shadow: 0 16px 40px rgba(20, 42, 62, .08);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "Inter", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.login-body { background: var(--nav); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 9vw; color: white; background: radial-gradient(circle at 20% 20%, rgba(25,185,209,.2), transparent 35%), linear-gradient(145deg, #07131f 0%, #0d2233 100%); }
.login-brand::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg, black, transparent 90%); }
.login-brand > * { position: relative; z-index: 1; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; color: var(--nav); font-weight: 900; background: var(--lime); box-shadow: inset -8px -8px 18px rgba(25,185,209,.18); transform: rotate(-4deg); }
.brand-mark span { transform: rotate(4deg); }
.brand-mark-large { width: 66px; height: 66px; border-radius: 20px; font-size: 28px; margin-bottom: 42px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--cyan-dark); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.login-brand .eyebrow { color: var(--lime); }
.login-brand h1 { margin: 0; max-width: 680px; font-size: clamp(48px, 6vw, 88px); line-height: .96; letter-spacing: -.065em; }
.login-brand-copy > p:last-child { max-width: 520px; margin: 28px 0 0; color: #a7b7c5; font-size: 18px; line-height: 1.75; }
.signal-grid { position: absolute; right: 7%; bottom: 7%; display: grid; grid-template-columns: repeat(3, 10px); gap: 10px; }
.signal-grid i { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); animation: pulse 2.6s infinite; }
.signal-grid i:nth-child(3n) { background: var(--lime); animation-delay: .4s; }
.signal-grid i:nth-child(even) { opacity: .35; animation-delay: .8s; }
@keyframes pulse { 0%, 100% { transform: scale(.7); opacity: .35; } 50% { transform: scale(1); opacity: 1; } }
.login-panel { display: grid; place-items: center; padding: 8vw; background: #f5f8fa; }
.login-card { width: min(430px, 100%); }
.login-heading { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(169,228,59,.15); }
.login-card h2 { margin: 30px 0 8px; font-size: 38px; letter-spacing: -.045em; }
.login-card > p { color: var(--muted); margin: 0 0 35px; }
.field-label { display: block; margin: 20px 0 8px; font-size: 13px; font-weight: 750; }
.text-input, input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); outline: none; transition: .18s ease; }
.text-input { height: 52px; padding: 0 15px; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25,185,209,.1); }
.primary-button, .outline-button, .ghost-button, .text-button, .icon-button, .back-button { border: 0; }
.primary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; border-radius: 11px; background: var(--ink); color: white; font-weight: 760; box-shadow: 0 10px 20px rgba(11,23,38,.16); }
.primary-button:hover { background: #10283b; transform: translateY(-1px); }
.primary-button span { color: var(--lime); font-size: 19px; }
.login-button { width: 100%; margin-top: 28px; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 24px !important; font-size: 12px; }
.secure-note span { color: var(--cyan); }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.alert-error { color: #a42b2b; background: #fff0f0; border: 1px solid #ffd5d5; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: var(--paper); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 30; color: #d9e3ea; background: var(--nav); }
.sidebar-head { min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.075); }
.sidebar-head strong { display: block; color: white; font-size: 15px; letter-spacing: -.02em; }
.sidebar-head small { display: block; margin-top: 4px; color: #6f8496; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.main-nav { padding: 17px 12px; overflow-y: auto; scrollbar-width: thin; }
.nav-label { padding: 19px 12px 8px; color: #526779; font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.nav-item { width: 100%; min-height: 42px; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 8px; padding: 4px 11px; margin: 2px 0; border: 0; border-radius: 10px; color: #9fb0bd; background: transparent; text-align: left; font-size: 13px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.055); }
.nav-item.is-active { color: white; background: var(--nav-soft); box-shadow: inset 3px 0 var(--lime); }
.nav-item em { min-width: 23px; height: 20px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); color: #7890a2; font-size: 10px; font-style: normal; }
.nav-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--cyan); background: rgba(25,185,209,.09); font-size: 11px; font-weight: 800; }
.nav-item.is-active .nav-icon { color: var(--nav); background: var(--lime); }
.sidebar-foot { margin-top: auto; padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.075); }
.provider-chip { display: flex; align-items: center; gap: 12px; padding: 10px 2px 14px; }
.provider-chip strong, .provider-chip small { display: block; }
.provider-chip strong { font-size: 12px; color: white; }
.provider-chip small { margin-top: 3px; color: #60788a; font-size: 10px; }
.ghost-button { width: 100%; min-height: 36px; border-radius: 9px; color: #8ea2b1; background: rgba(255,255,255,.055); }
.ghost-button:hover { color: white; }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; height: 72px; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(244,247,249,.92); backdrop-filter: blur(18px); }
.search-wrap { width: min(520px, 55vw); position: relative; display: flex; align-items: center; }
.search-wrap > span { position: absolute; left: 13px; color: #8493a0; font-size: 22px; transform: rotate(-12deg); }
.search-wrap input { height: 42px; padding: 0 54px 0 40px; background: rgba(255,255,255,.85); }
.search-wrap kbd { position: absolute; right: 10px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: #8b99a4; background: var(--paper); font: 10px/1.4 inherit; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.outline-button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-size: 12px; font-weight: 750; }
.outline-button:hover { border-color: #b7c6d1; box-shadow: 0 6px 16px rgba(20,42,62,.06); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--nav); background: var(--lime); font-size: 12px; font-weight: 850; }
.content { max-width: 1540px; margin: 0 auto; padding: 38px 40px 60px; }
.hero, .page-heading, .tool-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.hero h1, .page-heading h1, .tool-heading h1 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.055em; }
.hero p:last-child, .page-heading p:last-child, .tool-heading > div > p:last-child { max-width: 710px; margin: 17px 0 0; color: var(--muted); line-height: 1.7; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 20px; }
.stat-card { min-height: 150px; position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 8px 25px rgba(20,42,62,.04); }
.stat-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -28px; bottom: -35px; border-radius: 50%; background: currentColor; opacity: .08; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.stat-top i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stat-card strong { display: block; margin-top: 24px; color: var(--ink); font-size: 35px; letter-spacing: -.05em; }
.stat-card small { color: var(--muted); font-size: 11px; }
.stat-card.cyan { color: var(--cyan); } .stat-card.lime { color: #8fbf2b; } .stat-card.purple { color: var(--purple); } .stat-card.orange { color: var(--orange); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.quick-panel, .capability-panel, .tool-form-panel, .result-panel, .callback-panel { padding: 25px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.panel-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.safe-badge { padding: 7px 10px; border-radius: 30px; color: #56721e; background: #f0f9dd; font-size: 10px; font-weight: 750; }
.quick-form, .dynamic-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; }
.quick-form label > span, .dynamic-field > span { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 12px; font-weight: 750; }
.quick-form input, .quick-form textarea, .quick-form select, .dynamic-form input, .dynamic-form textarea, .dynamic-form select { min-height: 46px; padding: 11px 13px; }
textarea { resize: vertical; line-height: 1.6; }
.quick-form label small, .dynamic-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.confirm-line { display: flex !important; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px !important; line-height: 1.55; cursor: pointer; }
.confirm-line input { width: 16px; min-height: 16px; margin: 1px 0 0; accent-color: var(--cyan-dark); flex: 0 0 auto; }
.confirm-line span { margin: 0 !important; font-weight: 500 !important; }
.confirm-box { padding: 13px; border: 1px solid #f0dcbf; border-radius: 11px; background: #fff9f0; color: #7f633b; }
.full-button { width: 100%; margin-top: 2px; }
.text-button { padding: 3px; color: var(--cyan-dark); background: transparent; font-size: 11px; font-weight: 760; }
.text-button:hover { color: var(--ink); }
.capability-list { display: grid; }
.capability-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 13px 4px; border: 0; border-top: 1px solid #edf1f4; background: transparent; text-align: left; }
.capability-row:first-child { border-top: 0; padding-top: 3px; }
.capability-row:hover { padding-left: 8px; }
.cap-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--cyan-dark); background: #eaf8fa; font-size: 12px; font-weight: 850; }
.capability-row strong, .capability-row small { display: block; }
.capability-row strong { font-size: 12px; }.capability-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.capability-row em { color: #a5b1ba; font-style: normal; }
.callback-strip { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 20px; padding: 24px 26px; background: linear-gradient(100deg, #fff 0%, #f6fbf2 100%); }
.callback-strip h2 { margin: 0; font-size: 20px; }.callback-strip p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.send-chart-panel { margin-bottom: 20px; padding: 25px; }
.send-chart-panel .panel-heading { margin-bottom: 8px; }
.send-chart { position: relative; min-height: 250px; }
.send-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.send-chart-summary { position: absolute; right: 6px; top: -49px; display: flex; align-items: baseline; gap: 7px; }
.send-chart-summary strong { font-size: 24px; letter-spacing: -.04em; }
.send-chart-summary span { color: var(--muted); font-size: 10px; }
.chart-grid line { stroke: #e8eef2; stroke-width: 1; }
.chart-grid text { fill: #8a9aa6; font-size: 10px; font-family: inherit; }
.chart-line { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-dots circle { fill: white; stroke: var(--cyan-dark); stroke-width: 3; }
.chart-loading, .chart-empty { min-height: 250px; display: grid; place-items: center; color: var(--muted); font-size: 11px; }

.endpoint-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.endpoint-card { min-height: 235px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; text-align: left; box-shadow: 0 8px 24px rgba(20,42,62,.04); transition: .18s ease; }
.endpoint-card:hover { transform: translateY(-3px); border-color: #c3d2dc; box-shadow: 0 16px 35px rgba(20,42,62,.09); }
.endpoint-card-top { display: flex; align-items: center; justify-content: space-between; }
.risk-badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 30px; font-size: 9px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.risk-query { color: #247186; background: #e8f7fa; }.risk-send { color: #a3403f; background: #fff0ef; }.risk-manage { color: #946223; background: #fff6e8; }.risk-verify { color: #5f4eb0; background: #f1efff; }
.endpoint-card h3 { margin: 19px 0 9px; font-size: 17px; letter-spacing: -.025em; }
.endpoint-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.endpoint-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; }
.endpoint-card footer code, .endpoint-meta code { padding: 4px 7px; border-radius: 6px; color: var(--cyan-dark); background: #edf8fa; font-size: 9px; font-weight: 850; }
.endpoint-card footer span { color: var(--ink); font-size: 10px; font-weight: 760; }

.tool-heading { align-items: flex-start; justify-content: flex-start; }
.tool-heading .back-button { margin-top: 2px; }
.tool-heading .risk-badge { margin-left: auto; }
.back-button { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; background: white; }
.back-button:hover { border-color: #b8c6d1; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 20px; align-items: start; }
.endpoint-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 24px; padding: 11px; border-radius: 10px; background: var(--paper); }
.endpoint-meta span { overflow: hidden; color: var(--muted); font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.dynamic-field b, .dynamic-field em { padding: 2px 5px; border-radius: 5px; font-size: 8px; font-style: normal; }
.dynamic-field b { color: #a64040; background: #fff0f0; }.dynamic-field em { color: var(--muted); background: var(--paper); }
.preset-select { margin-bottom: 7px; min-height: 39px !important; padding: 8px 12px !important; color: var(--cyan-dark); background: #eff9fa !important; border-color: #cdecef !important; font-size: 11px; }
.empty-fields { display: grid; place-items: center; padding: 36px; border: 1px dashed #ccd9e1; border-radius: 12px; color: var(--muted); text-align: center; }
.empty-fields span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #6f9625; background: #eff8df; }
.empty-fields p { margin: 12px 0 0; font-size: 12px; }
.result-column { display: grid; gap: 16px; position: sticky; top: 92px; }
.result-panel { min-height: 365px; }
.result-empty, .result-error { min-height: 245px; display: grid; place-items: center; align-content: center; color: #98a7b2; text-align: center; }
.result-empty span { font: 28px/1 ui-monospace, monospace; color: #c2cdd5; }.result-empty p, .result-error p { max-width: 250px; margin: 14px 0 0; font-size: 11px; line-height: 1.6; }
.result-error { color: #a64040; }.result-error > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff0f0; font-weight: 850; }
.response-meta { display: flex; gap: 8px; margin-bottom: 10px; }
.response-meta span { padding: 4px 7px; border-radius: 6px; background: var(--paper); color: var(--muted); font-size: 9px; font-weight: 750; }
.result-body pre, .record-item pre { max-height: 520px; overflow: auto; margin: 0; padding: 15px; border-radius: 10px; color: #cce9d1; background: #0a1722; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.security-note { display: flex; gap: 12px; padding: 17px; background: #f8fbf5; }
.security-note > span { color: var(--lime); }.security-note strong { font-size: 12px; }.security-note p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.bulk-builder-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .65fr); gap: 20px; align-items: start; }
.bulk-builder-panel, .bulk-preview-panel { padding: 25px; }
.bulk-preview-column { display: grid; gap: 16px; position: sticky; top: 92px; }
.bulk-template-source { padding: 15px; border: 1px solid #dce7ed; border-radius: 12px; background: #f7fafb; }
.bulk-template-source span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.bulk-template-source p { margin: 0; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.bulk-grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 6px; }
.bulk-grid-head h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.bulk-grid-help { max-width: 420px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; text-align: right; }
.bulk-columns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(205px, 1fr); gap: 11px; padding-bottom: 8px; overflow-x: auto; }
.bulk-column { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.bulk-column > span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 780; }
.bulk-column textarea { min-height: 270px; padding: 11px 12px; resize: vertical; line-height: 1.7; white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.bulk-column small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.no-variable-column { display: grid; place-items: center; min-height: 130px; padding: 24px; border: 1px dashed #cad7df; border-radius: 12px; color: var(--muted); background: #fbfcfd; font-size: 11px; text-align: center; }
.preview-filter > span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 780; }
.preview-filter select { min-height: 43px; padding: 9px 12px; }
.phone-preview { overflow: hidden; border-radius: 18px; color: white; background: var(--nav); box-shadow: 0 16px 38px rgba(10, 23, 34, .18); }
.phone-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #9eb0bd; font-size: 10px; }
.phone-preview-top strong { color: var(--lime); font-size: 11px; }
.preview-message { min-height: 170px; padding: 20px 18px; color: #eef4f7; font-size: 13px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.preview-meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; color: #718899; background: rgba(255,255,255,.035); font-size: 9px; }
.bulk-result-panel { min-height: 230px; }

.callback-panel { margin-bottom: 20px; }
.callback-url { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid #edf1f4; }
.callback-url:first-of-type { border-top: 0; }
.callback-url strong, .callback-url code { display: block; }
.callback-url strong { margin-bottom: 6px; font-size: 12px; }.callback-url code { max-width: 65vw; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.records-list { display: grid; gap: 10px; }
.record-item { border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
.record-item summary { min-height: 68px; display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 13px; padding: 11px 16px; cursor: pointer; list-style: none; }
.record-item summary::-webkit-details-marker { display: none; }
.record-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--cyan-dark); background: #ecf8fa; }
.record-item summary strong, .record-item summary small { display: block; }.record-item summary strong { font-size: 12px; }.record-item summary small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.record-item summary em { color: #91a0ab; font-size: 10px; font-style: normal; }.record-status { padding: 5px 8px; border-radius: 7px; color: #46751b; background: #f0f8e6; font-size: 9px; font-weight: 800; }
.record-item pre { max-height: 430px; margin: 0 12px 12px; }
.empty-records, .loading-row, .loading-state, .fatal-state { display: grid; place-items: center; align-content: center; min-height: 350px; color: var(--muted); text-align: center; }
.empty-records span { color: #b2c0ca; font-size: 36px; }.empty-records h3 { margin: 14px 0 5px; color: var(--ink); }.empty-records p { margin: 0; font-size: 12px; }
.loader { width: 28px; height: 28px; border: 3px solid #dce7ed; border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fatal-state > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #b33; background: #fff0f0; font-weight: 900; }.fatal-state h2 { margin: 15px 0 5px; }.fatal-state p { margin: 0 0 18px; }
.toast-root { position: fixed; right: 24px; top: 90px; z-index: 100; display: grid; gap: 10px; pointer-events: none; }
.toast { min-width: 270px; display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 16px 35px rgba(10,23,34,.16); opacity: 0; transform: translateX(20px); transition: .22s ease; }
.toast.show { opacity: 1; transform: none; }.toast > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #4f7c22; background: #eef8df; font-weight: 850; }.toast.error > span { color: #a83c3c; background: #fff0f0; }.toast p { margin: 0; font-size: 11px; font-weight: 650; }
.mobile-only { display: none; }

@media (max-width: 1120px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .endpoint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid, .tool-layout, .bulk-builder-layout { grid-template-columns: 1fr; }
    .result-column, .bulk-preview-column { position: static; }
}

@media (max-width: 760px) {
    .login-shell { grid-template-columns: 1fr; }.login-brand { display: none; }.login-panel { min-height: 100vh; padding: 26px; }
    .app-shell { display: block; }.sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 270px; transition: .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.22); }.sidebar.open { transform: none; }
    .mobile-only { display: grid; }.sidebar-head .icon-button { margin-left: auto; color: white; background: transparent; font-size: 24px; }
    .topbar { height: 64px; padding: 0 14px; gap: 10px; }.topbar > .icon-button { width: 38px; height: 38px; place-items: center; border-radius: 10px; background: white; }
    .search-wrap { width: auto; flex: 1; }.search-wrap input { width: 100%; }.search-wrap kbd, .top-actions .avatar { display: none; }.outline-button { padding: 0 11px; }.top-actions .outline-button { font-size: 0; }.top-actions .outline-button::after { content: "余额"; font-size: 11px; }
    .content { padding: 26px 16px 45px; }.hero, .page-heading { align-items: flex-start; flex-direction: column; }.hero h1, .page-heading h1, .tool-heading h1 { font-size: 38px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }.stat-card { min-height: 130px; padding: 16px; }.stat-card strong { margin-top: 20px; font-size: 29px; }
    .form-row, .endpoint-grid { grid-template-columns: 1fr; }.callback-strip { align-items: flex-start; flex-direction: column; }.endpoint-card { min-height: 210px; }
    .tool-heading { display: grid; grid-template-columns: 40px 1fr; }.tool-heading .risk-badge { grid-column: 2; margin-left: 0; justify-self: start; }.quick-panel, .capability-panel, .tool-form-panel, .result-panel, .callback-panel { padding: 19px; }
    .record-item summary { grid-template-columns: 36px 1fr auto; }.record-item summary em { display: none; }.record-status { grid-column: 3; }.callback-url { align-items: flex-start; }.callback-url code { max-width: 62vw; }
    .toast-root { left: 16px; right: 16px; top: 78px; }.toast { min-width: 0; width: 100%; }
    .bulk-builder-panel, .bulk-preview-panel { padding: 19px; }.bulk-grid-head { align-items: flex-start; flex-direction: column; }.bulk-grid-help { text-align: left; }.bulk-columns { grid-auto-columns: minmax(185px, 82vw); }.bulk-column textarea { min-height: 220px; }
    .send-chart-panel { padding: 19px 12px 12px; }.send-chart { min-height: 190px; overflow-x: auto; }.send-chart svg { min-width: 670px; }.send-chart-summary { right: 8px; top: -45px; }
}
