:root {
  --nav: #12382c;
  --nav-deep: #0c2b21;
  --nav-soft: #1c4e3c;
  --green: #2d7859;
  --green-dark: #215d45;
  --green-pale: #e7f1ec;
  --gold: #b58b42;
  --gold-pale: #f4ecd8;
  --bg: #f4f6f3;
  --surface: #fff;
  --surface-soft: #f8faf8;
  --ink: #1e2d26;
  --muted: #6c7b73;
  --line: #dfe7e1;
  --danger: #b5534e;
  --warning: #ae7c26;
  --shadow: 0 8px 24px rgba(26, 53, 41, .06);
  --radius: 14px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(181,139,66,.45); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; }
#authRoot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 20% 10%, rgba(181,139,66,.2), transparent 35%), linear-gradient(135deg, #12382c, #285e49 52%, #edf4ef); }
#authRoot[hidden] { display: none; }
.sidebar { width: 246px; flex: 0 0 246px; background: var(--nav); color: #e7f1ec; display: flex; flex-direction: column; padding: 26px 16px 18px; position: sticky; top: 0; height: 100vh; z-index: 20; }
.brand-block { display: flex; align-items: center; gap: 11px; padding: 0 10px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-lockup { display: grid; gap: 8px; width: 100%; padding: 3px 8px 0; }
.brand-logo { display: block; width: auto; object-fit: contain; object-position: left center; }
.brand-logo-chs { width: 142px; height: 58px; }
.brand-logo-eng { width: 128px; height: 39px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--gold); color: #fff; display: grid; place-items: center; font-family: Georgia, serif; font-size: 21px; box-shadow: 0 5px 14px rgba(0,0,0,.12); }
.brand-cn { font-weight: 700; letter-spacing: .06em; font-size: 16px; }
.brand-en { font-size: 10px; color: #a9c5b7; letter-spacing: .07em; margin-top: 4px; }
.workspace-label { color: #7fa596; font-size: 10px; letter-spacing: .16em; padding: 24px 12px 10px; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { border: 0; color: #c1d5cc; background: transparent; border-radius: 9px; min-height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 11px; text-align: left; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: var(--nav-soft); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav-icon { width: 21px; color: #95b9a9; font-size: 16px; text-align: center; }
.nav-item.active .nav-icon { color: #e7c77d; }
.nav-group-title { font-size: 11px; color: #7fa596; padding: 17px 12px 5px; letter-spacing: .05em; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.nav-settings { width: 100%; }
.service-line, .version-line { color: #8eafa1; font-size: 11px; display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.status-dot { width: 7px; height: 7px; background: #68b887; border-radius: 50%; box-shadow: 0 0 0 4px rgba(104,184,135,.14); }
.main-area { flex: 1; min-width: 0; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 19px; }
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.user-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 10px 5px 6px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 12px; }
.chevron { color: var(--muted); font-size: 13px; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--nav); font-size: 22px; }
.content-wrap { max-width: 1500px; margin: 0 auto; padding: 34px 38px 70px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head-copy { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.page-brand-context { display: grid; place-items: center; flex: 0 0 142px; padding: 0; border: 0; background: transparent; }
.page-brand-context img { display: block; width: 142px; height: 56px; object-fit: contain; }
.eyebrow { color: var(--green); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.page-title { font-size: 27px; line-height: 1.25; margin: 0; letter-spacing: -.02em; }
.page-desc { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.period-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.period-tools .segmented button { padding: 7px 9px; font-size: 12px; }
.period-select { min-width: 112px; }
.btn { min-height: 38px; padding: 0 15px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: .16s ease; }
.btn:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.btn-primary { color: #fff; border-color: var(--green); background: var(--green); }
.btn-primary:hover { color: #fff; background: var(--green-dark); border-color: var(--green-dark); }
.btn-quiet { background: var(--green-pale); color: var(--green-dark); border-color: transparent; }
.btn-gold { background: var(--gold-pale); color: #7c5b21; border-color: transparent; }
.btn-danger { color: var(--danger); background: #fcf1f0; border-color: transparent; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 21px; min-width: 0; }
.section-gap { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 16px; }
.card-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.metric-card { padding: 18px 20px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%; right: -25px; top: -27px; background: var(--green-pale); }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { font-size: 28px; font-weight: 760; letter-spacing: -.03em; margin: 10px 0 5px; position: relative; z-index: 1; }
.metric-sub { color: var(--muted); font-size: 12px; }
.metric-sub.up { color: var(--green); }
.metric-sub.down { color: var(--danger); }
.hero { background: linear-gradient(135deg, #12382c, #1e5943); color: #fff; border-radius: 18px; padding: 28px 30px; position: relative; overflow: hidden; margin-bottom: 20px; }
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; pointer-events: none; }
.hero::before { width: 360px; height: 360px; right: -120px; top: -190px; }
.hero::after { width: 260px; height: 260px; right: 80px; bottom: -220px; }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-brand { display: grid; justify-items: start; gap: 10px; margin-bottom: 17px; }
.hero-brand img { display: block; object-fit: contain; }
.hero-brand > img:first-child { width: 158px; height: 60px; }
.hero-english-lockup { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.hero-english-lockup img { width: 148px; height: 39px; opacity: .94; }
.hero-english-lockup span { color: #d7bc78; font-family: "Avenir Next", "Inter", "Segoe UI", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .13em; white-space: nowrap; }
.hero-kicker { color: #d7bc78; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.hero h1 { font-size: clamp(24px, 3vw, 36px); margin: 12px 0 8px; letter-spacing: -.03em; }
.hero p { color: #bdd6c9; margin: 0; line-height: 1.7; }
.hero .hero-actions { margin-top: 21px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.hero .btn:hover { background: rgba(255,255,255,.18); }
.section-label { font-size: 13px; color: var(--muted); font-weight: 700; margin: 25px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin-bottom: 15px; }
.toolbar-left, .toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field, .select { height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 0 10px; color: var(--ink); min-width: 120px; }
.search-field { min-width: 230px; }
.segmented { display: inline-flex; background: var(--bg); padding: 3px; border-radius: 8px; gap: 2px; }
.segmented button { border: 0; background: transparent; border-radius: 6px; padding: 7px 12px; color: var(--muted); }
.segmented button.active { color: var(--green-dark); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th { background: var(--surface-soft); color: var(--muted); text-align: left; font-size: 12px; font-weight: 700; padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 12px 14px; border-bottom: 1px solid #edf1ee; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfb; }
.table-number { font-variant-numeric: tabular-nums; text-align: right; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 8px; border-radius: 999px; }
.status.on { background: #e7f4eb; color: #277248; }
.status.off { background: #fbeceb; color: #a14e48; }
.status.warn { background: #fff5dd; color: #94671c; }
.thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: #edf2ee; display: block; }
.thumb.empty { display: grid; place-items: center; color: var(--muted); font-size: 18px; }
.image-button { padding: 0; border: 0; background: transparent; border-radius: 8px; display: block; }
.image-button:hover .thumb { outline: 2px solid var(--gold); outline-offset: 2px; }
.dish-cell { display: flex; gap: 10px; align-items: center; min-width: 190px; }
.dish-name { font-weight: 650; }
.dish-meta { color: var(--muted); font-size: 11px; margin-top: 3px; }
.text-link { color: var(--green); border: 0; background: transparent; padding: 0; }
.text-link:hover { text-decoration: underline; }
.empty-state { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 6px; }
.chart { min-height: 205px; display: flex; align-items: flex-end; gap: 10px; padding: 12px 4px 4px; }
.bar-col { flex: 1; min-width: 18px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 180px; }
.bar-value { font-size: 10px; color: var(--muted); }
.bar { width: 100%; max-width: 44px; min-height: 4px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #5ba27f, #2d7859); }
.bar-label { font-size: 10px; color: var(--muted); }
.progress-row { display: grid; grid-template-columns: 90px 1fr 65px; gap: 10px; align-items: center; margin: 14px 0; font-size: 12px; }
.progress-track { height: 8px; background: var(--green-pale); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--green); }
.todo-list { display: grid; gap: 8px; }
.todo { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 9px; background: var(--surface-soft); }
.todo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.todo-text { flex: 1; font-size: 13px; }
.todo-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.upload-zone { border: 1px dashed #b7c9be; border-radius: 10px; padding: 24px 18px; text-align: center; background: #fbfdfb; }
.upload-zone input { max-width: 100%; }
.subnav { display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 0 20px; }
.subnav button { white-space: nowrap; border: 0; background: transparent; color: var(--muted); padding: 10px 13px; border-bottom: 2px solid transparent; }
.subnav button.active { color: var(--green-dark); border-color: var(--green); font-weight: 700; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.data-list { display: grid; gap: 8px; }
.data-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.data-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--green-pale); color: var(--green-dark); display: grid; place-items: center; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }
.gallery-note { margin: -5px 0 14px; }
.gallery-tile { border: 1px solid var(--line); padding: 0; background: #fff; border-radius: 10px; overflow: hidden; text-align: left; color: var(--muted); }
.gallery-tile img { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--surface-soft); }
.gallery-tile span { display: block; padding: 8px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.gallery-tile:hover { border-color: var(--green); box-shadow: var(--shadow); }
.category-cell { display: inline-flex; align-items: center; min-width: 56px; justify-content: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.report-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.report-tag { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; color: var(--ink); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.report-tag:hover { border-color: var(--green); transform: translateY(-1px); box-shadow: var(--shadow); }
.report-tag > span:nth-child(2) { flex: 1; min-width: 0; }
.report-tag strong, .report-tag small { display: block; }
.report-tag small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.report-tag-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--green-pale); color: var(--green-dark); font-weight: 750; }
.report-frame-card { padding-bottom: 18px; }
.report-frame { display: block; width: 100%; min-height: 820px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.period-selects { display: flex; gap: 8px; flex-wrap: wrap; }
.report-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 28px; border-radius: 14px; background: linear-gradient(135deg, #183d2f, #2f6f4b); color: #f7fbf8; box-shadow: var(--shadow); }
.report-hero h2 { max-width: 650px; margin: 7px 0 8px; font-size: clamp(24px, 3vw, 38px); line-height: 1.2; }
.report-hero p { max-width: 660px; margin: 0; color: rgba(247,251,248,.78); line-height: 1.7; }
.report-hero .eyebrow { color: #e4c47c; }
.report-center-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.report-center-card { display: flex; align-items: center; gap: 14px; min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 7px 22px rgba(24,61,47,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.report-center-card:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow); }
.report-center-card.tone-green { background: linear-gradient(135deg, #f4fbf4, #fff); }
.report-center-card.tone-gold { background: linear-gradient(135deg, #fff9ec, #fff); }
.report-center-card.tone-blue { background: linear-gradient(135deg, #f2f7fc, #fff); }
.report-center-icon { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--green-pale); color: var(--green-dark); font-weight: 800; }
.tone-gold .report-center-icon { background: #fff0c7; color: #8a641e; }
.tone-blue .report-center-icon { background: #dfeaf7; color: #315a82; }
.report-center-main { display: grid; gap: 5px; min-width: 0; flex: 1; }
.report-center-main small { color: var(--green); font-weight: 700; }
.report-center-main strong { font-size: 17px; }
.report-center-main span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.report-center-arrow { color: var(--green); font-size: 20px; }
.report-reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-reading-grid > div { display: grid; gap: 5px; padding: 14px; border-radius: 10px; background: var(--surface-soft); }
.report-reading-grid span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.star-products-card { border-color: #dfc27a; background: linear-gradient(180deg, #fffdf7, #fff); }
.star-product-list { display: grid; gap: 8px; }
.star-product-row { display: block; padding: 0; border-radius: 10px; background: #fff; border: 1px solid #eee6d2; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.star-product-row:hover, .star-product-row.expanded { border-color: #c9a95d; box-shadow: 0 6px 18px rgba(77, 58, 16, .08); }
.star-product-summary { display: flex; align-items: center; gap: 12px; padding: 11px 12px; }
.star-rank { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #f5e5b7; color: #77551b; font-weight: 800; }
.star-product-main { min-width: 0; flex: 1; display: grid; gap: 3px; }
.star-product-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star-product-main small, .star-product-kpi small { color: var(--muted); font-size: 11px; }
.star-product-kpi { display: grid; gap: 3px; text-align: right; white-space: nowrap; }
.star-product-row > .status { white-space: nowrap; }
.star-product-chevron { color: var(--muted); font-size: 18px; transition: transform .18s; }
.star-product-row.expanded .star-product-chevron { transform: rotate(180deg); }
.star-product-detail { padding: 0 18px 15px 52px; border-top: 1px solid #f1ead9; }
.star-card-hint { margin: -4px 0 12px; }
.product-comparison-stack { display: grid; gap: 16px; }
.star-trend-panel { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee6d2; }
.star-trend-panel .card-title { margin-bottom: 12px; }
.star-trend-panel h3 { margin: 0; font-size: 15px; }
.star-trend-panel .card-title p { margin: 4px 0 0; }
.star-trend-chart { min-height: 156px; display: flex; align-items: flex-end; gap: 14px; padding: 10px 12px 0; border-radius: 10px; background: linear-gradient(180deg, #fffaf0, #fff); }
.star-trend-col { flex: 1; min-width: 34px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; color: #77551b; }
.star-trend-col strong { font-size: 11px; font-variant-numeric: tabular-nums; }
.star-trend-col small { color: var(--muted); font-size: 11px; }
.star-trend-bar { width: min(34px, 72%); min-height: 6px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #d9a441, #a87524); }
.product-period-note, .member-provider-note { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.product-comparison-card { min-width: 0; }
.product-comparison-card .table-wrap { max-height: 560px; }
.table-subtext { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.member-store-card { min-width: 0; }
.member-formula { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 12px; margin-bottom: 12px; border-radius: 9px; background: #f7faf7; color: var(--muted); font-size: 12px; }
.member-formula strong { color: var(--ink); font-size: 14px; }
.member-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.member-share-grid > div { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.member-share-grid strong, .member-share-grid small { display: block; }
.member-share-grid strong { font-size: 18px; color: var(--ink); }
.member-share-grid small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.city-bars { display: grid; gap: 9px; }
.city-bar-row { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(120px, 3fr) 48px; align-items: center; gap: 10px; font-size: 12px; }
.city-bar-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.image-hover-preview { position: fixed; z-index: 70; width: min(300px, 35vw); max-height: 42vh; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 16px 42px rgba(0,0,0,.24); pointer-events: none; }
.image-hover-preview img { display: block; width: 100%; max-height: calc(42vh - 12px); object-fit: contain; border-radius: 8px; background: var(--surface-soft); }
.knowledge-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.knowledge-search { display: flex; align-items: center; gap: 8px; width: min(460px, 100%); padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); }
.knowledge-search .field { border: 0; outline: 0; box-shadow: none; }
.knowledge-layout { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.7fr); gap: 16px; align-items: start; }
.knowledge-tree-panel, .knowledge-preview-panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(22, 52, 37, .06); }
.knowledge-tree-panel { max-height: calc(100vh - 220px); overflow: auto; padding: 10px; position: sticky; top: 18px; }
.knowledge-folder-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 3px 0; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.knowledge-folder-button:hover { background: var(--surface-soft); }
.knowledge-folder-button.active { border-color: #b9d7c0; background: #edf7ef; color: var(--green-dark); }
.knowledge-folder-button span { display: grid; gap: 3px; min-width: 0; }
.knowledge-folder-button strong { font-size: 13px; }
.knowledge-folder-button small { color: var(--muted); font-size: 11px; font-weight: 400; }
.knowledge-tree-children { padding: 0 4px 8px 8px; }
.knowledge-tree-dir { margin-left: calc(var(--tree-depth) * 10px); padding: 3px 0; }
.knowledge-tree-dir-name { padding: 5px 8px; color: var(--muted); font-size: 11px; }
.knowledge-tree-file { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.knowledge-tree-file:hover, .knowledge-tree-file.active { background: var(--surface-soft); }
.knowledge-tree-file.active { box-shadow: inset 3px 0 0 var(--green); }
.knowledge-file-icon { flex: 0 0 27px; display: grid; place-items: center; height: 27px; border-radius: 7px; background: #f1f5f1; color: var(--green-dark); font-size: 10px; font-weight: 700; }
.knowledge-file-copy { display: grid; gap: 3px; min-width: 0; }
.knowledge-file-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.knowledge-file-copy small { color: var(--muted); font-size: 10px; }
.knowledge-preview-panel { min-height: 560px; padding: 22px; }
.knowledge-preview-empty { display: grid; place-items: center; min-height: 500px; padding: 36px; color: var(--muted); text-align: center; }
.knowledge-preview-empty h2 { margin: 14px 0 7px; color: var(--ink); font-size: 20px; }
.knowledge-preview-empty p { max-width: 440px; margin: 0; line-height: 1.7; font-size: 12px; }
.knowledge-preview-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #edf7ef; color: var(--green-dark); font-size: 26px; }
.knowledge-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.knowledge-preview-head h2 { margin: 6px 0 5px; font-size: 19px; word-break: break-word; }
.knowledge-preview-head p { margin: 0; color: var(--muted); font-size: 11px; word-break: break-all; }
.knowledge-preview-content { padding-top: 18px; }
.knowledge-preview-image { display: block; width: min(100%, 760px); margin: 0 auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fafcf9; cursor: zoom-in; }
.knowledge-preview-image img { display: block; width: 100%; max-height: 65vh; object-fit: contain; border-radius: 8px; }
.knowledge-preview-caption { text-align: center; }
.knowledge-pdf-preview { display: block; width: 100%; min-height: 70vh; border: 1px solid var(--line); border-radius: 8px; background: #f6f8f6; }
.knowledge-text-preview { max-height: 70vh; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf7; color: var(--ink); white-space: pre-wrap; word-break: break-word; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.knowledge-sheet { margin-bottom: 18px; overflow: auto; }
.knowledge-sheet h3 { margin: 0 0 8px; font-size: 14px; }
.knowledge-sheet table { width: 100%; border-collapse: collapse; font-size: 11px; }
.knowledge-sheet td { min-width: 90px; padding: 7px 8px; border: 1px solid var(--line); vertical-align: top; }
.knowledge-unsupported { padding: 40px 20px; border-radius: 10px; background: var(--surface-soft); color: var(--muted); text-align: center; }
.knowledge-unsupported strong { display: block; margin-bottom: 8px; color: var(--ink); }
.library-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.library-category-wrap { display: grid; gap: 7px; min-width: 0; }
.library-category-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 78px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 6px 18px rgba(22, 52, 37, .05); cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.library-category-card:hover { border-color: #b9d7c0; transform: translateY(-1px); }
.library-category-card.active { border-color: var(--green); background: #edf7ef; box-shadow: inset 0 0 0 1px var(--green); }
.library-category-card > span:not(.library-category-icon) { display: grid; gap: 4px; min-width: 0; }
.library-category-card strong { font-size: 14px; }
.library-category-card small { color: var(--muted); font-size: 11px; }
.library-category-card b { color: var(--green-dark); font-size: 18px; font-variant-numeric: tabular-nums; }
.library-category-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #f4f7f2; color: var(--green-dark); font-size: 12px; font-weight: 750; }
.library-category-card.active .library-category-icon { background: #d9eedc; }
.library-upload-button { justify-content: center; min-height: 30px; padding: 6px 10px; font-size: 11px; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.library-group { margin-bottom: 19px; }
.library-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.library-group-head h3 { margin: 0; color: var(--ink); font-size: 14px; }
.library-group-head span { color: var(--muted); font-size: 11px; }
.library-card-grid { display: grid; gap: 9px; }
.library-card-grid.document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.library-card-grid.image-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.library-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.library-card:hover, .library-card.active { border-color: #9dc6a7; box-shadow: 0 8px 18px rgba(22, 52, 37, .08); }
.library-doc-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; }
.library-doc-card.active { background: #edf7ef; }
.library-file-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #f2f6f1; color: var(--green-dark); font-size: 10px; font-weight: 750; }
.library-card-copy { display: grid; gap: 4px; min-width: 0; }
.library-card-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }
.library-card-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.library-card-arrow { color: var(--green); font-size: 11px; white-space: nowrap; }
.library-image-card { overflow: hidden; padding: 0; }
.library-image-frame { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f5f7f4; }
.library-image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.library-image-card:hover .library-image-frame img { transform: scale(1.04); }
.library-image-card .library-card-copy { padding: 9px 10px 11px; }
.library-preview-panel { min-height: 230px; margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(22, 52, 37, .06); }
.library-preview-panel .knowledge-preview-empty { min-height: 190px; }
.auth-card { width: min(430px, calc(100vw - 32px)); padding: 28px; border: 1px solid rgba(213, 226, 216, .9); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 24px 70px rgba(19, 52, 38, .22); }
.auth-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; padding: 5px 0 17px; border-bottom: 1px solid var(--line); }
.auth-brand-logos { display: grid; gap: 4px; flex: 0 0 142px; padding: 9px 12px; border-radius: 12px; background: var(--nav); }
.auth-logo-chs { display: block; width: 118px; height: 48px; object-fit: contain; }
.auth-logo-eng { display: block; width: 105px; height: 33px; object-fit: contain; }
.auth-brand-copy { min-width: 0; }
.auth-brand .brand-mark { flex: 0 0 42px; width: 42px; height: 42px; font-size: 22px; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 18px; color: var(--green-dark); }
.auth-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.auth-tabs { display: flex; gap: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 9px 2px 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 700; }
.auth-tabs button.active { color: var(--green-dark); border-color: var(--green); }
.auth-message { margin-bottom: 14px; padding: 9px 11px; border-radius: 8px; color: #8b4545; background: #faecec; font-size: 12px; line-height: 1.5; }
.auth-form { display: grid; gap: 13px; }
.auth-form[hidden] { display: none !important; }
.auth-submit { width: 100%; margin-top: 5px; }
.auth-hint { color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-footnote { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.account-summary { display: grid; gap: 5px; padding: 14px; border-radius: 10px; background: var(--surface-soft); }
.account-summary strong { font-size: 18px; }
.account-summary span { color: var(--muted); font-size: 12px; }
.sync-badge { display: inline-flex; margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: #e8f5eb; color: #2f6f4b; font-size: 10px; font-style: normal; vertical-align: middle; }
.combo-item .combo-image { width: 38px; height: 38px; }
.combo-item .combo-image .thumb { width: 38px; height: 38px; }
.combo-item.has-image { grid-template-columns: 38px 62px minmax(90px, 1fr) auto; }
.combo-details { margin-top: 8px; font-size: 12px; }
.combo-details summary { color: var(--green); cursor: pointer; }
.combo-items { display: grid; gap: 6px; margin-top: 8px; }
.combo-item { display: grid; grid-template-columns: 62px minmax(90px, 1fr) auto; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 7px; background: #f5f7f5; }
.combo-item.included { background: #edf7ef; }
.combo-item.excluded { color: var(--muted); background: #f8f8f6; }
.combo-item > span { font-size: 10px; color: var(--green); }
.combo-item.excluded > span { color: var(--muted); }
.combo-item strong { font-size: 12px; font-weight: 650; }
.combo-item small { color: var(--muted); font-size: 11px; text-align: right; }
.editor-items { margin-top: 16px; max-height: 280px; overflow: auto; padding-right: 2px; }
.image-match-empty { cursor: pointer; }
.image-match-empty:hover .thumb { outline: 2px dashed var(--gold); outline-offset: 2px; }
.data-main { min-width: 0; flex: 1; }
.data-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-meta { color: var(--muted); font-size: 11px; margin-top: 3px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(14,31,23,.55); padding: 20px; }
.modal { width: min(760px, 100%); max-height: 90vh; overflow: auto; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
.modal-close { border: 0; background: transparent; color: var(--muted); font-size: 22px; }
.modal-body { padding: 20px; }
.image-modal .modal-body { padding: 0; background: #101614; display: grid; place-items: center; min-height: 300px; }
.image-modal-body { position: relative; width: min(94vw, 1100px); max-height: 90vh; padding: 12px; border-radius: 12px; background: #101614; display: grid; place-items: center; }
.image-modal-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.48); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.image-modal-body img { display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.image-modal img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.form-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.form-field.full { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; min-height: 38px; padding: 8px 10px; color: var(--ink); background: #fff; }
.editor-image-picker { display: flex; align-items: center; gap: 8px; }
.editor-image-picker select { flex: 1; min-width: 0; }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; color: #fff; background: #183d2f; padding: 11px 16px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
.loading { color: var(--muted); padding: 30px 0; }
.finance-editor-card { overflow: hidden; }
.finance-confirmed-note { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--gold); border-radius: 7px; background: #fffaf0; color: #6e5a31; font-size: 12px; line-height: 1.6; }
.finance-summary-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.finance-summary-strip > div { display: grid; gap: 4px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.finance-summary-strip span { color: var(--muted); font-size: 10px; }
.finance-summary-strip strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.finance-table-wrap { overflow: visible; max-height: none; border: 1px solid var(--line); border-radius: 9px; }
.finance-entry-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.finance-entry-table th { padding: 8px 6px; border-bottom: 1px solid var(--line); background: #f0f5ef; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.35; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.finance-entry-table td { padding: 5px 6px; border-bottom: 1px solid #edf1ec; vertical-align: middle; }
.finance-entry-table td { overflow-wrap: anywhere; }
.finance-entry-table th:last-child, .finance-entry-table td:last-child { width: 58px; }
.finance-table-wrap-meat .finance-entry-table th:first-child, .finance-table-wrap-meat .finance-entry-table td:first-child { width: 13%; }
.finance-table-wrap-meat .finance-entry-table th:last-child, .finance-table-wrap-meat .finance-entry-table td:last-child { width: 10%; }
.finance-table-wrap-expense .finance-entry-table th:first-child, .finance-table-wrap-expense .finance-entry-table td:first-child { width: 19%; }
.finance-table-wrap-other .finance-entry-table th:first-child, .finance-table-wrap-other .finance-entry-table td:first-child { width: 17%; }
.finance-entry-table .finance-hidden-cell { display: none; }
.finance-entry-table tr:hover td { background: #fbfdfb; }
.finance-cell-input { width: 100%; min-width: 0; max-width: 100%; min-height: 30px; padding: 5px 5px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); background: transparent; font: inherit; }
.finance-cell-input:focus { border-color: #9dc6a7; outline: 0; background: #fff; box-shadow: 0 0 0 2px rgba(76, 139, 92, .1); }
.finance-row-action { width: 48px; white-space: nowrap; }
.finance-rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.finance-rule-grid > div { display: grid; gap: 5px; padding: 12px; border-radius: 9px; background: var(--surface-soft); }
.finance-rule-grid strong { font-size: 12px; color: var(--green-dark); }
.finance-rule-grid span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.finance-table-card { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 72px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.finance-table-card:hover { border-color: #9dc6a7; box-shadow: 0 8px 18px rgba(22, 52, 37, .07); }
.finance-table-card > span:last-child { color: var(--green); font-size: 11px; white-space: nowrap; }
.finance-month-control { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.finance-month-control .select { min-width: 116px; }
.finance-upload-button { position: relative; overflow: hidden; }
.finance-upload-button input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.finance-upload-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.finance-upload-guide > div { display: grid; gap: 5px; padding: 13px; border-radius: 9px; background: var(--surface-soft); }
.finance-upload-guide strong { color: var(--green-dark); font-size: 12px; }
.finance-upload-guide span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.finance-store-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 8px 0 16px; }
.finance-store-heading h2 { margin: 5px 0 0; font-size: 22px; }
.finance-store-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.finance-store-tables { display: grid; gap: 18px; }
.finance-table-tabset { display: grid; gap: 10px; }
.finance-table-tab-title { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.finance-table-tabset .subnav { display: flex; flex-wrap: wrap; overflow: visible; margin: 0; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: #f5f8f4; }
.finance-table-tabset .subnav button { flex: 1 1 0; min-width: 0; padding: 10px 12px; border-radius: 8px; font-size: 12px; }
.finance-table-panel { min-width: 0; }
.finance-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.finance-editor-head .card-title { flex: 1; margin-bottom: 0; }
.finance-store-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.finance-store-card:hover { border-color: #9dc6a7; box-shadow: 0 8px 18px rgba(22, 52, 37, .07); }
.finance-store-card > span:last-child { color: var(--green); font-size: 11px; }
.finance-empty-table .empty-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; }
.finance-entry-table th { vertical-align: bottom; }
.finance-entry-table .finance-detail-row td { padding: 0; background: #fafcf9; }
.finance-detail-row:hover td { background: #fafcf9 !important; }
.finance-detail-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 10px 12px 12px; border-top: 1px dashed #dce6dd; }
.finance-detail-grid label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 10px; }
.finance-detail-grid label:last-child { grid-column: span 2; }
.finance-detail-grid .finance-cell-input { min-height: 28px; border-color: #e1e9e2; background: #fff; }
.finance-row-status { display: inline-flex; align-items: center; justify-content: center; padding: 3px 6px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.finance-row-status.ready { color: #2e7049; background: #e8f5eb; }
.finance-row-status.estimate { color: #8b641c; background: #fff3d7; }
.finance-row-status.final { color: #315a82; background: #eaf1fb; }
.finance-row-status.missing { color: #9a4b42; background: #fbecea; }
.finance-detail-toggle { margin-left: 4px; padding: 2px 5px; border: 1px solid #d7e4d8; border-radius: 999px; background: #fff; color: #56705a; font-size: 10px; line-height: 1.2; cursor: pointer; }
.finance-detail-toggle:hover { background: #edf7ef; color: #2f6f4b; }
.finance-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.finance-store-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.finance-store-summary { min-width: 0; }
.finance-store-summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.finance-store-summary-head strong { color: var(--ink); font-size: 16px; }
.finance-store-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.finance-store-metric-card { min-width: 0; padding: 13px 14px; }
.finance-store-metric-card .metric-value { font-size: 20px; }
.finance-store-metric-card .metric-sub { min-height: 28px; }
.finance-health-card { min-width: 0; }
.finance-health-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.finance-health-head h2 { margin: 4px 0 0; font-size: 20px; }
.finance-health-badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.finance-health-badge.ready { color: #2e7049; background: #e8f5eb; }
.finance-health-badge.watch { color: #8b641c; background: #fff3d7; }
.finance-health-badge.risk { color: #9a4b42; background: #fbecea; }
.finance-health-badge.missing { color: #65706a; background: #edf0ed; }
.finance-health-summary { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid #dce8dc; border-radius: 999px; color: #4d6b53; background: #f3f8f2; font-size: 11px; font-weight: 700; white-space: nowrap; }
.finance-health-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.finance-health-kpis > div { padding: 10px; border: 1px solid #e5ece5; border-radius: 10px; background: #fafcf9; }
.finance-health-kpis span, .finance-health-kpis small { display: block; color: var(--muted); font-size: 10px; }
.finance-health-kpis strong { display: block; margin: 4px 0 2px; color: var(--ink); font-size: 21px; letter-spacing: -0.03em; }
.finance-health-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.finance-health-columns > div, .finance-diagnostic { min-width: 0; }
.finance-health-columns h3 { margin: 0 0 8px; color: var(--ink); font-size: 13px; }
.finance-diagnostic { margin-bottom: 16px; }
.finance-diagnostic h3 { margin: 0 0 8px; color: var(--ink); font-size: 13px; }
.finance-health-table, .finance-breakdown-table { width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.finance-health-table th, .finance-health-table td, .finance-breakdown-table th, .finance-breakdown-table td { padding: 7px 6px; border-bottom: 1px solid #edf1ec; vertical-align: middle; }
.finance-health-table th, .finance-breakdown-table th { color: var(--muted); background: #f6f9f5; font-size: 10px; font-weight: 700; text-align: left; }
.finance-health-table th:not(:first-child), .finance-health-table td:not(:first-child), .finance-breakdown-table th:not(:first-child), .finance-breakdown-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.finance-health-table td:last-child { white-space: normal; overflow-wrap: anywhere; }
.finance-health-table .dimension-col { width: 25%; }
.finance-health-table .actual-col { width: 15%; }
.finance-health-table .target-col { width: 19%; }
.finance-health-table .delta-col { width: 18%; }
.finance-health-table .status-col { width: 25%; }
.finance-breakdown-table th:first-child, .finance-breakdown-table td:first-child { width: 48%; text-align: left; overflow-wrap: anywhere; }
.finance-breakdown-table th:nth-child(2), .finance-breakdown-table td:nth-child(2) { width: 27%; }
.finance-breakdown-table th:nth-child(3), .finance-breakdown-table td:nth-child(3) { width: 25%; }
.finance-dimension-status { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 3px 6px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.finance-dimension-status.excellent { color: #fff; background: #2f7d57; }
.finance-dimension-status.ready { color: #244f37; background: #d8ebd8; }
.finance-dimension-status.normal { color: #5f6e64; background: #edf1ed; }
.finance-dimension-status.watch { color: #69480c; background: #f4d98d; }
.finance-dimension-status.risk { color: #fff; background: #c95750; }
.finance-dimension-status.missing { color: #65706a; background: #edf0ed; }
.finance-need-increase { display: inline-flex; padding: 2px 4px; border: 1px solid #d9c5eb; border-radius: 999px; color: #6b3fa0; background: #f3eafb; font-size: 9px; line-height: 1; }
.finance-diagnostic-note { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.finance-health-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 9px; background: #f4f7f2; color: var(--muted); font-size: 11px; line-height: 1.6; }
.finance-health-enter { width: 100%; margin-top: 12px; border: 1px solid #e4ebe4; background: #fff; text-align: left; }
.finance-benchmark-card p { max-width: 980px; margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.finance-benchmark-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.finance-health-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; width: 100%; margin: 12px 0 8px; color: var(--muted); font-size: 11px; }
.finance-health-legend-label { color: var(--ink); font-weight: 700; }
.finance-health-legend-bar { flex: 1 1 180px; width: 100%; min-width: 180px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #2f7d57 0%, #d8ebd8 36%, #f4d98d 68%, #c95750 100%); box-shadow: inset 0 0 0 1px rgba(24,61,47,.12); }
.finance-health-legend-item { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.finance-health-legend-item i { width: 9px; height: 9px; display: inline-block; border-radius: 3px; }
.finance-health-legend-item.excellent i { background: #2f7d57; }
.finance-health-legend-item.ready i { background: #d8ebd8; border: 1px solid #afd0b2; }
.finance-health-legend-item.watch i { background: #f4d98d; }
.finance-health-legend-item.risk i { background: #c95750; }
.finance-health-radar { margin: 4px 0 18px; padding: 12px 10px 8px; border: 1px solid #e4ece4; border-radius: 12px; background: linear-gradient(180deg, #fbfdfb, #f6faf6); }
.finance-radar-head { margin: 0 0 2px; color: var(--ink); font-size: 12px; }
.finance-radar-svg { display: block; width: min(100%, 370px); height: auto; margin: 0 auto; overflow: visible; }
.finance-radar-grid polygon { fill: none; stroke: #dce8dd; stroke-width: 1; }
.finance-radar-grid line { stroke: #e4ece5; stroke-width: 1; }
.finance-radar-target { fill: rgba(218,167,61,.08); stroke: #d3a13d; stroke-width: 1.5; stroke-dasharray: 5 4; stroke-linejoin: round; }
.finance-radar-value { fill: rgba(47,125,87,.22); stroke: #2f7d57; stroke-width: 2.5; stroke-linejoin: round; }
.finance-health-radar circle { fill: #2f7d57; stroke: #fff; stroke-width: 1.5; }
.finance-radar-labels text { fill: #526a59; font-size: 10px; font-weight: 700; }
.finance-total-row td { font-weight: 700; background: #f3f8f1; border-top: 2px solid #cfe0d1; }
.finance-overview-table { overflow: visible; }
.finance-overview-note { margin: 12px 0 0; }
@media (max-width: 900px) { .finance-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .finance-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .finance-upload-guide { grid-template-columns: 1fr; } .finance-store-heading { display: block; } .finance-store-heading .btn { margin-top: 12px; } .finance-editor-head { display: block; } .finance-editor-head .btn { margin-top: 10px; } }
@media (max-width: 560px) { .finance-summary-strip, .finance-rule-grid { grid-template-columns: 1fr; } .finance-month-control { margin-top: 8px; } }
@media (max-width: 760px) { .finance-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .finance-detail-grid label:last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .finance-health-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .finance-store-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .finance-store-summary-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .finance-health-columns { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .finance-health-columns { grid-template-columns: 1fr; gap: 12px; } .finance-health-kpis strong { font-size: 18px; } .finance-health-table, .finance-breakdown-table { font-size: 10px; } .finance-health-table th, .finance-health-table td, .finance-breakdown-table th, .finance-breakdown-table td { padding: 6px 4px; } .finance-health-table .delta-col { width: 18%; } .finance-health-table .status-col { width: 23%; } .finance-dimension-status { padding: 3px 4px; } .finance-need-increase { font-size: 8px; } }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .content-wrap { padding: 28px 24px 60px; } .topbar { padding: 0 24px; } }
@media (max-width: 760px) {
  .sidebar { position: fixed; left: -270px; transition: left .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.16); }
  .sidebar.open { left: 0; }
  .mobile-menu { display: block; }
  .topbar { padding: 0 16px; gap: 10px; }
  .content-wrap { padding: 22px 15px 50px; }
  .page-head { display: block; }
  .page-head-copy { gap: 11px; }
  .page-brand-context { flex-basis: 112px; }
  .page-brand-context img { width: 112px; height: 44px; }
  .head-actions { justify-content: flex-start; margin-top: 15px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 22px 20px; }
  .hero-brand { gap: 8px; margin-bottom: 13px; }
  .hero-brand > img:first-child { width: 132px; height: 50px; }
  .hero-english-lockup { gap: 6px; }
  .hero-english-lockup img { width: 111px; height: 33px; }
  .hero-english-lockup span { font-size: 9px; letter-spacing: .08em; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .report-tags { grid-template-columns: 1fr; }
  .report-center-grid, .report-reading-grid { grid-template-columns: 1fr; }
  .report-hero { display: block; padding: 22px; }
  .report-hero .btn { margin-top: 16px; }
  .knowledge-toolbar { display: block; }
  .knowledge-search { width: 100%; margin-bottom: 9px; }
  .knowledge-layout { grid-template-columns: 1fr; }
  .knowledge-tree-panel { position: static; max-height: 360px; }
  .knowledge-preview-panel { padding: 16px; }
  .knowledge-preview-head { display: block; }
  .knowledge-preview-head .btn { display: inline-flex; margin-top: 13px; }
  .library-category-grid { grid-template-columns: 1fr; }
  .library-toolbar { display: block; }
  .library-toolbar .knowledge-search { width: 100%; margin-bottom: 9px; }
  .library-card-grid.document-grid, .library-card-grid.image-grid { grid-template-columns: 1fr; }
  .period-selects { width: 100%; }
  .period-selects .period-select { flex: 1 1 170px; }
  .star-product-summary { align-items: flex-start; flex-wrap: wrap; }
  .star-product-kpi { margin-left: 40px; text-align: left; }
  .star-product-detail { padding-left: 18px; }
  .member-share-grid { grid-template-columns: repeat(2, 1fr); }
  .product-period-note, .member-provider-note { align-items: flex-start; flex-wrap: wrap; }
  .report-frame { min-height: 700px; }
  .combo-item { grid-template-columns: 52px 1fr; }
  .combo-item small { grid-column: 2; text-align: left; }
  .user-chip span:not(.avatar) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
/* 月度经营与财务交叉核对 */
.reconciliation-card{overflow:hidden}
.recon-stack{display:grid;gap:24px;margin-top:18px}
.recon-store{border:1px solid var(--line,#e5ebe6);border-radius:18px;padding:18px;background:rgba(248,251,248,.72)}
.recon-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.recon-kpis>div{padding:12px 14px;border-radius:12px;background:#fff;border:1px solid var(--line,#e5ebe6)}
.recon-kpis small{display:block;color:var(--muted,#718079);font-size:12px;margin-bottom:5px}
.recon-kpis strong{font-size:20px;color:var(--ink,#17332b)}
.recon-table{min-width:720px}
.recon-judgement{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.recon-judgement small{color:var(--muted,#718079)}
.recon-conclusion{margin:12px 0 0;color:#4f625c;font-size:13px;line-height:1.6}
.recon-note{margin-top:18px}
.member-audience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.member-audience-grid>div{padding:14px;border-radius:14px;background:#f5f8f4;border:1px solid #e1e9e2}
.member-audience-grid strong{display:block;color:#17332b;font-size:16px}
.member-audience-grid small{display:block;color:#5c6f67;margin-top:6px}
.member-share-compare{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;color:#7b8a84;font-size:11px}
.member-share-compare span{padding:3px 6px;border-radius:99px;background:#fff;border:1px solid #e1e9e2}
.member-note{margin:12px 0 0;color:#718079;font-size:12px;line-height:1.55}
.member-formula{display:none!important}
@media (max-width:900px){.recon-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.member-audience-grid{grid-template-columns:1fr}}

/* 2026-09 山与山工作室编辑感中控台主题
   参考：山与山工作室整体设计风格.md 与 山与山工作室培训/intro.html。
   只改变视觉层，不改变数据、权限、上传和计算逻辑。 */
:root {
  --forest: #0b1e16;
  --forest-2: #123326;
  --forest-3: #22513d;
  --paper: #f3eee2;
  --paper-2: #e8dfcd;
  --cream: #fffaf0;
  --ink: #17241c;
  --muted: #5b675f;
  --green: #3f7657;
  --green-dark: #22513d;
  --green-pale: #e4eee5;
  --gold: #c69a50;
  --gold-pale: #f1e5c9;
  --line: rgba(23, 36, 28, .15);
  --surface: #fffaf0;
  --surface-soft: #f8f3e8;
  --bg: #f3eee2;
  --nav: #0b1e16;
  --nav-deep: #07130e;
  --nav-soft: #163b2b;
  --shadow: 0 20px 58px rgba(15, 38, 29, .09);
  --radius: 16px;
  --font: Inter, "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

html, body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% -4%, rgba(198,154,80,.13), transparent 30rem),
    linear-gradient(180deg, #f7f2e8 0%, var(--paper) 46%, #efe8d8 100%);
  color: var(--ink);
  font-family: var(--font);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(115deg, rgba(23,36,28,.028) 1px, transparent 1px),
    linear-gradient(25deg, rgba(23,36,28,.018) 1px, transparent 1px);
  background-size: 23px 23px, 31px 31px;
}

.app-shell {
  background: transparent;
}

.sidebar {
  width: 258px;
  flex-basis: 258px;
  padding: 28px 16px 19px;
  background:
    radial-gradient(circle at 18% 7%, rgba(198,154,80,.14), transparent 22rem),
    radial-gradient(circle at 100% 85%, rgba(63,118,87,.18), transparent 20rem),
    var(--forest);
  border-right: 1px solid rgba(255,250,240,.13);
  box-shadow: 20px 0 70px rgba(7,19,14,.15);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: auto 14px 96px auto;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(239,215,159,.18);
  border-radius: 50%;
  pointer-events: none;
}

.brand-block {
  position: relative;
  z-index: 1;
  padding: 0 10px 26px;
  border-bottom-color: rgba(239,215,159,.22);
}

.brand-lockup {
  gap: 7px;
  padding: 4px 8px 0;
}

.brand-logo-chs {
  width: 158px;
  height: 66px;
}

.workspace-label {
  position: relative;
  z-index: 1;
  padding: 25px 12px 11px;
  color: #d9b66e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}

.primary-nav, .sidebar-bottom {
  position: relative;
  z-index: 1;
}

.primary-nav {
  gap: 6px;
}

.nav-item {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255,250,240,.7);
  letter-spacing: .01em;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.nav-item:hover {
  color: var(--cream);
  background: rgba(255,250,240,.07);
  border-color: rgba(239,215,159,.18);
  transform: translateX(2px);
}

.nav-item.active {
  color: var(--forest);
  background: linear-gradient(110deg, #efd79f, #d5ad61);
  border-color: rgba(255,250,240,.22);
  box-shadow: 0 10px 25px rgba(7,19,14,.24);
}

.nav-icon {
  color: rgba(239,215,159,.72);
  font-size: 15px;
}

.nav-item.active .nav-icon {
  color: var(--forest);
}

.nav-group-title {
  padding: 18px 13px 5px;
  color: rgba(239,215,159,.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sidebar-bottom {
  padding-top: 17px;
  border-top-color: rgba(239,215,159,.2);
}

.service-line, .version-line {
  color: rgba(255,250,240,.48);
}

.status-dot {
  background: #86aa82;
  box-shadow: 0 0 0 4px rgba(134,170,130,.13);
}

.main-area {
  background: transparent;
}

.topbar {
  height: 76px;
  padding: 0 42px;
  background: rgba(243,238,226,.82);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(15,38,29,.04);
}

.breadcrumb {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.breadcrumb strong {
  color: var(--forest-3);
}

.breadcrumb::before {
  content: "MOUNTAIN² WORKSHOP  /  ";
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .14em;
}

.topbar-actions {
  gap: 10px;
}

.icon-btn, .user-chip {
  border-color: rgba(23,36,28,.18);
  background: rgba(255,250,240,.72);
}

.icon-btn {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  color: var(--forest-3);
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--forest);
  background: var(--cream);
}

.user-chip {
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
}

.avatar {
  background: var(--forest-3);
}

.content-wrap {
  max-width: 1440px;
  padding: 38px 44px 86px;
}

.page-head {
  position: relative;
  padding-bottom: 23px;
  margin-bottom: 30px;
  border-bottom-color: var(--line);
}

.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 58px;
  height: 3px;
  background: var(--gold);
}

.page-head-copy {
  gap: 21px;
}

.page-brand-context {
  flex-basis: 150px;
  align-items: start;
  padding-top: 6px;
}

.page-brand-context img {
  width: 150px;
  height: 58px;
}

.eyebrow {
  margin-bottom: 8px;
  color: #3f674b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.page-title {
  font: 700 clamp(29px, 3.1vw, 44px)/1.14 var(--serif);
  letter-spacing: -.04em;
  color: var(--forest);
}

.page-desc {
  max-width: 820px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.head-actions {
  align-items: flex-start;
}

.btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border-color: rgba(23,36,28,.17);
  background: rgba(255,250,240,.82);
  box-shadow: 0 2px 0 rgba(23,36,28,.03);
}

.btn:hover {
  border-color: var(--gold);
  color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15,38,29,.08);
}

.btn-primary {
  color: var(--cream);
  border-color: var(--forest-3);
  background: var(--forest-3);
}

.btn-primary:hover {
  color: var(--cream);
  border-color: var(--forest-2);
  background: var(--forest-2);
}

.btn-quiet {
  color: var(--forest-3);
  border-color: rgba(63,118,87,.2);
  background: var(--green-pale);
}

.btn-gold {
  color: #6d4e1c;
  border-color: rgba(198,154,80,.28);
  background: var(--gold-pale);
}

.segmented {
  padding: 4px;
  border: 1px solid rgba(23,36,28,.12);
  border-radius: 999px;
  background: var(--paper-2);
}

.segmented button {
  padding: 8px 14px;
  border-radius: 999px;
}

.segmented button.active {
  color: var(--cream);
  background: var(--forest-3);
  box-shadow: 0 4px 12px rgba(15,38,29,.12);
}

.select, .field {
  height: 40px;
  border-color: rgba(23,36,28,.17);
  border-radius: 10px;
  background: rgba(255,250,240,.86);
}

.select:focus, .field:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,154,80,.15);
  outline: 0;
}

.card {
  padding: 23px;
  border-color: var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,253,247,.96), rgba(255,250,240,.95));
  box-shadow: var(--shadow);
}

.card-title {
  margin-bottom: 19px;
}

.card-title h2, .card-title h3 {
  color: var(--forest);
  font: 700 18px/1.25 var(--serif);
  letter-spacing: -.015em;
}

.card-title p {
  color: var(--muted);
  font-size: 11px;
}

.section-label {
  margin: 30px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--forest-3);
  font: 700 18px/1.2 var(--serif);
}

.section-label .small-note {
  font: 11px/1.5 var(--font);
  color: var(--muted);
}

.metric-card {
  position: relative;
  padding: 20px 21px 19px;
  border-radius: 16px;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--gold);
}

.metric-card::after {
  width: 106px;
  height: 106px;
  right: -39px;
  top: -39px;
  background: rgba(63,118,87,.1);
}

.metric-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
}

.metric-value {
  margin: 11px 0 6px;
  color: var(--forest);
  font: 700 clamp(27px, 3vw, 38px)/1 Georgia, serif;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.metric-sub {
  color: var(--muted);
  font-size: 11px;
}

.hero {
  min-height: 325px;
  padding: 39px 42px;
  border: 1px solid rgba(239,215,159,.19);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 8%, rgba(239,215,159,.13), transparent 16rem),
    linear-gradient(115deg, rgba(11,30,22,.98), rgba(18,51,38,.92));
  box-shadow: 0 28px 75px rgba(7,19,14,.17);
}

.hero::before, .hero::after {
  border-color: rgba(239,215,159,.2);
}

.hero::before {
  width: 450px;
  height: 450px;
  right: -170px;
  top: -245px;
}

.hero::after {
  width: 300px;
  height: 300px;
  right: 80px;
  bottom: -255px;
}

.hero-brand {
  gap: 8px;
  margin-bottom: 21px;
}

.hero-brand > img:first-child {
  width: 160px;
  height: 62px;
}

.hero-english-lockup img {
  width: 147px;
  height: 38px;
}

.hero-english-lockup span {
  color: var(--gold2, #efd79f);
}

.hero-kicker {
  color: #efd79f;
  font-size: 10px;
  letter-spacing: .2em;
}

.hero h1 {
  max-width: 760px;
  margin: 10px 0 10px;
  color: var(--cream);
  font: 700 clamp(31px, 4vw, 51px)/1.12 var(--serif);
  letter-spacing: -.04em;
}

.hero p {
  max-width: 700px;
  color: rgba(255,250,240,.7);
  font-size: 14px;
}

.hero .btn {
  color: var(--cream);
  border-color: rgba(239,215,159,.34);
  background: rgba(255,250,240,.08);
}

.hero .btn:hover {
  color: var(--forest);
  background: var(--gold-pale);
}

.store-metric-section {
  position: relative;
  padding: 4px 0 0 17px;
}

.store-metric-section::before {
  content: "";
  position: absolute;
  inset: 5px auto 2px 0;
  width: 2px;
  background: linear-gradient(var(--gold), transparent);
}

.toolbar {
  padding: 12px;
  border-color: rgba(63,118,87,.18);
  border-radius: 13px;
  background: rgba(228,238,229,.62);
}

.table-wrap {
  border-color: rgba(23,36,28,.15);
  border-radius: 14px;
  background: rgba(255,250,240,.6);
}

th {
  padding: 13px 14px;
  color: rgba(255,250,240,.86);
  background: var(--forest-2);
  border-bottom-color: rgba(239,215,159,.23);
  font-size: 11px;
  letter-spacing: .03em;
}

td {
  padding: 13px 14px;
  border-bottom-color: rgba(23,36,28,.09);
}

tbody tr:hover {
  background: rgba(228,238,229,.45);
}

.progress-track {
  background: rgba(63,118,87,.14);
}

.progress-fill {
  background: linear-gradient(90deg, var(--forest-3), #6d9b72);
}

.todo {
  padding: 12px 13px;
  border: 1px solid rgba(23,36,28,.08);
  border-radius: 10px;
  background: rgba(248,243,232,.82);
}

.todo-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198,154,80,.12);
}

.report-hero {
  padding: 34px 36px;
  border: 1px solid rgba(239,215,159,.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 15%, rgba(239,215,159,.12), transparent 15rem),
    linear-gradient(115deg, var(--forest), var(--forest-3));
  box-shadow: 0 24px 65px rgba(7,19,14,.14);
}

.report-hero h2 {
  font: 700 clamp(28px, 3.5vw, 44px)/1.15 var(--serif);
  letter-spacing: -.035em;
}

.report-center-card, .report-tag, .library-category-card, .finance-store-card, .finance-table-card {
  border-color: rgba(23,36,28,.13);
  border-radius: 14px;
  background: rgba(255,250,240,.84);
  box-shadow: 0 10px 28px rgba(15,38,29,.05);
}

.report-center-card:hover, .report-tag:hover, .library-category-card:hover, .finance-store-card:hover, .finance-table-card:hover {
  border-color: rgba(198,154,80,.62);
  box-shadow: 0 16px 34px rgba(15,38,29,.1);
}

.report-center-icon, .report-tag-icon {
  background: var(--green-pale);
  color: var(--forest-3);
}

.report-center-main strong, .report-tag strong {
  color: var(--forest);
  font-family: var(--serif);
}

.star-products-card {
  border-color: rgba(198,154,80,.56);
  background: linear-gradient(180deg, #fffaf0, #f7eedc);
}

.modal-backdrop {
  background: rgba(7,19,14,.72);
  backdrop-filter: blur(7px);
}

.modal {
  border: 1px solid rgba(239,215,159,.45);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 28px 90px rgba(7,19,14,.3);
}

.modal-head {
  color: var(--cream);
  border-bottom-color: rgba(239,215,159,.2);
  background: var(--forest-2);
}

.modal-close {
  color: rgba(255,250,240,.7);
}

.modal-body {
  background: var(--cream);
}

.toast {
  border: 1px solid rgba(239,215,159,.28);
  border-radius: 999px;
  background: var(--forest-2);
  box-shadow: 0 15px 40px rgba(7,19,14,.22);
}

.finance-confirmed-note, .finance-health-note {
  border-left-color: var(--gold);
  background: var(--gold-pale);
  color: #66502a;
}

.finance-health-radar, .finance-rule-grid > div, .finance-upload-guide > div, .finance-summary-strip > div {
  border-color: rgba(23,36,28,.1);
  background: rgba(248,243,232,.82);
}

.finance-health-radar {
  border-radius: 16px;
}

.knowledge-toolbar, .library-toolbar {
  border-color: rgba(63,118,87,.18);
  background: rgba(228,238,229,.55);
}

.knowledge-tree-panel, .knowledge-preview-panel, .library-preview-panel {
  border-color: rgba(23,36,28,.14);
  border-radius: 16px;
  background: rgba(255,250,240,.82);
}

.knowledge-folder-button.active, .knowledge-tree-file.active, .library-category-card.active {
  border-color: var(--gold);
  background: linear-gradient(110deg, var(--gold-pale), #fffaf0);
}

.knowledge-folder-button, .knowledge-tree-file {
  border-color: rgba(23,36,28,.1);
}

.data-item, .library-doc-card {
  border-color: rgba(23,36,28,.11);
  background: rgba(255,250,240,.78);
}

.data-item:hover, .library-doc-card:hover {
  border-color: rgba(198,154,80,.6);
  background: #fffdf7;
}

@media (max-width: 1100px) {
  .content-wrap { padding-inline: 30px; }
}

@media (max-width: 760px) {
  .sidebar {
    width: 274px;
    flex-basis: 274px;
    left: -290px;
  }
  .topbar {
    height: 68px;
    padding-inline: 16px;
  }
  .breadcrumb::before { display: none; }
  .content-wrap { padding: 27px 15px 58px; }
  .page-head { padding-bottom: 18px; }
  .page-title { font-size: 32px; }
  .page-brand-context { flex-basis: 108px; }
  .page-brand-context img { width: 108px; height: 43px; }
  .card { padding: 17px 15px; border-radius: 15px; }
  .hero { min-height: 0; padding: 27px 22px 30px; border-radius: 22px; }
  .hero h1 { font-size: clamp(31px, 10vw, 44px); }
  .hero-brand > img:first-child { width: 137px; height: 53px; }
  .hero-english-lockup img { width: 114px; height: 32px; }
  .section-label { font-size: 17px; }
  .metric-value { font-size: 28px; }
  .finance-health-radar { padding-inline: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* 2026-09-10 侧栏品牌、Logo 对齐与标题换行修正 */
.sidebar-brand-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 10px 2px;
}

.sidebar-logo-eng {
  display: block;
  width: min(166px, 100%);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  opacity: .92;
}

/* 业务页的肉铺 Logo 与标题区保持同一垂直节奏 */
.page-brand-context {
  flex: 0 0 196px;
  min-height: 72px;
  align-items: center;
  justify-items: start;
}

.page-brand-context img {
  width: 196px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

/* 短标题、标签与按钮避免出现只有一个字的第二行 */
.page-title,
.card-title h2,
.card-title h3,
.section-label > span:first-child,
.finance-store-summary-head strong,
.finance-health-head h2,
.report-center-main strong,
.report-tag strong,
.library-group-head h3,
.btn,
.nav-item {
  word-break: keep-all;
}

.page-title,
.card-title h2,
.card-title h3,
.section-label > span:first-child,
.finance-store-summary-head strong,
.finance-health-head h2,
.report-center-main strong,
.report-tag strong,
.library-group-head h3,
.btn,
.nav-item {
  white-space: nowrap;
}

.hero h1 {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .page-brand-context {
    flex-basis: 132px;
    min-height: 50px;
  }

  .page-brand-context img {
    width: 132px;
    height: 50px;
  }

  .page-title,
  .card-title h2,
  .card-title h3,
  .section-label > span:first-child,
  .finance-store-summary-head strong,
  .finance-health-head h2,
  .report-center-main strong,
  .report-tag strong,
  .library-group-head h3 {
    white-space: normal;
    text-wrap: balance;
  }

  .hero h1 {
    white-space: normal;
    text-wrap: balance;
  }
}

/* 侧栏固定在视口，主内容独立滚动 */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  z-index: 30;
  scrollbar-width: thin;
  scrollbar-color: rgba(239,215,159,.35) transparent;
}

.main-area {
  width: calc(100% - 258px);
  min-height: 100vh;
  margin-left: 258px;
}

@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 -290px;
    width: 274px;
    max-height: 100vh;
  }

  .sidebar.open {
    left: 0;
  }

  .main-area {
    width: 100%;
    margin-left: 0;
  }
}
