:root {
  --bg: #0b0c0e;
  --surface: #131518;
  --surface-2: #1a1d21;
  --surface-3: #22262b;
  --text: #f5f2ea;
  --muted: #9b9da1;
  --faint: #666a70;
  --line: rgba(245, 242, 234, 0.11);
  --gold: #d6b36a;
  --gold-soft: rgba(214, 179, 106, 0.13);
  --red: #c8473c;
  --red-dark: #a83831;
  --green: #56b49c;
  --danger: #e06b65;
  --header: 56px;
  --nav: 72px;
  --radius: 8px;
  --font-display: "Noto Serif SC", serif;
  --font-ui: "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { background: #060708; color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #060708;
  color: var(--text);
  font-family: var(--font-ui);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button, [data-project] { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; }
svg { width: 20px; height: 20px; stroke-width: 1.8; }

.app-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
  border-inline: 1px solid rgba(255,255,255,0.04);
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  width: min(100%, 520px);
  height: calc(var(--header) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 12, 14, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; cursor: pointer; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-size: 16px; }
.brand-copy { display: grid; text-align: left; line-height: 1; }
.brand-copy strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 7px; font-weight: 700; }
.top-actions { display: flex; gap: 4px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.small { width: 34px; height: 34px; }
.notification-btn span { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); border: 1px solid var(--bg); }

main { min-height: 100vh; padding-top: calc(var(--header) + env(safe-area-inset-top)); padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom)); }
.view { display: none; min-height: calc(100vh - var(--header) - var(--nav)); animation: view-in 260ms ease both; }
.view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }

.hero-carousel { position: relative; height: 430px; overflow: hidden; background: #17191c; }
.hero-slides { position: absolute; inset: 0; }
.hero { position: absolute; inset: 0; height: 100%; overflow: hidden; background: #17191c; opacity: 0; pointer-events: none; transition: opacity 420ms ease; cursor: pointer; }
.hero.is-active { opacity: 1; pointer-events: auto; }
.hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 58% center; filter: saturate(0.82) contrast(1.1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,8,0.08) 0%, rgba(6,7,8,0.24) 34%, rgba(6,7,8,0.96) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.hero-topline { display: flex; align-items: center; justify-content: space-between; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; background: rgba(11,12,14,0.72); border: 1px solid rgba(255,255,255,0.16); border-radius: 4px; font-size: 11px; font-weight: 600; backdrop-filter: blur(8px); }
.status-chip span { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200,71,60,0.18); }
.serial { color: rgba(255,255,255,0.74); font-size: 10px; font-weight: 700; }
.hero-copy { padding-bottom: 4px; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: 10px; font-weight: 700; line-height: 1.3; }
.hero h1 { max-width: 345px; margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.2; }
.hero-logline { max-width: 360px; margin: 10px 0 16px; color: rgba(245,242,234,0.82); font-family: var(--font-display); font-size: 13px; line-height: 1.7; }
.hero-metrics { display: grid; grid-template-columns: 1.08fr 0.9fr 1fr; margin: 0 0 17px; padding-block: 13px; border-block: 1px solid rgba(255,255,255,0.16); }
.hero-metrics div { min-width: 0; }
.hero-metrics div + div { padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.13); }
.hero-metrics span, .hero-metrics strong { display: block; white-space: nowrap; }
.hero-metrics span { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.hero-metrics strong { font-size: 15px; font-weight: 600; }
.positive { color: var(--green) !important; }
.hero-pagination { position: absolute; z-index: 6; right: 16px; bottom: 14px; display: flex; gap: 7px; }
.hero-pagination button { width: 20px; height: 3px; padding: 0; border: 0; border-radius: 0; background: rgba(255,255,255,0.34); cursor: pointer; transition: width 180ms ease, background 180ms ease; }
.hero-pagination button.is-active { width: 34px; background: var(--red); }
.primary-btn, .secondary-btn, .danger-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}
.primary-btn { background: var(--red); color: #fff; }
.primary-btn:hover { background: var(--red-dark); }
.secondary-btn { background: var(--surface-2); border: 1px solid var(--line); }
.danger-btn { background: var(--text); color: #141518; }
.primary-btn:active, .secondary-btn:active, .danger-btn:active, .play-btn:active { transform: scale(0.98); }
.primary-btn svg, .secondary-btn svg, .danger-btn svg { width: 18px; height: 18px; }
.play-btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,0.38); border-radius: 50%; background: rgba(11,12,14,0.72); cursor: pointer; backdrop-filter: blur(8px); }
.play-btn svg { width: 17px; height: 17px; fill: currentColor; }

.section-block { padding: 26px 16px; border-top: 1px solid var(--line); }
.home-summary { padding-top: 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.45; }
.compact-heading { align-items: center; }
.text-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; white-space: nowrap; }
.text-btn svg { width: 15px; height: 15px; }
.pulse-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pulse-grid div { min-width: 0; padding: 14px 10px; background: var(--surface); }
.pulse-grid div + div { border-left: 1px solid var(--line); }
.pulse-grid strong, .pulse-grid span { display: block; }
.pulse-grid strong { margin-bottom: 6px; color: var(--text); font-family: var(--font-display); font-size: 19px; }
.pulse-grid span { color: var(--muted); font-size: 10px; white-space: nowrap; }

.project-list { display: grid; gap: 12px; }
.project-card { display: grid; grid-template-columns: 106px minmax(0, 1fr); min-height: 146px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color 160ms ease, transform 160ms ease; }
.project-card:hover { border-color: rgba(214,179,106,0.42); transform: translateY(-2px); }
.project-card-media { position: relative; overflow: hidden; }
.project-card-media img { height: 100%; object-fit: cover; transition: transform 500ms ease; }
.project-card:hover .project-card-media img { transform: scale(1.04); }
.project-card-media .media-tag { position: absolute; left: 7px; bottom: 7px; padding: 4px 6px; border-radius: 3px; background: rgba(7,8,9,0.78); color: #fff; font-size: 9px; backdrop-filter: blur(5px); }
.project-card-content { min-width: 0; display: flex; flex-direction: column; padding: 13px; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.genre { color: var(--gold); font-size: 10px; font-weight: 700; }
.risk { color: var(--muted); font-size: 9px; }
.project-card h3 { margin: 7px 0 5px; overflow: hidden; font-family: var(--font-display); font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.project-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-card-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: auto; padding-top: 10px; }
.progress-track { height: 3px; overflow: hidden; background: #2a2d31; }
.progress-track span { display: block; height: 100%; background: var(--red); }
.progress-label { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: 9px; }
.return-value { color: var(--green); font-family: var(--font-display); font-size: 17px; font-weight: 600; white-space: nowrap; }
.return-value small { display: block; color: var(--muted); font-family: var(--font-ui); font-size: 8px; font-weight: 400; text-align: right; }

.page-head { padding: 32px 16px 22px; }
.page-head h1 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.page-head > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.filter-row { display: flex; gap: 8px; padding: 0 16px 18px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip, .period-btn { flex: 0 0 auto; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 12px; cursor: pointer; }
.filter-chip.is-active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.wide-list { padding: 0 16px 28px; }

.subpage-bar { position: sticky; z-index: 20; top: calc(var(--header) + env(safe-area-inset-top)); height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; background: rgba(11,12,14,0.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); font-size: 14px; font-weight: 600; }
.detail-cover { position: relative; height: 330px; overflow: hidden; }
.detail-cover > img { height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.08); }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,14,0.02), rgba(11,12,14,0.9)); }
.detail-back { position: absolute; z-index: 2; top: 12px; left: 10px; background: rgba(8,9,10,0.7); }
.detail-play { position: absolute; z-index: 2; right: 16px; bottom: 20px; }
.detail-title { position: absolute; z-index: 2; left: 16px; right: 82px; bottom: 20px; }
.detail-title h1 { margin: 0 0 5px; font-family: var(--font-display); font-size: 30px; }
.detail-title p { margin: 0; color: rgba(255,255,255,0.75); font-size: 11px; }
.detail-body { padding: 20px 16px 112px; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; border-block: 1px solid var(--line); }
.detail-metrics div { padding: 15px 8px 15px 0; }
.detail-metrics div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.detail-metrics span, .detail-metrics strong { display: block; }
.detail-metrics span { color: var(--muted); font-size: 9px; }
.detail-metrics strong { margin-top: 5px; font-size: 15px; white-space: nowrap; }
.detail-section { padding: 22px 0; border-top: 1px solid var(--line); }
.detail-section:first-of-type { border-top: 0; }
.detail-section h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 19px; }
.detail-section > p { margin: 0; color: #c6c3bd; font-family: var(--font-display); font-size: 13px; line-height: 1.9; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.detail-tags span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; }
.funding-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 9px; }
.funding-head strong { color: var(--gold); font-size: 18px; }
.funding-head span { color: var(--muted); font-size: 10px; }
.funding-track { height: 7px; background: #272a2f; }
.funding-track span { display: block; height: 100%; background: var(--red); }
.funding-foot { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 10px; }
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.team-member { min-width: 0; text-align: center; }
.team-member img { aspect-ratio: 1; object-fit: cover; filter: grayscale(0.35); }
.team-member strong { display: block; margin-top: 8px; font-size: 12px; }
.team-member span { color: var(--muted); font-size: 9px; }
.risk-box { padding: 12px; border-left: 2px solid var(--gold); background: var(--gold-soft); color: #c9c3b6; font-size: 11px; line-height: 1.7; }
.detail-cta { position: fixed; z-index: 35; bottom: calc(var(--nav) + env(safe-area-inset-bottom)); width: min(100%, 520px); display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 10px 16px; background: rgba(11,12,14,0.94); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
.detail-cta .bookmark-btn { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); cursor: pointer; }

.order-wrap { padding: 24px 16px 32px; }
.order-project { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.order-project img { height: 94px; object-fit: cover; border-radius: 4px; }
.order-project h1 { margin: 3px 0 7px; font-family: var(--font-display); font-size: 20px; }
.order-project p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.order-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.order-section h2 { margin: 0 0 14px; font-size: 14px; }
.share-selector { display: grid; grid-template-columns: 42px 1fr 42px; gap: 8px; height: 48px; }
.share-selector button { display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); cursor: pointer; }
.share-selector output { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 18px; font-weight: 700; }
.share-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
.share-presets button { min-width: 0; height: 32px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.share-presets button.is-active { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.estimate-table { display: grid; gap: 11px; }
.estimate-table div { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.estimate-table span { color: var(--muted); }
.estimate-table strong { text-align: right; }
.estimate-table .total { padding-top: 13px; border-top: 1px solid var(--line); font-size: 15px; }
.agreement { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.agreement input { accent-color: var(--red); margin-top: 2px; }
.order-submit { width: 100%; }
.payment-success { padding: 50px 16px; text-align: center; }
.success-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border: 1px solid var(--green); border-radius: 50%; color: var(--green); }
.success-mark svg { width: 30px; height: 30px; }
.payment-success h1 { margin: 0; font-family: var(--font-display); font-size: 26px; }
.payment-success p { max-width: 330px; margin: 12px auto 28px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.success-actions { display: grid; gap: 10px; }

.portfolio-head { background: #111316; }
.portfolio-total { margin-top: 28px; }
.portfolio-total span, .portfolio-total strong, .portfolio-total small { display: block; }
.portfolio-total span { color: var(--muted); font-size: 11px; }
.portfolio-total strong { margin: 7px 0; font-family: var(--font-display); font-size: 32px; font-weight: 500; }
.portfolio-total small { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 10px; }
.portfolio-total small svg { width: 14px; height: 14px; }
.chart-section { padding: 25px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.period-btn { display: inline-flex; align-items: center; gap: 4px; }
.period-btn svg { width: 14px; height: 14px; }
.chart-wrap { padding-top: 4px; }
.chart-wrap svg { width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.chart-area { fill: rgba(86,180,156,0.09); }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-dot { fill: var(--bg); stroke: var(--green); stroke-width: 2; }
.chart-labels { display: flex; justify-content: space-between; margin-top: -4px; color: var(--faint); font-size: 9px; }
.portfolio-item { margin-bottom: 12px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.portfolio-item-head { display: flex; align-items: center; gap: 10px; }
.portfolio-item-head img { width: 46px; height: 58px; object-fit: cover; border-radius: 3px; }
.portfolio-item-head div { min-width: 0; flex: 1; }
.portfolio-item-head h3 { margin: 0 0 5px; font-family: var(--font-display); font-size: 15px; }
.portfolio-item-head p { margin: 0; color: var(--muted); font-size: 10px; }
.portfolio-item-head strong { color: var(--green); font-size: 13px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 18px; }
.timeline::before { content: ""; position: absolute; top: 5px; left: 8%; right: 8%; height: 1px; background: #30343a; }
.timeline-step { position: relative; text-align: center; color: var(--faint); font-size: 9px; }
.timeline-step span { position: relative; z-index: 1; display: block; width: 11px; height: 11px; margin: 0 auto 7px; border: 2px solid var(--surface); border-radius: 50%; background: #3a3e44; }
.timeline-step.is-done { color: var(--muted); }
.timeline-step.is-done span { background: var(--green); }
.timeline-step.is-current { color: var(--text); font-weight: 700; }
.timeline-step.is-current span { background: var(--red); box-shadow: 0 0 0 4px rgba(200,71,60,0.18); }

.profile-hero { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; padding: 34px 16px 24px; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--gold); border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-family: var(--font-display); font-size: 24px; }
.profile-hero h1 { margin: 0 0 5px; font-family: var(--font-display); font-size: 25px; }
.profile-hero span { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 10px; }
.profile-hero span svg { width: 14px; height: 14px; }
.profile-assets { display: grid; grid-template-columns: 1.2fr 0.7fr 1.2fr; margin: 0 16px 24px; border-block: 1px solid var(--line); }
.profile-assets div { min-width: 0; padding: 14px 8px 14px 0; }
.profile-assets div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.profile-assets span, .profile-assets strong { display: block; }
.profile-assets span { color: var(--muted); font-size: 9px; }
.profile-assets strong { margin-top: 6px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.menu-section { margin-bottom: 12px; border-block: 1px solid var(--line); background: var(--surface); }
.menu-section button { width: 100%; min-height: 66px; display: grid; grid-template-columns: 32px 1fr 20px; align-items: center; gap: 10px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.menu-section button:last-child { border-bottom: 0; }
.menu-section button > svg:first-child { color: var(--gold); }
.menu-section button > svg:last-child { width: 16px; color: var(--faint); }
.menu-section span { min-width: 0; }
.menu-section strong, .menu-section small { display: block; }
.menu-section strong { font-size: 13px; }
.menu-section small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.legal-note { padding: 15px 20px 24px; color: var(--faint); font-size: 9px; line-height: 1.7; text-align: center; }

.bottom-nav { position: fixed; z-index: 50; bottom: 0; width: min(100%, 520px); height: calc(var(--nav) + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px env(safe-area-inset-bottom); background: rgba(11,12,14,0.94); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
.bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--faint); font-size: 9px; cursor: pointer; }
.bottom-nav button svg { width: 21px; height: 21px; }
.bottom-nav button.is-active { color: var(--text); }
.bottom-nav button.is-active::before { content: ""; position: absolute; top: -7px; width: 24px; height: 2px; background: var(--red); }

.modal { position: fixed; z-index: 100; inset: 0; display: none; align-items: flex-end; justify-content: center; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(5px); }
.video-dialog { position: relative; width: min(100%, 520px); padding: 12px 12px calc(18px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); animation: sheet-in 260ms ease both; }
@keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.video-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #050505; }
.video-frame img { height: 100%; object-fit: cover; }
.video-vignette { position: absolute; inset: 0; background: rgba(5,5,5,0.26); }
.video-state { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; }
.video-play { display: grid; place-items: center; width: 58px; height: 58px; margin: auto; border: 1px solid rgba(255,255,255,0.55); border-radius: 50%; background: rgba(0,0,0,0.45); }
.video-play svg { fill: currentColor; }
.video-state small { font-size: 10px; }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 2px 8px; }
.video-meta h2 { margin: 0; font-family: var(--font-display); font-size: 18px; }
.demo-label { display: flex; align-items: flex-start; gap: 7px; margin: 6px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.demo-label svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--nav) + 18px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 36px); padding: 10px 13px; transform: translate(-50%, 12px); border: 1px solid var(--line); border-radius: 6px; background: #25282d; box-shadow: 0 12px 30px rgba(0,0,0,0.4); color: var(--text); font-size: 11px; opacity: 0; pointer-events: none; transition: 180ms ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 360px) {
  .hero-carousel { height: 420px; }
  .hero h1 { font-size: 34px; }
  .hero-metrics strong { font-size: 13px; }
  .project-card { grid-template-columns: 94px minmax(0, 1fr); }
  .detail-metrics strong { font-size: 13px; }
}

@media (min-width: 720px) {
  body { padding-block: 20px; }
  .app-shell { min-height: calc(100vh - 40px); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
  .topbar { top: 20px; }
  .bottom-nav { bottom: 20px; }
  .detail-cta { bottom: calc(var(--nav) + 20px); }
  .modal { align-items: center; }
  .video-dialog { border: 1px solid var(--line); border-radius: var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Project status system */
.status-funding { border-color: rgba(200,71,60,0.52) !important; background: rgba(128,31,27,0.78) !important; color: #fff !important; }
.status-production { border-color: rgba(214,179,106,0.55) !important; background: rgba(93,72,29,0.8) !important; color: #f5dfad !important; }
.status-released { border-color: rgba(86,180,156,0.55) !important; background: rgba(24,92,76,0.82) !important; color: #d7fff4 !important; }
.status-chip.status-funding span { background: #ef695d; box-shadow: 0 0 0 4px rgba(239,105,93,0.18); }
.status-chip.status-production span { background: var(--gold); box-shadow: 0 0 0 4px rgba(214,179,106,0.16); }
.status-chip.status-released span { background: #72d7ba; box-shadow: 0 0 0 4px rgba(86,180,156,0.18); }
.project-card-media .media-tag { z-index: 5; top: 7px; bottom: auto; left: 7px; border: 1px solid transparent; font-weight: 700; }
.detail-status { position: absolute; z-index: 5; top: 14px; right: 14px; padding: 6px 9px; border: 1px solid transparent; border-radius: 4px; font-size: 10px; font-weight: 700; backdrop-filter: blur(8px); }

/* Cinematic AI poster treatment */
.poster-treatment { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,9,11,0.05) 20%, rgba(8,9,11,0.78) 100%); }
.poster-treatment::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.08); background: linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,0.09) 50%, transparent 50.3%); opacity: 0.5; }
.poster-techline { position: absolute; z-index: 2; top: 0; right: 10px; width: 1px; height: 28%; background: var(--red); box-shadow: 0 0 14px rgba(200,71,60,0.7); }
.poster-signature { position: absolute; z-index: 3; right: 7px; bottom: 8px; left: 7px; display: grid; pointer-events: none; }
.poster-signature small { color: rgba(255,255,255,0.66); font-size: 5px; font-weight: 700; }
.poster-signature strong { margin-top: 3px; overflow: hidden; color: #fff; font-family: var(--font-display); font-size: 11px; line-height: 1.18; text-shadow: 0 2px 8px #000; text-overflow: ellipsis; white-space: nowrap; }
.poster-signature span { margin-top: 2px; color: var(--gold); font-size: 5px; }
.poster-signature.detail { right: 16px; bottom: 96px; left: 16px; opacity: 0.76; }
.poster-signature.detail strong { font-size: 17px; }
.poster-signature.script { right: 9px; bottom: 10px; left: 9px; }
.hero-grid { position: absolute; z-index: 1; inset: 0; opacity: 0.14; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(180deg, #000, transparent 55%); }
.hero-content { z-index: 3; }
.hero .status-chip { align-self: flex-start; }
.release-card-note { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 10px; font-weight: 600; }
.release-card-note svg { width: 15px; height: 15px; }

/* Detail decision and lifecycle */
.decision-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: -4px 0 22px; }
.decision-actions .secondary-btn { min-width: 0; padding: 0 9px; font-size: 12px; }
.production-steps { display: grid; gap: 0; border-block: 1px solid var(--line); }
.production-step { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; min-height: 58px; color: var(--faint); }
.production-step::before { content: ""; position: absolute; top: 44px; bottom: -14px; left: 14px; width: 1px; background: var(--line); }
.production-step:last-child::before { display: none; }
.production-step > span { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 10px; }
.production-step strong, .production-step small { display: block; }
.production-step strong { font-size: 12px; }
.production-step small { margin-top: 3px; color: var(--faint); font-size: 9px; }
.production-step.is-done { color: var(--green); }
.production-step.is-done > span { border-color: var(--green); background: rgba(86,180,156,0.12); }
.production-step.is-current { color: var(--text); }
.production-step.is-current > span { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); box-shadow: 0 0 0 4px rgba(214,179,106,0.08); }
.release-section { padding: 22px 16px !important; margin-inline: -16px; border-top: 1px solid rgba(86,180,156,0.34) !important; border-bottom: 1px solid rgba(86,180,156,0.18); background: rgba(86,180,156,0.06); }
.release-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 16px; border-block: 1px solid var(--line); }
.release-stats div { padding: 13px 6px; }
.release-stats div + div { border-left: 1px solid var(--line); }
.release-stats strong, .release-stats span { display: block; text-align: center; }
.release-stats strong { color: var(--text); font-size: 14px; }
.release-stats span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.wide-action { width: 100%; }

/* Script reader */
.script-bar { padding-right: 12px; }
.reader-tools { display: flex; gap: 4px; }
.reader-tools button { width: 32px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: 10px; cursor: pointer; }
.script-reader { --reader-size: 15px; padding: 0 16px 40px; }
.script-cover { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: end; gap: 16px; min-height: 196px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.script-cover-image { position: relative; align-self: stretch; min-height: 148px; overflow: hidden; background: var(--surface-2); box-shadow: 10px 10px 0 rgba(200,71,60,0.1); }
.script-cover-image > img { height: 100%; object-fit: cover; }
.script-cover h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: 26px; line-height: 1.3; }
.script-cover p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.script-summary { padding: 26px 0 12px; }
.script-summary h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: 20px; }
.character-list { display: grid; border-top: 1px solid var(--line); }
.character-list > div { display: grid; grid-template-columns: 62px 86px 1fr; align-items: baseline; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.character-list strong { font-size: 12px; }
.character-list span { color: var(--gold); font-size: 10px; }
.character-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.scene-nav { position: sticky; z-index: 15; top: calc(var(--header) + 52px + env(safe-area-inset-top)); display: flex; gap: 6px; padding: 10px 0; overflow-x: auto; background: rgba(11,12,14,0.94); border-block: 1px solid var(--line); backdrop-filter: blur(12px); scrollbar-width: none; }
.scene-nav::-webkit-scrollbar { display: none; }
.scene-nav button { flex: 0 0 38px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); font-size: 10px; cursor: pointer; }
.screenplay { position: relative; padding-top: 8px; }
.script-watermark { position: sticky; top: calc(var(--header) + 105px + env(safe-area-inset-top)); padding: 8px 0; color: rgba(214,179,106,0.42); font-size: 9px; text-align: right; pointer-events: none; }
.script-scene { scroll-margin-top: calc(var(--header) + 106px); padding: 28px 0 10px; border-bottom: 1px solid var(--line); }
.scene-number { margin-bottom: 8px; color: var(--red); font-size: 9px; font-weight: 700; }
.script-scene h2 { margin: 0 0 7px; font-family: var(--font-display); font-size: 20px; }
.script-scene .scene-setting { margin: 0 0 18px; color: var(--gold); font-family: var(--font-ui); font-size: 10px; }
.script-scene > p:not(.scene-setting) { margin: 0 0 14px; color: #d3d0c9; font-family: var(--font-display); font-size: var(--reader-size); line-height: 1.95; }
.script-legal { margin: 24px 0 0; padding: 13px; border-left: 2px solid var(--gold); background: var(--gold-soft); color: var(--muted); font-size: 10px; line-height: 1.7; }

/* Released work player */
.immersive-bar { background: rgba(5,6,7,0.96); }
.player-page { min-height: calc(100vh - var(--header) - 52px); background: #070809; }
.player-stage { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 68vh; overflow: hidden; background: #000; }
.player-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-badge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 5px 7px; border: 1px solid rgba(255,255,255,0.2); border-radius: 3px; background: rgba(0,0,0,0.58); color: rgba(255,255,255,0.75); font-size: 8px; font-weight: 700; pointer-events: none; }
.player-meta { padding: 20px 16px 17px; border-bottom: 1px solid var(--line); }
.player-meta h1 { margin: 0 0 7px; font-family: var(--font-display); font-size: 24px; }
.player-meta > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.episode-section { padding: 22px 16px; }
.episode-section .section-heading > span { color: var(--muted); font-size: 10px; }
.episode-list { border-top: 1px solid var(--line); }
.episode-list button { width: 100%; min-height: 64px; display: grid; grid-template-columns: 34px 1fr 22px; align-items: center; gap: 10px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.episode-list button > span { color: var(--faint); font-family: var(--font-display); font-size: 13px; }
.episode-list strong, .episode-list small { display: block; }
.episode-list strong { font-size: 12px; }
.episode-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.episode-list svg { color: var(--faint); }
.episode-list button.is-active { background: rgba(86,180,156,0.06); }
.episode-list button.is-active > span, .episode-list button.is-active svg { color: var(--green); }
.player-disclaimer { display: grid; grid-template-columns: 18px 1fr; gap: 8px; margin: 0 16px 28px; padding: 12px; border: 1px solid var(--line); color: var(--muted); }
.player-disclaimer svg { width: 16px; height: 16px; color: var(--gold); }
.player-disclaimer p { margin: 0; font-size: 10px; line-height: 1.65; }

/* Multi-subscription earnings */
.earnings-page { padding-bottom: 38px; }
.earnings-hero { padding: 34px 16px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(150deg, rgba(200,71,60,0.12), transparent 52%); }
.earnings-hero h1 { margin: 0 0 7px; font-family: var(--font-display); font-size: 27px; }
.earnings-hero > span { color: var(--muted); font-size: 11px; }
.earnings-total { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.earnings-total small, .earnings-total strong { display: block; }
.earnings-total small { color: var(--muted); font-size: 10px; }
.earnings-total strong { margin-top: 5px; color: var(--gold); font-family: var(--font-display); font-size: 28px; }
.earnings-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 16px; border-bottom: 1px solid var(--line); }
.earnings-summary div { min-width: 0; padding: 16px 6px 16px 0; }
.earnings-summary div + div { padding-left: 9px; border-left: 1px solid var(--line); }
.earnings-summary span, .earnings-summary strong { display: block; }
.earnings-summary span { color: var(--muted); font-size: 9px; }
.earnings-summary strong { margin-top: 5px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.subscription-section { padding: 26px 16px 16px; }
.subscription-list { display: grid; gap: 10px; }
.subscription-item { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.subscription-item summary { min-height: 80px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 13px; cursor: pointer; list-style: none; }
.subscription-item summary::-webkit-details-marker { display: none; }
.subscription-item summary > div:first-child span, .subscription-item summary > div:first-child strong, .subscription-item summary > div:first-child small { display: block; }
.subscription-item summary > div:first-child span { color: var(--gold); font-size: 9px; font-weight: 700; }
.subscription-item summary > div:first-child strong { margin: 4px 0; font-size: 16px; }
.subscription-item summary > div:first-child small { color: var(--muted); font-size: 9px; }
.subscription-item summary > div:last-child { display: flex; align-items: center; gap: 8px; }
.subscription-item summary svg { width: 16px; color: var(--faint); transition: transform 180ms ease; }
.subscription-item[open] summary svg { transform: rotate(180deg); }
.distribution-status { padding: 4px 6px; border: 1px solid rgba(86,180,156,0.28); border-radius: 3px; background: rgba(86,180,156,0.08); color: var(--green); font-size: 9px; }
.subscription-body { padding: 0 13px 14px; border-top: 1px solid var(--line); }
.subscription-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.subscription-metrics div { min-width: 0; padding: 13px 5px 13px 0; }
.subscription-metrics span, .subscription-metrics strong { display: block; }
.subscription-metrics span { color: var(--muted); font-size: 8px; }
.subscription-metrics strong { margin-top: 4px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-code { padding: 8px 0; border-block: 1px solid var(--line); color: var(--faint); font-family: monospace; font-size: 9px; }
.distribution-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.distribution-list > div:last-child { border-bottom: 0; }
.distribution-list span, .distribution-list strong, .distribution-list small { display: block; }
.distribution-list span, .distribution-list strong { font-size: 11px; }
.distribution-list strong { color: var(--green); text-align: right; }
.distribution-list small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 400; }
.distribution-list > p { margin: 13px 0 0; color: var(--muted); font-size: 10px; }
.earnings-page > .risk-box { margin: 0 16px; }

/* Portfolio holding presentation */
.holding-poster { position: relative; width: 48px; height: 62px; overflow: hidden; flex: 0 0 auto; background: var(--surface-2); }
.holding-poster > img { height: 100%; object-fit: cover; }
.holding-poster .poster-signature { display: none; }
.holding-metrics { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.holding-metrics strong { margin-left: 3px; color: var(--text); font-size: 10px; }
.portfolio-detail-btn { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: var(--text); font-size: 11px; cursor: pointer; }
.portfolio-detail-btn svg { width: 15px; height: 15px; color: var(--gold); }

@media (max-width: 360px) {
  .decision-actions { grid-template-columns: 1fr; }
  .character-list > div { grid-template-columns: 55px 74px 1fr; }
  .script-cover { grid-template-columns: 82px minmax(0, 1fr); }
  .script-cover h1 { font-size: 23px; }
}

/* Episode-round subscription model */
.hero-pagination { right: auto; left: 50%; transform: translateX(-50%); }
.status-locked { border-color: rgba(155,157,161,0.28) !important; background: rgba(42,45,50,0.9) !important; color: #b7b9bd !important; }
.round-mini { color: var(--muted); font-size: 9px; white-space: nowrap; }
.round-count { color: var(--muted); font-size: 10px; }
.round-section { padding-bottom: 26px; }
.round-feature { padding: 15px; border: 1px solid rgba(214,179,106,0.28); border-radius: var(--radius); background: linear-gradient(150deg, rgba(214,179,106,0.1), rgba(19,21,24,0.78) 55%); }
.round-feature-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.round-feature-head > div > span { color: var(--gold); font-size: 10px; font-weight: 700; }
.round-feature h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 20px; }
.round-status { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 0 7px; border: 1px solid transparent; border-radius: 3px; font-size: 9px; font-weight: 700; }
.round-feature-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 16px; border-block: 1px solid var(--line); }
.round-feature-metrics div { min-width: 0; padding: 11px 6px 11px 0; }
.round-feature-metrics div + div { padding-left: 9px; border-left: 1px solid var(--line); }
.round-feature-metrics span, .round-feature-metrics strong { display: block; }
.round-feature-metrics span { color: var(--muted); font-size: 8px; }
.round-feature-metrics strong { margin-top: 4px; font-size: 13px; white-space: nowrap; }
.round-feature > p { margin: 11px 0 0; color: var(--muted); font-family: var(--font-ui); font-size: 9px; line-height: 1.6; }
.round-history { margin-top: 12px; border-top: 1px solid var(--line); }
.round-row { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 62px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.round-row.is-active { background: rgba(255,255,255,0.025); }
.round-index { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-family: var(--font-display); font-size: 10px; }
.round-row strong, .round-row span { display: block; }
.round-row strong { font-size: 11px; }
.round-row > div:nth-child(2) > span { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.round-rule { display: grid; grid-template-columns: 17px 1fr; gap: 7px; margin: 14px 0 0 !important; color: var(--muted) !important; font-family: var(--font-ui) !important; font-size: 9px !important; line-height: 1.65 !important; }
.round-rule svg { width: 15px; height: 15px; color: var(--gold); }

.round-order-banner { margin: 18px 0 0; padding: 14px; border: 1px solid rgba(200,71,60,0.34); background: rgba(200,71,60,0.07); }
.round-order-banner > div { display: inline-grid; }
.round-order-banner > div span { color: var(--muted); font-size: 9px; }
.round-order-banner > div strong { margin-top: 4px; font-family: var(--font-display); font-size: 17px; }
.round-order-banner > .round-status { float: right; }
.round-order-banner p { clear: both; display: grid; grid-template-columns: 16px 1fr; gap: 7px; margin: 13px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.6; }
.round-order-banner p svg { width: 14px; height: 14px; color: var(--gold); }

.round-earnings-list { display: grid; gap: 18px; }
.round-earnings-group { border-top: 1px solid var(--line); }
.round-earnings-group > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 2px 13px; }
.round-earnings-group > header span:first-child { color: var(--gold); font-size: 9px; font-weight: 700; }
.round-earnings-group h3 { margin: 4px 0; font-family: var(--font-display); font-size: 19px; }
.round-earnings-group header p { margin: 0; color: var(--muted); font-size: 9px; }
.round-group-summary { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.round-group-summary span, .round-group-summary strong { display: block; }
.round-group-summary span { color: var(--muted); font-size: 8px; }
.round-group-summary strong { margin-top: 3px; color: var(--text); font-size: 10px; }
.round-earnings-group .subscription-list { margin-top: 8px; }

.data-round-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 16px 24px; border-block: 1px solid var(--line); }
.data-round-summary div { min-width: 0; padding: 14px 8px 14px 0; }
.data-round-summary div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.data-round-summary strong, .data-round-summary span { display: block; }
.data-round-summary strong { color: var(--gold); font-family: var(--font-display); font-size: 19px; }
.data-round-summary span { margin-top: 5px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.data-project-item .portfolio-item-head { grid-template-columns: 48px minmax(0,1fr) auto; }
.data-round-list { margin-top: 14px; border-top: 1px solid var(--line); }
.data-round-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.data-round-list span, .data-round-list strong, .data-round-list small { display: block; }
.data-round-list > div > span:last-child { flex: 0 0 auto; font-size: 10px; text-align: right; }
.data-round-list strong { font-size: 10px; }
.data-round-list small { margin-top: 4px; color: var(--muted); font-size: 8px; }

@media (max-width: 360px) {
  .round-feature-metrics strong { font-size: 11px; }
  .round-row { grid-template-columns: 24px minmax(0,1fr) auto; gap: 7px; }
  .data-round-summary span { white-space: normal; }
}

/* Historical subscription ledger */
.history-section { padding-bottom: 36px; }
.history-count { color: var(--muted); font-size: 10px; }
.history-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 16px; border-block: 1px solid var(--line); }
.history-summary > div { min-width: 0; padding: 13px 7px 13px 0; }
.history-summary > div + div { padding-left: 9px; border-left: 1px solid var(--line); }
.history-summary span, .history-summary strong { display: block; }
.history-summary span { color: var(--muted); font-size: 8px; }
.history-summary strong { margin-top: 5px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.history-list { display: grid; gap: 10px; }
.history-order-item { width: 100%; display: block; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color 160ms ease, transform 160ms ease; }
.history-order-item:hover { border-color: rgba(214,179,106,0.38); transform: translateY(-1px); }
.history-order-item:active { transform: scale(0.995); }
.history-order-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.history-status { padding: 4px 6px; border: 1px solid transparent; border-radius: 3px; font-size: 8px; font-weight: 700; }
.history-status.is-distributing { border-color: rgba(86,180,156,0.3); background: rgba(86,180,156,0.08); color: var(--green); }
.history-status.is-producing { border-color: rgba(214,179,106,0.32); background: var(--gold-soft); color: var(--gold); }
.history-status.is-holding { border-color: rgba(245,242,234,0.14); background: var(--surface-2); color: #c7c9cc; }
.history-project { display: grid; grid-template-columns: 45px minmax(0,1fr); align-items: center; gap: 10px; padding: 11px; }
.history-project img { width: 45px; height: 58px; object-fit: cover; }
.history-project strong, .history-project span, .history-project small { display: block; }
.history-project strong { font-family: var(--font-display); font-size: 14px; }
.history-project span { margin-top: 4px; color: var(--gold); font-size: 10px; }
.history-project small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.history-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 11px; border-block: 1px solid var(--line); }
.history-metrics > div { min-width: 0; padding: 10px 5px 10px 0; }
.history-metrics > div + div { padding-left: 6px; border-left: 1px solid var(--line); }
.history-metrics span, .history-metrics strong { display: block; }
.history-metrics span { color: var(--muted); font-size: 7px; }
.history-metrics strong { margin-top: 4px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.history-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; color: var(--faint); font-size: 8px; }
.history-order-foot code { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.history-order-foot > span { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.history-order-foot svg { width: 13px; height: 13px; color: var(--gold); }
.history-empty { padding: 24px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 360px) {
  .history-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-metrics > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .history-metrics > div:nth-child(4) { border-top: 1px solid var(--line); }
}

/* Simplified investor data and crowdfunding archive */
.portfolio-head { padding-bottom: 24px; background: #111316; }
.portfolio-total { margin-top: 22px; }
.portfolio-total strong { margin: 6px 0 8px; font-size: 36px; }
.portfolio-total small { color: var(--muted); }

.portfolio-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 16px; border-block: 1px solid var(--line); }
.portfolio-summary > div { min-width: 0; padding: 15px 7px 15px 0; }
.portfolio-summary > div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.portfolio-summary span, .portfolio-summary strong { display: block; }
.portfolio-summary span { color: var(--muted); font-size: 9px; }
.portfolio-summary strong { margin-top: 6px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.earnings-chart-section { padding: 24px 16px 20px; border-bottom: 1px solid var(--line); }
.earnings-chart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.earnings-chart-head h2 { margin: 0; font-family: var(--font-display); font-size: 20px; }
.earnings-chart-head > div:last-child { flex: 0 0 auto; text-align: right; }
.earnings-chart-head > div:last-child span, .earnings-chart-head > div:last-child strong { display: block; }
.earnings-chart-head > div:last-child span { color: var(--muted); font-size: 8px; }
.earnings-chart-head > div:last-child strong { margin-top: 4px; color: var(--green); font-size: 15px; }
.earnings-chart-canvas { height: 118px; margin-top: 16px; }
.earnings-chart-canvas svg { display: block; width: 100%; height: 100%; overflow: visible; }
.earnings-chart-grid line { stroke: rgba(255,255,255,0.075); stroke-width: 1; vector-effect: non-scaling-stroke; }
.earnings-chart-area { fill: rgba(86,180,156,0.09); }
.earnings-chart-line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.earnings-chart-dot { fill: var(--bg); stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.earnings-chart-labels { display: flex; justify-content: space-between; margin-top: -8px; color: var(--faint); font-size: 8px; }
.earnings-chart-section > div:last-child > p, #earnings-chart > p { display: flex; align-items: center; gap: 5px; margin: 12px 0 0; color: var(--faint); font-size: 8px; }
#earnings-chart > p svg { width: 12px; height: 12px; color: var(--gold); }

.compact-holdings { border-top: 1px solid var(--line); }
.holding-row { width: 100%; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 86px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.holding-row:active { background: rgba(255,255,255,0.025); }
.holding-row > img { width: 46px; height: 62px; object-fit: cover; border-radius: 3px; }
.holding-row-main { min-width: 0; }
.holding-row-main > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.holding-row-main strong { overflow: hidden; font-family: var(--font-display); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.holding-row-main p { margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.holding-row-main small { display: block; margin-top: 7px; color: var(--faint); font-size: 8px; }
.holding-status { flex: 0 0 auto; padding: 3px 5px; border: 1px solid transparent; border-radius: 3px; font-size: 7px; font-weight: 700; }
.holding-row-value { display: grid; justify-items: end; min-width: 70px; }
.holding-row-value strong { font-size: 12px; }
.holding-row-value span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.holding-row-value svg { width: 14px; height: 14px; margin-top: 8px; color: var(--gold); }

.history-heading-actions { display: flex; align-items: center; gap: 9px; }
.history-heading-actions button { min-height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--gold); font-size: 9px; cursor: pointer; }
.history-heading-actions button[hidden] { display: none; }
.history-list { gap: 0; border-top: 1px solid var(--line); }
.history-order-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 84px; padding: 11px 2px; overflow: visible; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.history-order-item:hover { border-color: var(--line); transform: none; }
.history-order-item:active { background: rgba(255,255,255,0.025); transform: none; }
.history-order-item > img { width: 42px; height: 58px; object-fit: cover; border-radius: 3px; }
.history-order-main { min-width: 0; }
.history-order-main > strong, .history-order-main > span, .history-order-main > small { display: block; }
.history-order-main > strong { margin-top: 5px; overflow: hidden; font-family: var(--font-display); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.history-order-main > span { margin-top: 3px; color: var(--gold); font-size: 9px; }
.history-order-main > small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.history-order-meta { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 8px; }
.history-order-value { display: grid; justify-items: end; min-width: 78px; }
.history-order-value strong { font-size: 11px; }
.history-order-value span { margin-top: 5px; color: var(--muted); font-size: 7px; }
.history-order-value svg { width: 14px; height: 14px; margin-top: 7px; color: var(--gold); }

.crowdfunding-list { border-top: 1px solid var(--line); }
.crowdfunding-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.crowdfunding-item > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.crowdfunding-item > header span:first-child { color: var(--gold); font-size: 9px; font-weight: 700; }
.crowdfunding-item h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 17px; }
.crowdfunding-money { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 14px; }
.crowdfunding-money > div { min-width: 0; padding-right: 7px; }
.crowdfunding-money > div + div { padding-left: 9px; border-left: 1px solid var(--line); }
.crowdfunding-money span, .crowdfunding-money strong { display: block; }
.crowdfunding-money span { color: var(--muted); font-size: 8px; }
.crowdfunding-money strong { margin-top: 4px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.crowdfunding-progress { height: 3px; margin-top: 14px; overflow: hidden; background: var(--surface-2); }
.crowdfunding-progress span { display: block; height: 100%; background: var(--gold); }
.crowdfunding-item footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 8px; }
.crowdfunding-item footer strong { flex: 0 0 auto; color: var(--text); font-size: 8px; }

@media (max-width: 360px) {
  .portfolio-summary strong { font-size: 11px; }
  .holding-row { grid-template-columns: 42px minmax(0,1fr) auto; gap: 8px; }
  .holding-row > img { width: 42px; height: 58px; }
  .holding-row-value { min-width: 62px; }
  .history-order-item { grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px; }
  .history-order-item > img { width: 38px; height: 54px; }
  .history-order-value { min-width: 68px; }
  .crowdfunding-money strong { font-size: 10px; }
}
