:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #252c2e; background: #f8f9f9; font-size: 14px; letter-spacing: 0; --line: #e1e5e5; --muted: #707b7e; --accent: #14765d; --danger: #b63838; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a { touch-action: manipulation; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, pre:focus-visible { outline: 3px solid #7cc9b6; outline-offset: 3px; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #cbd2d2; background: #fff; color: #252c2e; padding: 10px 12px; border-radius: 5px; }
input { min-height: 42px; }
input::placeholder, textarea::placeholder { color: #879092; }
input:read-only { background: #f2f5f4; }
input[type="checkbox"] { width: 17px; height: 17px; min-height: 17px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
textarea { resize: vertical; min-height: 110px; }
select { min-height: 42px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 550; min-width: 0; }
p { line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
h1, h2, h3, strong { overflow-wrap: anywhere; }
h1, h2, h3 { font-weight: 650; margin: 0; }
h1 { font-size: 26px; line-height: 1.3; }
h2 { font-size: 17px; line-height: 1.5; }
h3 { font-size: 14px; line-height: 1.5; }
svg.lucide { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.8; }
.hidden { display: none !important; }
.subtle { color: var(--muted); font-size: 12px; line-height: 1.65; }
.eyebrow { color: var(--muted); font-size: 10px; margin-bottom: 7px; font-weight: 600; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 9px 14px; border: 1px solid #cbd2d2; color: #303a3c; background: #fff; border-radius: 5px; font-weight: 550; line-height: 1.35; flex-shrink: 0; text-align: center; }
.button:hover { background: #f0f4f3; text-decoration: none; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: #0c624b; }
.button.danger { color: var(--danger); border-color: #e4bbbb; }
.button.full { width: 100%; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid transparent; border-radius: 5px; color: #59666a; background: transparent; }
.icon-button:hover { background: #edf1f0; border-color: #dbe1df; }
.icon-button.primary { background: #e7f3ee; color: #116448; }
.icon-button.danger { color: var(--danger); }
.icon-button.danger:hover { background: #fcecec; border-color: #eed4d4; }
.form-stack { display: flex; flex-direction: column; gap: 17px; }
.form-stack > .button { align-self: flex-start; }
.form-stack > .button.full { align-self: stretch; }
.form-error { font-size: 13px; color: var(--danger); min-height: 0; font-weight: 400; }
.form-error:empty { display: none; }
.notice { background: #edf5f1; border-left: 3px solid #63a88f; padding: 12px 14px; color: #365c4d; font-size: 13px; line-height: 1.6; }
.notice.error { color: #963434; background: #fcf0ef; border-left-color: #cd7171; }
.notice.warning { color: #8d641c; background: #fff7e5; border-left-color: #d6ac55; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 550; padding: 4px 7px; border-radius: 3px; color: #367058; background: #e8f4ed; line-height: 1.45; overflow-wrap: anywhere; }
.status::before { content: ""; height: 5px; width: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status.neutral { color: #687577; background: #edf0f1; }
.status.warning { color: #9a691b; background: #fff3d8; }
.status.danger { color: #ab4545; background: #fbedeb; }
.status.live { color: #17664e; background: #e4f4ec; }
.boot-view { min-height: 100dvh; display: flex; gap: 17px; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); }
.boot-view > svg { width: 32px; height: 32px; color: var(--accent); }
.boot-view strong { color: #202c28; font-size: 25px; }
.auth-view { width: 100%; max-width: 410px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 46px 24px; }
.auth-brand { display: flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 650; margin-bottom: 35px; }
.auth-brand > svg { color: var(--accent); width: 30px; height: 30px; }
.auth-tabs { display: flex; margin-bottom: 26px; gap: 22px; border-bottom: 1px solid var(--line); }
.auth-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 0; }
.auth-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }
.auth-surface h1 { font-size: 22px; margin-bottom: 25px; }
.auth-surface .notice { margin-bottom: 20px; }
.auth-foot { display: flex; justify-content: center; gap: 24px; margin-top: 32px; font-size: 12px; }
.auth-foot a { color: var(--muted); }
.check-label { flex-direction: row; align-items: center; line-height: 1.7; font-weight: 400; }
.check-label a { margin: 0 3px; }
.app-shell { display: grid; grid-template-columns: 214px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; background: #202629; color: #b8c1c3; padding: 30px 15px 16px; }
.brand { display: flex; align-items: center; color: #fff; gap: 12px; padding: 0 12px; margin-bottom: 44px; }
.brand:hover { text-decoration: none; }
.brand > svg { width: 29px; height: 29px; color: #7cd1ac; }
.brand strong { font-size: 22px; }
.workspace-label { font-size: 11px; color: #849397; padding: 0 12px; margin-bottom: 12px; }
.navigation { display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; background: none; border: 0; border-radius: 5px; color: #b8c1c3; text-align: left; white-space: nowrap; font-size: 13px; }
.nav-item:hover { background: #2b3438; }
.nav-item.active { background: #35443f; color: #ddf4e8; }
.nav-count { margin-left: auto; font-size: 11px; color: #a2bfb1; }
.sidebar-foot { margin-top: auto; }
.identity { display: flex; gap: 9px; align-items: center; padding: 14px 4px; border-top: 1px solid #3a4447; }
.identity > svg { width: 23px; height: 23px; color: #97aaa7; }
.identity > div { flex: 1; min-width: 0; }
.identity strong { display: block; color: #f0f4f3; font-weight: 500; font-size: 12px; word-break: break-all; }
.identity span { display: block; font-size: 10px; margin-top: 4px; color: #91a0a3; }
.sidebar .icon-button { color: #a4b3b6; width: 30px; }
.sidebar .icon-button:hover { background: #354145; border-color: #455357; }
.legal-links { display: flex; gap: 16px; padding: 0 6px; font-size: 10px; }
.legal-links a { color: #8c9b9f; }
.workspace { min-width: 0; padding: 30px 34px 50px; max-width: 1600px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 25px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
#connectionNotice { margin: 0 0 18px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: #fff; }
.metric { padding: 0 22px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.metric > span svg { width: 15px; height: 15px; }
.metric > strong { display: block; font-size: 31px; font-weight: 600; margin-top: 9px; line-height: 1; }
.metric:first-child strong { color: #1b7658; }
.metric:nth-child(3) strong { color: #ab7832; }
.metric strong small { font-weight: 400; font-size: 14px; color: #8a9697; }
.section-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 26px 0 13px; }
.service-summary { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; }
.filters select { width: 148px; font-size: 12px; min-height: 36px; padding: 6px 28px 6px 10px; }
.search-field { position: relative; width: 220px; }
.search-field svg { position: absolute; top: 10px; left: 10px; width: 15px; height: 15px; color: #7b898b; }
.search-field input { font-size: 12px; min-height: 36px; padding: 8px 12px 8px 33px; }
.source-list { border-top: 1px solid var(--line); }
.source-row { padding: 19px 0 15px; border-bottom: 1px solid var(--line); }
.source-main { display: grid; grid-template-columns: minmax(170px, 1.5fr) minmax(150px, 1fr) minmax(148px, 1fr) auto; gap: 19px; align-items: start; }
.source-identity, .source-target, .source-state { min-width: 0; }
.source-identity strong { font-size: 14px; font-weight: 600; }
.source-identity > a { display: block; color: #839091; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; margin-top: 7px; }
.source-target strong { display: block; font-size: 12px; font-weight: 550; }
.source-target .subtle, .source-state .subtle { display: block; margin-top: 6px; font-size: 11px; }
.row-actions { display: flex; align-items: center; gap: 2px; }
.row-actions .icon-button { width: 32px; height: 34px; }
.row-actions svg { width: 16px; height: 16px; }
.source-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 18px; margin-top: 15px; font-size: 11px; color: #7d898c; }
.source-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-width: 0; }
.source-metadata > span { overflow-wrap: anywhere; }
.source-switches { display: grid; grid-template-columns: auto auto; gap: 18px; }
.source-details .source-title { max-width: 450px; color: #5c696c; }
.source-details a { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; }
.source-details a svg { width: 13px; height: 13px; }
.source-details .switch-line { white-space: nowrap; gap: 8px; color: #758486; font-size: 11px; }
.source-details .switch { width: 28px !important; height: 16px !important; min-height: 16px !important; }
.source-details .switch::before { width: 10px; height: 10px; }
.source-details .switch:checked::before { transform: translateX(12px); }
.row-error { font-size: 12px; color: #ae4c43; margin-top: 8px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 13px; padding: 52px 16px; color: var(--muted); border-bottom: 1px solid var(--line); }
.empty-state > svg { width: 32px; height: 32px; color: #a0b4ab; }
.empty-state h3 { color: #4c595c; font-size: 16px; }
.empty-state .button { margin-top: 5px; }
.empty-line { padding: 26px 15px; font-size: 13px; text-align: center; color: var(--muted); }
.events-section, .users-section { margin-top: 34px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.event-list { border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 144px minmax(90px, .6fr) minmax(200px, 2.5fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid #e9eded; font-size: 12px; }
.event-row time { color: #819093; font-size: 11px; }
.event-row strong { font-weight: 500; color: #526163; }
.event-row p { color: #5f6f72; font-size: 11px; margin-top: 4px; }
.inline-form { display: flex; gap: 14px; align-items: end; margin-bottom: 15px; }
.inline-form > label { max-width: 350px; flex: 1; }
.inline-form select { min-width: 112px; }
.inline-form + .form-error { margin: 12px 0; }
.link-box { border: 1px solid #b9d3c8; border-radius: 5px; background: #f3f9f6; padding: 16px; margin: 19px 0; }
.link-box .section-heading { margin-bottom: 10px; }
.link-box > h3 { margin-bottom: 11px; }
.copy-row { display: flex; align-items: center; gap: 7px; }
.copy-row input { font-size: 12px; flex: 1; background: #fff; }
.copy-row .button { font-size: 12px; }
.link-box p { margin-top: 10px; }
.account-list { border-top: 1px solid var(--line); margin-top: 24px; }
.account-row { display: grid; grid-template-columns: 40px minmax(140px, 1fr) minmax(120px, .5fr) auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.account-mark { display: flex; justify-content: center; align-items: center; width: 38px; height: 38px; border-radius: 5px; background: #faeae7; color: #c34d44; }
.account-mark svg { width: 25px; height: 25px; }
.account-identity { min-width: 0; }
.account-identity > strong { display: block; }
.account-identity > p { font-size: 11px; margin-top: 5px; color: var(--muted); }
.account-row .row-error { grid-column: 2 / -1; margin-top: -8px; }
.settings-section { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(230px, 1.4fr); gap: 32px; max-width: 900px; padding: 27px 0; border-top: 1px solid var(--line); }
.settings-section h2 { margin-bottom: 8px; }
.settings-section > div > .status { margin-top: 15px; }
.settings-section > form { width: 100%; max-width: 465px; }
.switch-line { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 14px; }
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 36px !important; height: 22px !important; min-height: 22px !important; border: 0; border-radius: 20px; background: #c5cfcd; padding: 0; cursor: pointer; }
.switch::before { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: transform .12s ease; }
.switch:checked { background: var(--accent); }
.switch:checked::before { transform: translateX(14px); }
.table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { font-size: 11px; color: #788487; font-weight: 500; padding: 13px 12px; background: #f1f4f3; white-space: nowrap; }
td { font-size: 12px; padding: 14px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
td:first-child { min-width: 120px; }
td time { white-space: nowrap; font-size: 11px; color: var(--muted); }
.align-right { text-align: right; }
.users-section > p { margin: -6px 0 16px; }
.table-button { padding: 6px 9px; min-height: 32px; font-size: 11px; white-space: nowrap; }
.dialog { width: min(590px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); padding: 0; border: 1px solid #d2d9d7; border-radius: 7px; color: #283235; background: #fff; box-shadow: 0 16px 60px #182e2a2b; }
.dialog::backdrop { background: #18262266; }
.source-dialog { width: min(660px, calc(100vw - 28px)); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 23px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 17px; }
.dialog-body { padding: 22px 24px; }
.dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 24px; background: #f8faf9; border-top: 1px solid var(--line); }
.dialog-foot > .subtle { margin-right: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.span-2 { grid-column: 1 / -1; }
.form-grid > .notice { grid-column: 1 / -1; }
.source-enable { padding-top: 20px; }
.log-dialog { width: min(940px, calc(100vw - 28px)); }
.log-toolbar { display: flex; align-items: end; gap: 10px; margin-bottom: 13px; }
.log-toolbar label { flex: 1; max-width: 440px; }
.log-toolbar .icon-button { margin-bottom: 3px; }
.log-content { background: #20272b; color: #d6e1df; font: 11px/1.7 ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0 0; padding: 17px; height: min(48dvh, 480px); min-height: 190px; overflow: auto; border-radius: 4px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1000; width: max-content; max-width: calc(100vw - 32px); background: #283934; color: #fff; padding: 12px 18px; border-radius: 5px; font-size: 13px; box-shadow: 0 6px 26px #1b262033; overflow-wrap: anywhere; line-height: 1.6; pointer-events: none; }
.toast.error { background: #873939; }
.legal-page { max-width: 760px; margin: 0 auto; padding: 45px 24px 80px; }
.legal-page .auth-brand { margin-bottom: 36px; }
.legal-page h1 { margin-bottom: 14px; }
.legal-page h2 { margin: 27px 0 10px; }
.legal-page p, .legal-page li { color: #526164; line-height: 1.85; }
.legal-page ul { padding-left: 24px; }
.legal-page > .button { margin-top: 32px; }
@media (min-width: 1450px) { .workspace { padding-left: 45px; padding-right: 45px; } }
@media (max-width: 1200px) { .app-shell { grid-template-columns: 190px minmax(0, 1fr); } .workspace { padding: 27px 24px 40px; } .source-main { grid-template-columns: minmax(170px, 1.3fr) minmax(135px, 1fr) minmax(155px, 1fr); gap: 14px; } .source-main > .row-actions { grid-column: 1 / -1; margin-top: -2px; } .source-details { margin-top: 7px; grid-template-columns: minmax(0, 1fr); }
.source-switches { justify-self: end; } .metric { padding: 0 16px; } .section-toolbar { align-items: flex-start; } .service-summary { flex-direction: column; align-items: flex-start; gap: 7px; } .account-row { grid-template-columns: 38px minmax(120px, 1fr) auto; } .account-row > .row-actions { grid-column: 2 / -1; } }
@media (max-width: 900px) { .app-shell { grid-template-columns: 174px minmax(0, 1fr); } .sidebar { padding-left: 10px; padding-right: 10px; } .brand { gap: 7px; padding: 0 8px; } .brand strong { font-size: 20px; } .nav-item { font-size: 12px; padding: 11px 8px; gap: 8px; } .desktop-only { display: none; } .source-main { grid-template-columns: minmax(160px, 1.1fr) minmax(130px, 1fr); } .source-state { grid-column: 1; } .source-main > .row-actions { grid-column: 2; align-self: center; flex-wrap: wrap; justify-content: flex-end; } .section-toolbar { flex-direction: column; } .service-summary { flex-direction: row; } .filters { width: 100%; } .search-field { width: auto; flex: 1; } .metric { padding: 0 12px; } .metric > span { font-size: 11px; gap: 4px; } .event-row { grid-template-columns: 125px minmax(0, 1fr); } .event-row > div { grid-column: 1 / -1; } .settings-section { grid-template-columns: 1fr; gap: 18px; } .inline-form { flex-wrap: wrap; } .inline-form > label { min-width: 140px; } }
@media (max-width: 680px) { .app-shell { display: block; } .sidebar { position: static; height: auto; padding: 15px 16px 10px; display: grid; grid-template-columns: 1fr auto; gap: 16px; } .brand { padding: 0; margin: 0; } .brand strong { font-size: 20px; } .brand > svg { width: 24px; height: 24px; } .workspace-label, .legal-links { display: none; } .navigation { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 5px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .nav-item { width: auto; flex-shrink: 0; padding: 9px 10px; font-size: 12px; gap: 7px; } .nav-item svg { width: 15px; height: 15px; } .nav-count { display: none; } .sidebar-foot { margin: 0; grid-column: 2; grid-row: 1; } .identity { padding: 0; border: 0; gap: 6px; } .identity > svg, .identity span { display: none; } .identity strong { max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .workspace { padding: 22px 17px 36px; } .topbar { gap: 8px; padding-bottom: 21px; } h1 { font-size: 23px; } .eyebrow { font-size: 9px; } .top-actions { gap: 4px; } .top-actions > .button { padding: 9px 10px; font-size: 12px; gap: 5px; min-height: 38px; } .top-actions > .icon-button { width: 32px; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; padding: 20px 0; } .metric { padding: 0 20px; } .metric:nth-child(2) { border: 0; } .metric > span { font-size: 11px; gap: 6px; } .metric > strong { font-size: 29px; } .metric > strong small { font-size: 13px; } .source-main { grid-template-columns: minmax(135px, 1fr) minmax(130px, 1fr); gap: 14px 13px; } .source-identity strong { font-size: 13px; } .source-target strong { font-size: 11px; } .source-main > .row-actions { flex-wrap: nowrap; gap: 0; } .row-actions .icon-button { width: 30px; height: 32px; } .source-details { margin-top: 13px; gap: 7px 12px; } .source-details .source-title { width: 100%; } .source-switches { justify-self: start; gap: 12px; } .source-details .detail-secondary { display: none; } .section-heading h2 { font-size: 16px; } .section-heading { align-items: flex-start; } .section-heading > span { text-align: right; } .event-row { grid-template-columns: 125px minmax(0, 1fr); gap: 5px 12px; } .inline-form > label { max-width: none; } #accountForm > label { width: 100%; flex-basis: 100%; } .account-row { grid-template-columns: 32px minmax(0, 1fr); gap: 10px 13px; } .account-row > .status { grid-column: 2; justify-self: start; } .account-row > .row-actions { justify-content: flex-start; flex-wrap: wrap; } .account-mark { width: 32px; height: 32px; } .account-row .button { font-size: 11px; padding: 7px 9px; min-height: 34px; } .copy-row { flex-wrap: wrap; } .copy-row input { flex-basis: calc(100% - 46px); } .copy-row .button { margin-top: 3px; } .link-box { padding: 13px; } .dialog { max-height: calc(100dvh - 24px); } .dialog-head { padding: 14px 16px; } .dialog-head h2 { font-size: 16px; } .dialog-body { padding: 18px 16px; } .dialog-foot { padding: 13px 16px; } .form-grid { grid-template-columns: 1fr; gap: 15px; } .source-enable { padding-top: 0; } .settings-section { gap: 20px; padding: 24px 0; } .log-content { padding: 12px; font-size: 10px; } .log-toolbar { gap: 4px; } .toast { bottom: 16px; } .source-dialog .dialog-body { max-height: 66dvh; overflow-y: auto; } }
@media (max-width: 370px) { .workspace { padding-left: 12px; padding-right: 12px; } .nav-item { padding: 9px 7px; gap: 5px; } .nav-item svg { display: none; } .source-main { grid-template-columns: 1fr; } .source-state { grid-column: 1; } .source-main > .row-actions { grid-column: 1; justify-content: flex-start; } .filters { flex-wrap: wrap; } .search-field { min-width: 100%; } .filters select { width: 100%; } .metric { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
