@charset "UTF-8";
:root {
    color-scheme: light;
    --bg: #f4f6f8;
    --ink: #182d29;
    --muted: #76857f;
    --line: #e5ebe8;
    --green: #15745d;
    --sidebar: #132e28;
    --red: #bd4b48;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 Inter, "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: var(--green); text-decoration: none; }
a:hover { color: #0b4b3c; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; background: var(--green); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s; }
button:hover, .button:hover { background: #0d614c; color: #fff; }
button:disabled { opacity: .45; cursor: not-allowed; }
.secondary { background: #fff; color: #43554e; border-color: #dbe3df; }
.secondary:hover { background: #f0f6f3; color: var(--green); border-color: #b5cbc1; }
.small { padding: 5px 12px; font-size: 12px; }
.quiet, .text-button { border: 0; padding: 0; border-radius: 0; background: none; color: var(--green); font-size: inherit; font-weight: 500; }
.quiet:hover, .text-button:hover { background: none; color: #0a4839; text-decoration: underline; }
.danger { background: var(--red); }
.danger:hover { background: #a33b38; }
.danger-text { color: var(--red); }
.muted, small, .subtle { color: var(--muted); }
small { display: block; font-size: 12px; line-height: 1.7; font-weight: 400; }
code, .mono { font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; }
code { overflow-wrap: anywhere; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; font-weight: 650; letter-spacing: -.6px; margin-bottom: 6px; line-height: 1.4; }
h2 { font-size: 18px; font-weight: 650; margin-bottom: 16px; }
h3 { font-size: 14px; margin-bottom: 10px; }
p { margin-bottom: 16px; }
input:not([type="checkbox"]), select, textarea { width: 100%; border: 1px solid #dce4e0; background: #fff; color: var(--ink); padding: 10px 12px; border-radius: 7px; outline: none; min-width: 0; }
input::placeholder, textarea::placeholder { color: #9ba7a1; }
input:focus, select:focus, textarea:focus { border-color: #609f8c; box-shadow: 0 0 0 3px #18775e12; }
input[readonly] { background: #f2f5f3; color: #6a7972; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green); flex-shrink: 0; cursor: pointer; }
label { display: block; font-weight: 500; margin-bottom: 18px; }
label input:not([type="checkbox"]), label select, label textarea { display: block; margin-top: 7px; }
label small { margin-top: 5px; }
textarea { resize: vertical; }
:focus-visible { outline: 2px solid #56a68e; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 226px; background: var(--sidebar); color: #d9e7df; padding: 32px 19px 22px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: #fff; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.7px; }
.brand:hover { color: #fff; }
.brand small { margin-top: 8px; color: #9aafa7; font-size: 9px; letter-spacing: .5px; white-space: nowrap; }
.logo { width: 39px; height: 39px; background: #b7edcd; color: #174d3a; border-radius: 11px; font-size: 31px; text-align: center; line-height: 39px; }
.nav-caption { font-size: 11px; color: #89a197; margin: 38px 15px 12px; letter-spacing: 1px; }
nav a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: #b5cac0; border-radius: 8px; margin-bottom: 5px; }
nav a:hover { background: #ffffff08; color: #fff; }
nav a.active { background: #265143; color: #d8f8e2; box-shadow: inset 3px 0 #a7dfbe; }
.nav-icon { width: 21px; font-size: 20px; line-height: 1; text-align: center; }
.nav-count { margin-left: auto; padding: 1px 7px; border-radius: 5px; background: #ffffff10; font-size: 11px; }
.sidebar-bottom { margin-top: auto; padding: 34px 13px 0; }
.workspace { display: flex; align-items: center; gap: 12px; border-top: 1px solid #ffffff13; padding-top: 20px; }
.workspace small { color: #86a295; font-size: 11px; }
.avatar { border: 1px solid #638374; width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; color: #bce2cf; }
.logout { background: none; color: #95b1a3; font-size: 12px; padding: 13px 0 0 46px; }
.logout:hover { background: none; color: white; }
.aside-copy { padding: 48px 10px; color: #9fb9ac; line-height: 2; }
.content { margin-left: 226px; }
.topbar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); padding: 0 34px; font-size: 12px; color: #43554c; }
.topbar .muted { margin-left: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; color: #819088; font-size: 10px; letter-spacing: 1px; }
.dot { height: 6px; width: 6px; background: #4b9b76; border-radius: 50%; }
main { max-width: 1620px; padding: 32px 34px 24px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.page-header p:last-child { margin-bottom: 0; font-size: 13px; }
.eyebrow { color: #8e9d94; font-size: 10px; font-weight: 600; letter-spacing: 1.9px; margin-bottom: 8px; }
.card { padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 22px; box-shadow: 0 3px 9px #203e3003; }
.table-card { padding: 0; overflow: hidden; }
.summary-strip { display: flex; align-items: center; gap: 28px; padding: 14px 20px; margin-bottom: 18px; background: #edf2ef; border: 1px solid #e2e9e5; border-radius: 9px; color: #6c7e74; font-size: 12px; flex-wrap: wrap; }
.summary-strip b { color: #274b3c; font-size: 17px; margin-left: 8px; font-weight: 600; }
.strip-note { margin-left: auto; font-size: 11px; color: #8a9a90; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.toolbar input, .toolbar select { width: auto; max-width: 165px; padding: 8px 11px; font-size: 12px; height: 37px; }
.toolbar .search { flex: 1 1 200px; max-width: 290px; }
.toolbar .event-filter { max-width: 135px; }
.toolbar button { padding: 7px 14px; font-size: 12px; }
.toolbar .quiet { font-size: 12px; padding: 0 5px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
th { background: #fafcfb; font-weight: 500; font-size: 11px; color: #849389; padding: 13px 18px; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 20px 18px; border-bottom: 1px solid #edf1ef; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdfc; }
td strong { font-weight: 600; font-size: 13px; }
td small { margin-top: 4px; font-size: 11px; max-width: 250px; overflow-wrap: anywhere; }
.operation { min-width: 158px; }
.row-actions { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.row-actions form, .actions form { margin: 0; }
.actions { display: flex; align-items: center; gap: 12px; }
.count-link, .nowrap { white-space: nowrap; }
.webhook-url { display: block; max-width: 310px; font-size: 11px; margin-bottom: 6px; }
.subtle { font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 3px 8px; font-size: 11px; background: #f0f2f1; color: #7d8982; white-space: nowrap; font-weight: 500; }
.badge.good, .badge.sent { color: #287151; background: #edf7f0; }
.badge.good::before { content: ''; width: 5px; height: 5px; background: #52a779; border-radius: 50%; }
.badge.blue, .badge.sending { color: #567798; background: #eff4fa; }
.badge.warning, .badge.pending, .badge.unknown { color: #a38239; background: #faf5e8; }
.badge.failed { color: #b15b56; background: #fbefed; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 20px; border-top: 1px solid var(--line); color: #8b988f; font-size: 11px; }
.page-tip { border-left: 2px solid #c9dcd0; padding: 1px 16px; color: #7b8c82; font-size: 12px; margin: 25px 3px; max-width: 1050px; }
.page-tip b { color: #526c5c; font-size: 12px; }
.page-tip p { margin: 5px 0 0; line-height: 1.9; }
.empty { text-align: center; padding: 54px 20px; color: #8d9e93; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; background: #f1f6f3; border: 1px solid #e3ece6; border-radius: 14px; margin: 0 auto 19px; font-size: 26px; color: #94b6a4; }
.empty h3 { font-size: 15px; color: #667d6e; }
.empty p { font-size: 12px; }
.identity { display: flex; gap: 12px; align-items: center; min-width: 190px; }
.entity-icon { display: grid; place-items: center; background: #eaf4ee; color: #6f9c82; width: 36px; height: 36px; border: 1px solid #e0ece4; border-radius: 8px; flex-shrink: 0; font-size: 20px; }
.target-icon { background: #eef3f8; color: #7694af; border-color: #e3eaf0; }
.type-note { margin-left: 4px; font-size: 10px; font-weight: 400; color: #93a197; }
.arrow-cell { width: 60px; padding-left: 0; padding-right: 0; text-align: center; color: #aabdb1; }
.arrow-cell span { font-size: 28px; }
.notice { padding: 13px 17px; border: 1px solid #d5e8dc; background: #edf7f0; color: #417255; border-radius: 8px; margin-bottom: 20px; font-size: 13px; }
.notice.error { background: #fff1ef; border-color: #f1d4d0; color: #a7564e; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 21px 23px; color: var(--ink); }
.stat-card > span { display: flex; justify-content: space-between; color: #718378; font-size: 12px; }
.stat-card i { color: #a4b7ab; font-style: normal; }
.stat-card > strong { display: block; font-size: 34px; line-height: 1.6; font-weight: 500; margin: 7px 0 0; letter-spacing: -1px; }
.stat-card:hover { border-color: #b7cec0; color: var(--ink); }
.stat-card small { font-size: 11px; }
.overview-grid, .settings-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 7px; }
.section-heading h2 { margin-bottom: 9px; }
.section-heading > a { font-size: 12px; }
.setup-step { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #eef2ef; padding: 18px 0; color: #425e4f; }
.setup-step:last-child { border: 0; padding-bottom: 1px; }
.setup-step > span:last-child { margin-left: auto; color: #a2b7a9; }
.setup-step strong { font-size: 13px; font-weight: 600; }
.setup-step small { margin-top: 3px; font-size: 11px; }
.step-number { border: 1px solid #e2ebe5; background: #f8faf8; border-radius: 9px; width: 39px; height: 39px; display: grid; place-items: center; color: #95ab9b; font-size: 12px; flex-shrink: 0; }
.step-number.done { background: #e7f3e9; color: #4b8d62; }
.health-list { margin: 15px 0; }
.health-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eef2ef; }
dt { color: #87978c; font-size: 12px; }
dd { margin: 0; font-size: 12px; }
.footnote { font-size: 11px; margin-bottom: 0; line-height: 1.9; }
.health-card { background: linear-gradient(125deg, #fff 60%, #f3f8f4); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; }
.check-line input { margin: 3px 0 0; }
.check-line small { margin-top: 4px; font-size: 11px; }
.form-divider { height: 1px; background: var(--line); margin: 26px 0; }
.stack-actions { display: grid; gap: 10px; margin-top: 23px; }
.stack-actions button { width: 100%; justify-content: space-between; font-size: 12px; }
.command-row { display: flex; gap: 20px; align-items: center; padding: 10px 0; font-size: 12px; color: #7a8e7f; }
.command-row code { width: 53px; color: #426e55; }
.narrow { max-width: 630px; }
.login { max-width: 480px; margin: 60px auto; padding: 40px; }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; margin: 18px auto; align-items: start; }
.install-form { padding: 26px; }
.install-form h2 { font-size: 23px; margin-bottom: 9px; }
.install-form form { margin-top: 20px; }
.install-form button { width: 100%; }
.install-form .login-symbol { margin-bottom: 16px; }
.install-checks { background: linear-gradient(145deg, #fff 65%, #f2f8f4); }
.setup-check { border-bottom: 1px solid var(--line); padding: 15px 0; }
.setup-check > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
.setup-check p { font-size: 12px; color: #9a7742; margin: 10px 0 0; }
.install-checks > .button { margin-top: 20px; }
.install-checks .page-tip { margin: 24px 0 0; }
.guide-list { padding-left: 20px; line-height: 2.2; }
.copy-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; background: #f5f8f6; border-radius: 7px; margin-bottom: 12px; }
.copy-line code { white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-line button { flex-shrink: 0; }
@media (max-width: 1050px) { .install-grid { grid-template-columns: 1fr; max-width: 560px; margin: 24px auto; gap: 0; } }
.login-symbol { display: grid; place-items: center; width: 45px; height: 45px; background: #e5f3e9; color: #4d8b62; font-size: 27px; border-radius: 12px; margin-bottom: 25px; }
.login button { width: 100%; }
footer { display: flex; justify-content: space-between; color: #abb6af; font-size: 10px; margin-top: 38px; padding-top: 18px; border-top: 1px solid #e5ebe7; }
dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 50px); padding: 30px; border: 1px solid #dfe9e2; border-radius: 14px; color: var(--ink); box-shadow: 0 25px 100px #122a3140; }
dialog::backdrop { background: #132b2a73; backdrop-filter: blur(3px); }
dialog h2 { margin-bottom: 8px; font-size: 22px; padding-right: 24px; }
dialog > .muted { font-size: 12px; margin-bottom: 25px; }
.dialog-close { position: absolute; right: 20px; top: 19px; width: 30px; height: 30px; display: grid; place-items: center; color: #87998b; border-radius: 6px; font-size: 24px; }
.dialog-close:hover { background: #edf3ef; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.inline-note { padding: 13px 16px; background: #f6f8f6; color: #839689; border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
.route-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 18px; }
.picker-panel { border: 1px solid var(--line); border-radius: 9px; padding: 14px; min-width: 0; }
.picker-heading { display: flex; justify-content: space-between; align-items: center; }
.picker-heading h3 { margin: 0; font-size: 13px; }
.picker-heading span { color: #a2b0a6; font-size: 11px; }
.picker-panel > input { padding: 8px 10px; font-size: 12px; margin-top: 12px; background: #fafcfb; }
.picker-tools { display: flex; gap: 16px; margin: 11px 0; font-size: 11px; }
.picker-list { height: 190px; overflow-y: auto; }
.picker-option { display: flex; gap: 9px; align-items: center; padding: 10px 8px; border-radius: 7px; margin-bottom: 4px; cursor: pointer; }
.picker-option:hover { background: #f4f8f5; }
.picker-option:has(input:checked) { background: #eaf5ee; }
.picker-option strong { font-size: 12px; font-weight: 500; }
.picker-option small { font-size: 10px; margin-top: 2px; overflow-wrap: anywhere; }
.route-summary { background: #eef6f1; color: #3f7854; padding: 14px; border-radius: 8px; font-size: 12px; margin-bottom: 10px; }
.edit-arrow { text-align: center; font-size: 22px; color: #9cb5a4; margin: -12px 0 10px; }
.delete-preview { border: 1px solid #e7eae6; border-radius: 8px; padding: 19px; background: #f9faf8; margin: 22px 0; font-weight: 600; overflow-wrap: anywhere; }
.message-meta { margin: 24px 0; }
.message-meta > div { display: grid; grid-template-columns: 85px 1fr; gap: 12px; margin-bottom: 12px; }
.message-meta dd { overflow-wrap: anywhere; }
.message-body { background: #f5f7f5; border: 1px solid #e4eae6; border-radius: 8px; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.9 Consolas, "Microsoft YaHei", monospace; max-height: 300px; overflow-y: auto; }
.retry-form { margin-top: 20px; }
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); padding: 12px 22px; border-radius: 8px; background: #214d3d; color: #fff; z-index: 10; box-shadow: 0 5px 25px #132f3020; font-size: 13px; }
@media (min-width: 1600px) { main { padding: 38px 46px; } td { padding-top: 23px; padding-bottom: 23px; } }
@media (max-width: 1150px) { .sidebar { width: 195px; padding-left: 13px; padding-right: 13px; } .content { margin-left: 195px; } main { padding: 25px 22px; } .topbar { padding: 0 22px; } .strip-note { display: none; } .stats-grid { gap: 12px; } .stat-card { padding: 17px; } .overview-grid, .settings-grid { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 760px) { .sidebar { position: static; width: 100%; padding: 16px; } .brand { font-size: 22px; } .brand small { display: none; } .logo { width: 30px; height: 30px; line-height: 30px; font-size: 24px; border-radius: 8px; } .nav-caption, .sidebar-bottom, .aside-copy { display: none; } nav { display: flex; gap: 5px; overflow-x: auto; margin-top: 15px; } nav a { flex-shrink: 0; padding: 7px 10px; margin: 0; font-size: 12px; } .nav-icon, .nav-count { display: none; } .content { margin-left: 0; } .topbar { min-height: 48px; padding: 0 18px; } .topbar-right { font-size: 9px; } main { padding: 22px 16px; } .page-header { align-items: flex-start; } .page-header > .button { font-size: 11px; padding: 9px 11px; margin-top: 20px; } h1 { font-size: 24px; } .page-header p:last-child { font-size: 11px; max-width: 240px; } .eyebrow { font-size: 8px; } .summary-strip { gap: 14px; padding: 12px; } .summary-strip b { font-size: 15px; } .stats-grid { grid-template-columns: 1fr 1fr; } .toolbar { padding: 15px; } .toolbar .search { max-width: none; } .card { padding: 20px; } .table-card { padding: 0; } td, th { padding-left: 14px; padding-right: 14px; } .operation { min-width: 140px; } .route-picker { gap: 10px; } .picker-panel { padding: 10px; } .picker-list { height: 210px; } dialog { padding: 24px 18px; max-height: calc(100dvh - 30px); } .form-grid { grid-template-columns: 1fr; gap: 0; } .modal-actions { gap: 8px; } footer span { display: none; } .login { margin-top: 25px; } }

.guide-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.guide-code { background: #f5f7f5; border: 1px solid #e4eae6; border-radius: 8px; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 Consolas, "Microsoft YaHei", monospace; }
