/* Shared visual system. Business states and permission visibility stay owned by each app. */
body[data-ui]:not([data-ui="screen"]) {
  --bg:#f5f7f4; --cream:#f5f7f4; --ink:#203a33; --muted:#63756e;
  --line:#dfe7e1; --green:#226b55; --green-dark:#174c3c; --green-deep:#174c3c;
  --green-soft:#e8f2eb; --panel:#fff; --shadow:0 4px 20px rgba(27,57,43,.045);
  color:var(--ink); background:var(--bg);
  font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  line-height:1.6; -webkit-font-smoothing:antialiased;
}
body[data-ui] *,body[data-ui] *::before,body[data-ui] *::after { box-sizing:border-box; }
body[data-ui] :is(button,input,select,textarea) { font-family:inherit; }
body[data-ui] :is(a,button,input,select,textarea):focus-visible { outline:3px solid #75a993; outline-offset:3px; }
body[data-ui] :is(button,a) { touch-action:manipulation; }
body[data-ui] :is(h1,h2,h3) { text-wrap:balance; }
body[data-ui] :is(input,select,textarea) { max-width:100%; }
body[data-ui] :is(.panel,.account-card,.item,.auth-layout,.sso-wait) { border-radius:16px; border-color:var(--line); box-shadow:var(--shadow); }
body[data-ui] :is(.panel-head,.section-head) { gap:16px; }
body[data-ui] :is(.panel-head h2,.section-head h2) { font-weight:650; letter-spacing:.01em; }
body[data-ui] :is(.primary-btn,.secondary-btn,.primary-button,.secondary-button,.btn,.ghost,.login-submit,.hq-login-submit) { border-radius:9px; min-height:42px; }
body[data-ui] :is(.management-empty,.empty) { padding:42px 20px; color:var(--muted); line-height:1.8; }
body[data-ui] :is(.table-wrap,.transfer-table-wrap,.settlement-table) { max-width:100%; overflow:auto; overscroll-behavior-x:contain; }
body[data-ui] :is(th,.row.head) { background:#f5f8f5; color:#536c60; }
body[data-ui] :is(td,th) { padding:14px 16px; }
body[data-ui] :is(dialog,.modal-card,.modal-box) { border-radius:18px; max-width:calc(100vw - 32px); }
/* Marketing: one calm opening, readable image, then a clear service rhythm. */
body[data-ui="home"] .site-header { height:88px; max-width:1440px; margin:auto; background:var(--bg); border:0; }
body[data-ui="home"] .nav-action { background:var(--green); border-radius:10px; font-weight:600; }
body[data-ui="home"] .hero { margin:0 32px; height:570px; min-height:0; border-radius:24px; background:#e7eee4; }
body[data-ui="home"] .hero-image { width:64%; left:auto; object-position:60% center; }
body[data-ui="home"] .hero-shade { background:linear-gradient(90deg,#e7eee4 0%,#e7eee4 30%,rgba(231,238,228,.95) 40%,rgba(231,238,228,0) 69%); }
body[data-ui="home"] .hero-copy { width:56%; margin-left:5%; padding-top:98px; }
body[data-ui="home"] .hero h1 { font-size:clamp(38px,4.3vw,64px); line-height:1.3; font-weight:650; letter-spacing:-.04em; }
body[data-ui="home"] .hero h1 span { color:var(--green); white-space:normal; }
body[data-ui="home"] .hero-kicker { display:inline-block; padding:6px 12px; border:1px solid #b7cdbb; border-radius:24px; font-size:13px; font-weight:500; }
body[data-ui="home"] .hero-subtitle { font-size:17px; color:#4a6558; line-height:1.9; }
body[data-ui="home"] .button { border-radius:10px; min-height:48px; font-weight:600; }
body[data-ui="home"] .primary { background:var(--green); }
body[data-ui="home"] .outline { border:1px solid #9db5a3; color:var(--green-dark); }
body[data-ui="home"] .trust-strip { max-width:1250px; margin:28px auto 0; background:transparent; border:0; }
body[data-ui="home"] .trust-strip div { min-height:90px; padding:16px; }
body[data-ui="home"] .trust-strip strong { color:var(--green); font-size:32px; font-weight:550; }
body[data-ui="home"] .section { padding:80px max(28px,calc((100vw - 1200px)/2)); }
body[data-ui="home"] .promise { max-width:none; }
body[data-ui="home"] :is(.promise h2,.section-heading h2,.center-heading h2,.response-intro h2,.privacy-copy h2,.closing h2) { font-size:clamp(28px,3vw,42px); line-height:1.4; font-weight:650; }
body[data-ui="home"] .eyebrow { color:var(--green); font-weight:600; letter-spacing:.08em; }
body[data-ui="home"] .products { background:#edf2ed; }
body[data-ui="home"] .section-heading { gap:40px; }
body[data-ui="home"] :is(.product-card,.plan-card) { border-radius:18px; overflow:hidden; box-shadow:none; }
body[data-ui="home"] .product-copy { padding:24px; }
body[data-ui="home"] .product-copy h3 { font-size:21px; }
body[data-ui="home"] .product-copy p { font-size:15px; }
body[data-ui="home"] .product-visual { height:190px; }
body[data-ui="home"] .plan-grid { max-width:960px; margin:auto; gap:24px; }
/* Operating workspaces: quieter rail, generous content, distinct metrics. */
body[data-ui="hq"] .system-shell { grid-template-columns:236px minmax(0,1fr); }
body[data-ui="hq"] .sidebar { background:#eef3ed; color:var(--ink); padding:30px 18px; border-right:1px solid var(--line); }
body[data-ui="hq"] .logo-block { grid-template-columns:44px minmax(0,1fr); gap:12px; padding:0 8px 26px; border-bottom:1px solid #d4dfd5; }
body[data-ui="hq"] .logo-img { width:44px; height:44px; object-fit:contain; }
body[data-ui="hq"] .logo-block :is(strong,span) { color:var(--ink); }
body[data-ui="hq"] .logo-block strong { font-size:21px; }
body[data-ui="hq"] .logo-block span { font-size:11px; }
body[data-ui="hq"] .side-nav { display:flex; flex-direction:column; gap:7px; }
body[data-ui="hq"] .side-nav :is(button,a) { text-align:left; background:transparent; color:#50675b; padding:12px 14px; border:0; border-radius:9px; font-size:14px; font-weight:500; }
body[data-ui="hq"] .side-nav :is(button,a):hover { background:#e0eae0; }
body[data-ui="hq"] .side-nav button.active { background:#226b55; color:#fff; box-shadow:0 4px 10px #174c3c12; }
body[data-ui="hq"] .main { min-width:0; padding:32px 36px 60px; }
body[data-ui="hq"] .topbar { padding:0 0 28px; margin-bottom:28px; background:transparent; border-bottom:1px solid var(--line); }
body[data-ui="hq"] .topbar h1 { font-size:28px; font-weight:650; }
body[data-ui="hq"] .eyebrow { font-size:12px; color:var(--muted); margin-bottom:6px; }
body[data-ui="hq"] .kpi-grid { gap:18px; margin-bottom:26px; }
body[data-ui="hq"] .kpi-grid > :is(article,button) { padding:24px; border:1px solid var(--line); border-radius:14px; background:white; box-shadow:none; text-align:left; }
body[data-ui="hq"] .kpi-grid strong { font-size:34px; font-weight:600; font-variant-numeric:tabular-nums; }
body[data-ui="hq"] .dashboard-grid { gap:22px; }
body[data-ui="hq"] .panel { box-shadow:none; }
body[data-ui="hq"] .panel-head { padding:20px 22px; }
body[data-ui="hq"] .panel-head h2 { font-size:18px; }
body[data-ui="store"] { --sidebar:236px; }
body[data-ui="store"] .sidebar { background:#eef3ed; padding:26px 16px; }
body[data-ui="store"] .store-identity { background:#e4ece2; border-radius:12px; margin:24px 0; }
body[data-ui="store"] .side-nav { overflow-y:auto; }
body[data-ui="store"] .side-nav > p { font-size:11px; letter-spacing:.12em; margin:22px 14px 9px; color:#738474; }
body[data-ui="store"] .nav-item { border-radius:9px; min-height:44px; }
body[data-ui="store"] .nav-item.active { background:var(--green); color:white; }
body[data-ui="store"] .topbar { background:#fff; border-bottom:1px solid var(--line); box-shadow:none; }
body[data-ui="store"] .content { padding:32px 36px 60px; }
body[data-ui="store"] .page-head { margin-bottom:26px; }
body[data-ui="store"] .page-head h1 { font-size:28px; font-weight:650; }
body[data-ui="store"] .metrics { gap:16px; border:0; background:transparent; }
body[data-ui="store"] .metrics article { padding:22px; border:1px solid var(--line); background:#fff; border-radius:14px; }
body[data-ui="store"] .metrics article::before { display:none; }
body[data-ui="store"] .metrics article strong { font-size:32px; font-weight:600; }
body[data-ui="store"] .dashboard-grid { gap:22px; }
body[data-ui="store"] .panel-head { padding:20px 22px; }
body[data-ui="store"] .alert-strip { border-radius:12px; border:1px solid #edc8c5; box-shadow:none; }
body[data-ui="store"] .quick-grid button { border-radius:10px; }
/* Shared account entry. */
body[data-ui] :is(.login-page,.hq-login-page) { grid-template-columns:1fr 1fr; padding:24px; gap:24px; background:var(--bg); }
body[data-ui] :is(.login-visual,.hq-login-visual) { min-height:calc(100vh - 48px); border-radius:20px; }
body[data-ui] :is(.login-area,.hq-login-area) { min-height:calc(100vh - 48px); border-radius:20px; padding:40px; }
body[data-ui] :is(.login-visual-copy h1,.hq-login-visual-copy h1) { font-size:clamp(32px,3.7vw,54px); line-height:1.35; font-weight:600; }
body[data-ui] :is(.input-wrap,.hq-input-wrap,.auth-form input) { border-radius:9px; min-height:48px; }
/* Personal and community spaces keep larger, comfortable reading sizes. */
body[data-ui="member"],body[data-ui="auth"] { --orange:#226b55; --orange-dark:#174c3c; }
body[data-ui] .member-header { background:#fff; height:80px; }
body[data-ui] .auth-layout { overflow:hidden; box-shadow:0 12px 50px #203a3308; }
body[data-ui] .auth-story { background:#226b55; }
body[data-ui="member"] .member-app { width:min(1440px,100%); grid-template-columns:236px minmax(0,1fr); }
body[data-ui="member"] .member-sidebar { background:#eef3ed; }
body[data-ui="member"] .member-nav button { border-radius:10px; border:0; min-height:64px; }
body[data-ui="member"] .member-nav button.is-active { background:#dceadd; color:#174c3c; }
body[data-ui="member"] .member-nav button:hover { background:#e3ece2; }
body[data-ui="member"] .member-content { padding:40px; }
body[data-ui="member"] :is(.care-form,.care-result,.health-card,.membership-state) { border-radius:14px; }
body[data-ui="community"] .rail { background:#eef3ed; padding:28px 18px; }
body[data-ui="community"] .rail nav button { border-radius:9px; min-height:44px; }
body[data-ui="community"] .rail nav button.active { background:var(--green); color:#fff; }
body[data-ui="community"] .page { padding:32px 36px 60px; }
body[data-ui="community"] .stats { border:0; background:transparent; gap:16px; }
body[data-ui="community"] .stat { background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; }
body[data-ui="community"] .stat strong { font-family:inherit; font-weight:600; }
body[data-ui="community"] .item-top { padding:24px; }
body[data-ui="directory"] .hero { background:#e8f0e5; }
body[data-ui="directory"] .hero h1 { font-size:clamp(32px,4vw,58px); line-height:1.35; }
body[data-ui="directory"] :is(.feature-card,.module-card,.scenario-card) { border-radius:14px; box-shadow:none; }
/* Monitoring is intentionally dark so alert colors remain legible at a distance. */
body[data-ui="screen"] { --canvas:#101d19; --surface:#192a23; --surface-raised:#21372d; }
body[data-ui="screen"] .panel { border-radius:12px; border:1px solid #385044; overflow:hidden; }
body[data-ui="screen"] .ops-screen { gap:18px; padding:0 24px 20px; }
body[data-ui="screen"] .dashboard-grid { gap:18px; }
@media(min-width:1100px) {
 body[data-ui="hq"] .sidebar { position:sticky; top:0; height:100vh; overflow-y:auto; }
}
@media(max-width:1100px) {
 body[data-ui="hq"] .system-shell { grid-template-columns:200px minmax(0,1fr); }
 body[data-ui="hq"] .main,body[data-ui="store"] .content { padding:24px; }
 body[data-ui="hq"] .topbar { flex-wrap:wrap; gap:18px; }
 body[data-ui="hq"] .dashboard-grid { grid-template-columns:1fr; }
 body[data-ui="home"] .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
 body[data-ui] :is(.login-page,.hq-login-page) { display:block; padding:16px; }
 body[data-ui] :is(.login-visual,.hq-login-visual) { display:none; }
 body[data-ui] :is(.login-area,.hq-login-area) { min-height:calc(100dvh - 32px); padding:30px 22px; }
 body[data-ui="home"] .site-header { height:auto; min-height:76px; padding:14px 20px; flex-wrap:wrap; gap:12px; }
 body[data-ui="home"] .site-nav { order:3; display:flex; width:100%; overflow-x:auto; justify-content:space-between; }
 body[data-ui="home"] .site-nav a { white-space:nowrap; padding:8px 4px; font-size:13px; }
 body[data-ui="home"] .nav-action { margin-left:auto; min-height:42px; padding:0 14px; font-size:13px; }
 body[data-ui="home"] .brand img { width:40px; height:40px; }
 body[data-ui="home"] .hero { margin:0 16px; min-height:600px; height:auto; border-radius:18px; }
 body[data-ui="home"] .hero-copy { width:auto; margin:0; padding:32px 24px 280px; }
 body[data-ui="home"] .hero h1 { font-size:36px; }
 body[data-ui="home"] .hero-image { width:100%; height:310px; top:auto; bottom:0; object-position:center; }
 body[data-ui="home"] .hero-shade { background:linear-gradient(180deg,#e7eee4 0%,#e7eee4 48%,transparent 75%); }
 body[data-ui="home"] .hero-subtitle { font-size:15px; }
 body[data-ui="home"] .hero-actions { gap:8px; }
 body[data-ui="home"] .button { padding:0 18px; font-size:14px; }
 body[data-ui="home"] .section { padding:52px 22px; }
 body[data-ui="home"] .trust-strip { padding:0 20px; grid-template-columns:1fr 1fr; }
 body[data-ui="home"] .trust-strip div { padding:12px 6px; justify-content:flex-start; border:0; gap:10px; }
 body[data-ui="home"] .trust-strip strong { font-size:26px; }
 body[data-ui="home"] .trust-strip span { font-size:12px; }
 body[data-ui="home"] :is(.section-heading,.plan-grid) { grid-template-columns:1fr; gap:24px; }
 body[data-ui="home"] .product-grid { grid-template-columns:1fr; }
 body[data-ui="home"] .product-copy p { min-height:0; }
 body[data-ui="hq"] .system-shell { display:block; }
 body[data-ui="hq"] .sidebar { padding:16px; gap:14px; }
 body[data-ui="hq"] .logo-block { padding:0; border:0; }
 body[data-ui="hq"] .side-nav { flex-direction:row; overflow-x:auto; padding-bottom:4px; }
 body[data-ui="hq"] .side-nav :is(button,a) { flex:0 0 auto; padding:10px 14px; white-space:nowrap; }
 body[data-ui="hq"] .main,body[data-ui="store"] .content { padding:22px 16px 40px; }
 body[data-ui="hq"] .topbar h1,body[data-ui="store"] .page-head h1 { font-size:24px; }
 body[data-ui="hq"] .header-actions { flex-wrap:wrap; gap:12px; }
 body[data-ui="hq"] .hq-account { padding-left:0; border:0; }
 body[data-ui="hq"] .kpi-grid { grid-template-columns:1fr 1fr; gap:12px; }
 body[data-ui="hq"] .kpi-grid > :is(article,button) { padding:16px; }
 body[data-ui="hq"] .kpi-grid strong { font-size:28px; }
 body[data-ui="store"] { --sidebar:0px; }
 body[data-ui="store"] .sidebar { width:268px; }
 body[data-ui="store"] .metrics { gap:12px; }
 body[data-ui="store"] .metrics article { padding:16px; }
 body[data-ui="store"] .page-actions .primary-btn { width:auto; font-size:13px; padding:0 10px; }
 body[data-ui="store"] .page-head { gap:12px; flex-wrap:wrap; }
 body[data-ui="member"] .member-app { display:block; }
 body[data-ui="member"] .member-content { padding:24px 16px 48px; }
 body[data-ui="member"] .member-sidebar { padding:16px; }
 body[data-ui="member"] .member-nav { display:flex; overflow-x:auto; gap:8px; }
 body[data-ui="member"] .member-nav > :is(button,a) { flex:0 0 auto; width:auto; min-width:120px; }
 body[data-ui="community"] .page { padding:24px 16px 40px; }
 body[data-ui="community"] .stats { gap:10px; }
 body[data-ui="community"] .stat { padding:16px; }
 body[data-ui] :is(.panel-head,.section-head) { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) {
 body[data-ui] *,body[data-ui] *::before,body[data-ui] *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
/* Final layout checks: keep headings aligned and surfaces compact on mobile. */
body[data-ui="hq"] .topbar { position:relative; margin:0 0 28px; }
body[data-ui="hq"] .nav-section-label { margin:18px 14px 2px; color:#758678; font-size:11px; letter-spacing:.12em; }
body[data-ui="hq"] .nav-section-label:first-child { margin-top:0; }
body[data-ui="store"] .quick-grid { background:#fff; padding:12px; gap:10px; }
body[data-ui="store"] .quick-grid button { border:1px solid var(--line); }
body[data-ui="community"] .login { margin:7vh auto; padding:36px; width:min(440px,calc(100% - 32px)); background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }
body[data-ui="auth"] .auth-form input { border-color:var(--line); }
@media(max-width:760px) {
 body[data-ui="hq"] .nav-section-label { display:none; }
 body[data-ui="hq"] .topbar { min-height:0; padding-bottom:20px; }
 body[data-ui="store"] .task-list { min-height:160px; }
 body[data-ui="store"] .quick-grid button { min-height:110px; }
 body[data-ui="home"] .hero-image { object-position:65% center; }
 body[data-ui="community"] .login { padding:28px 24px; }
}
/* Time bank is an editorial section, not a full-width advertising poster. */
body[data-ui="home"] .xbs-community-band { max-width:1200px; margin:24px auto 64px; padding:0 28px; border:0; color:var(--ink); }
body[data-ui="home"] .xbs-timebank-intro { display:grid; grid-template-columns:1.15fr 1fr; align-items:stretch; background:#eaf0e6; border-radius:22px; overflow:hidden; }
body[data-ui="home"] .xbs-timebank-copy { padding:48px; }
body[data-ui="home"] .xbs-timebank-kicker { margin:0 0 18px; color:#4b725c; font-size:13px; font-weight:600; letter-spacing:.08em; }
body[data-ui="home"] .xbs-timebank-copy h2 { font-size:clamp(28px,3vw,40px); font-weight:600; line-height:1.5; margin:0 0 20px; }
body[data-ui="home"] .xbs-timebank-description { max-width:380px; color:#596f60; font-size:16px; line-height:1.9; margin:0 0 28px; }
body[data-ui="home"] .xbs-timebank-primary { display:inline-flex; align-items:center; gap:24px; background:#226b55; color:#fff; padding:12px 18px; border-radius:9px; font-size:15px; }
body[data-ui="home"] .xbs-timebank-photo { position:relative; overflow:hidden; min-height:350px; background:#254830; }
body[data-ui="home"] .xbs-timebank-photo img { display:block; width:200%; max-width:none; height:100%; position:absolute; right:0; object-fit:cover; object-position:right center; }
body[data-ui="home"] .xbs-timebank-photo::after { content:""; position:absolute; inset:60% 0 0; background:linear-gradient(transparent,#173c2dbb); }
body[data-ui="home"] .xbs-timebank-photo > span { position:absolute; z-index:1; left:28px; bottom:24px; color:#fff; font-size:14px; letter-spacing:.08em; }
body[data-ui="home"] .xbs-timebank-paths { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:20px 0 64px; }
body[data-ui="home"] .xbs-timebank-paths a { display:flex; align-items:center; gap:14px; padding:24px 20px; border:1px solid var(--line); background:#fff; border-radius:12px; transition:background .15s,border-color .15s; }
body[data-ui="home"] .xbs-timebank-paths a:hover { background:#edf4ec; border-color:#9cb69e; }
body[data-ui="home"] .xbs-path-number { flex:0 0 auto; font-size:13px; color:#6a896e; }
body[data-ui="home"] .xbs-timebank-paths h3 { font-size:17px; margin:0 0 6px; font-weight:600; }
body[data-ui="home"] .xbs-timebank-paths p { font-size:12px; color:var(--muted); margin:0; line-height:1.6; }
body[data-ui="home"] .xbs-timebank-paths a > span:last-child { margin-left:auto; color:#226b55; }
body[data-ui="home"] .xbs-activities-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:24px; }
body[data-ui="home"] .xbs-activities-heading h2 { font-size:28px; font-weight:600; margin:0; line-height:1.4; }
body[data-ui="home"] .xbs-activities-heading .xbs-timebank-kicker { margin-bottom:8px; }
body[data-ui="home"] .xbs-activities-heading > a { flex-shrink:0; font-size:14px; color:var(--green); }
body[data-ui="home"] .xbs-activity-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:20px; font-size:14px; }
body[data-ui="home"] .xbs-activity-toolbar select { min-height:42px; padding:8px 38px 8px 14px; border:1px solid #cbd9cc; border-radius:8px; background:#fff; color:var(--ink); font:inherit; max-width:100%; }
body[data-ui="home"] .xbs-activity-toolbar > span { color:var(--muted); font-size:13px; margin-left:auto; }
body[data-ui="home"] .xbs-live-activities { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; background:transparent; border:0; }
body[data-ui="home"] .xbs-live-activities article { display:flex; flex-direction:column; min-width:0; padding:24px; border:1px solid var(--line); border-radius:14px; }
body[data-ui="home"] .xbs-activity-top { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:#637c68; margin-bottom:22px; }
body[data-ui="home"] .xbs-activity-top > span:first-child { background:#edf4e9; padding:4px 9px; border-radius:5px; }
body[data-ui="home"] .xbs-live-activities h3 { font-size:20px; line-height:1.5; margin:0 0 14px; overflow-wrap:anywhere; }
body[data-ui="home"] .xbs-community-band p.xbs-activity-detail { font-size:14px; color:var(--muted); margin:0 0 8px; overflow-wrap:anywhere; }
body[data-ui="home"] .xbs-activity-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--line); margin-top:auto; padding-top:18px; }
body[data-ui="home"] .xbs-activity-footer strong { font-size:15px; color:#284c38; font-weight:600; }
body[data-ui="home"] .xbs-activity-footer a { color:var(--green); font-size:14px; }
body[data-ui="home"] .xbs-activity-empty { grid-column:1/-1; padding:36px 24px; background:#fff; border:1px dashed #c8d8c9; border-radius:14px; text-align:center; }
body[data-ui="home"] .xbs-activity-empty strong { font-weight:600; font-size:18px; }
body[data-ui="home"] .xbs-activity-empty p { font-size:14px; color:var(--muted); margin:10px 0 16px; }
body[data-ui="home"] .xbs-activity-empty :is(a,button) { color:var(--green); font:inherit; font-size:14px; background:none; border:0; cursor:pointer; padding:8px; }
body[data-ui="home"] .xbs-activity-loading { padding:24px; font-size:14px; color:var(--muted); }
@media(max-width:1000px) {
 body[data-ui="home"] .xbs-timebank-copy { padding:32px; }
 body[data-ui="home"] .xbs-timebank-paths { gap:10px; }
 body[data-ui="home"] .xbs-timebank-paths a { padding:20px 14px; gap:10px; }
 body[data-ui="home"] .xbs-live-activities { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
 body[data-ui="home"] .xbs-community-band { margin:8px auto 40px; padding:0 20px; }
 body[data-ui="home"] .xbs-timebank-intro { grid-template-columns:1fr; }
 body[data-ui="home"] .xbs-timebank-copy { padding:28px 24px; }
 body[data-ui="home"] .xbs-timebank-copy h2 { font-size:27px; }
 body[data-ui="home"] .xbs-timebank-description { font-size:15px; }
 body[data-ui="home"] .xbs-timebank-photo { min-height:240px; }
 body[data-ui="home"] .xbs-timebank-photo img { width:180%; }
 body[data-ui="home"] .xbs-timebank-paths { grid-template-columns:1fr; margin-bottom:40px; }
 body[data-ui="home"] .xbs-timebank-paths a { padding:20px; }
 body[data-ui="home"] .xbs-activities-heading { align-items:start; }
 body[data-ui="home"] .xbs-activities-heading h2 { font-size:23px; }
 body[data-ui="home"] .xbs-live-activities { grid-template-columns:1fr; }
 body[data-ui="home"] .xbs-activity-toolbar > span { display:none; }
}
/* Show only the photographic portion of the original artwork. */
body[data-ui="home"] .xbs-timebank-photo img { width:280%; object-position:right top; }
/* Compact pricing: two equal surfaces, distinct tiers, no artificial height. */
body[data-ui="home"] #plans { padding-top:56px; padding-bottom:56px; }
body[data-ui="home"] #plans .center-heading { margin-bottom:28px; }
body[data-ui="home"] .plan-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
body[data-ui="home"] .plan-card { min-height:0; padding:28px; border:0; }
body[data-ui="home"] .plan-card:not(.recommended-plan) { background:#deead7; color:#203e2f; }
body[data-ui="home"] .plan-name { padding-bottom:18px; gap:12px; border-color:#b6cbb2; }
body[data-ui="home"] .plan-name b,body[data-ui="home"] .recommended-plan .plan-name b { font-size:52px; }
body[data-ui="home"] .plan-card h3 { font-size:22px; margin:20px 0 16px; }
body[data-ui="home"] .plan-card ul { margin:0 0 20px; }
body[data-ui="home"] .plan-card li { font-size:15px; line-height:1.6; margin-bottom:9px; padding-left:22px; }
body[data-ui="home"] .plan-card > .button { min-height:44px; }
body[data-ui="home"] .plan-button { background:#226b55; color:white; }
body[data-ui="home"] .recommended-plan { background:#226b55; }
body[data-ui="home"] .recommended-plan .button { background:#f0f5e9; color:#1c503c; }
body[data-ui="home"] .recommended-label { position:static; align-self:flex-start; margin:-4px 0 16px; padding:3px 9px; border-radius:4px; background:#d9e9ca; color:#24543c; font-size:11px; }
body[data-ui="home"] .plan-card:not(.recommended-plan) .plan-name { margin-top:36px; }
body[data-ui="home"] .service-note { padding:18px 22px; border-left:3px solid #8cab83; border-radius:8px; gap:16px; }
body[data-ui="home"] .footer-links { display:flex; gap:20px; flex-wrap:wrap; font-size:14px; margin:18px 0; }
.auth-help { margin:24px 0 0!important; font-size:14px; text-align:center; }
.auth-help a { color:var(--green); text-underline-offset:4px; }
.help-layout { display:grid; grid-template-columns:210px minmax(0,760px); gap:56px; max-width:1120px; margin:auto; padding:56px 24px; }
.help-nav { position:sticky; top:24px; align-self:start; display:grid; gap:10px; }
.help-nav strong { margin-bottom:12px; }
.help-nav a { text-decoration:none; padding:10px 12px; color:var(--muted); border-radius:8px; }
.help-nav a:hover { color:var(--green); background:#e4eee2; }
.help-intro h1 { font-size:38px; line-height:1.4; margin:12px 0 20px; }
.help-intro p { color:var(--muted); line-height:1.9; }
.help-content section { padding:32px 0; border-top:1px solid var(--line); scroll-margin-top:24px; }
.help-content h2 { font-size:24px; margin:0 0 22px; }
.help-content h3 { font-size:19px; }
.help-content p { line-height:1.9; }
.help-plan-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.help-plan-grid article { background:#e2eddc; border-radius:14px; padding:24px; }
.help-plan-grid article:last-child { background:#226b55; color:white; }
.help-plan-grid h3 { font-size:26px; margin:12px 0; }
.help-plan-grid p { margin:0; font-size:15px; }
.help-steps { padding-left:24px; }
.help-steps li { padding:8px 0 8px 10px; }
.help-steps p { margin:8px 0 0; color:var(--muted); }
.help-note { padding:16px; background:#edf1e9; border-radius:10px; font-size:14px; }
.help-button { width:auto; margin:12px 0; background:var(--green); font-weight:600; }
.help-content details { border-bottom:1px solid var(--line); padding:18px 0; }
.help-content summary { cursor:pointer; font-weight:600; min-height:28px; }
.help-content details p { color:var(--muted); margin-bottom:0; }
.help-footer { display:flex; gap:20px; flex-wrap:wrap; padding:24px 0; color:var(--muted); font-size:14px; }
.not-found { max-width:560px; margin:12vh auto; padding:32px; text-align:center; }
.not-found h1 { font-size:32px; }.not-found p { color:var(--muted); }.not-found a { display:block; }
body[data-ui] .xbs-ops { background:#226b55; color:#fff; border:0; border-radius:10px; padding:12px 18px; font:inherit; box-shadow:0 5px 20px #173c2d24; }
@media(max-width:760px) {
 body[data-ui="home"] .plan-grid { grid-template-columns:1fr; }
 body[data-ui="home"] .plan-card { padding:24px; }
 body[data-ui="home"] .plan-name { display:flex; align-items:baseline; }
 body[data-ui="home"] .plan-name > span { margin:0; }
 body[data-ui="home"] .plan-card:not(.recommended-plan) .plan-name { margin-top:0; }
 body[data-ui="home"] .plan-name b,body[data-ui="home"] .recommended-plan .plan-name b { font-size:44px; }
 .help-layout { display:block; padding:24px 20px; }.help-nav { position:static; display:flex; overflow-x:auto; gap:8px; margin-bottom:28px; }.help-nav strong { display:none; }.help-nav a { flex-shrink:0; background:#e4eee2; font-size:14px; }
 .help-intro h1 { font-size:30px; }.help-plan-grid { grid-template-columns:1fr; }
 body[data-ui] .xbs-ops { max-width:calc(100vw - 32px); padding:10px 14px; font-size:13px; }
}
/* Component display rules must never resurrect hidden data, alerts or permission panels. */
body[data-ui] [hidden] { display:none!important; }

body[data-ui="store"] .alert-strip.is-quiet { background:#edf4ed; border-color:#d5e3d7; color:#285641; }
body[data-ui="store"] .alert-strip.is-quiet .alert-icon { background:#dcebdd; color:#285641; }
body[data-ui="store"] .alert-strip.is-quiet strong,body[data-ui="store"] .alert-strip.is-quiet p,body[data-ui="store"] .alert-strip.is-quiet button { color:#285641; }
@media(max-width:760px) {
 body[data-ui="store"] .global-search { min-width:0; }
 body[data-ui="store"] .global-search input { min-width:0; width:100%; }
 body[data-ui="store"] .top-actions { flex-shrink:0; }
 body[data-ui="store"] .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
