/* Meetini dashboard shell. Account controls and transcript actions use Astryx. */
.dashboard-page { margin: 0; background: var(--cream); }
.dashboard-page .dashboard-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.dashboard-page .dashboard-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; padding: 26px 14px 20px; border-right: 1px solid var(--line-soft); background: var(--paper); }
.dashboard-page .dashboard-brand { display: flex; align-items: center; gap: 9px; padding: 0 10px; color: var(--ink); font-size: 20px; font-weight: 700; text-decoration: none; }
.dashboard-page .dashboard-brand img { border-radius: 8px; }
.dashboard-page .dashboard-nav { display: flex; flex-direction: column; gap: 5px; }
.dashboard-page .dashboard-nav button { justify-content: flex-start; width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink); font-weight: 600; text-align: left; }
.dashboard-page .dashboard-nav button:not([aria-current="page"]) { background: transparent; }
.dashboard-page .dashboard-nav button[aria-current="page"] { background: #f1e3d6; color: var(--terracotta-deep); }
.dashboard-page .dashboard-nav button:focus-visible, .dashboard-page .dashboard-overview button:focus-visible, .dashboard-page a:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.dashboard-page:not(.is-signed-in) .dashboard-nav, .dashboard-page:not(.is-signed-in) .dashboard-topbar { display: none; }
.dashboard-page .dashboard-site-link { margin-top: auto; padding: 8px 12px; color: var(--muted); font-size: 12px; text-decoration: none; }
.dashboard-page .dashboard-site-link:hover { color: var(--terracotta-deep); }
.dashboard-page .dashboard-main { width: 100%; max-width: none; min-width: 0; padding: 30px clamp(20px, 2.5vw, 48px) 24px; }
.dashboard-page .dashboard-topbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dashboard-page .dashboard-topbar h1 { margin: 2px 0 0; font-size: clamp(26px, 2vw, 36px); font-weight: 550; line-height: 1.15; letter-spacing: -.035em; }
.dashboard-page .dashboard-eyebrow { color: var(--terracotta-text); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.dashboard-page .dashboard-account-email { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; text-align: right; }
.dashboard-page .account-intro { max-width: 660px; margin: 14px auto 0; }
.dashboard-page .account-intro h2 { margin: 0 0 10px; font-size: 30px; font-weight: 550; }
.dashboard-page .account-intro .lede { font-size: 15px; }
.dashboard-page #account-card { width: 100%; max-width: none; margin: 16px 0 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.dashboard-page:not(.is-signed-in) #account-card { margin-top: 18px; }
.dashboard-page #sign-in { max-width: 440px; margin: 0 auto; }
.dashboard-page .account-dashboard:not([hidden]) { display: block !important; }
.dashboard-page [hidden] { display: none !important; }
.dashboard-page .dashboard-view { display: none !important; }
.dashboard-page[data-dashboard-view="overview"] #overview-view:not([hidden]),
.dashboard-page[data-dashboard-view="meetings"] #transcripts:not([hidden]),
.dashboard-page[data-dashboard-view="billing"] #billing-view:not([hidden]),
.dashboard-page[data-dashboard-view="account"] #account-view:not([hidden]),
.dashboard-page[data-dashboard-view="admin"] #admin-view:not([hidden]) { display: block !important; }
.dashboard-page .dashboard-section-title { margin: 0 0 18px; }
.dashboard-page .dashboard-section-title h2 { margin: 0; font-size: 24px; font-weight: 560; letter-spacing: -.03em; }
.dashboard-page .dashboard-section-title p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dashboard-page .dashboard-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-page .dashboard-kpi, .dashboard-page .dashboard-panel { min-width: 0; padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--paper); }
.dashboard-page .dashboard-kpi { display: flex; flex-direction: column; gap: 8px; min-height: 138px; }
.dashboard-page .dashboard-kpi span { color: var(--muted); font-size: 13px; }
.dashboard-page .dashboard-kpi strong { color: var(--ink); font-size: clamp(20px, 2.2vw, 29px); font-weight: 570; letter-spacing: -.025em; line-height: 1.25; overflow-wrap: anywhere; }
.dashboard-page .dashboard-kpi small { margin-top: auto; color: var(--muted-soft); font-size: 11px; line-height: 1.4; }
.dashboard-page .dashboard-overview-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }
.dashboard-page .dashboard-panel h3 { margin: 0 0 8px; font-size: 17px; font-weight: 570; }
.dashboard-page .dashboard-panel p { margin: 6px 0 16px; color: var(--muted); font-size: 13px; }
.dashboard-page .dashboard-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dashboard-page #transcripts { padding: 0; border: 0; background: transparent; box-shadow: none; }
.dashboard-page .transcripts-heading { align-items: center; min-height: 42px; margin-bottom: 7px; }
.dashboard-page #transcripts-status { margin: 0; }
.dashboard-page .transcripts-about { margin: 0 0 10px; }
.dashboard-page .transcripts-about[open] { max-width: 760px; }
.dashboard-page .transcripts-about #delete-all-transcripts:not([hidden]) { margin-top: 10px; }
.dashboard-page .transcripts-layout { min-height: min(680px, calc(100vh - 210px)); border-radius: 12px; background: var(--paper); }
.dashboard-page .transcripts-index, .dashboard-page .transcripts-pane { max-height: calc(100vh - 210px); }
.dashboard-page .transcript-list-row { position: relative; padding: 3px 7px; gap: 2px; }
.dashboard-page .transcript-open { flex: 1; padding: 7px 9px; background: transparent; }
.dashboard-page .transcript-open-text span:nth-child(2) { display: none; }
.dashboard-page .transcript-open-text span:last-child { display: block; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-page .transcript-open:where(:not(.astryx-island *)):hover { background: #f5e9dc; }
.dashboard-page .transcript-row-actions { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.dashboard-page .transcript-row-actions .transcript-row-more { min-width: 38px; min-height: 38px; padding: 2px 8px; font-size: 20px; line-height: 1; }
.dashboard-page .transcript-row-menu:not([hidden]) { display: flex; flex-direction: column; min-width: 128px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-strong); box-shadow: 0 10px 28px #2b272326; }
.dashboard-page .transcript-row-menu button { justify-content: flex-start; width: 100%; min-height: 38px; padding: 6px 10px; font-size: 12px; }
.dashboard-page .transcripts-pane { padding: 14px 20px; }
.dashboard-page .transcript-detail-heading { align-items: center; gap: 10px; margin-bottom: 8px; }
.dashboard-page .transcript-detail-heading .transcripts-actions { display: none; }
.dashboard-page .transcript-detail h3 { margin: 0 0 2px; font-size: 17px; font-weight: 560; }
.dashboard-page .transcript-detail h4 { margin: 14px 0 4px; }
.dashboard-page .transcript-segment { padding: 9px 0; }
.dashboard-page .transcript-segment p { margin: 3px 0 0; line-height: 1.5; }
.dashboard-page .transcript-segment.is-continuation { padding: 2px 0 7px; border-top: 0; }
.dashboard-page .transcript-segment.is-continuation .transcript-segment-heading { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }
.dashboard-page .transcript-segment.is-continuation p { margin: 0; }
.dashboard-page .transcripts-layout[data-empty="true"] { display: block; min-height: 0; border: 0; }
.dashboard-page .transcripts-layout[data-empty="true"] .transcripts-index { display: none; }
.dashboard-page .transcripts-layout[data-empty="true"] .transcripts-pane { display: block; max-height: none; padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: 12px; }
.dashboard-page .transcripts-layout[data-empty="true"] .transcript-placeholder { margin: 0; text-align: left; }
.dashboard-page .dashboard-transition { padding: 14px 18px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--paper); color: var(--muted); font-size: 13px; }
.dashboard-page .dashboard-transition a, .dashboard-page .dashboard-panel a { color: var(--terracotta-deep); }
.dashboard-page .dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 !important; border: 0 !important; background: transparent !important; }
.dashboard-page .dashboard-region, .dashboard-page .dashboard-region + .dashboard-region { margin: 0; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--paper); }
.dashboard-page .dashboard-region h3 { font-size: 16px; }
.dashboard-page .dashboard-region .region-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-page .dashboard-region .region-heading button { margin: 0 !important; }
.dashboard-page .usage-group { margin-top: 10px; }
.dashboard-page .usage-plan { font-size: 18px; font-weight: 550; }
.dashboard-page .billing-legal { margin-top: 8px; }
.dashboard-page #future-billing .billing-actions { margin-top: 12px; }
.dashboard-page .dashboard-region-wide { grid-column: 1 / -1; }
.dashboard-page .dashboard-bar { border: 0 !important; background: transparent !important; padding: 0 !important; }
.dashboard-page #account-view .dashboard-panel { max-width: 640px; padding: 18px 20px; }
.dashboard-page[data-dashboard-view="account"] .dashboard-account-email { display: none; }
.dashboard-page #account-view .dashboard-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.dashboard-page #account-view .dashboard-identity { flex: 1; margin: 0; color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.dashboard-page #account-view .dashboard-help { display: inline-block; margin-top: 12px; color: var(--terracotta-deep); font-size: 12px; text-decoration: none; }
.dashboard-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }
.dashboard-page #admin-view .dashboard-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-page #admin-status { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .dashboard-page * { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 980px) {
  .dashboard-page .dashboard-shell { grid-template-columns: 188px minmax(0, 1fr); }
  .dashboard-page .dashboard-overview-grid, .dashboard-page .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-page #admin-view .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .dashboard-page .dashboard-shell { display: block; }
  .dashboard-page .dashboard-sidebar { position: static; width: 100%; height: auto; padding: 12px 16px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .dashboard-page .dashboard-brand { font-size: 17px; }
  .dashboard-page .dashboard-brand img { width: 28px; height: 28px; }
  .dashboard-page .dashboard-nav { flex-direction: row; gap: 3px; overflow-x: auto; }
  .dashboard-page .dashboard-nav button { width: auto; white-space: nowrap; padding: 0 10px; }
  .dashboard-page .dashboard-site-link { display: none; }
  .dashboard-page .dashboard-main { padding: 20px 16px; }
  .dashboard-page .dashboard-topbar h1 { font-size: 26px; }
  .dashboard-page .dashboard-account-email { max-width: 42%; font-size: 10px; }
  .dashboard-page .dashboard-kpis, .dashboard-page #admin-view .dashboard-kpis { grid-template-columns: 1fr; gap: 9px; }
  .dashboard-page .dashboard-kpi { min-height: 108px; }
  .dashboard-page .dashboard-panel-heading { align-items: flex-start; }
  .dashboard-page #transcripts { padding: 0; }
  .dashboard-page .transcripts-layout { min-height: 50vh; }
  .dashboard-page .transcripts-index, .dashboard-page .transcripts-pane { max-height: none; }
}
@media (min-width: 701px) and (max-width: 760px) {
  .dashboard-page .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dashboard-page .transcript-detail-heading .transcripts-actions { display: flex; flex-wrap: wrap; gap: 8px; }
}
