.owner-dashboard { padding-block: 24px 40px; gap: 14px; }
[data-dashboard-content] { min-width:0; }
.fm-trend-scroll { contain:inline-size; }
.fm-trend { padding-block:8px 20px; border-bottom:1px solid var(--line); margin-bottom:16px; }
.fm-trend-heading,.fm-trend-key { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.fm-trend-heading { justify-content:space-between; }
.fm-trend button { font:inherit; color:inherit; background:transparent; border:0; cursor:pointer; }
.fm-trend-heading button { padding:0 10px; min-height:44px; border-bottom:2px solid transparent; }
.fm-trend-heading button[aria-pressed=true] { color:var(--accent); border-color:currentColor; }
.fm-trend-key { font-size:.85rem; }
.fm-trend-key span::before { content:''; display:inline-block; width:9px; height:9px; margin-right:5px; background:var(--accent); }
.fm-trend-key span+span::before { background:var(--mint); }
.fm-trend-plot { display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px; padding-top:12px; }
[data-trend-axis] { height:144px; display:flex; flex-direction:column; justify-content:space-between; text-align:right; font-size:.72rem; font-variant-numeric:tabular-nums; }
[data-trend-axis] span { line-height:0; }
.fm-trend-scroll { min-width:0; padding:4px 0 22px; margin-top:-4px; }
[data-trend-chart]:not(:empty) { position:relative; display:grid; grid-template-columns:repeat(var(--count),minmax(0,1fr)); border-left:1px solid var(--line); background:repeating-linear-gradient(to top,var(--line) 0 1px,transparent 1px 25%); }
[data-trend-chart] svg { position:absolute; width:100%; height:100%; pointer-events:none; }
[data-trend-chart] button { position:relative; height:144px; padding:0; min-width:0; border-bottom:1px solid var(--line); }
[data-trend-chart] button[aria-pressed=true] { background:var(--line); }
[data-trend-chart] i { position:absolute; left:50%; transform:translate(-50%,-50%); width:5px; height:5px; border-radius:50%; pointer-events:none; }
[data-trend-chart] button[aria-pressed=true] i { outline:1px solid currentColor; outline-offset:2px; }
[data-trend-chart] small { position:absolute; top:100%; left:50%; transform:translateX(-50%); white-space:nowrap; font-size:10px; }
[data-trend-chart] button:first-of-type small { left:0; transform:none; }
[data-trend-chart] button:last-of-type small { left:auto; right:0; transform:none; }
.fm-point-tip { position:absolute; top:3px; z-index:1; pointer-events:none; padding:4px 7px; white-space:pre-line; font-size:.72rem; line-height:1.4; border:1px solid var(--line); border-radius:4px; background:var(--surface,#241f31); }
.fm-trend [role=status] { font-size:.8rem; color:var(--text-dim); }
.dashboard-hero h1 { font-size: 1.65rem; margin: 0; }
.dashboard-hero .eyebrow { margin: 0 0 4px; }
.fm-ledger { --line: rgba(183,162,218,.23); --accent: #c697f0; --mint: #7ed8bd; min-width: 0; color: var(--text-soft); }
.fm-ledger h2, .fm-ledger h3, .fm-ledger dl, .fm-ledger dd { margin: 0; }
.fm-ledger h2 { font-size: 1.14rem; }
.fm-ledger h3 { margin-bottom: 10px; font-size: .97rem; }
.fm-ledger-heading, .fm-ledger-heading label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fm-ledger-heading { padding-block: 6px 12px; border-bottom: 1px solid var(--line); }
.fm-ledger [role=status]:empty, .fm-audience-note:empty { display: none; }
.fm-quiet-label, .fm-audience-note, .fm-ledger dt, .fm-ledger-drawer > p, .fm-ledger-drawer summary > span { color: var(--text-dim); }
.fm-ledger-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding-block: 15px 8px; }
.fm-ledger-totals > div { min-width: 0; padding-inline: 12px; border-inline-start: 1px solid var(--line); }
.fm-ledger-totals > div:first-child { padding-inline-start: 0; border: 0; }
.fm-ledger dt, .fm-ledger small, .fm-quiet-label, .fm-audience-note { font-size: .8rem; }
.fm-ledger-totals dd { font-size: 1.28rem; line-height: 1.4; font-weight: 650; color: var(--text-strong); }
.fm-ledger dd, .fm-ledger-expenses { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fm-ledger-totals small { display: block; color: var(--text-dim); font-weight: 450; }
.fm-audience-note { margin: 4px 0 12px; }
.fm-meter-note { margin: 6px 0 0; font-size: .77rem; color: var(--text-dim); }
.fm-ledger-analysis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 32px; }
.fm-ledger-analysis section { min-width: 0; padding-block: 14px; border-top: 1px solid var(--line); }
.fm-cost-chart { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 14px; align-items: center; }
.fm-cost-ring { width: 72px; aspect-ratio: 1; position: relative; border-radius: 50%; background: var(--line); }
.fm-cost-ring::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg, #16131e); }
.fm-cost-ring[data-split] { background: conic-gradient(var(--accent) 0 var(--split),var(--mint) var(--split) 100%); }
.fm-cost-legend > div, .fm-ledger-rows > div, .fm-ledger-expenses li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-block: 3px; }
.fm-cost-legend dt::before { content: ''; width: .55rem; height: .55rem; display: inline-block; margin-right: 6px; border-radius: 2px; background: var(--accent); }
.fm-cost-legend > div:nth-child(2) dt::before { background: var(--mint); }
.fm-cost-legend dd, .fm-ledger-rows dd, .fm-ledger-expenses li span:last-child { text-align: end; font-size: .85rem; }
.fm-ledger-drawer { border-top: 1px solid var(--line); }
.fm-ledger-drawer summary, .fm-ledger-legacy > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; }
.fm-ledger-drawer summary::-webkit-details-marker, .fm-ledger-legacy > summary::-webkit-details-marker { display: none; }
.fm-ledger-drawer summary::before, .fm-ledger-legacy > summary::before { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); flex: none; margin: 0 5px; }
.fm-ledger-drawer[open] > summary::before, .fm-expense-editor[open] > summary::before, .fm-ledger-legacy[open] > summary::before { transform: rotate(45deg); }
.fm-ledger-drawer summary > span { margin-inline-start: auto; font-size: .82rem; font-weight: 450; }
.fm-ledger-drawer p { font-size: .85rem; margin-block: 6px; }
.fm-ledger-expenses { list-style: none; margin: 0; padding: 0 0 6px; }
.fm-ledger-expenses li { border-bottom: 1px solid var(--line); padding-block: 6px; font-size: .88rem; }
.fm-expense-editor > summary { color: var(--accent); font-size: .88rem; }
.fm-ledger form { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr)); align-items: end; gap: 10px; margin: 6px 0 16px; }
.fm-ledger form label { display: grid; gap: 4px; min-width: 0; font-size: .83rem; }
.fm-ledger input, .fm-ledger select, .fm-ledger form button {
  box-sizing: border-box; height: 44px; min-height: 44px; min-width: 0; width: 100%; max-width: 100%;
  margin: 0; font-family: inherit; font-size: 16px; line-height: normal; border-radius: 6px;
}
.fm-ledger input, .fm-ledger select {
  -webkit-appearance: none; appearance: none; color: inherit; color-scheme: dark;
  background-color: var(--surface, #241f31); border: 1px solid var(--line); padding: 0 10px;
}
.fm-ledger select { padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23c7bad5' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.fm-ledger input::-webkit-date-and-time-value { text-align: start; }
.fm-ledger-heading select { width: auto; min-width: 8rem; }
.fm-ledger :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fm-ledger [hidden] { display: none; }
.fm-ledger-legacy { border-top: 1px solid rgba(183,162,218,.23); }
@media (max-width: 660px) {
  .owner-dashboard { padding-block: 14px 30px; }
  .fm-ledger-analysis { grid-template-columns: minmax(0,1fr); }
  .fm-ledger-analysis section { padding-block: 10px; }
  .fm-ledger-totals > div { padding-inline: 7px; }
  .fm-ledger-totals dd { font-size: 1.06rem; }
  .fm-ledger form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fm-ledger form button { grid-column: 1/-1; }
  .fm-cost-ring { width: 60px; }
  .fm-cost-chart { grid-template-columns: 60px minmax(0,1fr); }
}
@media (max-width: 360px) {
  .fm-ledger form { grid-template-columns: minmax(0,1fr); }
}
.fm-dashboard-document { scroll-behavior:auto; }
[data-account-cost-rows] dt { min-width:0; overflow-wrap:anywhere; }
[data-account-cost-rows] dt small { display:block; }
[data-account-cost-rows] form:not([hidden]) { display:flex; flex-wrap:wrap; gap:.4rem; }
[data-account-cost-rows] form input { flex:1 1 100%; min-width:0; }
[data-account-cost-rows] [hidden] { display:none; }
