:root {
    --ink: #17252a;
    --muted: #68777a;
    --soft: #f2f5f4;
    --line: #dfe7e4;
    --accent: #087f73;
    --accent-dark: #05645c;
    --accent-wash: #e5f3ef;
    --warn: #9b6215;
    --danger: #b7463e;
    font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.app-shell { min-height: 100vh; }
.topbar { height: 68px; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 11px; align-items: center; letter-spacing: .01em; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 9px 9px 9px 2px; font-size: 20px; transform: rotate(-12deg); }
.brand strong { display: block; font-size: 17px; line-height: 20px; }
.brand small { display: block; color: var(--muted); font-size: 11px; line-height: 16px; }
.topbar-context { display: flex; align-items: center; gap: 18px; color: var(--muted); }
.env-tag { color: var(--accent-dark); background: var(--accent-wash); border-radius: 3px; padding: 3px 9px; font-size: 12px; }
.operator { font-size: 13px; }
.avatar { display: grid; width: 29px; height: 29px; place-items: center; background: #d9ebe5; color: var(--accent-dark); border-radius: 50%; font-weight: 700; }
.body-grid { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.sidebar { padding: 30px 14px 20px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.side-label { color: #8b9898; font-size: 11px; letter-spacing: .12em; padding: 0 13px 8px; }
.side-label-spaced { margin-top: 25px; }
.side-link { display: flex; align-items: center; gap: 12px; min-height: 39px; padding: 8px 13px; margin: 2px 0; color: #58686a; border-radius: 5px; transition: background .15s, color .15s; }
.side-link span { width: 16px; color: #8b9a9a; text-align: center; font-size: 16px; }
.side-link:hover { color: var(--accent-dark); background: #f3f8f6; }
.side-link.active { color: var(--accent-dark); background: var(--accent-wash); font-weight: 700; }
.side-link.active span { color: var(--accent); }
.side-footer { margin-top: auto; padding: 16px 13px 4px; color: #778584; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.9; }
.side-footer a { color: var(--accent); }
.side-footer small { color: #9aa6a4; }
.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3ca477; }
.compact-surface { padding-bottom: 16px; }
.page-footnote { color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.main-content { width: 100%; max-width: 1440px; padding: 38px 48px 60px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
h1 { margin: 3px 0 5px; font-size: 28px; letter-spacing: -.03em; line-height: 1.3; }
h2 { margin: 0 0 14px; font-size: 17px; letter-spacing: -.015em; }
h3 { margin: 0; font-size: 14px; }
.subtitle { margin: 0; color: var(--muted); }
.heading-actions { display: flex; gap: 9px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 37px; padding: 7px 16px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-weight: 700; transition: background .15s, border .15s; }
.button-primary { color: white; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: var(--accent-dark); background: #fff; border-color: #b8d6cf; }
.button-secondary:hover { background: var(--accent-wash); }
.button-quiet { color: var(--muted); background: transparent; }
.button-danger { color: #a43e37; background: #fff; border-color: #e1b6b2; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.notice { padding: 12px 15px; margin: 0 0 22px; border-left: 3px solid var(--accent); background: #fff; color: #45605f; }
.notice.warning { border-color: #d39437; background: #fffaf1; color: #78531e; }
.notice.success { border-color: #3ca477; background: #effaf5; color: #2e725b; }
.notice.error { border-color: var(--danger); background: #fff5f4; color: #913a35; }
.data-strip { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); margin-bottom: 34px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 17px 21px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { display: block; margin-top: 3px; font-size: 24px; font-weight: 700; letter-spacing: -.04em; }
.metric-foot { color: #82908f; font-size: 11px; }
.surface { padding: 22px 24px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.surface + .surface { margin-top: 24px; }
.surface-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.surface-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { color: #73807f; background: #f8faf9; font-size: 12px; font-weight: 700; text-align: left; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { color: #334346; }
.muted { color: var(--muted); }
.status { display: inline-block; padding: 2px 8px; border-radius: 3px; background: #edf2f1; color: #61716e; font-size: 12px; }
.status.good { color: #23735a; background: #e6f5ee; }
.status.warn { color: #8c5e1d; background: #fff3db; }
.status.bad { color: #a03e38; background: #fff0ee; }
.status.dev { color: #5b5e8f; background: #eeedfb; }
.split-layout { display: grid; grid-template-columns: minmax(330px, .94fr) minmax(360px, 1.06fr); gap: 24px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 19px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; color: #445456; font-size: 13px; font-weight: 700; }
.help { color: #859290; font-size: 11px; font-weight: 400; }
input[type="text"], input[type="number"], input[type="search"], select, textarea { width: 100%; min-height: 38px; padding: 7px 10px; color: var(--ink); background: #fff; border: 1px solid #cbd8d5; border-radius: 4px; outline: none; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash); }
.input-unit { display: flex; align-items: center; }
.input-unit input { border-radius: 4px 0 0 4px; }
.unit { min-height: 38px; display: inline-flex; align-items: center; padding: 0 11px; color: #72817f; background: #f4f7f6; border: 1px solid #cbd8d5; border-left: 0; border-radius: 0 4px 4px 0; }
.field-error { display: block; margin-top: 4px; color: var(--danger); font-size: 12px; }
.check-list { display: grid; gap: 9px; }
.check-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; background: #f8faf9; border: 1px solid transparent; border-radius: 4px; }
.check-item:has(input:checked) { background: var(--accent-wash); border-color: #b8dcd3; }
.check-item input { margin-top: 5px; accent-color: var(--accent); }
.check-item span { display: block; }
.check-name { font-weight: 700; }
.check-help { color: var(--muted); font-size: 11px; }
.details-toggle { display: flex; align-items: center; gap: 7px; margin: 22px 0 0; padding-top: 17px; color: var(--accent-dark); border-top: 1px solid var(--line); cursor: pointer; font-weight: 700; }
.details-toggle summary { list-style: none; }
.details-toggle summary::-webkit-details-marker { display: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.preview-panel { min-height: 100%; background: #fbfdfc; border-left: 3px solid var(--accent); }
.preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.preview-name { font-size: 21px; font-weight: 700; }
.preview-price { color: var(--accent-dark); font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.preview-price small { color: var(--muted); font-size: 12px; font-weight: 400; }
.preview-rule { border: 0; border-top: 1px solid var(--line); margin: 19px 0; }
.preview-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preview-meta div { padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.preview-meta dt { color: var(--muted); font-size: 11px; }
.preview-meta dd { margin: 2px 0 0; font-weight: 700; }
.preview-list { display: grid; gap: 8px; padding: 0; margin: 15px 0 0; list-style: none; }
.preview-list li::before { content: "✓"; display: inline-block; width: 21px; color: var(--accent); font-weight: 700; }
.preview-list li.off { color: #99a4a2; text-decoration: line-through; }
.preview-list li.off::before { content: "–"; color: #aeb8b5; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline-row { display: grid; grid-template-columns: 130px 20px 1fr; gap: 12px; min-height: 66px; }
.timeline-date { color: var(--muted); font-size: 12px; text-align: right; }
.timeline-marker { position: relative; display: flex; justify-content: center; }
.timeline-marker::before { content: ""; width: 9px; height: 9px; margin-top: 5px; background: var(--accent); border: 3px solid #d5eee8; border-radius: 50%; z-index: 1; }
.timeline-marker::after { content: ""; position: absolute; top: 14px; bottom: -3px; width: 1px; background: var(--line); }
.timeline-row:last-child .timeline-marker::after { display: none; }
.timeline-body strong { display: block; font-size: 13px; }
.timeline-body span { color: var(--muted); font-size: 12px; }
.product-tabs { display: flex; gap: 0; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.product-tab { padding: 10px 18px; color: var(--muted); border-bottom: 2px solid transparent; }
.product-tab.active { color: var(--accent-dark); border-color: var(--accent); font-weight: 700; }
.plan-tabs { display: flex; gap: 10px; margin: -8px 0 25px; overflow-x: auto; }
.plan-tab { min-width: 180px; padding: 11px 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.plan-tab strong, .plan-tab span { display: block; }
.plan-tab span { margin-top: 2px; font-size: 11px; }
.plan-tab.active { color: var(--accent-dark); border-color: #8cc7bb; background: var(--accent-wash); }
.member-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 25px; margin-bottom: 25px; }
.member-state { padding: 25px; color: #fff; background: #175f59; }
.member-state .eyebrow { color: #9bd8cc; }
.member-state h1 { margin: 5px 0 10px; }
.member-state p { color: #c1e2dc; margin: 0; }
.member-date { margin-top: 25px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.22); }
.member-date strong { display: block; font-size: 21px; }
.account-summary { padding: 24px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row span { color: var(--muted); }
.plan-choice { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.plan-choice:last-child { border-bottom: 0; }
.plan-choice .plan-details p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.plan-choice .plan-cost { text-align: right; font-size: 18px; font-weight: 700; }
.plan-cost small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.payment-note { margin-top: 14px; padding: 11px 13px; color: #77511d; background: #fff8e9; font-size: 12px; }
.filter-row { display: flex; gap: 10px; align-items: end; margin-bottom: 18px; }
.filter-row .field { min-width: 170px; }
.filter-row .field.search { flex: 1; }
.empty-state { padding: 38px 15px; color: var(--muted); text-align: center; }
.inline-form { display: inline; }
.budget-reset { display: flex; align-items: end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.budget-reset .field:first-of-type { min-width: 290px; }
.budget-reset .field:nth-of-type(2) { flex: 1; }
.form-help { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.status + .status { margin-left: 5px; }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(23,37,42,.42); z-index: 10; }
.confirm-panel { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; background: #fff; box-shadow: 0 15px 45px rgba(23,37,42,.2); }
@media (max-width: 980px) { .main-content { padding: 28px 24px 45px; } .split-layout, .member-intro { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .topbar { height: 60px; padding: 0 16px; } .operator { display: none; } .body-grid { display: block; min-height: calc(100vh - 60px); } .sidebar { display: block; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; } .side-label, .side-footer { display: none; } .side-link { display: inline-flex; min-height: 35px; margin: 0 2px; padding: 6px 9px; } .side-label-spaced { display: none; } .main-content { padding: 24px 14px 38px; } .page-heading { display: block; } .heading-actions { margin-top: 15px; } h1 { font-size: 24px; } .data-strip { grid-template-columns: repeat(2, 1fr); } .metric:nth-child(2) { border-right: 0; } .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } .surface { padding: 18px 15px; } .preview-meta { grid-template-columns: 1fr; } .filter-row { display: grid; grid-template-columns: 1fr 1fr; } .filter-row .field { min-width: 0; } .filter-row .field.search { grid-column: 1 / -1; } .budget-reset { display: grid; align-items: stretch; } .budget-reset .field:first-of-type { min-width: 0; } }
