/* Asset Workspace V2 — Phase B production shell (light theme) */

body.page-asset-workspace {
  color-scheme: light;
  --ws-background: oklch(0.985 0.004 95);
  --ws-foreground: #1e293b;
  --ws-card: oklch(1 0 0);
  --ws-primary: oklch(0.52 0.1 159);
  --ws-primary-fg: oklch(0.99 0.01 150);
  --ws-muted: #64748b;
  --ws-muted-soft: #94a3b8;
  --ws-link: #166534;
  --ws-border: oklch(0.91 0.006 95);
  /* Neutralize style.css dark-theme tokens inside workspace */
  --text: var(--ws-foreground);
  --text-label: var(--ws-foreground);
  --text-secondary: var(--ws-muted);
  --text-muted: var(--ws-muted-soft);
  --muted: var(--ws-muted);
  --link: var(--ws-link);
  --link-hover: #15803d;
  --ws-sidebar: oklch(0.98 0.003 95);
  --ws-radius: 12px;
  --ws-font: "Noto Sans JP", "Inter", system-ui, sans-serif;
  --ws-mono: ui-monospace, "Cascadia Code", monospace;
  --ws-shell-max: 1400px;
  --ws-nav-h: 3.25rem;
  background: var(--ws-background);
  color: var(--ws-foreground);
  min-height: 100vh;
}

body.page-asset-workspace h1,
body.page-asset-workspace h2,
body.page-asset-workspace h3,
body.page-asset-workspace h4 {
  color: var(--ws-foreground);
}

/* style.css: main a { color: var(--link) } — remap --link above; keep nav/search neutral */
body.page-asset-workspace main a.ws-nav-item {
  color: var(--ws-foreground);
  text-decoration: none;
}

body.page-asset-workspace main a.ws-nav-item.is-active {
  color: var(--ws-primary);
}

body.page-asset-workspace main a.ws-search-link {
  color: var(--ws-muted);
  text-decoration: none;
}

body.page-asset-workspace main .ws-logo a {
  color: var(--ws-primary);
  text-decoration: none;
}

body.page-asset-workspace .footer a {
  color: var(--ws-link);
}

body.page-asset-workspace .footer a:hover {
  color: var(--link-hover);
}

body.page-asset-workspace .container.asset-workspace-container {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.page-asset-workspace .footer {
  border-top: 1px solid var(--ws-border);
  background: var(--ws-card);
  color: var(--ws-muted);
}

/* Light v2 topnav (no v2-shell.css) */
body.page-asset-workspace .v2-topnav {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--ws-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

body.page-asset-workspace .v2-topnav-inner {
  max-width: var(--ws-shell-max);
  margin: 0 auto;
  min-height: var(--ws-nav-h);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

body.page-asset-workspace .v2-brand {
  color: var(--ws-foreground);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

body.page-asset-workspace .v2-brand-mark {
  background: var(--ws-primary);
  color: var(--ws-primary-fg);
}

/* 統一ブランドロゴ（pv-wordmark）— 他ページ（app-light-theme）と同じ表記に。
   カルテは v2-shell/app-light-theme を読まないため、ここで同内容を持つ */
body.page-asset-workspace .v2-brand-logo { display: block; }
body.page-asset-workspace .pv-brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
}
body.page-asset-workspace .pv-wordmark {
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #0d1a2e;
  white-space: nowrap;
}
body.page-asset-workspace .pv-wm-pv { font-weight: 700; letter-spacing: 0.04em; }
body.page-asset-workspace .pv-wm-market { font-weight: 600; }
body.page-asset-workspace .pv-jp { color: #e07820; }
body.page-asset-workspace .pv-tagline {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  color: #7a8494;
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  body.page-asset-workspace .pv-tagline { display: none; }
}

body.page-asset-workspace .v2-nav-link {
  color: var(--ws-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
}

body.page-asset-workspace .v2-nav-link:hover {
  color: var(--ws-foreground);
  background: var(--ws-sidebar);
}

body.page-asset-workspace .v2-nav-link.is-active {
  color: var(--ws-primary);
  background: color-mix(in oklch, var(--ws-primary) 12%, transparent);
  font-weight: 600;
}

body.page-asset-workspace .v2-primary-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  body.page-asset-workspace .v2-primary-nav {
    display: flex;
  }
}

body.page-asset-workspace .v2-topnav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.page-asset-workspace .v2-nav-toggle {
  margin-left: auto;
  border: 1px solid var(--ws-border);
  background: var(--ws-card);
}

@media (min-width: 768px) {
  body.page-asset-workspace .v2-nav-toggle {
    display: none;
  }
}

/* 「発電所管理」ドロップダウン（workspace は v2-shell.css を読まないため同等定義） */
body.page-asset-workspace .v2-navdrop { position: relative; display: inline-flex; }
body.page-asset-workspace .v2-navdrop-toggle {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  gap: 0.3rem;
  max-width: none;
}
body.page-asset-workspace .v2-navdrop-toggle .nav-user-menu-chevron { font-size: 0.55rem; opacity: 0.7; }
body.page-asset-workspace .v2-navdrop-panel { left: 0; right: auto; min-width: 12.5rem; }
body.page-asset-workspace .v2-navdrop-panel .nav-user-menu-item.is-active { font-weight: 700; }

/* 携帯: ワークスペースは v2-shell.css を読まないため、ハンバーガーで
   グローバルナビ（概況/保有発電所/売買電収支/全国検索/発電所市場）を開く挙動を独自に用意。
   これが無いと phone でハンバーガーを押しても何も開かず、全国検索・発電所市場へ行けない。 */
@media (max-width: 767px) {
  body.page-asset-workspace .v2-topnav-inner {
    flex-wrap: wrap;
    align-items: center;
  }
  body.page-asset-workspace .v2-topnav-actions { order: 2; }
  body.page-asset-workspace .v2-nav-toggle { order: 3; }
  body.page-asset-workspace .v2-primary-nav {
    order: 4;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--ws-border);
  }
  body.page-asset-workspace .v2-topnav.is-mobile-open .v2-primary-nav {
    display: flex;
  }
  body.page-asset-workspace .v2-nav-link {
    padding: 0.625rem 0.75rem;
  }

  /* 携帯: 「発電所管理」ドロップダウンは折りたたみリストとして展開 */
  body.page-asset-workspace .v2-navdrop { display: block; width: 100%; }
  body.page-asset-workspace .v2-navdrop-toggle { width: 100%; justify-content: flex-start; }
  body.page-asset-workspace .v2-navdrop-panel {
    position: static;
    min-width: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.25rem 1rem;
  }
}

body.page-asset-workspace .v2-icon-btn {
  color: var(--ws-muted);
}

/* User menu (no v2-shell.css on workspace pages — restyle for light chrome) */
body.page-asset-workspace .nav-user-menu-toggle {
  color: var(--ws-muted);
}

body.page-asset-workspace .nav-user-menu-toggle:hover,
body.page-asset-workspace .nav-user-menu.is-open .nav-user-menu-toggle {
  color: var(--ws-foreground);
}

/* ユーザーメニューはホーム(p9)と同じピル+頭文字アバターに統一 */
body.page-asset-workspace .v2-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 12rem;
  padding: 0.28rem 0.6rem 0.28rem 0.32rem;
  border: 1.5px solid #dde3e8;
  border-radius: 999px;
  background: #fff;
  color: #272d35;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 0.15s, color 0.15s;
}

body.page-asset-workspace .v2-user-toggle:hover,
body.page-asset-workspace .v2-user-menu.is-open .v2-user-toggle {
  border-color: oklch(0.6 0.14 200); /* = --p9-primary（ホームと同色） */
  color: oklch(0.6 0.14 200);
}

body.page-asset-workspace .v2-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: oklch(0.6 0.14 200); /* = --p9-primary（ホームと同色） */
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

body.page-asset-workspace .v2-user-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
}

body.page-asset-workspace .v2-user-menu .nav-user-menu-chevron {
  font-size: 0.58rem;
  opacity: 0.7;
}

/* ドロップダウンはホーム（p9）と同じ見た目に統一 */
body.page-asset-workspace .nav-user-menu-panel {
  min-width: 12rem;
  padding: 0.4rem 0;
  background: #fff;
  border: 1px solid #dde3e8;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(39, 45, 53, 0.16);
}

body.page-asset-workspace .nav-user-menu-item {
  padding: 0.55rem 1rem;
  color: var(--ws-foreground);
  font-size: 0.85rem;
  font-weight: 600;
}

body.page-asset-workspace .nav-user-menu-item:hover {
  background: #eef4f7;
  color: var(--ws-link);
}

@media (max-width: 639px) {
  /* 携帯は幅が足りないため社名ラベルを隠しアバターのみ表示 */
  body.page-asset-workspace .v2-user-label {
    display: none;
  }
}

/* Workspace grid */
.ws-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  min-height: calc(100vh - var(--ws-nav-h) - 4rem);
  max-width: var(--ws-shell-max);
  margin: 0 auto;
}

.ws-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  height: var(--ws-nav-h);
  border-bottom: 1px solid var(--ws-border);
  background: var(--ws-card);
}

.ws-logo a {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ws-primary);
  text-decoration: none;
}

.ws-facility-switch {
  font-size: 0.75rem;
  color: var(--ws-muted);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--ws-border);
  border-radius: 8px;
  background: var(--ws-sidebar);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-topbar-spacer {
  flex: 1;
}

.ws-search-link {
  font-size: 0.6875rem;
  color: var(--ws-muted);
  text-decoration: none;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--ws-border);
  border-radius: 8px;
  background: var(--ws-sidebar);
}

.ws-mobile-nav {
  grid-column: 1 / -1;
  display: none;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--ws-border);
  background: var(--ws-card);
}

.ws-mobile-nav-select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--ws-border);
  font-family: inherit;
  font-size: 0.8125rem;
}

.ws-sidebar {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--ws-border);
  background: var(--ws-sidebar);
}

.ws-nav-title {
  margin: 0 0 0.75rem;
  padding: 0 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ws-muted);
}

.ws-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.ws-nav-item {
  display: block;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8125rem;
  color: var(--ws-foreground);
}

.ws-nav-item:hover {
  background: color-mix(in oklch, var(--ws-primary) 6%, transparent);
}

.ws-nav-item.is-active {
  background: color-mix(in oklch, var(--ws-primary) 12%, transparent);
  color: var(--ws-primary);
  font-weight: 600;
}

.ws-main {
  padding: 1rem 1.25rem 1.5rem;
  min-width: 0;
}

.ws-facility-header {
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--ws-border);
}

.ws-facility-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.ws-facility-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ws-status {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--ws-primary) 14%, transparent);
  color: var(--ws-primary);
  font-weight: 600;
}

.ws-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: var(--ws-muted);
}

.ws-meta code {
  font-family: var(--ws-mono);
  font-size: 0.625rem;
}

.ws-facility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.ws-facility-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.ws-facility-meta {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  color: var(--ws-muted);
}

.ws-facility-meta code {
  font-family: var(--ws-mono);
  font-size: 0.625rem;
}

.ws-facility-chips--muted .ws-chip {
  background: transparent;
  border-color: #e2e8f0;
  color: #475569;
  font-weight: 500;
}

.ws-owner-badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.ws-owner-badge--approved {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.ws-facility-more-wrap {
  position: relative;
}

.ws-facility-more-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 11rem;
  padding: 0.25rem;
  border: 1px solid var(--ws-border);
  border-radius: 10px;
  background: var(--ws-card);
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.12);
}

.ws-facility-more-item {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ws-foreground);
  text-decoration: none;
}

.ws-facility-more-item:hover {
  background: color-mix(in oklch, var(--ws-primary) 6%, transparent);
}

.ws-section-heading {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.ws-section-lead {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
}

.ws-section-note {
  margin: 0.75rem 0 0.375rem;
  font-size: 0.6875rem;
  color: var(--ws-muted);
}

.ws-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ws-card {
  padding: 0.75rem 1rem;
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  background: var(--ws-card);
  margin-bottom: 0.75rem;
}

.ws-card--placeholder {
  border-style: dashed;
  text-align: center;
  padding: 1.25rem;
}

.ws-card-title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.ws-card-desc {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ws-muted);
}

/* Command center */
.ws-command-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.ws-command-sub {
  margin: 0.125rem 0 0;
  font-size: 0.6875rem;
  color: var(--ws-muted);
}

.ws-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
}

.ws-status-strip span {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--ws-card);
  border: 1px solid var(--ws-border);
}

.ws-attention-queue {
  padding: 0;
  overflow: hidden;
}

.ws-attention-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ws-border);
  background: color-mix(in oklch, var(--ws-primary) 4%, var(--ws-card));
}

.ws-attention-head h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.ws-attention-count {
  font-size: 0.6875rem;
  color: var(--ws-muted);
}

.ws-attention-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ws-border);
  font-size: 0.75rem;
}

.ws-attention-item:last-child {
  border-bottom: none;
}

.ws-attention-item-body strong {
  display: block;
  font-weight: 600;
}

.ws-attention-item-body span {
  color: var(--ws-muted);
  font-size: 0.6875rem;
}

.ws-pill {
  flex-shrink: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  text-decoration: none;
}

.ws-pill--urgent {
  background: color-mix(in oklch, oklch(0.72 0.14 25) 18%, transparent);
  color: oklch(0.45 0.12 25);
}

.ws-pill--action {
  background: color-mix(in oklch, oklch(0.78 0.14 78) 22%, transparent);
  color: oklch(0.42 0.08 70);
}

.ws-pill--confirm {
  background: color-mix(in oklch, var(--ws-primary) 14%, transparent);
  color: var(--ws-primary);
}

.ws-activity-item {
  display: flex;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--ws-border);
  font-size: 0.6875rem;
}

.ws-activity-item:last-child {
  border-bottom: none;
}

.ws-activity-dot {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.25rem;
  border-radius: 999px;
  background: var(--ws-primary);
  flex-shrink: 0;
}

.ws-snapshot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--ws-sidebar);
  font-size: 0.6875rem;
  color: var(--ws-muted);
}

.ws-snapshot-strip strong {
  color: var(--ws-foreground);
  font-family: var(--ws-mono);
}

.ws-shortcuts {
  margin-top: 0.25rem;
}

/* Financial */
.ws-fin-hero {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.ws-fin-valuation {
  padding: 1rem;
  border-radius: var(--ws-radius);
  border: 1px solid color-mix(in oklch, var(--ws-primary) 22%, var(--ws-border));
  background: color-mix(in oklch, var(--ws-primary) 5%, var(--ws-card));
}

.ws-fin-valuation-label {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--ws-muted);
}

.ws-fin-valuation-value {
  margin: 0.25rem 0 0;
  font-family: var(--ws-mono);
  font-size: 1.5rem;
  font-weight: 700;
}

.ws-fin-valuation-meta {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: var(--ws-muted);
}

.ws-fin-metric {
  margin: 0;
  padding: 0.75rem;
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  background: var(--ws-card);
}

.ws-fin-metric dt {
  margin: 0;
  font-size: 0.625rem;
  color: var(--ws-muted);
}

.ws-fin-metric dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--ws-mono);
}

.ws-fin-layer2 {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ws-border);
}

.ws-fin-layer2-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ws-muted);
}

.ws-ops-kpis {
  margin-bottom: 1rem;
}

.ws-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile */
@media (max-width: 767px) {
  .ws-shell {
    grid-template-columns: 1fr;
  }

  .ws-sidebar {
    display: none;
  }

  .ws-mobile-nav {
    display: block;
  }

  .ws-search-link {
    display: none;
  }

  .ws-grid-2 {
    grid-template-columns: 1fr;
  }

  .ws-fin-hero {
    grid-template-columns: 1fr 1fr;
  }

  .ws-fin-valuation {
    grid-column: 1 / -1;
  }

  .ws-facility-title {
    font-size: 1rem;
  }

  .ws-main {
    padding: 0.75rem;
  }
}

/* Asset Document Center (C1) */
.ws-doc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ws-doc-lead {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  max-width: 42rem;
}

.ws-doc-upload-btn {
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  background: var(--ws-primary);
  color: var(--ws-primary-fg);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.ws-doc-upload-btn:hover {
  filter: brightness(0.96);
}

.ws-doc-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.ws-doc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border);
  background: var(--ws-card);
  color: var(--ws-muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.ws-doc-chip.is-active,
.ws-doc-chip:hover {
  border-color: color-mix(in oklch, var(--ws-primary) 35%, var(--ws-border));
  color: var(--ws-foreground);
  background: color-mix(in oklch, var(--ws-primary) 6%, var(--ws-card));
}

.ws-doc-meta {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
}

.ws-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ws-doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  background: var(--ws-card);
}

.ws-doc-row-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ws-foreground);
  word-break: break-all;
}

.ws-doc-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: var(--ws-muted);
}

.ws-doc-badge {
  display: inline-flex;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: color-mix(in oklch, var(--ws-primary) 12%, var(--ws-sidebar));
  color: var(--ws-foreground);
  font-weight: 500;
}

.ws-doc-badge--soft {
  background: var(--ws-sidebar);
  color: var(--ws-muted);
}

.ws-doc-source {
  font-weight: 500;
}

.ws-doc-row-memo {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
}

.ws-doc-row-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ws-doc-action {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--ws-border);
  background: var(--ws-card);
  color: var(--ws-foreground);
  font-size: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.ws-doc-action--danger {
  color: oklch(0.45 0.12 25);
  border-color: color-mix(in oklch, oklch(0.45 0.12 25) 25%, var(--ws-border));
}

.ws-doc-empty {
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.ws-doc-maintenance-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: var(--ws-sidebar);
  border-left: 3px solid var(--ws-primary);
}

.ws-doc-maintenance-note a {
  color: var(--ws-primary);
  font-weight: 600;
}

.ws-doc-dialog {
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  padding: 0;
  max-width: 28rem;
  width: calc(100% - 2rem);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.ws-doc-dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.ws-doc-upload-form {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ws-doc-upload-form h3 {
  margin: 0;
  font-size: 1rem;
}

.ws-doc-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8125rem;
}

.ws-doc-field select,
.ws-doc-field input[type="file"],
.ws-doc-field textarea {
  border: 1px solid var(--ws-border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font: inherit;
  background: var(--ws-card);
  color: var(--ws-foreground);
}

.ws-doc-string-hint {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: color-mix(in oklch, var(--ws-primary) 8%, var(--ws-sidebar));
  font-size: 0.75rem;
}

.ws-doc-form-error {
  margin: 0;
  color: oklch(0.45 0.12 25);
  font-size: 0.8125rem;
}

.ws-doc-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

@media (max-width: 767px) {
  .ws-doc-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ws-doc-categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .ws-doc-row {
    flex-direction: column;
  }
}

/* ── Overview V1.3 — Operational Cockpit ── */
.ws-overview-label {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ws-muted);
}

.ws-overview-identity {
  margin-bottom: 0.85rem;
}

.ws-overview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.ws-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  border: 1px solid var(--ws-border);
  background: var(--ws-card);
  color: var(--ws-foreground);
}

.ws-chip--status {
  border-color: color-mix(in oklch, var(--ws-primary) 35%, var(--ws-border));
  background: color-mix(in oklch, var(--ws-primary) 8%, var(--ws-card));
  color: var(--ws-primary);
}

.ws-overview-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ws-muted);
}

.ws-attention-hero {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  background: var(--ws-card);
}

.ws-attention-hero--level-none {
  border-color: #bbf7d0;
}

.ws-attention-hero--level-light {
  background: #fffefb;
  border-color: #fde68a;
}

.ws-attention-hero--level-moderate {
  background: #fff7ed;
  border-color: #fdba74;
}

.ws-attention-hero--level-critical {
  background: #fef2f2;
  border-color: #fca5a5;
}

.ws-attention-hero-head h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ws-foreground);
}

.ws-attention-icon {
  color: #d97706;
  margin-right: 0.1rem;
}

.ws-attention-hero--level-none .ws-attention-icon,
.ws-attention-hero--level-none .ws-attention-count {
  color: oklch(0.45 0.12 145);
}

.ws-attention-hero--level-light .ws-attention-icon,
.ws-attention-hero--level-light .ws-attention-count {
  color: #d97706;
}

.ws-attention-hero--level-moderate .ws-attention-icon,
.ws-attention-hero--level-moderate .ws-attention-count {
  color: #ea580c;
}

.ws-attention-hero--level-critical .ws-attention-icon,
.ws-attention-hero--level-critical .ws-attention-count {
  color: #dc2626;
}

.ws-attention-count {
  font-weight: 800;
}

.ws-attention-hero-head p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--ws-muted);
  font-weight: 500;
}

.ws-attention-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}

.ws-attention-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--ws-border);
}

.ws-attention-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.ws-attention-list strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ws-foreground);
}

.ws-attention-list span {
  display: block;
  font-size: 0.6875rem;
  color: var(--ws-muted);
  margin-top: 0.08rem;
}

.ws-snapshot-panel {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  background: var(--ws-card);
}

.ws-panel--revenue {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, var(--ws-card) 100%);
}

.ws-panel--revenue h3 {
  margin: 0 0 0.55rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: oklch(0.35 0.1 145);
}

.ws-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0;
}

.ws-snapshot-metric dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ws-muted);
}

.ws-snapshot-metric dd {
  margin: 0.12rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ws-snapshot-metric dd small {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--ws-muted);
  margin-top: 0.08rem;
}

.ws-yoy-up {
  color: oklch(0.45 0.12 145);
}

.ws-trend-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  align-items: stretch;
}

.ws-revenue-trend--split {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 20px rgba(61, 143, 106, 0.1);
}

.ws-revenue-trend--split .ws-overview-chart {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ws-revenue-trend--split .ws-overview-chart .owner-room-revenue-bar-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.ws-revenue-trend--split .ws-overview-chart .facility-generation-bar-chart-wrap {
  flex: 1;
  min-height: 140px;
  max-height: 200px;
}

.ws-revenue-trend--split .ws-overview-chart .facility-generation-bar-chart-svg {
  width: 100%;
  height: 100%;
  max-height: 200px;
}

.ws-revenue-trend-foot {
  margin: 0.45rem 0 0;
  font-size: 0.6875rem;
  color: var(--ws-muted-soft);
}

.ws-revenue-trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ws-revenue-trend-head h3 {
  margin: 0;
  font-size: 0.875rem;
}

.ws-revenue-trend-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--ws-muted);
  font-weight: 600;
}

.ws-year-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.ws-year-pill {
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--ws-primary);
  border-color: var(--ws-primary);
  color: var(--ws-primary-fg);
}

.ws-revenue-trend-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.6875rem;
  color: var(--ws-muted);
}

.ws-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.ws-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.ws-revenue-ytd {
  margin-left: auto;
  font-weight: 700;
  color: oklch(0.45 0.12 145);
  font-size: 0.75rem;
}

.ws-overview-chart .owner-room-revenue-bar-chart {
  margin: 0;
}

.ws-revenue-trend-foot a {
  color: var(--ws-link);
  font-weight: 600;
  text-decoration: none;
}

.ws-revenue-trend-foot a:hover {
  color: #15803d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Overview Revenue Hero (方案 3) */
.ws-section--overview-hero .ws-kpi-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0 0 0.75rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid var(--ws-border);
}

.ws-kpi-hero-metric dt {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ws-muted-soft);
}

.ws-kpi-hero-metric dd {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #15803d;
  letter-spacing: -0.02em;
}

.ws-kpi-hero-metric dd.ws-yoy-down {
  color: #dc2626;
}

.ws-kpi-hero-metric dd.ws-yoy-up {
  color: #15803d;
}

.ws-kpi-hero-metric dd small {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ws-muted-soft);
}

.ws-revenue-trend--hero {
  border-color: var(--ws-border);
  box-shadow: none;
}

.ws-section--overview-hero .ws-revenue-trend-head h3 {
  color: var(--ws-foreground);
  font-size: 0.875rem;
}

.ws-section--overview-hero .ws-revenue-trend-sub {
  color: var(--ws-muted-soft);
  font-weight: 500;
}

.ws-section--overview-hero .ws-snapshot-panel h3 {
  color: var(--ws-foreground);
}

.ws-section--overview-hero .ws-overview-chart .gen-chart-axis-label {
  fill: var(--ws-muted-soft);
}

.ws-section--overview-hero .ws-overview-chart .gen-chart-axis-title {
  fill: var(--ws-muted-soft);
}

.ws-map-card--minimal .ws-map-card-foot--minimal {
  padding: 0.45rem 0.65rem 0.55rem;
}

.ws-map-card--minimal .ws-map-card-foot--minimal .ws-map-gmaps-link {
  margin: 0;
}

.ws-attention-hero--flat {
  padding: 0.65rem 0.85rem;
  border-color: #f1f5f9;
  background: #fff;
  box-shadow: none;
}

.ws-attention-hero--flat .ws-attention-list--flat li:first-child {
  border-top: none;
  padding-top: 0;
}

.ws-attention-empty {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ws-muted);
}

@media (max-width: 767px) {
  .ws-section--overview-hero .ws-kpi-hero {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.ws-map-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  overflow: hidden;
  background: var(--ws-card);
}

.ws-map-card--trend {
  height: 100%;
  border-color: #86efac;
  box-shadow: 0 2px 12px rgba(61, 143, 106, 0.06);
}

.ws-map-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 140px;
  position: relative;
}

.ws-map-card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--ws-muted);
  background: linear-gradient(180deg, #f0fdf4 0%, var(--ws-sidebar) 100%);
  border-bottom: 1px solid #bbf7d0;
}

.ws-map-card--minimal .ws-map-card-label .pv-map-basemap--compact {
  margin: 0;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.ws-map-card--minimal .pv-map-basemap-btn {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  line-height: 1.2;
}

.ws-map-card--minimal .pv-map-basemap-btn:hover {
  border-color: #86efac;
  color: #166534;
}

.ws-map-card--minimal .pv-map-basemap-btn.is-active {
  background: var(--ws-primary);
  border-color: var(--ws-primary);
  color: var(--ws-primary-fg);
  font-weight: 700;
}

.ws-map-basemap-fallback {
  color: oklch(0.35 0.1 145);
  font-weight: 600;
}

.ws-map-card-label span:last-child {
  color: oklch(0.35 0.1 145);
}

.ws-overview-map {
  flex: 1;
  min-height: 120px;
  width: 100%;
  height: 100%;
}

.ws-map-placeholder {
  flex: 1;
  min-height: 120px;
  background: var(--ws-sidebar);
}

.ws-map-card-foot {
  padding: 0.55rem 0.65rem 0.65rem;
}

.ws-map-card-foot p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ws-map-gmaps-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ws-link);
  text-decoration: none;
}

.ws-map-gmaps-link:hover {
  color: #15803d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ws-land-asset-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  margin: 0.35rem 0 0;
  padding-top: 0.35rem;
  border-top: 1px dashed #bbf7d0;
}

.ws-land-asset-meta dt {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--ws-muted);
  text-align: center;
}

.ws-land-asset-meta dd {
  margin: 0.08rem 0 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
}

.ws-land-asset-meta dd.is-empty {
  color: var(--ws-muted);
  font-weight: 600;
}

.ws-panel--operations {
  background: #f8faf9;
  border-color: #e2e8f0;
}

.ws-attention-hero--flat .ws-attention-head {
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  display: block;
}

.ws-dual-snap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.ws-snap {
  padding: 0.65rem 0.75rem;
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  background: #fafafa;
}

.ws-snap h3 {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ws-foreground);
}

.ws-snap-grid {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.ws-snap-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
}

.ws-snap-metric dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ws-muted);
}

.ws-snap-metric dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: right;
}

.ws-ops-status::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--ws-primary);
  margin-right: 0.25rem;
  vertical-align: middle;
}

.ws-panel--activity {
  background: #fafafa;
  border-color: #e8ecea;
}

.ws-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ws-card-head h3 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ws-muted);
  font-weight: 600;
}

.ws-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ws-timeline-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.35rem 0.5rem;
  align-items: start;
  padding: 0.45rem 0;
  font-size: 0.75rem;
}

.ws-timeline-date {
  font-weight: 600;
  color: var(--ws-muted);
}

.ws-timeline-arrow {
  color: var(--ws-muted);
  font-size: 0.625rem;
}

@media (max-width: 767px) {
  .ws-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .ws-dual-snap {
    grid-template-columns: 1fr;
  }

  .ws-trend-map-row {
    grid-template-columns: 1fr;
  }

  .ws-revenue-ytd {
    margin-left: 0;
    width: 100%;
  }

  .ws-rev-hero {
    grid-template-columns: 1fr;
  }

  .ws-rev-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Revenue Section V2 (案A) ── */
.ws-section--revenue-v2 {
  padding-top: 0;
}

.ws-rev-lead {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
}

.ws-rev-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.ws-rev-subnav span {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ws-muted);
}

.ws-rev-subnav .is-on {
  background: #166534;
  border-color: #166534;
  color: #fff;
}

.ws-rev-subnav .is-soon {
  opacity: 0.45;
  border-style: dashed;
}

.ws-rev-hero {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.ws-rev-hero-main {
  padding: 0.75rem 0.85rem;
  border-radius: var(--ws-radius);
  border: 2px solid #86efac;
  background: linear-gradient(135deg, #f0fdf4 0%, var(--ws-card) 55%);
}

.ws-rev-hero-label {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ws-muted);
  text-transform: uppercase;
}

.ws-rev-hero-value {
  margin: 0.15rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #15803d;
  letter-spacing: -0.02em;
}

.ws-rev-hero-sub {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  color: var(--ws-muted);
  line-height: 1.45;
}

.ws-rev-metric {
  margin: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--ws-border);
  background: var(--ws-card);
}

.ws-rev-metric dt {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #94a3b8;
}

.ws-rev-metric dd {
  margin: 0.12rem 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ws-foreground);
}

.ws-rev-metric dd.is-muted {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.ws-rev-metric--fit dd { font-size: 0.8125rem; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.ws-rev-metric--fit .ws-fit-val { color: var(--ws-foreground); font-weight: 700; }
.ws-fit-badge {
  font-size: 0.5625rem; font-weight: 700; padding: 0.08rem 0.34rem; border-radius: 999px;
  background: #fef3c7; color: #b45309; letter-spacing: .02em;
}
.ws-fit-badge--ok { background: #dcfce7; color: #15803d; }
.ws-rev-metric--curtail dd { font-size: 0.8125rem; display: flex; flex-direction: column; gap: 1px; }
.ws-rev-metric--curtail .ws-curtail-kwh { color: #b45309; font-weight: 700; }
.ws-rev-metric--curtail .ws-curtail-yen { font-size: 0.625rem; color: #94a3b8; font-weight: 600; }
.ws-rev-metric--overload dd { font-size: 0.8125rem; display: flex; flex-direction: column; gap: 1px; }
.ws-rev-metric--overload .ws-ov-val { color: var(--ws-foreground); font-weight: 700; }
.ws-rev-metric--overload .ws-ov-tier { font-size: 0.625rem; color: #94a3b8; font-weight: 600; }
/* 同種発電所比較パネル（A フレーム: DC/AC帯 + 同エリア件数、発電実績比較は今後） */
.ws-peer { margin: 0.85rem 0 0; border: 1px solid var(--ws-border); border-radius: 10px;
  background: var(--ws-card); padding: 0.8rem 0.95rem; }
.ws-peer-head { font-size: 0.75rem; font-weight: 800; color: var(--ws-foreground); margin-bottom: 0.65rem; }
.ws-peer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.2rem; }
@media (max-width: 560px) { .ws-peer-grid { grid-template-columns: 1fr; } }
.ws-peer-item { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  border-bottom: 1px solid var(--ws-border); padding-bottom: 0.35rem; }
.ws-peer-k { font-size: 0.6875rem; color: #94a3b8; font-weight: 600; white-space: nowrap; }
.ws-peer-v { font-size: 0.8125rem; color: var(--ws-foreground); font-weight: 700;
  font-variant-numeric: tabular-nums; text-align: right; }
.ws-peer-v b { color: #15803d; font-size: 0.9375rem; }
.ws-peer-wait { color: #b45309; font-weight: 700; font-size: 0.6875rem; }
.ws-peer-note { margin: 0.65rem 0 0; font-size: 0.625rem; color: #94a3b8; line-height: 1.55; }
/* 発電ポテンシャル診断（B: 日射量ベース理論推定 vs 実績・参考） */
.ws-potential { margin: 0.85rem 0 0; border: 1px solid var(--ws-border); border-left: 4px solid #94a3b8;
  border-radius: 10px; background: var(--ws-card); padding: 0.8rem 0.95rem; }
.ws-pot-good { border-left-color: #15803d; }
.ws-pot-low { border-left-color: #b4552d; }
.ws-pot-curtail { border-left-color: #2563eb; }
.ws-pot-head { font-size: 0.75rem; font-weight: 800; color: var(--ws-foreground); margin-bottom: 0.65rem;
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.ws-pot-ref { font-size: 0.5625rem; font-weight: 600; color: #94a3b8; }
.ws-pot-nums { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.ws-pot-cell { display: flex; flex-direction: column; gap: 1px; }
.ws-pot-k { font-size: 0.625rem; color: #94a3b8; font-weight: 600; }
.ws-pot-v { font-size: 0.9375rem; font-weight: 700; color: var(--ws-foreground); font-variant-numeric: tabular-nums; }
.ws-pot-gap { font-size: 1.0625rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ws-pot-good .ws-pot-gap { color: #15803d; }
.ws-pot-low .ws-pot-gap { color: #b4552d; }
.ws-pot-curtail .ws-pot-gap { color: #2563eb; }
.ws-pot-note { margin: 0.6rem 0 0; font-size: 0.6875rem; color: #64748b; line-height: 1.55; }
/* IA 3分割: 保守サマリー条 */
.ws-maint-summary { margin: 0.75rem 0 1rem; }

/* 発電状況 三段式レイアウト（①状態 ②診断 ③証跡） */
.ws-rev-hero--slim { grid-template-columns: 2fr 1fr 1.3fr; }
@media (max-width: 760px) { .ws-rev-hero--slim { grid-template-columns: 1fr 1fr; } }
.ws-rev-metric--diag dd { display: flex; flex-direction: column; gap: 1px; }
.ws-rev-metric--diag .ws-diag-gap { font-size: 1.0625rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ws-rev-metric--diag .ws-diag-word { font-size: 0.5625rem; font-weight: 700; }
.ws-diag-good .ws-diag-gap, .ws-diag-good .ws-diag-word { color: #15803d; }
.ws-diag-low .ws-diag-gap, .ws-diag-low .ws-diag-word { color: #b4552d; }
.ws-diag-curtail .ws-diag-gap, .ws-diag-curtail .ws-diag-word { color: #2563eb; }
.ws-rev-chart-full { border: 1px solid var(--ws-border); border-radius: var(--ws-radius);
  background: var(--ws-card); padding: 0.85rem 1rem; margin-bottom: 0.85rem; }
.ws-rev-chart-full .ws-rev-panel-title { margin-top: 0; }
.ws-rev-chart-full .owner-room-revenue--workspace-v2 .owner-room-revenue-chart-head { margin-bottom: 0.35rem; }
.ws-rev-chart-full .owner-room-revenue--workspace-v2 .owner-room-revenue-section-title { display: none; }
/* 資産属性チップ（facility_header 内へ移設・値持ち）: 既存 ws-chip より値を濃く */
.ws-chip--val { color: var(--ws-foreground); font-weight: 700; font-variant-numeric: tabular-nums; }
.ws-chip--val b { font-weight: 700; font-size: 0.5625rem; }
.ws-chip-ok { color: #15803d; }
.ws-chip-est { color: #b45309; }
/* 監視システムのアクティブ告警（FusionSolar 一次情報。「故障」の中身） */
.ws-alarm-box { margin: 10px 0 4px; padding: 9px 12px; background: #fff7ed;
  border: 1px solid #fdba74; border-radius: 10px; }
.ws-alarm-head { font-size: 12px; font-weight: 800; color: #9a3412; margin-bottom: 3px; }
.ws-alarm-item summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: #b45309; padding: 3px 0; }
.ws-alarm-item summary small { margin-left: 8px; font-size: 11px; font-weight: 600; color: #a8a29e; }
.ws-alarm-cause { font-size: 12px; line-height: 1.55; color: #57534e;
  white-space: pre-line; margin: 4px 0 6px 1.2em; }

/* 当日天気・日射（日次パフォーマンス／カーブの文脈。今日の動的データ） */
.ws-daily-wx {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  margin: 0.15rem 0 0.55rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: color-mix(in oklch, var(--ws-primary) 6%, var(--ws-card));
  border: 1px solid color-mix(in oklch, var(--ws-primary) 22%, var(--ws-border));
  font-size: 0.75rem;
  color: var(--ws-muted);
}
.ws-daily-wx-ic { font-size: 0.9375rem; line-height: 1; }
.ws-daily-wx-label { font-weight: 700; color: var(--ws-foreground); }
.ws-daily-wx-t { color: var(--ws-muted); font-variant-numeric: tabular-nums; }
.ws-daily-wx-rad { margin-left: auto; font-variant-numeric: tabular-nums; }
.ws-daily-wx-rad b { color: var(--ws-primary); font-weight: 800; }
.ws-rev-pdf-block { margin-top: 0.85rem; }
.ws-rev-pdf-block .ws-rev-pdf-table { width: 100%; max-width: 760px; }
/* 月別 売電通知書PDF ダウンロードボタン（/portfolio/revenue の赤PDFボタンと同系） */
.ws-pdf-btn { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px;
  background: #fdecec; color: #c0392b; border: 1px solid #f3c4c1; font-size: 0.625rem; font-weight: 800;
  letter-spacing: 0.02em; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s; }
.ws-pdf-btn svg { flex: none; }
.ws-pdf-btn:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.ws-pdf-btn:focus-visible { outline: 2px solid #c0392b; outline-offset: 2px; }

/* E′: 日次パフォーマンス（今日のカーブ + 直近30日） */
.ws-daily { background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: var(--ws-radius);
  padding: 0.8rem 1rem 0.7rem; margin: 0 0 0.65rem; }
.ws-daily-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ws-daily-stats { display: flex; gap: 14px; font-size: 0.72rem; color: var(--ws-muted); }
.ws-daily-stats b { color: var(--ws-foreground); font-variant-numeric: tabular-nums; }
.ws-daily-sec { font-size: 0.68rem; font-weight: 800; color: var(--ws-muted); margin: 0.55rem 0 0.3rem; }
.ws-daily-sub { font-weight: 600; margin-left: 8px; color: var(--ws-muted-soft); }
.ws-curve { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.ws-curve-slot { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.ws-curve-theo { position: absolute; left: 0; right: 0; bottom: 0; background: #e7f6ef; border-radius: 3px 3px 0 0; }
.ws-curve-act { position: relative; width: 100%; background: linear-gradient(180deg, #34d399, #00734f);
  border-radius: 3px 3px 0 0; min-height: 2px; }
.ws-curve-act.is-empty { background: transparent; }
.ws-curve-axis { display: flex; justify-content: space-between; font-size: 0.6rem; color: var(--ws-muted-soft); margin-top: 3px; }
.ws-days30 { display: flex; align-items: flex-end; gap: 2px; height: 52px; border-bottom: 1px solid var(--ws-border); }
.ws-day-bar { flex: 1; background: #6fcfa4; border-radius: 2px 2px 0 0; min-height: 2px; }
.ws-day-bar:last-child { background: #00734f; }
.ws-day-bar.is-empty { background: color-mix(in oklch, var(--ws-border) 60%, transparent); }
.ws-health-strip { display: flex; gap: 2px; margin-top: 3px; }
.ws-health-strip i { flex: 1; height: 5px; border-radius: 2px; }
.ws-health-strip .hs-ok { background: #10b981; }
.ws-health-strip .hs-bad { background: #ef4444; }
.ws-health-strip .hs-na { background: var(--ws-border); }

/* 共有 · アクセス管理 */
.ws-share-lead { margin: 0 0 0.6rem; }
.ws-share-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.ws-share-table th { text-align: left; font-size: 0.6875rem; color: var(--ws-muted);
  padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--ws-border); font-weight: 600; }
.ws-share-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid color-mix(in oklch, var(--ws-border) 55%, transparent); vertical-align: middle; }
.ws-share-self { font-size: 0.625rem; font-weight: 700; color: var(--ws-muted);
  border: 1px solid var(--ws-border); border-radius: 999px; padding: 1px 7px; }
.ws-share-revoke { font-size: 0.6875rem; font-weight: 700; color: #b91c1c;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 7px; padding: 3px 10px; cursor: pointer;
  transition: background 0.12s, color 0.12s; }
.ws-share-revoke:hover { background: #b91c1c; color: #fff; }
.ws-share-flash { font-size: 0.75rem; font-weight: 600; border-radius: 8px; padding: 0.4rem 0.65rem; margin: 0 0 0.6rem; }
.ws-share-flash--ok { background: #ecfdf5; color: #00734f; border: 1px solid #a7f3d0; }
.ws-share-flash--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ws-share-note { margin-top: 0.5rem; }

/* 共有を追加フォーム */
.ws-share-invite { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.6rem 0 0.3rem; align-items: center; }
.ws-share-email { flex: 1 1 220px; min-width: 180px; font-size: 0.8rem; padding: 7px 11px;
  border: 1px solid var(--ws-border); border-radius: 8px; background: var(--ws-card); color: var(--ws-foreground); }
.ws-share-email:focus { outline: 2px solid #00956f; outline-offset: 1px; }
.ws-share-role { font-size: 0.78rem; font-weight: 600; padding: 7px 10px; border: 1px solid var(--ws-border);
  border-radius: 8px; background: var(--ws-card); color: var(--ws-foreground); cursor: pointer; }
.ws-share-add { font-size: 0.8rem; font-weight: 800; color: #fff; background: #00734f; border: none;
  border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.ws-share-add:hover { background: #005a3e; }
.ws-share-hint { margin: 0 0 0.6rem; }

/* 共有ダイアログ（ヘッダーの「共有」ボタンから開く） */
.ws-share-dialog { width: min(560px, calc(100vw - 2rem)); max-height: 85vh; overflow-y: auto;
  border: 1px solid var(--ws-border); border-radius: 14px; padding: 1.1rem 1.25rem 1.35rem;
  background: var(--ws-card); color: var(--ws-foreground); box-shadow: 0 24px 60px rgba(0,0,0,0.28); }
.ws-share-dialog::backdrop { background: rgba(15,23,42,0.45); }
.ws-share-dialog-close-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.4rem; }
.ws-share-dialog-title { margin: 0; font-size: 1rem; font-weight: 800; }
.ws-share-dialog-x { font-size: 1.35rem; line-height: 1; color: var(--ws-muted); background: none; border: none;
  cursor: pointer; padding: 0 4px; }
.ws-share-dialog-x:hover { color: var(--ws-foreground); }
.ws-share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* 共有する板块（チェックボックス） */
.ws-share-sections { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.7rem 0 0.2rem;
  padding: 0.6rem 0.75rem; border: 1px solid var(--ws-border); border-radius: 10px; }
.ws-share-sections-legend { font-size: 0.7rem; font-weight: 700; color: var(--ws-muted); padding: 0 4px; }
.ws-share-section { display: flex; align-items: baseline; gap: 8px; font-size: 0.8rem; cursor: pointer; }
.ws-share-section input { margin: 0; flex: 0 0 auto; }
.ws-share-section-label { font-weight: 700; }
.ws-share-section-hint { font-size: 0.7rem; }

/* 共有先ごとの板块スコープ表示 */
.ws-share-scope { display: inline-block; margin-left: 6px; font-size: 0.625rem; font-weight: 700;
  color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 1px 8px; }

/* 立場バッジ（/assets 一覧と同義: オーナー/管理/閲覧） */
.ws-role-badge { display: inline-block; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ws-role-badge--owner { background: #ecfdf5; color: #00734f; border: 1px solid #a7f3d0; }
.ws-role-badge--managed { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.ws-role-badge--viewer { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* 通知書テーブル — 年フィルタ */
.ws-rev-pdf-years { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 0.5rem; }
.ws-rev-year-btn {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--ws-border);
  border-radius: 999px;
  background: var(--ws-card);
  color: var(--ws-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.ws-rev-year-btn:hover { color: var(--ws-foreground); background: var(--ws-sidebar); }
.ws-rev-year-btn.is-active {
  background: #ecfdf5;
  color: #00734f;
  border-color: #a7f3d0;
}

.ws-rev-insights {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  list-style: disc;
  padding-left: 1.35rem;
  font-size: 0.6875rem;
  color: #166534;
  line-height: 1.5;
}

.ws-rev-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  align-items: start;
}

.ws-rev-panel-title {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.ws-rev-chart-col .owner-room-revenue--workspace-v2 .owner-room-revenue-chart-head {
  margin-bottom: 0.35rem;
}

.ws-rev-chart-col .owner-room-revenue--workspace-v2 .owner-room-revenue-section-title {
  display: none;
}

.ws-rev-pdf-col {
  padding: 0.65rem 0.75rem;
  border-radius: var(--ws-radius);
  border: 1px solid #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, var(--ws-card) 100%);
}

.ws-rev-pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
}

.ws-rev-pdf-table th {
  text-align: left;
  padding: 0.28rem 0.35rem;
  color: var(--ws-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--ws-border);
}

.ws-rev-pdf-table td {
  padding: 0.32rem 0.35rem;
  border-bottom: 1px solid #f1f5f9;
}

.ws-rev-pdf-ok {
  color: #166534;
  font-weight: 700;
}

.ws-rev-pdf-warn {
  color: #64748b;
  font-weight: 600;
}

.ws-rev-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.ws-rev-kpi-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, var(--ws-card) 100%);
  color: var(--ws-muted);
  font-size: 0.5625rem;
}

.ws-rev-kpi-compact div span {
  display: block;
  color: var(--ws-muted-soft);
}

.ws-rev-kpi-compact strong {
  display: block;
  font-size: 0.75rem;
  color: #15803d;
  margin-top: 0.06rem;
}

.ws-rev-kpi-compact .ws-yoy-up {
  color: #15803d;
}

.ws-rev-kpi-compact .ws-yoy-down {
  color: #dc2626;
}

.ws-rev-snapshot-fold {
  margin-top: 0.25rem;
}

.ws-rev-snapshot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px dashed #86efac;
  background: #f0fdf4;
  font-size: 0.6875rem;
  color: var(--ws-muted);
  cursor: pointer;
  list-style: none;
}

.ws-rev-snapshot-bar::-webkit-details-marker {
  display: none;
}

.ws-rev-snapshot-toggle {
  color: #166534;
  font-weight: 600;
  white-space: nowrap;
}

.ws-rev-snapshot-body {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--ws-border);
}

/* Revenue V2 — chart & controls: green palette on light surface */
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-metric-btn {
  border-color: #bbf7d0;
  color: var(--ws-muted);
  background: var(--ws-card);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-metric-btn:hover {
  color: #166534;
  border-color: #86efac;
  background: #f0fdf4;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-metric-btn.is-on {
  color: #166534;
  border-color: var(--ws-primary);
  background: color-mix(in oklch, var(--ws-primary) 14%, transparent);
  font-weight: 700;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .facility-generation-year-pill {
  border-color: #d1fae5;
  color: var(--ws-muted);
  background: var(--ws-card);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .facility-generation-year-pill:hover {
  color: #166534;
  border-color: #86efac;
  background: #f0fdf4;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .facility-generation-year-pill.is-on,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .facility-generation-year-pill:has(input:checked) {
  color: #166534;
  border-color: var(--ws-primary);
  background: color-mix(in oklch, var(--ws-primary) 12%, transparent);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-pill-dot.gen-line--primary,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-line--primary.gen-chart-bar,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-legend-swatch.gen-line--primary {
  background: #15803d;
  fill: #15803d;
  color: #15803d;
  stroke: rgba(21, 128, 61, 0.45);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-pill-dot.gen-line--secondary,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-line--secondary.gen-chart-bar,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-legend-swatch.gen-line--secondary {
  background: #2563eb;
  fill: #2563eb;
  color: #2563eb;
  stroke: rgba(37, 99, 235, 0.45);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-pill-dot.gen-line--tertiary,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-line--tertiary.gen-chart-bar,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-legend-swatch.gen-line--tertiary {
  background: #d97706;
  fill: #d97706;
  color: #d97706;
  stroke: rgba(217, 119, 6, 0.45);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-pill-dot.gen-line--quaternary,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-line--quaternary.gen-chart-bar,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-legend-swatch.gen-line--quaternary {
  background: #7c3aed;
  fill: #7c3aed;
  color: #7c3aed;
  stroke: rgba(124, 58, 237, 0.45);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-pill-dot.gen-line--quinary,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-line--quinary.gen-chart-bar,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-legend-swatch.gen-line--quinary {
  background: #db2777;
  fill: #db2777;
  color: #db2777;
  stroke: rgba(219, 39, 119, 0.45);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-chart-plot-bg {
  fill: color-mix(in oklch, var(--ws-primary) 6%, transparent);
  stroke: #bbf7d0;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-chart-grid {
  stroke: #dcfce7;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-chart-grid--month {
  stroke: #ecfdf5;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-chart-axis-title,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .gen-chart-axis-label {
  fill: var(--ws-muted-soft);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-revenue-table-yen {
  color: #15803d;
  font-weight: 600;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--compare,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--light {
  border-color: #bbf7d0;
  background: var(--ws-card);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--compare .owner-room-year-kpi-header,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--light .owner-room-year-kpi-header {
  border-bottom-color: #e2e8f0;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--compare .owner-room-year-kpi-row + .owner-room-year-kpi-row,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--light .owner-room-year-kpi-row + .owner-room-year-kpi-row {
  border-top-color: #e2e8f0;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--compare .owner-room-revenue-kpi,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--light .owner-room-revenue-kpi {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--compare .owner-room-revenue-kpi--ytd .owner-room-revenue-kpi-value,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--light .owner-room-revenue-kpi--ytd .owner-room-revenue-kpi-value {
  color: #15803d;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--compare .owner-room-revenue-kpi-value,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--light .owner-room-revenue-kpi-value {
  color: var(--ws-foreground);
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--compare .owner-room-year-kpi-row--total,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--light .owner-room-year-kpi-row--total {
  border-top-color: #86efac;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--compare .owner-room-year-kpi-row--total .owner-room-year-kpi-year,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--light .owner-room-year-kpi-row--total .owner-room-year-kpi-year {
  color: #166534;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--compare .owner-room-year-kpi-row--total .owner-room-revenue-kpi,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--light .owner-room-year-kpi-row--total .owner-room-revenue-kpi {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--compare .owner-room-year-kpi-row--total .owner-room-revenue-kpi-value,
.ws-section--revenue-v2 .owner-room-revenue--workspace-v2 .owner-room-year-kpi-stack--light .owner-room-year-kpi-row--total .owner-room-revenue-kpi--ytd .owner-room-revenue-kpi-value {
  color: #15803d;
  font-weight: 700;
}

.ws-section--revenue-v2 .ws-rev-actions .btn-primary {
  background: var(--ws-primary);
  color: var(--ws-primary-fg);
  border-color: var(--ws-primary);
}

.ws-section--revenue-v2 .ws-rev-actions .btn-primary:hover {
  background: #15803d;
  color: var(--ws-primary-fg);
}

.ws-section--revenue-v2 .ws-rev-hero-sub .ws-yoy-up {
  color: #15803d;
  font-weight: 700;
}

.ws-section--revenue-v2 .ws-rev-hero-sub .ws-yoy-down {
  color: #dc2626;
  font-weight: 700;
}

/* 滑らかな当日カーブ（SVG） */
.pv-daycurve { display: block; width: 100%; height: 168px; }
.pv-dc-line { fill: none; stroke: #00734f; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.pv-dc-theo { fill: none; stroke: #86d9b6; stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.pv-dc-dot { fill: #00734f; stroke: #fff; stroke-width: 1.5; }
.pv-dc-grid { stroke: #e5eae7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.pv-dc-max { font-size: 10px; font-weight: 700; fill: #94a3b8; }
/* カーブ + 左Y軸目盛り + 下X軸目盛り */
.ws-daycurve-wrap { display: flex; gap: 6px; align-items: stretch; }
.ws-dc-yaxis { display: flex; flex-direction: column; justify-content: space-between;
  height: 168px; flex: 0 0 auto; min-width: 34px; padding-right: 3px; text-align: right;
  font-size: 0.625rem; line-height: 1; color: var(--ws-muted-soft);
  font-variant-numeric: tabular-nums; }
.ws-dc-plot { flex: 1 1 auto; min-width: 0; }

/* ── 携帯まとめ調整（2026-07-21）── */
.ws-rev-pdf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 767px) {
  /* 証跡の売買電テーブル(5列: 月/売電額/売電PDF/買電額/買電PDF)は潰さず横スクロール */
  .ws-rev-pdf-table { min-width: 460px; }
  /* コンパクトKPIは4列だと携帯で潰れる → 2列 */
  .ws-rev-kpi-compact { grid-template-columns: repeat(2, 1fr); }
  /* 日次スタッツ(今日/昨日/30日平均)は折り返す */
  .ws-daily-stats { flex-wrap: wrap; gap: 8px 14px; }
  /* 共有テーブルの長いメール等は折り返して枠内に収める */
  .ws-share-table th, .ws-share-table td { word-break: break-word; }
}
