:root {
  --ink: #18392f;
  --muted: #61706a;
  --paper: #f8faf7;
  --card: #ffffff;
  --green: #0f5c45;
  --green-dark: #123f32;
  --green-2: #2f8065;
  --lime: #dff06a;
  --gold: #d6a74a;
  --line: rgba(24, 57, 47, 0.13);
  --shadow: 0 24px 70px rgba(22, 58, 46, 0.12);
  --shadow-soft: 0 12px 36px rgba(22, 58, 46, 0.08);
  --radius: 28px;
}

/* Keep inactive portal routes hidden after view-specific overrides. */
[data-dashboard] [data-portal-view][hidden] {
  display: none !important;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; }
.skip-link:focus { left: 8px; z-index: 100; padding: 10px 14px; background: #fff; border-radius: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(248, 250, 247, 0.9);
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled { border-color: var(--line); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .02em; }
.brand-mark { width: 38px; height: 38px; display: block; object-fit: cover; border-radius: 11px; box-shadow: 0 2px 8px rgba(15, 79, 62, .12); flex: 0 0 auto; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green-2); }
.nav-cta { padding: 10px 18px; color: #fff !important; background: var(--green); border-radius: 999px; }
.nav-login { padding: 9px 17px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); background: transparent; }
.nav-login:hover, .nav-login[aria-current="page"] { color: #fff !important; background: var(--green); }
.nav-toggle { display: none; border: 0; color: var(--ink); background: transparent; font: inherit; font-weight: 700; padding: 10px; }

.hero { position: relative; overflow: hidden; padding: 86px 0 78px; background: linear-gradient(145deg, #f8faf7 0%, #f4f8ef 58%, #edf5e8 100%); }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(223,240,106,.62), transparent 67%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 320px; height: 320px; left: -210px; bottom: -160px; border: 70px solid rgba(15,92,69,.035); border-radius: 50%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--green); font-weight: 750; letter-spacing: .05em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 720px; font-size: clamp(44px, 6vw, 76px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 em { color: var(--green-2); font-style: normal; }
.hero-copy { max-width: 660px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 22px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--green); border-radius: 999px; color: #fff; background: var(--green); font-weight: 750; }
.button.secondary { color: var(--green); background: transparent; }
.button.light { color: var(--green); background: #fff; border-color: #fff; }
.microcopy { color: var(--muted); font-size: 13px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 9px 20px; color: var(--muted); font-size: 13px; }
.hero-proof span { position: relative; padding-left: 17px; }
.hero-proof span::before { content: ""; position: absolute; left: 0; top: .63em; width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }
.hero-visual { position: relative; min-height: 520px; padding: 28px; border-radius: 42px; background: var(--green); box-shadow: var(--shadow); overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(255,255,255,.08), transparent 48%); pointer-events: none; }
.hero-visual::after { content: ""; position: absolute; inset: auto -50px -80px auto; width: 260px; height: 260px; border-radius: 50%; background: var(--lime); opacity: .88; }
.visual-top { position: relative; z-index: 2; display: flex; justify-content: space-between; color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .1em; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: #fff; letter-spacing: 0; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(223,240,106,.12); }
.metric-card { position: relative; z-index: 2; margin-top: 28px; padding: 24px; color: var(--ink); background: rgba(255,255,255,.96); border-radius: 24px; }
.metric-card strong { display: block; margin-bottom: 14px; font-size: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { padding: 13px 10px; background: #f3f6f1; border-radius: 14px; font-size: 12px; }
.metric b { display: block; font-size: 19px; }
.advice-card { position: relative; z-index: 2; width: 88%; margin: 16px 0 0 auto; padding: 20px; color: #fff; border: 1px solid rgba(255,255,255,.17); border-radius: 22px; background: rgba(255,255,255,.09); }
.advice-card span { display: block; margin-bottom: 8px; color: var(--lime); font-size: 12px; font-weight: 750; }
.hero-person { position: absolute; z-index: 3; right: 2px; bottom: -5px; width: 148px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.18)); }
.hero-dashboard { min-height: 540px; }
.hero-dashboard .metric-card { margin-top: 14px; padding: 15px; border-radius: 22px; }
.metric-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.metric-card-heading > div:first-child { min-width: 0; }
.metric-card-heading strong { margin: 0; font-size: 17px; }
.metric-card-heading small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.hero-period-tabs { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 3px; border-radius: 10px; background: #e9eee6; }
.hero-period-tabs button { width: 30px; height: 28px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.hero-period-tabs button.is-active { color: #fff; background: var(--green); }
.hero-metric-grid { gap: 6px; }
.hero-metric-grid .metric { min-height: 58px; padding: 7px 9px; border-radius: 11px; }
.hero-metric-grid .metric span, .hero-metric-grid .metric small { display: block; color: var(--muted); white-space: nowrap; }
.hero-metric-grid .metric span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
.hero-metric-grid .metric b { margin: 2px 0; color: var(--ink); font-size: 15px; line-height: 1.1; }
.hero-metric-grid .metric small { overflow: hidden; font-size: 8px; text-overflow: ellipsis; }
.hero-dashboard .advice-card { width: 100%; min-height: 70px; margin-top: 10px; padding: 12px 108px 12px 15px; border-radius: 17px; font-size: 10px; line-height: 1.5; }
.hero-dashboard .advice-card span { margin-bottom: 4px; font-size: 10px; }
.hero-dashboard .advice-card b { font-weight: 500; }
.hero-dashboard .hero-person { right: 5px; width: 100px; }

.trust-strip { border-block: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 24px 0; list-style: none; text-align: center; font-weight: 700; }
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list small { display: block; color: var(--muted); font-weight: 500; }

.section { padding: 96px 0; }
.section.alt { background: #eef2ea; }
.section.dark { color: #fff; background: var(--green); }
.section-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 42px; }
.section-head h2 { margin-bottom: 0; max-width: 680px; font-size: clamp(32px, 4vw, 52px); line-height: 1.15; letter-spacing: -.025em; }
.section-head p { margin-bottom: 4px; max-width: 430px; color: var(--muted); }
.dark .section-head p { color: rgba(255,255,255,.72); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.card { box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(22,58,46,.11); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 16px; color: var(--green); background: #e7efdf; font-weight: 850; }
.card h3 { margin-bottom: 10px; font-size: 21px; }
.card p { margin-bottom: 0; color: var(--muted); }
.card .text-link { display: inline-block; margin-top: 18px; color: var(--green-2); font-weight: 750; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-copy h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.15; }
.check-list { margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 12px 0; padding-left: 29px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green-2); font-weight: 900; }
.promo-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: center; }
.promo-stack img { border-radius: 22px; box-shadow: 0 18px 45px rgba(20,55,44,.15); }
.promo-stack img:nth-child(2) { transform: translateY(-20px); }

.workflow-section { padding-top: 72px; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--line); list-style: none; box-shadow: var(--shadow-soft); }
.workflow li { display: grid; grid-template-columns: 58px 1fr; gap: 16px; min-height: 190px; padding: 34px 28px; background: #fff; }
.workflow li > span { color: var(--green-2); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.workflow h3 { margin-bottom: 10px; font-size: 23px; }
.workflow p { margin: 0; color: var(--muted); }

.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 48px; border-radius: 36px; color: #fff; background: var(--green); overflow: hidden; }
.cta-panel h2 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 48px); }
.qr-placeholder { width: 166px; min-height: 166px; display: grid; place-items: center; padding: 18px; color: var(--ink); background: #fff; border-radius: 24px; text-align: center; font-size: 13px; font-weight: 700; }
.qr-grid { display: flex; gap: 14px; }
.qr-card { width: 190px; margin: 0; padding: 12px; color: var(--ink); background: #fff; border-radius: 24px; text-align: center; }
.qr-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: #fff; }
.qr-card.contact img { aspect-ratio: auto; max-height: 242px; }
.qr-card figcaption { padding: 10px 4px 2px; font-size: 13px; font-weight: 750; }
.qr-card small { display: block; color: var(--muted); font-weight: 500; }

.page-hero { padding: 78px 0 58px; text-align: center; }
.page-hero h1 { margin-inline: auto; font-size: clamp(42px, 6vw, 68px); }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 19px; }
.feature-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 32px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); }
.feature-number { color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.feature-row h2 { font-size: 30px; }
.feature-row p { color: var(--muted); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }

.feature-map-section { padding-top: 46px; background: linear-gradient(180deg, #f8faf7 0%, #eef4eb 100%); }
.capability-map { display: grid; gap: 18px; }
.capability-tier { position: relative; display: grid; grid-template-columns: minmax(250px, .72fr) 2fr; gap: 34px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: var(--shadow-soft); }
.capability-tier::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--tier-color); }
.tier-basic { --tier-color: #63a789; --tier-wash: #eaf5ef; }
.tier-advanced { --tier-color: #c99738; --tier-wash: #fbf3df; }
.tier-deep { --tier-color: #0f5c45; --tier-wash: #e4f0eb; color: #fff; background: linear-gradient(125deg, #103e32, #0f5c45); }
.tier-heading { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-content: start; }
.tier-index { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--tier-color); background: var(--tier-wash); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.tier-heading p { margin-bottom: 5px; color: var(--tier-color); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.tier-deep .tier-heading p { color: var(--lime); }
.tier-heading h3 { margin-bottom: 6px; font-size: 25px; line-height: 1.25; }
.tier-heading small { color: var(--muted); }
.tier-deep .tier-heading small { color: rgba(255,255,255,.66); }
.capability-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.capability-list li { display: grid; grid-template-columns: 40px 1fr; gap: 11px; align-items: center; min-height: 80px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfa; }
.tier-deep .capability-list li { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.07); }
.capability-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--tier-color); background: var(--tier-wash); font-size: 13px; font-weight: 850; }
.tier-deep .capability-icon { color: #173b30; background: var(--lime); }
.capability-list strong, .capability-list small { display: block; }
.capability-list strong { font-size: 15px; }
.capability-list small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.tier-deep .capability-list small { color: rgba(255,255,255,.63); }
.capability-note { margin: 18px 4px 0; color: var(--muted); font-size: 12px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.price-card.featured { color: #fff; background: var(--green); transform: translateY(-10px); }
.price-card .badge { position: absolute; right: 18px; top: 18px; color: var(--green); background: var(--lime); padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.price { margin: 12px 0; font-size: 35px; font-weight: 850; }
.price small { font-size: 13px; font-weight: 500; }
.price-card ul { flex: 1; padding-left: 20px; color: var(--muted); }
.price-card.featured ul { color: rgba(255,255,255,.75); }
.notice { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--gold); background: rgba(214,167,74,.1); }

.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.step-list { counter-reset: steps; margin: 0; padding: 0; list-style: none; }
.step-list li { counter-increment: steps; display: grid; grid-template-columns: 44px 1fr; gap: 16px; margin: 18px 0; }
.step-list li::before { content: counter(steps); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-weight: 800; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 0; font-weight: 750; }
summary::marker { color: var(--green-2); }
details p { padding-right: 30px; color: var(--muted); }

.legal { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 100px; }
.legal h1 { font-size: clamp(38px, 6vw, 62px); }
.legal h2 { margin-top: 42px; font-size: 24px; }
.legal p, .legal li { color: #465650; }
.legal-meta { margin-bottom: 34px; padding: 18px; background: #eef2ea; border-radius: 16px; }
.placeholder { color: #8b5b00; background: #fff2cb; padding: 2px 6px; border-radius: 5px; }

.login-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 64px 0 88px; background: radial-gradient(circle at 15% 20%, rgba(223,240,106,.26), transparent 28%), linear-gradient(145deg, #f8faf7, #edf4ea); }
.login-shell { display: grid; grid-template-columns: 1.05fr .95fr; width: min(980px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 36px; background: #fff; box-shadow: var(--shadow); }
.login-intro { position: relative; padding: 58px 52px; color: #fff; background: linear-gradient(145deg, #123f33, var(--green)); overflow: hidden; }
.login-intro::after { content: ""; position: absolute; right: -80px; bottom: -100px; width: 280px; height: 280px; border-radius: 50%; background: var(--lime); opacity: .13; }
.login-intro h1 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 58px); }
.login-intro > p { color: rgba(255,255,255,.72); font-size: 17px; }
.login-benefits { display: grid; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.login-benefits li { display: flex; gap: 12px; align-items: center; }
.login-benefits li::before { content: "✓"; width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--green); background: var(--lime); font-weight: 900; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: 52px; }
.login-card h2 { margin-bottom: 8px; font-size: 30px; }
.login-card > p { color: var(--muted); }
.login-qr { width: 190px; min-height: 190px; display: grid; place-items: center; margin: 24px auto 18px; padding: 22px; border: 1px dashed rgba(15,92,69,.35); border-radius: 24px; background: #f4f7f2; text-align: center; }
.login-qr img { width: 100%; height: auto; border-radius: 14px; }
.login-qr-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 18px; color: #fff; background: var(--green); font-size: 24px; font-weight: 850; }
.login-qr strong, .login-qr small { display: block; }
.login-qr small { margin-top: 6px; color: var(--muted); font-size: 12px; }
.login-status { margin: 0 0 18px; padding: 13px 15px; border-radius: 14px; color: #76530e; background: #fff5d9; font-size: 13px; text-align: center; }
.login-status[data-state="success"] { color: #245b43; background: #e5f4ea; }
.login-status[data-state="error"] { color: #924331; background: #fae8e2; }
.login-actions { display: grid; gap: 10px; }
.login-actions .button { width: 100%; }
.login-actions button.button { cursor: pointer; font: inherit; }
.login-help { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.login-code { display: grid; min-height: 158px; place-content: center; margin: 24px 0 18px; border: 1px dashed #9fbaa8; border-radius: 24px; background: #f4f8f2; text-align: center; }
.login-code strong { color: var(--green); font-size: clamp(42px, 7vw, 58px); letter-spacing: .22em; line-height: 1; text-indent: .22em; }
.login-code small { margin-top: 15px; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.login-methods { display: flex; gap: 8px; margin-bottom: 22px; padding: 5px; border-radius: 14px; background: #eef2eb; }
.login-methods > * { flex: 1; padding: 9px 10px; border-radius: 10px; font-size: 12px; text-align: center; }
.login-methods strong { color: #fff; background: var(--green); }
.login-methods span { color: var(--muted); }

.portal-body { min-height: 100vh; background: #f0f4ee; }
.portal-header { border-bottom: 1px solid var(--line); background: #fff; }
.portal-header { position: sticky; top: 0; z-index: 20; }
.portal-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-links { display: flex; align-items: center; gap: 6px; }
.portal-links a { padding: 8px 10px; border-radius: 999px; color: var(--muted); font-size: 13px; }
.portal-links a:hover { color: var(--green); background: #eef4eb; }
.portal-user { display: flex; align-items: center; gap: 18px; text-align: right; }
.portal-user b, .portal-user small { display: block; }
.portal-user small { color: var(--muted); font-size: 11px; }
.portal-user button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: #fff; cursor: pointer; }
.portal-main { padding: 54px 0 80px; }
.portal-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.portal-title h1 { margin-bottom: 10px; font-size: clamp(42px, 6vw, 68px); }
.portal-title p { color: var(--muted); }
.readonly-badge { flex: 0 0 auto; margin-bottom: 22px; padding: 8px 14px; border-radius: 999px; color: var(--green); background: #dfead9; font-size: 12px; font-weight: 800; }
.portal-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.portal-metrics article, .portal-panel { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.portal-metrics span, .portal-metrics small { display: block; color: var(--muted); }
.portal-metrics strong { display: block; margin: 8px 0 2px; font-size: 38px; }
.portal-metrics small { font-size: 11px; }
.overview-dashboard { overflow: hidden; border: 1px solid rgba(15,92,69,.14); border-radius: 30px; background: #fffdf8; box-shadow: 0 24px 60px rgba(24,68,53,.09); }
.overview-dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 30px 34px 24px; background: #eef4e9; }
.overview-dashboard-head h1 { margin: 6px 0 8px; color: var(--ink); font-size: clamp(34px, 4.6vw, 52px); line-height: 1; }
.overview-dashboard-head p { margin: 0; color: var(--muted); font-size: 13px; }
.overview-online-badge { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; color: var(--green); background: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 8px 24px rgba(15,92,69,.08); }
.overview-online-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(202,239,85,.18); }
.overview-period-bar { display: flex; align-items: center; gap: 18px; padding: 20px 34px; border-bottom: 1px solid var(--line); background: #fff; }
.overview-period-tabs { display: flex; gap: 8px; }
.overview-period-tabs button { width: 54px; height: 48px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: #fff; font: inherit; font-size: 16px; font-weight: 850; cursor: pointer; }
.overview-period-tabs button:hover { color: var(--green); border-color: rgba(15,92,69,.35); }
.overview-period-tabs button.is-active { color: #fff; border-color: var(--green); background: var(--green); box-shadow: 0 10px 24px rgba(15,92,69,.17); }
.overview-date-range { display: flex; align-items: center; gap: 14px; min-height: 48px; flex: 1; padding: 0 18px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); }
.overview-date-range span { font-size: 11px; font-weight: 800; }
.overview-date-range strong { color: var(--ink); font-size: 15px; letter-spacing: .02em; }
.overview-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fffdf8; }
.overview-metric-grid article { position: relative; min-height: 162px; padding: 28px 32px; border-right: 1px solid #edf0e9; border-bottom: 1px solid #edf0e9; text-align: center; }
.overview-metric-grid article:nth-child(3n) { border-right: 0; }
.overview-metric-grid span, .overview-metric-grid strong, .overview-metric-grid small { display: block; }
.overview-metric-grid span { color: #4e5b55; font-size: 15px; }
.overview-metric-grid strong { margin: 12px 0 8px; color: #151b18; font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.overview-metric-grid small { max-width: 240px; margin: 0 auto; color: #99a099; font-size: 11px; line-height: 1.55; }
.overview-metric-grid article:nth-last-child(-n+3) { border-bottom: 0; }
.overview-metric-grid article:hover { background: #fbfcf8; }
.overview-risk-metric::before { position: absolute; top: 31px; bottom: 31px; left: 0; width: 3px; border-radius: 999px; background: var(--lime); content: ""; }
.overview-risk-metric a { display: inline-block; margin-top: 9px; color: var(--green); font-size: 11px; font-weight: 850; }
.overview-data-note { margin: 0; padding: 14px 34px; border-top: 1px solid var(--line); color: var(--muted); background: #f3f6f1; font-size: 11px; }
.overview-priority-board { margin-top: 18px; }
.portal-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-top: 14px; }
.panel-label { color: var(--green); font-size: 13px; font-weight: 850; letter-spacing: .08em; }
.finance-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.finance-row div { padding: 18px; border-radius: 18px; background: #f2f6f0; }
.finance-row span, .finance-row strong { display: block; }
.finance-row span { color: var(--muted); font-size: 12px; }
.finance-row strong { margin-top: 4px; font-size: 24px; }
.panel-note, .portal-updated { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.portal-error { padding: 14px 18px; border-radius: 14px; color: #924331; background: #fae8e2; }
.portal-main[data-loading] .portal-metrics, .portal-main[data-loading] .portal-grid { opacity: .5; }
.portal-section { padding-top: 74px; scroll-margin-top: 76px; }
.portal-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.portal-section-head h2 { margin: 4px 0 0; font-size: clamp(28px, 4vw, 42px); }
.portal-section-head > p { max-width: 540px; color: var(--muted); font-size: 13px; text-align: right; }
.portal-grid-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.panel-heading h3 { margin: 0; font-size: 22px; }
.panel-heading > span { color: var(--muted); font-size: 12px; }
.portal-list { display: grid; gap: 0; max-height: 480px; overflow: auto; }
.portal-list-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.portal-list-item:last-child { border-bottom: 0; }
.portal-list-item strong, .portal-list-item p { display: block; margin: 0; }
.portal-list-item p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.portal-list-item > span { flex: 0 0 auto; max-width: 160px; padding: 5px 9px; border-radius: 999px; color: var(--green); background: #eef4eb; font-size: 11px; text-align: center; }
.member-list-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.member-list-identity > div { min-width: 0; }
.member-list-avatar { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; overflow: hidden; border: 1px solid #dce6d8; border-radius: 50%; color: #245d46; background: #edf5e9; font-size: 14px; font-weight: 850; }
.member-list-avatar img { width: 100%; height: 100%; object-fit: cover; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.employee-store-cover { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; min-height: 220px; padding: 28px 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 19px; color: #fff; background: #153a2f; box-shadow: 0 16px 34px rgba(12,53,41,.12); isolation: isolate; }
.employee-store-cover::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(7,28,22,.68) 0%, rgba(7,31,23,.48) 43%, rgba(7,31,23,.12) 72%, rgba(7,31,23,.34) 100%); content: ""; }
.employee-store-cover > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.employee-cover-content { max-width: 650px; }
.employee-cover-kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 13px; color: #dff06a; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.employee-cover-kicker i { font-size: 15px; }
.employee-cover-content h2 { margin: 0; color: #fff; font-size: clamp(30px, 3.3vw, 45px); line-height: 1.12; letter-spacing: -.045em; text-shadow: 0 2px 16px rgba(0,0,0,.22); }
.employee-cover-content > p:last-child { max-width: 560px; margin: 13px 0 0; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.7; }
.employee-cover-store { display: grid; min-width: 180px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; background: rgba(8,43,32,.66); box-shadow: 0 10px 24px rgba(0,0,0,.12); backdrop-filter: blur(10px); }
.employee-cover-store span { color: rgba(255,255,255,.62); font-size: 9px; }
.employee-cover-store strong { margin-top: 5px; color: #fff; font-size: 15px; }
.employee-cover-store small { display: flex; align-items: center; gap: 5px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.16); color: #dff06a; font-size: 9px; }
.employee-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.employee-summary article { padding: 19px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.employee-summary span, .employee-summary small { display: block; color: var(--muted); }
.employee-summary span { font-size: 12px; font-weight: 700; }
.employee-summary strong { display: block; margin: 7px 0 5px; color: var(--ink); font-size: 31px; line-height: 1; }
.employee-summary small { font-size: 10px; }
.employee-workspace { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.employee-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f2f6f0; scrollbar-width: none; }
.employee-page-tabs { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 22px rgba(12,53,41,.055); }
.employee-tabs::-webkit-scrollbar { display: none; }
.employee-tabs button { display: inline-flex; position: relative; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid #d5e0d7; border-radius: 9px; color: #40584f; background: #fff; box-shadow: 0 2px 5px rgba(12,53,41,.035); font: inherit; font-size: 11px; font-weight: 760; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.employee-tabs button i { color: #648277; font-size: 15px; }
.employee-tabs button:hover { color: var(--green); border-color: #98b6a8; background: #f9fcf8; transform: translateY(-1px); }
.employee-tabs button:focus-visible { border-color: var(--green); outline: 3px solid rgba(15,92,69,.14); outline-offset: 1px; }
.employee-tabs button.is-active { color: #fff; border-color: var(--green); background: var(--green); box-shadow: 0 7px 15px rgba(12,83,61,.18); }
.employee-tabs button.is-active i { color: #dff06a; }
.employee-panel { padding: 22px; }
.employee-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.employee-panel-heading h3 { margin: 5px 0 0; color: var(--ink); font-size: 22px; }
.employee-panel-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: right; }
.employee-directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.employee-directory-heading h3 { margin: 5px 0 0; color: var(--ink); font-size: 22px; }
.employee-directory-heading .portal-primary-button { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.employee-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 180px 180px; gap: 12px; padding: 16px; border-radius: 14px; background: #f3f6f1; }
.employee-toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.employee-toolbar input, .employee-toolbar select { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.employee-toolbar input:focus, .employee-toolbar select:focus { outline: 2px solid rgba(15,92,69,.18); border-color: var(--green); }
.employee-table-wrap { margin-top: 14px; overflow-x: auto; }
.employee-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.employee-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; text-align: left; }
.employee-table td { padding: 15px 14px; border-bottom: 1px solid #edf1eb; color: var(--muted); font-size: 12px; }
.employee-table tbody tr:last-child td { border-bottom: 0; }
.employee-table tbody tr:hover { background: #f8faf7; }
.employee-name-cell { display: flex; min-width: 0; align-items: center; gap: 11px; }
.employee-list-avatar { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; overflow: hidden; border: 1px solid #dce6d8; border-radius: 50%; color: #245d46; background: #edf5e9; font-size: 14px; font-weight: 850; }
.employee-list-avatar img { width: 100%; height: 100%; object-fit: cover; }
.employee-name-copy { display: grid; min-width: 0; gap: 3px; }
.employee-name-cell strong { color: var(--ink); font-size: 14px; }
.employee-name-cell small { color: var(--muted); font-size: 10px; }
.employee-role-badge, .employee-status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--green); background: #edf4e9; font-size: 10px; font-weight: 800; }
.employee-status-badge { color: #39703d; background: #edf7e9; }
.employee-view-button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--green); background: #fff; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.employee-view-button:hover { border-color: var(--green); }
.employee-empty { margin: 0; padding: 52px 20px; color: var(--muted); text-align: center; }
.employee-readonly-note { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--lime); color: var(--muted); background: #f4f7f1; font-size: 10px; }
.role-permission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.role-permission-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f8faf7; }
.role-permission-grid article > span { color: #be941c; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.role-permission-grid h3 { margin: 7px 0 8px; color: var(--ink); font-size: 20px; }
.role-permission-grid p { min-height: 58px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.role-permission-grid ul { margin: 16px 0 0; padding: 14px 0 0 18px; border-top: 1px solid var(--line); color: var(--green); font-size: 11px; line-height: 1.9; }
.department-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.department-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f8faf7; }
.department-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.department-card h3 { margin: 0; color: var(--ink); font-size: 18px; }
.department-card header span { color: var(--green); font-size: 12px; font-weight: 850; }
.department-card p { margin: 8px 0 14px; color: var(--muted); font-size: 11px; }
.department-card ul { margin: 0; padding: 0; list-style: none; }
.department-card li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.department-filter-button, .coach-type-filter-button { width: 100%; margin-top: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--green); background: #fff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.department-filter-button:hover, .coach-type-filter-button:hover { border-color: var(--green); background: #f3f7ef; }
.coach-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.coach-type-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f8faf7; }
.coach-type-card > span { color: #be941c; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.coach-type-card h3 { margin: 8px 0 7px; color: var(--ink); font-size: 19px; }
.coach-type-card > p { min-height: 38px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.coach-type-people { margin-top: 14px; padding: 12px; border-radius: 10px; color: var(--green); background: #edf4e9; font-size: 11px; line-height: 1.6; }
.target-month-control { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.target-month-control button { width: 38px; height: 38px; border: 0; color: var(--green); background: transparent; font-size: 22px; cursor: pointer; }
.target-month-control button:hover { background: #f1f6ed; }
.target-month-control strong { min-width: 116px; padding: 0 12px; color: var(--ink); font-size: 12px; text-align: center; }
.target-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.target-summary article { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf7; }
.target-summary span, .target-summary small { display: block; color: var(--muted); font-size: 10px; }
.target-summary strong { display: block; margin: 5px 0 3px; color: var(--ink); font-size: 22px; }
.target-table-wrap { margin-top: 16px; overflow-x: auto; }
.target-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.target-table th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; text-align: left; }
.target-table td { padding: 14px 12px; border-bottom: 1px solid #edf1eb; color: var(--muted); font-size: 12px; }
.target-person-cell { display: grid; gap: 3px; }
.target-person-cell strong { color: var(--ink); font-size: 13px; }
.target-person-cell small { color: var(--muted); font-size: 10px; }
.target-status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #916f19; background: #fff4d1; font-size: 10px; font-weight: 800; }
.target-status-badge.is-set { color: #39703d; background: #eaf5e6; }
.target-draft-note { margin-top: 16px; }
.target-dialog-card { width: min(92vw, 650px); }
.target-dialog-person { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; padding: 14px; border-radius: 12px; background: #eef4eb; }
.target-dialog-person strong { color: var(--ink); }
.target-dialog-person span { padding: 4px 8px; border-radius: 999px; color: #fff; background: var(--green); font-size: 10px; font-weight: 800; }
.target-dialog-person small { margin-left: auto; color: var(--muted); }
.target-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.target-form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.target-form-grid input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
.target-form-grid input:focus { outline: 2px solid rgba(15,92,69,.18); border-color: var(--green); }
.target-form-status { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.target-dialog-card footer { gap: 10px; }
.payroll-panel { background: linear-gradient(180deg, #fbfdf9 0%, #f5f8f3 100%); }
.payroll-statistics-panel { padding: 22px; background: linear-gradient(180deg, #fbfdf9 0%, #f5f8f3 100%); }
.payroll-statistics-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.payroll-statistics-heading h3 { margin: 5px 0; color: var(--ink); font-size: 26px; }
.payroll-statistics-heading p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.payroll-month-picker { display: grid; gap: 6px; min-width: 190px; color: var(--muted); font-size: 11px; }
.payroll-month-picker input { min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font: inherit; font-weight: 750; }
.payroll-statistics-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.payroll-statistics-summary article { min-height: 118px; padding: 19px; border: 1px solid #dce5dc; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(16,53,42,.06); }
.payroll-statistics-summary span, .payroll-statistics-summary small { display: block; color: var(--muted); font-size: 11px; }
.payroll-statistics-summary strong { display: block; margin: 10px 0 6px; color: var(--ink); font-size: 28px; line-height: 1; }
.payroll-statistics-summary .payroll-estimate-metric { border-color: #9ab9a5; background: linear-gradient(145deg, #eff7ea, #fff); }
.payroll-statistics-summary .payroll-estimate-metric strong { color: var(--green); }
.payroll-statistics-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 14px 14px 0 0; background: #f1f5ef; }
.payroll-statistics-toolbar label { display: grid; flex: 1; gap: 5px; max-width: 520px; color: var(--muted); font-size: 10px; }
.payroll-statistics-toolbar input { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; }
.payroll-statistics-toolbar p { margin: 0 0 10px; color: #456359; font-size: 11px; font-weight: 720; }
.payroll-statistics-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: #fff; }
.payroll-statistics-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.payroll-statistics-table th, .payroll-statistics-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); color: #365047; font-size: 12px; text-align: left; }
.payroll-statistics-table th { color: var(--muted); background: #fbfcfa; font-size: 10px; }
.payroll-statistics-table td strong, .payroll-statistics-table td small { display: block; }
.payroll-statistics-table td strong { color: var(--ink); font-size: 13px; }
.payroll-statistics-table td small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.payroll-statistics-table tbody tr:hover { background: #f7faf5; }
.payroll-statistics-table .payroll-estimate-ready { color: var(--green); font-weight: 850; }
.payroll-statistics-table .payroll-estimate-pending { color: #a66a29; font-size: 10px; font-weight: 750; }
.payroll-statistics-disclosure { display: flex; gap: 12px; margin-top: 16px; padding: 15px 17px; border: 1px solid #d7e3d3; border-radius: 14px; color: #456359; background: #eef5ea; }
.payroll-statistics-disclosure i { color: var(--green); font-size: 20px; }
.payroll-statistics-disclosure strong { color: var(--ink); font-size: 12px; }
.payroll-statistics-disclosure ul { margin: 7px 0 0; padding-left: 17px; font-size: 10px; line-height: 1.7; }
.employee-dialog.payroll-statistics-dialog { width: min(92vw, 900px); }
.payroll-statistics-detail-card { width: 100%; box-sizing: border-box; }
.payroll-detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.payroll-detail-summary article { padding: 16px; border-radius: 13px; background: #eef5ea; }
.payroll-detail-summary span, .payroll-detail-summary strong { display: block; }
.payroll-detail-summary span { color: var(--muted); font-size: 10px; }
.payroll-detail-summary strong { margin-top: 7px; color: var(--ink); font-size: 20px; }
.payroll-estimate-detail { margin: 0 0 20px; padding: 17px; border: 1px solid #d6e3d5; border-radius: 15px; background: linear-gradient(145deg, #f3f8ef, #fff); }
.payroll-estimate-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.payroll-estimate-detail-heading h3 { margin: 4px 0 0; color: var(--ink); font-size: 17px; }
.payroll-estimate-detail-heading > span { padding: 5px 9px; border-radius: 999px; color: var(--green); background: #e7f2e3; font-size: 9px; font-weight: 850; }
.payroll-estimate-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.payroll-estimate-detail-grid article { min-width: 0; padding: 13px; border: 1px solid #dce6da; border-radius: 11px; background: rgba(255,255,255,.88); }
.payroll-estimate-detail-grid article.is-total { border-color: #86ac95; background: var(--green); }
.payroll-estimate-detail-grid span, .payroll-estimate-detail-grid strong, .payroll-estimate-detail-grid small { display: block; }
.payroll-estimate-detail-grid span { color: var(--muted); font-size: 9px; }
.payroll-estimate-detail-grid strong { margin: 7px 0 5px; overflow-wrap: anywhere; color: var(--ink); font-size: 17px; }
.payroll-estimate-detail-grid small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.payroll-estimate-detail-grid .is-total span, .payroll-estimate-detail-grid .is-total small { color: rgba(255,255,255,.72); }
.payroll-estimate-detail-grid .is-total strong { color: #fff; }
.payroll-estimate-warnings { margin: 12px 0 0; padding: 10px 12px 10px 28px; border-radius: 9px; color: #895b25; background: #fff4dd; font-size: 9px; line-height: 1.65; }
.payroll-detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.payroll-detail-columns section { min-width: 0; }
.payroll-detail-columns h3 { margin: 0 0 10px; color: var(--ink); font-size: 15px; }
.payroll-detail-list { display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.payroll-detail-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfa; }
.payroll-detail-list strong, .payroll-detail-list small { display: block; }
.payroll-detail-list strong { color: var(--ink); font-size: 12px; }
.payroll-detail-list small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.payroll-detail-list b { flex: 0 0 auto; color: var(--green); font-size: 13px; }
.payroll-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.payroll-heading h3 { margin: 5px 0 7px; color: var(--ink); font-size: 24px; }
.payroll-heading > div:first-child > p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.payroll-save-area { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.payroll-saved-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; font-weight: 800; }
.payroll-saved-toggle i { font-size: 15px; }
.payroll-saved-toggle em { display: grid; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; place-items: center; border-radius: 999px; color: #fff; background: var(--green); font-size: 9px; font-style: normal; }
.payroll-saved-toggle.is-open { color: #fff; border-color: var(--green); background: var(--green); }
.payroll-saved-toggle.is-open em { color: var(--green); background: #fff; }
.payroll-saved-section { margin-bottom: 14px; padding: 17px; border: 1px solid #d7e1d7; border-radius: 16px; background: rgba(239,245,236,.78); }
.payroll-saved-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.payroll-saved-heading h4 { margin: 4px 0 0; color: var(--ink); font-size: 18px; }
.payroll-saved-heading p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.payroll-saved-heading > span { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; color: var(--green); background: #fff; font-size: 10px; font-weight: 800; }
.payroll-saved-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payroll-saved-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid #d8e2d8; border-radius: 13px; background: #fff; }
.payroll-saved-card.is-active { border-color: #82a994; box-shadow: 0 8px 18px rgba(12,83,61,.08); }
.payroll-saved-card > i { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; color: var(--green); background: #edf5e9; font-size: 18px; }
.payroll-saved-card > div { display: grid; min-width: 0; gap: 5px; }
.payroll-saved-card > div > div { display: flex; align-items: center; gap: 8px; }
.payroll-saved-card strong { color: var(--ink); font-size: 12px; }
.payroll-saved-card div span { padding: 3px 7px; border-radius: 999px; color: #2c654e; background: #eaf4e5; font-size: 8px; font-weight: 800; }
.payroll-saved-card p, .payroll-saved-card small { margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.employee-dialog.payroll-saved-dialog { width: min(94vw, 980px); }
.payroll-saved-detail-card { width: 100%; max-height: min(88vh, 820px); overflow: auto; box-sizing: border-box; }
.payroll-saved-detail-card > header p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.payroll-saved-detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.payroll-saved-detail-summary article { padding: 15px 17px; border: 1px solid #dce5da; border-radius: 13px; background: #f2f7ef; }
.payroll-saved-detail-summary span, .payroll-saved-detail-summary strong { display: block; }
.payroll-saved-detail-summary span { color: var(--muted); font-size: 9px; }
.payroll-saved-detail-summary strong { margin-top: 7px; color: var(--ink); font-size: 14px; }
.payroll-saved-detail-sections { display: grid; gap: 18px; }
.payroll-saved-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.payroll-saved-detail-heading h3 { margin: 0; color: var(--ink); font-size: 15px; }
.payroll-saved-detail-heading p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.payroll-saved-detail-heading > span { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: var(--green); background: #edf5e9; font-size: 9px; font-weight: 800; }
.payroll-saved-detail-table-wrap { overflow-x: auto; border: 1px solid #dce4da; border-radius: 12px; }
.payroll-saved-detail-table { width: 100%; min-width: 650px; border-collapse: collapse; background: #fff; }
.payroll-saved-detail-table th, .payroll-saved-detail-table td { padding: 12px 14px; border-right: 1px solid #e2e8e0; border-bottom: 1px solid #e2e8e0; color: #365047; font-size: 11px; text-align: left; }
.payroll-saved-detail-table th { color: #60766c; background: #f4f7f2; font-size: 9px; font-weight: 800; }
.payroll-saved-detail-table th:first-child, .payroll-saved-detail-table td:first-child { width: 34px; color: #8a9b93; text-align: center; }
.payroll-saved-detail-table th:nth-child(2) { width: 44%; }
.payroll-saved-detail-table th:nth-child(3) { width: 22%; }
.payroll-saved-detail-table th:last-child, .payroll-saved-detail-table td:last-child { border-right: 0; }
.payroll-saved-detail-table tbody tr:last-child td { border-bottom: 0; }
.payroll-saved-detail-table tbody tr:hover { background: #f8faf7; }
.payroll-permission { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid #d7e2d7; border-radius: 10px; color: #567064; background: #fff; font-size: 10px; font-weight: 750; white-space: nowrap; }
.payroll-permission i { color: var(--green); font-size: 14px; }
.payroll-plan-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.payroll-plan-tabs button { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid #d7e1d7; border-radius: 14px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.payroll-plan-tabs button:hover { border-color: #8eb29f; transform: translateY(-1px); }
.payroll-plan-tabs button > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--green); background: #edf5e9; font-size: 19px; }
.payroll-plan-tabs button span { display: grid; gap: 3px; }
.payroll-plan-tabs button strong { font-size: 13px; }
.payroll-plan-tabs button small { color: var(--muted); font-size: 9px; }
.payroll-plan-tabs button.is-active { border-color: var(--green); color: #fff; background: var(--green); box-shadow: 0 10px 25px rgba(12,83,61,.17); }
.payroll-plan-tabs button.is-active > i { color: #173b31; background: #dff05a; }
.payroll-plan-tabs button.is-active small { color: rgba(255,255,255,.72); }
.payroll-form { display: grid; gap: 14px; }
.payroll-card { padding: 19px; border: 1px solid #dce4da; border-radius: 15px; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(17,57,44,.045); }
.payroll-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.payroll-card-heading > div { display: flex; align-items: center; gap: 10px; }
.payroll-card-heading > div > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--green); background: #eaf3e6; font-size: 9px; font-weight: 850; }
.payroll-card-heading h4 { margin: 0; color: var(--ink); font-size: 15px; }
.payroll-card-heading > p, .payroll-card-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.payroll-card-note { margin: -4px 0 13px; }
.payroll-lesson-value-mode { display: flex; align-items: end; gap: 14px; margin: -2px 0 14px; padding: 11px 13px; border: 1px solid #dfe7dc; border-radius: 11px; background: #f7faf5; }
.payroll-lesson-value-mode label { display: grid; min-width: 245px; gap: 6px; color: #53685f; font-size: 10px; font-weight: 750; }
.payroll-lesson-value-mode select { min-height: 40px; padding: 0 10px; border: 1px solid #d6e0d7; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }
.payroll-lesson-value-mode small { padding-bottom: 9px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.payroll-field-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.payroll-field-grid > label, .payroll-tier-fields > label { display: grid; gap: 6px; color: #53685f; font-size: 10px; font-weight: 750; }
.payroll-field-grid select, .payroll-field-grid input, .payroll-tier-fields input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #d6e0d7; border-radius: 9px; color: var(--ink); background: #fbfcfa; font: inherit; font-size: 11px; }
.payroll-field-grid select:focus, .payroll-field-grid input:focus, .payroll-tier-fields input:focus { border-color: var(--green); outline: 3px solid rgba(15,92,69,.1); }
.payroll-money-input, .payroll-inline-input { display: flex; align-items: center; overflow: hidden; border: 1px solid #d6e0d7; border-radius: 9px; background: #fbfcfa; }
.payroll-money-input input, .payroll-inline-input input { border: 0; border-radius: 0; background: transparent; }
.payroll-money-input input:focus, .payroll-inline-input input:focus { outline: 0; }
.payroll-money-input:focus-within, .payroll-inline-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,92,69,.1); }
.payroll-money-input em, .payroll-inline-input em { padding: 0 10px; color: #789085; font-size: 9px; font-style: normal; white-space: nowrap; }
.payroll-mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.payroll-mode-grid label { cursor: pointer; }
.payroll-mode-grid input { position: absolute; opacity: 0; pointer-events: none; }
.payroll-mode-grid label > span { display: grid; min-height: 102px; padding: 13px; border: 1px solid #d9e3da; border-radius: 12px; background: #fbfcfa; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.payroll-mode-grid i { color: #5f8174; font-size: 18px; }
.payroll-mode-grid strong { align-self: end; margin-top: 10px; color: var(--ink); font-size: 11px; }
.payroll-mode-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.payroll-mode-grid input:checked + span { border-color: var(--green); background: #f0f7eb; box-shadow: inset 0 0 0 1px var(--green); }
.payroll-mode-grid input:checked + span i { color: var(--green); }
.payroll-add-button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 11px; border: 1px solid #aac2b5; border-radius: 9px; color: var(--green); background: #fff; font: inherit; font-size: 10px; font-weight: 780; cursor: pointer; }
.payroll-add-button:hover { border-color: var(--green); background: #f1f7ed; }
.payroll-tier-list { display: grid; gap: 8px; }
.payroll-tier-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 34px; align-items: end; gap: 10px; padding: 11px; border: 1px solid #e1e7df; border-radius: 12px; background: #f8faf7; }
.payroll-tier-row > strong { align-self: center; color: #799084; font-size: 10px; text-align: center; }
.payroll-tier-fields { display: grid; grid-template-columns: 1fr 1fr .78fr 1.25fr; gap: 9px; }
.payroll-inline-input input { min-width: 0; }
.payroll-remove-button { display: grid; place-items: center; width: 34px; height: 42px; border: 0; border-radius: 9px; color: #a0655c; background: #f8ece9; cursor: pointer; }
.payroll-remove-button:hover { color: #8a3f33; background: #f3ddd8; }
.payroll-form :disabled { cursor: not-allowed; opacity: .67; }
.payroll-status { margin: 0; }
.employee-dialog { width: min(92vw, 560px); padding: 0; border: 0; border-radius: 22px; background: transparent; }
.employee-dialog::backdrop { background: rgba(12,38,30,.58); backdrop-filter: blur(5px); }
.employee-detail-card { padding: 26px; border-radius: 22px; background: #fff; box-shadow: 0 28px 70px rgba(11,45,35,.25); }
.employee-detail-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.employee-detail-card h2 { margin: 5px 0 0; color: var(--ink); font-size: 27px; }
.employee-detail-card > header button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; font-size: 22px; cursor: pointer; }
.employee-detail-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 16px; border-radius: 14px; background: #eef4eb; }
.employee-detail-identity span { padding: 5px 9px; border-radius: 999px; color: #fff; background: var(--green); font-size: 10px; font-weight: 850; }
.employee-detail-identity strong { color: var(--ink); }
.employee-detail-identity small { width: 100%; color: var(--muted); }
.employee-detail-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.employee-detail-metrics div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.employee-detail-metrics dt { color: var(--muted); font-size: 10px; }
.employee-detail-metrics dd { margin: 6px 0 0; color: var(--ink); font-size: 14px; font-weight: 800; }
.employee-detail-card section h3 { margin: 0 0 10px; color: var(--ink); font-size: 14px; }
.employee-detail-card > p { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.employee-detail-card footer { display: flex; justify-content: flex-end; margin-top: 20px; }
.portal-empty { padding: 30px 0; color: var(--muted); text-align: center; }
.risk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-height: none; }
.finance-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.finance-summary > div { padding: 18px; border-radius: 18px; background: #f2f6f0; }
.finance-summary span, .finance-summary strong { display: block; }
.finance-summary span { color: var(--muted); font-size: 12px; }
.finance-summary strong { margin-top: 6px; font-size: 24px; }
.advice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.advice-item { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.advice-item > span { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--green); background: #e5f4ea; font-size: 11px; font-weight: 800; }
.advice-high > span { color: #924331; background: #fae8e2; }
.advice-medium > span { color: #76530e; background: #fff5d9; }
.advice-item h3 { margin: 16px 0 10px; font-size: 20px; }
.advice-item p { color: var(--text); font-size: 14px; line-height: 1.7; }
.advice-item small { display: block; margin-top: 16px; color: var(--muted); line-height: 1.6; }
.portal-security { margin-top: 74px; }
.portal-toolbar { display: flex; gap: 12px; margin: 0 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.portal-toolbar label { display: grid; flex: 1; gap: 6px; color: var(--muted); font-size: 11px; }
.portal-toolbar input, .portal-toolbar select { min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: #f8faf7; font: inherit; }
.risk-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.risk-summary-item { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.risk-summary-item strong, .risk-summary-item span { display: block; }
.risk-summary-item strong { font-size: 30px; }
.risk-summary-item span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.risk-high { border-color: #efc4b8; }
.risk-renewal { border-color: #ead69d; }
.risk-incomplete { border-color: #cbd4ca; }
.risk-item { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfa; }
.risk-item:last-child { border-bottom: 1px solid var(--line); }
.risk-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.risk-item-heading > div { display: flex; gap: 7px; }
.risk-item-heading span { padding: 5px 9px; border-radius: 999px; color: var(--green); background: #eef4eb; font-size: 11px; }
.risk-coach { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.risk-item details { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f7f9f5; }
.risk-item summary { color: var(--green); cursor: pointer; font-size: 13px; font-weight: 800; }
.risk-item details p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.risk-item details .data-issue { color: #76530e; }
.risk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.risk-actions button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: #fff; cursor: pointer; font: inherit; font-size: 12px; }
.risk-actions button.is-active { color: #fff; border-color: var(--green); background: var(--green); }
.risk-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.risk-pagination > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.risk-pagination button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--green); background: #fff; font: inherit; cursor: pointer; }
.risk-pagination button.is-active { color: #fff; border-color: var(--green); background: var(--green); }
.risk-pagination button:disabled { color: #9aa59f; cursor: not-allowed; background: #f2f4f1; }
.risk-pagination i { padding: 0 2px; font-style: normal; }
.member-section-actions { display: grid; justify-items: end; gap: 10px; max-width: 520px; }
.member-section-actions p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: right; }
.member-section-head { position: relative; display: grid !important; grid-template-columns: minmax(350px, 1fr) 240px minmax(170px, .45fr); align-items: center !important; gap: 18px !important; min-height: 200px; overflow: hidden; isolation: isolate; }
.member-section-copy { position: relative; z-index: 2; }
.member-section-copy h2 { font-size: clamp(30px, 3vw, 38px); white-space: nowrap; }
.member-section-copy > p:last-child { max-width: 390px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.member-orbit { position: relative; width: 240px; height: 150px; justify-self: center; contain: layout paint; }
.member-orbit::before { position: absolute; inset: 24px 52px; border-radius: 50%; background: rgba(205,239,101,.18); filter: blur(24px); content: ""; }
.member-orbit-ring { position: absolute; top: 50%; left: 50%; border: 1px dashed rgba(31,102,76,.24); border-radius: 50%; transform: translate(-50%,-50%); }
.member-orbit-ring-inner { width: 90px; height: 90px; }
.member-orbit-ring-outer { width: 136px; height: 136px; }
.member-orbit-center { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; width: 64px; height: 64px; place-items: center; padding: 7px; border: 1px solid rgba(26,93,67,.18); border-radius: 50%; color: var(--green-dark); background: rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(20,71,55,.12); transform: translate(-50%,-50%); }
.member-orbit-center i { color: var(--green); font-size: 17px; }
.member-orbit-center strong { margin-top: -4px; font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; }
.member-orbit-center span { margin-top: -3px; color: #75847d; font-size: 7px; font-weight: 750; white-space: nowrap; }
.member-orbit-nodes, .member-orbit-rotor { position: absolute; inset: 0; }
.member-orbit-rotor { --orbit-radius: 68px; --orbit-duration: 36s; --orbit-start: 0deg; z-index: 2; pointer-events: none; rotate: var(--orbit-start); animation: member-orbit-spin var(--orbit-duration) linear infinite; }
.member-orbit-rotor.is-inner { --orbit-radius: 45px; z-index: 4; }
.member-orbit-node { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin-left: var(--orbit-radius); transform: translate(-50%,-50%); }
.member-orbit-rotor.is-inner .member-orbit-node { width: 36px; height: 36px; }
.member-orbit-avatar { display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; border: 2px solid rgba(255,255,255,.96); border-radius: 50%; color: #275e49; background: #e4f0df; box-shadow: 0 6px 18px rgba(16,65,49,.17); font-size: 10px; font-weight: 900; rotate: calc(0deg - var(--orbit-start)); animation: member-orbit-counter-spin var(--orbit-duration) linear infinite; }
.member-orbit-avatar.is-coach { color: #fff; background: #256e55; }
.member-orbit-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-orbit:hover .member-orbit-rotor, .member-orbit:hover .member-orbit-avatar { animation-play-state: paused; }
.member-section-head .member-section-actions { position: relative; z-index: 5; max-width: 200px; }
.member-section-head .member-section-actions p { font-size: 10px; }
@keyframes member-orbit-spin { to { rotate: calc(var(--orbit-start) + 360deg); } }
@keyframes member-orbit-counter-spin { to { rotate: calc(-360deg - var(--orbit-start)); } }
.portal-primary-button, .portal-secondary-button, .member-edit-button { border-radius: 11px; font: inherit; cursor: pointer; }
.portal-primary-button { padding: 11px 18px; border: 1px solid var(--green); color: #fff; background: var(--green); font-weight: 800; }
.portal-primary-button:hover { background: #0a4b38; }
.portal-primary-button:disabled { cursor: wait; opacity: .55; }
.portal-secondary-button { padding: 11px 18px; border: 1px solid var(--line); color: var(--green); background: #fff; }
.member-edit-button { margin-left: 8px; padding: 6px 11px; border: 1px solid #cbd9c8; color: var(--green); background: #f5f9f3; font-size: 11px; }
.member-dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 36px); padding: 0; overflow: auto; border: 0; border-radius: 24px; color: var(--text); background: #fff; box-shadow: 0 28px 90px rgba(8,37,28,.3); }
.member-dialog::backdrop { background: rgba(5,25,19,.58); backdrop-filter: blur(4px); }
.member-form { padding: 28px; }
.member-form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.member-form h2 { margin: 5px 0 0; font-size: 28px; }
.member-dialog-close { width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: #edf3ea; font-size: 25px; cursor: pointer; }
.member-form-note { margin: 18px 0; padding: 12px 14px; border-radius: 12px; color: #76530e; background: #fff5d9; font-size: 12px; line-height: 1.6; }
.member-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member-form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.member-form-grid input, .member-form-grid select { min-width: 0; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #f8faf7; font: inherit; }
.member-form-grid input:focus, .member-form-grid select:focus { outline: 2px solid rgba(15,92,69,.18); border-color: var(--green); }
.member-form-wide { grid-column: 1 / -1; }
.member-form-status { margin: 16px 0 0; padding: 11px 13px; border-radius: 10px; color: #9d3d2a; background: #fae8e2; font-size: 12px; }
.member-form-status[data-state="pending"] { color: #76530e; background: #fff3cf; }
.member-form-status[data-state="success"] { color: var(--green); background: #e9f3e5; }
.member-form > footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.member-dialog-expanded { width: min(900px, calc(100% - 32px)); }
.coach-create-dialog { width: min(780px, calc(100% - 28px)); }
.coach-create-form { padding: 0 28px 28px; background: #f8faf7; }
.coach-create-form > header { position: sticky; top: 0; z-index: 3; margin: 0 -28px 20px; padding: 24px 28px 18px; border-bottom: 1px solid #e2e9df; background: rgba(248,250,247,.96); backdrop-filter: blur(14px); }
.coach-create-form > header p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.coach-create-form .member-form-section { padding: 20px; }
.coach-avatar-editor { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 18px; align-items: center; margin-bottom: 20px; padding: 16px; border: 1px solid #dce6d9; border-radius: 16px; background: #f3f7f0; }
.coach-avatar-preview { display: grid; width: 92px; height: 92px; place-items: center; overflow: hidden; border: 3px solid #fff; border-radius: 50%; color: var(--green); background: #e4efde; box-shadow: 0 0 0 1px #d2dfcf; font-size: 30px; }
.coach-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.coach-avatar-editor strong { color: var(--ink); }
.coach-avatar-editor p { margin: 5px 0 11px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.coach-avatar-select { display: inline-flex; cursor: pointer; }
.coach-avatar-select input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.coach-create-form textarea { min-height: 96px; padding: 12px 13px; resize: vertical; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #f8faf7; font: inherit; }
.coach-create-form textarea:focus { outline: 2px solid rgba(15,92,69,.18); border-color: var(--green); }
.coach-invite-result { padding: 26px; border: 1px solid #bed5b6; border-radius: 20px; text-align: center; background: linear-gradient(145deg,#eff8e8,#fff); }
.coach-invite-result span, .coach-invite-result strong, .coach-invite-result code { display: block; }
.coach-invite-result span { color: var(--muted); font-size: 11px; }
.coach-invite-result strong { margin-top: 8px; color: var(--green-dark); font-size: 22px; }
.coach-invite-result code { margin: 18px auto; color: var(--green); font: 900 34px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .17em; }
.coach-invite-result p { max-width: 490px; margin: 0 auto 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.coach-invite-result > div { display: flex; justify-content: center; gap: 10px; }
.member-create-form { padding: 0 30px 28px; background: #fbfcf9; }
.member-create-form > header { position: sticky; top: 0; z-index: 4; margin: 0 -30px 22px; padding: 24px 30px 18px; border-bottom: 1px solid #e5eae1; background: rgba(251,252,249,.96); backdrop-filter: blur(16px); }
.member-create-form > header h2 { margin-top: 4px; color: var(--green-dark); }
.member-create-form > header p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.member-create-form .member-form-note { margin: 0 0 18px; }
.member-form-section { padding: 22px; border: 1px solid #dfe6dc; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(12,53,41,.045); }
.member-form-section + .member-form-section { margin-top: 16px; }
.member-form-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.member-form-section-head > span { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #174f3d; background: #e9f2e4; font-size: 11px; font-weight: 900; }
.member-form-section-head h3, .member-form-section-head p { margin: 0; }
.member-form-section-head h3 { color: var(--green-dark); font-size: 17px; }
.member-form-section-head p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.member-avatar-editor { display: flex; align-items: center; gap: 18px; margin: -2px 0 20px; padding: 16px; border: 1px solid #dfe7dc; border-radius: 15px; background: #f7faf5; }
.member-avatar-editor[hidden] { display: none; }
.member-avatar-preview { display: grid; flex: 0 0 78px; width: 78px; height: 78px; place-items: center; overflow: hidden; border: 2px solid #fff; border-radius: 50%; color: #245d46; background: #e5f0df; box-shadow: 0 0 0 1px #d7e3d3; font-size: 25px; font-weight: 900; }
.member-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.member-avatar-editor-copy { min-width: 0; flex: 1; }
.member-avatar-editor-copy > strong { color: var(--green-dark); font-size: 14px; }
.member-avatar-editor-copy > p { margin: 5px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.member-avatar-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.member-avatar-select { display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; font-size: 11px; }
.member-avatar-select input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.member-avatar-remove { padding: 8px 13px; border: 1px solid #e1c5bf; border-radius: 10px; color: #9b493d; background: #fff; font: inherit; font-size: 11px; cursor: pointer; }
.member-form-section .member-form-grid { gap: 15px; }
.member-form-section .member-form-grid label > span, .member-choice-field legend, .member-creator-field > span { color: #253b33; font-weight: 760; }
.member-form-section .member-form-grid label small { color: #7b8982; font-size: 10px; }
.member-choice-field { min-width: 0; margin: 0 0 19px; padding: 0; border: 0; }
.member-choice-field legend { margin-bottom: 10px; font-size: 12px; }
.member-choice-field > small { display: block; margin-top: 8px; color: #7a8881; font-size: 10px; line-height: 1.55; }
.member-choice-grid { display: grid; gap: 10px; }
.member-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-choice-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-duration-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-small-class-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.member-choice-grid button { min-height: 48px; padding: 8px 12px; border: 1px solid #e0e5dc; border-radius: 12px; color: #56635d; background: #f4f2e9; font: inherit; font-size: 12px; font-weight: 720; cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease; }
.member-choice-grid button:hover { border-color: #a5b9a8; }
.member-choice-grid button.is-active { border-color: #315f46; color: #fff; background: #315f46; box-shadow: 0 8px 18px rgba(49,95,70,.16); }
.member-course-fields { margin-bottom: 19px; }
.member-course-fields label[hidden], .member-choice-field[hidden] { display: none; }
.member-no-duration-note[hidden] { display: none; }
.member-no-duration-note { display: flex; align-items: center; gap: 14px; margin: 0 0 19px; padding: 14px 16px; border: 1px solid #cfe0d6; border-radius: 14px; background: #f2f7f2; color: #52665c; font-size: 12px; line-height: 1.6; }
.member-no-duration-note strong { flex: 0 0 auto; color: #0e654d; font-size: 13px; }
.member-small-class-custom { display: grid; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.member-small-class-custom[hidden] { display: none; }
.member-small-class-custom input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #f8faf7; font: inherit; }
[data-member-swimming-note] { display: block; margin-top: 6px; color: #718078; font-size: 10px; line-height: 1.5; }
[data-member-swimming-note][hidden] { display: none; }
.member-date-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; margin-top: 11px; }
.member-date-range label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.member-date-range input, .member-creator-field input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #f8faf7; font: inherit; }
.member-date-range i { padding-bottom: 13px; color: #89958f; font-size: 11px; font-style: normal; }
.member-creator-field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.member-creator-field input[readonly] { color: #5d6b64; background: #edf2ea; }
.member-create-form > footer { position: sticky; bottom: 0; z-index: 4; margin: 20px -30px -28px; padding: 16px 30px 20px; border-top: 1px solid #e5eae1; background: rgba(251,252,249,.97); backdrop-filter: blur(16px); }
.member-create-form > footer .portal-primary-button { min-width: 150px; }
.member-create-form.is-editing .member-course-section { display: none; }
.member-create-form.is-card-only [data-member-basic-section] { display: none; }
.member-create-form.is-card-only [data-member-course-section] .member-form-section-head > span { font-size: 0; }
.member-create-form.is-card-only [data-member-course-section] .member-form-section-head > span::after { content: "01"; font-size: 11px; }
.member-detail-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 36px); padding: 0; overflow: auto; border: 0; border-radius: 28px; color: var(--ink); background: #f4f7f1; box-shadow: 0 32px 100px rgba(8,37,28,.32); }
.member-detail-dialog::backdrop { background: rgba(5,25,19,.6); backdrop-filter: blur(5px); }
.member-detail-shell { min-height: 680px; }
.member-detail-header { display: grid; grid-template-columns: 72px minmax(0,1fr) auto 40px; gap: 18px; align-items: center; padding: 28px 32px; color: #fff; background: linear-gradient(135deg,#0d4a38,#176d50); }
.member-detail-header .panel-label { color: #d9f36a; }
.member-detail-header h2 { margin: 4px 0; font-size: 30px; }
.member-detail-header p:last-child { margin: 0; color: rgba(255,255,255,.72); }
.member-detail-avatar { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; color: #164533; background: #d9f36a; font-size: 25px; font-weight: 900; }
.member-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-risk-badge { padding: 8px 12px; border-radius: 999px; color: #23533f; background: #eef5e8; font-size: 13px; font-weight: 700; }
.member-detail-header .member-dialog-close { color: #fff; background: rgba(255,255,255,.14); }
.member-invite-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 24px; align-items: center; margin: 22px 28px 0; padding: 20px 22px; border: 1px solid #d7e4d2; border-radius: 18px; background: #fff; }
.member-invite-panel h3 { margin: 0 0 6px; color: #153f33; font-size: 18px; }
.member-invite-panel p { margin: 0; color: var(--muted); }
.member-invite-panel output { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; color: #194c39; background: #eff7e8; font-weight: 700; letter-spacing: .04em; }
.member-invite-qr { grid-column: 1 / -1; display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding: 16px; border: 1px solid #dbe5d5; border-radius: 16px; background: #fffdf7; }
.member-invite-qr[hidden] { display: none; }
.member-invite-qr img { width: 132px; height: 132px; border-radius: 12px; object-fit: cover; }
.member-invite-qr strong { color: #163f34; }
.member-invite-qr p { margin: 6px 0 12px; }
.member-detail-tabs { display: flex; margin: 18px 28px 0; padding: 5px; border: 1px solid #dce5d8; border-radius: 15px; background: #fff; }
.member-detail-tabs button { flex: 1; min-height: 46px; border: 0; border-radius: 11px; color: #68766e; background: transparent; font-weight: 800; cursor: pointer; }
.member-detail-tabs button.is-active { color: #fff; background: #12694e; box-shadow: 0 8px 22px rgba(18,105,78,.2); }
.member-detail-tabs span { margin-left: 5px; font-size: 12px; opacity: .75; }
.member-detail-body { padding: 22px 28px 6px; }
.member-detail-panel { padding: 24px; color: #18392f; border: 1px solid #dce5d8; border-radius: 20px; background: #fff; }
.member-detail-section-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; }
.member-detail-section-head h3 { margin: 3px 0 0; color: #153f33; font-size: 22px; }
.member-detail-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; margin: 0; }
.member-detail-info-grid div { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 18px; padding: 15px 0; border-bottom: 1px solid #edf1ea; }
.member-detail-info-grid dt { color: #7b8880; }
.member-detail-info-grid dd { margin: 0; color: #18392f; text-align: right; overflow-wrap: anywhere; font-weight: 700; }
.member-service-card { margin-top: 24px; padding: 20px; border-radius: 16px; background: #f5f8f2; }
.member-service-card h3 { margin: 0 0 8px; color: #153f33; font-size: 18px; }
.member-card-list, .member-follow-list { display: grid; gap: 14px; }
.member-card-item, .member-follow-item { padding: 20px; border: 1px solid #dce5d8; border-radius: 16px; background: #fbfdf9; }
.member-card-item header, .member-follow-item header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.member-card-item h4, .member-follow-item h4 { margin: 0; font-size: 18px; }
.member-card-item header span { padding: 6px 10px; border-radius: 999px; color: #256043; background: #eaf5e3; font-size: 12px; font-weight: 800; }
.member-card-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.member-card-metrics div { padding: 12px; border-radius: 12px; background: #f1f5ee; }
.member-card-metrics small { display: block; margin-bottom: 5px; color: #7b8880; }
.member-card-metrics strong { font-size: 15px; }
.member-card-meta { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.member-follow-form { display: grid; gap: 14px; margin-bottom: 20px; padding: 18px; border-radius: 16px; background: #f4f7f1; }
.member-follow-form textarea { width: 100%; resize: vertical; }
.member-follow-form fieldset { margin: 0; padding: 0; border: 0; }
.member-follow-form legend { margin-bottom: 9px; font-weight: 700; }
.member-follow-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.member-follow-tags label { padding: 7px 10px; border: 1px solid #d6e0d1; border-radius: 999px; background: #fff; cursor: pointer; }
.member-follow-tags input { margin-right: 5px; accent-color: #12694e; }
.member-follow-form > button { justify-self: end; }
.member-follow-item p { margin: 12px 0; line-height: 1.7; white-space: pre-wrap; }
.member-follow-item time { color: #7b8880; font-size: 13px; }
.member-follow-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.member-follow-tag-list span { padding: 5px 8px; border-radius: 999px; color: #35614e; background: #eaf1e6; font-size: 12px; }
.member-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 28px 28px; }
.member-detail-actions > div { display: flex; align-items: center; gap: 12px; padding: 16px; color: #18392f; border: 1px solid #dce5d8; border-radius: 16px; background: #fff; }
.member-detail-actions small { color: #7b8880; }
.member-delete-button { padding: 10px 16px; border: 1px solid #d6a7a1; border-radius: 12px; color: #9c382f; background: #fff; font-weight: 800; cursor: pointer; }
@media (max-width: 620px) {
  .payroll-statistics-panel { padding: 14px; }
  .payroll-statistics-heading { display: grid; align-items: start; }
  .payroll-month-picker { min-width: 0; width: 100%; }
  .payroll-statistics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-statistics-summary article { min-height: 104px; padding: 15px; }
  .payroll-statistics-summary strong { font-size: 22px; }
  .payroll-statistics-toolbar { display: grid; }
  .payroll-statistics-toolbar label { width: 100%; }
  .payroll-statistics-toolbar p { margin: 0; }
  .payroll-detail-summary, .payroll-detail-columns { grid-template-columns: 1fr; }
  .payroll-estimate-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-dialog-expanded { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .coach-create-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .coach-create-form { min-height: 100%; padding: 0 16px 22px; }
  .coach-create-form > header { margin: 0 -16px 16px; padding: 16px; }
  .coach-avatar-editor { grid-template-columns: 72px minmax(0,1fr); gap: 13px; padding: 13px; }
  .coach-avatar-preview { width: 70px; height: 70px; }
  .coach-invite-result { padding: 22px 16px; }
  .coach-invite-result code { font-size: 27px; }
  .coach-invite-result > div { display: grid; }
  .member-detail-dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .member-detail-header { grid-template-columns: 54px minmax(0,1fr) 36px; gap: 12px; padding: 20px 18px; }
  .member-detail-avatar { width: 50px; height: 50px; border-radius: 15px; }
  .member-detail-header h2 { font-size: 24px; }
  .member-risk-badge { grid-column: 2; justify-self: start; }
  .member-detail-header .member-dialog-close { grid-column: 3; grid-row: 1; }
  .member-invite-panel { grid-template-columns: 1fr; margin: 14px 14px 0; padding: 17px; }
  .member-invite-panel .portal-primary-button { width: 100%; }
  .member-detail-tabs { margin: 14px 14px 0; overflow-x: auto; }
  .member-detail-tabs button { min-width: 116px; }
  .member-detail-body { padding: 14px; }
  .member-detail-panel { padding: 18px 15px; }
  .member-detail-info-grid { grid-template-columns: 1fr; }
  .member-detail-info-grid div { grid-template-columns: 110px minmax(0,1fr); }
  .member-card-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-detail-section-head { align-items: flex-start; }
  .member-detail-actions { grid-template-columns: 1fr; padding: 0 14px 24px; }
  .member-detail-actions > div { align-items: flex-start; flex-direction: column; }
  .member-create-form { min-height: 100%; padding: 0 16px 22px; }
  .member-create-form > header { margin: 0 -16px 16px; padding: 16px 16px 13px; }
  .member-create-form > header .panel-label, .member-create-form > header p:last-child { display: none; }
  .member-create-form > header h2 { margin: 4px 0 0; font-size: 23px; }
  .member-create-form .member-form-note { margin-bottom: 14px; font-size: 10px; }
  .member-form-section { padding: 17px 15px; border-radius: 15px; box-shadow: none; }
  .member-form-section-head { margin-bottom: 16px; }
  .member-avatar-editor { align-items: flex-start; gap: 13px; padding: 13px; }
  .member-avatar-preview { flex-basis: 64px; width: 64px; height: 64px; }
  .member-avatar-editor-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .member-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-small-class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-choice-grid { gap: 8px; }
  .member-choice-grid button { min-height: 52px; font-size: 13px; }
  .member-date-range { grid-template-columns: 1fr 22px 1fr; gap: 5px; }
  .member-date-range input { padding: 0 9px; font-size: 11px; }
  .member-create-form > footer { margin: 18px -16px -22px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .member-create-form > footer button { flex: 1; }
}
.course-section-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.course-section-actions p { margin: 0 8px 0 0; }
.booking-dialog { width: min(720px, calc(100% - 28px)); }
.private-format-picker { display: flex; gap: 22px; margin: 0; padding: 14px 16px; border: 1px solid #d8e2d6; border-radius: 13px; }
.private-format-picker legend { padding: 0 6px; color: #48665c; font-size: 12px; }
.private-format-picker label { display: inline-flex; gap: 7px; align-items: center; color: #173f34; font-weight: 700; }
.private-pair-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; border-radius: 15px; background: #f3f7eb; }
.private-pair-fields[hidden] { display: none; }
.operation-source-badge { display: inline-flex; width: fit-content; margin-top: 4px; padding: 2px 7px; border-radius: 999px; color: #527064; background: #edf3e8; font-size: 9px; font-weight: 700; }
.booking-cancel-dialog { width: min(560px, calc(100% - 28px)); }
.account-security-dialog { width: min(620px, calc(100% - 28px)); }
.account-security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px 0; }
.account-security-grid article { padding: 16px; border: 1px solid #dce4d8; border-radius: 14px; background: #fffdf8; }
.account-security-grid span,.account-security-grid strong { display: block; }
.account-security-grid span { margin-bottom: 6px; color: #72847d; font-size: 11px; }
.account-security-grid strong { color: #173f34; font-size: 15px; }
.group-course-dialog { width: min(620px, calc(100% - 28px)); }
.member-form-grid label small { min-height: 18px; color: var(--green); line-height: 1.45; }
.course-cancel-button { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #e5c7bd; border-radius: 999px; color: #9d3d2a; background: #fff7f3; font: inherit; font-size: 11px; cursor: pointer; }
.course-cancel-button:disabled { cursor: wait; opacity: .5; }
.course-delete-button { padding: 10px 14px; border: 1px solid #e5c7bd; border-radius: 11px; color: #9d3d2a; background: #fff7f3; font: inherit; cursor: pointer; }
.group-course-dialog .member-form > footer { align-items: center; }
.group-course-dialog .member-form > footer > span { flex: 1; }
.course-workspace { margin-top: 18px; }
.course-workspace-tabs { display: flex; gap: 6px; margin-bottom: 12px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #eaf0e7; }
.course-workspace-tabs button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font: inherit; font-weight: 750; cursor: pointer; }
.course-workspace-tabs button:hover { color: var(--green); }
.course-workspace-tabs button.is-active { color: #fff; background: var(--green); box-shadow: 0 7px 18px rgba(15,92,69,.18); }
.course-workspace-tabs span { margin-left: 5px; font-size: 10px; opacity: .75; }
.course-tab-panel > .portal-panel { border-radius: 18px; }
.private-schedule-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.private-schedule-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 24px 20px; border-bottom: 1px solid var(--line); background: #f5f8f2; }
.private-schedule-toolbar h3 { margin: 4px 0 5px; color: var(--ink); font-size: 25px; letter-spacing: -.025em; }
.private-schedule-toolbar p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.private-schedule-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.private-display-select { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 750; }
.private-display-select select { min-height: 30px; padding: 0 28px 0 7px; border: 0; border-radius: 7px; color: var(--green); background: #f3f7f0; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.private-display-select select:focus-visible { outline: 2px solid rgba(15,92,69,.24); outline-offset: 1px; }
.private-display-select select:disabled { color: #96a19c; cursor: not-allowed; opacity: .72; }
.private-schedule-actions { display: flex; align-items: end; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.private-coach-filter { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.private-coach-filter select { min-width: 150px; min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #fff; font: inherit; font-size: 12px; }
.private-view-switch { display: flex; gap: 3px; padding: 4px; border-radius: 11px; background: #e5ece1; }
.private-view-switch button { min-width: 36px; min-height: 34px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.private-view-switch button:hover { color: var(--green); }
.private-view-switch button.is-active { color: #fff; background: var(--green); box-shadow: 0 5px 12px rgba(15,92,69,.16); }
.private-schedule-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.private-schedule-metrics article { display: grid; gap: 4px; padding: 16px 20px; border-right: 1px solid var(--line); }
.private-schedule-metrics article:last-child { border-right: 0; }
.private-schedule-metrics span { color: var(--muted); font-size: 11px; }
.private-schedule-metrics strong { color: var(--green); font-size: 25px; line-height: 1; }
.private-schedule-metrics small { color: #849088; font-size: 9px; }
.private-schedule-note { display: flex; align-items: center; gap: 7px; margin: 16px 24px; padding: 10px 12px; border-left: 3px solid var(--lime); color: #48645a; background: #f4f7f1; font-size: 11px; }
.private-schedule-note i { color: var(--green); font-size: 15px; }
.private-schedule-scroll { overflow-x: auto; overscroll-behavior-inline: contain; border-top: 1px solid var(--line); scrollbar-color: #9fb1a8 #edf1eb; }
.private-schedule-scroll:focus-visible { outline: 2px solid rgba(15,92,69,.24); outline-offset: -2px; }
.private-schedule-grid { display: grid; min-width: 945px; grid-template-columns: repeat(7,minmax(135px,1fr)); background: #f9fbf8; }
.private-schedule-grid[data-private-view="day"] { min-width: 0; grid-template-columns: 1fr; }
.private-schedule-grid[data-private-view="month"] { min-width: 980px; grid-template-columns: repeat(7,minmax(135px,1fr)); }
.private-weekday-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-right: 1px solid var(--line); color: #52675e; background: #edf1ec; font-size: 11px; text-align: left; }
.private-weekday-head strong { font-size: 11px; font-weight: 800; }
.private-weekday-head span { color: #8a9791; font-size: 9px; font-weight: 650; }
.private-weekday-head:nth-child(7) { border-right: 0; }
.private-day-column { position: relative; display: flex; flex-direction: column; gap: 9px; min-height: 340px; padding: 12px; border-right: 1px solid var(--line); background: #fff; }
.private-day-column:last-child { border-right: 0; }
.private-day-column.is-today { background: #fbfdf5; box-shadow: inset 0 3px 0 var(--lime); }
.private-day-column.is-outside { background: #f3f5f1; opacity: .58; }
.private-day-column > header { display: flex; align-items: center; justify-content: space-between; min-height: 26px; padding-bottom: 8px; border-bottom: 1px solid #edf0eb; }
.private-day-column > header strong { color: var(--ink); font-size: 12px; }
.private-day-column > header span { color: var(--green); font-size: 9px; font-weight: 800; }
.private-booking-card { position: relative; display: grid; gap: 4px; padding: 11px 10px; border: 1px solid #dbe5d8; border-left: 4px solid var(--green-2); border-radius: 11px; color: var(--text); background: #fff; box-shadow: 0 6px 14px rgba(22,58,46,.06); }
.private-booking-card:hover { border-color: #9eb8a9; transform: translateY(-1px); }
.private-booking-card.has-conflict { border-color: #e8b5a8; border-left-color: #bf543c; background: #fff9f6; }
.private-booking-card time { color: var(--green); font-size: 10px; font-weight: 850; }
.private-booking-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.private-booking-card span,.private-booking-card small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.private-booking-card em { justify-self: start; padding: 3px 7px; border-radius: 999px; color: #a43b2c; background: #fde9e3; font-size: 9px; font-style: normal; font-weight: 800; }
.private-booking-card .course-cancel-button { justify-self: start; margin-top: 3px; padding: 4px 8px; font-size: 9px; }
.private-day-empty { margin: auto 0; color: #98a49d; font-size: 10px; text-align: center; }
.private-day-add { width: 100%; min-height: 34px; margin-top: auto; border: 1px dashed #b7c9b8; border-radius: 9px; color: var(--green); background: #fbfdf9; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.private-day-add:hover { border-color: var(--green-2); background: #eef6e9; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-day-column { gap: 0; min-height: 470px; padding: 9px 10px 12px; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-day-column > header { justify-content: flex-start; gap: 3px; min-height: 25px; padding: 0 0 5px; border-bottom: 0; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-day-column > header strong { color: #6c7973; font-size: 10px; font-weight: 700; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-day-column > header span { color: #9aa49f; font-size: 9px; font-weight: 600; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card { grid-template-columns: auto minmax(0,1fr); gap: 2px 5px; padding: 7px 2px 8px 10px; border: 0; border-left: 0; border-radius: 0; background: transparent; box-shadow: none; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card::before { position: absolute; top: 12px; left: 1px; width: 3px; height: 3px; border-radius: 50%; background: #789087; content: ""; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card:hover { background: #f1f6ef; transform: none; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card.has-conflict { background: #fff3ef; box-shadow: inset 2px 0 0 #bf543c; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card time { grid-column: 1; color: #64756d; font-size: 10px; line-height: 1.45; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card strong { grid-column: 2; color: #50645b; font-size: 10px; font-weight: 700; line-height: 1.45; white-space: normal; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card span { display: none; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card small { grid-column: 1 / -1; padding-left: 1px; color: #7b8a83; font-size: 9px; line-height: 1.45; white-space: normal; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card em { grid-column: 1 / -1; padding: 2px 5px; font-size: 8px; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card .course-cancel-button { position: absolute; top: 3px; right: 1px; margin: 0; padding: 2px 5px; font-size: 8px; opacity: 0; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card:hover .course-cancel-button,
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-booking-card:focus-within .course-cancel-button { opacity: 1; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-day-empty { margin: 20px 0 0; color: #b2bbb6; }
.private-schedule-grid[data-private-view="week"][data-private-density="compact"] .private-day-add { min-height: 29px; border-radius: 6px; font-size: 9px; }
.private-schedule-grid[data-private-view="day"] .private-day-column { min-height: 380px; }
.private-schedule-grid[data-private-view="day"] .private-booking-card { grid-template-columns: 105px minmax(140px,1fr) minmax(120px,.8fr) minmax(120px,.8fr) auto; align-items: center; gap: 12px; }
.private-schedule-grid[data-private-view="day"] .private-booking-card .course-cancel-button { justify-self: end; margin: 0; }
.private-schedule-grid[data-private-view="month"] .private-day-column { min-height: 145px; padding: 8px; border-bottom: 1px solid var(--line); }
.private-schedule-grid[data-private-view="month"] .private-booking-card { gap: 2px; padding: 7px 7px 7px 8px; border-left-width: 3px; border-radius: 8px; box-shadow: none; }
.private-schedule-grid[data-private-view="month"] .private-booking-card strong { font-size: 10px; }
.private-schedule-grid[data-private-view="month"] .private-booking-card span,.private-schedule-grid[data-private-view="month"] .private-booking-card small,.private-schedule-grid[data-private-view="month"] .private-booking-card em,.private-schedule-grid[data-private-view="month"] .private-booking-card .course-cancel-button { display: none; }
.private-schedule-empty { margin: 0; padding: 24px; color: var(--muted); text-align: center; }
.store-course-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.store-course-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,#f7faf4,#eef5ea); }
.store-course-toolbar h3 { margin: 4px 0 8px; color: var(--green); font-size: 26px; }
.store-course-toolbar p:last-child { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.7; }
.store-course-filter { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,260px); gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.store-course-filter label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.store-course-filter input,.store-course-filter select { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #fbfdf9; font: inherit; }
.store-course-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 24px; }
.store-course-item { display: grid; align-content: start; gap: 14px; min-height: 330px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg,#fff,#f7faf4); }
.store-course-cover { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; margin: 0; border-radius: 12px; background: #e9f1e5; }
.store-course-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.store-course-cover.is-placeholder { display: grid; place-content: center; justify-items: center; gap: 6px; color: #5d7c6d; background: radial-gradient(circle at 75% 20%,rgba(206,244,82,.32),transparent 26%),linear-gradient(135deg,#e7f0e3,#d8e7dc); }
.store-course-cover.is-placeholder i { font-size: 26px; }
.store-course-cover.is-placeholder span { font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.store-course-item header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.store-course-item h4 { margin: 0; color: var(--green); font-size: 18px; line-height: 1.4; }
.store-course-header-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.store-course-edit-button { min-height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 0 9px; border: 1px solid #bdd2be; border-radius: 999px; color: var(--green); background: #fff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.store-course-edit-button:hover { border-color: var(--green); background: #edf5e9; }
.store-course-type { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: #0c664c; background: #e8f2e4; font-size: 11px; font-weight: 800; }
.store-course-summary { margin: 0; color: var(--muted); line-height: 1.65; }
.store-course-features { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.store-course-features li { padding: 5px 8px; border: 1px solid #dbe7d7; border-radius: 999px; color: #3d6658; background: #f7faf4; font-size: 11px; }
.store-course-item footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.store-course-price { color: var(--green); font-size: 21px; font-weight: 850; }
.store-course-price small { margin-left: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.store-course-item time { color: var(--muted); font-size: 10px; }
.store-course-empty { margin: 0; padding: 40px 24px; color: var(--muted); text-align: center; }
.store-course-dialog { width: min(760px,calc(100% - 28px)); }
.store-course-image-editor { display: grid; grid-template-columns: minmax(230px,320px) minmax(0,1fr); align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7faf4; }
.store-course-image-picker { display: block; cursor: pointer; }
.store-course-image-picker > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.store-course-image-preview { width: 100%; aspect-ratio: 16/9; display: grid; overflow: hidden; border: 1px dashed #a9bead; border-radius: 12px; color: var(--green); background: #edf4e9; }
.store-course-image-preview > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.store-course-image-preview > span { display: grid; place-content: center; justify-items: center; gap: 5px; padding: 16px; text-align: center; }
.store-course-image-preview i { font-size: 26px; }
.store-course-image-preview small { color: var(--muted); font-size: 10px; font-weight: 500; }
.store-course-image-copy strong { color: var(--green); font-size: 16px; }
.store-course-image-copy p { margin: 7px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.store-course-image-copy button { min-height: 36px; padding: 0 13px; }
.weekly-schedule-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.weekly-schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px 18px; }
.weekly-schedule-toolbar h3 { margin: 4px 0 2px; color: var(--ink); font-size: 24px; letter-spacing: -.02em; }
.weekly-schedule-toolbar p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.weekly-schedule-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.week-stepper { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.week-stepper button { min-width: 42px; height: 42px; padding: 0 12px; border: 0; border-right: 1px solid var(--line); color: var(--green); background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.week-stepper button:last-child { border-right: 0; }
.week-stepper button:hover { background: #eef4eb; }
.weekly-schedule-note { margin: 0 24px 18px; padding: 10px 12px; border-left: 3px solid var(--lime); color: var(--muted); background: #f4f7f1; font-size: 11px; }
.weekly-schedule-scroll { overflow-x: auto; overscroll-behavior-inline: contain; border-top: 1px solid var(--line); scrollbar-color: #9fb1a8 #edf1eb; }
.weekly-schedule-scroll:focus-visible { outline: 2px solid rgba(15,92,69,.25); outline-offset: -2px; }
.weekly-schedule-grid { display: grid; grid-template-columns: repeat(7, minmax(138px, 1fr)); min-width: 980px; }
.weekly-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; padding: 0 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f2f5f0; }
.weekly-day-head:nth-child(7) { border-right: 0; }
.weekly-day-head strong { font-size: 13px; }
.weekly-day-head span { color: var(--muted); font-size: 11px; }
.weekly-day-head.is-today { color: var(--green); background: #e9f1e5; box-shadow: inset 0 3px 0 var(--lime); }
.weekly-day-column { display: flex; flex-direction: column; gap: 11px; min-height: 440px; padding: 11px; border-right: 1px solid var(--line); background: #fbfcfa; }
.weekly-day-column:last-child { border-right: 0; }
.weekly-course-card { --course-accent:#237d62; --course-surface:#eef7f2; width: 100%; display: block; overflow: hidden; padding: 0; border: 1px solid color-mix(in srgb,var(--course-accent) 22%,#d9e2d6); border-radius: 13px; color: var(--ink); background: var(--course-surface); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 7px 18px rgba(25,63,50,.09); transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.weekly-course-card:hover { border-color: color-mix(in srgb,var(--course-accent) 58%,#91ae9f); box-shadow: 0 12px 25px rgba(25,63,50,.14); transform: translateY(-2px); }
.weekly-course-card:disabled { cursor: default; opacity: 1; }
.weekly-course-cover { position: relative; width: 100%; height: 82px; display: block; overflow: hidden; background: var(--course-accent); }
.weekly-course-cover::after { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 42%,rgba(3,26,20,.5)); content: ""; pointer-events: none; }
.weekly-course-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.weekly-course-card:hover .weekly-course-cover img { transform: scale(1.04); }
.weekly-course-tag { position: absolute; right: 7px; bottom: 7px; z-index: 1; max-width: calc(100% - 14px); overflow: hidden; padding: 3px 7px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; background: color-mix(in srgb,var(--course-accent) 88%,transparent); font-size: 9px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(4px); }
.weekly-course-copy { display: grid; gap: 3px; padding: 9px 10px 10px; border-top: 3px solid var(--course-accent); }
.weekly-course-card time { color: var(--course-accent); font-size: 10px; font-weight: 900; letter-spacing: .01em; }
.weekly-course-card strong { overflow: hidden; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.weekly-course-coach { overflow: hidden; color: #566b63; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.weekly-course-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; }
.weekly-course-meta small { min-width: 0; overflow: hidden; color: #73847d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.weekly-course-meta small:last-child { flex: 0 0 auto; color: var(--course-accent); font-weight: 800; }
.weekly-course-card.course-tone-boxing { --course-accent:#d75d4c; --course-surface:#fff4f1; }
.weekly-course-card.course-tone-pilates { --course-accent:#4d8d64; --course-surface:#f1f8f0; }
.weekly-course-card.course-tone-yoga { --course-accent:#c88929; --course-surface:#fff8e9; }
.weekly-course-card.course-tone-cycling { --course-accent:#397fc5; --course-surface:#eef6ff; }
.weekly-course-card.course-tone-ballet { --course-accent:#8d6abd; --course-surface:#f7f1fc; }
.weekly-course-card.course-tone-core { --course-accent:#168c8b; --course-surface:#ecf8f7; }
.weekly-course-card.course-tone-training { --course-accent:#237d62; --course-surface:#eef7f2; }
.weekly-day-empty { display: grid; justify-items: center; gap: 7px; margin: auto 0; color: #9aa9a2; font-size: 11px; text-align: center; }
.weekly-day-empty i { color: #c5d4cc; font-size: 27px; }
.weekly-day-add { width: 100%; min-height: 36px; margin-top: auto; border: 1px dashed #b8c8b5; border-radius: 9px; color: var(--green); background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.weekly-day-add:hover { border-color: var(--green); background: #eef4eb; }
.weekly-schedule-card > .member-form-status { margin: 16px 24px 20px; }

.schedule-poster-builder { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 680px; max-height: calc(100vh - 205px); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.schedule-poster-controls { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; overflow: hidden; border-right: 1px solid var(--line); }
.schedule-poster-controls-scroll { min-height: 0; overflow-y: auto; padding: 24px; scrollbar-color: #9fb1a8 #edf1eb; }
.schedule-poster-controls-head h3, .schedule-poster-stage-head h3 { margin: 4px 0 0; color: var(--ink); font-size: 23px; }
.schedule-poster-controls-head > p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.poster-theme-fieldset { margin: 24px 0 20px; padding: 0; border: 0; }
.poster-theme-fieldset legend, .poster-settings-section-body > label > span, .poster-upload-control > span { margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.poster-theme-fieldset > p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.poster-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.poster-theme-option { position: relative; min-width: 0; display: grid; gap: 7px; padding: 7px 7px 9px; border: 1px solid #d8dfd6; border-radius: 13px; color: var(--ink); background: #fffdfa; font: inherit; text-align: center; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.poster-theme-option:hover { border-color: #9db2a7; box-shadow: 0 8px 18px rgba(26,62,49,.08); transform: translateY(-1px); }
.poster-theme-option:focus-visible { outline: 3px solid rgba(15,92,69,.18); outline-offset: 2px; }
.poster-theme-option.is-active { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 9px 20px rgba(18,74,56,.11); }
.poster-theme-preview { position: relative; display: block; overflow: hidden; border-radius: 8px; background: #eef3ec; }
.poster-theme-preview canvas { width: 100%; aspect-ratio: 60/29; display: block; }
.poster-theme-preview i { position: absolute; top: 6px; right: 6px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 3px 9px rgba(8,53,41,.2); font-size: 14px; opacity: 0; transform: scale(.8); transition: opacity .18s ease, transform .18s ease; }
.poster-theme-option.is-active .poster-theme-preview i { opacity: 1; transform: scale(1); }
.poster-theme-option strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.poster-settings-form { display: grid; gap: 14px; }
.poster-settings-section { border-bottom: 1px solid var(--line); }
.poster-settings-section:first-child { border-top: 1px solid var(--line); }
.poster-settings-section summary { position: relative; padding: 13px 28px 13px 0; color: var(--ink); font-size: 13px; font-weight: 850; list-style: none; cursor: pointer; }
.poster-settings-section summary::-webkit-details-marker { display: none; }
.poster-settings-section summary::after { position: absolute; top: 50%; right: 4px; font-family: remixicon; font-size: 17px; font-weight: 400; content: "\ea4e"; transform: translateY(-50%); transition: transform .18s ease; }
.poster-settings-section[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.poster-settings-section-body { display: grid; gap: 14px; padding: 0 0 16px; }
.poster-settings-section-body > label { display: grid; }
.poster-settings-form input:not([type="checkbox"]), .poster-settings-form select, .poster-settings-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #f8faf7; font: inherit; font-size: 13px; }
.poster-settings-form textarea { resize: vertical; line-height: 1.6; }
.poster-settings-form input:focus, .poster-settings-form select:focus, .poster-settings-form textarea:focus { outline: 2px solid rgba(15,92,69,.2); border-color: var(--green); }
.poster-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.poster-upload-control { min-width: 0; padding: 11px; border: 1px dashed #adc0b6; border-radius: 11px; background: #f8faf7; cursor: pointer; }
.poster-upload-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.poster-upload-control strong, .poster-upload-control small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-upload-control strong { color: var(--green); font-size: 11px; }
.poster-upload-control small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.poster-switch { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.poster-switch input { width: 17px; height: 17px; accent-color: var(--green); }
.poster-switch span { margin: 0 !important; }
.poster-sticky-actions { position: relative; z-index: 2; padding: 13px 18px 15px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -12px 28px rgba(27,61,48,.08); }
.poster-sticky-actions .member-form-status { margin: 0 0 10px; }
.poster-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.poster-form-actions .portal-primary-button, .poster-form-actions .portal-secondary-button { flex: 1 1 112px; }
.portal-text-button { padding: 10px 6px; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.portal-text-button:hover { color: var(--green); }
.schedule-poster-stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; padding: 22px 24px 16px; background: #eef3eb; }
.schedule-poster-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; }
.schedule-poster-canvas-shell { display: grid; min-height: 0; place-items: start center; overflow: auto; padding: 18px; border-radius: 16px; background: #dfe8dd; }
.schedule-poster-canvas-shell canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 10px; background: #173f33; box-shadow: 0 18px 45px rgba(20,54,43,.22); }
.schedule-poster-tip { margin: 12px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

/* Management workspace shell */
.portal-body { --portal-sidebar-width: 224px; overflow-x: hidden; background: #f1f5ef; }
.portal-shell { min-height: 100vh; }
.portal-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--portal-sidebar-width); display: flex; flex-direction: column; overflow: visible; color: #fff; background: #163b31; box-shadow: 18px 0 44px rgba(10,43,34,.12); }
.portal-sidebar-head { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.portal-sidebar-brand { color: #fff; }
.portal-sidebar-brand small { color: rgba(255,255,255,.58); }
.portal-sidebar-brand .brand-mark { background: transparent; }
.portal-sidebar-close { display: none; border: 0; color: rgba(255,255,255,.72); background: transparent; cursor: pointer; }
.portal-store-card { margin: 22px 18px 18px; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.06); }
.portal-store-card span, .portal-store-card strong, .portal-store-card small { display: block; }
.portal-store-kicker { margin-bottom: 9px; color: #dff06a; font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.portal-store-card strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.portal-store-card small { margin-top: 5px; color: rgba(255,255,255,.6); font-size: 11px; }
.portal-side-links { display: grid; gap: 4px; padding: 0 12px; }
.portal-side-links a { position: relative; display: grid; grid-template-columns: 32px 1fr; align-items: center; min-height: 50px; padding: 0 14px; border-radius: 13px; color: rgba(255,255,255,.72); transition: color .18s ease, background .18s ease, transform .18s ease; }
.portal-side-links a:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.portal-side-links a.is-active { color: #fff; background: #0f5c45; box-shadow: inset 3px 0 0 #dff06a; }
.portal-side-links a span { color: rgba(223,240,106,.7); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.portal-side-links a b { font-size: 14px; font-weight: 720; }
.portal-nav-group { position: relative; }
.portal-nav-row { display: grid; grid-template-columns: 1fr auto; align-items: center; border-radius: 13px; }
.portal-nav-row > a { min-width: 0; }
.portal-nav-row > button { margin-right: 8px; padding: 7px 8px; border: 0; border-radius: 8px; color: rgba(255,255,255,.56); background: transparent; font: inherit; font-size: 10px; cursor: pointer; }
.portal-nav-row > button:hover, .portal-nav-row > button:focus-visible { color: #163b31; background: #dff06a; }
.portal-submenu { position: absolute; z-index: 45; top: -4px; left: calc(100% + 10px); width: 236px; padding: 10px; border: 1px solid #dbe4d8; border-radius: 16px; background: #fff; box-shadow: 0 18px 46px rgba(13,48,38,.2); opacity: 0; pointer-events: none; transform: translateX(-8px); transition: opacity .18s ease, transform .18s ease; }
.portal-nav-group:hover .portal-submenu, .portal-nav-group:focus-within .portal-submenu, .portal-nav-group.is-open .portal-submenu { opacity: 1; pointer-events: auto; transform: translateX(0); }
.portal-side-links .portal-submenu a { display: block; min-height: 0; padding: 12px 13px; border-radius: 10px; color: var(--ink); }
.portal-side-links .portal-submenu a:hover, .portal-side-links .portal-submenu a:focus-visible { color: var(--green); background: #eef4eb; transform: none; }
.portal-side-links .portal-submenu button { display: block; width: 100%; padding: 11px 13px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.portal-side-links .portal-submenu button:hover, .portal-side-links .portal-submenu button:focus-visible, .portal-side-links .portal-submenu button.is-active { color: var(--green); background: #eef4eb; }
.portal-submenu a b, .portal-submenu a small { display: block; }
.portal-submenu button b, .portal-submenu button small { display: block; }
.portal-submenu a b { font-size: 13px; }
.portal-submenu button b { font-size: 13px; }
.portal-submenu a small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.portal-submenu button small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.portal-submenu p { margin: 8px 4px 2px; padding: 10px 9px 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.55; }
.portal-sidebar-foot { display: grid; gap: 10px; margin-top: auto; padding: 24px 26px 28px; border-top: 1px solid rgba(255,255,255,.1); }
.portal-sidebar-foot p { margin: 0 0 5px; color: rgba(255,255,255,.5); font-size: 11px; line-height: 1.7; }
.portal-sidebar-foot a, .portal-sidebar-foot button { width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; color: rgba(255,255,255,.82); background: transparent; font: inherit; font-size: 12px; text-align: center; cursor: pointer; }
.portal-sidebar-foot a:hover, .portal-sidebar-foot button:hover { color: #163b31; background: #dff06a; }
.portal-workspace { min-height: 100vh; margin-left: var(--portal-sidebar-width); }
.portal-mobile-header { display: none; }
.portal-main { padding: 48px 0 80px; }
.portal-main > .container { width: min(1180px, calc(100% - 56px)); }
.command-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 0 2px; }
.command-topbar > div:first-child span, .command-topbar > div:first-child strong { display: block; }
.command-topbar > div:first-child span { color: var(--muted); font-size: 11px; }
.command-topbar > div:first-child strong { margin-top: 3px; color: var(--green); font-size: 17px; }
.command-topbar-meta { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; }
.command-topbar-meta span + span { padding-left: 20px; border-left: 1px solid var(--line); }
.command-topbar-meta b { color: var(--text); font-weight: 700; }
.priority-board { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 28px; padding: 26px 30px; border: 1px solid #d5e1d1; border-radius: 20px; background: #f8fbf6; }
.priority-intro { align-self: center; padding-right: 26px; border-right: 1px solid var(--line); }
.priority-intro .eyebrow { color: var(--green); }
.priority-intro h1 { margin: 10px 0 8px; font-size: 38px; letter-spacing: -.04em; white-space: nowrap; }
.priority-intro p:last-child { color: var(--muted); font-size: 13px; line-height: 1.7; }
.priority-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.priority-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: center; gap: 8px 10px; min-height: 116px; padding: 4px 18px; border-left: 1px solid var(--line); }
.priority-item:first-child { padding-left: 0; border-left: 0; }
.priority-item > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #133a2f; background: #dff06a; font-size: 12px; font-weight: 900; }
.priority-urgent > span { color: #fff; background: #d15c45; }
.priority-warning > span { color: #614510; background: #f2c75c; }
.priority-item h2, .priority-item p { margin: 0; }
.priority-item h2 { font-size: 15px; }
.priority-item p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.priority-item a { grid-column: 2; justify-self: start; padding: 7px 13px; border-radius: 9px; color: var(--green); background: #e7f0e3; font-size: 11px; font-weight: 800; }
.priority-item a:hover { color: #fff; background: var(--green); }
.portal-section { scroll-margin-top: 20px; }
.portal-view-page { min-height: calc(100vh - 170px); padding-top: 26px; }
.portal-view-page > .portal-section-head { padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, #f8fbf4, #eef5e9); }
.portal-sidebar-scrim { display: none; }
.portal-metrics { margin-top: 16px; }
.portal-metrics article { padding: 19px 20px; border-radius: 18px; box-shadow: none; }
.portal-metrics strong { font-size: 32px; }
.command-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 16px; }
.command-panel { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.command-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.command-panel-head h2 { margin: 4px 0 0; font-size: 22px; }
.command-panel-head > a { color: var(--green); font-size: 11px; font-weight: 800; }
.command-risk-list, .command-schedule-list { display: grid; }
.command-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--line); }
.command-row:last-child { border-bottom: 0; }
.command-row strong, .command-row p { display: block; margin: 0; }
.command-row p { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.command-row > span { padding: 5px 8px; border-radius: 999px; color: var(--green); background: #edf4e9; font-size: 10px; }
.command-row-high > span { color: #934330; background: #fae8e2; }
.command-row-renewal > span { color: #76530e; background: #fff3cf; }
.command-row > a { color: var(--green); font-size: 11px; font-weight: 800; }
.command-schedule-list article { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--line); }
.command-schedule-list article:last-child { border-bottom: 0; }
.command-schedule-list time { color: var(--green); font-size: 13px; font-weight: 850; }
.command-schedule-list strong, .command-schedule-list p { display: block; margin: 0; }
.command-schedule-list p { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.command-schedule-list article > span { padding: 5px 8px; border-radius: 999px; color: var(--green); background: #edf4e9; font-size: 10px; }

/* Statistics workspace */
.analytics-view { display: grid; min-width: 0; gap: 18px; }
.analytics-view[hidden] { display: none; }
.analytics-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 10px 2px 4px; }
.analytics-header h2 { margin: 5px 0 0; color: var(--green-dark); font-size: clamp(30px, 3vw, 44px); letter-spacing: -.045em; }
.analytics-header-meta { display: flex; gap: 18px; color: var(--muted); font-size: 12px; }
.analytics-header-meta b { color: var(--green); font-weight: 700; }
.analytics-controls { display: flex; align-items: center; justify-content: space-between; width: 100%; min-width: 0; max-width: 100%; gap: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.84); box-shadow: 0 10px 30px rgba(13,65,50,.04); }
.analytics-scope-tabs, .analytics-period-controls { display: flex; align-items: center; gap: 8px; }
.analytics-scope-tabs button, .analytics-export { min-height: 40px; padding: 0 18px; border: 0; border-radius: 11px; color: var(--green-dark); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.analytics-scope-tabs button.is-active { color: #fff; background: var(--green); box-shadow: 0 8px 20px rgba(8,92,67,.18); }
.analytics-period-controls select, .analytics-date-range { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--green-dark); background: #fff; font: inherit; }
.analytics-date-range { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.analytics-export { color: #fff; background: var(--green-dark); }
.analytics-locked { padding: 34px; border: 1px solid #f0d9c7; border-radius: 18px; background: #fff7f0; }
.analytics-locked p { margin: 8px 0 0; color: var(--muted); }
.analytics-dashboard { display: grid; width: 100%; min-width: 0; max-width: 100%; gap: 18px; }
.analytics-controls > *, .analytics-dashboard > *, .analytics-summary-grid > *, .analytics-performance-grid > * { min-width: 0; }
.analytics-summary-grid { display: grid; grid-template-columns: minmax(0, 1fr) 1.15fr; gap: 18px; }
.analytics-result-card, .analytics-quick-metrics, .analytics-panel, .analytics-table-panel { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(12,53,41,.055); }
.analytics-result-card { position: relative; display: grid; grid-template-columns: 1.35fr .9fr; min-height: 176px; padding: 28px 30px 40px; overflow: hidden; }
.analytics-result-card > div { display: grid; align-content: center; gap: 7px; }
.analytics-result-card span, .analytics-quick-metrics span { color: var(--muted); font-size: 12px; }
.analytics-result-card strong { color: var(--green-dark); font-size: clamp(28px, 3.4vw, 46px); line-height: 1; }
.analytics-result-card small, .analytics-quick-metrics small { color: #8a968f; font-size: 11px; }
.analytics-result-card .analytics-change { padding-left: 28px; border-left: 1px solid var(--line); }
.analytics-result-card .analytics-change strong { color: var(--green); font-size: 24px; }
.analytics-progress { position: absolute; inset: auto 30px 24px; height: 5px; border-radius: 999px; background: #eef2eb; }
.analytics-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #cde94f); transition: width .35s ease; }
.analytics-quick-metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px; }
.analytics-quick-metrics > div { display: grid; align-content: center; gap: 9px; padding: 14px 20px; border-right: 1px solid var(--line); }
.analytics-quick-metrics > div:last-child { border-right: 0; }
.analytics-quick-metrics strong { color: var(--green-dark); font-size: 28px; }
.analytics-insight { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 62px; padding: 14px 20px; border: 1px solid #dfe9d8; border-radius: 15px; color: var(--green-dark); background: linear-gradient(90deg, #eff6ea, #f8fbf5); }
.analytics-insight b { color: var(--green); }
.analytics-insight span { color: #52675f; font-size: 13px; }
.analytics-insight em { font-style: normal; font-weight: 700; }
.analytics-performance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.analytics-panel, .analytics-table-panel { padding: 24px; }
.analytics-panel > header, .analytics-table-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.analytics-panel h3, .analytics-table-panel h3 { margin: 0; color: var(--green-dark); font-size: 18px; }
.analytics-panel header p, .analytics-table-panel header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.analytics-panel header > span, .analytics-table-panel header > a { color: var(--green); font-size: 11px; font-weight: 700; }
.analytics-ranking, .analytics-structure { display: grid; gap: 16px; }
.analytics-ranking article, .analytics-structure article { display: grid; grid-template-columns: 72px minmax(0, 1fr) 78px; align-items: center; gap: 12px; }
.analytics-ranking strong, .analytics-structure strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-ranking article > div { height: 10px; overflow: hidden; border-radius: 999px; background: #edf1ea; }
.analytics-ranking article i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #126b50, #cce94f); }
.analytics-ranking article > span, .analytics-structure article > span { color: var(--green-dark); font-size: 12px; font-weight: 800; text-align: right; }
.analytics-structure-legend { display: flex; justify-content: flex-end; gap: 16px; margin: -8px 0 18px; color: var(--muted); font-size: 10px; }
.analytics-structure-legend span::before { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 2px; background: #196e55; content: ""; }
.analytics-structure-legend span:nth-child(2)::before { background: #75ad69; }
.analytics-structure-legend span:nth-child(3)::before { background: #d1e94f; }
.analytics-structure article > div { display: flex; height: 18px; overflow: hidden; border-radius: 5px; background: #edf1ea; }
.analytics-structure article i { display: grid; place-items: center; height: 100%; color: #fff; background: #196e55; font-size: 9px; font-style: normal; }
.analytics-structure article i[data-type="renewal"] { background: #75ad69; }
.analytics-structure article i[data-type="private"] { color: var(--green-dark); background: #d1e94f; }
.analytics-table-panel { min-width: 0; overflow: hidden; }
.analytics-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
.analytics-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.analytics-table th, .analytics-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.analytics-table th { color: var(--muted); font-size: 10px; font-weight: 700; }
.analytics-employee-name { color: var(--green-dark); font-weight: 800; }
.analytics-performance { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #65716a; background: #edf1eb; font-size: 10px; }
.analytics-performance.is-strong { color: var(--green-dark); background: #dff0d6; }
.analytics-detail { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: #fff; font: inherit; font-size: 11px; cursor: pointer; }
.analytics-empty { margin: 0; padding: 18px; color: var(--muted); text-align: center; }
.analytics-standard-dashboard, .store-finance-dashboard { display: grid; min-width: 0; gap: 18px; }
.analytics-standard-dashboard[hidden], .store-finance-dashboard[hidden] { display: none; }
.store-finance-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.store-finance-summary article { display: grid; align-content: center; min-height: 132px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(12,53,41,.055); }
.store-finance-summary article.is-balance { color: #fff; border-color: var(--green-dark); background: linear-gradient(145deg, var(--green-dark), #185f49); }
.store-finance-summary span, .store-finance-summary small { color: var(--muted); font-size: 11px; }
.store-finance-summary strong { margin: 8px 0 7px; color: var(--green-dark); font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -.035em; }
.store-finance-summary .is-income strong { color: #15835d; }
.store-finance-summary .is-expense strong { color: #a34b42; }
.store-finance-summary .is-balance span, .store-finance-summary .is-balance small { color: rgba(255,255,255,.68); }
.store-finance-summary .is-balance strong { color: #fff; }
.store-finance-visuals { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 18px; }
.store-finance-trend { display: grid; max-height: 300px; gap: 13px; overflow-y: auto; padding-right: 6px; }
.store-finance-trend article { display: grid; grid-template-columns: 44px minmax(120px, 1fr) 176px; align-items: center; gap: 12px; }
.store-finance-trend time { color: var(--green-dark); font-size: 11px; font-weight: 800; }
.store-finance-trend article > div { display: grid; gap: 4px; }
.store-finance-trend i { display: block; min-width: 2px; height: 7px; border-radius: 999px; }
.store-finance-trend i.is-income { background: linear-gradient(90deg, #0f6a4d, #5faa76); }
.store-finance-trend i.is-expense { background: linear-gradient(90deg, #d78b7e, #aa4f45); }
.store-finance-trend article > span { color: var(--muted); font-size: 10px; text-align: right; white-space: nowrap; }
.store-finance-breakdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.store-finance-breakdown-grid h4 { margin: 0 0 14px; color: var(--green-dark); font-size: 13px; }
.store-finance-breakdown-grid section > div { display: grid; gap: 13px; }
.store-finance-breakdown-grid article > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.store-finance-breakdown-grid article strong, .store-finance-breakdown-grid article span { font-size: 10px; }
.store-finance-breakdown-grid article span { color: var(--muted); text-align: right; }
.store-finance-breakdown-grid article > div:last-child { height: 7px; overflow: hidden; border-radius: 999px; background: #edf1ea; }
.store-finance-breakdown-grid article i { display: block; min-width: 2px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #176b51, #acd14a); }
.store-finance-breakdown-grid section:last-child article i { background: linear-gradient(90deg, #d78b7e, #a94f45); }
.store-finance-ledger-panel .analytics-table-wrap { max-height: 440px; border: 1px solid #e8ece5; border-radius: 12px; }
.store-finance-table { min-width: 1080px; }
.store-finance-table thead { position: sticky; z-index: 1; top: 0; background: #f3f7f0; }
.store-finance-table td.is-income { color: #147454; font-weight: 800; }
.store-finance-table td.is-expense { color: #a34b42; font-weight: 800; }
.store-finance-table td.is-balance { color: var(--green-dark); font-weight: 800; }
.store-finance-total { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 16px 4px 0; color: var(--green-dark); font-size: 12px; }
.store-finance-total span { margin-right: auto; color: var(--muted); font-weight: 700; }
.store-finance-total b.is-income { color: #147454; }
.store-finance-total b.is-expense { color: #a34b42; }
.store-finance-operations { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border: 1px solid #cfe0d3; border-radius: 19px; background: linear-gradient(135deg, #f8fbf5, #eef6e9); }
.store-finance-operations h3 { margin: 3px 0 5px; color: var(--green-dark); font-size: 18px; }
.store-finance-operations span { color: var(--muted); font-size: 11px; }
.portal-primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--green); border-radius: 13px; color: #fff; background: var(--green); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(18,99,75,.16); }
.portal-primary-action:hover { background: var(--green-dark); }
.store-finance-filterbar { display: grid; grid-template-columns: minmax(260px, 1fr) 190px; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.store-finance-filterbar label, .finance-entry-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.store-finance-filterbar input, .store-finance-filterbar select, .finance-entry-form input, .finance-entry-form select, .finance-entry-form textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #dbe3d8; border-radius: 11px; color: var(--ink); background: #fbfcf9; font: inherit; outline: none; }
.store-finance-filterbar input:focus, .store-finance-filterbar select:focus, .finance-entry-form input:focus, .finance-entry-form select:focus, .finance-entry-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,99,75,.1); }
.store-finance-table { min-width: 1180px; }
.store-finance-table .finance-row-actions { min-width: 74px; }
.finance-delete-button { padding: 7px 10px; border: 1px solid #e5c6c1; border-radius: 9px; color: #a34b42; background: #fff8f6; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.finance-delete-button:hover { color: #fff; background: #a34b42; }
.finance-entry-dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 36px); padding: 0; overflow: auto; border: 0; border-radius: 25px; color: var(--text); background: #f4f7f1; box-shadow: 0 32px 100px rgba(6,33,25,.32); }
.finance-entry-dialog::backdrop { background: rgba(5,25,19,.6); backdrop-filter: blur(5px); }
.finance-entry-form > header { position: sticky; z-index: 3; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 28px; color: #fff; background: linear-gradient(135deg, #0a3c2e, #17684f); }
.finance-entry-form > header h2 { margin: 4px 0 5px; font-size: 25px; }
.finance-entry-form > header p { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; }
.finance-entry-form > header .panel-label { color: #dff45f; }
.finance-entry-form > header button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); font-size: 25px; cursor: pointer; }
.finance-kind-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 20px 28px 0; padding: 6px; border-radius: 15px; background: #e8eee4; }
.finance-kind-switch button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.finance-kind-switch button.is-active { color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(18,99,75,.18); }
.finance-kind-switch button[data-finance-entry-kind="expense"].is-active { background: #9b5147; }
.finance-form-section { margin: 16px 28px 0; padding: 20px; border: 1px solid #e0e7dc; border-radius: 17px; background: #fff; }
.finance-form-section h3 { margin: 0 0 15px; color: var(--green-dark); font-size: 15px; }
.finance-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.finance-section-heading h3 { margin-bottom: 4px; }
.finance-section-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.finance-section-heading > span { padding: 5px 9px; border-radius: 999px; color: var(--green); background: #eaf4e5; font-size: 9px; font-weight: 800; white-space: nowrap; }
.finance-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.finance-form-grid .is-wide { grid-column: 1 / -1; }
.finance-member-field { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.finance-member-combobox { position: relative; }
.finance-member-combobox > input[type="search"] { padding-right: 38px; background: #fbfcf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23677b72' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.finance-member-results { position: absolute; z-index: 8; top: calc(100% + 6px); right: 0; left: 0; max-height: 280px; overflow-y: auto; padding: 6px; border: 1px solid #cddbd0; border-radius: 13px; background: #fff; box-shadow: 0 18px 44px rgba(7,48,35,.2); }
.finance-member-results[hidden] { display: none; }
.finance-member-results button { display: grid; gap: 3px; width: 100%; padding: 10px 11px; border: 0; border-radius: 9px; text-align: left; color: var(--ink); background: transparent; font: inherit; cursor: pointer; }
.finance-member-results button:hover, .finance-member-results button:focus-visible { color: var(--green-dark); background: #edf5ea; outline: none; }
.finance-member-results strong { font-size: 12px; }
.finance-member-results small { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.finance-member-empty, .finance-member-search-tip { margin: 0; padding: 10px 11px; color: var(--muted); font-size: 9px; font-weight: 600; }
.finance-member-search-tip { border-top: 1px solid #edf1eb; }
.finance-entry-form input[readonly] { color: #667269; background: #edf2ea; }
.finance-entry-form textarea { resize: vertical; }
.finance-note-field { display: grid; }
.finance-entry-form > .member-form-status { margin: 16px 28px 0; }
.finance-entry-form > footer { position: sticky; z-index: 2; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding: 17px 28px 22px; border-top: 1px solid #dfe6db; background: rgba(244,247,241,.97); backdrop-filter: blur(10px); }
.finance-entry-form > footer > button:first-child { min-height: 44px; padding: 0 20px; border: 1px solid #ced9cc; border-radius: 13px; color: var(--green); background: #fff; font: inherit; font-weight: 800; cursor: pointer; }

/* Customer growth workspace */
.customer-view { position: relative; color: #18392f; }
.portal-view-page > .customer-section-head { position: relative; display: flex; min-height: 330px; align-items: center; justify-content: space-between; gap: 32px; overflow: hidden; padding: 54px 38px 58px; border: 1px solid #ded8cb; border-radius: 22px 22px 0 0; background: #f7f0e5 url("../images/customer-hero-baiyu-wellness.png") center 18% / cover no-repeat; box-shadow: 0 18px 48px rgba(82,67,48,.09); }
.customer-section-head::after { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(255,251,244,.98) 0%, rgba(255,251,244,.9) 23%, rgba(255,251,244,.28) 47%, rgba(255,251,244,0) 68%); content: ""; pointer-events: none; }
.customer-section-head > * { position: relative; z-index: 1; }
.customer-section-head > div:first-child { max-width: 390px; }
.customer-section-head .panel-label { color: #2f6d58; font-size: 12px; letter-spacing: .08em; }
.customer-section-head h2 { margin: 12px 0 0; color: #0c533f; font-family: "Songti SC", "STSong", "Noto Serif SC", serif; font-size: clamp(42px, 4vw, 60px); font-weight: 700; letter-spacing: -.055em; line-height: 1.08; }
.customer-section-subtitle { max-width: 360px; margin: 14px 0 0; color: #5e665f; font-size: 14px; line-height: 1.7; }
.customer-head-actions { position: absolute; right: 28px; bottom: 22px; display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 16px; border: 1px solid rgba(255,255,255,.72); border-radius: 14px; background: rgba(255,251,244,.88); box-shadow: 0 14px 34px rgba(50,40,29,.12); backdrop-filter: blur(10px); }
.customer-head-actions > span { color: #46554e; font-size: 12px; white-space: nowrap; }
.customer-head-actions > span strong { color: var(--green-dark); font-size: 16px; }
.customer-create-cta { min-height: 45px; padding: 0 20px; border-radius: 9px; box-shadow: 0 8px 18px rgba(12,83,61,.15); }
.customer-create-cta i { margin-right: 6px; font-size: 17px; }
.customer-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin: 0 0 14px; border: 1px solid #ded8cb; border-top: 0; border-radius: 0 0 18px 18px; background: rgba(255,253,249,.97); box-shadow: 0 16px 34px rgba(82,67,48,.06); }
.customer-summary article { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; align-items: center; gap: 14px; min-height: 102px; padding: 16px 17px; border-right: 1px solid #dfe6dc; }
.customer-summary article:last-child { grid-template-columns: 48px minmax(0, 1fr); border-right: 0; }
.customer-summary article > i:first-child { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #cde1d4; border-radius: 50%; color: var(--green); background: #e9f6ee; font-size: 22px; }
.customer-summary article:first-child > i:first-child { color: #526615; border-color: #dce98c; background: #f2f8bd; }
.customer-summary article > i:last-child { color: #6d887d; font-size: 21px; }
.customer-summary article > div { display: grid; gap: 4px; }
.customer-summary span { color: #385048; font-size: 11px; font-weight: 750; }
.customer-summary strong { color: var(--green-dark); font-size: 25px; line-height: 1.05; }
.customer-summary small { color: #87938d; font-size: 9px; white-space: nowrap; }
.customer-follow-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 66px; margin-bottom: 14px; padding: 0 18px; border: 1px solid #e4ded2; border-radius: 14px; background: #fbf7ef; }
.customer-follow-strip > div { display: flex; align-items: center; gap: 10px; color: var(--green-dark); }
.customer-follow-strip > div > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #6d801b; background: #ebf3c8; font-size: 17px; }
.customer-follow-strip > div strong { font-size: 15px; }
.customer-follow-strip > div strong span { color: #e65d36; }
.customer-follow-strip p { display: flex; align-items: center; gap: 26px; margin: 0; color: #61716a; font-size: 10px; }
.customer-follow-strip p span { position: relative; }
.customer-follow-strip p span + span::before { position: absolute; top: 50%; left: -14px; width: 3px; height: 3px; border-radius: 50%; background: #b4c1ba; content: ""; }
.customer-follow-strip p b { margin-left: 4px; color: var(--green-dark); font-size: 12px; }
.customer-follow-strip > button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid #ccd8ce; border-radius: 8px; color: var(--green); background: #fff; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.customer-follow-strip > button:hover, .customer-follow-strip > button:focus-visible { border-color: #82aa97; background: #eef6f0; }
.customer-workspace { overflow: hidden; border: 1px solid #e1dbcf; border-radius: 16px; background: #fffdf9; box-shadow: 0 16px 38px rgba(69,54,39,.055); }
.customer-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f2f6f0; scrollbar-width: none; }
.customer-tabs::-webkit-scrollbar { display: none; }
.customer-tabs-top { margin-bottom: 18px; padding: 10px 0 14px; border: 0; border-bottom: 1px solid #e1dbcf; border-radius: 0; background: transparent; box-shadow: none; }
.customer-tabs button { display: inline-flex; position: relative; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid #d5e0d7; border-radius: 9px; color: #40584f; background: #fff; box-shadow: 0 2px 5px rgba(12,53,41,.035); font: inherit; font-size: 11px; font-weight: 760; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.customer-tabs button i { color: #648277; font-size: 15px; }
.customer-tabs button:hover { color: var(--green); border-color: #98b6a8; background: #f9fcf8; transform: translateY(-1px); }
.customer-tabs button:focus-visible { border-color: var(--green); outline: 3px solid rgba(15,92,69,.14); outline-offset: 1px; }
.customer-tabs button.is-active { color: #fff; border-color: var(--green); background: var(--green); box-shadow: 0 7px 15px rgba(12,83,61,.18); }
.customer-tabs button.is-active i { color: #dff06a; }
.customer-panel { padding: 18px 22px 20px; }
.customer-toolbar { display: grid; grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(120px, .62fr)) auto; align-items: end; gap: 10px; margin-bottom: 10px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.customer-toolbar label, .customer-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.customer-toolbar input, .customer-toolbar select, .customer-form input, .customer-form select, .customer-form textarea { width: 100%; min-height: 38px; padding: 0 11px; border: 1px solid #d8e2d5; border-radius: 8px; color: var(--text); background: #fff; font: inherit; font-size: 11px; outline: none; }
.customer-search-field { position: relative; }
.customer-search-field > i { position: absolute; bottom: 11px; left: 12px; z-index: 1; color: #7c8b84; font-size: 14px; }
.customer-search-field input { padding-left: 35px; }
.customer-reset-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 0 10px; border: 0; color: #53665e; background: transparent; font: inherit; font-size: 10px; cursor: pointer; }
.customer-reset-button:hover, .customer-reset-button:focus-visible { color: var(--green); }
.customer-form textarea { min-height: 94px; padding-top: 11px; resize: vertical; }
.customer-toolbar input:focus, .customer-toolbar select:focus, .customer-form input:focus, .customer-form select:focus, .customer-form textarea:focus { border-color: #7aac95; box-shadow: 0 0 0 3px rgba(15,92,69,.08); }
.customer-table-wrap, .customer-import-preview { max-width: 100%; overflow-x: auto; }
.customer-table, .customer-import-preview table { width: 100%; min-width: 1020px; border-collapse: collapse; }
.customer-table th, .customer-table td, .customer-import-preview th, .customer-import-preview td { padding: 12px 10px; border-bottom: 1px solid var(--line); color: #496059; font-size: 10px; text-align: left; vertical-align: middle; }
.customer-table th, .customer-import-preview th { color: var(--muted); font-size: 10px; font-weight: 700; }
.customer-table tbody tr { transition: background .18s ease; }
.customer-table tbody tr:hover { background: #f7faf5; }
.customer-table td > span { display: block; color: #3f544c; }
.customer-table td > small { display: block; margin-top: 3px; color: #89958f; font-size: 9px; white-space: nowrap; }
.customer-name-cell { display: flex; align-items: center; gap: 9px; min-width: 116px; }
.customer-name-cell > div { display: grid; gap: 3px; }
.customer-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: var(--green); background: #e7f2e9; font-size: 11px; font-weight: 800; }
.customer-name-cell strong { color: var(--green-dark); font-size: 13px; }
.customer-name-cell small { color: #839089; font-size: 10px; }
.customer-status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #5b675f; background: #eef2ec; font-size: 10px; white-space: nowrap; }
.customer-status-badge.status-pending { color: #7a550a; background: #fff1c8; }
.customer-status-badge.status-following { color: #0c684d; background: #e0f1e7; }
.customer-status-badge.status-booked { color: #215392; background: #e5effb; }
.customer-status-badge.status-experience { color: #6b4511; background: #fff0d6; }
.customer-status-badge.status-closing { color: #704695; background: #f0e7f8; }
.customer-status-badge.status-converted { color: #0b684d; background: #dff1e6; }
.customer-status-badge.status-inactive { color: #6b7470; background: #edf0ee; }
.customer-open-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: #fff; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.customer-open-button:hover, .customer-open-button:focus-visible { border-color: #8fb4a4; background: #f2f7f2; }
.customer-empty { margin: 0; padding: 28px; color: var(--muted); text-align: center; }
.customer-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 16px; color: var(--muted); font-size: 10px; }
.customer-pagination button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: #fff; font: inherit; font-size: 10px; cursor: pointer; }
.customer-pagination button:disabled { color: #aeb8b2; cursor: default; }
.customer-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.customer-panel-heading h3 { margin: 6px 0 0; color: var(--green-dark); font-size: 23px; }
.customer-panel-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: right; }
.customer-form { max-width: 850px; }
.customer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customer-form-wide { grid-column: 1 / -1; }
.customer-form footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.customer-form-status { margin: 16px 0 0; padding: 11px 13px; border-radius: 10px; color: #9a4633; background: #fae8e2; font-size: 11px; }
.customer-form-status[data-type="pending"] { color: #76530e; background: #fff3cf; }
.customer-form-status[data-type="success"] { color: #0d684e; background: #e3f2e8; }
.customer-task-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -3px 0 15px; }
.customer-task-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 39px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: #53655e; background: #fff; font: inherit; font-size: 10px; cursor: pointer; }
.customer-task-filters button strong { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; color: var(--green-dark); background: #edf3e9; font-size: 10px; }
.customer-task-filters button.is-active { color: #fff; border-color: var(--green); background: var(--green); }
.customer-task-filters button.is-active strong { color: var(--green-dark); background: #dff06a; }
.customer-task-list, .customer-record-list { display: grid; }
.customer-task-list article { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 72px; padding: 12px 8px 12px 2px; border-bottom: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.customer-task-list article:hover, .customer-task-list article:focus-visible { background: #f6f9f4; outline: none; }
.customer-task-list article > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--green-dark); background: #dff06a; font-size: 10px; font-weight: 850; }
.customer-task-list h4, .customer-task-list p { margin: 0; }
.customer-task-list h4 { color: var(--green-dark); font-size: 13px; }
.customer-task-list p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.customer-task-list article > strong { color: var(--green); font-size: 11px; }
.customer-record-list article { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; padding: 11px 0 18px; }
.customer-record-list article:not(:last-child)::before { position: absolute; top: 24px; bottom: -1px; left: 5px; width: 1px; background: #dbe5d8; content: ""; }
.customer-record-list i { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 5px; border: 3px solid #dff06a; border-radius: 50%; background: var(--green); }
.customer-record-list h4, .customer-record-list p { margin: 0; }
.customer-record-list h4 { color: var(--green-dark); font-size: 13px; }
.customer-record-list p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.customer-record-list time { color: #87938d; font-size: 10px; }
.customer-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.customer-stat-grid > article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #f9fbf7; }
.customer-stat-grid h4 { margin: 0 0 18px; color: var(--green-dark); font-size: 15px; }
.customer-stat-grid article > div { display: grid; gap: 14px; }
.customer-stat-grid article > div > div p { display: flex; justify-content: space-between; margin: 0 0 6px; color: var(--muted); font-size: 10px; }
.customer-stat-grid article > div > div p strong { color: var(--green-dark); }
.customer-stat-grid article > div > div > div { height: 8px; overflow: hidden; border-radius: 999px; background: #e8eee5; }
.customer-stat-grid article i { display: block; min-width: 2px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14684f, #d0e94f); }
.customer-import-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.customer-file-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; overflow: hidden; border-radius: 999px; color: #fff; background: var(--green); font-size: 12px; font-weight: 750; cursor: pointer; }
.customer-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.customer-import-note { margin: 14px 0; color: var(--muted); font-size: 11px; }
.customer-import-preview:empty { display: none; }
.customer-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.customer-more-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #f8fbf6; }
.customer-more-grid article > span { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.customer-more-grid h4 { margin: 9px 0 7px; color: var(--green-dark); font-size: 17px; }
.customer-more-grid p { min-height: 44px; margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.customer-more-grid a { display: inline-flex; align-items: center; justify-content: center; }

.customer-detail-dialog { width: min(1080px, calc(100% - 30px)); max-height: calc(100vh - 34px); padding: 0; overflow: hidden; border: 0; border-radius: 24px; color: var(--text); background: #f5f7f2; box-shadow: 0 28px 90px rgba(4,28,21,.28); }
.customer-detail-dialog::backdrop { background: rgba(6,28,22,.58); backdrop-filter: blur(4px); }
.customer-detail-card { max-height: calc(100vh - 34px); overflow-y: auto; }
.customer-detail-card > header { position: sticky; top: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 28px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.customer-detail-card > header h2 { margin: 6px 0 3px; color: var(--green-dark); font-size: 28px; }
.customer-detail-card > header p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.customer-detail-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: #fff; font: inherit; font-size: 22px; cursor: pointer; }
.customer-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 20px 28px 0; }
.customer-detail-summary article { display: grid; gap: 8px; min-height: 86px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.customer-detail-summary span { color: var(--muted); font-size: 10px; }
.customer-detail-summary strong { align-self: end; overflow: hidden; color: var(--green-dark); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.customer-stage-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 18px 28px; padding: 0; list-style: none; }
.customer-stage-rail li { position: relative; display: grid; justify-items: center; gap: 7px; color: #8a9690; font-size: 10px; text-align: center; }
.customer-stage-rail li::before { position: absolute; top: 14px; right: 50%; left: -50%; height: 2px; background: #dde5da; content: ""; }
.customer-stage-rail li:first-child::before { display: none; }
.customer-stage-rail span { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid #dce5d9; border-radius: 50%; color: #7c8b83; background: #fff; font-size: 10px; font-weight: 850; }
.customer-stage-rail li.is-complete::before, .customer-stage-rail li.is-current::before { background: #84ac98; }
.customer-stage-rail li.is-complete span { color: #fff; border-color: var(--green); background: var(--green); }
.customer-stage-rail li.is-current { color: var(--green-dark); }
.customer-stage-rail li.is-current span { color: var(--green-dark); border-color: #c8df54; background: #dff06a; box-shadow: 0 0 0 5px rgba(223,240,106,.2); }
.customer-detail-columns { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr); gap: 16px; padding: 0 28px 28px; }
.customer-detail-timeline, .customer-follow-form { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.customer-detail-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.customer-detail-section-head h3 { margin: 4px 0 0; color: var(--green-dark); font-size: 18px; }
.customer-detail-section-head > span { color: var(--muted); font-size: 10px; }
.customer-detail-timeline > div:last-child { display: grid; }
.customer-detail-timeline article { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 11px; padding: 0 0 20px; }
.customer-detail-timeline article:not(:last-child)::before { position: absolute; top: 12px; bottom: 0; left: 5px; width: 1px; background: #dce6d9; content: ""; }
.customer-detail-timeline article i { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 4px; border: 3px solid #dff06a; border-radius: 50%; background: var(--green); }
.customer-detail-timeline h4, .customer-detail-timeline p { margin: 0; }
.customer-detail-timeline h4 { color: var(--green-dark); font-size: 12px; }
.customer-detail-timeline p { margin-top: 5px; color: #53635c; font-size: 11px; line-height: 1.65; }
.customer-detail-timeline small { display: block; margin-top: 6px; color: #89948e; font-size: 9px; }
.customer-follow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.customer-follow-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.customer-follow-grid input, .customer-follow-grid select, .customer-follow-grid textarea { width: 100%; min-height: 41px; padding: 0 11px; border: 1px solid #d8e2d5; border-radius: 10px; color: var(--text); background: #fff; font: inherit; font-size: 11px; outline: none; }
.customer-follow-grid textarea { min-height: 98px; padding-top: 10px; resize: vertical; }
.customer-follow-grid input:focus, .customer-follow-grid select:focus, .customer-follow-grid textarea:focus { border-color: #7aac95; box-shadow: 0 0 0 3px rgba(15,92,69,.08); }
.customer-follow-wide { grid-column: 1 / -1; }
.customer-follow-form footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }

/* Store-owned brand card */
.portal-store-card { position: relative; isolation: isolate; min-height: 164px; overflow: hidden; padding: 16px !important; border-color: rgba(255,255,255,.22) !important; background: #0c382d !important; box-shadow: 0 14px 30px rgba(2,25,19,.2); }
.portal-store-cover, .portal-store-shade { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.portal-store-cover { object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.portal-store-shade { z-index: -1; background: linear-gradient(180deg, rgba(3,28,21,.18), rgba(3,28,21,.92) 72%); }
.portal-store-card:hover .portal-store-cover { transform: scale(1.035); filter: saturate(1.08); }
.portal-store-card .portal-store-kicker { color: rgba(255,255,255,.82); font-size: 9px; letter-spacing: .1em; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.portal-store-card > strong { color: #fff; font-size: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.portal-store-card > button { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 9px; border: 1px solid rgba(223,240,106,.56); border-radius: 999px; color: #effb8e; background: rgba(7,43,33,.54); font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; backdrop-filter: blur(8px); }
.portal-store-card > button:hover, .portal-store-card > button:focus-visible { color: #163b31; background: #dff06a; outline: none; }

.store-brand-dialog { width: min(760px, calc(100% - 28px)); padding: 0; overflow: hidden; border: 0; border-radius: 24px; color: var(--text); background: #f6f8f3; box-shadow: 0 28px 90px rgba(4,28,21,.32); }
.store-brand-dialog::backdrop { background: rgba(5,28,21,.62); backdrop-filter: blur(5px); }
.store-brand-form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 28px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.store-brand-form h2 { margin: 5px 0 6px; color: var(--green-dark); font-size: 27px; }
.store-brand-form header p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.store-brand-form header > button { display: grid; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: #fff; font: inherit; font-size: 22px; cursor: pointer; place-items: center; }
.store-brand-editor { display: grid; grid-template-columns: .82fr 1.18fr; gap: 14px; padding: 24px 28px 14px; }
.store-brand-upload { position: relative; display: grid; align-content: start; gap: 14px; min-width: 0; padding: 13px; border: 1px solid #d7e1d4; border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.store-brand-upload:hover, .store-brand-upload:focus-within { border-color: #78aa92; box-shadow: 0 12px 26px rgba(18,65,50,.1); transform: translateY(-2px); }
.store-brand-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.store-brand-preview { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 13px; background: #dfe8dc; }
.store-brand-preview.is-logo { width: 112px; aspect-ratio: 1; margin-inline: auto; border: 1px solid #e0e6dd; background: #f8faf6; }
.store-brand-preview img { width: 100%; height: 100%; object-fit: cover; }
.store-brand-preview.is-logo img { object-fit: contain; }
.store-brand-upload > span:last-of-type strong, .store-brand-upload > span:last-of-type small { display: block; }
.store-brand-upload strong { color: var(--green-dark); font-size: 14px; }
.store-brand-upload small { min-height: 32px; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.store-brand-upload b { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--green); font-size: 10px; }
.store-brand-help { margin: 0 28px; color: #627069; font-size: 10px; }
.store-brand-help i { color: var(--green); }
.store-brand-form > .member-form-status { margin: 14px 28px 0; }
.store-brand-form > footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding: 18px 28px; border-top: 1px solid var(--line); background: #fff; }

@media (max-width: 640px) {
  .store-brand-dialog { width: calc(100% - 18px); max-height: calc(100vh - 18px); overflow-y: auto; border-radius: 19px; }
  .store-brand-form > header { padding: 21px 20px 18px; }
  .store-brand-form h2 { font-size: 22px; }
  .store-brand-editor { grid-template-columns: 1fr; padding: 18px 20px 12px; }
  .store-brand-upload { grid-template-columns: 108px minmax(0, 1fr); align-items: center; }
  .store-brand-preview, .store-brand-preview.is-logo { width: 108px; margin: 0; }
  .store-brand-help, .store-brand-form > .member-form-status { margin-inline: 20px; }
  .store-brand-form > footer { position: sticky; bottom: 0; padding: 15px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-store-cover, .store-brand-upload { transition: none; }
  .portal-store-card:hover .portal-store-cover, .store-brand-upload:hover { transform: none; }
}

/* Statistics option 2 · cool-white financial command center */
.portal-body[data-portal-view="finance"] {
  --analytics-canvas: #f7f9f8;
  --analytics-canvas-2: #f2f6f4;
  --analytics-surface: #ffffff;
  --analytics-surface-strong: #ffffff;
  --analytics-border: #dce4e1;
  --analytics-border-strong: #cfdad6;
  --analytics-text: #14231f;
  --analytics-muted: #6c7a76;
  --analytics-cyan: #0d8966;
  --analytics-lime: #0c7357;
  color: var(--analytics-text);
  background: #f7f9f8;
}
.portal-body[data-portal-view="finance"]::before { display: none; }
.portal-body[data-portal-view="finance"] .portal-workspace,
.portal-body[data-portal-view="finance"] .portal-main { background: #f7f9f8; }
.portal-body[data-portal-view="finance"] .portal-main { padding-bottom: 64px; }
.portal-body[data-portal-view="finance"] .portal-main > .container { width: min(1420px, calc(100% - 46px)); }
.portal-body[data-portal-view="finance"] .analytics-view { gap: 18px; padding: 12px 0 28px; }
.portal-body[data-portal-view="finance"] .analytics-fluid-scene { display: none !important; }
.portal-body[data-portal-view="finance"] .analytics-header {
  min-height: 142px;
  align-items: center;
  padding: 24px 14px 20px;
  border-bottom: 1px solid #dce4e1;
}
.portal-body[data-portal-view="finance"] .analytics-header .panel-label {
  color: #0b7658;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
}
.portal-body[data-portal-view="finance"] .analytics-header .panel-label::before { width: 22px; background: #168868; }
.portal-body[data-portal-view="finance"] .analytics-header h2 {
  margin-top: 12px;
  color: #0c3429;
  font-size: clamp(43px, 4.4vw, 58px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.055em;
  text-shadow: none;
}
.portal-body[data-portal-view="finance"] .analytics-header-meta { align-items: center; gap: 10px; color: #65716e; }
.portal-body[data-portal-view="finance"] .analytics-header-meta span {
  padding: 11px 14px;
  border: 1px solid #d8e1de;
  border-radius: 11px;
  color: #66716e;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
.portal-body[data-portal-view="finance"] .analytics-header-meta b { color: #087858; }
.portal-body[data-portal-view="finance"] .analytics-feature-grid {
  gap: 0;
  padding: 0 0 6px;
  border-bottom: 1px solid #d8e0dd;
}
.portal-body[data-portal-view="finance"] .analytics-feature-grid button {
  display: flex;
  grid-template: none;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: #56615f;
  text-align: center;
  background: transparent;
  box-shadow: none;
  transition: color .18s ease, background .18s ease;
}
.portal-body[data-portal-view="finance"] .analytics-feature-grid button:hover {
  color: #0c7357;
  background: #edf5f1;
  transform: none;
}
.portal-body[data-portal-view="finance"] .analytics-feature-grid button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #075f47, #087b5b);
  box-shadow: 0 9px 22px rgba(6, 101, 75, .16);
}
.portal-body[data-portal-view="finance"] .analytics-feature-icon {
  display: grid;
  grid-row: auto;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 7px;
  color: #4f5d59;
  background: transparent;
  font-size: 22px;
}
.portal-body[data-portal-view="finance"] .analytics-feature-grid button.is-active .analytics-feature-icon { color: #fff; }
.portal-body[data-portal-view="finance"] .analytics-feature-grid b { align-self: auto; font-size: 17px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.portal-body[data-portal-view="finance"] .analytics-feature-grid small,
.portal-body[data-portal-view="finance"] .analytics-feature-grid em { display: none; }
.portal-body[data-portal-view="finance"] .analytics-controls {
  min-height: 68px;
  padding: 10px 14px 10px 20px;
  border: 1px solid #d9e2df;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
.portal-body[data-portal-view="finance"] .analytics-current-view { gap: 4px; }
.portal-body[data-portal-view="finance"] .analytics-current-view span { color: #63706c; font-size: 13px; }
.portal-body[data-portal-view="finance"] .analytics-current-view strong { color: #087858; font-size: 14px; }
.portal-body[data-portal-view="finance"] .analytics-period-controls select,
.portal-body[data-portal-view="finance"] .analytics-date-range {
  min-height: 44px;
  color: #34413d;
  border-color: #d5dedb;
  border-radius: 9px;
  background: #fff;
  color-scheme: light;
}
.portal-body[data-portal-view="finance"] .analytics-period-controls select { min-width: 150px; font-size: 16px; }
.portal-body[data-portal-view="finance"] .analytics-date-range { min-width: 235px; font-size: 12px; }
.portal-body[data-portal-view="finance"] .analytics-export {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid #0a8966;
  border-radius: 9px;
  color: #087858;
  background: #fff;
  box-shadow: none;
}
.portal-body[data-portal-view="finance"] .analytics-export:hover,
.portal-body[data-portal-view="finance"] .analytics-export:focus-visible { color: #fff; background: #087858; transform: none; }
.portal-body[data-portal-view="finance"] .analytics-dashboard,
.portal-body[data-portal-view="finance"] .analytics-standard-dashboard,
.portal-body[data-portal-view="finance"] .store-finance-dashboard { gap: 18px; }
.portal-body[data-portal-view="finance"] .store-finance-summary {
  gap: 0;
  overflow: hidden;
  border: 1px solid #d9e2df;
  border-radius: 12px;
  background: #fff;
}
.portal-body[data-portal-view="finance"] .store-finance-summary article,
.portal-body[data-portal-view="finance"] .store-finance-summary article.is-balance {
  min-height: 158px;
  padding: 24px 36px;
  border: 0;
  border-right: 1px solid #dfe6e3;
  border-radius: 0;
  color: #17211f;
  background: #fff;
  box-shadow: none;
}
.portal-body[data-portal-view="finance"] .store-finance-summary article:last-child { border-right: 0; }
.portal-body[data-portal-view="finance"] .store-finance-summary article.is-balance { background: linear-gradient(135deg, #f5fbf8, #eef8f4); }
.portal-body[data-portal-view="finance"] .store-finance-summary span,
.portal-body[data-portal-view="finance"] .store-finance-summary small,
.portal-body[data-portal-view="finance"] .store-finance-summary .is-balance span,
.portal-body[data-portal-view="finance"] .store-finance-summary .is-balance small { color: #697572; font-size: 12px; }
.portal-body[data-portal-view="finance"] .store-finance-summary strong,
.portal-body[data-portal-view="finance"] .store-finance-summary .is-expense strong { margin: 11px 0 9px; color: #17211f; font-size: clamp(31px, 3.1vw, 43px); font-weight: 700; }
.portal-body[data-portal-view="finance"] .store-finance-summary .is-income strong,
.portal-body[data-portal-view="finance"] .store-finance-summary .is-balance strong { color: #0a805d; }
.portal-body[data-portal-view="finance"] .store-finance-workspace {
  overflow: hidden;
  border: 1px solid #d9e2df;
  border-radius: 12px;
  background: #fff;
}
.portal-body[data-portal-view="finance"] .store-finance-operations {
  min-height: 138px;
  padding: 24px 26px;
  border: 0;
  border-bottom: 1px solid #dfe6e3;
  border-radius: 0;
  color: #18221f;
  background: #fff;
  box-shadow: none;
}
.portal-body[data-portal-view="finance"] .store-finance-operations .panel-label { color: #087858; }
.portal-body[data-portal-view="finance"] .store-finance-operations h3 { margin: 8px 0 7px; color: #17221f; font-size: 18px; }
.portal-body[data-portal-view="finance"] .store-finance-operations span { color: #6c7874; font-size: 12px; }
.portal-body[data-portal-view="finance"] .store-finance-operations .portal-primary-action {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #07845f, #0a9a70);
  box-shadow: 0 10px 24px rgba(7, 128, 93, .16);
}
.portal-body[data-portal-view="finance"] .store-finance-filterbar {
  grid-template-columns: minmax(260px, 1fr) 280px;
  gap: 20px;
  padding: 20px 26px 24px;
  border: 0;
  border-radius: 0;
  color: #26322e;
  background: #fff;
  box-shadow: none;
}
.portal-body[data-portal-view="finance"] .store-finance-filterbar label { color: #35413d; font-size: 11px; }
.portal-body[data-portal-view="finance"] .store-finance-filterbar input,
.portal-body[data-portal-view="finance"] .store-finance-filterbar select {
  min-height: 46px;
  color: #26322e;
  border-color: #d2dcda;
  border-radius: 9px;
  background: #fff;
  color-scheme: light;
}
.portal-body[data-portal-view="finance"] .analytics-panel,
.portal-body[data-portal-view="finance"] .analytics-table-panel,
.portal-body[data-portal-view="finance"] .analytics-fluid-summary,
.portal-body[data-portal-view="finance"] .analytics-fluid-trend {
  color: #1b2723;
  border-color: #d9e2df;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
.portal-body[data-portal-view="finance"] .analytics-panel h3,
.portal-body[data-portal-view="finance"] .analytics-table-panel h3,
.portal-body[data-portal-view="finance"] .analytics-fluid-summary-head h3,
.portal-body[data-portal-view="finance"] .analytics-fluid-trend h3 { color: #15372e; }
.portal-body[data-portal-view="finance"] .analytics-panel header p,
.portal-body[data-portal-view="finance"] .analytics-table-panel header p,
.portal-body[data-portal-view="finance"] .analytics-fluid-summary-head p,
.portal-body[data-portal-view="finance"] .analytics-fluid-trend p { color: #71807b; }
.portal-body[data-portal-view="finance"] .analytics-panel header > span,
.portal-body[data-portal-view="finance"] .analytics-table-panel header > a { color: #087858; }
.portal-body[data-portal-view="finance"] .analytics-table th,
.portal-body[data-portal-view="finance"] .analytics-table td { color: #31413c; border-bottom-color: #e5ebe8; }
.portal-body[data-portal-view="finance"] .analytics-table th { color: #6f7d78; }
.portal-body[data-portal-view="finance"] .analytics-table tbody tr:hover { background: #f5faf7; }
.portal-body[data-portal-view="finance"] .store-finance-table thead { background: #f3f7f5; }
.portal-body[data-portal-view="finance"] .store-finance-trend time,
.portal-body[data-portal-view="finance"] .store-finance-breakdown-grid h4,
.portal-body[data-portal-view="finance"] .store-finance-total { color: #20322c; }
.portal-body[data-portal-view="finance"] .store-finance-trend article > span,
.portal-body[data-portal-view="finance"] .store-finance-breakdown-grid article span,
.portal-body[data-portal-view="finance"] .store-finance-total span { color: #71807b; }
.portal-body[data-portal-view="finance"] .store-finance-ledger-panel .analytics-table-wrap { border-color: #e1e8e5; }
.portal-body[data-portal-view="finance"] .store-finance-table td.is-income,
.portal-body[data-portal-view="finance"] .store-finance-total b.is-income,
.portal-body[data-portal-view="finance"] .store-finance-table td.is-balance,
.portal-body[data-portal-view="finance"] .store-finance-total strong { color: #087858; }
.portal-body[data-portal-view="finance"] .store-finance-table td.is-expense,
.portal-body[data-portal-view="finance"] .store-finance-total b.is-expense { color: #a24f45; }
.portal-body[data-portal-view="finance"] .analytics-locked { color: #7d3d32; border-color: #ecd5cf; background: #fff5f2; }
.portal-body[data-portal-view="finance"] .analytics-locked p { color: #8b6c65; }

@media (max-width: 980px) {
  .portal-body[data-portal-view="finance"] .analytics-feature-grid {
    grid-template-columns: repeat(5, minmax(168px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }
  .portal-body[data-portal-view="finance"] .analytics-feature-grid::-webkit-scrollbar { display: none; }
  .portal-body[data-portal-view="finance"] .analytics-controls { align-items: stretch; flex-direction: column; }
  .portal-body[data-portal-view="finance"] .analytics-period-controls { justify-content: flex-start; }
  .portal-body[data-portal-view="finance"] .store-finance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-body[data-portal-view="finance"] .store-finance-summary article:nth-child(2) { border-right: 0; }
  .portal-body[data-portal-view="finance"] .store-finance-summary article:nth-child(-n+2) { border-bottom: 1px solid #dfe6e3; }
}
@media (max-width: 720px) {
  .portal-body[data-portal-view="finance"] .portal-main > .container { width: min(100% - 24px, 680px); }
  .portal-body[data-portal-view="finance"] .analytics-header { min-height: 160px; gap: 15px; padding: 20px 2px 18px; }
  .portal-body[data-portal-view="finance"] .analytics-header h2 { font-size: 42px; }
  .portal-body[data-portal-view="finance"] .analytics-header-meta span { padding: 8px 10px; }
  .portal-body[data-portal-view="finance"] .analytics-feature-grid button { min-height: 58px; }
  .portal-body[data-portal-view="finance"] .analytics-period-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .portal-body[data-portal-view="finance"] .analytics-period-controls select,
  .portal-body[data-portal-view="finance"] .analytics-date-range { width: 100%; min-width: 0; }
  .portal-body[data-portal-view="finance"] .analytics-export { grid-column: 1 / -1; }
  .portal-body[data-portal-view="finance"] .store-finance-summary article,
  .portal-body[data-portal-view="finance"] .store-finance-summary article.is-balance { min-height: 132px; padding: 20px; }
  .portal-body[data-portal-view="finance"] .store-finance-summary strong,
  .portal-body[data-portal-view="finance"] .store-finance-summary .is-expense strong { font-size: 30px; }
  .portal-body[data-portal-view="finance"] .store-finance-operations { align-items: stretch; flex-direction: column; }
  .portal-body[data-portal-view="finance"] .store-finance-operations .portal-primary-action { width: 100%; }
  .portal-body[data-portal-view="finance"] .store-finance-filterbar { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .portal-body[data-portal-view="finance"] .analytics-panel,
  .portal-body[data-portal-view="finance"] .analytics-table-panel { padding: 18px; }
}
@media (max-width: 430px) {
  .portal-body[data-portal-view="finance"] .analytics-header-meta span:last-child { width: 100%; }
  .portal-body[data-portal-view="finance"] .store-finance-summary { grid-template-columns: 1fr; }
  .portal-body[data-portal-view="finance"] .store-finance-summary article { border-right: 0; border-bottom: 1px solid #dfe6e3; }
  .portal-body[data-portal-view="finance"] .store-finance-summary article:last-child { border-bottom: 0; }
  .portal-body[data-portal-view="finance"] .analytics-period-controls { grid-template-columns: 1fr; }
  .portal-body[data-portal-view="finance"] .analytics-export { grid-column: auto; }
}

/* Marketing center: intentionally read-only until real delivery channels exist. */
.portal-nav-status {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(149, 126, 45, .22);
  border-radius: 999px;
  color: #92752d;
  background: rgba(255, 244, 201, .74);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.marketing-view { display: grid; align-content: start; gap: 18px; }
.marketing-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  min-height: 250px;
  overflow: hidden;
  padding: 36px 40px;
  border: 1px solid rgba(190, 223, 206, .22);
  border-radius: 28px;
  color: #effff8;
  background:
    radial-gradient(circle at 82% 28%, rgba(201, 244, 83, .18), transparent 26%),
    linear-gradient(128deg, #06372c 0%, #0d624a 58%, #153f34 100%);
}
.marketing-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -70px;
  bottom: -150px;
  border: 1px solid rgba(214, 255, 109, .24);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(214, 255, 109, .04), 0 0 0 84px rgba(214, 255, 109, .025);
}
.marketing-hero > * { position: relative; z-index: 1; }
.marketing-hero .panel-label { color: #d7f45d; }
.marketing-hero h2 { margin: 12px 0 10px; font-size: clamp(42px, 5vw, 68px); line-height: 1; }
.marketing-hero p:not(.panel-label) { max-width: 660px; margin: 0; color: rgba(239, 255, 248, .72); line-height: 1.8; }
.marketing-stage { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid rgba(215, 244, 93, .34); border-radius: 999px; color: #e7ff87; background: rgba(1, 32, 25, .4); font-size: 12px; white-space: nowrap; }
.marketing-roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.marketing-roadmap article { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .86); box-shadow: 0 18px 45px rgba(26, 72, 57, .06); }
.marketing-roadmap article > span { display: flex; align-items: center; justify-content: space-between; color: #6f8e83; font-size: 12px; }
.marketing-roadmap article > span i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #0f684f; background: #edf6e9; font-size: 21px; }
.marketing-roadmap h3 { margin: 30px 0 10px; color: #103f33; font-size: 22px; }
.marketing-roadmap p { min-height: 54px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.marketing-roadmap em { display: inline-flex; margin-top: 22px; padding: 6px 10px; border-radius: 999px; color: #60786f; background: #eef3ea; font-size: 11px; font-style: normal; }
.marketing-safety-note { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border: 1px solid #e8d59a; border-radius: 18px; color: #624f18; background: #fff8dd; }
.marketing-safety-note > i { font-size: 24px; }
.marketing-safety-note strong { display: block; margin-bottom: 3px; }
.marketing-safety-note p { margin: 0; color: #826d35; font-size: 12px; }
@media (max-width: 900px) {
  .marketing-hero { align-items: flex-start; flex-direction: column; min-height: 0; padding: 28px; }
  .marketing-roadmap { grid-template-columns: 1fr; }
  .marketing-roadmap article { min-height: 0; }
}
@media (max-width: 560px) {
  .payroll-save-area .payroll-permission { flex: 1 0 100%; }
  .payroll-save-area .payroll-saved-toggle,
  .payroll-save-area > .portal-primary-button { flex: 1 1 0; justify-content: center; }
  .marketing-hero { padding: 24px 20px; border-radius: 22px; }
  .marketing-hero h2 { font-size: 42px; }
  .marketing-stage { white-space: normal; }
}

/* Statistics feature hub: mirrors the five synchronized mini-program tools. */
.portal-body[data-portal-view="finance"] .analytics-feature-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.portal-body[data-portal-view="finance"] .analytics-feature-grid button {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-rows: auto auto auto;
  min-width: 0;
  min-height: 154px;
  padding: 18px;
  border: 1px solid rgba(145, 236, 217, .2);
  border-radius: 20px;
  color: #eaf9f3;
  text-align: left;
  background: linear-gradient(145deg, rgba(10, 52, 43, .92), rgba(3, 29, 24, .9));
  box-shadow: 0 18px 42px rgba(0, 15, 12, .22);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.portal-body[data-portal-view="finance"] .analytics-feature-grid button:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 241, 75, .55);
}
.portal-body[data-portal-view="finance"] .analytics-feature-grid button.is-active {
  border-color: var(--analytics-lime);
  background: linear-gradient(145deg, rgba(19, 91, 72, .98), rgba(5, 49, 40, .96));
  box-shadow: 0 18px 46px rgba(0, 29, 23, .35), inset 0 0 0 1px rgba(201, 241, 75, .12);
}
.portal-body[data-portal-view="finance"] .analytics-feature-icon {
  grid-row: 1 / 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #d6f65c;
  background: rgba(201, 241, 75, .1);
  font-size: 21px;
}
.portal-body[data-portal-view="finance"] .analytics-feature-grid b {
  align-self: center;
  font-size: 17px;
  line-height: 1.25;
}
.portal-body[data-portal-view="finance"] .analytics-feature-grid small {
  grid-column: 1 / -1;
  margin-top: 15px;
  color: #9fb8af;
  font-size: 11px;
  line-height: 1.7;
}
.portal-body[data-portal-view="finance"] .analytics-feature-grid em {
  grid-column: 1 / -1;
  align-self: end;
  width: max-content;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #cce8dd;
  background: rgba(122, 190, 161, .12);
  font-size: 10px;
  font-style: normal;
}
.portal-body[data-portal-view="finance"] .analytics-current-view {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.portal-body[data-portal-view="finance"] .analytics-current-view span { color: #78958b; font-size: 11px; }
.portal-body[data-portal-view="finance"] .analytics-current-view strong { color: #edf9f5; font-size: 14px; }
.course-statistics-dashboard,
.course-anomaly-dashboard { display: grid; gap: 14px; }
.course-statistics-section-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(145, 236, 217, .2);
  border-radius: 20px;
  background: rgba(3, 27, 23, .7);
}
.course-statistics-section-tabs button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 16px;
  border: 1px solid rgba(145, 236, 217, .15);
  border-radius: 14px;
  color: #a8c0b7;
  background: rgba(10, 48, 40, .55);
  text-align: left;
  cursor: pointer;
}
.course-statistics-section-tabs button > i { color: #a9c8bc; font-size: 22px; }
.course-statistics-section-tabs button span { display: grid; gap: 5px; }
.course-statistics-section-tabs button b { color: #eaf8f3; font-size: 14px; }
.course-statistics-section-tabs button small { color: #78958b; font-size: 10px; }
.course-statistics-section-tabs button.is-active {
  border-color: #d8f15e;
  color: #d8f15e;
  background: linear-gradient(130deg, rgba(18, 102, 76, .9), rgba(9, 61, 49, .92));
  box-shadow: inset 3px 0 #d8f15e;
}
.course-statistics-section-tabs button.is-active > i,
.course-statistics-section-tabs button.is-active b { color: #e8ff78; }
.course-statistics-section { display: grid; gap: 14px; }
.course-statistics-summary.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-consumption-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(145, 236, 217, .2);
  border-radius: 18px;
  background: rgba(3, 27, 23, .7);
}
.course-consumption-toolbar h3 { margin: 0 0 6px; color: #effbf6; font-size: 18px; }
.course-consumption-toolbar p { margin: 0; color: #78958b; font-size: 11px; }
.course-consumption-periods { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: rgba(156, 196, 181, .1); }
.course-consumption-periods button { min-width: 48px; padding: 9px 13px; border: 0; border-radius: 9px; color: #9db6ad; background: transparent; cursor: pointer; }
.course-consumption-periods button.is-active { color: #0b4938; background: #d8f15e; font-weight: 800; }
.course-statistics-summary,
.course-anomaly-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(145, 236, 217, .2);
  border-radius: 22px;
  background: rgba(3, 27, 23, .7);
}
.course-statistics-summary article,
.course-anomaly-summary article {
  min-height: 142px;
  padding: 22px;
  border-right: 1px solid rgba(201, 255, 239, .09);
}
.course-statistics-summary article:last-child,
.course-anomaly-summary article:last-child { border-right: 0; }
.course-statistics-summary span,
.course-anomaly-summary span { color: #9eb6ae; font-size: 12px; }
.course-statistics-summary strong,
.course-anomaly-summary strong { display: block; margin-top: 14px; color: #f5fff9; font-size: 30px; }
.course-statistics-summary small,
.course-anomaly-summary small { display: block; margin-top: 9px; color: #718b82; font-size: 10px; }
.course-statistics-summary .is-alert strong,
.course-anomaly-summary .is-alert strong,
.course-statistics-table .is-anomaly,
.course-anomaly-table .is-anomaly { color: #ffd17a; }
.course-statistics-table .is-normal,
.course-anomaly-table .is-normal { color: #bfe95e; }
.course-anomaly-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(201, 241, 75, .22);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(22, 87, 68, .6), rgba(3, 29, 24, .82));
}
.course-anomaly-notice h3 { margin: 5px 0 7px; color: #effbf6; font-size: 19px; }
.course-anomaly-notice div > span { color: #9eb6ae; font-size: 11px; }
.course-anomaly-readonly { flex: 0 0 auto; padding: 9px 12px; border-radius: 999px; color: #d8f563 !important; background: rgba(201, 241, 75, .1); font-weight: 700; }
.course-anomaly-readonly i { margin-right: 5px; }
.course-statistics-table-panel,
.course-anomaly-table-panel { min-height: 360px; }
.course-statistics-table,
.course-anomaly-table { min-width: 760px; }

@media (max-width: 1080px) {
  .portal-body[data-portal-view="finance"] .analytics-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .portal-body[data-portal-view="finance"] .analytics-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .portal-body[data-portal-view="finance"] .analytics-feature-grid button { min-height: 172px; padding: 15px; }
  .portal-body[data-portal-view="finance"] .analytics-feature-grid button:last-child { grid-column: 1; }
  .course-statistics-summary,
  .course-anomaly-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-statistics-section-tabs { grid-template-columns: 1fr; }
  .course-statistics-section-tabs button { min-height: 62px; }
  .course-consumption-toolbar { align-items: flex-start; flex-direction: column; }
  .course-statistics-summary article:nth-child(2),
  .course-anomaly-summary article:nth-child(2) { border-right: 0; }
  .course-statistics-summary article:nth-child(-n+2),
  .course-anomaly-summary article:nth-child(-n+2) { border-bottom: 1px solid rgba(201, 255, 239, .09); }
  .course-anomaly-notice { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 920px) {
  .payroll-heading { display: block; }
  .payroll-save-area { margin-top: 13px; justify-content: space-between; }
  .payroll-field-grid { grid-template-columns: 1fr; }
  .payroll-mode-grid { grid-template-columns: repeat(2, 1fr); }
  .payroll-tier-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .payroll-panel { padding: 12px; }
  .payroll-saved-heading { align-items: flex-start; }
  .payroll-saved-heading p:last-child { display: none; }
  .payroll-saved-list { grid-template-columns: 1fr; }
  .payroll-saved-card { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 12px; }
  .payroll-saved-card > i { width: 36px; height: 36px; }
  .payroll-saved-detail-card { max-height: 92vh; padding: 18px; }
  .payroll-saved-detail-summary { grid-template-columns: 1fr; gap: 7px; }
  .payroll-saved-detail-summary article { padding: 11px 13px; }
  .payroll-saved-detail-heading { align-items: flex-start; }
  .payroll-saved-detail-heading p { max-width: 250px; }
  .payroll-saved-detail-table { min-width: 0; table-layout: fixed; }
  .payroll-saved-detail-table th, .payroll-saved-detail-table td { padding: 10px 7px; font-size: 8px; line-height: 1.45; }
  .payroll-saved-detail-table th:first-child, .payroll-saved-detail-table td:first-child { width: 27px; }
  .payroll-saved-detail-table th:nth-child(2) { width: auto; }
  .payroll-saved-detail-table th:nth-child(3) { width: 72px; }
  .payroll-saved-detail-table th:nth-child(4), .payroll-saved-detail-table td:nth-child(4) { display: none; }
  .payroll-plan-tabs { grid-template-columns: 1fr; }
  .payroll-card { padding: 14px; }
  .payroll-card-heading { align-items: flex-start; }
  .payroll-card-heading > p { display: none; }
  .payroll-mode-grid { grid-template-columns: 1fr; }
  .payroll-mode-grid label > span { min-height: 82px; }
  .payroll-tier-row { grid-template-columns: 25px minmax(0, 1fr) 32px; gap: 7px; padding: 9px; }
  .payroll-tier-fields { grid-template-columns: 1fr; }
  .payroll-lesson-value-mode { display: grid; }
  .payroll-lesson-value-mode label { min-width: 0; }
  .payroll-lesson-value-mode small { padding-bottom: 0; }
}

/* Portal command dashboard · selected Product Design direction */
.portal-body { --portal-sidebar-width: 244px; color: #17231e; background: #f5f7f3; }
.portal-sidebar {
  width: var(--portal-sidebar-width);
  overflow-y: auto;
  color: #17382f;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  background:
    radial-gradient(circle at 84% 9%, rgba(199, 176, 126, .18), transparent 34%),
    linear-gradient(180deg, #fbf7ee 0%, #f6efe4 52%, #f2eadc 100%);
  border-right: 1px solid rgba(193, 176, 143, .42);
  box-shadow: 18px 0 44px rgba(44, 55, 42, .12);
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 111, 94, .28) transparent;
}
.portal-sidebar::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(255,255,255,.82), transparent 38%),
    radial-gradient(ellipse at 18% 18%, rgba(115, 142, 112, .1), transparent 30%),
    linear-gradient(115deg, transparent 0 66%, rgba(74, 92, 68, .08) 66.5%, transparent 78%);
  content: "";
}
.portal-sidebar-head { position: relative; z-index: 1; min-height: 62px; padding: 0 18px; border-bottom-color: rgba(188, 172, 137, .34); }
.portal-sidebar-brand { color: #17382f; }
.portal-sidebar-brand small { color: #b08b45; }
.portal-sidebar-brand .brand-mark { width: 34px; height: 34px; border-radius: 50%; background: #315f4b; box-shadow: 0 9px 18px rgba(48, 83, 65, .2); }
.portal-sidebar-brand span { font-size: 18px; font-weight: 700; line-height: 1.08; letter-spacing: .03em; }
.portal-sidebar-brand small { margin-top: 1px; font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.portal-store-card { margin: 18px 18px 10px; padding: 16px 17px; border-color: rgba(187, 154, 88, .38); border-radius: 16px; background: rgba(255,255,255,.58); }
.portal-store-kicker { display: flex !important; align-items: center; gap: 7px; margin-bottom: 8px; color: #b08b45; letter-spacing: .08em; }
.portal-store-card strong { font-size: 16px; }
.portal-store-card small { display: flex; align-items: center; justify-content: space-between; color: #7a7061; }

/* Soft venue identity for the management sidebar. */
.portal-sidebar .portal-store-card {
  display: block;
  flex: 0 0 auto;
  width: min(148px, calc(var(--portal-sidebar-width) - 52px));
  min-height: 174px;
  margin: 8px auto 14px;
  padding: 0 !important;
  border: 1px solid rgba(169, 132, 59, .58) !important;
  border-radius: 74px 74px 23px 23px;
  text-align: center;
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(88, 78, 54, .12), inset 0 1px 0 rgba(255,255,255,.92);
}
.portal-sidebar .portal-store-card .portal-store-cover {
  z-index: 0;
  bottom: auto;
  height: 112px;
  border-radius: 73px 73px 0 0;
  object-position: 55% 48%;
  filter: saturate(.92) contrast(.98) brightness(.98);
}
.portal-sidebar .portal-store-card .portal-store-shade {
  display: none;
}
.portal-sidebar .portal-store-identity {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 78px;
  padding: 13px 10px 9px;
  align-items: center;
  flex-direction: column;
  border-top: 1px solid rgba(169, 132, 59, .42);
  border-radius: 50% 50% 22px 22px / 18px 18px 22px 22px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 -4px 18px rgba(73, 58, 32, .05);
}
.portal-sidebar .portal-store-card .portal-store-kicker {
  justify-content: center;
  margin: 0 0 3px;
  color: #a9843b;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .08em;
  text-shadow: none;
}
.portal-sidebar .portal-store-card .portal-store-identity > strong {
  width: 100%;
  color: #17382f;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
  text-shadow: none;
}
.portal-sidebar .portal-store-card .portal-store-identity > button {
  position: relative;
  display: inline-flex;
  min-width: 66px;
  min-height: 24px;
  margin-top: 7px;
  padding: 4px 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(174, 134, 58, .38);
  border-radius: 999px;
  color: #926d25;
  background: rgba(255,255,255,.78);
  font: inherit;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(116, 89, 42, .08);
  cursor: pointer;
}

/* 2026-08-26 · 门店活动线上收款与 3% 服务费透明告知 */
body.portal-body[data-portal-view="marketing"] .marketing-view { gap: 20px; padding-bottom: 40px; }
body.portal-body[data-portal-view="marketing"] .marketing-hero {
  position: relative;
  display: grid;
  min-height: 650px;
  align-content: space-between;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(157,139,99,.22);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(5,65,50,.98) 0%, rgba(5,65,50,.94) 29%, rgba(5,65,50,.72) 43%, rgba(5,65,50,.18) 68%, rgba(5,65,50,0) 100%),
    url("../images/marketing-hero-wellness-editorial.jpg") 66% center / cover no-repeat;
  box-shadow: 0 22px 56px rgba(28,54,42,.1);
}
body.portal-body[data-portal-view="marketing"] .marketing-hero-main { padding: 52px 64px 210px; }
body.portal-body[data-portal-view="marketing"] .marketing-hero > .marketing-hero-main > .marketing-hero-copy { width: min(560px, 46%); color: #fffdf5; }
body.portal-body[data-portal-view="marketing"] .marketing-hero .panel-label { color: #d6b45d; }
body.portal-body[data-portal-view="marketing"] .marketing-hero h2 { margin: 17px 0 16px; color: #fffdf5; font-size: clamp(58px, 5.5vw, 80px); }
body.portal-body[data-portal-view="marketing"] .marketing-hero-copy > p:not(.panel-label) { max-width: 500px; color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.9; }
.marketing-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 25px; }
body.portal-body[data-portal-view="marketing"] .marketing-create-button {
  align-self: auto;
  min-height: 46px;
  padding-inline: 20px;
  border: 1px solid #0b5843;
  color: #fff;
  background: #0b5843;
  box-shadow: 0 13px 25px rgba(11,88,67,.16);
}
.marketing-payment-badge {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(219,184,91,.62);
  border-radius: 999px;
  color: #f3d783;
  background: rgba(3,55,43,.48);
  font-size: 12px;
  font-weight: 650;
}
.marketing-payment-badge.is-ready { border-color: rgba(218,239,218,.65); color: #e5f58a; background: rgba(3,55,43,.56); }
.marketing-hero-fee-copy { display: grid; gap: 7px; margin-top: 34px; }
.marketing-hero-fee-copy strong { color: #dff04c; font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: clamp(54px, 5.2vw, 78px); font-weight: 800; line-height: .98; letter-spacing: -.05em; }
.marketing-hero-fee-copy span { color: rgba(255,255,255,.84); font-size: 14px; letter-spacing: .08em; }
/* Compatibility token retained for existing marketing typography checks. */
.activity-fee-heading > strong { font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif; }
.activity-fee-disclosure { position: absolute; right: 28px; bottom: 28px; left: 28px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(560px, 1.25fr); gap: 0; overflow: hidden; border: 1px solid rgba(224,216,199,.9); border-radius: 24px; background: rgba(255,253,247,.97); box-shadow: 0 18px 50px rgba(20,56,43,.13); backdrop-filter: blur(14px); }
.activity-fee-highlight,
.activity-settlement-rules { overflow: hidden; }
.activity-fee-highlight {
  display: grid;
  align-content: center;
  padding: 26px 30px 22px;
  color: #173f34;
  background: transparent;
}
.activity-fee-highlight > p { margin: 0 0 14px; color: #6d7b73; font-size: 11px; line-height: 1.65; }
.activity-fee-highlight > p strong { color: #173f34; }
.activity-fee-example {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(150px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.activity-fee-example > div { display: grid; gap: 5px; }
.activity-fee-example span { color: #6f7d75; font-size: 11px; }
.activity-fee-example strong { color: #164b3d; font-size: 21px; }
.activity-fee-example > i { color: #b7d63a; font-size: 20px; }
.activity-fee-example .is-venue strong { color: #a7c719; }
.activity-fee-highlight > small { display: block; margin-top: 12px; color: #8b958f; font-size: 9px; line-height: 1.55; }
.activity-settlement-rules { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 2fr); align-items: center; padding: 22px 26px; border-left: 1px solid #e6dfd1; background: transparent; }
.activity-settlement-rules header { display: grid; gap: 6px; margin: 0 22px 0 0; }
.activity-settlement-rules header span { color: #9a762e; font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.activity-settlement-rules header strong { color: #173f34; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 18px; line-height: 1.45; }
.activity-settlement-rules ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.activity-settlement-rules li { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-content: center; gap: 10px; min-height: 92px; padding: 9px 16px; border-left: 1px solid #e4ddcf; }
.activity-settlement-rules li > i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #0d684f; background: #edf5ed; font-size: 18px; }
.activity-settlement-rules li strong { color: #254c40; font-size: 13px; }
.activity-settlement-rules li p { margin: 4px 0 0; color: #748078; font-size: 10px; line-height: 1.55; }
body.portal-body[data-portal-view="marketing"] .activity-payment-card {
  grid-template-columns: minmax(300px, .85fr) minmax(440px, 1.15fr);
  gap: 28px;
  margin-top: 0;
  padding: 27px 30px;
  border-color: #ddd7cb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(54,64,55,.05);
}
.activity-payment-copy > span { color: #9a762e; letter-spacing: .09em; }
.activity-payment-copy strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 22px; }
.activity-payment-copy p { max-width: 500px; font-size: 12px; line-height: 1.75; }
.activity-payment-checklist { display: flex; flex-wrap: wrap; gap: 7px 13px; margin: 6px 0 0; padding: 0; color: #62746b; list-style: none; font-size: 11px; }
.activity-payment-checklist li { display: inline-flex; align-items: center; gap: 4px; }
.activity-payment-checklist i { color: #167356; }
body.portal-body[data-portal-view="marketing"] .activity-payment-form { grid-template-columns: minmax(220px, 1fr) 140px; gap: 12px; }
body.portal-body[data-portal-view="marketing"] .activity-payment-form input[inputmode="numeric"],
body.portal-body[data-portal-view="marketing"] .activity-payment-form select { min-height: 44px; border-color: #d9d5cc; border-radius: 12px; }
body.portal-body[data-portal-view="marketing"] .activity-payment-confirm {
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #eadbb7;
  border-radius: 12px;
  color: #6f5b30;
  background: #fff9e9;
  line-height: 1.65;
}
body.portal-body[data-portal-view="marketing"] .activity-payment-confirm input { flex: 0 0 auto; margin-top: 3px; accent-color: #0b684e; }
body.portal-body[data-portal-view="marketing"] .activity-summary,
body.portal-body[data-portal-view="marketing"] .activity-tabs,
body.portal-body[data-portal-view="marketing"] .marketing-safety-note { margin-top: 0; }
@media (max-width: 1080px) {
  body.portal-body[data-portal-view="marketing"] .marketing-hero { min-height: 760px; }
  body.portal-body[data-portal-view="marketing"] .marketing-hero-main { padding-bottom: 370px; }
  .activity-fee-disclosure { grid-template-columns: 1fr; }
  .activity-settlement-rules { border-top: 1px solid #e6dfd1; border-left: 0; }
  body.portal-body[data-portal-view="marketing"] .activity-payment-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.portal-body[data-portal-view="marketing"] .marketing-hero { min-height: 0; background-position: 64% top; }
  body.portal-body[data-portal-view="marketing"] .marketing-hero-main { min-height: 520px; padding: 34px 24px 180px; }
  body.portal-body[data-portal-view="marketing"] .marketing-hero > .marketing-hero-main > .marketing-hero-copy { width: min(520px, 88%); }
  .marketing-hero-fee-copy strong { font-size: 58px; }
  .activity-fee-disclosure { position: relative; right: auto; bottom: auto; left: auto; margin: -130px 14px 14px; }
  .activity-fee-highlight { padding: 25px 22px 22px; }
  .activity-fee-example { grid-template-columns: 1fr; gap: 10px; }
  .activity-fee-example > i { transform: rotate(90deg); justify-self: center; }
  .activity-settlement-rules { grid-template-columns: 1fr; padding: 24px 22px 18px; }
  .activity-settlement-rules header { margin: 0 0 13px; }
  .activity-settlement-rules ol { grid-template-columns: 1fr; }
  .activity-settlement-rules li { min-height: 0; padding: 13px 0; border-top: 1px solid #e4ddcf; border-left: 0; }
  body.portal-body[data-portal-view="marketing"] .activity-payment-card { padding: 23px 20px; }
  body.portal-body[data-portal-view="marketing"] .activity-payment-form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body.portal-body[data-portal-view="marketing"] .marketing-hero-main { min-height: 560px; background-position: 72% center; }
  body.portal-body[data-portal-view="marketing"] .marketing-hero > .marketing-hero-main > .marketing-hero-copy { width: 100%; }
  body.portal-body[data-portal-view="marketing"] .marketing-hero h2 { font-size: 50px; }
  .marketing-hero-actions { align-items: stretch; flex-direction: column; }
  .marketing-payment-badge { justify-content: center; }
}

body.portal-body[data-portal-view="marketing"] .marketing-create-button {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  align-self: auto;
}
@media (max-width: 560px) {
  body.portal-body[data-portal-view="marketing"] .marketing-create-button {
    right: 20px;
    bottom: 20px;
    left: 20px;
    justify-content: center;
  }
}

/* Marketing center: store activity commerce workspace. */
body.portal-body[data-portal-view="marketing"] .marketing-hero { min-height: 320px; border-radius: 28px; }
.marketing-create-button { align-self: flex-end; min-height: 44px; padding-inline: 20px; white-space: nowrap; }
.activity-payment-card { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.3fr); gap: 22px; margin-top: 18px; padding: 20px 22px; border: 1px solid #dce6dd; border-radius: 20px; background: linear-gradient(135deg, #f4f8f2, #fffaf0); }
.activity-payment-copy { display: grid; align-content: start; gap: 7px; }
.activity-payment-copy > span { color: #8a6a35; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.activity-payment-copy strong { color: #173f34; font-size: 19px; }
.activity-payment-copy p { margin: 0; color: #65756d; font-size: 12px; line-height: 1.7; }
.activity-payment-form { display: grid; grid-template-columns: minmax(180px, 1fr) 120px; gap: 10px 12px; align-items: end; }
.activity-payment-form label { display: grid; gap: 6px; color: #52655c; font-size: 12px; }
.activity-payment-form input[inputmode="numeric"], .activity-payment-form select { min-height: 40px; padding: 0 11px; border: 1px solid #d7ded8; border-radius: 10px; background: #fff; font: inherit; }
.activity-payment-confirm { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 8px !important; }
.activity-payment-form button { justify-self: start; }
.activity-payment-form small { align-self: center; color: #6b7972; }
.activity-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.activity-summary article { display: grid; gap: 8px; padding: 20px 22px; border: 1px solid #e5ddcf; border-radius: 18px; background: rgba(255,255,255,.9); }
.activity-summary span { color: #738078; font-size: 12px; }
.activity-summary strong { color: #173f34; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 30px; }
.activity-tabs { display: flex; gap: 8px; margin-top: 18px; padding: 6px; border: 1px solid #e5ddcf; border-radius: 16px; background: #f2eee5; }
.activity-tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 11px; color: #64736d; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.activity-tabs button.is-active { color: #173f34; background: #fff; box-shadow: 0 7px 18px rgba(70,62,45,.08); }
.activity-workspace-status { margin: 14px 0 0; }
.activity-panel { margin-top: 14px; }
.activity-card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.activity-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 210px; overflow: hidden; border: 1px solid #e5ddcf; border-radius: 22px; background: #fff; box-shadow: 0 16px 36px rgba(59,58,44,.06); }
.activity-card-cover { display: grid; place-items: center; min-height: 210px; overflow: hidden; color: #7d8e85; background: linear-gradient(145deg, #eaf0e6, #f5ead5); }
.activity-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.activity-card-cover i { font-size: 34px; }
.activity-card-body { display: grid; align-content: start; gap: 10px; padding: 20px; }
.activity-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.activity-card h3 { margin: 0; color: #173f34; font-size: 19px; }
.activity-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #6d6550; background: #f0ece3; font-size: 11px; white-space: nowrap; }
.activity-status.is-published { color: #176048; background: #e6f4e7; }
.activity-status.is-offline { color: #8a493f; background: #f8e9e5; }
.activity-card-summary { min-height: 38px; margin: 0; color: #66766f; font-size: 12px; line-height: 1.6; }
.activity-card-price { display: flex; align-items: baseline; gap: 8px; }
.activity-card-price strong { color: #9b6426; font-size: 23px; }
.activity-card-price del { color: #9b9b91; font-size: 12px; }
.activity-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #718077; font-size: 11px; }
.activity-card-actions { display: flex; justify-content: flex-end; margin-top: auto; }
.activity-card-actions button { min-height: 34px; padding: 0 14px; border: 1px solid #cfd9d1; border-radius: 10px; color: #245442; background: #fff; cursor: pointer; }
.activity-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 220px; padding: 28px; border: 1px dashed #d9d1c4; border-radius: 20px; color: #7b857e; background: rgba(255,255,255,.62); text-align: center; }
.activity-order-list, .activity-entitlement-list { display: grid; gap: 10px; }
.activity-order-row, .activity-entitlement-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(120px, 1fr) minmax(110px, .8fr) minmax(110px, .8fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #e5ddcf; border-radius: 16px; background: #fff; }
.activity-order-row strong, .activity-entitlement-row strong { color: #173f34; }
.activity-order-row span, .activity-entitlement-row span, .activity-order-row small, .activity-entitlement-row small { color: #6b7972; font-size: 12px; }
.activity-row-main { display: grid; gap: 4px; }
.activity-entitlement-row button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 10px; color: #fff; background: #1c624d; cursor: pointer; }
.activity-entitlement-row button:disabled { cursor: not-allowed; opacity: .5; }
.activity-dialog { width: min(900px, calc(100vw - 32px)); }
.activity-dialog .activity-form { max-height: min(900px, calc(100vh - 32px)); overflow: auto; }
.activity-cover-editor { margin-top: 2px; }

@media (max-width: 1050px) {
  .activity-payment-card { grid-template-columns: 1fr; }
  .activity-card-list { grid-template-columns: 1fr; }
  .activity-order-row, .activity-entitlement-row { grid-template-columns: minmax(180px, 1.5fr) repeat(2, minmax(100px, 1fr)); }
  .activity-order-row > :nth-child(4), .activity-entitlement-row > :nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  body.portal-body[data-portal-view="marketing"] .marketing-hero { min-height: 0; }
  .activity-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-payment-form { grid-template-columns: 1fr; }
  .activity-tabs { overflow-x: auto; }
  .activity-tabs button { flex: 0 0 auto; }
  .activity-card { grid-template-columns: 1fr; }
  .activity-card-cover { min-height: 180px; }
  .activity-order-row, .activity-entitlement-row { grid-template-columns: 1fr auto; }
  .activity-order-row > :not(.activity-row-main):not(:last-child), .activity-entitlement-row > :not(.activity-row-main):not(:last-child) { display: none; }
}
.portal-sidebar .portal-store-card .portal-store-identity > button::after { position: absolute; inset: -10px -7px; content: ""; }
.portal-sidebar .portal-store-card .portal-store-identity > button:hover, .portal-sidebar .portal-store-card .portal-store-identity > button:focus-visible { color: #fff; background: #315f4b; }
.portal-sidebar .portal-store-card .portal-store-identity > button i { font-size: 10px; line-height: 1; }
.portal-role-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 18px 10px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(0,0,0,.07); }
.portal-role-card > i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: #dff06a; background: rgba(223,240,106,.1); font-size: 18px; }
.portal-role-card strong, .portal-role-card small { display: block; }
.portal-role-card strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.portal-role-card small { margin-top: 2px; color: rgba(255,255,255,.5); font-size: 10px; }
.portal-role-card > span { padding: 4px 7px; border-radius: 999px; color: #dff06a; background: rgba(223,240,106,.1); font-size: 9px; font-weight: 800; }
.portal-side-links { position: relative; z-index: 1; gap: 5px; padding: 2px 18px 11px; }
.portal-nav-label { display: flex; align-items: center; gap: 7px; margin: 17px 18px 8px; color: #587167; font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .045em; }
.portal-nav-label::before {
  position: relative;
  width: 12px;
  height: 13px;
  flex: 0 0 12px;
  border-radius: 0;
  background:
    radial-gradient(ellipse 4px 6px at 50% 50%, #d7b96d 0 68%, transparent 72%) 1px 3px / 6px 8px no-repeat,
    radial-gradient(ellipse 4px 6px at 50% 50%, #bd9647 0 68%, transparent 72%) 6px 2px / 6px 8px no-repeat,
    linear-gradient(180deg, #d3b166, #b88f3f) 5px 5px / 1.5px 8px no-repeat;
  transform: none;
  content: "";
}
.portal-side-links > a, .portal-nav-row > a { grid-template-columns: 31px minmax(0, 1fr) auto; min-height: 42px; padding: 0 9px; border-radius: 12px; color: #17382f; }
.portal-side-links a i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 9px;
  color: #b38a3e;
  background: rgba(255,255,255,.72);
  box-shadow: 0 9px 19px rgba(91, 83, 64, .1), inset 0 1px 0 rgba(255,255,255,.8);
  font-size: 14px;
}
.portal-side-links a b { font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .015em; }
.portal-side-links a:hover { transform: none; }
.portal-side-links a:hover { color: #183b30; background: rgba(255,255,255,.52); }
.portal-side-links a.is-active { color: #fff; background: linear-gradient(135deg, #315f4b, #1e4839); box-shadow: 0 14px 28px rgba(36, 77, 59, .22), inset 4px 0 0 #d4b160; }
.portal-side-links a.is-active b { font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif; font-weight: 600; letter-spacing: .035em; }
.portal-side-links a.is-active i { color: #f4d889; background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 6px 16px rgba(9,38,29,.12); }
.portal-nav-row { grid-template-columns: minmax(0, 1fr) auto; }
.portal-nav-row > button { display: grid; width: 22px; height: 22px; margin-right: 4px; padding: 0; place-items: center; }
.portal-nav-row > button { color: #8d958d; }
.portal-nav-row > button:hover, .portal-nav-row > button:focus-visible { color: #fff; background: #315f4b; }
.portal-nav-row > button i { font-size: 12px; transition: transform .18s ease; }
.portal-nav-group.is-open .portal-nav-row > button i { transform: rotate(90deg); }
.portal-nav-badge { min-width: 23px; padding: 3px 6px; border-radius: 999px; color: #17382f !important; background: linear-gradient(135deg, #e7ca72, #cba650); box-shadow: 0 7px 14px rgba(151, 116, 45, .14); font-size: 10px !important; font-weight: 900; text-align: center; }
.portal-sidebar-foot { grid-template-columns: 1fr 1fr; gap: 8px; padding: 15px 18px 19px; }
.portal-sidebar-foot a, .portal-sidebar-foot button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 8px; font-size: 10px; }
.portal-sidebar-foot i { font-size: 15px; }
.portal-sidebar-foot[data-account-menu] {
  position: relative;
  display: block;
  z-index: 1;
  padding: 8px 18px 10px;
  border-top-color: rgba(188, 172, 137, .34);
}
.portal-account-trigger {
  display: grid !important;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto 14px;
  gap: 8px;
  min-height: 52px !important;
  padding: 8px 10px !important;
  align-items: center;
  border-color: rgba(185, 156, 94, .28) !important;
  border-radius: 20px !important;
  color: #17382f !important;
  background: rgba(255,255,255,.62) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  text-align: left !important;
}
.portal-account-trigger:hover,
.portal-account-trigger:focus-visible,
.portal-sidebar-foot.is-open .portal-account-trigger {
  border-color: rgba(49, 95, 75, .42) !important;
  background: rgba(255,255,255,.82) !important;
  outline: 0;
}
.portal-account-avatar {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(181, 144, 72, .42);
  border-radius: 50%;
  background: #f4ead8 url("/assets/images/store-cover-pilates-default.png") center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84), 0 9px 20px rgba(74, 68, 50, .12);
}
.portal-account-trigger > span { min-width: 0; }
.portal-account-trigger strong,
.portal-account-trigger small { display: block; }
.portal-account-trigger strong { overflow: hidden; font-size: 12px; font-weight: 620; line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
.portal-account-trigger small { margin-top: 1px; color: #b08b45; font-size: 10px; }
.portal-account-trigger em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #315f4b;
  background: #efe4c9;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.portal-account-chevron { color: #819084; transition: transform .18s ease; }
.portal-sidebar-foot.is-open .portal-account-chevron { transform: rotate(180deg); }
.portal-account-menu {
  position: absolute;
  z-index: 60;
  right: 18px;
  bottom: calc(100% - 8px);
  left: 18px;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(185, 156, 94, .28);
  border-radius: 16px;
  background: rgba(255, 252, 246, .96);
  box-shadow: 0 22px 50px rgba(80, 67, 44, .18), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(16px) saturate(120%);
}
.portal-account-menu[hidden] { display: none; }
.portal-account-menu a,
.portal-account-menu button {
  display: grid !important;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 9px;
  min-height: 48px !important;
  padding: 8px 10px !important;
  align-items: center;
  justify-content: stretch !important;
  border: 0 !important;
  border-radius: 11px !important;
  color: #17382f !important;
  background: transparent !important;
  text-align: left !important;
}
.portal-account-menu a:hover,
.portal-account-menu button:hover,
.portal-account-menu a:focus-visible,
.portal-account-menu button:focus-visible { background: rgba(49, 95, 75, .09) !important; outline: 0; }
.portal-account-menu i { color: #a9843b; font-size: 17px; }
.portal-account-menu span,
.portal-account-menu small { display: block; }
.portal-account-menu span { font-size: 11px; font-weight: 760; }
.portal-account-menu small { margin-top: 3px; color: #8a7f6c; font-size: 9px; font-weight: 500; }
.portal-workspace { margin-left: var(--portal-sidebar-width); }
.portal-main { padding: 0 0 72px; }
.portal-main > .container { width: min(1420px, calc(100% - 44px)); }
.command-topbar { min-height: 78px; margin: 0 0 20px; border-bottom: 1px solid #e2e7df; }
.command-greeting { display: flex; align-items: center; gap: 18px; }
.command-greeting > i { color: #587168; font-size: 21px; }
.command-greeting strong { color: #19382e; font-size: 20px; letter-spacing: -.02em; }
.command-greeting em { color: #0f8a62; font-style: normal; }
.command-topbar-meta { gap: 16px; font-size: 12px; }
.command-topbar-meta span { display: inline-flex; align-items: center; gap: 6px; }
.command-topbar-meta i { color: #628278; font-size: 16px; }
.command-topbar-meta .command-sync, .command-topbar-meta .command-sync i { color: #2c925f; }
.overview-priority-board { display: block; margin: 0 0 20px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.overview-priority-board .priority-intro { padding: 0; border: 0; }
.overview-priority-board .priority-intro h1, .overview-priority-board .priority-intro p:last-child { display: none; }
.overview-priority-board .priority-intro .eyebrow { margin: 0 0 10px; color: #314a41; font-size: 13px; font-weight: 850; letter-spacing: 0; }
.overview-priority-board .priority-list { gap: 12px; }
.overview-priority-board .priority-item { grid-template-columns: 42px minmax(0,1fr) auto; min-height: 86px; padding: 14px 16px; border: 1px solid #dde4da; border-radius: 14px; background: #fff; }
.overview-priority-board .priority-item:first-child { padding-left: 16px; border-left: 1px solid #dde4da; }
.overview-priority-board .priority-item > span { grid-row: 1 / 3; width: 38px; height: 38px; color: #315e48; background: #edf4e9; }
.overview-priority-board .priority-item > span i { font-size: 18px; }
.overview-priority-board .priority-urgent { border-color: #f2cfc5; background: #fffdfa; }
.overview-priority-board .priority-urgent > span { color: #a8442f; background: #fae8e2; }
.overview-priority-board .priority-warning { border-color: #eedba2; }
.overview-priority-board .priority-warning > span { color: #826017; background: #fff3cf; }
.overview-priority-board .priority-item h2 { font-size: 14px; }
.overview-priority-board .priority-item p { font-size: 10px; }
.overview-priority-board .priority-item a { grid-column: 3; grid-row: 1 / 3; align-self: center; padding: 8px 11px; border: 1px solid #cbd8c6; color: #295947; background: #fff; white-space: nowrap; }
.overview-dashboard { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.overview-dashboard-head { padding: 0 0 12px; background: transparent; }
.overview-dashboard-head h1 { margin: 3px 0 4px; font-size: 25px; letter-spacing: -.035em; }
.overview-dashboard-head p { font-size: 11px; }
.overview-dashboard-head .overview-period-bar { flex: 0 1 auto; padding: 0; border: 0; background: transparent; }
.overview-period-tabs { gap: 3px; padding: 3px; border-radius: 10px; background: #e8eee6; }
.overview-period-tabs button { width: 47px; height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; }
.overview-period-tabs button.is-active { box-shadow: none; }
.overview-date-range { min-width: 185px; min-height: 42px; border-radius: 10px; background: #fff; }
.overview-date-range i { color: #6a7f77; }
.overview-key-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.overview-key-metrics article { position: relative; min-height: 145px; padding: 21px 22px; border: 1px solid #dfe5dc; border-radius: 16px; background: #fff; }
.overview-key-metrics article > i { position: absolute; top: 18px; right: 18px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #28875c; background: #e8f4e7; font-size: 18px; }
.overview-key-metrics article.is-warning > i { color: #b66529; background: #fff0e3; }
.overview-key-metrics span, .overview-key-metrics strong, .overview-key-metrics small { display: block; }
.overview-key-metrics span { color: #55675f; font-size: 13px; }
.overview-key-metrics strong { margin: 16px 0 8px; color: #17231e; font-size: clamp(29px, 3vw, 38px); line-height: 1; }
.overview-key-metrics small { color: #8f9993; font-size: 10px; }
.overview-insight-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 14px; margin-top: 14px; }
.overview-trend-panel, .overview-risk-panel { min-width: 0; overflow: hidden; border: 1px solid #dfe5dc; border-radius: 17px; background: #fff; }
.overview-trend-panel > header, .overview-risk-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 20px 10px; }
.overview-trend-panel header span, .overview-risk-panel header span { display: block; color: #213b32; font-size: 14px; font-weight: 850; }
.overview-trend-panel header small, .overview-risk-panel header small { display: block; margin-top: 3px; color: #8d9892; font-size: 9px; }
.overview-trend-panel header a, .overview-risk-panel header a { color: #167051; font-size: 10px; font-weight: 800; }
.overview-trend-canvas-wrap { position: relative; min-height: 265px; padding: 8px 18px 0; }
.overview-trend-canvas-wrap canvas { display: block; width: 100%; height: 250px; }
.overview-trend-canvas-wrap p { position: absolute; inset: 0; display: grid; margin: 0; place-items: center; color: #97a19c; font-size: 11px; }
.overview-trend-summary { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e7ebe5; }
.overview-trend-summary > div { min-width: 0; padding: 16px 20px 18px; }
.overview-trend-summary > div + div { border-left: 1px solid #e7ebe5; }
.overview-trend-summary span, .overview-trend-summary strong, .overview-trend-summary small { display: block; }
.overview-trend-summary span { color: #66776f; font-size: 11px; }
.overview-trend-summary strong { margin: 7px 0 4px; color: #17231e; font-size: 24px; }
.overview-trend-summary small { overflow: hidden; color: #98a19c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.overview-risk-summary { display: grid; gap: 9px; padding: 5px 20px 16px; }
.overview-risk-summary > div { display: grid; grid-template-columns: 82px 32px minmax(80px, 1fr); align-items: center; gap: 10px; }
.overview-risk-summary span { color: #607168; font-size: 10px; }
.overview-risk-summary strong { color: #203b31; font-size: 13px; text-align: right; }
.overview-risk-summary i { height: 6px; overflow: hidden; border-radius: 999px; background: #edf1eb; }
.overview-risk-summary b { display: block; width: 0; height: 100%; border-radius: inherit; background: #3c9b69; transition: width .28s ease; }
.overview-risk-summary > div:nth-child(1) b { background: #d96b50; }
.overview-risk-summary > div:nth-child(2) b { background: #e7b646; }
.overview-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e7ebe5; background: #fff; }
.overview-metric-grid article { min-height: 115px; padding: 17px 15px; text-align: left; }
.overview-metric-grid span { font-size: 10px; }
.overview-metric-grid strong { margin: 9px 0 5px; font-size: clamp(17px, 1.8vw, 23px); }
.overview-metric-grid small { margin: 0; font-size: 8px; }
.overview-risk-metric::before { top: 16px; bottom: 16px; }
.overview-risk-metric a { margin-top: 5px; font-size: 9px; }
.overview-data-note { margin-top: 12px; padding: 11px 15px; border: 1px solid #e1e6de; border-radius: 10px; background: #edf3ea; }
.command-grid { margin-top: 14px; }

@media (max-width: 1180px) {
  .command-topbar-meta span:nth-child(2) { display: none; }
  .overview-priority-board .priority-item { grid-template-columns: 36px minmax(0,1fr); }
  .overview-priority-board .priority-item a { grid-column: 2; grid-row: auto; }
  .overview-insight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .portal-body { --portal-sidebar-width: min(84vw, 290px); }
  .portal-workspace { margin-left: 0; }
  .portal-main { padding-top: 16px; }
  .command-topbar { min-height: 58px; margin-bottom: 14px; }
  .command-greeting > i { display: none; }
  .command-greeting strong { font-size: 17px; }
  .command-topbar-meta span:not(:first-child) { display: none; }
}

@media (max-width: 720px) {
  .portal-main > .container { width: min(100% - 28px, 680px); }
  .overview-priority-board .priority-list, .overview-key-metrics { grid-template-columns: 1fr 1fr; }
  .overview-priority-board .priority-item:last-child { grid-column: 1 / -1; }
  .overview-dashboard-head { align-items: stretch; flex-direction: column; }
  .overview-dashboard-head .overview-period-bar { align-items: stretch; flex-direction: column; }
  .overview-date-range { min-width: 0; }
  .overview-key-metrics article { min-height: 132px; padding: 18px; }
  .overview-risk-summary > div { grid-template-columns: 70px 28px minmax(60px, 1fr); }
}

/* Portal overview · option 2 Prism Glass + canonical Fluid Glass */
.portal-body[data-portal-view="overview"] {
  --overview-canvas: #03110e;
  --overview-canvas-2: #061d18;
  --overview-surface: rgba(9, 33, 28, .76);
  --overview-surface-strong: rgba(8, 27, 23, .9);
  --overview-border: rgba(189, 241, 224, .18);
  --overview-border-strong: rgba(208, 255, 240, .3);
  --overview-text: #f3fbf8;
  --overview-muted: #91aaa2;
  --overview-cyan: #32e5df;
  --overview-lime: #c9ed55;
  color: var(--overview-text);
  background:
    radial-gradient(circle at 58% 12%, rgba(54, 119, 102, .2), transparent 34%),
    radial-gradient(circle at 86% 68%, rgba(0, 231, 210, .055), transparent 30%),
    linear-gradient(145deg, var(--overview-canvas), var(--overview-canvas-2));
}
.portal-body[data-portal-view="overview"]::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(215, 255, 243, .14) .55px, transparent .7px);
  background-size: 24px 24px;
  opacity: .08;
  content: "";
}
.portal-body[data-portal-view="overview"] .portal-sidebar {
  border-right: 1px solid rgba(193, 176, 143, .42);
  background:
    radial-gradient(circle at 82% 8%, rgba(199, 176, 126, .2), transparent 34%),
    linear-gradient(180deg, #fbf7ee 0%, #f6efe4 52%, #f2eadc 100%);
  box-shadow: 18px 0 44px rgba(44, 55, 42, .12);
}
.portal-body[data-portal-view="overview"] .portal-sidebar-head { border-bottom-color: rgba(188, 172, 137, .34); }
.portal-body[data-portal-view="overview"] .portal-store-card,
.portal-body[data-portal-view="overview"] .portal-role-card {
  border-color: rgba(184, 147, 76, .48);
  background-color: rgba(255,255,255,.72);
  box-shadow: 0 18px 42px rgba(88, 78, 54, .14), inset 0 1px 0 rgba(255,255,255,.84);
}
.portal-body[data-portal-view="overview"] .portal-workspace { background: transparent; }
.portal-body[data-portal-view="overview"] .portal-main { min-height: 100vh; padding-bottom: 46px; }
.portal-body[data-portal-view="overview"] .portal-main > .container { width: min(1420px, calc(100% - 54px)); }
.portal-body[data-portal-view="overview"] .command-topbar {
  min-height: 96px;
  margin-bottom: 28px;
  border-bottom-color: rgba(190, 229, 217, .14);
}
.portal-body[data-portal-view="overview"] .command-greeting strong { color: var(--overview-text); font-size: clamp(22px, 2vw, 30px); font-weight: 730; }
.portal-body[data-portal-view="overview"] .command-greeting > i { color: #8aa59d; }
.portal-body[data-portal-view="overview"] .command-greeting em { color: var(--overview-lime); }
.portal-body[data-portal-view="overview"] .command-topbar-meta { color: #a8bbb5; }
.portal-body[data-portal-view="overview"] .command-topbar-meta i { color: #90aaa2; }
.portal-body[data-portal-view="overview"] .command-topbar-meta .command-sync,
.portal-body[data-portal-view="overview"] .command-topbar-meta .command-sync i { color: var(--overview-lime); }

.overview-focus-layout {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.18fr);
  grid-template-areas:
    "priorities dashboard"
    "insights insights"
    "note note";
  gap: 20px 26px;
  align-items: start;
}
.overview-focus-layout > .overview-priority-board { grid-area: priorities; }
.overview-focus-layout > .overview-dashboard { grid-area: dashboard; }
.overview-focus-layout > .overview-insight-grid { grid-area: insights; }
.overview-focus-layout > .overview-data-note { grid-area: note; }
.portal-body[data-portal-view="overview"] .overview-priority-board { margin: 0; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: #c8d8d3;
  font-size: 13px;
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-intro .eyebrow::before {
  width: 18px;
  height: 2px;
  background: var(--overview-lime);
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  min-height: 104px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--overview-border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.062), rgba(5,25,21,.44));
  box-shadow: 0 20px 46px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(16px) saturate(112%);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item:hover {
  border-color: var(--overview-border-strong);
  background: linear-gradient(145deg, rgba(255,255,255,.082), rgba(5,31,25,.5));
  transform: translateY(-2px);
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item:first-child { padding-left: 20px; border-left-color: rgba(255, 126, 103, .34); }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item > span {
  width: 44px;
  height: 44px;
  color: #c4dbd4;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-urgent > span { color: #ffc4b8; background: rgba(202, 88, 65, .18); }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-warning > span { color: #f5d26c; background: rgba(205, 164, 43, .17); }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item h2 { color: var(--overview-text); font-size: 15px; font-weight: 730; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item p { color: var(--overview-muted); font-size: 11px; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a {
  padding: 9px 14px;
  border-color: rgba(201,237,85,.32);
  color: var(--overview-lime);
  background: rgba(201,237,85,.055);
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a:hover,
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a:focus-visible { color: #071a14; background: var(--overview-lime); outline: 0; }

.portal-body[data-portal-view="overview"] .overview-dashboard { position: relative; }
.portal-body[data-portal-view="overview"] .overview-dashboard-head { min-height: 42px; padding: 0 0 12px; }
.portal-body[data-portal-view="overview"] .overview-dashboard-head > div:first-child { display: none; }
.portal-body[data-portal-view="overview"] .overview-dashboard-head .overview-period-bar { width: 100%; justify-content: flex-end; }
.portal-body[data-portal-view="overview"] .overview-period-tabs { border: 1px solid rgba(203,241,228,.09); background: rgba(255,255,255,.055); }
.portal-body[data-portal-view="overview"] .overview-period-tabs button { color: #8fa59e; }
.portal-body[data-portal-view="overview"] .overview-period-tabs button:hover { color: #fff; }
.portal-body[data-portal-view="overview"] .overview-period-tabs button.is-active { color: #092018; background: var(--overview-lime); }
.portal-body[data-portal-view="overview"] .overview-date-range {
  flex: 0 0 auto;
  color: #9cb1aa;
  border-color: var(--overview-border);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.portal-body[data-portal-view="overview"] .overview-date-range strong { color: #e8f2ef; }

.portal-body[data-portal-view="overview"] .overview-key-metrics {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--overview-border-strong);
  border-radius: 30px;
  background-color: rgba(255,255,255,.08);
  box-shadow: 0 30px 70px rgba(0,0,0,.32), inset 0 1px 0 rgba(230,255,248,.12);
  backdrop-filter: blur(18px) saturate(118%);
}
.portal-body[data-portal-view="overview"] .overview-key-metrics::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2,15,12,.28), rgba(3,18,15,.12) 42%, transparent 76%);
  content: "";
}
.overview-fluid-canvas,
.overview-fluid-fallback { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.overview-fluid-canvas { z-index: 0; display: block; opacity: .92; filter: saturate(1.05) contrast(1.02) blur(1.2px); transform: scale(1.03); }
.overview-fluid-fallback { z-index: -1; opacity: 0; background: radial-gradient(ellipse at 85% 24%, rgba(0,231,210,.82), transparent 44%), radial-gradient(ellipse at 68% 88%, rgba(60,200,255,.62), transparent 52%), radial-gradient(ellipse at 98% 62%, rgba(7,95,104,.92), transparent 50%); }
.overview-key-metrics.is-fluid-fallback .overview-fluid-canvas { display: none; }
.overview-key-metrics.is-fluid-fallback .overview-fluid-fallback { z-index: 0; opacity: .76; }
.portal-body[data-portal-view="overview"] .overview-key-metrics article {
  position: relative;
  z-index: 2;
  min-height: 185px;
  padding: 36px 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.portal-body[data-portal-view="overview"] .overview-key-metrics article:nth-of-type(odd) { border-right: 1px solid rgba(204,239,228,.15); }
.portal-body[data-portal-view="overview"] .overview-key-metrics article:nth-of-type(-n+2) { border-bottom: 1px solid rgba(204,239,228,.15); }
.portal-body[data-portal-view="overview"] .overview-key-metrics article > i { display: none; }
.portal-body[data-portal-view="overview"] .overview-key-metrics span { color: #c6d7d2; font-size: 13px; }
.portal-body[data-portal-view="overview"] .overview-key-metrics strong { margin: 16px 0 10px; color: #fff; font-size: clamp(35px, 4vw, 48px); font-weight: 560; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.portal-body[data-portal-view="overview"] [data-overview-metric].is-speeding-number,
.portal-body[data-portal-view="finance"] [data-analytics-metric].is-speeding-number {
  display: inline-block;
  min-width: 1ch;
  font-variant-numeric: tabular-nums lining-nums;
  transform-origin: left center;
  will-change: transform, filter, opacity;
}
.portal-body[data-portal-view="overview"] [data-overview-metric].is-speeding,
.portal-body[data-portal-view="finance"] [data-analytics-metric].is-speeding {
  animation: overview-number-speeding 900ms cubic-bezier(.16,.82,.22,1) both;
}
@keyframes overview-number-speeding {
  0% { opacity: .3; filter: blur(7px); transform: translate3d(0, 10px, 0) skewX(-7deg) scale(.96); }
  38% { opacity: .88; filter: blur(2px); transform: translate3d(2px, -2px, 0) skewX(-2deg) scale(1.02); }
  72% { opacity: 1; filter: blur(.45px); transform: translate3d(0, 1px, 0) skewX(0) scale(.995); }
  100% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) skewX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .portal-body[data-portal-view="overview"] [data-overview-metric].is-speeding,
  .portal-body[data-portal-view="finance"] [data-analytics-metric].is-speeding {
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .private-schedule-toolbar { align-items: stretch; flex-direction: column; }
  .private-schedule-actions { justify-content: flex-start; }
  .private-schedule-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .private-schedule-metrics article:nth-child(2) { border-right: 0; }
  .private-schedule-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .private-schedule-grid[data-private-view="day"] .private-booking-card { grid-template-columns: 92px minmax(120px,1fr) minmax(105px,.8fr) auto; }
  .private-schedule-grid[data-private-view="day"] .private-booking-card small { display: none; }
}

@media (max-width: 620px) {
  .private-schedule-toolbar { gap: 18px; padding: 18px; }
  .private-schedule-toolbar h3 { font-size: 22px; }
  .private-schedule-actions { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .private-coach-filter { grid-column: 1 / -1; }
  .private-coach-filter select { width: 100%; }
  .private-schedule-actions .week-stepper { justify-self: end; }
  .private-schedule-metrics article { padding: 14px 15px; }
  .private-schedule-metrics strong { font-size: 22px; }
  .private-schedule-note { margin: 14px 18px; }
  .private-schedule-grid { min-width: 910px; grid-template-columns: repeat(7,130px); }
  .private-schedule-grid[data-private-view="month"] { min-width: 770px; grid-template-columns: repeat(7,110px); }
  .private-schedule-grid[data-private-view="day"] { min-width: 0; }
  .private-schedule-grid[data-private-view="day"] .private-day-column { min-height: 330px; }
  .private-schedule-grid[data-private-view="day"] .private-booking-card { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .private-schedule-grid[data-private-view="day"] .private-booking-card time,
  .private-schedule-grid[data-private-view="day"] .private-booking-card strong,
  .private-schedule-grid[data-private-view="day"] .private-booking-card span { grid-column: 1; }
  .private-schedule-grid[data-private-view="day"] .private-booking-card .course-cancel-button { grid-column: 2; grid-row: 1 / 4; align-self: center; }
}

/* Members · dark relationship workspace */
.portal-body[data-portal-view="members"] {
  --member-canvas: #031612;
  --member-canvas-soft: #06241d;
  --member-glass: rgba(8, 39, 32, .84);
  --member-glass-soft: rgba(10, 48, 39, .68);
  --member-line: rgba(196, 239, 224, .16);
  --member-line-strong: rgba(201, 237, 85, .34);
  --member-text: #f2faf7;
  --member-muted: #91aaa2;
  --member-lime: #c9ed55;
  color: var(--member-text);
  background: var(--member-canvas);
}
.portal-body[data-portal-view="members"] .portal-workspace { background: transparent; }
.portal-body[data-portal-view="members"] .portal-main { min-height: 100vh; }
.portal-body[data-portal-view="members"] .command-topbar { border-bottom-color: var(--member-line); }
.portal-body[data-portal-view="members"] .command-greeting > i,
.portal-body[data-portal-view="members"] .command-topbar-meta i { color: #88a79d; }
.portal-body[data-portal-view="members"] .command-greeting strong,
.portal-body[data-portal-view="members"] .command-topbar-meta { color: var(--member-text); }
.portal-body[data-portal-view="members"] .command-greeting em,
.portal-body[data-portal-view="members"] .command-topbar-meta .command-sync,
.portal-body[data-portal-view="members"] .command-topbar-meta .command-sync i { color: var(--member-lime); }
.portal-body[data-portal-view="members"] #members { padding-top: 26px; }
.member-workspace-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid #d5e0d7;
  border-radius: 14px;
  background: #f2f6f0;
  box-shadow: 0 8px 24px rgba(12, 53, 41, .08);
  scrollbar-width: none;
}
.member-workspace-tabs::-webkit-scrollbar { display: none; }
.member-workspace-tabs a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d5e0d7;
  border-radius: 9px;
  color: #40584f;
  background: #fff;
  box-shadow: 0 2px 5px rgba(12, 53, 41, .04);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.member-workspace-tabs a:hover { color: #0f684f; border-color: #9dbbab; box-shadow: 0 5px 12px rgba(12, 53, 41, .08); transform: translateY(-1px); }
.member-workspace-tabs a.is-active {
  color: #fff;
  border-color: #0f684f;
  background: #0f684f;
  box-shadow: 0 7px 18px rgba(15, 104, 79, .2);
}
.member-workspace-tabs i { color: #648277; font-size: 16px; }
.member-workspace-tabs a.is-active i { color: #d9f45a; }
.portal-body[data-portal-view="members"] #members > .member-section-head {
  min-height: 220px;
  padding: 24px 28px;
  border-color: var(--member-line);
  background: var(--member-glass);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(20px) saturate(125%);
}
.portal-body[data-portal-view="members"] .member-section-copy .panel-label { color: var(--member-lime); }
.portal-body[data-portal-view="members"] .member-section-copy h2 { color: var(--member-text); }
.portal-body[data-portal-view="members"] .member-section-copy > p:last-child,
.portal-body[data-portal-view="members"] .member-section-actions p { color: var(--member-muted); }
.portal-body[data-portal-view="members"] .member-section-actions .portal-primary-button {
  color: #092018;
  border-color: var(--member-lime);
  background: var(--member-lime);
  box-shadow: 0 12px 30px rgba(201, 237, 85, .14);
}
.portal-body[data-portal-view="members"] .member-orbit::before { background: rgba(50, 229, 223, .1); }
.portal-body[data-portal-view="members"] .member-orbit-ring { border-color: rgba(184, 226, 213, .28); }
.portal-body[data-portal-view="members"] .member-orbit-ring-outer { border-color: rgba(201, 237, 85, .3); }
.portal-body[data-portal-view="members"] .member-orbit-center {
  color: var(--member-text);
  border-color: rgba(201, 237, 85, .28);
  background: #082a22;
  box-shadow: 0 0 0 8px rgba(201, 237, 85, .035), 0 14px 34px rgba(0,0,0,.34);
}
.portal-body[data-portal-view="members"] .member-orbit-center i,
.portal-body[data-portal-view="members"] .member-orbit-center strong { color: var(--member-lime); }
.portal-body[data-portal-view="members"] .member-orbit-center span { color: #9eb8b0; }
.portal-body[data-portal-view="members"] .member-orbit-avatar {
  border-color: rgba(239, 255, 250, .94);
  background: #163c31;
  box-shadow: 0 0 0 2px rgba(201, 237, 85, .18), 0 8px 24px rgba(0,0,0,.42);
}
.portal-body[data-portal-view="members"] .member-orbit-avatar.is-coach { box-shadow: 0 0 0 2px rgba(50, 229, 223, .22), 0 8px 24px rgba(0,0,0,.42); }
.portal-body[data-portal-view="members"] .member-orbit-avatar img { display: block; object-position: 50% 24%; }

/* Member attendance workspace */
.portal-body[data-portal-view="attendance"] { --attendance-bg: #f6f7f1; --attendance-panel: #fffefa; --attendance-line: #dfe6dc; --attendance-ink: #173d32; --attendance-muted: #71847b; --attendance-lime: #d7f255; background: var(--attendance-bg); }
.portal-body[data-portal-view="attendance"] .portal-workspace,
.portal-body[data-portal-view="attendance"] .portal-main { background: radial-gradient(circle at 84% 2%, rgba(215,242,85,.1), transparent 24%), var(--attendance-bg); }
.portal-body[data-portal-view="attendance"] .command-topbar { color: var(--attendance-ink); border-color: #dce4db; }
.portal-body[data-portal-view="attendance"] .command-topbar-meta { color: var(--attendance-muted); }
.attendance-view { color: var(--attendance-ink); }
.member-workspace-tabs-attendance { margin-bottom: 16px; border-color: #dce4db; background: rgba(255,255,252,.92); box-shadow: 0 10px 28px rgba(36,68,55,.06); }
.member-workspace-tabs-attendance a { color: #53685f; }
.member-workspace-tabs-attendance a.is-active { color: #fff; background: #2d673f; box-shadow: 0 8px 20px rgba(42,93,57,.16); }
.member-workspace-tabs-attendance a.is-active i { color: var(--attendance-lime); }
.attendance-hero { position: relative; display: flex; min-height: 188px; align-items: center; justify-content: space-between; overflow: hidden; padding: 32px 38px; border: 1px solid #dfdfd2; border-radius: 22px; background: linear-gradient(90deg, rgba(255,253,246,.98) 0%, rgba(255,253,246,.96) 38%, rgba(255,253,246,.25) 70%, rgba(255,253,246,.05) 100%), url("/assets/images/store-cover-pilates-default.png") 74% 58%/cover; box-shadow: 0 16px 40px rgba(71,78,58,.09); }
.attendance-hero::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(241,229,208,.08)); content: ""; pointer-events: none; }
.attendance-hero > * { position: relative; z-index: 1; }
.attendance-hero .panel-label { display: flex; align-items: center; gap: 8px; color: #557722; }
.attendance-hero h2 { max-width: 680px; margin: 10px 0 12px; color: #1a4b3b; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.05em; line-height: 1; }
.attendance-hero p:last-child { max-width: 620px; margin: 0; color: #5f7067; font-size: 15px; }
.attendance-type-tabs { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px; border: 1px solid var(--attendance-line); border-radius: 16px; background: rgba(255,255,252,.92); box-shadow: 0 8px 26px rgba(38,72,58,.05); }
.attendance-type-tabs button { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; color: #52675e; background: transparent; font-weight: 800; cursor: pointer; }
.attendance-type-tabs button:hover { color: #1b493a; background: #f1f5ed; }
.attendance-type-tabs button.is-active { color: #244b34; background: #e3f59b; box-shadow: none; }
.attendance-type-tabs > span { margin-left: auto; padding-right: 10px; color: #7d8e86; font-size: 12px; }
.attendance-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.attendance-summary article { position: relative; min-height: 136px; padding: 20px; overflow: hidden; border: 1px solid var(--attendance-line); border-radius: 18px; background: rgba(255,255,252,.95); box-shadow: 0 10px 30px rgba(43,70,57,.045); }
.attendance-summary article > i { position: absolute; top: 18px; right: 18px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #587a20; background: #eff6d7; }
.attendance-summary article > span { display: block; color: #667970; font-size: 13px; }
.attendance-summary strong { display: block; margin: 15px 0 6px; color: #214b3c; font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1; }
.attendance-summary small { color: #88978f; }
.attendance-summary article.is-attention { border-color: #ead9ae; background: #fffdf7; }
.attendance-summary article.is-attention > i { color: #bd7f21; background: #fff2d9; }
.attendance-filter-panel { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(150px, .72fr)) auto; gap: 12px; align-items: end; padding: 18px; border: 1px solid var(--attendance-line); border-radius: 18px; background: rgba(255,255,252,.96); box-shadow: 0 10px 30px rgba(43,70,57,.045); }
.attendance-filter-panel label > span { display: block; margin-bottom: 7px; color: #546a61; font-size: 12px; font-weight: 750; }
.attendance-filter-panel input, .attendance-filter-panel select { width: 100%; min-height: 44px; border: 1px solid #d7e0d7; border-radius: 11px; color: #24473b; color-scheme: light; background: #fbfcf8; outline: none; }
.attendance-filter-panel input::placeholder { color: #9ca9a2; }
.attendance-filter-panel input:focus, .attendance-filter-panel select:focus { border-color: #6e8e48; box-shadow: 0 0 0 3px rgba(110,142,72,.12); }
.attendance-search > div { position: relative; }
.attendance-search i { position: absolute; top: 50%; left: 14px; color: #83958c; transform: translateY(-50%); }
.attendance-search input { padding-left: 38px; }
.attendance-filter-actions { display: flex; gap: 8px; }
.attendance-filter-actions button { min-height: 44px; padding: 0 16px; border: 1px solid #d5ded5; border-radius: 11px; color: #52675d; background: #fff; font-weight: 850; cursor: pointer; }
.attendance-filter-actions button:hover { border-color: #92a98f; color: #244b3b; }
.attendance-filter-actions button[type="submit"] { border-color: #466f28; color: #fff; background: #466f28; box-shadow: 0 8px 18px rgba(55,96,44,.16); }
.attendance-filter-actions button[type="submit"]:hover { border-color: #365a1d; background: #365a1d; }
.attendance-table-panel { margin-top: 16px; overflow: hidden; border: 1px solid var(--attendance-line); border-radius: 20px; background: rgba(255,255,252,.98); box-shadow: 0 16px 38px rgba(43,70,57,.06); }
.attendance-table-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 17px; border-bottom: 1px solid var(--attendance-line); }
.attendance-table-panel h3 { margin: 4px 0 0; color: #214b3c; font-size: 24px; }
.attendance-table-panel > header > p { color: var(--attendance-muted); }
.attendance-table-scroll { overflow-x: auto; }
.attendance-table { width: 100%; min-width: 1040px; border-collapse: collapse; }
.attendance-table th { padding: 13px 16px; color: #60756b; background: #f5f7f1; font-size: 11px; font-weight: 850; text-align: left; letter-spacing: .04em; }
.attendance-table td { padding: 15px 16px; border-top: 1px solid #e7ece5; color: #40584e; font-size: 13px; vertical-align: middle; }
.attendance-table tbody tr { transition: background .18s ease; }
.attendance-table tbody tr:hover { background: #fafcef; }
.attendance-member-cell { display: flex; min-width: 150px; align-items: center; gap: 10px; }
.attendance-member-cell > span:first-child, .attendance-detail-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid #d9e4d4; border-radius: 50%; color: #2c5a43; background: #edf5df; font-weight: 900; }
.attendance-member-cell img, .attendance-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.attendance-member-cell strong { display: block; color: #23493a; }
.attendance-member-cell small { display: block; margin-top: 3px; color: #8a9991; }
.attendance-count { color: #4a7029; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.attendance-days { display: inline-flex; min-width: 58px; justify-content: center; padding: 6px 9px; border-radius: 999px; color: #4d6d5d; background: #edf3ed; }
.attendance-days.is-stale { color: #a56a16; background: #fff1d9; }
.attendance-detail-button { border: 1px solid #b9cbb6; border-radius: 999px; padding: 7px 12px; color: #315f43; background: #fff; cursor: pointer; }
.attendance-detail-button:hover { border-color: #527b51; background: #f2f7ed; }
.attendance-status { padding: 14px 22px; color: #7e8f86; font-size: 12px; }
.attendance-status[data-state="error"] { color: #bd624e; }
.attendance-empty { padding: 54px 20px; color: #7f9188; text-align: center; }
.attendance-empty i { display: block; margin-bottom: 10px; color: #6c8f38; font-size: 34px; }
.attendance-empty strong { display: block; color: #315547; }
.attendance-empty p { margin: 7px 0 0; }
.attendance-detail-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 40px)); padding: 0; overflow: auto; border: 1px solid #d9e3d8; border-radius: 24px; color: var(--attendance-ink); background: #fffefa; box-shadow: 0 28px 80px rgba(18,47,37,.2); }
.attendance-detail-dialog::backdrop { background: rgba(20,47,37,.34); backdrop-filter: blur(8px); }
.attendance-detail-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; gap: 14px; padding: 22px; border-bottom: 1px solid var(--attendance-line); background: rgba(255,254,250,.97); }
.attendance-detail-head h3 { margin: 3px 0; color: #214b3c; font-size: 25px; }
.attendance-detail-head p:last-child { margin: 0; color: var(--attendance-muted); }
.attendance-detail-head > button { margin-left: auto; border: 0; color: #557067; background: transparent; font-size: 24px; cursor: pointer; }
.attendance-detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 22px 0; }
.attendance-detail-stats div { padding: 14px; border: 1px solid var(--attendance-line); border-radius: 13px; background: #f7f9f3; }
.attendance-detail-stats span { display: block; color: var(--attendance-muted); font-size: 11px; }
.attendance-detail-stats strong { display: block; margin-top: 5px; color: #214b3c; font-size: 22px; }
.attendance-timeline { padding: 20px 22px 28px; }
.attendance-timeline article { position: relative; margin-left: 8px; padding: 0 0 22px 24px; border-left: 1px solid #cedbc9; }
.attendance-timeline article::before { position: absolute; top: 1px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: #6e8e38; box-shadow: 0 0 0 5px #f0f4e2; content: ""; }
.attendance-timeline strong { color: #254c3e; }
.attendance-timeline span { float: right; color: #5b7d32; font-size: 12px; }
.attendance-timeline p { margin: 6px 0 0; color: var(--attendance-muted); }

@media (max-width: 1050px) {
  .attendance-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .attendance-filter-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .attendance-search { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .attendance-hero { min-height: 214px; padding: 26px 22px; background: linear-gradient(180deg, rgba(255,253,246,.98), rgba(255,253,246,.86)), url("/assets/images/store-cover-pilates-default.png") 76% 60%/cover; }
  .attendance-hero h2 { font-size: 36px; }
  .attendance-type-tabs { align-items: stretch; overflow-x: auto; }
  .attendance-type-tabs button { flex: 0 0 auto; }
  .attendance-type-tabs > span { display: none; }
  .attendance-summary { grid-template-columns: 1fr; gap: 8px; }
  .attendance-summary article { min-height: 120px; padding: 16px; }
  .attendance-summary strong { font-size: 28px; }
  .attendance-filter-panel { grid-template-columns: 1fr; }
  .attendance-search { grid-column: auto; }
  .attendance-filter-actions button { flex: 1; }
  .attendance-table-panel > header { align-items: flex-start; gap: 8px; flex-direction: column; }
  .attendance-detail-stats { grid-template-columns: 1fr; }
}
.portal-body[data-portal-view="members"] .portal-toolbar {
  border-color: var(--member-line);
  background: var(--member-glass-soft);
  box-shadow: 0 14px 38px rgba(0,0,0,.2);
  backdrop-filter: blur(16px);
}
.portal-body[data-portal-view="members"] .portal-toolbar label { color: var(--member-muted); }
.portal-body[data-portal-view="members"] .portal-toolbar input {
  color: var(--member-text);
  border-color: var(--member-line);
  background: rgba(1, 21, 17, .58);
}
.portal-body[data-portal-view="members"] .portal-toolbar input::placeholder { color: #6f8b82; }
.portal-body[data-portal-view="members"] .portal-toolbar input:focus { border-color: var(--member-lime); outline: 2px solid rgba(201,237,85,.08); }
.portal-body[data-portal-view="members"] .portal-grid-equal { gap: 16px; }
.portal-body[data-portal-view="members"] .portal-grid-equal > .portal-panel {
  color: var(--member-text);
  border: 1px solid var(--member-line);
  background: var(--member-glass);
  box-shadow: 0 22px 56px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(18px) saturate(120%);
}
.portal-body[data-portal-view="members"] .panel-heading h3 { color: var(--member-text); }
.portal-body[data-portal-view="members"] .panel-heading > span { color: var(--member-muted); }
.portal-body[data-portal-view="members"] .portal-list-item { border-bottom-color: var(--member-line); }
.portal-body[data-portal-view="members"] .portal-list-item strong { color: var(--member-text); }
.portal-body[data-portal-view="members"] .portal-list-item p { color: var(--member-muted); }
.portal-body[data-portal-view="members"] .portal-list-item > span {
  color: var(--member-lime);
  background: rgba(201,237,85,.09);
}
.portal-body[data-portal-view="members"] .member-list-avatar {
  border-color: rgba(221, 250, 241, .32);
  color: var(--member-text);
  background: #173d33;
  box-shadow: 0 0 0 3px rgba(201,237,85,.04);
}
.portal-body[data-portal-view="members"] .member-edit-button {
  color: var(--member-lime);
  border-color: rgba(201,237,85,.23);
  background: rgba(201,237,85,.055);
}
.portal-body[data-portal-view="members"] .member-edit-button:hover,
.portal-body[data-portal-view="members"] .member-edit-button:focus-visible {
  color: #092018;
  background: var(--member-lime);
  outline: 0;
}
.portal-body[data-portal-view="members"] .portal-list { scrollbar-color: rgba(201,237,85,.35) transparent; }

/* Members · ivory relationship workspace, selected design 2 */
.portal-body[data-portal-view="members"] {
  --member-canvas: #f6f1e8;
  --member-panel: rgba(255, 253, 248, .94);
  --member-panel-soft: rgba(255, 251, 243, .82);
  --member-line: rgba(66, 80, 60, .12);
  --member-line-strong: rgba(176, 139, 65, .28);
  --member-text: #153d2d;
  --member-muted: #738075;
  --member-lime: #a38a37;
  color: var(--member-text);
  background:
    radial-gradient(circle at 78% 12%, rgba(236, 225, 195, .74), transparent 28%),
    linear-gradient(180deg, #fbf8f0 0%, #f2ebdf 100%);
}
.portal-body[data-portal-view="members"] .portal-workspace,
.portal-body[data-portal-view="members"] .portal-main {
  background: transparent;
}
.portal-body[data-portal-view="members"] .command-topbar {
  border-bottom-color: rgba(57, 73, 58, .1);
  background: rgba(253, 250, 243, .72);
  backdrop-filter: blur(18px);
}
.portal-body[data-portal-view="members"] .command-greeting > i,
.portal-body[data-portal-view="members"] .command-topbar-meta i { color: #b49b50; }
.portal-body[data-portal-view="members"] .command-greeting strong,
.portal-body[data-portal-view="members"] .command-topbar-meta { color: var(--member-text); }
.portal-body[data-portal-view="members"] .command-greeting em,
.portal-body[data-portal-view="members"] .command-topbar-meta .command-sync,
.portal-body[data-portal-view="members"] .command-topbar-meta .command-sync i { color: #718f4d; }
.portal-body[data-portal-view="members"] #members { padding-top: 26px; }
.portal-body[data-portal-view="members"] .member-workspace-tabs {
  gap: 12px;
  margin-bottom: 18px;
  padding: 11px;
  border-color: rgba(63, 74, 58, .1);
  border-radius: 18px;
  background: rgba(255, 253, 247, .86);
  box-shadow: 0 20px 45px rgba(88, 74, 45, .08);
}
.portal-body[data-portal-view="members"] .member-workspace-tabs a {
  min-height: 48px;
  padding: 0 22px;
  border-color: rgba(77, 90, 68, .12);
  border-radius: 14px;
  color: #405145;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
  font-size: 13px;
  font-weight: 700;
}
.portal-body[data-portal-view="members"] .member-workspace-tabs a.is-active {
  color: #fffdf6;
  border-color: #236047;
  background: linear-gradient(135deg, #246248, #4d7b5c);
  box-shadow: 0 13px 28px rgba(35, 96, 71, .22);
}
.portal-body[data-portal-view="members"] .member-workspace-tabs i { color: #a48a41; font-size: 17px; }
.portal-body[data-portal-view="members"] .member-workspace-tabs a.is-active i { color: #f4df9a; }
.portal-body[data-portal-view="members"] #members > .member-section-head {
  grid-template-columns: minmax(350px, 1fr) minmax(210px, .62fr) minmax(290px, .78fr);
  min-height: 286px;
  padding: 38px 42px;
  border: 1px solid rgba(73, 88, 70, .12);
  border-radius: 24px;
  background: url("/assets/images/member-directory-hero-wellness.png") right center / cover no-repeat #faf7f2;
  box-shadow: 0 26px 64px rgba(93, 75, 45, .1);
  backdrop-filter: none;
}
.portal-body[data-portal-view="members"] #members > .member-section-head::after {
  content: none;
}
.portal-body[data-portal-view="members"] .member-section-copy,
.portal-body[data-portal-view="members"] .member-orbit,
.portal-body[data-portal-view="members"] .member-section-actions { position: relative; z-index: 1; }
.portal-body[data-portal-view="members"] .member-section-copy .panel-label {
  color: #a78b3c;
  font-size: 13px;
  letter-spacing: .1em;
}
.portal-body[data-portal-view="members"] .member-section-copy h2 {
  margin-top: 12px;
  color: var(--member-text);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(42px, 4.2vw, 66px);
  font-weight: 600;
  letter-spacing: .02em;
}
.portal-body[data-portal-view="members"] .member-section-copy > p:last-child,
.portal-body[data-portal-view="members"] .member-section-actions p {
  color: #5f6d63;
  font-size: 14px;
  line-height: 1.9;
}
.portal-body[data-portal-view="members"] .member-section-actions {
  width: 100%;
  max-width: 300px;
  justify-items: center;
  align-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.portal-body[data-portal-view="members"] .member-section-actions p {
  max-width: 278px;
  text-align: center;
}
.portal-body[data-portal-view="members"] .member-section-actions .portal-primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 26px;
  border: 1px solid #245a3f;
  border-radius: 10px;
  color: #fff;
  background: #245a3f;
  box-shadow: 0 12px 26px rgba(36, 90, 63, .18);
}
.portal-body[data-portal-view="members"] .member-section-actions .portal-primary-button:hover {
  background: #1b4933;
}
.portal-body[data-portal-view="members"] .member-orbit {
  width: 250px;
  height: 168px;
}
.portal-body[data-portal-view="members"] .member-orbit::before {
  inset: 18px 42px;
  background: rgba(217, 189, 104, .2);
  filter: blur(22px);
}
.portal-body[data-portal-view="members"] .member-orbit-ring { border-color: rgba(31, 85, 63, .22); }
.portal-body[data-portal-view="members"] .member-orbit-ring-outer { border-color: rgba(164, 138, 62, .32); }
.portal-body[data-portal-view="members"] .member-orbit-center {
  width: 70px;
  height: 70px;
  color: var(--member-text);
  border-color: rgba(174, 145, 70, .35);
  background: rgba(255, 253, 245, .94);
  box-shadow: 0 0 0 9px rgba(255, 248, 221, .62), 0 16px 36px rgba(58, 73, 53, .15);
}
.portal-body[data-portal-view="members"] .member-orbit-center i,
.portal-body[data-portal-view="members"] .member-orbit-center strong { color: #236047; }
.portal-body[data-portal-view="members"] .member-orbit-center span { color: #9a8a57; }
.portal-body[data-portal-view="members"] .member-orbit-avatar {
  border-color: rgba(255, 253, 247, .98);
  background: #f3ead5;
  box-shadow: 0 0 0 2px rgba(174, 145, 70, .2), 0 9px 22px rgba(86, 73, 46, .18);
}
.portal-body[data-portal-view="members"] .member-orbit-avatar.is-coach {
  background: #315f48;
  box-shadow: 0 0 0 2px rgba(35, 96, 71, .2), 0 9px 22px rgba(86, 73, 46, .2);
}
.portal-body[data-portal-view="members"] .portal-toolbar {
  margin: 18px 0;
  padding: 18px 20px;
  border-color: rgba(55, 72, 58, .11);
  border-radius: 22px;
  background: rgba(255, 253, 248, .9);
  box-shadow: 0 18px 40px rgba(88, 74, 45, .08);
  backdrop-filter: none;
}
.portal-body[data-portal-view="members"] .portal-toolbar label { color: #6f796f; }
.portal-body[data-portal-view="members"] .portal-toolbar input {
  min-height: 46px;
  color: #263f32;
  border-color: rgba(48, 70, 54, .12);
  background: rgba(255,255,255,.78);
}
.portal-body[data-portal-view="members"] .portal-toolbar input::placeholder { color: #99a096; }
.portal-body[data-portal-view="members"] .portal-toolbar input:focus {
  border-color: rgba(35, 96, 71, .45);
  outline: 3px solid rgba(35, 96, 71, .08);
}
.portal-body[data-portal-view="members"] .portal-grid-equal {
  grid-template-columns: minmax(620px, 1.28fr) minmax(360px, .72fr);
  gap: 18px;
}
.portal-body[data-portal-view="members"] .portal-grid-equal > .portal-panel {
  color: var(--member-text);
  border: 1px solid rgba(55, 72, 58, .11);
  border-radius: 24px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 24px 54px rgba(88, 74, 45, .1), inset 0 1px 0 rgba(255,255,255,.78);
  backdrop-filter: none;
}
.portal-body[data-portal-view="members"] .panel-heading {
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(52, 72, 56, .1);
}
.portal-body[data-portal-view="members"] .panel-heading h3 {
  color: var(--member-text);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: 27px;
  font-weight: 600;
}
.portal-body[data-portal-view="members"] .panel-heading > span { color: #7f897f; }
.member-directory-head {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) .58fr .62fr .7fr auto;
  gap: 14px;
  padding: 0 2px 8px 88px;
  color: #9a8a57;
  font-size: 11px;
  font-weight: 800;
}
.portal-body[data-portal-view="members"] .portal-list {
  gap: 0;
  max-height: 520px;
}
.portal-body[data-portal-view="members"] .portal-list-item {
  border-bottom-color: rgba(56, 71, 56, .1);
}
.portal-body[data-portal-view="members"] .member-directory-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) .58fr .62fr .7fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 2px;
}
.portal-body[data-portal-view="members"] .portal-list-item strong { color: #1d392c; }
.portal-body[data-portal-view="members"] .portal-list-item p { color: #7f897f; }
.portal-body[data-portal-view="members"] .portal-list-item > span.member-row-status {
  justify-self: start;
  max-width: none;
  padding: 6px 12px;
  color: #236047;
  background: #edf5e9;
  font-weight: 800;
}
.portal-body[data-portal-view="members"] .portal-list-item > span.member-row-status[data-tone="warning"] {
  color: #987025;
  background: #fbf1d5;
}
.member-row-cell small,
.member-row-cell b {
  display: block;
}
.member-row-cell small {
  color: #9da49b;
  font-size: 10px;
  font-weight: 750;
}
.member-row-cell b {
  margin-top: 4px;
  color: #214233;
  font-size: 13px;
}
.portal-body[data-portal-view="members"] .member-list-avatar {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border-color: rgba(176, 139, 65, .22);
  color: #245d46;
  background: #f4ecd8;
  box-shadow: 0 8px 20px rgba(96, 80, 50, .1);
}
.portal-body[data-portal-view="members"] .member-edit-button {
  min-width: 84px;
  margin-left: 0;
  padding: 8px 13px;
  border-color: rgba(35, 96, 71, .18);
  border-radius: 999px;
  color: #236047;
  background: rgba(255,255,255,.76);
  font-weight: 800;
}
.portal-body[data-portal-view="members"] .member-edit-button:hover,
.portal-body[data-portal-view="members"] .member-edit-button:focus-visible {
  color: #fff;
  background: #236047;
}
.portal-body[data-portal-view="members"] .coach-directory-panel {
  position: relative;
  overflow: hidden;
}
.portal-body[data-portal-view="members"] .coach-directory-panel::before {
  position: absolute;
  inset: auto -28px -36px auto;
  width: 220px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 225, 195, .72), transparent 66%);
  content: "";
  pointer-events: none;
}
.portal-body[data-portal-view="members"] .coach-directory-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 17px 0;
}
.coach-directory-row em {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  color: #236047;
  background: #edf5e9;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.coach-directory-copy strong {
  display: block;
  font-size: 15px;
}
.coach-directory-copy p {
  max-width: 270px;
}
.coach-directory-stats {
  grid-column: 2 / 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -2px;
}
.coach-directory-stats span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #78683a;
  background: #f6eed9;
  font-size: 10px;
  font-weight: 780;
}
.coach-directory-more {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  margin-top: 12px;
  border-top: 1px solid rgba(55, 72, 58, .1);
  color: #236047;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

/* Member card directory */
.portal-body[data-portal-view="member-cards"] { --card-bg: #f6f7f1; --card-panel: #fffefa; --card-line: #dfe6dc; --card-ink: #173d32; --card-muted: #71847b; --card-lime: #d7f255; color: var(--card-ink); background: var(--card-bg); }
.portal-body[data-portal-view="member-cards"] .portal-workspace,
.portal-body[data-portal-view="member-cards"] .portal-main { background: radial-gradient(circle at 84% 2%, rgba(215,242,85,.1), transparent 24%), var(--card-bg); }
.portal-body[data-portal-view="member-cards"] .command-topbar { color: var(--card-ink); border-color: #dce4db; }
.portal-body[data-portal-view="member-cards"] .command-topbar-meta { color: var(--card-muted); }
.member-card-view { color: var(--card-ink); }
.member-workspace-tabs-cards { margin-bottom: 16px; border-color: #dce4db; background: rgba(255,255,252,.92); box-shadow: 0 10px 28px rgba(36,68,55,.06); }
.member-workspace-tabs-cards a { color: #53685f; }
.member-workspace-tabs-cards a.is-active { color: #fff; background: #2d673f; box-shadow: 0 8px 20px rgba(42,93,57,.16); }
.member-workspace-tabs-cards a.is-active i { color: var(--card-lime); }
.member-card-hero { position: relative; display: flex; min-height: 188px; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; padding: 32px 38px; border: 1px solid #dfdfd2; border-radius: 22px; background: linear-gradient(90deg, rgba(255,253,246,.98) 0%, rgba(255,253,246,.96) 38%, rgba(255,253,246,.25) 70%, rgba(255,253,246,.05) 100%), url("/assets/images/store-cover-pilates-default.png") 74% 58%/cover; box-shadow: 0 16px 40px rgba(71,78,58,.09); }
.member-card-hero::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(241,229,208,.08)); content: ""; pointer-events: none; }
.member-card-hero > * { position: relative; z-index: 1; }
.member-card-hero .panel-label { display: flex; align-items: center; gap: 8px; color: #557722; }
.member-card-hero h2 { max-width: 680px; margin: 10px 0 12px; color: #1a4b3b; font-size: clamp(34px,4vw,56px); letter-spacing: -.05em; line-height: 1; }
.member-card-hero p:last-child { max-width: 620px; margin: 0; color: #5f7067; font-size: 15px; }
.member-card-hero-total { display: grid; min-width: 138px; min-height: 116px; place-items: center; padding: 16px; border: 1px solid rgba(106,137,42,.28); border-radius: 28px; color: #5f7067; background: rgba(241,249,204,.9); box-shadow: 0 14px 30px rgba(70,83,39,.12); backdrop-filter: blur(10px); }
.member-card-hero-total strong { color: #355419; font-size: 38px; line-height: 1; }
.member-card-hero-total small { color: #4f6358; }
.member-card-categories { display: grid; grid-template-columns: repeat(8,minmax(112px,1fr)); gap: 8px; margin: 14px 0; overflow-x: auto; scrollbar-width: thin; }
.member-card-categories button { position: relative; display: grid; min-height: 72px; align-content: center; justify-items: start; gap: 5px; padding: 12px 13px; border: 1px solid var(--card-line); border-radius: 14px; color: #52675e; background: rgba(255,255,252,.94); box-shadow: 0 8px 22px rgba(38,72,58,.04); cursor: pointer; text-align: left; transition: transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.member-card-categories button:hover { transform: translateY(-2px); border-color: #bdcfac; box-shadow: 0 12px 26px rgba(38,72,58,.08); }
.member-card-categories button.is-active { color: #244b34; border-color: #c9dd78; background: #e3f59b; box-shadow: 0 10px 26px rgba(98,125,44,.12); }
.member-card-categories i { font-size: 18px; }
.member-card-categories span { font-size: 12px; font-weight: 850; }
.member-card-categories strong { position: absolute; top: 9px; right: 9px; min-width: 24px; padding: 3px 6px; border-radius: 999px; color: #3e692f; background: #edf4e7; font-size: 11px; text-align: center; }
.member-card-categories button.is-active strong { color: #244b34; background: rgba(36,75,52,.1); }
.member-card-toolbar { display: grid; grid-template-columns: minmax(260px,1fr) auto; gap: 18px; align-items: end; padding: 17px 18px; border: 1px solid var(--card-line); border-radius: 17px; background: rgba(255,255,252,.94); box-shadow: 0 8px 26px rgba(38,72,58,.05); }
.member-card-toolbar label > span { display: block; margin-bottom: 7px; color: var(--card-muted); font-size: 12px; font-weight: 750; }
.member-card-toolbar label > div { position: relative; }
.member-card-toolbar i { position: absolute; top: 50%; left: 14px; color: #809b90; transform: translateY(-50%); }
.member-card-toolbar input { width: 100%; min-height: 44px; padding-left: 39px; border: 1px solid #d6e0d5; border-radius: 11px; color: #173d32; background: #fbfcf8; outline: none; }
.member-card-toolbar input::placeholder { color: #91a198; }
.member-card-toolbar input:focus { border-color: #73984c; box-shadow: 0 0 0 3px rgba(115,152,76,.1); }
.member-card-toolbar p { margin: 0 0 11px; color: var(--card-muted); }
.member-card-toolbar p strong { color: #2d673f; }
.member-card-directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.member-card-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 2px; }
.member-card-pagination[hidden] { display: none; }
.member-card-pagination button { display: inline-flex; min-height: 38px; align-items: center; gap: 4px; padding: 8px 14px; border: 1px solid #cbd9ca; border-radius: 999px; color: #2d673f; background: #fffefa; cursor: pointer; }
.member-card-pagination button:not(:disabled):hover { border-color: #7fa15c; background: #f2f6eb; }
.member-card-pagination button:disabled { opacity: .38; cursor: not-allowed; }
.member-card-pagination span { color: var(--card-muted); font-size: 12px; }
.member-card-pagination strong { color: #173d32; }
.member-card-person { overflow: hidden; border: 1px solid var(--card-line); border-radius: 20px; background: rgba(255,255,252,.96); box-shadow: 0 14px 34px rgba(38,72,58,.07); }
.member-card-person > header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 18px; border-bottom: 1px solid var(--card-line); }
.member-card-person-avatar { display: grid; width: 46px; height: 46px; place-items: center; overflow: hidden; border: 1px solid #cfddbf; border-radius: 50%; color: #244b34; background: #e3f59b; font-weight: 900; }
.member-card-person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card-person header strong { display: block; color: #173d32; font-size: 17px; }
.member-card-person header p { margin: 4px 0 0; color: var(--card-muted); font-size: 12px; }
.member-card-person header button { padding: 8px 11px; border: 1px solid #b8ceb7; border-radius: 999px; color: #2d673f; background: #fffefa; cursor: pointer; }
.member-card-person header button:hover { border-color: #6f9754; background: #f1f6ea; }
.member-card-person-cards { padding: 4px 18px 8px; }
.member-card-person-cards > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e6ebe2; }
.member-card-person-cards > div:last-child { border-bottom: 0; }
.member-card-person-cards b { display: block; color: #24453a; }
.member-card-person-cards span { display: block; margin-top: 4px; color: var(--card-muted); font-size: 11px; }
.member-card-person-cards em { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: #557064; background: #edf3eb; font-size: 11px; font-style: normal; }
.member-card-person-cards em[data-status="active"] { color: #2d673f; background: #e8f4df; }
.member-card-person-cards em[data-status="expired"], .member-card-person-cards em[data-status="exhausted"] { color: #a3513c; background: #f9e9e4; }
.member-card-empty { margin-top: 16px; padding: 58px 20px; border: 1px solid var(--card-line); border-radius: 20px; color: var(--card-muted); background: rgba(255,255,252,.96); text-align: center; }
.member-card-empty i { display: block; margin-bottom: 10px; color: #6f953c; font-size: 36px; }
.member-card-empty strong { display: block; color: #24453a; }
.member-card-empty p { margin: 7px 0 0; }
@media (max-width: 980px) { .member-card-categories { grid-template-columns: repeat(8,minmax(132px,1fr)); } .member-card-directory { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .member-card-hero { min-height: 214px; align-items: flex-start; padding: 26px 22px; background: linear-gradient(180deg, rgba(255,253,246,.98), rgba(255,253,246,.86)), url("/assets/images/store-cover-pilates-default.png") 76% 60%/cover; } .member-card-hero h2 { font-size: 36px; } .member-card-hero-total { display: none; } .member-card-categories { gap: 7px; } .member-card-categories button { min-height: 66px; padding: 10px 12px; } .member-card-toolbar { grid-template-columns: 1fr; gap: 5px; } .member-card-toolbar p { margin: 0; } .member-card-person > header { grid-template-columns: auto minmax(0,1fr); } .member-card-person header button { grid-column: 1 / -1; width: 100%; min-height: 42px; } .member-card-pagination { gap: 8px; } .member-card-pagination button { padding-inline: 11px; } }

@media (max-width: 1120px) {
  .portal-body[data-portal-view="members"] #members > .member-section-head {
    grid-template-columns: 1fr minmax(220px, .72fr);
  }
  .portal-body[data-portal-view="members"] .member-section-actions {
    grid-column: 1 / -1;
    max-width: none;
  }
  .portal-body[data-portal-view="members"] .portal-grid-equal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .portal-body[data-portal-view="members"] #members > .member-section-head {
    grid-template-columns: 1fr;
    padding: 24px;
    background: url("/assets/images/member-directory-hero-wellness.png") 68% center / cover no-repeat #fbfaf6;
  }
  .portal-body[data-portal-view="members"] .member-section-copy h2 { white-space: normal; }
  .portal-body[data-portal-view="members"] .member-orbit {
    justify-self: start;
  }
  .portal-body[data-portal-view="members"] .member-section-actions {
    justify-items: start;
  }
  .portal-body[data-portal-view="members"] .member-section-actions p {
    text-align: left;
  }
  .member-directory-head {
    display: none;
  }
  .portal-body[data-portal-view="members"] .member-directory-row {
    grid-template-columns: 1fr auto;
  }
  .member-row-cell {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .portal-body[data-portal-view="members"] #members { padding-top: 12px; }
  .member-workspace-tabs { margin-bottom: 10px; padding: 8px; border-radius: 12px; }
  .member-workspace-tabs a { min-height: 39px; padding: 0 14px; }
  .portal-body[data-portal-view="members"] #members > .member-section-head { padding: 18px; border-radius: 18px; }
  .portal-body[data-portal-view="members"] .member-orbit { width: min(100%, 280px); }
  .portal-body[data-portal-view="members"] .portal-grid-equal > .portal-panel { border-radius: 18px; }
}
.portal-body[data-portal-view="overview"] .overview-key-metrics small { color: #9eb2ac; font-size: 11px; }

.portal-body[data-portal-view="overview"] .overview-insight-grid { grid-template-columns: 1.08fr 1fr .68fr; gap: 16px; margin-top: 0; }
.portal-body[data-portal-view="overview"] .overview-trend-panel,
.portal-body[data-portal-view="overview"] .overview-risk-panel,
.portal-body[data-portal-view="overview"] .overview-ai-panel {
  min-width: 0;
  overflow: hidden;
  color: var(--overview-text);
  border: 1px solid var(--overview-border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(3,20,17,.62));
  box-shadow: 0 24px 60px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(16px) saturate(112%);
}
.portal-body[data-portal-view="overview"] .overview-trend-panel > header,
.portal-body[data-portal-view="overview"] .overview-risk-panel > header { padding: 20px 22px 11px; }
.portal-body[data-portal-view="overview"] .overview-trend-panel header span,
.portal-body[data-portal-view="overview"] .overview-risk-panel header span { color: #edf7f4; }
.portal-body[data-portal-view="overview"] .overview-trend-panel header small,
.portal-body[data-portal-view="overview"] .overview-risk-panel header small { color: var(--overview-muted); }
.portal-body[data-portal-view="overview"] .overview-trend-panel header a,
.portal-body[data-portal-view="overview"] .overview-risk-panel header a { color: var(--overview-lime); }
.portal-body[data-portal-view="overview"] .overview-trend-canvas-wrap { min-height: 235px; }
.portal-body[data-portal-view="overview"] .overview-trend-canvas-wrap canvas { height: 220px; }
.portal-body[data-portal-view="overview"] .overview-trend-summary { border-top-color: rgba(204,239,228,.12); }
.portal-body[data-portal-view="overview"] .overview-trend-summary > div + div { border-left-color: rgba(204,239,228,.12); }
.portal-body[data-portal-view="overview"] .overview-trend-summary span,
.portal-body[data-portal-view="overview"] .overview-trend-summary small { color: var(--overview-muted); }
.portal-body[data-portal-view="overview"] .overview-trend-summary strong { color: #f7fcfa; }
.portal-body[data-portal-view="overview"] .overview-risk-summary { padding: 8px 22px 18px; }
.portal-body[data-portal-view="overview"] .overview-risk-summary > div { grid-template-columns: 78px 32px minmax(70px, 1fr); color: var(--overview-muted); }
.portal-body[data-portal-view="overview"] .overview-risk-summary strong { color: #f3faf8; }
.portal-body[data-portal-view="overview"] .overview-risk-summary i { background: rgba(200,235,223,.09); }
.portal-body[data-portal-view="overview"] .overview-risk-summary > div:nth-child(1) b { background: #ff7f68; }
.portal-body[data-portal-view="overview"] .overview-risk-summary > div:nth-child(2) b { background: var(--overview-lime); }
.portal-body[data-portal-view="overview"] .overview-risk-summary > div:nth-child(3) b { background: #48d8b5; }
.portal-body[data-portal-view="overview"] .overview-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top-color: rgba(204,239,228,.12); background: transparent; }
.portal-body[data-portal-view="overview"] .overview-metric-grid article { min-height: 92px; padding: 14px 18px; border-color: rgba(204,239,228,.1); background: transparent; }
.portal-body[data-portal-view="overview"] .overview-metric-grid span,
.portal-body[data-portal-view="overview"] .overview-metric-grid small { color: var(--overview-muted); }
.portal-body[data-portal-view="overview"] .overview-metric-grid strong { color: #f4faf8; }
.portal-body[data-portal-view="overview"] .overview-risk-metric::before { background: var(--overview-lime); }
.portal-body[data-portal-view="overview"] .overview-risk-metric a { color: var(--overview-lime); }

.overview-ai-panel { position: relative; display: flex; min-height: 100%; padding: 24px 22px; align-items: center; flex-direction: column; text-align: center; }
.overview-ai-particles { position: absolute; inset: 0 0 auto; width: 100%; height: 190px; pointer-events: none; }
.overview-ai-orb {
  position: relative;
  z-index: 1;
  display: grid;
  width: 74px;
  height: 74px;
  margin: 44px auto 24px;
  place-items: center;
  border: 1px solid rgba(140,255,236,.48);
  border-radius: 50%;
  color: #cffff6;
  background: rgba(4,45,38,.74);
  box-shadow: 0 0 22px rgba(0,231,210,.34), inset 0 0 24px rgba(60,200,255,.17);
}
.overview-ai-orb i { font-size: 34px; }
.overview-ai-copy { position: relative; z-index: 1; }
.overview-ai-copy span { display: block; color: #edf8f5; font-size: 16px; font-weight: 800; }
.overview-ai-copy p { margin: 13px 0 22px; color: var(--overview-muted); font-size: 11px; line-height: 1.8; }
.overview-ai-panel > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(201,237,85,.78);
  border-radius: 999px;
  color: #f2ffd0;
  background: linear-gradient(180deg, rgba(201,237,85,.2), rgba(77,112,35,.16));
  box-shadow: 0 0 24px rgba(201,237,85,.09), inset 0 1px 0 rgba(255,255,255,.1);
  font-size: 12px;
  font-weight: 800;
}
.overview-ai-panel > a:hover,
.overview-ai-panel > a:focus-visible { color: #092016; background: var(--overview-lime); outline: 0; }
.portal-body[data-portal-view="overview"] .overview-data-note { margin: -4px 0 0; padding: 11px 14px; color: #7f9991; border-color: rgba(190,229,217,.1); background: rgba(255,255,255,.025); }
.portal-body[data-portal-view="overview"] .portal-security {
  margin-top: 40px;
  padding: 24px 28px;
  color: #dbe9e4;
  border: 1px solid var(--overview-border);
  border-radius: 22px;
  border-color: var(--overview-border);
  background: linear-gradient(145deg, rgba(21,76,63,.68), rgba(3,20,17,.86));
  box-shadow: 0 24px 60px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(16px) saturate(112%);
}
.portal-body[data-portal-view="overview"] .portal-security .panel-label {
  margin-bottom: 17px;
  color: var(--overview-lime);
  font-size: 12px;
  letter-spacing: .08em;
}
.portal-body[data-portal-view="overview"] .portal-security .check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 0;
  color: #edf7f3;
}
.portal-body[data-portal-view="overview"] .portal-security .check-list li {
  margin: 0;
  padding: 12px 14px 12px 38px;
  border: 1px solid rgba(190,229,217,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.65;
}
.portal-body[data-portal-view="overview"] .portal-security .check-list li::before {
  top: 12px;
  left: 14px;
  color: var(--overview-lime);
}
.overview-legacy-command-grid { display: none !important; }

@media (max-width: 1220px) {
  .overview-focus-layout { grid-template-columns: minmax(330px, .78fr) minmax(500px, 1.22fr); gap: 18px; }
  .portal-body[data-portal-view="overview"] .overview-insight-grid { grid-template-columns: 1fr 1fr; }
  .portal-body[data-portal-view="overview"] .overview-ai-panel { grid-column: 1 / -1; min-height: 280px; }
  .overview-ai-particles { height: 155px; }
  .overview-ai-orb { margin-top: 22px; }
}
@media (max-width: 980px) {
  .portal-body[data-portal-view="overview"] .portal-mobile-header { border-bottom-color: rgba(205,239,228,.12); background: rgba(3,24,20,.92); }
  .portal-body[data-portal-view="overview"] .portal-mobile-header .brand { color: #fff; }
  .portal-body[data-portal-view="overview"] .portal-mobile-header .brand small { color: #829c94; }
  .portal-body[data-portal-view="overview"] .portal-mobile-header button { color: var(--overview-lime); border-color: rgba(201,237,85,.24); background: rgba(255,255,255,.04); }
  .overview-focus-layout { grid-template-columns: 1fr; grid-template-areas: "priorities" "dashboard" "insights" "note"; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 40px minmax(0,1fr); min-height: 154px; padding: 16px; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item > span { grid-row: auto; width: 38px; height: 38px; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}
@media (max-width: 720px) {
  .portal-body[data-portal-view="overview"] .portal-main > .container { width: min(100% - 28px, 680px); }
  .portal-body[data-portal-view="overview"] .command-topbar { align-items: flex-start; min-height: 74px; padding-top: 10px; }
  .portal-body[data-portal-view="overview"] .command-greeting strong { font-size: 19px; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-list { grid-template-columns: 1fr; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 42px minmax(0,1fr) auto; min-height: 96px; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item > span { grid-row: 1 / 3; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .portal-body[data-portal-view="overview"] .overview-dashboard-head .overview-period-bar { align-items: stretch; flex-direction: row; }
  .portal-body[data-portal-view="overview"] .overview-date-range { min-width: 0; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics { min-height: 350px; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article { min-height: 175px; padding: 28px 24px; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics strong { font-size: 34px; }
  .portal-body[data-portal-view="overview"] .overview-insight-grid { grid-template-columns: 1fr; }
  .portal-body[data-portal-view="overview"] .overview-ai-panel { grid-column: auto; }
}
@media (max-width: 520px) {
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 40px minmax(0,1fr); }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { grid-column: 2; grid-row: auto; }
  .portal-body[data-portal-view="overview"] .overview-dashboard-head .overview-period-bar { flex-direction: column; }
  .portal-body[data-portal-view="overview"] .overview-period-tabs button { flex: 1; width: auto; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics { min-height: 520px; grid-template-columns: 1fr; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article { min-height: 130px; padding: 23px 26px; border-right: 0 !important; border-bottom: 1px solid rgba(204,239,228,.14); }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article:last-of-type { border-bottom: 0; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics strong { margin: 10px 0 6px; font-size: 31px; }
  .portal-body[data-portal-view="overview"] .overview-risk-summary > div { grid-template-columns: 70px 28px minmax(60px,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { transition: none; }
  .overview-fluid-canvas { display: none; }
  .overview-fluid-fallback { z-index: 0; opacity: .72; }
}

@media (max-width: 520px) {
  .command-greeting strong { font-size: 15px; }
  .overview-priority-board .priority-list, .overview-key-metrics, .overview-metric-grid { grid-template-columns: 1fr 1fr; }
  .overview-priority-board .priority-item { grid-column: 1 / -1; }
  .overview-key-metrics strong { font-size: 27px; }
  .overview-trend-canvas-wrap { min-height: 220px; }
  .overview-trend-canvas-wrap canvas { height: 205px; }
  .overview-metric-grid article:nth-child(3n) { border-right: 1px solid #edf0e9; }
  .overview-metric-grid article:nth-child(2n) { border-right: 0; }
}

@media (max-width: 940px) {
  .portal-body { --portal-sidebar-width: min(82vw, 280px); }
  .portal-sidebar { overflow-y: auto; transform: translateX(-104%); transition: transform .24s ease; }
  .portal-body.is-sidebar-open { overflow: hidden; }
  .portal-body.is-sidebar-open .portal-sidebar { transform: translateX(0); }
  .portal-sidebar-close { display: block; }
  .portal-nav-group:hover .portal-submenu, .portal-nav-group:focus-within .portal-submenu { opacity: 0; pointer-events: none; }
  .portal-nav-group.is-open .portal-submenu { max-height: 360px; opacity: 1; pointer-events: auto; }
  .portal-submenu { position: static; width: auto; max-height: 0; margin: 0 4px; padding: 0 8px; overflow: hidden; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); box-shadow: none; transform: none; transition: max-height .22s ease, opacity .18s ease, padding .18s ease; }
  .portal-nav-group.is-open .portal-submenu { padding: 8px; }
  .portal-side-links .portal-submenu a { color: rgba(255,255,255,.82); }
  .portal-side-links .portal-submenu a:hover, .portal-side-links .portal-submenu a:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
  .portal-side-links .portal-submenu button { color: rgba(255,255,255,.82); }
  .portal-side-links .portal-submenu button:hover, .portal-side-links .portal-submenu button:focus-visible, .portal-side-links .portal-submenu button.is-active { color: #fff; background: rgba(255,255,255,.08); }
  .portal-submenu a small, .portal-submenu p { color: rgba(255,255,255,.5); }
  .portal-submenu button small { color: rgba(255,255,255,.5); }
  .portal-submenu p { border-color: rgba(255,255,255,.1); }
  .portal-workspace { margin-left: 0; }
  .portal-mobile-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
  .portal-mobile-header button { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: #fff; font: inherit; cursor: pointer; }
  .portal-sidebar-scrim { position: fixed; inset: 0; z-index: 35; border: 0; background: rgba(5,20,16,.52); opacity: 0; pointer-events: none; transition: opacity .24s ease; }
  .portal-body.is-sidebar-open .portal-sidebar-scrim { display: block; opacity: 1; pointer-events: auto; }
  .priority-board { grid-template-columns: 1fr; }
  .priority-intro { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .priority-intro h1 { white-space: normal; }
  .priority-list { grid-template-columns: 1fr; }
  .priority-item { grid-template-columns: 32px minmax(0, 1fr) auto; min-height: 74px; padding: 8px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .priority-item:last-child { border-bottom: 0; }
  .priority-item a { grid-column: auto; }
  .command-grid { grid-template-columns: 1fr; }
  .overview-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-metric-grid article:nth-child(3n) { border-right: 1px solid #edf0e9; }
  .overview-metric-grid article:nth-child(2n) { border-right: 0; }
  .overview-metric-grid article:nth-last-child(-n+3) { border-bottom: 1px solid #edf0e9; }
  .overview-metric-grid article:nth-last-child(-n+2) { border-bottom: 0; }
  .employee-summary { grid-template-columns: repeat(2, 1fr); }
  .target-summary { grid-template-columns: repeat(2, 1fr); }
  .employee-toolbar { grid-template-columns: 1fr 1fr; }
  .employee-toolbar label:first-child { grid-column: 1 / -1; }
  .role-permission-grid, .department-grid, .coach-type-grid { grid-template-columns: 1fr; }
  .weekly-schedule-toolbar { align-items: flex-start; flex-direction: column; }
  .weekly-schedule-actions { justify-content: flex-start; width: 100%; }
}

.site-footer { padding: 56px 0 30px; color: rgba(255,255,255,.78); background: #0b3428; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 34px; }
.footer-grid h3 { color: #fff; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: #fff; }
.footer-compliance { display: grid; gap: 16px; }
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-policy-links a { padding: 7px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff; background: rgba(255,255,255,.05); font-size: 13px; }
.footer-policy-links a:hover, .footer-policy-links a:focus-visible { border-color: rgba(223,240,106,.58); color: #e6f66f; background: rgba(223,240,106,.08); }
.footer-meta { display: grid; gap: 10px; margin: 0; }
.footer-meta > div { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 9px; align-items: start; }
.footer-meta dt { color: rgba(255,255,255,.5); font-size: 12px; }
.footer-meta dd { min-width: 0; margin: 0; color: rgba(255,255,255,.86); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.footer-meta a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.footer-meta a:hover, .footer-meta a:focus-visible { color: #e6f66f; text-decoration-color: currentColor; }
.footer-note { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

@media (max-width: 920px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { min-height: 470px; }
  .hero-dashboard { min-height: 540px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 70px 1fr; }
  .feature-row > :last-child { grid-column: 2; }
  .workflow { grid-template-columns: 1fr; }
  .capability-tier { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; inset: 72px 14px auto; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-cta { text-align: center; }
  .nav-login { text-align: center; }
  .hero { padding-top: 48px; }
  h1 { font-size: 44px; }
  .hero-grid { gap: 38px; }
  .hero-visual { min-height: 420px; padding: 20px; border-radius: 30px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .advice-card { width: 100%; }
  .hero-person { width: 110px; opacity: .9; }
  .hero-dashboard { min-height: 720px; }
  .hero-dashboard .metric-card { padding: 15px; }
  .hero-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-metric-grid .metric { min-height: 62px; }
  .hero-dashboard .advice-card { padding-right: 98px; }
  .hero-dashboard .hero-person { width: 96px; }
  .trust-list { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .trust-list li:nth-child(3) { border-left: 0; }
  .section { padding: 68px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .cards, .pricing-grid, .help-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .promo-stack { gap: 7px; }
  .cta-panel { grid-template-columns: 1fr; padding: 30px 22px; }
  .qr-grid { flex-wrap: wrap; }
  .qr-placeholder { width: 145px; min-height: 145px; }
  .qr-card { width: calc(50% - 7px); min-width: 145px; }
  .feature-row { grid-template-columns: 1fr; gap: 10px; }
  .feature-row > :last-child { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta > div { grid-template-columns: 64px minmax(0, 1fr); }
  .workflow li { min-height: 0; }
  .feature-map-section { padding-top: 28px; }
  .capability-tier { padding: 24px 20px; border-radius: 24px; }
  .capability-list { grid-template-columns: 1fr; }
  .capability-list li { min-height: 72px; }
  .login-page { padding: 28px 0 56px; place-items: start center; }
  .login-shell { grid-template-columns: 1fr; border-radius: 26px; }
  .login-intro, .login-card { padding: 34px 24px; }
  .login-intro h1 { font-size: 38px; }
  .portal-nav { min-height: 68px; }
  .portal-links { display: none; }
  .portal-user small { display: none; }
  .portal-title { display: block; }
  .readonly-badge { display: inline-flex; margin: 0 0 20px; }
  .portal-metrics { grid-template-columns: repeat(2, 1fr); }
  .overview-dashboard { border-radius: 22px; }
  .overview-dashboard-head { align-items: flex-start; padding: 24px 20px 20px; }
  .overview-dashboard-head h1 { font-size: 34px; }
  .overview-dashboard-head > div > p:last-child { max-width: 240px; }
  .overview-online-badge { padding: 7px 9px; font-size: 10px; }
  .overview-period-bar { align-items: stretch; flex-direction: column; padding: 16px 20px; }
  .overview-period-tabs button { width: 50px; height: 44px; }
  .overview-date-range { min-height: 44px; }
  .overview-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-metric-grid article { min-height: 146px; padding: 23px 13px; }
  .overview-metric-grid span { font-size: 13px; }
  .overview-metric-grid strong { font-size: 26px; }
  .overview-metric-grid small { font-size: 10px; }
  .overview-data-note { padding: 13px 20px; }
  .portal-grid { grid-template-columns: 1fr; }
  .employee-summary { gap: 10px; }
  .employee-summary article { padding: 16px; }
  .employee-summary strong { font-size: 27px; }
  .employee-tabs { gap: 7px; padding: 9px 10px; }
  .employee-tabs button { min-height: 38px; padding: 0 12px; }
  .employee-store-cover { grid-template-columns: 1fr; align-items: end; min-height: 300px; padding: 22px 20px; }
  .employee-store-cover::after { background: linear-gradient(180deg, rgba(7,34,26,.2) 0%, rgba(7,34,26,.68) 47%, rgba(7,34,26,.94) 100%); }
  .employee-store-cover > img { object-position: 68% center; }
  .employee-cover-content h2 { font-size: clamp(28px, 9vw, 38px); }
  .employee-cover-store { grid-template-columns: auto 1fr; align-items: center; gap: 8px; min-width: 0; margin-top: 17px; padding: 11px 12px; }
  .employee-cover-store strong { margin: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .employee-cover-store small { grid-column: 1 / -1; margin-top: 1px; padding-top: 8px; }
  .employee-panel { padding: 16px; }
  .employee-panel-heading { display: block; }
  .employee-panel-heading > p { margin-top: 8px; text-align: left; }
  .target-panel-heading { display: flex; align-items: center; }
  .target-form-grid { grid-template-columns: 1fr; }
  .employee-toolbar { grid-template-columns: 1fr; padding: 13px; }
  .employee-toolbar label:first-child { grid-column: auto; }
  .employee-detail-metrics { grid-template-columns: 1fr; }
  .portal-section { padding-top: 54px; }
  .portal-view-page { min-height: calc(100vh - 140px); padding-top: 18px; }
  .portal-view-page > .portal-section-head { padding: 18px; }
  .analytics-header { align-items: flex-start; flex-direction: column; padding-top: 2px; }
  .analytics-header-meta { flex-wrap: wrap; gap: 6px 14px; }
  .analytics-controls { align-items: stretch; flex-direction: column; }
  .analytics-scope-tabs, .analytics-period-controls { width: 100%; }
  .analytics-scope-tabs { overflow-x: auto; }
  .analytics-scope-tabs button { flex: 1 0 76px; padding: 0 8px; white-space: nowrap; }
  .analytics-period-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .analytics-period-controls label, .analytics-period-controls select { width: 100%; }
  .analytics-export { grid-column: 1 / -1; }
  .analytics-result-card { grid-template-columns: 1fr 1fr; padding: 23px 20px 38px; }
  .analytics-result-card .analytics-change { padding-left: 18px; }
  .analytics-progress { inset: auto 20px 20px; }
  .analytics-quick-metrics { grid-template-columns: 1fr; padding: 8px 18px; }
  .analytics-quick-metrics > div { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 15px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .analytics-quick-metrics > div:last-child { border-bottom: 0; }
  .analytics-quick-metrics strong { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 23px; }
  .analytics-insight { grid-template-columns: 1fr auto; }
  .analytics-insight span { grid-column: 1 / -1; grid-row: 2; }
  .analytics-panel, .analytics-table-panel { padding: 20px 16px; }
  .analytics-ranking article, .analytics-structure article { grid-template-columns: 62px minmax(100px, 1fr) 62px; gap: 8px; }
  .analytics-structure-legend { justify-content: flex-start; flex-wrap: wrap; }
  .store-finance-operations { align-items: stretch; flex-direction: column; padding: 18px; }
  .store-finance-operations .portal-primary-action { width: 100%; }
  .store-finance-filterbar { grid-template-columns: 1fr; }
  .finance-entry-dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .finance-entry-form > header { padding: 20px 18px; }
  .finance-kind-switch { margin: 16px 16px 0; }
  .finance-form-section { margin: 12px 16px 0; padding: 16px; }
  .finance-form-grid { grid-template-columns: 1fr; }
  .finance-form-grid .is-wide { grid-column: auto; }
  .finance-section-heading { flex-direction: column; gap: 8px; }
  .finance-entry-form > .member-form-status { margin: 12px 16px 0; }
  .finance-entry-form > footer { padding: 14px 16px 18px; }
  .finance-entry-form > footer button { flex: 1; }
  .store-finance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-finance-visuals { grid-template-columns: 1fr; }
  .store-finance-trend article { grid-template-columns: 40px minmax(90px, 1fr); }
  .store-finance-trend article > span { grid-column: 2; text-align: left; }
  .store-finance-breakdown-grid { grid-template-columns: 1fr; }
  .store-finance-ledger-panel .analytics-table-wrap { max-height: 520px; border: 0; overflow: visible; }
  .store-finance-table { display: block; min-width: 0; }
  .store-finance-table thead { display: none; }
  .store-finance-table tbody { display: grid; gap: 12px; }
  .store-finance-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf9; }
  .store-finance-table td { display: grid; gap: 4px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
  .store-finance-table td::before { color: var(--muted); font-size: 9px; content: attr(data-label); }
  .store-finance-table td:nth-child(3), .store-finance-table td:nth-child(4), .store-finance-table td:nth-child(10) { grid-column: 1 / -1; }
  .store-finance-total { align-items: flex-start; flex-direction: column; gap: 8px; }
  .store-finance-total span { margin-right: 0; }
  .portal-section-head { display: block; }
  .portal-section-head > p { margin-top: 10px; text-align: left; }
  .member-section-actions { justify-items: start; margin-top: 12px; }
  .member-section-actions p { text-align: left; }
  .member-section-head { display: grid !important; grid-template-columns: 1fr; min-height: 0; }
  .member-section-copy h2 { white-space: normal; }
  .member-section-copy > p:last-child { max-width: none; }
  .member-orbit { order: 2; width: min(100%, 300px); height: 150px; margin: 4px auto 0; }
  .member-section-head .member-section-actions { order: 3; max-width: none; margin-top: 0; }
  .member-orbit-rotor:nth-child(n+7) { display: none; }
  .member-form { padding: 22px 18px; }
  .member-form-grid { grid-template-columns: 1fr; }
  .member-form-wide { grid-column: auto; }
  .course-section-actions { justify-content: flex-start; width: 100%; }
  .course-section-actions p { flex-basis: 100%; }
  .course-section-actions button { flex: 1 1 150px; }
  .course-workspace-tabs button { flex: 1; padding: 0 10px; }
  .weekly-schedule-toolbar { padding: 18px; }
  .weekly-schedule-actions > .portal-primary-button, .weekly-schedule-actions > .portal-secondary-button { flex: 1 1 140px; }
  .weekly-schedule-note { margin: 0 18px 16px; }
  .weekly-schedule-grid { grid-template-columns: repeat(7, 148px); min-width: 1036px; }
  .weekly-day-column { min-height: 390px; }
  .weekly-course-cover { height: 72px; }
  .weekly-course-copy { padding: 8px 9px 9px; }
  .weekly-schedule-card > .member-form-status { margin: 14px 18px 18px; }
  .analytics-summary-grid, .analytics-performance-grid { grid-template-columns: 1fr; }
  .schedule-poster-builder { grid-template-columns: 1fr; max-height: none; }
  .schedule-poster-controls { max-height: calc(100vh - 120px); border-right: 0; border-bottom: 1px solid var(--line); }
  .schedule-poster-stage { min-height: 520px; }
  .poster-upload-grid { grid-template-columns: 1fr; }
  .group-course-dialog .member-form > footer { flex-wrap: wrap; }
  .group-course-dialog .member-form > footer > span { display: none; }
  .group-course-dialog .course-delete-button { margin-right: auto; }
  .finance-summary { grid-template-columns: repeat(2, 1fr); }
  .advice-list { grid-template-columns: 1fr; }
  .portal-toolbar { display: grid; }
  .risk-summary { grid-template-columns: repeat(2, 1fr); }
  .risk-list { grid-template-columns: 1fr; }
  .risk-pagination { align-items: flex-start; flex-direction: column; }
  .portal-metrics article, .portal-panel { padding: 20px; border-radius: 20px; }
  .portal-metrics strong { font-size: 31px; }
  .portal-main { padding-top: 26px; }
  .portal-main > .container { width: min(100% - 28px, 1160px); }
  .command-topbar { align-items: flex-start; }
  .command-topbar-meta { display: grid; gap: 3px; text-align: right; }
  .command-topbar-meta span + span { padding-left: 0; border-left: 0; }
  .command-topbar-meta span:nth-child(2) { display: none; }
  .priority-board { padding: 24px 20px; }
  .priority-item { grid-template-columns: 30px minmax(0, 1fr); }
  .priority-item > a { grid-column: 2; justify-self: start; margin-bottom: 6px; }
  .command-panel { padding: 20px; }
  .command-row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; }
  .command-row > a { grid-column: 1 / -1; }
  .command-schedule-list article { grid-template-columns: 46px minmax(0, 1fr); padding: 10px 0; }
  .command-schedule-list article > span { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .member-invite-qr, .private-pair-fields, .account-security-grid { grid-template-columns: 1fr; }
  .member-invite-qr img { width: 112px; height: 112px; }
  .portal-body[data-portal-view="overview"] .portal-security { padding: 20px; }
  .portal-body[data-portal-view="overview"] .portal-security .check-list { grid-template-columns: 1fr; }
  .customer-section-head, .customer-panel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .customer-panel-heading > p { max-width: none; text-align: left; }
  .customer-head-actions { justify-content: space-between; width: 100%; margin-top: 8px; }
  .customer-create-cta { min-height: 42px; padding: 0 16px; }
  .customer-summary { grid-template-columns: 1fr 1fr; }
  .customer-summary article, .customer-summary article:last-child { grid-template-columns: 38px minmax(0, 1fr); min-height: 92px; padding: 13px; border-right: 1px solid #dfe6dc; border-bottom: 1px solid #dfe6dc; }
  .customer-summary article:nth-child(2n) { border-right: 0; }
  .customer-summary article:nth-last-child(-n+2) { border-bottom: 0; }
  .customer-summary article > i:first-child { width: 37px; height: 37px; font-size: 18px; }
  .customer-summary article > i:last-child { display: none; }
  .customer-summary strong { font-size: 23px; }
  .customer-summary small { overflow: hidden; text-overflow: ellipsis; }
  .customer-follow-strip { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 13px; }
  .customer-follow-strip p { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 7px 18px; }
  .customer-follow-strip p span + span::before { left: -10px; }
  .customer-follow-strip > button { grid-column: 2; grid-row: 1; padding: 0 8px; }
  .customer-tabs { gap: 7px; padding: 9px 10px; }
  .customer-tabs button { min-height: 38px; padding: 0 12px; }
  .customer-panel { padding: 16px; }
  .customer-toolbar { grid-template-columns: 1fr; padding: 12px; }
  .customer-reset-button { justify-self: start; min-height: 32px; padding: 0; }
  .customer-table { min-width: 0; }
  .customer-table thead { display: none; }
  .customer-table, .customer-table tbody, .customer-table tr, .customer-table td { display: block; width: 100%; }
  .customer-table tbody { display: grid; gap: 10px; }
  .customer-table tr { position: relative; padding: 13px 13px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .customer-table td { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 0; }
  .customer-table td::before { color: #89958f; font-size: 9px; content: attr(data-label); }
  .customer-table td:first-child { display: block; padding: 0 36px 10px 0; border-bottom: 1px solid var(--line); }
  .customer-table td:first-child::before { display: none; }
  .customer-table td:nth-child(2) { position: absolute; top: 13px; right: 42px; display: block; width: auto; padding: 0; }
  .customer-table td:nth-child(2)::before { display: none; }
  .customer-table td:last-child { position: absolute; top: 12px; right: 10px; display: block; width: auto; padding: 0; }
  .customer-table td:last-child::before { display: none; }
  .customer-form-grid, .customer-stat-grid { grid-template-columns: 1fr; }
  .customer-more-grid { grid-template-columns: 1fr; }
  .customer-form-wide { grid-column: auto; }
  .customer-task-list article { grid-template-columns: 30px minmax(0, 1fr); }
  .customer-task-list article > strong { grid-column: 2; }
  .customer-record-list article { grid-template-columns: 14px minmax(0, 1fr); }
  .customer-record-list time { grid-column: 2; }
  .customer-pagination { align-items: flex-end; flex-wrap: wrap; }
  .customer-pagination span { flex-basis: 100%; text-align: right; }
  .customer-detail-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); border-radius: 20px; }
  .customer-detail-card { max-height: calc(100vh - 16px); }
  .customer-detail-card > header { padding: 19px 18px 16px; }
  .customer-detail-card > header h2 { font-size: 24px; }
  .customer-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 16px 0; }
  .customer-detail-summary article { min-height: 78px; padding: 13px; }
  .customer-stage-rail { margin: 18px 16px; overflow-x: auto; grid-template-columns: repeat(6, minmax(72px, 1fr)); padding: 6px 0 8px; }
  .customer-detail-columns { grid-template-columns: 1fr; padding: 0 16px 18px; }
  .customer-detail-timeline, .customer-follow-form { padding: 17px; }
  .customer-follow-grid { grid-template-columns: 1fr; }
  .customer-follow-wide { grid-column: auto; }
  .customer-follow-form footer { align-items: stretch; flex-direction: column-reverse; }
  .customer-follow-form footer button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 首页首屏：暗色聚光场馆方向 */
.home-page { background: #06110d; }
.home-page .site-header {
  position: fixed;
  width: 100%;
  color: #f7f2e5;
  background: rgba(3, 13, 10, .18);
  border-color: rgba(255, 255, 255, .08);
  transition: background-color .25s ease, border-color .25s ease;
}
.home-page .site-header.is-scrolled { background: rgba(3, 13, 10, .94); border-color: rgba(255, 255, 255, .12); }
.home-page .brand small { color: rgba(247, 242, 229, .62); }
.home-page .nav-links a:hover, .home-page .nav-links a[aria-current="page"] { color: #dff06a; }
.home-page .nav-login { color: #f7f2e5; border-color: rgba(247, 242, 229, .72); }
.home-page .nav-login:hover { color: #06231a !important; background: #f7f2e5; }
.home-page .nav-toggle { color: #f7f2e5; }
.home-page .hero-cinematic {
  min-height: min(100svh, 980px);
  display: grid;
  align-items: center;
  padding: 128px 0 66px;
  color: #f7f2e5;
  background-color: #030b08;
  background-image: url("../images/hero-studio-spotlight.png");
  background-size: cover;
  background-position: center;
}
.home-page .hero-cinematic::before { inset: 0; width: auto; height: auto; background: rgba(1, 8, 6, .2); }
.home-page .hero-cinematic::after { display: none; }
.home-page .hero-cinematic .container { width: min(1380px, calc(100% - 80px)); }
.home-page .hero-cinematic .hero-grid { grid-template-columns: minmax(420px, .88fr) minmax(560px, 1.12fr); gap: 56px; }
.home-page .hero-copy-panel { position: relative; z-index: 2; align-self: center; max-width: 610px; padding: 44px 0 26px; }
.home-page .hero-copy-panel .eyebrow { margin-bottom: 24px; color: #dff06a; font-size: 14px; }
.home-page .hero-copy-panel .eyebrow::before { background: #dff06a; }
.home-page .hero-copy-panel h1 {
  max-width: 620px;
  margin-bottom: 24px;
  color: #fff7e8;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(58px, 5.4vw, 82px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.045em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.home-page .hero-copy-panel h1 em { color: #a8c59a; }
.home-page .hero-copy-panel .hero-copy { max-width: 570px; color: rgba(255, 247, 232, .78); font-size: 18px; line-height: 1.8; }
.home-page .hero-copy-panel .hero-actions { margin-top: 30px; }
.home-page .hero-copy-panel .button { min-width: 190px; color: #fff; border-color: #158566; background: #0c775b; box-shadow: 0 14px 34px rgba(0, 0, 0, .2); }
.home-page .hero-copy-panel .button:hover { background: #13906c; }
.home-page .hero-copy-panel .button.secondary { color: #fff7e8; border-color: rgba(255, 247, 232, .62); background: rgba(3, 13, 10, .36); box-shadow: none; }
.home-page .hero-copy-panel .button.secondary:hover { color: #06231a; background: #fff7e8; }
.home-page .hero-copy-panel .hero-proof { margin-top: 34px; color: rgba(255, 247, 232, .68); }
.home-page .hero-copy-panel .hero-proof span::before { background: #dff06a; }
.home-page .hero-cinematic .hero-visual {
  min-height: 690px;
  align-self: center;
  padding: 28px 24px 34px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .hero-cinematic .hero-visual::before, .home-page .hero-cinematic .hero-visual::after { display: none; }
.home-page .hero-cinematic .visual-top { padding: 8px 20px 0 18%; color: rgba(255, 247, 232, .66); }
.home-page .hero-cinematic .hero-focus-card {
  width: 64%;
  margin: 120px 0 0 10%;
  padding: 22px 26px 18px;
  color: #fff7e8;
  border: 1px solid rgba(232, 237, 192, .32);
  border-radius: 26px;
  background: rgba(2, 27, 20, .78);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
}
.home-page .hero-focus-card .metric-card-heading { margin-bottom: 8px; }
.home-page .hero-focus-card .metric-card-heading strong { color: #eff5e1; font-size: 20px; }
.home-page .hero-focus-card .metric-card-heading small { color: rgba(255, 247, 232, .54); }
.home-page .hero-period-tabs { background: rgba(255, 255, 255, .09); }
.home-page .hero-period-tabs button { color: rgba(255, 247, 232, .66); }
.home-page .hero-period-tabs button.is-active { color: #08261d; background: #dff06a; }
.hero-focus-metrics { display: grid; }
.hero-focus-metrics article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 18px;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(255, 247, 232, .2);
}
.hero-focus-metrics article:last-child { border-bottom: 0; }
.hero-focus-metrics span { align-self: end; color: rgba(255, 247, 232, .74); font-size: 13px; }
.hero-focus-metrics b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #fff7e8; font-size: 19px; font-weight: 500; }
.hero-focus-metrics b > strong, .hero-focus-metrics b[data-hero-metric] { font-size: 27px; font-weight: 750; }
.hero-focus-metrics small { color: rgba(255, 247, 232, .54); font-size: 11px; }
.home-page .hero-more {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 11px 0 4px;
  border: 0;
  color: #dff06a;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.home-page .hero-more span { font-size: 18px; transition: transform .2s ease; }
.home-page .hero-more[aria-expanded="true"] span { transform: rotate(45deg); }
.home-page .hero-detail-panel {
  position: absolute;
  z-index: 6;
  top: 96px;
  right: 0;
  width: min(520px, 72%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(232, 237, 192, .32);
  border-radius: 24px;
  background: rgba(2, 20, 15, .96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .44);
  backdrop-filter: blur(18px);
}
.home-page .hero-detail-panel:not([hidden]) { display: grid; }
.home-page .hero-detail-panel .metric { min-height: 72px; color: #fff7e8; background: rgba(255, 255, 255, .06); }
.home-page .hero-detail-panel .metric span, .home-page .hero-detail-panel .metric small { display: block; color: rgba(255, 247, 232, .58); }
.home-page .hero-detail-panel .metric b { display: block; margin: 3px 0; color: #f3f8dd; font-size: 18px; }
.home-page .hero-cinematic .advice-card {
  width: 72%;
  min-height: auto;
  margin: 14px 0 0 10%;
  padding: 16px 18px;
  border-color: rgba(223, 240, 106, .24);
  background: rgba(4, 43, 31, .78);
  font-size: 12px;
  line-height: 1.65;
  backdrop-filter: blur(12px);
}
.home-page .hero-cinematic .advice-card span { color: #dff06a; }
.home-page .hero-cinematic .advice-card b { display: block; padding-right: 84px; font-weight: 500; }
.home-page .hero-cinematic .advice-card a { position: absolute; right: 18px; bottom: 16px; color: #dff06a; font-weight: 750; }
.home-page main > :not(.hero-cinematic), .home-page .site-footer { color: var(--ink); background-color: #f8faf7; }

@media (max-width: 1080px) {
  .home-page .hero-cinematic { min-height: auto; background-position: 58% center; }
  .home-page .hero-cinematic .container { width: min(100% - 48px, 960px); }
  .home-page .hero-cinematic .hero-grid { grid-template-columns: .88fr 1.12fr; gap: 20px; }
  .home-page .hero-copy-panel h1 { font-size: 58px; }
  .home-page .hero-cinematic .hero-focus-card { width: 78%; margin-left: 5%; }
  .home-page .hero-cinematic .advice-card { width: 82%; margin-left: 5%; }
}

@media (max-width: 820px) {
  .home-page .site-header { background: rgba(3, 13, 10, .78); }
  .home-page .nav-links { color: var(--ink); background: #fff; }
  .home-page .nav-login { color: var(--green); border-color: var(--green); }
  .home-page .hero-cinematic { padding: 112px 0 54px; background-position: 64% center; }
  .home-page .hero-cinematic::before { background: rgba(1, 8, 6, .48); }
  .home-page .hero-cinematic .container { width: min(100% - 36px, 720px); }
  .home-page .hero-cinematic .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-page .hero-copy-panel { max-width: 620px; padding: 20px 0 0; }
  .home-page .hero-copy-panel h1 { font-size: clamp(47px, 10vw, 66px); }
  .home-page .hero-cinematic .hero-visual { min-height: 620px; }
  .home-page .hero-cinematic .hero-focus-card { width: min(480px, 86%); margin: 92px auto 0; }
  .home-page .hero-cinematic .advice-card { width: min(520px, 92%); margin: 14px auto 0; }
  .home-page .hero-cinematic .visual-top { padding-left: 4%; }
  .home-page .hero-detail-panel { right: 4%; width: 92%; }
}

@media (max-width: 520px) {
  .home-page .hero-cinematic { padding-top: 96px; background-position: 62% center; }
  .home-page .hero-cinematic .container { width: min(100% - 28px, 480px); }
  .home-page .hero-copy-panel h1 { margin-bottom: 20px; font-size: 45px; line-height: 1.2; }
  .home-page .hero-copy-panel .hero-copy { font-size: 16px; line-height: 1.7; }
  .home-page .hero-copy-panel .button { width: 100%; }
  .home-page .hero-copy-panel .hero-proof { display: grid; gap: 10px; margin-top: 24px; }
  .home-page .hero-cinematic .hero-visual { min-height: 640px; padding-inline: 0; }
  .home-page .hero-cinematic .visual-top { padding-inline: 4px; }
  .home-page .hero-cinematic .hero-focus-card { width: 100%; margin-top: 78px; padding: 20px; }
  .home-page .hero-cinematic .advice-card { width: 100%; padding-right: 16px; }
  .home-page .hero-cinematic .advice-card b { padding-right: 0; }
  .home-page .hero-cinematic .advice-card a { position: static; display: inline-block; margin-top: 8px; }
  .home-page .hero-detail-panel { top: 74px; right: 0; width: 100%; grid-template-columns: 1fr 1fr; }
}

/* 首页首屏轻量动态 */
.home-page .hero-cinematic {
  isolation: isolate;
  background-image: none;
}
.home-page .hero-cinematic::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -3%;
  width: auto;
  height: auto;
  background-color: #030b08;
  background-image: url("../images/hero-studio-spotlight.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: scale(1.025);
  animation: hero-background-drift 13s ease-in-out infinite alternate;
  will-change: transform;
}
.home-page .hero-cinematic::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  background: rgba(1, 8, 6, .2);
  pointer-events: none;
}
.home-page .hero-cinematic > .container { position: relative; z-index: 2; }
.home-page .hero-orbit-glow {
  --orbit-radius: 325px;
  position: absolute;
  z-index: 0;
  top: 34px;
  right: -5%;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(239, 245, 225, .46);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(223, 240, 106, .16), inset 0 0 24px rgba(255, 247, 232, .08);
  opacity: .62;
  animation: hero-orbit-breathe 3.8s ease-in-out infinite;
  pointer-events: none;
}
.home-page .hero-orbit-glow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: #dff06a;
  box-shadow: 0 0 10px #dff06a, 0 0 24px rgba(223, 240, 106, .78);
  animation: hero-orbit-spark 8s linear infinite;
}
.home-page .hero-copy-panel > *,
.home-page .hero-cinematic .visual-top,
.home-page .hero-cinematic .hero-focus-card,
.home-page .hero-cinematic .advice-card {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-content-reveal .72s cubic-bezier(.2, .7, .2, 1) forwards;
}
.home-page .hero-copy-panel > :nth-child(1) { animation-delay: .08s; }
.home-page .hero-copy-panel > :nth-child(2) { animation-delay: .16s; }
.home-page .hero-copy-panel > :nth-child(3) { animation-delay: .24s; }
.home-page .hero-copy-panel > :nth-child(4) { animation-delay: .32s; }
.home-page .hero-copy-panel > :nth-child(5) { animation-delay: .4s; }
.home-page .hero-cinematic .visual-top { animation-delay: .22s; }
.home-page .hero-cinematic .hero-focus-card { animation-delay: .34s; }
.home-page .hero-cinematic .advice-card { animation-delay: .54s; }
.home-page .hero-focus-metrics article {
  opacity: 0;
  transform: translateX(14px);
  animation: hero-metric-reveal .52s cubic-bezier(.2, .7, .2, 1) forwards;
}
.home-page .hero-focus-metrics article:nth-child(1) { animation-delay: .56s; }
.home-page .hero-focus-metrics article:nth-child(2) { animation-delay: .64s; }
.home-page .hero-focus-metrics article:nth-child(3) { animation-delay: .72s; }
.home-page .hero-focus-metrics article:nth-child(4) { animation-delay: .8s; }
.home-page.hero-motion-ready .hero-cinematic .hero-focus-card {
  opacity: 1;
  transform: translateY(0);
  animation: hero-card-float 5.6s ease-in-out infinite;
}
.home-page .hero-cinematic .live-dot::before { animation: hero-live-pulse 1.9s ease-in-out infinite; }
.home-page .hero-focus-metrics b { white-space: nowrap; }
.home-page .hero-focus-card.is-updating [data-hero-metric],
.home-page .hero-focus-card.is-updating [data-hero-compare],
.home-page .hero-focus-card.is-updating [data-hero-dashboard-title],
.home-page .hero-cinematic .advice-card.is-updating [data-hero-advice] {
  animation: hero-value-swap .42s cubic-bezier(.2, .7, .2, 1) both;
}
.home-page .hero-detail-panel:not([hidden]) .metric {
  animation: hero-detail-reveal .34s cubic-bezier(.2, .7, .2, 1) both;
}
.home-page .hero-detail-panel:not([hidden]) .metric:nth-child(2) { animation-delay: .03s; }
.home-page .hero-detail-panel:not([hidden]) .metric:nth-child(3) { animation-delay: .06s; }
.home-page .hero-detail-panel:not([hidden]) .metric:nth-child(4) { animation-delay: .09s; }
.home-page .hero-detail-panel:not([hidden]) .metric:nth-child(5) { animation-delay: .12s; }
.home-page .hero-detail-panel:not([hidden]) .metric:nth-child(6) { animation-delay: .15s; }
.home-page .hero-detail-panel:not([hidden]) .metric:nth-child(7) { animation-delay: .18s; }
.home-page .hero-detail-panel:not([hidden]) .metric:nth-child(8) { animation-delay: .21s; }

@keyframes hero-background-drift {
  from { transform: scale(1.02) translate3d(-.55%, .1%, 0); filter: brightness(.96); }
  to { transform: scale(1.095) translate3d(.75%, -.45%, 0); filter: brightness(1.06); }
}
@keyframes hero-orbit-breathe {
  0%, 100% { opacity: .46; transform: scale(.985); box-shadow: 0 0 24px rgba(223, 240, 106, .16), inset 0 0 18px rgba(255, 247, 232, .08); }
  50% { opacity: .92; transform: scale(1.015); box-shadow: 0 0 58px rgba(223, 240, 106, .34), inset 0 0 38px rgba(255, 247, 232, .16); }
}
@keyframes hero-orbit-spark {
  from { transform: rotate(0deg) translateX(var(--orbit-radius)); }
  to { transform: rotate(360deg) translateX(var(--orbit-radius)); }
}
@keyframes hero-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes hero-live-pulse {
  0%, 100% { opacity: .72; transform: scale(.9); box-shadow: 0 0 0 4px rgba(223, 240, 106, .1); }
  50% { opacity: 1; transform: scale(1.16); box-shadow: 0 0 0 8px rgba(223, 240, 106, .18); }
}
@keyframes hero-content-reveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-metric-reveal {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hero-value-swap {
  0% { opacity: .38; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes hero-detail-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .home-page .hero-cinematic::before { background-position: 58% center; }
  .home-page .hero-orbit-glow { --orbit-radius: 300px; right: -15%; width: 600px; height: 600px; }
}
@media (max-width: 820px) {
  .home-page .hero-cinematic::before { background-position: 64% center; }
  .home-page .hero-cinematic::after { background: rgba(1, 8, 6, .48); }
  .home-page .hero-orbit-glow { --orbit-radius: 310px; top: 730px; right: -15%; width: 620px; height: 620px; }
}
@media (max-width: 520px) {
  .home-page .hero-cinematic::before { background-position: 62% center; }
  .home-page .hero-orbit-glow { --orbit-radius: 280px; top: 690px; right: -48%; width: 560px; height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-cinematic::before,
  .home-page .hero-orbit-glow,
  .home-page .hero-copy-panel > *,
  .home-page .hero-cinematic .visual-top,
  .home-page .hero-cinematic .hero-focus-card,
  .home-page .hero-cinematic .advice-card,
  .home-page .hero-focus-metrics article,
  .home-page .hero-focus-card.is-updating [data-hero-metric],
  .home-page .hero-focus-card.is-updating [data-hero-compare],
  .home-page .hero-focus-card.is-updating [data-hero-dashboard-title],
  .home-page .hero-cinematic .advice-card.is-updating [data-hero-advice],
  .home-page .hero-detail-panel:not([hidden]) .metric {
    animation: none !important;
    transform: none !important;
  }
  .home-page .hero-copy-panel > *,
  .home-page .hero-cinematic .visual-top,
  .home-page .hero-cinematic .hero-focus-card,
  .home-page .hero-cinematic .advice-card,
  .home-page .hero-focus-metrics article { opacity: 1; }
  .home-page .hero-orbit-glow::after { display: none; animation: none !important; }
  .home-page.hero-motion-ready .hero-cinematic .hero-focus-card,
  .home-page .hero-cinematic .live-dot::before { animation: none !important; transform: none !important; }
}

/* 首页默认展示十二项完整经营指标 */
.home-page .hero-cinematic .hero-focus-card {
  width: 82%;
  margin: 86px 0 0 6%;
  padding: 17px;
  border-radius: 22px;
}
.home-page .hero-all-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.home-page .hero-all-metrics .metric {
  min-width: 0;
  min-height: 68px;
  padding: 8px 9px;
  color: #fff7e8;
  border: 1px solid rgba(255, 247, 232, .05);
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  opacity: 0;
  transform: translateY(9px);
  animation: hero-detail-reveal .42s cubic-bezier(.2, .7, .2, 1) forwards;
}
.home-page .hero-all-metrics .metric span,
.home-page .hero-all-metrics .metric small {
  display: block;
  overflow: hidden;
  color: rgba(255, 247, 232, .58);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.home-page .hero-all-metrics .metric span { font-size: 9px; }
.home-page .hero-all-metrics .metric b {
  display: block;
  margin: 4px 0;
  overflow: hidden;
  color: #f3f8dd;
  font-size: 17px;
  line-height: 1.05;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.home-page .hero-all-metrics .metric small { font-size: 8px; }
.home-page .hero-all-metrics .metric:nth-child(1) { animation-delay: .48s; }
.home-page .hero-all-metrics .metric:nth-child(2) { animation-delay: .52s; }
.home-page .hero-all-metrics .metric:nth-child(3) { animation-delay: .56s; }
.home-page .hero-all-metrics .metric:nth-child(4) { animation-delay: .6s; }
.home-page .hero-all-metrics .metric:nth-child(5) { animation-delay: .64s; }
.home-page .hero-all-metrics .metric:nth-child(6) { animation-delay: .68s; }
.home-page .hero-all-metrics .metric:nth-child(7) { animation-delay: .72s; }
.home-page .hero-all-metrics .metric:nth-child(8) { animation-delay: .76s; }
.home-page .hero-all-metrics .metric:nth-child(9) { animation-delay: .8s; }
.home-page .hero-all-metrics .metric:nth-child(10) { animation-delay: .84s; }
.home-page .hero-all-metrics .metric:nth-child(11) { animation-delay: .88s; }
.home-page .hero-all-metrics .metric:nth-child(12) { animation-delay: .92s; }
.home-page .hero-cinematic .advice-card { width: 82%; margin-left: 6%; padding: 14px 16px; }

@media (max-width: 1080px) {
  .home-page .hero-cinematic .hero-focus-card,
  .home-page .hero-cinematic .advice-card { width: 92%; margin-right: auto; margin-left: auto; }
}
@media (max-width: 620px) {
  .home-page .hero-cinematic .hero-focus-card,
  .home-page .hero-cinematic .advice-card { width: 100%; margin-right: 0; margin-left: 0; }
  .home-page .hero-all-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .hero-all-metrics .metric { min-height: 84px; padding: 12px; }
  .home-page .hero-all-metrics .metric span { font-size: 11px; }
  .home-page .hero-all-metrics .metric b { font-size: 20px; }
  .home-page .hero-all-metrics .metric small { font-size: 9px; }
  .home-page .hero-cinematic .hero-visual { min-height: 960px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-all-metrics .metric {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* 首页入口图区：与深绿场馆首屏保持同一视觉语言 */
.home-page main > .home-tool-section {
  position: relative;
  overflow: hidden;
  color: #f8f4e7;
  background: #0a211a;
}
.home-page main > .home-tool-section::before {
  position: absolute;
  inset: 0;
  background: url("../images/hero-studio-spotlight.png") center 46% / cover no-repeat;
  opacity: .12;
  content: "";
}
.home-tool-layout { position: relative; z-index: 1; grid-template-columns: minmax(360px, .86fr) minmax(560px, 1.14fr); gap: 82px; }
.home-tool-section .split-copy .eyebrow { color: #dff06a; }
.home-tool-section .split-copy .eyebrow::before { background: #dff06a; }
.home-tool-section .split-copy h2 { max-width: 650px; color: #f8f4e7; font-size: clamp(44px, 5vw, 66px); letter-spacing: -.05em; }
.home-tool-section .split-copy > p:not(.eyebrow) { max-width: 590px; color: rgba(248,244,231,.64); line-height: 1.8; }
.home-tool-section .check-list { color: rgba(248,244,231,.82); }
.home-tool-section .check-list li::before { color: #dff06a; }
.home-tool-section .button.secondary { margin-top: 10px; border-color: rgba(223,240,106,.65); color: #eff9a4; background: rgba(4,28,21,.58); }
.home-tool-section .button.secondary:hover { color: #112f25; background: #dff06a; }
.home-tool-promo-stack { padding: 18px 0; gap: 18px; }
.home-tool-promo-stack img { width: 100%; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; box-shadow: 0 24px 56px rgba(0,0,0,.28); transition: transform .24s ease, border-color .24s ease; }
.home-tool-promo-stack img:hover { border-color: rgba(223,240,106,.55); transform: translateY(-6px); }
.home-tool-promo-stack img:nth-child(2) { border-color: rgba(223,240,106,.36); transform: translateY(-20px); }
.home-tool-promo-stack img:nth-child(2):hover { transform: translateY(-26px); }

.home-page main > .home-audience-section { color: #f8f4e7; background: #06150f; }
.home-audience-head { align-items: end; }
.home-audience-head .eyebrow { color: #dff06a; }
.home-audience-head .eyebrow::before { background: #dff06a; }
.home-audience-head h2 { max-width: 760px; color: #f8f4e7; font-size: clamp(44px, 5vw, 66px); letter-spacing: -.05em; }
.home-audience-head > p { color: rgba(248,244,231,.58); line-height: 1.8; }
.home-audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.home-audience-card { position: relative; min-height: 510px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; color: #fff; background: #102b22; box-shadow: 0 28px 65px rgba(0,0,0,.28); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.home-audience-card:hover, .home-audience-card:focus-visible { border-color: rgba(223,240,106,.62); box-shadow: 0 34px 80px rgba(0,0,0,.38); outline: none; transform: translateY(-7px); }
.home-audience-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .3s ease; }
.home-audience-card:hover > img, .home-audience-card:focus-visible > img { filter: saturate(1.08); transform: scale(1.035); }
.home-audience-number { position: absolute; top: 18px; left: 18px; padding: 8px 11px; border: 1px solid rgba(223,240,106,.5); border-radius: 999px; color: #eff9a4; background: rgba(3,25,18,.72); font-size: 9px; font-weight: 850; letter-spacing: .12em; backdrop-filter: blur(10px); }
.home-audience-copy { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(3,24,18,.88); backdrop-filter: blur(14px); }
.home-audience-copy h3 { margin: 0 0 8px; color: #fff8e9; font-size: 27px; }
.home-audience-copy p { min-height: 52px; margin: 0; color: rgba(255,248,233,.68); font-size: 13px; line-height: 1.7; }
.home-audience-copy b { display: block; margin-top: 15px; color: #dff06a; font-size: 10px; letter-spacing: .06em; }

.home-page.home-section-motion-ready .home-tool-section[data-home-reveal] .split-copy,
.home-page.home-section-motion-ready .home-tool-section[data-home-reveal] .home-tool-promo-stack,
.home-page.home-section-motion-ready .home-audience-section[data-home-reveal] .section-head,
.home-page.home-section-motion-ready .home-audience-section[data-home-reveal] .home-audience-card { opacity: 0; transform: translateY(24px); transition: opacity .58s ease, transform .58s cubic-bezier(.2,.7,.2,1); }
.home-page.home-section-motion-ready .home-tool-section[data-home-reveal].is-visible .split-copy,
.home-page.home-section-motion-ready .home-tool-section[data-home-reveal].is-visible .home-tool-promo-stack,
.home-page.home-section-motion-ready .home-audience-section[data-home-reveal].is-visible .section-head,
.home-page.home-section-motion-ready .home-audience-section[data-home-reveal].is-visible .home-audience-card { opacity: 1; transform: none; }
.home-page.home-section-motion-ready .home-tool-section[data-home-reveal].is-visible .home-tool-promo-stack,
.home-page.home-section-motion-ready .home-audience-section[data-home-reveal].is-visible .home-audience-card:nth-child(2) { transition-delay: .1s; }
.home-page.home-section-motion-ready .home-audience-section[data-home-reveal].is-visible .home-audience-card:nth-child(3) { transition-delay: .18s; }

@media (max-width: 980px) {
  .home-tool-layout { grid-template-columns: 1fr; gap: 48px; }
  .home-tool-promo-stack { max-width: 720px; }
  .home-audience-card { min-height: 430px; }
}
@media (max-width: 760px) {
  .home-audience-grid { grid-template-columns: 1fr; }
  .home-audience-card { min-height: 470px; }
}
@media (max-width: 620px) {
  .home-tool-section, .home-audience-section { padding: 76px 0; }
  .home-tool-section .split-copy h2, .home-audience-head h2 { font-size: 40px; line-height: 1.08; }
  .home-tool-promo-stack { padding: 8px 0; gap: 7px; }
  .home-tool-promo-stack img { border-radius: 14px; }
  .home-tool-promo-stack img:nth-child(2), .home-tool-promo-stack img:nth-child(2):hover { transform: translateY(-8px); }
  .home-audience-card { min-height: 440px; border-radius: 24px; }
  .home-audience-copy { padding: 18px; }
  .home-audience-copy p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page.home-section-motion-ready .home-tool-section[data-home-reveal] .split-copy,
  .home-page.home-section-motion-ready .home-tool-section[data-home-reveal] .home-tool-promo-stack,
  .home-page.home-section-motion-ready .home-audience-section[data-home-reveal] .section-head,
  .home-page.home-section-motion-ready .home-audience-section[data-home-reveal] .home-audience-card,
  .home-tool-promo-stack img,
  .home-audience-card,
  .home-audience-card > img { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* 官网落地页转化优化：清晰对象、四类入口与六项核心能力 */
.home-page .hero-copy-panel h1 { max-width: 650px; }
.home-page .hero-copy-panel .hero-copy { max-width: 610px; }
.home-page .hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: -4px 0 0;
}
.home-page .hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7e8;
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(223, 240, 106, .45);
  text-underline-offset: 5px;
}
.home-page .hero-links a:hover { color: #dff06a; text-decoration-color: #dff06a; }
.home-page .hero-links span { color: #dff06a; transition: transform .2s ease; }
.home-page .hero-links a:hover span { transform: translateX(3px); }
.home-page .hero-copy-panel .hero-proof { margin-top: 26px; }

.capability-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8faf7 0%, #eef4ed 100%) !important;
}
.capability-section::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(15, 92, 69, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(15, 92, 69, .025), 0 0 0 140px rgba(15, 92, 69, .018);
  pointer-events: none;
}
.capability-head { position: relative; z-index: 1; }
.capability-head .eyebrow { margin-bottom: 14px; }
.capability-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.capability-card {
  min-width: 0;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(15, 92, 69, .12);
  border-radius: 26px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 46px rgba(16, 55, 43, .07);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.capability-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 92, 69, .28);
  box-shadow: 0 22px 54px rgba(16, 55, 43, .12);
}
.capability-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 15px;
  color: #fff;
  background: #0f5c45;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.04em;
  box-shadow: 0 10px 22px rgba(15, 92, 69, .2);
}
.capability-kicker {
  margin-bottom: 7px;
  color: #6d806f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.capability-card h3 { margin-bottom: 10px; font-size: 25px; }
.capability-card > p:not(.capability-kicker) { margin-bottom: 22px; color: var(--muted); line-height: 1.75; }
.capability-card > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}
.capability-card > a span { transition: transform .2s ease; }
.capability-card > a:hover span { transform: translateX(3px); }
.capability-card-featured {
  color: #f8faed;
  border-color: rgba(223, 240, 106, .34);
  background: linear-gradient(145deg, #0b5c45 0%, #063f31 100%);
  box-shadow: 0 22px 54px rgba(8, 72, 53, .22);
}
.capability-card-featured .capability-icon { color: #123c2e; background: #dff06a; box-shadow: none; }
.capability-card-featured .capability-kicker,
.capability-card-featured > p:not(.capability-kicker) { color: rgba(248, 250, 237, .72); }
.capability-card-featured > a { color: #dff06a; }

@media (max-width: 900px) {
  .store-course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .course-workspace-tabs { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .course-workspace-tabs button { flex: 0 0 auto; white-space: nowrap; }
  .store-course-toolbar { display: grid; gap: 16px; padding: 18px; }
  .store-course-toolbar .portal-primary-button { width: 100%; }
  .store-course-filter { grid-template-columns: 1fr; padding: 16px 18px; }
  .store-course-grid { grid-template-columns: 1fr; padding: 18px; }
  .store-course-item { min-height: 0; }
  .store-course-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .store-course-image-editor { grid-template-columns: 1fr; }
  .home-page .hero-copy-panel .eyebrow { max-width: 330px; margin-bottom: 18px; font-size: 12px; line-height: 1.6; }
  .home-page .hero-copy-panel h1 { font-size: clamp(39px, 11.5vw, 47px); line-height: 1.16; }
  .home-page .hero-copy-panel .hero-actions { margin-top: 24px; }
  .home-page .hero-links { justify-content: space-between; gap: 12px; margin-top: 2px; }
  .home-page .hero-links a { font-size: 13px; }
  .home-page .hero-copy-panel .hero-proof { margin-top: 22px; }
  .capability-section { padding-block: 72px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 0; padding: 24px; }
  .capability-icon { margin-bottom: 20px; }
}

/* 功能页：普拉提场景与轻量动效 */
.features-page { background: #f7f8f4; }
.features-page .features-hero {
  padding: 70px 0 74px;
  text-align: left;
  background: #edf1e9;
}
.features-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  gap: 64px;
  align-items: center;
}
.features-hero-copy { position: relative; z-index: 2; }
.features-hero-copy .eyebrow { margin-bottom: 18px; }
.features-page .features-hero h1 {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(52px, 5.2vw, 76px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.features-page .features-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #68766e;
  font-size: 18px;
  line-height: 1.85;
}
.features-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.features-hero-actions .button { min-width: 166px; }
.features-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(15, 92, 69, .14);
  list-style: none;
}
.features-hero-proof li { min-width: 0; }
.features-hero-proof strong { display: block; color: var(--green); font-size: 17px; }
.features-hero-proof span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.features-hero-visual {
  position: relative;
  min-height: 540px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 92, 69, .13);
  border-radius: 38px;
  background: #d9ddd5;
  box-shadow: 0 30px 70px rgba(40, 55, 47, .18);
}
.features-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: block;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.025);
  animation: features-image-breathe 10s ease-in-out infinite alternate;
}
.features-hero-visual figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 18px;
  color: #fff;
  background: rgba(8, 44, 33, .8);
  backdrop-filter: blur(12px);
}
.features-hero-visual figcaption span { color: rgba(255, 255, 255, .72); font-size: 12px; }
.features-hero-visual figcaption strong { font-size: 13px; letter-spacing: .04em; }
.features-page .feature-map-section { padding-top: 86px; }
.features-page .capability-tier { transition: transform .28s ease, box-shadow .28s ease; }
.features-page .capability-tier:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(20, 55, 44, .13); }
.features-page .feature-row { transition: border-color .25s ease, transform .25s ease; }
.features-page .feature-row:hover { border-color: rgba(15, 92, 69, .34); transform: translateX(4px); }
.features-page.features-motion-ready [data-feature-reveal] {
  opacity: 0;
  transform: translateY(24px);
}
.features-page.features-motion-ready [data-feature-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .72s cubic-bezier(.2, .7, .2, 1), transform .72s cubic-bezier(.2, .7, .2, 1);
}
.features-page.features-motion-ready .features-hero-visual[data-feature-reveal] { transition-delay: .12s; }

@keyframes features-image-breathe {
  from { transform: scale(1.025) translate3d(-.4%, 0, 0); }
  to { transform: scale(1.07) translate3d(.5%, -.45%, 0); }
}

@media (max-width: 1040px) {
  .features-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 38px; }
  .features-page .features-hero h1 { font-size: 56px; }
  .features-hero-visual, .features-hero-visual img { min-height: 480px; }
}

@media (max-width: 820px) {
  .features-page .features-hero { padding: 54px 0 62px; }
  .features-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .features-page .features-hero h1 { max-width: 680px; font-size: clamp(48px, 8vw, 62px); }
  .features-page .features-hero-copy > p:not(.eyebrow) { max-width: 680px; }
  .features-hero-visual, .features-hero-visual img { min-height: 430px; }
  .features-hero-visual { border-radius: 32px; }
}

@media (max-width: 620px) {
  .features-page .features-hero { padding: 36px 0 48px; }
  .features-hero-grid { gap: 30px; }
  .features-hero-copy .eyebrow { margin-bottom: 14px; font-size: 12px; line-height: 1.55; }
  .features-page .features-hero h1 { margin-bottom: 18px; font-size: clamp(39px, 11vw, 47px); line-height: 1.13; }
  .features-page .features-hero-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.75; }
  .features-hero-actions { margin: 24px 0 22px; }
  .features-hero-actions .button { width: 100%; }
  .features-hero-proof { gap: 8px; padding-top: 16px; }
  .features-hero-proof strong { font-size: 15px; }
  .features-hero-proof span { font-size: 10px; }
  .features-hero-visual, .features-hero-visual img { min-height: 310px; }
  .features-hero-visual { border-radius: 26px; }
  .features-hero-visual figcaption { left: 12px; right: 12px; bottom: 12px; display: grid; gap: 4px; padding: 12px 14px; border-radius: 15px; }
  .features-page .feature-map-section { padding-top: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .features-hero-visual img { animation: none !important; transform: none !important; }
  .features-page.features-motion-ready [data-feature-reveal],
  .features-page.features-motion-ready [data-feature-reveal].is-visible { opacity: 1; transform: none; transition: none !important; }
  .features-page .capability-tier,
  .features-page .feature-row { transition: none; }
  .features-page .capability-tier:hover,
  .features-page .feature-row:hover { transform: none; }
}

/* 首页经营闭环与能力区：延续首屏暗色场馆指挥台 */
.home-dark-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f7f5e9;
  background-color: #07130f;
  background-image: url("../images/hero-studio-spotlight.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}
.home-dark-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(3, 15, 11, .84);
}
.home-page .home-dark-story .workflow-section,
.home-page .home-dark-story .capability-section { background: transparent !important; }
.home-page .home-dark-story .workflow-section,
.home-page .home-dark-story .capability-section { scroll-margin-top: 72px; }
.home-page .home-dark-story .capability-section::before { display: none; }
.home-page .home-dark-story .workflow-section { padding: 104px 0 92px; }
.home-page .home-dark-story .capability-section { padding: 106px 0 118px; }
.home-page .home-dark-story .section-head { align-items: end; margin-bottom: 42px; }
.home-page .home-dark-story .section-head h2 {
  max-width: 760px;
  color: #f8f4e7;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.home-page .home-dark-story .section-head > p {
  max-width: 430px;
  color: rgba(248, 244, 231, .64);
  font-size: 16px;
  line-height: 1.8;
}
.home-page .home-dark-story .eyebrow {
  color: #dff06a;
  font-size: 12px;
  letter-spacing: .14em;
}
.home-page .home-dark-story .eyebrow::before { background: #dff06a; }
.workflow-console {
  overflow: hidden;
  border: 1px solid rgba(223, 240, 106, .3);
  border-radius: 30px;
  background: rgba(4, 34, 25, .78);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}
.workflow-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
}
.workflow-console-top span,
.workflow-console-top small { display: block; }
.workflow-console-top span { color: #fff8e9; font-size: 16px; font-weight: 800; }
.workflow-console-top small { margin-top: 3px; color: rgba(255, 248, 233, .48); font-size: 11px; }
.workflow-console-top b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #edf6bb;
  font-size: 12px;
}
.workflow-console-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dff06a;
  box-shadow: 0 0 14px rgba(223, 240, 106, .76);
}
.home-page .home-dark-story .workflow {
  gap: 1px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}
.home-page .home-dark-story .workflow li {
  min-height: 220px;
  padding: 42px 30px;
  background: rgba(3, 24, 18, .72);
  transition: background-color .24s ease, transform .24s ease;
}
.home-page .home-dark-story .workflow li:hover {
  z-index: 1;
  background: rgba(13, 72, 53, .66);
  transform: translateY(-4px);
}
.home-page .home-dark-story .workflow li > span { color: #dff06a; }
.home-page .home-dark-story .workflow h3 { color: #fff8e9; font-size: 26px; }
.home-page .home-dark-story .workflow p { color: rgba(255, 248, 233, .6); line-height: 1.75; }
.home-page .home-dark-story .trust-strip {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(2, 13, 10, .76);
  backdrop-filter: blur(12px);
}
.home-page .home-dark-story .trust-list li { color: #f7f4e7; }
.home-page .home-dark-story .trust-list small { color: rgba(247, 244, 231, .5); }
.home-page .home-dark-story .trust-list li + li { border-color: rgba(255, 255, 255, .12); }
.home-page .home-dark-story .capability-grid { gap: 14px; }
.home-page .home-dark-story .capability-card {
  min-height: 300px;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(7, 35, 27, .78);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
}
.home-page .home-dark-story .capability-card:hover {
  border-color: rgba(223, 240, 106, .38);
  background: rgba(12, 58, 44, .86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .3);
}
.home-page .home-dark-story .capability-icon {
  width: auto;
  min-width: 44px;
  height: 34px;
  justify-self: start;
  padding: 0 12px;
  border: 1px solid rgba(223, 240, 106, .3);
  border-radius: 999px;
  color: #dff06a;
  background: rgba(223, 240, 106, .08);
  box-shadow: none;
  font-size: 11px;
  letter-spacing: .1em;
}
.home-page .home-dark-story .capability-kicker { color: rgba(223, 240, 106, .72); }
.home-page .home-dark-story .capability-card h3 { color: #fff8e9; }
.home-page .home-dark-story .capability-card > p:not(.capability-kicker) { color: rgba(255, 248, 233, .58); }
.home-page .home-dark-story .capability-card > a { color: #dff06a; }
.home-page .home-dark-story .capability-card-featured {
  border-color: rgba(223, 240, 106, .48);
  background: rgba(13, 92, 67, .92);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .3);
}
.home-page .home-dark-story .capability-card-featured .capability-icon {
  color: #163b30;
  background: #dff06a;
}
.home-page.home-section-motion-ready [data-home-reveal] .section-head,
.home-page.home-section-motion-ready [data-home-reveal] .workflow-console,
.home-page.home-section-motion-ready [data-home-reveal] .capability-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .58s ease, transform .58s cubic-bezier(.2, .7, .2, 1);
}
.home-page.home-section-motion-ready [data-home-reveal].is-visible .section-head,
.home-page.home-section-motion-ready [data-home-reveal].is-visible .workflow-console,
.home-page.home-section-motion-ready [data-home-reveal].is-visible .capability-card {
  opacity: 1;
  transform: none;
}
.home-page.home-section-motion-ready [data-home-reveal].is-visible .workflow-console { transition-delay: .12s; }
.home-page.home-section-motion-ready [data-home-reveal].is-visible .capability-card:nth-child(2) { transition-delay: .06s; }
.home-page.home-section-motion-ready [data-home-reveal].is-visible .capability-card:nth-child(3) { transition-delay: .12s; }
.home-page.home-section-motion-ready [data-home-reveal].is-visible .capability-card:nth-child(4) { transition-delay: .18s; }
.home-page.home-section-motion-ready [data-home-reveal].is-visible .capability-card:nth-child(5) { transition-delay: .24s; }
.home-page.home-section-motion-ready [data-home-reveal].is-visible .capability-card:nth-child(6) { transition-delay: .3s; }

/* Portal analytics · fluid glass continuity */
.portal-body[data-portal-view="finance"] {
  --analytics-canvas: #03110e;
  --analytics-canvas-2: #061d18;
  --analytics-surface: rgba(8, 31, 26, .78);
  --analytics-surface-strong: rgba(7, 25, 21, .92);
  --analytics-border: rgba(189, 241, 224, .17);
  --analytics-border-strong: rgba(208, 255, 240, .29);
  --analytics-text: #f3fbf8;
  --analytics-muted: #91aaa2;
  --analytics-cyan: #32e5df;
  --analytics-lime: #c9ed55;
  color: var(--analytics-text);
  background:
    radial-gradient(circle at 66% 10%, rgba(39, 139, 117, .22), transparent 34%),
    radial-gradient(circle at 90% 44%, rgba(0, 231, 210, .075), transparent 30%),
    linear-gradient(145deg, var(--analytics-canvas), var(--analytics-canvas-2));
}
.portal-body[data-portal-view="finance"]::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(215, 255, 243, .14) .55px, transparent .7px);
  background-size: 24px 24px;
  opacity: .075;
  content: "";
}
.portal-body[data-portal-view="finance"] .portal-sidebar {
  border-right: 1px solid rgba(193, 176, 143, .42);
  background:
    radial-gradient(circle at 82% 8%, rgba(199, 176, 126, .2), transparent 34%),
    linear-gradient(180deg, #fbf7ee 0%, #f6efe4 52%, #f2eadc 100%);
  box-shadow: 18px 0 44px rgba(44, 55, 42, .12);
}
.portal-body[data-portal-view="finance"] .portal-sidebar-head { border-bottom-color: rgba(188, 172, 137, .34); }
.portal-body[data-portal-view="finance"] .portal-store-card { border-color: rgba(184, 147, 76, .48); background-color: rgba(255,255,255,.72); box-shadow: 0 18px 42px rgba(88, 78, 54, .14), inset 0 1px 0 rgba(255,255,255,.84); }
.portal-body[data-portal-view="finance"] .portal-workspace { background: transparent; }
.portal-body[data-portal-view="finance"] .portal-main { min-height: 100vh; padding-bottom: 56px; }
.portal-body[data-portal-view="finance"] .portal-main > .container { width: min(1420px, calc(100% - 54px)); }
.portal-body[data-portal-view="finance"] .portal-mobile-header { border-bottom-color: rgba(205,239,228,.12); background: rgba(3,24,20,.92); }
.portal-body[data-portal-view="finance"] .portal-mobile-header .brand { color: #fff; }
.portal-body[data-portal-view="finance"] .portal-mobile-header .brand small { color: #829c94; }
.portal-body[data-portal-view="finance"] .portal-mobile-header button { color: var(--analytics-lime); border-color: rgba(201,237,85,.24); background: rgba(255,255,255,.04); }
.portal-body[data-portal-view="finance"] .analytics-view {
  position: relative;
  isolation: isolate;
  gap: 20px;
  padding: 20px 0 24px;
}
.portal-body[data-portal-view="finance"] .analytics-view > *:not(.analytics-particle-field):not(.analytics-fluid-scene) { position: relative; z-index: 1; }
.analytics-particle-field {
  position: absolute;
  z-index: 0;
  top: -20px;
  left: -2%;
  width: 104%;
  height: 720px;
  pointer-events: none;
  opacity: .72;
  filter: saturate(118%);
}
.portal-body[data-portal-view="finance"] .analytics-header {
  min-height: 120px;
  align-items: center;
  padding: 18px 22px 20px;
  border-bottom: 1px solid rgba(190,229,217,.14);
}
.portal-body[data-portal-view="finance"] .analytics-header .panel-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--analytics-lime);
  font-size: 12px;
  letter-spacing: .08em;
}
.portal-body[data-portal-view="finance"] .analytics-header .panel-label::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}
.portal-body[data-portal-view="finance"] .analytics-header h2 { margin-top: 9px; color: #fff; font-size: clamp(40px, 5vw, 62px); font-weight: 620; letter-spacing: -.06em; }
.portal-body[data-portal-view="finance"] .analytics-header-meta { align-items: center; gap: 10px; color: var(--analytics-muted); }
.portal-body[data-portal-view="finance"] .analytics-header-meta span {
  padding: 9px 12px;
  border: 1px solid rgba(198,237,225,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
}
.portal-body[data-portal-view="finance"] .analytics-header-meta b { color: var(--analytics-lime); }
.portal-body[data-portal-view="finance"] .analytics-controls {
  padding: 9px 11px;
  border-color: var(--analytics-border);
  border-radius: 18px;
  background: rgba(7, 29, 24, .82);
  box-shadow: 0 22px 60px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(18px) saturate(118%);
}
.portal-body[data-portal-view="finance"] .analytics-scope-tabs { gap: 4px; }
.portal-body[data-portal-view="finance"] .analytics-scope-tabs button { color: #9eb3ac; border: 1px solid transparent; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.portal-body[data-portal-view="finance"] .analytics-scope-tabs button:hover { color: #fff; border-color: rgba(201,237,85,.16); background: rgba(255,255,255,.04); transform: translateY(-1px); }
.portal-body[data-portal-view="finance"] .analytics-scope-tabs button:focus-visible { outline: 2px solid var(--analytics-lime); outline-offset: 2px; }
.portal-body[data-portal-view="finance"] .analytics-scope-tabs button.is-active { color: #092018; border-color: var(--analytics-lime); background: var(--analytics-lime); box-shadow: 0 9px 28px rgba(201,237,85,.16); }
.portal-body[data-portal-view="finance"] .analytics-period-controls select,
.portal-body[data-portal-view="finance"] .analytics-date-range {
  color: #e6f3ef;
  border-color: rgba(198,237,225,.15);
  background: rgba(255,255,255,.045);
}
.portal-body[data-portal-view="finance"] .analytics-period-controls select { color-scheme: dark; }
.portal-body[data-portal-view="finance"] .analytics-date-range { color: #9eb2ac; }
.portal-body[data-portal-view="finance"] .analytics-export { color: #092018; background: var(--analytics-lime); box-shadow: 0 10px 30px rgba(201,237,85,.13); }
.portal-body[data-portal-view="finance"] .analytics-export:hover,
.portal-body[data-portal-view="finance"] .analytics-export:focus-visible { background: #ddf778; outline: 0; transform: translateY(-1px); }
.portal-body[data-portal-view="finance"] .analytics-locked { color: #ffe2d9; border-color: rgba(255,150,121,.28); background: rgba(107,37,27,.3); }
.portal-body[data-portal-view="finance"] .analytics-locked p { color: #d4aea2; }
.portal-body[data-portal-view="finance"] .analytics-dashboard,
.portal-body[data-portal-view="finance"] .analytics-standard-dashboard,
.portal-body[data-portal-view="finance"] .store-finance-dashboard { gap: 20px; }
.portal-body[data-portal-view="finance"] .analytics-result-card,
.portal-body[data-portal-view="finance"] .analytics-quick-metrics,
.portal-body[data-portal-view="finance"] .analytics-panel,
.portal-body[data-portal-view="finance"] .analytics-table-panel {
  color: var(--analytics-text);
  border-color: var(--analytics-border);
  background: linear-gradient(145deg, rgba(13, 45, 38, .78), rgba(5, 24, 20, .9));
  box-shadow: 0 24px 60px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(18px) saturate(115%);
}
.portal-body[data-portal-view="finance"] .analytics-result-card { min-height: 205px; border-color: var(--analytics-border-strong); }
.portal-body[data-portal-view="finance"] .analytics-result-card::before {
  position: absolute;
  inset: -55% -16% auto 36%;
  height: 210px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(50,229,223,.23), rgba(50,229,223,0) 70%);
  content: "";
}
.portal-body[data-portal-view="finance"] .analytics-result-card span,
.portal-body[data-portal-view="finance"] .analytics-quick-metrics span { color: #b7cbc5; }
.portal-body[data-portal-view="finance"] .analytics-result-card strong { color: #fff; font-weight: 590; text-shadow: 0 2px 18px rgba(0,0,0,.26); }
.portal-body[data-portal-view="finance"] .analytics-result-card small,
.portal-body[data-portal-view="finance"] .analytics-quick-metrics small { color: var(--analytics-muted); }
.portal-body[data-portal-view="finance"] .analytics-result-card .analytics-change { border-left-color: rgba(204,239,228,.14); }
.portal-body[data-portal-view="finance"] .analytics-result-card .analytics-change strong { color: var(--analytics-lime); }
.portal-body[data-portal-view="finance"] .analytics-progress { background: rgba(204,239,228,.09); }
.portal-body[data-portal-view="finance"] .analytics-progress i { background: linear-gradient(90deg, var(--analytics-cyan), var(--analytics-lime)); box-shadow: 0 0 16px rgba(50,229,223,.34); }
.portal-body[data-portal-view="finance"] .analytics-quick-metrics { min-height: 205px; padding: 0; overflow: hidden; }
.portal-body[data-portal-view="finance"] .analytics-quick-metrics > div { padding: 26px 24px; border-right-color: rgba(204,239,228,.13); }
.portal-body[data-portal-view="finance"] .analytics-quick-metrics strong { color: #fff; font-size: clamp(27px, 3vw, 38px); font-weight: 560; }
.portal-body[data-portal-view="finance"] .analytics-insight {
  min-height: 70px;
  color: #edf8f4;
  border-color: rgba(201,237,85,.24);
  background: linear-gradient(90deg, rgba(26,83,66,.76), rgba(7,39,32,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.portal-body[data-portal-view="finance"] .analytics-insight b,
.portal-body[data-portal-view="finance"] .analytics-insight em { color: var(--analytics-lime); }
.portal-body[data-portal-view="finance"] .analytics-insight span { color: #c6d8d2; }
.portal-body[data-portal-view="finance"] .analytics-panel h3,
.portal-body[data-portal-view="finance"] .analytics-table-panel h3 { color: #f1faf7; }
.portal-body[data-portal-view="finance"] .analytics-panel header p,
.portal-body[data-portal-view="finance"] .analytics-table-panel header p { color: var(--analytics-muted); }
.portal-body[data-portal-view="finance"] .analytics-panel header > span,
.portal-body[data-portal-view="finance"] .analytics-table-panel header > a { color: var(--analytics-lime); }
.portal-body[data-portal-view="finance"] .analytics-ranking strong,
.portal-body[data-portal-view="finance"] .analytics-structure strong { color: #dbeae5; }
.portal-body[data-portal-view="finance"] .analytics-ranking article > div,
.portal-body[data-portal-view="finance"] .analytics-structure article > div { background: rgba(204,239,228,.09); }
.portal-body[data-portal-view="finance"] .analytics-ranking article i { background: linear-gradient(90deg, var(--analytics-cyan), var(--analytics-lime)); box-shadow: 0 0 12px rgba(50,229,223,.24); }
.portal-body[data-portal-view="finance"] .analytics-ranking article > span,
.portal-body[data-portal-view="finance"] .analytics-structure article > span { color: #edf7f4; }
.portal-body[data-portal-view="finance"] .analytics-structure-legend { color: var(--analytics-muted); }
.portal-body[data-portal-view="finance"] .analytics-structure-legend span::before { background: var(--analytics-cyan); }
.portal-body[data-portal-view="finance"] .analytics-structure-legend span:nth-child(2)::before { background: #58b98b; }
.portal-body[data-portal-view="finance"] .analytics-structure-legend span:nth-child(3)::before { background: var(--analytics-lime); }
.portal-body[data-portal-view="finance"] .analytics-structure article i { background: var(--analytics-cyan); }
.portal-body[data-portal-view="finance"] .analytics-structure article i[data-type="renewal"] { background: #58b98b; }
.portal-body[data-portal-view="finance"] .analytics-structure article i[data-type="private"] { color: #092018; background: var(--analytics-lime); }
.portal-body[data-portal-view="finance"] .analytics-table th,
.portal-body[data-portal-view="finance"] .analytics-table td { color: #c8dad4; border-bottom-color: rgba(204,239,228,.1); }
.portal-body[data-portal-view="finance"] .analytics-table th { color: #78958c; }
.portal-body[data-portal-view="finance"] .analytics-table tbody tr { transition: background .18s ease; }
.portal-body[data-portal-view="finance"] .analytics-table tbody tr:hover { background: rgba(255,255,255,.035); }
.portal-body[data-portal-view="finance"] .analytics-employee-name { color: #fff; }
.portal-body[data-portal-view="finance"] .analytics-performance { color: #adc0ba; background: rgba(204,239,228,.08); }
.portal-body[data-portal-view="finance"] .analytics-performance.is-strong { color: var(--analytics-lime); background: rgba(201,237,85,.11); }
.portal-body[data-portal-view="finance"] .analytics-detail { color: var(--analytics-lime); border-color: rgba(201,237,85,.22); background: rgba(255,255,255,.035); }
.portal-body[data-portal-view="finance"] .analytics-detail:hover,
.portal-body[data-portal-view="finance"] .analytics-detail:focus-visible { color: #092018; background: var(--analytics-lime); outline: 0; }
.portal-body[data-portal-view="finance"] .analytics-empty,
.portal-body[data-portal-view="finance"] .panel-note { color: var(--analytics-muted); }
.portal-body[data-portal-view="finance"] .store-finance-summary article {
  border-color: var(--analytics-border);
  background: linear-gradient(145deg, rgba(13,45,38,.78), rgba(5,24,20,.9));
  box-shadow: 0 20px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.045);
}
.portal-body[data-portal-view="finance"] .store-finance-summary article.is-balance { border-color: rgba(201,237,85,.28); background: linear-gradient(145deg, rgba(27,89,70,.9), rgba(7,39,31,.96)); }
.portal-body[data-portal-view="finance"] .store-finance-summary span,
.portal-body[data-portal-view="finance"] .store-finance-summary small { color: var(--analytics-muted); }
.portal-body[data-portal-view="finance"] .store-finance-summary strong { color: #fff; }
.portal-body[data-portal-view="finance"] .store-finance-summary .is-income strong { color: #62e2b2; }
.portal-body[data-portal-view="finance"] .store-finance-summary .is-expense strong { color: #ff9d8a; }
.portal-body[data-portal-view="finance"] .store-finance-summary .is-balance strong { color: var(--analytics-lime); }
.portal-body[data-portal-view="finance"] .store-finance-operations,
.portal-body[data-portal-view="finance"] .store-finance-filterbar {
  color: var(--analytics-text);
  border-color: var(--analytics-border);
  background: rgba(8,31,26,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.portal-body[data-portal-view="finance"] .store-finance-operations h3 { color: #f1faf7; }
.portal-body[data-portal-view="finance"] .store-finance-operations span,
.portal-body[data-portal-view="finance"] .store-finance-filterbar label { color: var(--analytics-muted); }
.portal-body[data-portal-view="finance"] .store-finance-filterbar input,
.portal-body[data-portal-view="finance"] .store-finance-filterbar select { color: #eef7f4; border-color: rgba(204,239,228,.14); background: rgba(255,255,255,.04); color-scheme: dark; }
.portal-body[data-portal-view="finance"] .store-finance-trend time,
.portal-body[data-portal-view="finance"] .store-finance-breakdown-grid h4,
.portal-body[data-portal-view="finance"] .store-finance-total { color: #eaf5f1; }
.portal-body[data-portal-view="finance"] .store-finance-trend article > span,
.portal-body[data-portal-view="finance"] .store-finance-breakdown-grid article span,
.portal-body[data-portal-view="finance"] .store-finance-total span { color: var(--analytics-muted); }
.portal-body[data-portal-view="finance"] .store-finance-trend i.is-income,
.portal-body[data-portal-view="finance"] .store-finance-breakdown-grid article i { background: linear-gradient(90deg, var(--analytics-cyan), var(--analytics-lime)); }
.portal-body[data-portal-view="finance"] .store-finance-trend i.is-expense,
.portal-body[data-portal-view="finance"] .store-finance-breakdown-grid section:last-child article i { background: linear-gradient(90deg, #ff9d8a, #c35a4d); }
.portal-body[data-portal-view="finance"] .store-finance-breakdown-grid article > div:last-child { background: rgba(204,239,228,.09); }
.portal-body[data-portal-view="finance"] .store-finance-ledger-panel .analytics-table-wrap { border-color: rgba(204,239,228,.11); }
.portal-body[data-portal-view="finance"] .store-finance-table thead { background: #0b2c25; }
.portal-body[data-portal-view="finance"] .store-finance-table td.is-income,
.portal-body[data-portal-view="finance"] .store-finance-total b.is-income { color: #62e2b2; }
.portal-body[data-portal-view="finance"] .store-finance-table td.is-expense,
.portal-body[data-portal-view="finance"] .store-finance-total b.is-expense { color: #ff9d8a; }
.portal-body[data-portal-view="finance"] .store-finance-table td.is-balance,
.portal-body[data-portal-view="finance"] .store-finance-total strong { color: var(--analytics-lime); }

@media (max-width: 980px) {
  .portal-body[data-portal-view="finance"] .analytics-header { min-height: 104px; }
  .portal-body[data-portal-view="finance"] .analytics-controls { align-items: stretch; flex-direction: column; }
  .portal-body[data-portal-view="finance"] .analytics-scope-tabs { overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .portal-body[data-portal-view="finance"] .analytics-scope-tabs::-webkit-scrollbar { display: none; }
  .portal-body[data-portal-view="finance"] .analytics-scope-tabs button { flex: 0 0 auto; }
  .portal-body[data-portal-view="finance"] .analytics-period-controls { justify-content: flex-end; }
}
@media (max-width: 720px) {
  .portal-body[data-portal-view="finance"] .portal-main > .container { width: min(100% - 28px, 680px); }
  .portal-body[data-portal-view="finance"] .analytics-view { padding-top: 8px; }
  .portal-body[data-portal-view="finance"] .analytics-header { align-items: flex-start; flex-direction: column; gap: 16px; padding: 16px 4px 18px; }
  .portal-body[data-portal-view="finance"] .analytics-header h2 { font-size: 42px; }
  .portal-body[data-portal-view="finance"] .analytics-header-meta { flex-wrap: wrap; }
  .portal-body[data-portal-view="finance"] .analytics-header-meta span { padding: 7px 10px; }
  .portal-body[data-portal-view="finance"] .analytics-period-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .portal-body[data-portal-view="finance"] .analytics-period-controls label { min-width: 0; }
  .portal-body[data-portal-view="finance"] .analytics-period-controls select { width: 100%; }
  .portal-body[data-portal-view="finance"] .analytics-date-range { min-width: 0; }
  .portal-body[data-portal-view="finance"] .analytics-export { grid-column: 1 / -1; }
  .portal-body[data-portal-view="finance"] .analytics-result-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 22px 42px; }
  .portal-body[data-portal-view="finance"] .analytics-result-card .analytics-change { padding: 17px 0 0; border-top: 1px solid rgba(204,239,228,.13); border-left: 0; }
  .portal-body[data-portal-view="finance"] .analytics-quick-metrics { grid-template-columns: 1fr; }
  .portal-body[data-portal-view="finance"] .analytics-quick-metrics > div { min-height: 108px; border-right: 0; border-bottom: 1px solid rgba(204,239,228,.13); }
  .portal-body[data-portal-view="finance"] .analytics-quick-metrics > div:last-child { border-bottom: 0; }
  .portal-body[data-portal-view="finance"] .analytics-insight { grid-template-columns: 1fr auto; }
  .portal-body[data-portal-view="finance"] .analytics-insight span { grid-column: 1 / -1; grid-row: 2; }
  .portal-body[data-portal-view="finance"] .analytics-panel,
  .portal-body[data-portal-view="finance"] .analytics-table-panel { padding: 20px; }
  .analytics-particle-field { height: 560px; opacity: .5; }
}
@media (max-width: 520px) {
  .portal-body[data-portal-view="finance"] .analytics-scope-tabs button { min-height: 38px; padding: 0 14px; }
  .portal-body[data-portal-view="finance"] .analytics-period-controls { grid-template-columns: 1fr; }
  .portal-body[data-portal-view="finance"] .analytics-export { grid-column: auto; }
  .portal-body[data-portal-view="finance"] .analytics-header-meta span:last-child { width: 100%; }
  .portal-body[data-portal-view="finance"] .analytics-ranking article,
  .portal-body[data-portal-view="finance"] .analytics-structure article { grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-particle-field { opacity: .32; }
  .portal-body[data-portal-view="finance"] .analytics-scope-tabs button,
  .portal-body[data-portal-view="finance"] .analytics-export,
  .portal-body[data-portal-view="finance"] .analytics-table tbody tr { transition: none; }
}

/* Analytics option 2 · living fluid intelligence */
.portal-body[data-portal-view="finance"] .analytics-view > *:not(.analytics-fluid-scene) {
  position: relative;
  z-index: 2;
}
.analytics-fluid-scene {
  position: absolute;
  z-index: 0;
  top: 43px;
  left: 0;
  width: 100%;
  height: 690px;
  overflow: hidden;
  pointer-events: none;
  opacity: .92;
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}
.analytics-fluid-canvas,
.analytics-flow-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.analytics-fluid-canvas {
  transform: scale(1.035);
  filter: blur(1.8px) saturate(116%);
}
.analytics-flow-particles { opacity: .9; }
.analytics-fluid-scene.is-fluid-fallback::before {
  position: absolute;
  inset: 7% -8% 16% 28%;
  border-radius: 48% 52% 45% 55%;
  background:
    radial-gradient(ellipse at 70% 52%, rgba(60, 200, 255, .32), transparent 42%),
    radial-gradient(ellipse at 46% 48%, rgba(0, 231, 210, .3), transparent 48%),
    linear-gradient(116deg, transparent 12%, rgba(0, 231, 210, .1) 45%, rgba(7, 95, 104, .22) 78%, transparent 92%);
  filter: blur(18px);
  opacity: .78;
  content: "";
}
.portal-body[data-portal-view="finance"] .analytics-header {
  min-height: 150px;
  padding: 26px 20px 28px;
  border-bottom-color: rgba(184, 255, 236, .18);
}
.portal-body[data-portal-view="finance"] .analytics-header h2 {
  font-size: clamp(44px, 5.4vw, 68px);
  letter-spacing: -.065em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .42);
}
.portal-body[data-portal-view="finance"] .analytics-controls {
  border-color: rgba(199, 255, 239, .2);
  background: linear-gradient(105deg, rgba(5, 29, 24, .82), rgba(7, 37, 31, .62));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(22px) saturate(128%);
}
.portal-body[data-portal-view="finance"] .analytics-fluid-summary {
  position: relative;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(202, 255, 241, .31);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .014)),
    rgba(5, 29, 24, .48);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .09),
    inset 0 -1px 0 rgba(0, 231, 210, .08);
  backdrop-filter: blur(16px) saturate(118%);
}
.portal-body[data-portal-view="finance"] .analytics-fluid-summary::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 19, 16, .8) 0%, rgba(2, 19, 16, .58) 34%, rgba(2, 19, 16, .08) 72%, transparent 100%);
  content: "";
}
.analytics-fluid-summary-head,
.analytics-fluid-summary-layout {
  position: relative;
  z-index: 1;
}
.analytics-fluid-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.analytics-fluid-summary-head h3,
.analytics-fluid-trend h3 {
  margin: 0;
  color: #f1fcf8;
  font-size: 17px;
}
.analytics-fluid-summary-head p,
.analytics-fluid-trend p {
  margin: 5px 0 0;
  color: #86a59b;
  font-size: 11px;
}
.analytics-fluid-summary-head > span {
  color: rgba(126, 255, 234, .7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.analytics-fluid-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr);
  gap: 20px;
  align-items: stretch;
}
.portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-summary-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
.portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-result-card,
.portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-quick-metrics,
.portal-body[data-portal-view="finance"] .analytics-fluid-trend {
  border-color: rgba(201, 255, 239, .11);
  background: rgba(1, 18, 15, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-result-card {
  min-height: 132px;
  padding: 20px 22px 30px;
  border-radius: 20px;
}
.portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-result-card::before { display: none; }
.portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-result-card strong { font-size: clamp(31px, 3vw, 46px); }
.portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-quick-metrics {
  min-height: 104px;
  padding: 0;
  border-radius: 20px;
}
.portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-quick-metrics > div { padding: 18px; }
.portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-quick-metrics strong { font-size: clamp(24px, 2.4vw, 34px); }
.analytics-fluid-trend {
  min-width: 0;
  min-height: 248px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(201, 255, 239, .11);
  border-radius: 20px;
}
.analytics-fluid-trend > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.analytics-fluid-trend > header > span { color: #6d9389; font-size: 10px; }
.analytics-fluid-trend canvas { display: block; width: 100%; height: 186px; }
.portal-body[data-portal-view="finance"] .analytics-insight {
  border-color: rgba(126, 255, 234, .2);
  background: linear-gradient(90deg, rgba(3, 64, 52, .82), rgba(4, 35, 29, .7));
  backdrop-filter: blur(16px);
}
.portal-body[data-portal-view="finance"] .analytics-performance-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
}
.portal-body[data-portal-view="finance"] .analytics-panel,
.portal-body[data-portal-view="finance"] .analytics-table-panel {
  border-color: rgba(196, 244, 230, .15);
  background: linear-gradient(145deg, rgba(9, 39, 32, .72), rgba(3, 22, 18, .82));
  backdrop-filter: blur(20px) saturate(116%);
}

@media (max-width: 1120px) {
  .analytics-fluid-summary-layout { grid-template-columns: 1fr; }
  .analytics-fluid-trend { min-height: 220px; }
  .analytics-fluid-trend canvas { height: 160px; }
  .portal-body[data-portal-view="finance"] .analytics-performance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .analytics-fluid-scene { top: 72px; left: 0; width: 100%; height: 770px; opacity: .72; }
  .portal-body[data-portal-view="finance"] .analytics-header { min-height: 176px; padding-top: 24px; }
  .portal-body[data-portal-view="finance"] .analytics-fluid-summary { padding: 18px; border-radius: 24px; }
  .analytics-fluid-summary-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-result-card { min-height: 168px; }
  .portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-quick-metrics { min-height: 0; }
  .analytics-fluid-trend { min-height: 210px; padding: 16px 14px 12px; }
  .analytics-fluid-trend canvas { height: 150px; }
}
@media (max-width: 520px) {
  .portal-body[data-portal-view="finance"] .analytics-fluid-summary { padding: 15px; }
  .portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-result-card { padding: 20px 18px 32px; }
  .portal-body[data-portal-view="finance"] .analytics-fluid-summary .analytics-quick-metrics > div { min-height: 96px; padding: 15px 14px; }
  .analytics-fluid-summary-head > span { letter-spacing: .09em; }
  .portal-body[data-portal-view="finance"] .analytics-table.is-empty { min-width: 0; table-layout: fixed; }
  .portal-body[data-portal-view="finance"] .analytics-table.is-empty thead { display: none; }
  .portal-body[data-portal-view="finance"] .analytics-table.is-empty td { padding: 24px 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-fluid-canvas { opacity: .58; }
  .analytics-flow-particles { opacity: .56; }
}

/* Analytics option 2 · target-faithful compact data cabin */
.portal-body[data-portal-view="finance"] .analytics-view {
  --analytics-glass: rgba(3, 27, 23, .64);
  --analytics-glass-deep: rgba(2, 19, 16, .76);
  --analytics-stroke: rgba(145, 236, 217, .22);
  --analytics-lime: #c8f14b;
}
.portal-body[data-portal-view="finance"] .analytics-fluid-scene {
  z-index: 1;
  top: 76px;
  height: 520px;
  opacity: .86;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 83%, transparent 100%);
}
.portal-body[data-portal-view="finance"] .analytics-fluid-summary { z-index: auto !important; }
.portal-body[data-portal-view="finance"] .analytics-fluid-summary-head,
.portal-body[data-portal-view="finance"] .analytics-fluid-summary-layout { z-index: 2; }
.portal-body[data-portal-view="finance"] .analytics-fluid-canvas {
  transform: none;
  filter: blur(.35px) saturate(110%);
  opacity: .72;
}
.portal-body[data-portal-view="finance"] .analytics-flow-particles { opacity: .98; }
.portal-body[data-portal-view="finance"] [data-analytics-metric].is-speeding-number:not(.is-speeding) {
  filter: none;
  transform: none;
  will-change: auto;
}
.portal-body[data-portal-view="finance"] .analytics-header {
  min-height: 116px;
  padding: 18px 20px 20px;
}
.portal-body[data-portal-view="finance"] .analytics-header h2 {
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1;
}
.portal-body[data-portal-view="finance"] .analytics-controls {
  min-height: 56px;
  border-radius: 17px;
  background: rgba(2, 27, 22, .76);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .045);
}
.portal-body[data-portal-view="finance"] .analytics-standard-dashboard { gap: 14px; }
.portal-body[data-portal-view="finance"] .analytics-fluid-summary {
  padding: 20px;
  border-color: var(--analytics-stroke);
  border-radius: 22px;
  background: linear-gradient(112deg, rgba(2, 25, 21, .60), rgba(4, 49, 42, .34));
  box-shadow: 0 24px 56px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .055);
}
.portal-body[data-portal-view="finance"] .analytics-fluid-summary::before {
  background: linear-gradient(90deg, rgba(2, 17, 15, .58), transparent 70%);
  opacity: .58;
}
.portal-body[data-portal-view="finance"] .analytics-fluid-summary-head { margin-bottom: 14px; }
.portal-body[data-portal-view="finance"] .analytics-fluid-summary-layout {
  grid-template-columns: minmax(520px, 1.32fr) minmax(310px, .68fr);
  gap: 14px;
}
.analytics-kpi-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 194px;
  overflow: hidden;
  border: 1px solid rgba(201, 255, 239, .11);
  border-radius: 18px;
  background: rgba(0, 17, 14, .43);
}
.analytics-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 22px 18px 28px;
  border-right: 1px solid rgba(201, 255, 239, .09);
}
.analytics-kpi:last-of-type { border-right: 0; }
.analytics-kpi span { color: #a5bbb4; font-size: 11px; }
.analytics-kpi strong {
  margin-top: 11px;
  color: #f6fffb;
  font-size: clamp(25px, 2.25vw, 38px);
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.analytics-kpi small { margin-top: 10px; color: #728c84; font-size: 10px; line-height: 1.45; }
.analytics-kpi em {
  position: absolute;
  top: 18px;
  right: 14px;
  color: var(--analytics-lime);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.analytics-kpi-strip .analytics-progress {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(166, 205, 192, .12);
}
.analytics-kpi-strip .analytics-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1ed6bd, var(--analytics-lime));
}
.portal-body[data-portal-view="finance"] .analytics-fluid-trend {
  min-height: 194px;
  padding: 16px 16px 10px;
  border-radius: 18px;
  background: rgba(0, 28, 24, .42);
}
.portal-body[data-portal-view="finance"] .analytics-fluid-trend canvas { height: 132px; }
.portal-body[data-portal-view="finance"] .analytics-insight {
  min-height: 52px;
  border-radius: 14px;
  background: rgba(3, 55, 46, .68);
}
.portal-body[data-portal-view="finance"] .analytics-template-bottom-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .68fr);
  gap: 14px;
}
.portal-body[data-portal-view="finance"] .analytics-template-bottom-grid > * {
  min-height: 310px;
  padding: 20px;
  border-radius: 20px;
}
.portal-body[data-portal-view="finance"] .analytics-ranking-table-panel .analytics-table-wrap { overflow-x: auto; }
.portal-body[data-portal-view="finance"] .analytics-ranking-table-panel .analytics-table { min-width: 690px; }
.portal-body[data-portal-view="finance"] .analytics-ranking-table-panel .analytics-table th { color: #809a92; }
.portal-body[data-portal-view="finance"] .analytics-ranking-table-panel .analytics-table td { color: #d9ebe5; }
.portal-body[data-portal-view="finance"] .analytics-ranking-table-panel .analytics-table tbody tr:hover { background: rgba(85, 210, 181, .06); }

@media (max-width: 1180px) {
  .portal-body[data-portal-view="finance"] .analytics-fluid-summary-layout { grid-template-columns: 1fr; }
  .portal-body[data-portal-view="finance"] .analytics-template-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .portal-body[data-portal-view="finance"] .analytics-fluid-scene { top: 84px; height: 460px; }
  .portal-body[data-portal-view="finance"] .analytics-header { min-height: 126px; padding-inline: 8px; }
  .portal-body[data-portal-view="finance"] .analytics-header h2 { font-size: 42px; }
  .portal-body[data-portal-view="finance"] .analytics-fluid-summary { padding: 14px; border-radius: 20px; }
  .analytics-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 290px; }
  .analytics-kpi:nth-of-type(2) { border-right: 0; }
  .analytics-kpi:nth-of-type(-n+2) { border-bottom: 1px solid rgba(201, 255, 239, .09); }
  .analytics-kpi { min-height: 136px; padding: 18px 14px 24px; }
  .analytics-kpi strong { font-size: 28px; }
  .analytics-kpi em { top: auto; right: 12px; bottom: 11px; }
  .portal-body[data-portal-view="finance"] .analytics-fluid-trend { min-height: 210px; }
  .portal-body[data-portal-view="finance"] .analytics-fluid-trend canvas { height: 152px; }
  .portal-body[data-portal-view="finance"] .analytics-template-bottom-grid > * { min-height: 0; padding: 16px; }
}

@media (max-width: 900px) {
  .home-dark-story { background-attachment: scroll; }
  .home-page .home-dark-story .section-head { align-items: start; }
}
@media (max-width: 620px) {
  .home-page .home-dark-story .workflow-section,
  .home-page .home-dark-story .capability-section { padding: 76px 0; }
  .home-page .home-dark-story .section-head { gap: 18px; margin-bottom: 30px; }
  .home-page .home-dark-story .section-head h2 { font-size: 40px; line-height: 1.08; }
  .home-page .home-dark-story .section-head > p { font-size: 15px; }
  .workflow-console { border-radius: 24px; }
  .workflow-console-top { align-items: flex-start; padding: 18px 20px; }
  .home-page .home-dark-story .workflow li { min-height: 0; padding: 28px 22px; }
  .home-page .home-dark-story .capability-card { min-height: 0; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .member-orbit-rotor, .member-orbit-avatar { animation: none; }
  .home-page.home-section-motion-ready [data-home-reveal] .section-head,
  .home-page.home-section-motion-ready [data-home-reveal] .workflow-console,
  .home-page.home-section-motion-ready [data-home-reveal] .capability-card,
  .home-page .home-dark-story .workflow li,
  .home-page .home-dark-story .capability-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Statistics light 2 final cascade guard: keep the selected mock above legacy dark themes. */
.portal-body[data-portal-view="finance"] { color: #14231f !important; background: #f7f9f8 !important; }
.portal-body[data-portal-view="finance"]::before { display: none !important; }
.portal-body[data-portal-view="finance"] .portal-workspace,
.portal-body[data-portal-view="finance"] .portal-main { background: #f7f9f8 !important; }
.portal-body[data-portal-view="finance"] .portal-main > .container { width: min(1680px, calc(100% - 46px)) !important; }
.portal-body[data-portal-view="finance"] .command-topbar { min-height: 66px !important; height: 66px !important; margin-bottom: 0 !important; }
.portal-body[data-portal-view="finance"] .analytics-view { padding-top: 0 !important; }
.portal-body[data-portal-view="finance"] .analytics-fluid-scene { display: none !important; }
.portal-body[data-portal-view="finance"] .analytics-header { min-height: 142px !important; padding: 24px 14px 20px !important; border-bottom-color: #dce4e1 !important; }
.portal-body[data-portal-view="finance"] .analytics-header .panel-label { color: #0b7658 !important; }
.portal-body[data-portal-view="finance"] .analytics-header h2 { color: #0c3429 !important; font-size: clamp(43px, 4.4vw, 58px) !important; text-shadow: none !important; }
.portal-body[data-portal-view="finance"] .analytics-header-meta { color: #65716e !important; }
.portal-body[data-portal-view="finance"] .analytics-header-meta span { color: #66716e !important; border-color: #d8e1de !important; border-radius: 11px !important; background: #fff !important; box-shadow: none !important; backdrop-filter: none !important; }
.portal-body[data-portal-view="finance"] .analytics-header-meta b { color: #087858 !important; }
.portal-body[data-portal-view="finance"] .analytics-feature-grid { gap: 0 !important; padding-bottom: 6px !important; border-bottom: 1px solid #d8e0dd !important; }
.portal-body[data-portal-view="finance"] .analytics-feature-grid button { display: flex !important; min-height: 66px !important; align-items: center !important; justify-content: center !important; gap: 12px !important; padding: 0 14px !important; border: 0 !important; border-radius: 6px !important; color: #56615f !important; text-align: center !important; background: transparent !important; box-shadow: none !important; }
.portal-body[data-portal-view="finance"] .analytics-feature-grid button:hover { color: #0c7357 !important; background: #edf5f1 !important; transform: none !important; }
.portal-body[data-portal-view="finance"] .analytics-feature-grid button.is-active { color: #fff !important; background: linear-gradient(135deg, #075f47, #087b5b) !important; box-shadow: 0 9px 22px rgba(6, 101, 75, .16) !important; }
.portal-body[data-portal-view="finance"] .analytics-feature-icon { grid-row: auto !important; width: 27px !important; height: 27px !important; flex: 0 0 27px !important; border-radius: 7px !important; color: #4f5d59 !important; background: transparent !important; font-size: 22px !important; }
.portal-body[data-portal-view="finance"] .analytics-feature-grid button.is-active .analytics-feature-icon { color: #fff !important; }
.portal-body[data-portal-view="finance"] .analytics-feature-grid b { font-size: 18px !important; white-space: nowrap; }
.portal-body[data-portal-view="finance"] .analytics-feature-grid small,
.portal-body[data-portal-view="finance"] .analytics-feature-grid em { display: none !important; }
.portal-body[data-portal-view="finance"] .analytics-controls { min-height: 82px !important; padding: 10px 14px 10px 20px !important; border-color: #d9e2df !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; backdrop-filter: none !important; }
.portal-body[data-portal-view="finance"] .analytics-current-view span { color: #63706c !important; }
.portal-body[data-portal-view="finance"] .analytics-current-view strong { color: #087858 !important; }
.portal-body[data-portal-view="finance"] .analytics-period-controls select,
.portal-body[data-portal-view="finance"] .analytics-date-range { color: #34413d !important; border-color: #d5dedb !important; border-radius: 9px !important; background: #fff !important; color-scheme: light !important; }
.portal-body[data-portal-view="finance"] .analytics-export { color: #087858 !important; border: 1px solid #0a8966 !important; background: #fff !important; box-shadow: none !important; }
.portal-body[data-portal-view="finance"] .analytics-export:hover,
.portal-body[data-portal-view="finance"] .analytics-export:focus-visible { color: #fff !important; background: #087858 !important; }
.portal-body[data-portal-view="finance"] .store-finance-summary { gap: 0 !important; overflow: hidden; border: 1px solid #d9e2df !important; border-radius: 12px !important; background: #fff !important; }
.portal-body[data-portal-view="finance"] .store-finance-summary article,
.portal-body[data-portal-view="finance"] .store-finance-summary article.is-balance { min-height: 188px !important; padding: 24px 36px !important; border: 0 !important; border-right: 1px solid #dfe6e3 !important; border-radius: 0 !important; color: #17211f !important; background: #fff !important; box-shadow: none !important; }
.portal-body[data-portal-view="finance"] .store-finance-summary article:last-child { border-right: 0 !important; }
.portal-body[data-portal-view="finance"] .store-finance-summary article.is-balance { background: linear-gradient(135deg, #f5fbf8, #eef8f4) !important; }
.portal-body[data-portal-view="finance"] .store-finance-summary span,
.portal-body[data-portal-view="finance"] .store-finance-summary small { color: #697572 !important; }
.portal-body[data-portal-view="finance"] .store-finance-summary strong,
.portal-body[data-portal-view="finance"] .store-finance-summary .is-expense strong { color: #17211f !important; }
.portal-body[data-portal-view="finance"] .store-finance-summary .is-income strong,
.portal-body[data-portal-view="finance"] .store-finance-summary .is-balance strong { color: #0a805d !important; }
.portal-body[data-portal-view="finance"] .store-finance-workspace { overflow: hidden; border: 1px solid #d9e2df; border-radius: 12px; background: #fff; }
.portal-body[data-portal-view="finance"] .store-finance-operations { min-height: 138px !important; border: 0 !important; border-bottom: 1px solid #dfe6e3 !important; border-radius: 0 !important; color: #18221f !important; background: #fff !important; box-shadow: none !important; }
.portal-body[data-portal-view="finance"] .store-finance-operations h3 { color: #17221f !important; }
.portal-body[data-portal-view="finance"] .store-finance-operations span { color: #6c7874 !important; }
.portal-body[data-portal-view="finance"] .store-finance-filterbar { border: 0 !important; border-radius: 0 !important; color: #26322e !important; background: #fff !important; box-shadow: none !important; }
.portal-body[data-portal-view="finance"] .store-finance-filterbar label { color: #35413d !important; }
.portal-body[data-portal-view="finance"] .store-finance-filterbar input,
.portal-body[data-portal-view="finance"] .store-finance-filterbar select { color: #26322e !important; border-color: #d2dcda !important; background: #fff !important; color-scheme: light !important; }
.portal-body[data-portal-view="finance"] .analytics-panel,
.portal-body[data-portal-view="finance"] .analytics-table-panel,
.portal-body[data-portal-view="finance"] .analytics-fluid-summary,
.portal-body[data-portal-view="finance"] .analytics-fluid-trend { color: #1b2723 !important; border-color: #d9e2df !important; background: #fff !important; box-shadow: none !important; backdrop-filter: none !important; }
.portal-body[data-portal-view="finance"] .analytics-panel h3,
.portal-body[data-portal-view="finance"] .analytics-table-panel h3,
.portal-body[data-portal-view="finance"] .analytics-fluid-summary-head h3,
.portal-body[data-portal-view="finance"] .analytics-fluid-trend h3 { color: #15372e !important; }
.portal-body[data-portal-view="finance"] .analytics-panel header p,
.portal-body[data-portal-view="finance"] .analytics-table-panel header p,
.portal-body[data-portal-view="finance"] .analytics-fluid-summary-head p,
.portal-body[data-portal-view="finance"] .analytics-fluid-trend p { color: #71807b !important; }
.portal-body[data-portal-view="finance"] .analytics-table th,
.portal-body[data-portal-view="finance"] .analytics-table td { color: #31413c !important; border-bottom-color: #e5ebe8 !important; }
.portal-body[data-portal-view="finance"] .analytics-table th { color: #6f7d78 !important; }
.portal-body[data-portal-view="finance"] .store-finance-table thead { background: #f3f7f5 !important; }
.portal-body[data-portal-view="finance"] .store-finance-ledger-panel .analytics-table-wrap { border-color: #e1e8e5 !important; }

@media (max-width: 980px) {
  .portal-body[data-portal-view="finance"] .analytics-feature-grid { grid-template-columns: repeat(5, minmax(168px, 1fr)) !important; overflow-x: auto !important; }
  .portal-body[data-portal-view="finance"] .store-finance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .portal-body[data-portal-view="finance"] .store-finance-summary article:nth-child(2) { border-right: 0 !important; }
  .portal-body[data-portal-view="finance"] .store-finance-summary article:nth-child(-n+2) { border-bottom: 1px solid #dfe6e3 !important; }
}
@media (max-width: 720px) {
  .portal-body[data-portal-view="finance"] .analytics-header { min-height: 160px !important; padding: 20px 2px 18px !important; }
  .portal-body[data-portal-view="finance"] .analytics-header h2 { font-size: 42px !important; }
  .portal-body[data-portal-view="finance"] .store-finance-summary article,
  .portal-body[data-portal-view="finance"] .store-finance-summary article.is-balance { min-height: 132px !important; padding: 20px !important; }
}
@media (max-width: 430px) {
  .portal-body[data-portal-view="finance"] .store-finance-summary { grid-template-columns: 1fr !important; }
  .portal-body[data-portal-view="finance"] .store-finance-summary article { border-right: 0 !important; border-bottom: 1px solid #dfe6e3 !important; }
  .portal-body[data-portal-view="finance"] .store-finance-summary article:last-child { border-bottom: 0 !important; }
}

/* OVERVIEW IVORY LANDSCAPE OPTION 2 — 一屏经营封面 */
.overview-landscape { display: none; }
.portal-body[data-portal-view="overview"] {
  --overview-ivory: #fbf7ee;
  --overview-paper: #fffdf8;
  --overview-forest: #17382f;
  --overview-emerald: #0f8a68;
  --overview-bronze: #a9843b;
  --overview-sage: #eaf0e8;
  --overview-border: rgba(65, 94, 82, .16);
  background: #f2eee5 !important;
}
.portal-body[data-portal-view="overview"] .portal-workspace,
.portal-body[data-portal-view="overview"] .portal-main { background: #f2eee5 !important; }
.portal-body[data-portal-view="overview"] .portal-main { padding-block: 22px 30px !important; }
.portal-body[data-portal-view="overview"] .portal-main > .container { width: min(1510px, calc(100% - 36px)) !important; }
.portal-body[data-portal-view="overview"] .overview-cover {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(102, 91, 64, .14);
  border-radius: 26px;
  background: rgba(255, 253, 248, .95);
  box-shadow: 0 22px 70px rgba(66, 57, 38, .09);
}
.portal-body[data-portal-view="overview"] .overview-cover::after {
  position: absolute;
  inset: auto auto -140px -100px;
  width: 360px;
  height: 240px;
  border-radius: 50%;
  background: rgba(235, 229, 211, .28);
  filter: blur(18px);
  pointer-events: none;
  content: "";
}
.portal-body[data-portal-view="overview"] .command-topbar {
  position: relative;
  z-index: 2;
  min-height: 142px !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 18px 0 0 !important;
  border: 0 !important;
}
.portal-body[data-portal-view="overview"] .command-greeting { align-items: center !important; padding-top: 20px !important; }
.portal-body[data-portal-view="overview"] .command-greeting strong {
  color: var(--overview-forest) !important;
  font-size: clamp(24px, 2vw, 34px) !important;
  font-weight: 820 !important;
  letter-spacing: -.035em !important;
}
.portal-body[data-portal-view="overview"] .command-greeting > i { color: #657b72 !important; font-size: 24px !important; }
.portal-body[data-portal-view="overview"] .command-greeting em { color: var(--overview-emerald) !important; }
.portal-body[data-portal-view="overview"] .command-topbar-meta {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 3 !important;
  color: #62736c !important;
}
.portal-body[data-portal-view="overview"] .overview-landscape {
  position: absolute;
  top: 43px;
  right: 8px;
  z-index: 1;
  display: block;
  width: min(62%, 820px);
  height: 112px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(132, 104, 54, .2);
  border-radius: 0;
  clip-path: polygon(min(418px, 70%) 0, 100% 0, 100% 100%, 0 100%);
  background: #e8ede7;
  box-shadow: none;
  filter: drop-shadow(0 10px 20px rgba(63, 76, 67, .13));
}
.portal-body[data-portal-view="overview"] .overview-landscape img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.portal-body[data-portal-view="overview"] .overview-focus-layout {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) !important;
  grid-template-areas: "priorities dashboard" "insights insights" "note note" !important;
  gap: 16px 18px !important;
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-intro { margin: 0 0 12px !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-intro .eyebrow {
  color: #334d44 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-intro .eyebrow::before {
  width: 3px !important;
  height: 16px !important;
  background: var(--overview-emerald) !important;
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item {
  grid-template-columns: 36px minmax(0, 1fr) auto !important;
  min-height: 74px !important;
  gap: 2px 10px !important;
  padding: 12px 12px !important;
  border: 1px solid var(--overview-border) !important;
  border-left: 3px solid #70a98f !important;
  border-radius: 14px !important;
  background: rgba(255, 253, 248, .88) !important;
  box-shadow: 0 7px 18px rgba(56, 70, 60, .04) !important;
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item:first-child { border-left-color: #e36b59 !important; background: #fffaf6 !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-warning { border-left-color: #d79b39 !important; background: #fffaf0 !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item > span { width: 34px !important; height: 34px !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item h2 { font-size: 13px !important; line-height: 1.4 !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item p { overflow: hidden !important; margin-top: 2px !important; font-size: 10px !important; line-height: 1.4 !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a {
  min-width: 58px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border-color: rgba(15, 138, 104, .46) !important;
  border-radius: 8px !important;
  color: #0b755a !important;
  background: #fffdf8 !important;
  font-size: 11px !important;
}
.portal-body[data-portal-view="overview"] .overview-dashboard { align-self: end !important; }
.portal-body[data-portal-view="overview"] .overview-dashboard-head { min-height: 44px !important; }
.portal-body[data-portal-view="overview"] .overview-dashboard-head .overview-period-bar { gap: 10px !important; }
.portal-body[data-portal-view="overview"] .overview-period-tabs,
.portal-body[data-portal-view="overview"] .overview-date-range {
  border-color: var(--overview-border) !important;
  background: rgba(255, 253, 248, .92) !important;
  box-shadow: 0 4px 12px rgba(52, 66, 57, .03) !important;
}
.portal-body[data-portal-view="overview"] .overview-period-tabs button { width: 48px !important; height: 36px !important; background: transparent !important; }
.portal-body[data-portal-view="overview"] .overview-period-tabs button.is-active { color: #fff !important; background: var(--overview-emerald) !important; }
.portal-body[data-portal-view="overview"] .overview-date-range { min-width: 168px !important; min-height: 36px !important; }
.portal-body[data-portal-view="overview"] .overview-key-metrics {
  min-height: 246px !important;
  border-color: var(--overview-border) !important;
  border-radius: 16px !important;
  background: rgba(255, 253, 248, .9) !important;
  box-shadow: 0 10px 26px rgba(58, 66, 50, .055) !important;
}
.portal-body[data-portal-view="overview"] .overview-key-metrics article {
  display: flex !important;
  min-height: 246px !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 28px 20px !important;
  border-right-color: rgba(65, 94, 82, .13) !important;
  background: transparent !important;
}
.portal-body[data-portal-view="overview"] .overview-key-metrics article > i {
  position: static !important;
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  margin-bottom: 18px !important;
  border-radius: 50% !important;
  color: #4f7b68 !important;
  background: var(--overview-sage) !important;
  font-size: 20px !important;
}
.portal-body[data-portal-view="overview"] .overview-key-metrics article.is-warning > i { color: #a66f18 !important; background: #f6ecd7 !important; }
.portal-body[data-portal-view="overview"] .overview-key-metrics span { color: #566a62 !important; font-size: 13px !important; }
.portal-body[data-portal-view="overview"] .overview-key-metrics strong {
  margin: 10px 0 3px !important;
  color: var(--overview-emerald) !important;
  font-size: clamp(32px, 3.2vw, 48px) !important;
  font-weight: 760 !important;
}
.portal-body[data-portal-view="overview"] .overview-key-metrics article::after { display: none !important; }
.portal-body[data-portal-view="overview"] .overview-insight-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .82fr) minmax(270px, .86fr) !important;
  gap: 16px !important;
}
.portal-body[data-portal-view="overview"] .overview-trend-panel,
.portal-body[data-portal-view="overview"] .overview-risk-panel,
.portal-body[data-portal-view="overview"] .overview-ai-panel {
  min-height: 256px !important;
  overflow: hidden !important;
  border-color: var(--overview-border) !important;
  border-radius: 16px !important;
  background: rgba(255, 253, 248, .92) !important;
  box-shadow: 0 8px 22px rgba(58, 66, 50, .045) !important;
}
.portal-body[data-portal-view="overview"] .overview-trend-panel { grid-row: auto !important; }
.portal-body[data-portal-view="overview"] .overview-trend-panel > header,
.portal-body[data-portal-view="overview"] .overview-risk-panel > header { padding: 16px 18px 8px !important; }
.portal-body[data-portal-view="overview"] .overview-trend-panel header span,
.portal-body[data-portal-view="overview"] .overview-risk-panel header span,
.portal-body[data-portal-view="overview"] .overview-ai-copy span { color: var(--overview-forest) !important; font-size: 15px !important; }
.portal-body[data-portal-view="overview"] .overview-trend-canvas-wrap { min-height: 126px !important; padding-inline: 0 !important; }
.portal-body[data-portal-view="overview"] .overview-trend-canvas-wrap canvas { height: 126px !important; }
.portal-body[data-portal-view="overview"] .overview-trend-summary { min-height: 68px !important; }
.portal-body[data-portal-view="overview"] .overview-trend-summary > div { padding: 10px 16px !important; }
.portal-body[data-portal-view="overview"] .overview-risk-summary { display: grid !important; align-content: center !important; min-height: 188px !important; padding: 10px 18px 18px !important; }
.portal-body[data-portal-view="overview"] .overview-risk-summary > div { grid-template-columns: 64px 28px minmax(58px, 1fr) !important; }
.portal-body[data-portal-view="overview"] .overview-ai-panel {
  grid-template-columns: 1fr !important;
  align-content: center !important;
  gap: 8px !important;
  padding: 18px !important;
}
.portal-body[data-portal-view="overview"] .overview-ai-copy p { margin-bottom: 8px !important; }
.portal-body[data-portal-view="overview"] .overview-ai-panel > a {
  min-width: 0 !important;
  min-height: 34px !important;
  justify-self: start !important;
  padding: 0 12px !important;
  color: #785d24 !important;
  border: 1px solid rgba(169, 132, 59, .38) !important;
  background: #fffaf0 !important;
  font-size: 11px !important;
}
.portal-body[data-portal-view="overview"] .overview-ai-panel > a:hover,
.portal-body[data-portal-view="overview"] .overview-ai-panel > a:focus-visible { color: #fff !important; background: #8c6b2e !important; }
.portal-body[data-portal-view="overview"] .overview-supporting-metrics,
.portal-body[data-portal-view="overview"] .overview-data-note { display: none !important; }
.portal-body[data-portal-view="overview"] .portal-security {
  margin-top: 16px !important;
  border-color: var(--overview-border) !important;
  background: #fffdf8 !important;
}

@media (max-width: 1180px) {
  .portal-body[data-portal-view="overview"] .overview-cover { padding: 18px !important; }
  .portal-body[data-portal-view="overview"] .overview-landscape { width: 42%; }
  .portal-body[data-portal-view="overview"] .overview-focus-layout { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) !important; }
  .portal-body[data-portal-view="overview"] .overview-insight-grid { grid-template-columns: 1fr 1fr !important; }
  .portal-body[data-portal-view="overview"] .overview-ai-panel { grid-column: 1 / -1 !important; min-height: 170px !important; }
}
@media (max-width: 860px) {
  .portal-body[data-portal-view="overview"] .overview-landscape { display: none !important; }
  .portal-body[data-portal-view="overview"] .command-topbar { min-height: 82px !important; }
  .portal-body[data-portal-view="overview"] .overview-focus-layout { grid-template-columns: 1fr !important; grid-template-areas: "priorities" "dashboard" "insights" "note" !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 34px minmax(0, 1fr) !important; align-content: start !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { grid-column: 2 !important; grid-row: auto !important; justify-self: start !important; }
}
@media (max-width: 720px) {
  .portal-body[data-portal-view="overview"] .portal-main { padding-block: 12px 24px !important; }
  .portal-body[data-portal-view="overview"] .portal-main > .container { width: calc(100% - 20px) !important; }
  .portal-body[data-portal-view="overview"] .overview-cover { padding: 14px !important; border-radius: 20px !important; }
  .portal-body[data-portal-view="overview"] .command-topbar { min-height: 64px !important; padding-top: 0 !important; }
  .portal-body[data-portal-view="overview"] .command-greeting { padding-top: 8px !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-list { grid-template-columns: 1fr !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 38px minmax(0, 1fr) auto !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { grid-column: 3 !important; grid-row: 1 / 3 !important; align-self: center !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article { min-height: 160px !important; }
  .portal-body[data-portal-view="overview"] .overview-insight-grid { grid-template-columns: 1fr !important; }
  .portal-body[data-portal-view="overview"] .overview-ai-panel { grid-column: auto !important; }
}
@media (max-width: 480px) {
  .portal-body[data-portal-view="overview"] .command-greeting strong { font-size: 18px !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 36px minmax(0, 1fr) !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { grid-column: 2 !important; grid-row: auto !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics { grid-template-columns: 1fr !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article { min-height: 122px !important; }
}

/* OVERVIEW LIGHT OPTION 2 — 冷白数据指挥台 */
.portal-body[data-portal-view="overview"] {
  --overview-ink: #173b31;
  --overview-green: #0c805f;
  --overview-muted-light: #71817b;
  --overview-line-light: #dce5e1;
  color: var(--overview-ink) !important;
  background: #f6f9f7 !important;
}
.portal-body[data-portal-view="overview"]::before { display: none !important; }
.portal-body[data-portal-view="overview"] .portal-workspace,
.portal-body[data-portal-view="overview"] .portal-main { background: #f6f9f7 !important; }
.portal-body[data-portal-view="overview"] .portal-main > .container { width: min(1480px, calc(100% - 46px)) !important; }
.portal-body[data-portal-view="overview"] .command-topbar {
  min-height: 84px !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid #dbe4e0 !important;
}
.portal-body[data-portal-view="overview"] .command-greeting strong { color: #142f28 !important; font-size: clamp(23px, 2vw, 31px) !important; font-weight: 850 !important; }
.portal-body[data-portal-view="overview"] .command-greeting > i { color: #769087 !important; }
.portal-body[data-portal-view="overview"] .command-greeting em { color: #0c805f !important; }
.portal-body[data-portal-view="overview"] .command-topbar-meta { color: #667771 !important; }
.portal-body[data-portal-view="overview"] .command-topbar-meta i { color: #78928a !important; }
.portal-body[data-portal-view="overview"] .command-topbar-meta .command-sync,
.portal-body[data-portal-view="overview"] .command-topbar-meta .command-sync i { color: #0c8b66 !important; }

.overview-focus-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "priorities" "dashboard" "insights" "note" !important;
  gap: 14px !important;
}
.portal-body[data-portal-view="overview"] .overview-priority-board { padding: 0 !important; background: transparent !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-intro { margin-bottom: 10px !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-intro .eyebrow { margin: 0 !important; color: #24463c !important; font-size: 13px !important; font-weight: 850 !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-intro .eyebrow::before { width: 4px !important; height: 18px !important; margin-right: 10px !important; border-radius: 4px !important; background: #0b8b66 !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-intro h1,
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-intro > p:last-child { display: none !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  min-height: 92px !important;
  align-items: center !important;
  gap: 2px 14px !important;
  padding: 18px 20px !important;
  border: 1px solid #dce5e1 !important;
  border-left: 4px solid #6bb59d !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(20, 69, 54, .04) !important;
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item:first-child { border-left-color: #f0665b !important; background: #fffafa !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-warning { border-left-color: #f09a3c !important; background: #fffdf8 !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item:hover { border-color: #a9c9bd !important; transform: translateY(-1px) !important; box-shadow: 0 10px 24px rgba(20, 69, 54, .08) !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item > span {
  grid-row: 1 / 3 !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  border-radius: 50% !important;
  color: #0c805f !important;
  background: #e8f5ef !important;
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-urgent > span { color: #de5549 !important; background: #fff0ed !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-warning > span { color: #de7d1d !important; background: #fff4df !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item h2 { margin: 0 !important; color: #1b302a !important; font-size: 15px !important; font-weight: 850 !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item p { margin: 5px 0 0 !important; color: #76857f !important; font-size: 11px !important; }
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a {
  grid-column: 3 !important;
  grid-row: 1 / 3 !important;
  min-width: 66px !important;
  min-height: 38px !important;
  justify-content: center !important;
  padding: 0 13px !important;
  border: 1px solid #84b9a6 !important;
  border-radius: 8px !important;
  color: #087858 !important;
  background: #fff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a:hover,
.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a:focus-visible { color: #fff !important; background: #0c805f !important; }

.portal-body[data-portal-view="overview"] .overview-dashboard { overflow: visible !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.portal-body[data-portal-view="overview"] .overview-dashboard-head { min-height: 50px !important; padding: 0 !important; background: transparent !important; }
.portal-body[data-portal-view="overview"] .overview-dashboard-head > div:first-child { display: none !important; }
.portal-body[data-portal-view="overview"] .overview-dashboard-head .overview-period-bar { display: flex !important; width: 100% !important; justify-content: flex-end !important; gap: 12px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.portal-body[data-portal-view="overview"] .overview-period-tabs { gap: 0 !important; overflow: hidden !important; padding: 0 !important; border: 1px solid #d7e1dd !important; border-radius: 9px !important; background: #fff !important; }
.portal-body[data-portal-view="overview"] .overview-period-tabs button { width: 58px !important; height: 40px !important; border: 0 !important; border-right: 1px solid #e3e9e6 !important; border-radius: 0 !important; color: #66756f !important; background: #fff !important; box-shadow: none !important; }
.portal-body[data-portal-view="overview"] .overview-period-tabs button:last-child { border-right: 0 !important; }
.portal-body[data-portal-view="overview"] .overview-period-tabs button.is-active { color: #fff !important; background: #0b8a65 !important; }
.portal-body[data-portal-view="overview"] .overview-date-range { flex: 0 0 auto !important; min-width: 190px !important; min-height: 40px !important; padding: 0 16px !important; border: 1px solid #d7e1dd !important; border-radius: 9px !important; color: #6d7c77 !important; background: #fff !important; }
.portal-body[data-portal-view="overview"] .overview-date-range strong { color: #31433d !important; }
.overview-fluid-canvas,
.overview-fluid-fallback,
.overview-ai-particles { display: none !important; }
.portal-body[data-portal-view="overview"] .overview-key-metrics {
  display: grid !important;
  min-height: 132px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  border: 1px solid #d8e3df !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(21, 69, 54, .04) !important;
}
.portal-body[data-portal-view="overview"] .overview-key-metrics::before { display: none !important; }
.portal-body[data-portal-view="overview"] .overview-key-metrics article {
  position: relative !important;
  min-height: 132px !important;
  padding: 22px 24px !important;
  border: 0 !important;
  border-right: 1px solid #e1e8e5 !important;
  color: #152d26 !important;
  background: #fff !important;
}
.portal-body[data-portal-view="overview"] .overview-key-metrics article:last-of-type { border-right: 0 !important; }
.portal-body[data-portal-view="overview"] .overview-key-metrics article > i { display: block !important; position: absolute !important; top: 22px !important; right: 22px !important; color: #8a9a94 !important; font-size: 16px !important; }
.portal-body[data-portal-view="overview"] .overview-key-metrics span { color: #60716b !important; font-size: 13px !important; }
.portal-body[data-portal-view="overview"] .overview-key-metrics strong { margin: 12px 0 4px !important; color: #07805d !important; font-size: clamp(31px, 3vw, 42px) !important; font-weight: 780 !important; text-shadow: none !important; }
.portal-body[data-portal-view="overview"] .overview-key-metrics small { color: #7a8984 !important; font-size: 11px !important; }
.portal-body[data-portal-view="overview"] .overview-key-metrics article:nth-of-type(1)::after,
.portal-body[data-portal-view="overview"] .overview-key-metrics article:nth-of-type(2)::after,
.portal-body[data-portal-view="overview"] .overview-key-metrics article:nth-of-type(3)::after,
.portal-body[data-portal-view="overview"] .overview-key-metrics article:nth-of-type(4)::after { position: absolute; right: 24px; bottom: 23px; width: 76px; height: 18px; opacity: .6; border-bottom: 2px solid #72bca4; content: ""; transform: skewY(-7deg); }

.portal-body[data-portal-view="overview"] .overview-insight-grid { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(440px, 1fr) !important; gap: 14px 16px !important; margin-top: 0 !important; align-items: stretch !important; }
.portal-body[data-portal-view="overview"] .overview-trend-panel { grid-row: 1 / span 2 !important; }
.portal-body[data-portal-view="overview"] .overview-trend-panel,
.portal-body[data-portal-view="overview"] .overview-risk-panel,
.portal-body[data-portal-view="overview"] .overview-ai-panel {
  color: #1d342d !important;
  border: 1px solid #d9e3df !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(21, 69, 54, .04) !important;
  backdrop-filter: none !important;
}
.portal-body[data-portal-view="overview"] .overview-trend-panel > header,
.portal-body[data-portal-view="overview"] .overview-risk-panel > header { padding: 18px 20px 10px !important; }
.portal-body[data-portal-view="overview"] .overview-trend-panel header span,
.portal-body[data-portal-view="overview"] .overview-risk-panel header span { color: #18382f !important; font-size: 17px !important; }
.portal-body[data-portal-view="overview"] .overview-trend-panel header small,
.portal-body[data-portal-view="overview"] .overview-risk-panel header small { color: #7a8984 !important; }
.portal-body[data-portal-view="overview"] .overview-trend-panel header a,
.portal-body[data-portal-view="overview"] .overview-risk-panel header a { color: #0a805e !important; }
.portal-body[data-portal-view="overview"] .overview-trend-canvas-wrap { min-height: 330px !important; padding-inline: 6px !important; }
.portal-body[data-portal-view="overview"] .overview-trend-canvas-wrap canvas { height: 315px !important; }
.portal-body[data-portal-view="overview"] .overview-trend-summary { border-top-color: #e2e9e6 !important; }
.portal-body[data-portal-view="overview"] .overview-trend-summary > div + div { border-left-color: #e2e9e6 !important; }
.portal-body[data-portal-view="overview"] .overview-trend-summary span,
.portal-body[data-portal-view="overview"] .overview-trend-summary small { color: #73837d !important; }
.portal-body[data-portal-view="overview"] .overview-trend-summary strong { color: #173c31 !important; }
.portal-body[data-portal-view="overview"] .overview-risk-summary { padding: 4px 20px 14px !important; }
.portal-body[data-portal-view="overview"] .overview-risk-summary > div { grid-template-columns: 72px 34px minmax(80px, 1fr) !important; color: #65756f !important; }
.portal-body[data-portal-view="overview"] .overview-risk-summary strong { color: #18382f !important; }
.portal-body[data-portal-view="overview"] .overview-risk-summary i { background: #edf2ef !important; }
.portal-body[data-portal-view="overview"] .overview-risk-summary > div:nth-child(1) b { background: #ef6a5c !important; }
.portal-body[data-portal-view="overview"] .overview-risk-summary > div:nth-child(2) b { background: #f2a340 !important; }
.portal-body[data-portal-view="overview"] .overview-risk-summary > div:nth-child(3) b { background: #48b79b !important; }
.portal-body[data-portal-view="overview"] .overview-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; border-top: 1px solid #e2e9e6 !important; background: #fbfcfb !important; }
.portal-body[data-portal-view="overview"] .overview-metric-grid article { min-height: 70px !important; padding: 11px 14px !important; border-color: #e4eae7 !important; background: #fbfcfb !important; }
.portal-body[data-portal-view="overview"] .overview-metric-grid span,
.portal-body[data-portal-view="overview"] .overview-metric-grid small { color: #74827d !important; }
.portal-body[data-portal-view="overview"] .overview-metric-grid strong { color: #173a30 !important; font-size: 19px !important; }
.portal-body[data-portal-view="overview"] .overview-risk-metric a { color: #0b7e5e !important; }
.portal-body[data-portal-view="overview"] .overview-supporting-metrics { grid-column: 1 / -1 !important; overflow: hidden !important; border: 1px solid #d9e3df !important; border-radius: 13px !important; box-shadow: 0 5px 18px rgba(21, 69, 54, .04) !important; }
.portal-body[data-portal-view="overview"] .overview-supporting-metrics article { min-height: 84px !important; background: #fff !important; }

.portal-body[data-portal-view="overview"] .overview-ai-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  min-height: 176px !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 18px 20px !important;
  text-align: left !important;
}
.portal-body[data-portal-view="overview"] .overview-ai-orb { display: none !important; }
.portal-body[data-portal-view="overview"] .overview-ai-copy span { color: #18382f !important; font-size: 17px !important; }
.portal-body[data-portal-view="overview"] .overview-ai-copy p { margin: 5px 0 10px !important; color: #74837e !important; font-size: 11px !important; line-height: 1.55 !important; }
.overview-ai-actions { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: overview-ai; }
.overview-ai-actions li { position: relative; padding-left: 25px; color: #40534d; font-size: 11px; line-height: 1.55; counter-increment: overview-ai; }
.overview-ai-actions li::before { position: absolute; top: 0; left: 0; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #fff; background: #0b8964; font-size: 9px; font-weight: 850; content: counter(overview-ai); }
.portal-body[data-portal-view="overview"] .overview-ai-panel > a { width: auto !important; min-width: 130px !important; min-height: 42px !important; margin: 0 !important; padding: 0 15px !important; border: 0 !important; border-radius: 8px !important; color: #fff !important; background: #0a805f !important; box-shadow: none !important; }
.portal-body[data-portal-view="overview"] .overview-ai-panel > a:hover,
.portal-body[data-portal-view="overview"] .overview-ai-panel > a:focus-visible { background: #075f47 !important; }
.portal-body[data-portal-view="overview"] .overview-data-note { position: relative !important; margin: 0 !important; padding: 15px 18px 15px 112px !important; color: #52645e !important; border: 1px solid #d7e5df !important; border-radius: 12px !important; background: #eff7f3 !important; }
.portal-body[data-portal-view="overview"] .overview-data-note::before { position: absolute; top: 50%; left: 18px; color: #087858; font-weight: 900; content: "今日洞察"; transform: translateY(-50%); }
.portal-body[data-portal-view="overview"] .portal-security { color: #24443b !important; border-color: #dbe4e0 !important; background: #fff !important; box-shadow: 0 5px 18px rgba(21, 69, 54, .04) !important; backdrop-filter: none !important; }
.portal-body[data-portal-view="overview"] .portal-security .panel-label { color: #0b805f !important; }
.portal-body[data-portal-view="overview"] .portal-security .check-list { color: #344d45 !important; }
.portal-body[data-portal-view="overview"] .portal-security .check-list li { border-color: #e1e8e5 !important; background: #f8faf9 !important; }
.portal-body[data-portal-view="overview"] .portal-security .check-list li::before { color: #0a805f !important; }
.portal-body[data-portal-view="overview"] .portal-updated { color: #7b8984 !important; }
.portal-body[data-portal-view="overview"] .portal-mobile-header { border-bottom-color: #dce5e1 !important; background: rgba(255,255,255,.96) !important; }
.portal-body[data-portal-view="overview"] .portal-mobile-header .brand { color: #143b30 !important; }
.portal-body[data-portal-view="overview"] .portal-mobile-header .brand small { color: #788781 !important; }
.portal-body[data-portal-view="overview"] .portal-mobile-header button { color: #087858 !important; border-color: #b8cfc6 !important; background: #fff !important; }

@media (max-width: 1180px) {
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-list { grid-template-columns: 1fr !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { min-height: 78px !important; }
  .portal-body[data-portal-view="overview"] .overview-insight-grid { grid-template-columns: 1fr !important; }
  .portal-body[data-portal-view="overview"] .overview-trend-panel { grid-row: auto !important; }
}
@media (max-width: 720px) {
  .portal-body[data-portal-view="overview"] .portal-main > .container { width: min(100% - 24px, 680px) !important; }
  .portal-body[data-portal-view="overview"] .command-topbar { min-height: 70px !important; }
  .portal-body[data-portal-view="overview"] .command-topbar-meta { display: none !important; }
  .portal-body[data-portal-view="overview"] .overview-dashboard-head .overview-period-bar { align-items: stretch !important; flex-direction: row !important; }
  .portal-body[data-portal-view="overview"] .overview-period-tabs { flex: 1 1 auto !important; }
  .portal-body[data-portal-view="overview"] .overview-period-tabs button { flex: 1 1 0 !important; width: auto !important; }
  .portal-body[data-portal-view="overview"] .overview-date-range { min-width: 0 !important; flex: 1 1 46% !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics { min-height: 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article { min-height: 124px !important; padding: 18px !important; border-bottom: 1px solid #e1e8e5 !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article:nth-of-type(2) { border-right: 0 !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article:nth-last-of-type(-n+2) { border-bottom: 0 !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article:nth-of-type(3) { border-right: 1px solid #e1e8e5 !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics strong { font-size: 30px !important; }
  .portal-body[data-portal-view="overview"] .overview-trend-canvas-wrap { min-height: 245px !important; }
  .portal-body[data-portal-view="overview"] .overview-trend-canvas-wrap canvas { height: 230px !important; }
  .portal-body[data-portal-view="overview"] .overview-ai-panel { grid-template-columns: 1fr !important; }
  .portal-body[data-portal-view="overview"] .overview-ai-panel > a { width: 100% !important; }
}
@media (max-width: 500px) {
  .portal-body[data-portal-view="overview"] .command-greeting strong { font-size: 18px !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 40px minmax(0, 1fr) !important; padding: 15px !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item > span { width: 38px !important; height: 38px !important; }
  .portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { grid-column: 2 !important; grid-row: auto !important; justify-self: start !important; min-height: 34px !important; }
  .portal-body[data-portal-view="overview"] .overview-dashboard-head .overview-period-bar { flex-direction: column !important; }
  .portal-body[data-portal-view="overview"] .overview-date-range { width: 100% !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics { grid-template-columns: 1fr !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article { min-height: 108px !important; border-right: 0 !important; border-bottom: 1px solid #e1e8e5 !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article:nth-last-of-type(-n+2) { border-bottom: 1px solid #e1e8e5 !important; }
  .portal-body[data-portal-view="overview"] .overview-key-metrics article:last-of-type { border-bottom: 0 !important; }
  .portal-body[data-portal-view="overview"] .overview-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .portal-body[data-portal-view="overview"] .overview-data-note { padding-left: 18px !important; padding-top: 42px !important; }
  .portal-body[data-portal-view="overview"] .overview-data-note::before { top: 15px !important; transform: none !important; }
}

/* Route visibility must win over view-specific layout declarations. */
/* 2026-08-21 · 会员出勤雪山湖景方案 1 */
body.portal-body[data-portal-view="attendance"] .portal-main {
  background: #f7f5ee !important;
}
body.portal-body[data-portal-view="attendance"] #attendance {
  --attendance-panel: rgba(255,255,252,.96);
  --attendance-line: #dfe4da;
  position: relative;
  isolation: isolate;
  padding: 0 0 34px;
  color: #183f33;
}
body.portal-body[data-portal-view="attendance"] #attendance::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 610px;
  border-radius: 24px 24px 0 0;
  background: #f7f5ee url("/assets/images/attendance-hero-alpine-lake.webp?v=20260821-attendance-alpine1") center top / cover no-repeat;
  content: "";
  pointer-events: none;
}
body.portal-body[data-portal-view="attendance"] #attendance > * {
  position: relative;
  z-index: 1;
}
body.portal-body[data-portal-view="attendance"] #attendance > .member-workspace-tabs-attendance {
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 36px);
  margin: 18px 0 -66px 18px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.portal-body[data-portal-view="attendance"] .member-workspace-tabs-attendance a {
  min-height: 46px;
  padding-inline: 18px;
  border-color: rgba(194,204,194,.84);
  border-radius: 10px;
  background: rgba(255,255,252,.9);
  box-shadow: 0 7px 22px rgba(32,61,50,.09);
  backdrop-filter: blur(10px);
}
body.portal-body[data-portal-view="attendance"] .member-workspace-tabs-attendance a.is-active {
  border-color: #1f6748;
  background: #1f6748;
  box-shadow: 0 9px 20px rgba(30,87,63,.22);
}
body.portal-body[data-portal-view="attendance"] .attendance-hero {
  min-height: 430px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 132px 34px 120px !important;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: transparent !important;
  box-shadow: none;
}
body.portal-body[data-portal-view="attendance"] .attendance-hero::after {
  display: none;
}
body.portal-body[data-portal-view="attendance"] .attendance-hero > div {
  width: min(560px, 46%);
}
body.portal-body[data-portal-view="attendance"] .attendance-hero .panel-label {
  margin: 0 0 14px;
  color: #4b7428;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .02em;
}
body.portal-body[data-portal-view="attendance"] .attendance-hero h2 {
  margin: 0;
  color: #164635;
  font-size: clamp(42px,4vw,58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.055em;
}
body.portal-body[data-portal-view="attendance"] .attendance-hero p:last-child {
  max-width: 540px;
  margin: 17px 0 0;
  color: #435b52;
  font-size: 15px;
  line-height: 1.7;
}
body.portal-body[data-portal-view="attendance"] .attendance-summary {
  z-index: 3 !important;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin: -104px 0 14px;
}
body.portal-body[data-portal-view="attendance"] .attendance-summary article {
  min-height: 138px;
  padding: 22px 22px 19px;
  border: 1px solid rgba(207,214,204,.94);
  border-radius: 18px;
  background: rgba(255,255,252,.94);
  box-shadow: 0 14px 28px rgba(43,69,57,.12);
  backdrop-filter: blur(14px);
}
body.portal-body[data-portal-view="attendance"] .attendance-summary article > i {
  top: 17px;
  right: 18px;
  width: 39px;
  height: 39px;
  color: #64831e;
  background: #eff6d8;
}
body.portal-body[data-portal-view="attendance"] .attendance-summary article > span {
  color: #52685f;
  font-size: 14px;
}
body.portal-body[data-portal-view="attendance"] .attendance-summary strong {
  margin: 16px 0 8px;
  color: #173f33;
  font-size: 36px;
}
body.portal-body[data-portal-view="attendance"] .attendance-summary small {
  color: #71837b;
  font-size: 13px;
}
body.portal-body[data-portal-view="attendance"] .attendance-summary article.is-attention {
  border-color: #ead8a8;
  background: rgba(255,253,247,.95);
}
body.portal-body[data-portal-view="attendance"] .attendance-type-tabs {
  min-height: 58px;
  margin: 0 0 14px;
  padding: 7px 10px;
  border-color: rgba(211,218,208,.92);
  border-radius: 15px;
  background: rgba(255,255,252,.93);
  box-shadow: 0 10px 25px rgba(43,70,57,.08);
  backdrop-filter: blur(12px);
}
body.portal-body[data-portal-view="attendance"] .attendance-type-tabs button {
  min-height: 43px;
  padding-inline: 20px;
  border-radius: 10px;
  font-size: 14px;
}
body.portal-body[data-portal-view="attendance"] .attendance-type-tabs button.is-active {
  color: #183f33;
  background: #dbf36d;
}
body.portal-body[data-portal-view="attendance"] .attendance-filter-panel {
  grid-template-columns: minmax(280px,1.7fr) repeat(3,minmax(160px,.8fr)) auto;
  gap: 12px;
  padding: 16px 18px 17px;
  border-color: rgba(211,218,208,.92);
  border-radius: 17px;
  background: rgba(255,255,252,.95);
  box-shadow: 0 12px 28px rgba(43,70,57,.09);
  backdrop-filter: blur(12px);
}
body.portal-body[data-portal-view="attendance"] .attendance-filter-panel input,
body.portal-body[data-portal-view="attendance"] .attendance-filter-panel select {
  min-height: 46px;
  border-radius: 10px;
  background: rgba(255,255,252,.92);
}
body.portal-body[data-portal-view="attendance"] .attendance-filter-actions button {
  min-height: 46px;
  border-radius: 10px;
}
body.portal-body[data-portal-view="attendance"] .attendance-filter-actions button[type="submit"] {
  border-color: #2d6b35;
  background: #2d6b35;
}
body.portal-body[data-portal-view="attendance"] .attendance-table-panel {
  margin-top: 14px;
  border-color: #dfe4da;
  border-radius: 18px;
  background: rgba(255,255,252,.97);
  box-shadow: 0 14px 34px rgba(43,70,57,.07);
}
body.portal-body[data-portal-view="attendance"] .attendance-table-panel > header {
  padding: 19px 22px 15px;
}
body.portal-body[data-portal-view="attendance"] .attendance-table-panel h3 {
  font-size: 24px;
}
body.portal-body[data-portal-view="attendance"] .attendance-table th {
  background: #f4f6ef;
  font-size: 12px;
}
body.portal-body[data-portal-view="attendance"] .attendance-table td {
  padding-block: 14px;
}
@media (max-width: 1100px) {
  body.portal-body[data-portal-view="attendance"] .attendance-summary {
    grid-template-columns: repeat(2,minmax(0,1fr));
    margin-top: -82px;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-filter-panel {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.portal-body[data-portal-view="attendance"] .attendance-search {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  body.portal-body[data-portal-view="attendance"] #attendance::before {
    height: 520px;
    background-position: 58% top;
  }
  body.portal-body[data-portal-view="attendance"] .member-workspace-tabs-attendance {
    width: calc(100% - 20px);
    max-width: none;
    margin: 10px 10px -61px;
    padding-block: 4px !important;
  }
  body.portal-body[data-portal-view="attendance"] .member-workspace-tabs-attendance a {
    min-height: 42px;
    padding-inline: 13px;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-hero {
    min-height: 350px;
    padding: 104px 20px 106px !important;
    background: linear-gradient(90deg, rgba(249,248,242,.9) 0%, rgba(249,248,242,.68) 58%, rgba(249,248,242,.08) 100%) !important;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-hero > div {
    width: 86%;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-hero h2 {
    font-size: 34px;
    line-height: 1.04;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-hero p:last-child {
    max-width: 300px;
    font-size: 12px;
    line-height: 1.55;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-summary {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0;
    margin: -82px 8px 14px;
    overflow: hidden;
    border: 1px solid #dfe4da;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(43,69,57,.11);
  }
  body.portal-body[data-portal-view="attendance"] .attendance-summary article {
    min-height: 105px;
    padding: 15px;
    border: 0;
    border-right: 1px solid #e1e6dd;
    border-bottom: 1px solid #e1e6dd;
    border-radius: 0;
    box-shadow: none;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-summary article:nth-child(2n) { border-right: 0; }
  body.portal-body[data-portal-view="attendance"] .attendance-summary article:nth-last-child(-n+2) { border-bottom: 0; }
  body.portal-body[data-portal-view="attendance"] .attendance-summary article > i {
    width: 32px;
    height: 32px;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-summary strong {
    margin: 10px 0 5px;
    font-size: 28px;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-summary small {
    font-size: 11px;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-type-tabs {
    align-items: stretch;
    overflow-x: auto;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-type-tabs button {
    flex: 0 0 auto;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-type-tabs > span {
    display: none;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-filter-panel {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-search {
    grid-column: auto;
  }
  body.portal-body[data-portal-view="attendance"] .attendance-filter-actions button {
    flex: 1;
  }
}

[data-dashboard] [data-portal-view][hidden] { display: none !important; }

/* Marketing center — selected editorial wellness direction. */
body.portal-body[data-portal-view="marketing"] .portal-main { background: #faf8f2; }
body.portal-body[data-portal-view="marketing"] .portal-main > .container { max-width: 1500px; }
.marketing-view {
  gap: 0;
  padding-bottom: 36px;
  color: #183d33;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.marketing-hero {
  position: relative;
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 52px 56px;
  border: 1px solid #e5ddcf;
  border-radius: 28px 28px 0 0;
  color: #173f34;
  background:
    linear-gradient(90deg, rgba(250,248,242,.99) 0%, rgba(250,248,242,.97) 35%, rgba(250,248,242,.76) 49%, rgba(250,248,242,.08) 68%, rgba(250,248,242,0) 100%),
    url("../images/marketing-hero-wellness-editorial.jpg") center / cover no-repeat;
  box-shadow: none;
}
.marketing-hero::after { content: none; }
.marketing-hero > div { width: min(520px, 46%); }
.marketing-hero .panel-label {
  color: #9a762e;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
}
.marketing-hero h2 {
  margin: 20px 0 18px;
  color: #0b4f3c;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  font-size: clamp(54px, 5vw, 78px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .98;
}
.marketing-hero p:not(.panel-label) {
  max-width: 500px;
  margin: 0;
  color: #5d665f;
  font-size: 15px;
  line-height: 1.85;
}
.marketing-stage {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  border: 1px solid rgba(178,139,59,.58);
  border-radius: 999px;
  color: #f3e5b5;
  background: rgba(11,65,50,.92);
  box-shadow: 0 12px 32px rgba(30,55,45,.16);
  font-size: 12px;
  white-space: nowrap;
}
.marketing-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #e5ddcf;
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: rgba(255,254,250,.96);
}
.marketing-roadmap article {
  min-height: 270px;
  padding: 38px 34px 34px;
  border: 0;
  border-right: 1px solid #e9e2d7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.marketing-roadmap article:last-child { border-right: 0; }
.marketing-roadmap article > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c4b497;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}
.marketing-roadmap article > span i {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #ece4d6;
  border-radius: 50%;
  color: #0c5b46;
  background: #f6f2e9;
  font-size: 23px;
}
.marketing-roadmap h3 {
  margin: 30px 0 12px;
  color: #113f34;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  font-size: 26px;
  font-weight: 600;
}
.marketing-roadmap p {
  min-height: 56px;
  margin: 0;
  color: #6b716c;
  font-size: 13px;
  line-height: 1.8;
}
.marketing-roadmap em {
  display: inline-flex;
  margin-top: 24px;
  padding: 0;
  border-radius: 0;
  color: #a77d31;
  background: transparent;
  font-size: 12px;
  font-style: normal;
}
.marketing-safety-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 26px;
  border: 1px solid #ded2bb;
  border-radius: 14px;
  color: #6a5325;
  background: rgba(255,252,244,.88);
}
.marketing-safety-note > i { color: #a37c2d; font-size: 24px; }
.marketing-safety-note strong { display: block; margin-bottom: 4px; color: #654d20; }
.marketing-safety-note p { margin: 0; color: #887a60; font-size: 12px; }
@media (max-width: 900px) {
  .marketing-hero {
    min-height: 430px;
    align-items: flex-start;
    flex-direction: column;
    padding: 40px 34px;
    background-position: 64% center;
    background-image:
      linear-gradient(90deg, rgba(250,248,242,.99) 0%, rgba(250,248,242,.94) 48%, rgba(250,248,242,.5) 72%, rgba(250,248,242,.12) 100%),
      url("../images/marketing-hero-wellness-editorial.jpg");
  }
  .marketing-hero > div { width: min(500px, 72%); }
  .marketing-roadmap { grid-template-columns: 1fr; }
  .marketing-roadmap article { min-height: 0; border-right: 0; border-bottom: 1px solid #e9e2d7; }
  .marketing-roadmap article:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .marketing-hero {
    min-height: 520px;
    padding: 30px 24px;
    border-radius: 22px 22px 0 0;
    background-position: 70% center;
    background-image:
      linear-gradient(180deg, rgba(250,248,242,.99) 0%, rgba(250,248,242,.94) 44%, rgba(250,248,242,.36) 78%, rgba(250,248,242,.08) 100%),
      url("../images/marketing-hero-wellness-editorial.jpg");
  }
  .marketing-hero > div { width: 100%; }
  .marketing-hero h2 { font-size: 52px; }
  .marketing-stage { right: 20px; bottom: 20px; left: 20px; justify-content: center; white-space: normal; }
  .marketing-roadmap { border-radius: 0 0 22px 22px; }
  .marketing-roadmap article { padding: 30px 24px; }
  .marketing-safety-note { align-items: flex-start; }
}


/* 2026-08-21 · 经营提醒稻城亚丁米白方案 1 */
body.portal-body[data-portal-view="risks"] .portal-main {
  background: #f7f4ec;
}
body.portal-body[data-portal-view="risks"] #risks {
  --risk-ink: #17231f;
  --risk-muted: #6d7772;
  --risk-line: #e5e0d6;
  --risk-surface: rgba(255,255,252,.94);
  color: var(--risk-ink);
}
body.portal-body[data-portal-view="risks"] .risk-page-head {
  position: relative;
  display: block !important;
  min-height: 246px;
  margin-bottom: 0;
  overflow: hidden;
  padding: 43px 42px 50px !important;
  border: 1px solid #e8e0d1;
  border-radius: 24px 24px 16px 16px;
  background: #fbf8f0 !important;
  box-shadow: 0 14px 35px rgba(60,48,23,.08);
}
body.portal-body[data-portal-view="risks"] .risk-page-head > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
body.portal-body[data-portal-view="risks"] .risk-hero-copy {
  position: relative;
  z-index: 1;
  width: min(560px, 46%);
}
body.portal-body[data-portal-view="risks"] .risk-hero-copy .panel-label {
  margin: 0 0 15px;
  color: #183d31;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .02em;
}
body.portal-body[data-portal-view="risks"] .risk-hero-copy h2 {
  margin: 0;
  color: #121b18;
  font-size: clamp(40px, 3.4vw, 54px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.04em;
}
body.portal-body[data-portal-view="risks"] .risk-hero-copy > p:last-child {
  max-width: 520px;
  margin: 16px 0 0;
  color: #4f5e58;
  font-size: 14px;
  line-height: 1.7;
}
body.portal-body[data-portal-view="risks"] .risk-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: -28px 12px 20px;
  overflow: hidden;
  border: 1px solid #e4ded4;
  border-top: 2px solid #e86b50;
  border-radius: 17px;
  background: var(--risk-surface);
  box-shadow: 0 12px 30px rgba(49,38,20,.09);
  backdrop-filter: blur(15px);
}
body.portal-body[data-portal-view="risks"] .risk-summary-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 20px 24px;
  border: 0;
  border-right: 1px solid var(--risk-line);
  border-radius: 0;
  background: transparent;
}
body.portal-body[data-portal-view="risks"] .risk-summary-item:last-child {
  border-right: 0;
}
body.portal-body[data-portal-view="risks"] .risk-summary-item > i {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  color: #d95d46;
  background: #fff0eb;
  font-size: 30px;
}
body.portal-body[data-portal-view="risks"] .risk-summary-item.risk-renewal > i {
  color: #e58d00;
  background: #fff4dc;
}
body.portal-body[data-portal-view="risks"] .risk-summary-item.risk-attention > i {
  color: #397eae;
  background: #edf6fb;
}
body.portal-body[data-portal-view="risks"] .risk-summary-item.risk-incomplete > i {
  color: #1d7758;
  background: #edf5f0;
}
body.portal-body[data-portal-view="risks"] .risk-summary-item strong {
  color: #111916;
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
body.portal-body[data-portal-view="risks"] .risk-summary-item span {
  margin-top: 8px;
  color: #5d6964;
  font-size: 13px;
  font-weight: 650;
}
body.portal-body[data-portal-view="risks"] .risk-toolbar {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--risk-line);
  border-radius: 16px;
  background: rgba(255,255,252,.88);
  box-shadow: 0 8px 24px rgba(50,42,27,.05);
}
body.portal-body[data-portal-view="risks"] .risk-toolbar label {
  color: #303d38;
  font-size: 12px;
  font-weight: 750;
}
body.portal-body[data-portal-view="risks"] .risk-toolbar input,
body.portal-body[data-portal-view="risks"] .risk-toolbar select {
  min-height: 42px;
  margin-top: 8px;
  border-color: #ddd8ce;
  border-radius: 10px;
  color: #26332e;
  background: #fffefb;
  font-size: 13px;
}
body.portal-body[data-portal-view="risks"] .risk-record-panel {
  padding: 21px 22px 16px;
  border: 1px solid var(--risk-line);
  border-radius: 18px;
  background: rgba(255,255,252,.92);
  box-shadow: 0 14px 34px rgba(50,42,27,.06);
}
body.portal-body[data-portal-view="risks"] .risk-record-panel > h3 {
  margin: 0 0 16px;
  color: #1b2a24;
  font-size: 17px;
  font-weight: 850;
}
body.portal-body[data-portal-view="risks"] .risk-list-head {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(190px, .95fr) minmax(150px, .72fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 16px 12px;
  border-bottom: 1px solid #e2ddd3;
  color: #5a6762;
  font-size: 12px;
  font-weight: 750;
}
body.portal-body[data-portal-view="risks"] .risk-list {
  display: block;
  max-height: none;
}
body.portal-body[data-portal-view="risks"] .risk-list .risk-item {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(190px, .95fr) minmax(150px, .72fr) auto;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #ebe6dc;
  border-radius: 0;
  background: transparent;
}
body.portal-body[data-portal-view="risks"] .risk-list .risk-item:last-child {
  border-bottom: 0;
}
body.portal-body[data-portal-view="risks"] .risk-item-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  gap: 13px;
}
body.portal-body[data-portal-view="risks"] .risk-member-initial {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #244f41;
  background: #f2efe7;
  font-size: 16px;
  font-weight: 800;
}
body.portal-body[data-portal-view="risks"] .risk-member-identity {
  min-width: 0;
}
body.portal-body[data-portal-view="risks"] .risk-member-identity strong {
  display: block;
  overflow: hidden;
  color: #17231f;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.portal-body[data-portal-view="risks"] .risk-coach {
  margin: 5px 0 0;
  overflow: hidden;
  color: #7a817d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.portal-body[data-portal-view="risks"] .risk-item-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
body.portal-body[data-portal-view="risks"] .risk-item-badges span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #236246;
  background: #edf5ee;
  font-size: 11px;
  font-weight: 750;
}
body.portal-body[data-portal-view="risks"] .risk-list .risk-high .risk-item-badges span:first-child {
  color: #d2513d;
  background: #fff0ec;
}
body.portal-body[data-portal-view="risks"] .risk-list .risk-renewal .risk-item-badges span:first-child,
body.portal-body[data-portal-view="risks"] .risk-item-badges span:last-child:not(:first-child) {
  color: #b96f00;
  background: #fff4df;
}
body.portal-body[data-portal-view="risks"] .risk-process {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #226b4d;
  font-size: 12px;
  font-weight: 750;
}
body.portal-body[data-portal-view="risks"] .risk-process i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #1a8b63;
}
body.portal-body[data-portal-view="risks"] .risk-process-pending,
body.portal-body[data-portal-view="risks"] .risk-process-later {
  color: #cf7600;
}
body.portal-body[data-portal-view="risks"] .risk-process-pending i,
body.portal-body[data-portal-view="risks"] .risk-process-later i {
  background: #ef8c00;
}
body.portal-body[data-portal-view="risks"] .risk-process-ignored {
  color: #7c817f;
}
body.portal-body[data-portal-view="risks"] .risk-process-ignored i {
  background: #9da4a1;
}
body.portal-body[data-portal-view="risks"] .risk-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 0;
}
body.portal-body[data-portal-view="risks"] .risk-actions button {
  min-height: 34px;
  padding: 7px 13px;
  border-color: #dcd8cf;
  border-radius: 9px;
  color: #174c3a;
  background: #fffefb;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
body.portal-body[data-portal-view="risks"] .risk-actions button:hover,
body.portal-body[data-portal-view="risks"] .risk-actions button:focus-visible {
  border-color: #176d50;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(23,109,80,.12);
}
body.portal-body[data-portal-view="risks"] .risk-actions button.is-active {
  border-color: #0e6b4d;
  background: #0e6b4d;
  box-shadow: 0 6px 15px rgba(14,107,77,.18);
}
body.portal-body[data-portal-view="risks"] .risk-item details {
  grid-column: 1 / 4;
  margin: -2px 0 0 55px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
body.portal-body[data-portal-view="risks"] .risk-item summary {
  color: #176e50;
  font-size: 11px;
  font-weight: 750;
}
body.portal-body[data-portal-view="risks"] .risk-item details p {
  margin: 9px 0 0;
  color: #68746f;
  font-size: 11px;
  line-height: 1.65;
}
body.portal-body[data-portal-view="risks"] .risk-record-panel .panel-note {
  margin: 12px 0 0;
  color: #858b87;
  font-size: 11px;
}
body.portal-body[data-portal-view="risks"] .risk-pagination {
  border-color: #e8e2d8;
}

@media (max-width: 900px) {
  body.portal-body[data-portal-view="risks"] .risk-page-head {
    min-height: 224px;
    padding: 34px 30px 44px !important;
  }
  body.portal-body[data-portal-view="risks"] .risk-hero-copy {
    width: min(520px, 58%);
  }
  body.portal-body[data-portal-view="risks"] .risk-summary-item {
    grid-template-columns: 46px minmax(0,1fr);
    gap: 10px;
    padding: 16px;
  }
  body.portal-body[data-portal-view="risks"] .risk-summary-item > i {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
  body.portal-body[data-portal-view="risks"] .risk-list-head,
  body.portal-body[data-portal-view="risks"] .risk-list .risk-item {
    grid-template-columns: minmax(220px,1.15fr) minmax(150px,.9fr) minmax(120px,.7fr) auto;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  body.portal-body[data-portal-view="risks"] .risk-page-head {
    min-height: 286px;
    padding: 30px 22px 38px !important;
    border-radius: 20px 20px 14px 14px;
  }
  body.portal-body[data-portal-view="risks"] .risk-page-head::after {
    content: "";
    position: absolute;
    z-index: .5;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(250,247,238,.98) 0%, rgba(250,247,238,.86) 48%, rgba(250,247,238,.3) 78%, transparent 100%);
  }
  body.portal-body[data-portal-view="risks"] .risk-page-head > img {
    object-position: 58% center;
  }
  body.portal-body[data-portal-view="risks"] .risk-hero-copy {
    width: 82%;
  }
  body.portal-body[data-portal-view="risks"] .risk-hero-copy h2 {
    font-size: clamp(34px, 10vw, 42px);
  }
  body.portal-body[data-portal-view="risks"] .risk-hero-copy > p:last-child {
    max-width: 300px;
    font-size: 12px;
    line-height: 1.6;
  }
  body.portal-body[data-portal-view="risks"] .risk-summary {
    grid-template-columns: repeat(2,minmax(0,1fr));
    margin: -22px 8px 16px;
  }
  body.portal-body[data-portal-view="risks"] .risk-summary-item {
    min-height: 96px;
    border-right: 1px solid var(--risk-line);
    border-bottom: 1px solid var(--risk-line);
  }
  body.portal-body[data-portal-view="risks"] .risk-summary-item:nth-child(2n) {
    border-right: 0;
  }
  body.portal-body[data-portal-view="risks"] .risk-summary-item:nth-last-child(-n+2) {
    border-bottom: 0;
  }
  body.portal-body[data-portal-view="risks"] .risk-summary-item strong {
    font-size: 28px;
  }
  body.portal-body[data-portal-view="risks"] .risk-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  body.portal-body[data-portal-view="risks"] .risk-record-panel {
    padding: 18px 14px 14px;
  }
  body.portal-body[data-portal-view="risks"] .risk-list-head {
    display: none;
  }
  body.portal-body[data-portal-view="risks"] .risk-list .risk-item {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px 10px;
    padding: 16px 6px;
  }
  body.portal-body[data-portal-view="risks"] .risk-item-heading {
    grid-column: 1 / -1;
  }
  body.portal-body[data-portal-view="risks"] .risk-item-badges {
    grid-column: 1;
  }
  body.portal-body[data-portal-view="risks"] .risk-process {
    grid-column: 2;
    justify-self: end;
  }
  body.portal-body[data-portal-view="risks"] .risk-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  body.portal-body[data-portal-view="risks"] .risk-item details {
    grid-column: 1 / -1;
    margin: 0;
  }
}

@media (max-width: 420px) {
  body.portal-body[data-portal-view="risks"] .risk-page-head {
    min-height: 272px;
  }
  body.portal-body[data-portal-view="risks"] .risk-hero-copy {
    width: 94%;
  }
  body.portal-body[data-portal-view="risks"] .risk-summary-item {
    grid-template-columns: 38px minmax(0,1fr);
    gap: 9px;
    padding: 13px 11px;
  }
  body.portal-body[data-portal-view="risks"] .risk-summary-item > i {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 21px;
  }
  body.portal-body[data-portal-view="risks"] .risk-summary-item span {
    font-size: 11px;
  }
}


/* CUSTOMER WELLNESS OPTION 2 — responsive photo hero */
@media (max-width: 900px) {
  .customer-section-head {
    min-height: 310px;
    align-items: flex-start;
    padding: 38px 28px 92px;
    background-position: 59% center;
  }
  .customer-section-head::after {
    background: linear-gradient(90deg, rgba(255,251,244,.99) 0%, rgba(255,251,244,.9) 38%, rgba(255,251,244,.18) 72%, rgba(255,251,244,0) 100%);
  }
  .customer-head-actions { right: 20px; bottom: 18px; left: 20px; justify-content: flex-end; }
  .customer-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-summary article:nth-child(2) { border-right: 0; }
  .customer-summary article:nth-child(-n+2) { border-bottom: 1px solid #dfe6dc; }
}

@media (max-width: 620px) {
  .customer-tabs-top { margin-bottom: 12px; padding: 8px 0 12px; }
  .customer-section-head {
    min-height: 420px;
    padding: 30px 20px 112px;
    background-position: 62% center;
  }
  .customer-section-head::after {
    background: linear-gradient(180deg, rgba(255,251,244,.98) 0%, rgba(255,251,244,.9) 39%, rgba(255,251,244,.28) 70%, rgba(255,251,244,.08) 100%);
  }
  .customer-section-head > div:first-child { max-width: 320px; }
  .customer-section-head h2 { font-size: 40px; letter-spacing: -.05em; }
  .customer-section-subtitle { max-width: 300px; font-size: 13px; line-height: 1.65; }
  .customer-head-actions { right: 14px; bottom: 14px; left: 14px; gap: 10px; justify-content: space-between; padding: 9px 9px 9px 12px; }
  .customer-head-actions > span { white-space: normal; }
  .customer-create-cta { min-height: 43px; flex: 0 0 auto; padding: 0 16px; }
  .customer-summary { grid-template-columns: 1fr; }
  .customer-summary article { min-height: 88px; border-right: 0; border-bottom: 1px solid #dfe6dc; }
  .customer-summary article:nth-child(-n+2) { border-bottom: 1px solid #dfe6dc; }
  .customer-summary article:last-child { border-bottom: 0; }
}

/* OVERVIEW IVORY LANDSCAPE OPTION 2 — final cascade */
body.portal-body[data-portal-view="overview"] { background: #f2eee5 !important; }
body.portal-body[data-portal-view="overview"] .portal-workspace,
body.portal-body[data-portal-view="overview"] .portal-main { background: #f2eee5 !important; }
body.portal-body[data-portal-view="overview"] .portal-main { padding-block: 22px 30px !important; }
body.portal-body[data-portal-view="overview"] .portal-main > .container { width: min(1510px, calc(100% - 36px)) !important; }
body.portal-body[data-portal-view="overview"] #overview.command-topbar { min-height: 142px !important; align-items: flex-start !important; margin: 0 !important; padding: 18px 0 0 !important; border: 0 !important; }
body.portal-body[data-portal-view="overview"] #overview .command-greeting { padding-top: 20px !important; }
body.portal-body[data-portal-view="overview"] #overview .command-greeting strong { color: #17382f !important; font-size: clamp(24px, 2vw, 34px) !important; }
body.portal-body[data-portal-view="overview"] #overview .command-topbar-meta { position: absolute !important; top: 0 !important; right: 0 !important; }
body.portal-body[data-portal-view="overview"] .overview-focus-layout { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) !important; grid-template-areas: "priorities dashboard" "insights insights" "note note" !important; gap: 16px 18px !important; }
body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-list { grid-template-columns: 1fr !important; gap: 10px !important; }
body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 36px minmax(0, 1fr) auto !important; min-height: 74px !important; gap: 2px 10px !important; padding: 12px !important; border: 1px solid rgba(65, 94, 82, .16) !important; border-left: 3px solid #70a98f !important; border-radius: 14px !important; background: rgba(255,253,248,.88) !important; }
body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item:first-child { border-left-color: #e36b59 !important; background: #fffaf6 !important; }
body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-warning { border-left-color: #d79b39 !important; background: #fffaf0 !important; }
body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item > span { width: 34px !important; height: 34px !important; }
body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item h2 { font-size: 13px !important; line-height: 1.4 !important; }
body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item p { overflow: hidden !important; margin-top: 2px !important; font-size: 10px !important; white-space: nowrap !important; text-overflow: ellipsis !important; }
body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { min-width: 58px !important; min-height: 32px !important; padding: 0 10px !important; border-color: rgba(15,138,104,.46) !important; border-radius: 8px !important; color: #0b755a !important; background: #fffdf8 !important; font-size: 11px !important; }
body.portal-body[data-portal-view="overview"] .overview-dashboard { align-self: end !important; }
body.portal-body[data-portal-view="overview"] .overview-dashboard-head { min-height: 44px !important; }
body.portal-body[data-portal-view="overview"] .overview-period-tabs button { width: 48px !important; height: 36px !important; }
body.portal-body[data-portal-view="overview"] .overview-period-tabs button.is-active { background: #0f8a68 !important; }
body.portal-body[data-portal-view="overview"] .overview-date-range { min-width: 168px !important; min-height: 36px !important; }
body.portal-body[data-portal-view="overview"] .overview-key-metrics { min-height: 246px !important; border-color: rgba(65,94,82,.16) !important; border-radius: 16px !important; background: rgba(255,253,248,.9) !important; }
body.portal-body[data-portal-view="overview"] .overview-key-metrics { grid-template-columns: .92fr .92fr .92fr 1.14fr !important; }
body.portal-body[data-portal-view="overview"] .overview-key-metrics article { display: flex !important; min-height: 246px !important; flex-direction: column !important; justify-content: center !important; padding: 28px 20px !important; background: transparent !important; }
body.portal-body[data-portal-view="overview"] .overview-key-metrics article > i { position: static !important; display: grid !important; width: 42px !important; height: 42px !important; place-items: center !important; margin-bottom: 18px !important; border-radius: 50% !important; color: #4f7b68 !important; background: #eaf0e8 !important; font-size: 20px !important; }
body.portal-body[data-portal-view="overview"] .overview-key-metrics strong { margin: 10px 0 3px !important; color: #0f8a68 !important; font-size: clamp(32px, 3.2vw, 48px) !important; }
body.portal-body[data-portal-view="overview"] .overview-key-metrics article:last-of-type strong { font-size: clamp(26px, 2.05vw, 34px) !important; white-space: nowrap !important; }
body.portal-body[data-portal-view="overview"] .overview-key-metrics article::after { display: none !important; }
body.portal-body[data-portal-view="overview"] .overview-insight-grid { grid-template-columns: minmax(0,1.15fr) minmax(260px,.82fr) minmax(270px,.86fr) !important; gap: 16px !important; }
body.portal-body[data-portal-view="overview"] .overview-trend-panel { grid-row: auto !important; }
body.portal-body[data-portal-view="overview"] .overview-trend-panel,
body.portal-body[data-portal-view="overview"] .overview-risk-panel,
body.portal-body[data-portal-view="overview"] .overview-ai-panel { min-height: 256px !important; border-color: rgba(65,94,82,.16) !important; border-radius: 16px !important; background: rgba(255,253,248,.92) !important; }
body.portal-body[data-portal-view="overview"] .overview-trend-canvas-wrap { min-height: 126px !important; padding-inline: 0 !important; }
body.portal-body[data-portal-view="overview"] .overview-trend-canvas-wrap canvas { height: 126px !important; }
body.portal-body[data-portal-view="overview"] .overview-trend-summary { min-height: 68px !important; }
body.portal-body[data-portal-view="overview"] .overview-risk-summary { display: grid !important; align-content: center !important; min-height: 188px !important; padding: 10px 18px 18px !important; }
body.portal-body[data-portal-view="overview"] .overview-risk-summary > div { grid-template-columns: 64px 28px minmax(58px,1fr) !important; }
body.portal-body[data-portal-view="overview"] .overview-ai-panel { grid-template-columns: 1fr !important; align-content: center !important; gap: 8px !important; padding: 18px !important; }
body.portal-body[data-portal-view="overview"] .overview-ai-panel > a { width: auto !important; min-width: 0 !important; min-height: 34px !important; justify-self: start !important; padding: 0 12px !important; color: #785d24 !important; border: 1px solid rgba(169,132,59,.38) !important; background: #fffaf0 !important; font-size: 11px !important; }
body.portal-body[data-portal-view="overview"] .overview-supporting-metrics,
body.portal-body[data-portal-view="overview"] .overview-data-note { display: none !important; }

@media (max-width: 1180px) {
  body.portal-body[data-portal-view="overview"] .overview-focus-layout { grid-template-columns: minmax(240px,280px) minmax(0,1fr) !important; }
  body.portal-body[data-portal-view="overview"] .overview-insight-grid { grid-template-columns: 1fr 1fr !important; }
  body.portal-body[data-portal-view="overview"] .overview-ai-panel { grid-column: 1 / -1 !important; min-height: 170px !important; }
}
@media (max-width: 860px) {
  body.portal-body[data-portal-view="overview"] .overview-landscape { display: none !important; }
  body.portal-body[data-portal-view="overview"] #overview.command-topbar { min-height: 82px !important; }
  body.portal-body[data-portal-view="overview"] .overview-focus-layout { grid-template-columns: 1fr !important; grid-template-areas: "priorities" "dashboard" "insights" "note" !important; }
  body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-list { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 34px minmax(0,1fr) !important; }
  body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { grid-column: 2 !important; grid-row: auto !important; justify-self: start !important; }
}
@media (max-width: 720px) {
  body.portal-body[data-portal-view="overview"] .portal-main { padding-block: 12px 24px !important; }
  body.portal-body[data-portal-view="overview"] .portal-main > .container { width: calc(100% - 20px) !important; }
  body.portal-body[data-portal-view="overview"] #overview.command-topbar { min-height: 64px !important; padding-top: 0 !important; }
  body.portal-body[data-portal-view="overview"] #overview .command-greeting { padding-top: 8px !important; }
  body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-list { grid-template-columns: 1fr !important; }
  body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 38px minmax(0,1fr) auto !important; }
  body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { grid-column: 3 !important; grid-row: 1 / 3 !important; }
  body.portal-body[data-portal-view="overview"] .overview-key-metrics { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.portal-body[data-portal-view="overview"] .overview-key-metrics article { min-height: 160px !important; }
  body.portal-body[data-portal-view="overview"] .overview-insight-grid { grid-template-columns: 1fr !important; }
  body.portal-body[data-portal-view="overview"] .overview-ai-panel { grid-column: auto !important; }
}
@media (max-width: 480px) {
  body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item { grid-template-columns: 36px minmax(0,1fr) !important; }
  body.portal-body[data-portal-view="overview"] .overview-priority-board .priority-item a { grid-column: 2 !important; grid-row: auto !important; }
  body.portal-body[data-portal-view="overview"] .overview-key-metrics { grid-template-columns: 1fr !important; }
  body.portal-body[data-portal-view="overview"] .overview-key-metrics article { min-height: 122px !important; }
}

[data-dashboard] [data-portal-view][hidden] { display: none !important; }

/* Venue identity card direction 2 — authoritative final style. */
.portal-sidebar .portal-store-card {
  border-color: rgba(181, 149, 88, .66) !important;
  background: linear-gradient(145deg, #fffdf7 0%, #f2f2e7 58%, #e7ecdf 100%) !important;
  box-shadow: 0 16px 34px rgba(87, 72, 43, .14), 0 0 0 3px rgba(255, 253, 245, .7), inset 0 1px 0 rgba(255,255,255,.96) !important;
}
.portal-sidebar .portal-store-card .portal-store-cover {
  filter: saturate(.88) contrast(1.02) brightness(1.01) sepia(.04) !important;
}
.portal-sidebar .portal-store-card .portal-store-identity {
  border-top-color: rgba(181, 149, 88, .5) !important;
  background: radial-gradient(circle at 18% 6%, rgba(255,255,255,.98) 0, rgba(255,255,255,0) 47%), radial-gradient(circle at 84% 92%, rgba(194,208,177,.38) 0, rgba(194,208,177,0) 58%), linear-gradient(135deg, rgba(255,253,246,.98) 0%, rgba(246,241,226,.98) 55%, rgba(229,237,219,.98) 100%) !important;
  box-shadow: 0 -5px 18px rgba(78, 62, 34, .08), inset 0 1px 0 rgba(255,255,255,.92), inset 0 0 18px rgba(255,255,255,.28) !important;
  backdrop-filter: blur(10px) saturate(1.04);
}
.portal-sidebar .portal-store-card .portal-store-kicker {
  color: #a88746 !important;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif !important;
  font-weight: 500 !important;
  letter-spacing: .12em !important;
  text-shadow: none !important;
}
.portal-sidebar .portal-store-card .portal-store-identity > strong {
  color: #294a36 !important;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif !important;
  font-weight: 600 !important;
  letter-spacing: .025em !important;
}
.portal-sidebar .portal-store-card .portal-store-identity > button {
  border-color: rgba(174, 139, 73, .5) !important;
  color: #927025 !important;
  background: linear-gradient(135deg, rgba(255,253,247,.92), rgba(239,242,226,.84)) !important;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif !important;
  box-shadow: 0 6px 16px rgba(116, 89, 42, .09), inset 0 1px 0 rgba(255,255,255,.86) !important;
}
