/* =============================================
   DESIGN SYSTEM
============================================= */
:root {
  --bg: #f1f2f6;
  --surface: #f5f6fa;
  --surface-2: #fbfbfd;
  --line: rgba(20, 24, 34, 0.06);
  --text: #12141a;
  --muted: #7f8694;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft:
    10px 10px 24px rgba(24, 29, 39, 0.08),
    -10px -10px 24px rgba(255, 255, 255, 0.86);
  --shadow-soft-sm:
    6px 6px 14px rgba(24, 29, 39, 0.06),
    -6px -6px 14px rgba(255, 255, 255, 0.9);

  --brand: #2f7df6;
  --brand-dim: rgba(47, 125, 246, 0.08);
  --green: #14a85a;
  --green-dim: rgba(20, 168, 90, 0.08);
  --red: #e0362e;
  --red-dim: rgba(224, 54, 46, 0.07);
  --amber: #d97706;
  --amber-dim: rgba(217, 119, 6, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =============================================
   LAYOUT
============================================= */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 60px;
}

/* =============================================
   HERO
============================================= */
.hero2 {
  margin: 18px 14px 0;
  background: linear-gradient(150deg, #1c3b82 0%, #1d55c4 55%, #2f7df6 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(30, 60, 140, 0.22),
    0 2px 8px rgba(30, 60, 140, 0.14);
}

.hero2::after {
  content: "3minutes";
  position: absolute;
  right: -8px;
  top: -14px;
  font-size: 70px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.045);
  letter-spacing: -4px;
  pointer-events: none;
  line-height: 1;
}

.hero-badge2 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
}

.hero-title2 {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.hero-title2 em {
  font-style: normal;
  background: linear-gradient(90deg, #fde68a, #fca5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub2 {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hero-ctas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-cta {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.hero-cta:active {
  transform: translateY(1px);
}

.hero-cta.solid {
  background: #fff;
  color: #1c3b82;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero-cta.ghost {
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* =============================================
   SECTION WRAPPER
============================================= */
.section {
  margin: 20px 14px 0;
  scroll-margin-top: 68px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #131722;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft-sm);
  flex-shrink: 0;
}

.section-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.section-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.section-action-spaced {
  margin-top: 10px;
}

/* =============================================
   CARD BASE
============================================= */
.card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
}

/* =============================================
   ONEWORD
============================================= */
.oneword-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.oneword-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #3b8cf8, #2366d1);
  border-radius: 0 2px 2px 0;
}

.oneword-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 9px;
}

.oneword-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
  font-weight: 500;
}

.oneword-text strong {
  color: var(--brand);
  font-weight: 700;
}

/* =============================================
   TOP3
============================================= */
.top3-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top3-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  padding: 15px 15px 15px 16px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.top3-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
  font-family: "DM Mono", monospace;
  color: #fff;
}

.num-1 {
  background: linear-gradient(135deg, #3b8cf8, #2366d1);
  box-shadow: 0 3px 10px rgba(47, 125, 246, 0.28);
}

.num-2 {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.25);
}

.num-3 {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.22);
}

.top3-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.35;
}

.top3-body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-dim);
  color: var(--brand);
}

.tag.amber {
  background: var(--amber-dim);
  color: var(--amber);
}

.tag.green {
  background: var(--green-dim);
  color: var(--green);
}

.tag.red {
  background: var(--red-dim);
  color: var(--red);
}

/* =============================================
   KPI GRID
============================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpi-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.kpi-rank {
  position: absolute;
  top: 10px;
  right: 11px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  font-family: "DM Mono", monospace;
}

.kpi-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 5px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  font-family: "DM Mono", monospace;
  letter-spacing: -1px;
  color: var(--text);
}

.kpi-value-unit {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.kpi-diff {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 7px;
}

.kpi-diff.up {
  background: var(--red-dim);
  color: var(--red);
}

.kpi-diff.down {
  background: var(--green-dim);
  color: var(--green);
}

.kpi-diff.flat {
  background: rgba(127, 134, 148, 0.1);
  color: var(--muted);
}

.kpi-bar {
  height: 3px;
  background: rgba(20, 24, 34, 0.08);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.kpi-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--brand);
}

.kpi-bar-fill.red {
  background: var(--red);
}

.kpi-bar-fill.green {
  background: var(--green);
}

.kpi-more-btn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 13px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-sm);
  border: 1.5px dashed rgba(47, 125, 246, 0.25);
  box-shadow: var(--shadow-soft-sm);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.kpi-more-btn:active {
  transform: translateY(1px);
}

/* =============================================
   FINANCE
============================================= */
.finance-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.finance-nums {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.finance-num {
  padding: 15px 12px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.finance-num:last-child {
  border-right: none;
}

.finance-num-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.finance-num-value {
  font-size: 18px;
  font-weight: 900;
  font-family: "DM Mono", monospace;
  letter-spacing: -0.5px;
  color: var(--text);
}

.finance-num-unit {
  font-size: 10px;
  color: var(--muted);
}

.finance-breakdown {
  padding: 15px 16px;
}

.finance-breakdown-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 11px;
}

.finance-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.finance-row:last-child {
  margin-bottom: 0;
}

.finance-row-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  width: 14px;
  font-family: "DM Mono", monospace;
  flex-shrink: 0;
}

.finance-row-label {
  font-size: 12.5px;
  font-weight: 500;
  flex: 1;
}

.finance-bar-wrap {
  width: 80px;
  flex-shrink: 0;
}

.finance-bar {
  height: 6px;
  background: rgba(20, 24, 34, 0.07);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 1px 1px 3px rgba(20, 24, 34, 0.08);
}

.finance-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b8cf8, #2366d1);
}

.finance-bar-fill.b2 {
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
}

.finance-bar-fill.b3 {
  background: linear-gradient(90deg, #93c5fd, #bfdbfe);
}

.finance-amount {
  font-size: 11.5px;
  font-weight: 700;
  font-family: "DM Mono", monospace;
  color: var(--text);
  white-space: nowrap;
  width: 54px;
  text-align: right;
  flex-shrink: 0;
}

.finance-comment {
  border-top: 1px solid var(--line);
  padding: 13px 16px;
  font-size: 12px;
  color: var(--brand);
  line-height: 1.6;
  background: var(--brand-dim);
}

.finance-comment strong {
  font-weight: 700;
}

/* =============================================
   BUDGET
============================================= */
.budget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.budget-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  padding: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.budget-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft-sm);
}

.budget-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.budget-body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.budget-amount {
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  font-family: "DM Mono", monospace;
  margin-top: 7px;
}

/* =============================================
   ACTIVITY
============================================= */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  padding: 14px 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.activity-thumb {
  width: 56px;
  height: 44px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-soft-sm);
}

.thumb-blue {
  background: linear-gradient(135deg, #1c3b82, #3b8cf8);
}

.thumb-green {
  background: linear-gradient(135deg, #064e3b, #10b981);
}

.thumb-amber {
  background: linear-gradient(135deg, #78350f, #f97316);
}

.activity-meta {
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-cat {
  font-weight: 700;
  color: var(--brand);
}

.activity-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.activity-body {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* =============================================
   FIT
============================================= */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fit-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.fit-card.pros {
  border-left: 3px solid rgba(20, 168, 90, 0.35);
}

.fit-card.cons {
  border-left: 3px solid rgba(224, 54, 46, 0.3);
}

.fit-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.fit-card.pros .fit-title {
  color: var(--green);
}

.fit-card.cons .fit-title {
  color: var(--red);
}

.fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fit-list li {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
  padding-left: 13px;
  position: relative;
}

.fit-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
}

.fit-card.pros .fit-list li::before {
  color: var(--green);
}

.fit-card.cons .fit-list li::before {
  color: var(--red);
}

/* =============================================
   RELATED
============================================= */
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.related-link {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft-sm);
  padding: 13px 14px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.related-link:active {
  transform: translateY(1px);
}

.related-link:hover {
  box-shadow:
    8px 8px 18px rgba(24, 29, 39, 0.08),
    -8px -8px 18px rgba(255, 255, 255, 0.92);
}

.related-link-icon {
  font-size: 15px;
}

.related-link-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.related-link-sub {
  font-size: 10.5px;
  color: var(--muted);
}

/* =============================================
   SOURCE BLOCK
============================================= */
.source-block {
  margin: 20px 14px 0;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft-sm);
  padding: 16px;
  scroll-margin-top: 68px;
}

.source-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.source-body {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.65;
}

.source-body a {
  color: var(--brand);
  text-decoration: none;
}

.source-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.source-meta span {
  font-size: 10.5px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
}

/* =============================================
   DIVIDER
============================================= */
.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 14px 0;
}

/* =============================================
   ANIMATE ON SCROLL
============================================= */
.aos {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.aos.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   FOCUS
============================================= */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(47, 125, 246, 0.4);
  outline-offset: 2px;
}

/* =============================================
   MOBILE
============================================= */
@media (max-width: 400px) {
  .hero-title2 {
    font-size: 20px;
  }

  .kpi-value {
    font-size: 20px;
  }
}

/* =============================================
   SMALL DEVICES
============================================= */
@media (max-width: 360px) {
  .related-grid,
  .fit-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .finance-nums {
    grid-template-columns: 1fr;
  }

  .finance-num {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .finance-num:last-child {
    border-bottom: none;
  }
}

/* =============================================
   REDUCED MOTION
============================================= */
@media (prefers-reduced-motion: reduce) {

  .aos,
  .hero-cta,
  .related-link,
  .kpi-more-btn {
    transition: none;
  }
}

/* =============================================
   BUDGET SUMMARY (policy json driven)
============================================= */
.budget-policy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.budget-policy-card {
  position: relative;
  overflow: hidden;
}

.budget-card-loading,
.budget-card-empty {
  min-height: 96px;
  align-items: center;
}

.budget-card-error {
  border-left: 3px solid rgba(224, 54, 46, 0.34);
}

.budget-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.budget-card-main {
  flex: 1;
  min-width: 0;
}

.budget-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-dim);
  margin-bottom: 7px;
}

.budget-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.budget-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
}

.budget-main-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(47, 125, 246, 0.08);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.budget-main-badge.is-soft {
  background: rgba(127, 134, 148, 0.12);
  color: var(--muted);
}

.budget-body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.budget-total-box {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(47, 125, 246, 0.06) 0%, rgba(47, 125, 246, 0.03) 100%);
  border: 1px solid rgba(47, 125, 246, 0.12);
}

.budget-total-label {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.budget-total-value {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.budget-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.budget-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
  background: rgba(20, 24, 34, 0.05);
}

.budget-chip.subtle {
  color: var(--muted);
  background: rgba(127, 134, 148, 0.1);
}

.budget-points {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.budget-point {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(72px, 3fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.budget-point:first-child {
  border-top: 1px solid var(--line);
}

.budget-point-text {
  min-width: 0;
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.budget-point-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  transform: translateY(-50%);
}

.budget-point-amount {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.45;
  text-align: right;
}

.budget-point-amount.is-soft {
  color: var(--muted);
}

/* 400px以下でも1カラムに落とさず、7:3を維持 */
@media (max-width: 400px) {
  .budget-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .budget-main-badge {
    white-space: normal;
  }

  .budget-point {
    grid-template-columns: minmax(0, 7fr) minmax(64px, 3fr);
    gap: 10px;
  }

  .budget-point-amount {
    justify-content: flex-end;
    text-align: right;
    padding-left: 0;
  }
}

.budget-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  text-decoration: none;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.budget-section-foot {
  margin-top: 10px;
}

.budget-source {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.budget-empty-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 400px) {
  .budget-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .budget-main-badge {
    white-space: normal;
  }
}

/* =============================================
   ACTIVITY (YouTube summary driven)
============================================= */
.activity-title-link {
  color: inherit;
  text-decoration: none;
}

.activity-title-link:hover {
  text-decoration: underline;
}

.activity-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.activity-source-link:hover {
  text-decoration: underline;
}

.activity-empty,
.activity-error {
  color: var(--muted);
  line-height: 1.6;
}

.activity-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(47, 125, 246, 0.08);
  color: var(--brand);
}

.activity-status.status-jikko {
  background: rgba(20, 168, 90, 0.1);
  color: var(--green);
}

.activity-status.status-yosanka {
  background: rgba(217, 119, 6, 0.1);
  color: var(--amber);
}

.activity-status.status-kento {
  background: rgba(127, 134, 148, 0.12);
  color: var(--muted);
}

.activity-status.status-hatsugen {
  background: rgba(47, 125, 246, 0.08);
  color: var(--brand);
}