/* Workspace reading scale. Keep this after component styles and before expert.css.
   Body 16px; supporting copy 14px; metadata 13px; section kickers 12px.
   Only compact counters and image overlays may be smaller. */
.shell, .va-workspace, #modal {
  --reading-muted: #bec1d0;
  font-size: 16px;
  line-height: 1.55;
}
#modal { font-family: "RF Manrope", Arial, sans-serif; }
:is(.shell, .va-workspace) :is(.content, .va-content) p,
#modal p { font-size: 15px; line-height: 1.65; }
:is(.shell, .va-workspace) :is(.content, .va-content) small,
#modal small { font-size: 13px; line-height: 1.55; }
:is(.shell, .va-workspace) :is(.content, .va-content) label,
#modal label { font-size: 14px; line-height: 1.6; color: #d3d4e0; }
:is(.shell, .va-workspace) :is(button, .button, .text-button),
#modal :is(button, .button, .text-button) { font-size: 14px; line-height: 1.45; min-height: 44px; }
:is(.shell, .va-workspace) :is(.content, .va-content) :is(input, select, textarea),
#modal :is(input, select, textarea) { font-size: 16px; line-height: 1.5; }
:is(.shell, .va-workspace) :is(.content, .va-content) :is(input, select):not([type=checkbox]):not([type=range]):not([type=radio]),
#modal :is(input, select):not([type=checkbox]):not([type=range]):not([type=radio]) { min-height: 48px; }
:is(.shell, .va-workspace) :is(.content, .va-content) :is(.footer-note, .notice),
#modal :is(.footer-note, .notice) { font-size: 14px; line-height: 1.65; }
:is(.shell, .va-workspace) :is(.content, .va-content) :is(.eyebrow, .home-section-kicker),
#modal .eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .1em; }
.shell .pill, .va-workspace .pill, #modal .pill { font-size: 13px; line-height: 1.45; }
.shell .content :is(th, td), #modal :is(th, td) { font-size: 14px; line-height: 1.55; }
.shell .content summary, .va-workspace .va-content summary, #modal summary { font-size: 14px; }
.shell .page-heading { margin-bottom: 30px; gap: 20px; }
.shell .page-heading h1 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.2; }
.shell .page-heading p, .va-workspace .page-heading p { font-size: 16px; max-width: 720px; }
.shell .side-link, .shell .workspace, .shell .studio-tools summary { font-size: 14px; }
.shell .sidebar>.eyebrow { font-size: 12px; letter-spacing: .09em; }
.shell .breadcrumbs, .shell .sidebar-bottom { font-size: 13px; }
.shell .creator-tabs { gap: 6px; flex-wrap: wrap; }
.shell .creator-tabs button { font-size: 14px; min-height: 44px; }
.shell .creator-picker-trigger, .creator-picker-menu .creator-picker-name { font-size: 16px; }
.shell .content :is(.error, [role=alert]) { overflow-wrap: anywhere; }

/* Dashboard: clear card titles, legible chart labels and room for the team rail. */
.shell .home-heading { align-items: flex-start; }
.shell .home-heading p { font-size: 16px; max-width: 650px; }
.shell .home-kicker { font-size: 14px; color: var(--reading-muted); }
.shell .home-stat-label { font-size: 14px; line-height: 1.5; align-items: flex-start; }
.shell .home-stat-label svg { margin-top: 3px; }
.shell .home-stat>strong { margin-top: 14px; }
.shell .home-desk { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.shell .home-roster-heading { flex-wrap: wrap; }
.shell .home-roster-heading h2 { font-size: 22px; }
.shell .home-roster-heading h2>span { font-size: 13px; }
.shell .home-roster-controls { flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.shell .home-search { flex: 1; min-width: 120px; max-width: 240px; }
.shell .home-section-heading { padding: 22px; gap: 12px; }
.shell .home-priorities .home-section-heading { padding: 0 0 16px; }
.shell .home-section-heading h2 { font-size: 20px; }
.shell .home-section-heading>a, .shell .home-chart-heading>a { font-size: 14px; }
.shell .home-chart-summary { flex-wrap: wrap; row-gap: 18px; }
.shell .home-chart-summary span { font-size: 14px; }
.shell .home-chart-summary>p { font-size: 14px; max-width: 265px; }
.shell .home-chart-summary small { font-size: 13px; color: var(--reading-muted); }
.shell .home-chart-bars { min-width: 980px; column-gap: 16px; }
.shell .home-chart-bar>span, .shell .home-chart-week.is-peak .home-chart-bar>span { font-size: 13px; }
.shell .home-chart-week>strong { font-size: 18px; }
.shell .home-chart-week>small, .shell .home-chart-week>time { font-size: 13px; color: var(--reading-muted); }
.shell .home-chart-note { font-size: 13px; color: var(--reading-muted); }
.shell[data-page=creators] .creator-card-body { padding: 20px; }
.shell[data-page=creators] .creator-card-body>.row .pill { font-size: 13px; line-height: 1.5; }
.shell[data-page=creators] .creator-card-body>p { font-size: 14px; margin: 10px 0 16px; }
.shell[data-page=creators] .creator-counts { font-size: 14px; gap: 12px 20px; flex-wrap: wrap; }
.shell[data-page=creators] .creator-counts b { font-size: 17px; }
.shell[data-page=creators] .creator-card-footer { font-size: 14px; align-items: flex-start; gap: 12px; }
.shell .home-priority strong, .shell .home-team-peek strong,
.shell .home-scheduled-item>div:nth-child(2)>strong, .shell .home-results-link strong { font-size: 15px; }
.shell .home-priority small, .shell .home-team-peek small,
.shell .home-team-count small, .shell .home-results-link small { font-size: 13px; line-height: 1.6; }
.shell .home-team-count>span { font-size: 15px; }
.shell .home-schedule-date>strong { font-size: 15px; }
.shell .home-scheduled-item strong span { font-size: 13px; }
.shell .home-scheduled-item p { font-size: 14px; }
.shell .home-time-note, .shell .home-setup-guide>summary small { font-size: 13px; }
.shell .home-queue-empty strong { font-size: 16px; }
.shell .home-queue-empty a { font-size: 14px; display: inline-flex; padding: 8px 0; }

/* Highlight links: identity, destination and actions are distinct sections. */
.shell .link-pages-heading { align-items: flex-start; gap: 20px; }
/* The Links page already has its title and creator picker above this section. */
.shell[data-page=links] .link-pages-heading>div:first-child { display: none; }
.shell .link-pages-heading h2 { font-size: 26px; }
.shell .link-pages-counts>span { font-size: 14px; }
.shell .link-pages-guide { padding: 20px 22px; }
.shell .link-pages-guide p { font-size: 15px; }
.shell .link-pages-guide small { font-size: 14px; margin-top: 8px; color: var(--reading-muted); }
.shell .link-card-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; padding: 22px; }
.shell .link-card-heading>div { min-width: 0; }
.shell .link-card-heading strong { font-size: 17px; line-height: 1.45; }
.shell .link-card-heading small { font-size: 13px; color: #c3bbd2; }
.shell .link-card-state { font-size: 13px; line-height: 1.45; padding: 7px 10px; margin: 0; }
.shell .link-card-body { padding: 22px; }
.shell .auto-pages .link-field-label { font-size: 14px; color: #d3ccdf; margin-bottom: 10px; }
.shell .auto-pages .link-address { gap: 10px; margin-bottom: 24px; }
.shell .auto-pages .link-address input, .shell .auto-pages .link-card-body input[name=destination] { font-size: 16px; min-height: 48px; padding: 12px; }
.shell .auto-pages .link-address :is(button, a), .shell .auto-pages .link-page-actions :is(button, a) { font-size: 14px; min-height: 44px; padding: 10px 14px; }
.shell .auto-pages .link-page-actions { gap: 12px; margin-top: 24px; padding-top: 20px; }
.shell .auto-pages .link-page-actions p { font-size: 13px; line-height: 1.65; padding: 12px 14px; }
.shell .link-save-panel summary { font-size: 14px; padding: 8px 0; }

/* VA workspace and management: readable instructions and specific statuses. */
.va-workspace .va-agency-label, .va-workspace .va-role-note { font-size: 14px; }
.va-workspace .va-welcome-date { font-size: 14px; }
.va-workspace .va-today-card .va-today-copy p { font-size: 15px; }
.va-workspace .va-today-action>small { font-size: 13px; }
.va-workspace .va-publishing-note { font-size: 14px; line-height: 1.65; }
.va-workspace .va-result-period button, .va-workspace [data-va-home=refresh] { font-size: 14px; min-height: 44px; padding: 9px 12px; }
.va-workspace .va-result-metric { padding: 18px 0; }
.va-workspace .va-result-metric dt { font-size: 15px; }
.va-workspace .va-result-metric small, .va-workspace .va-results-caption { font-size: 13px; line-height: 1.65; }
.va-workspace .va-account-name { font-size: 15px; }
.va-workspace .va-account-numbers { font-size: 14px; flex-wrap: wrap; }
.va-workspace .va-checklist-group>summary { font-size: 16px; }
.va-workspace .va-checklist-group>summary>span { font-size: 13px; white-space: normal; flex-shrink: 0; }
.va-workspace .va-task-heading .va-state, .shell .va-state { font-size: 14px; }
.va-workspace .va-checklist-group [data-account]>small { font-size: 13px; }
.va-workspace .va-task-heading h3 { font-size: 18px; line-height: 1.4; }
.va-workspace .va-daily-task { padding: 20px 0 12px; }
.va-workspace .va-task-actions { gap: 12px; margin-top: 16px; }
.va-workspace .va-task-actions :is(button, a), .va-workspace .va-task-actions .small { min-height: 44px; font-size: 14px; }
.va-workspace .va-account-setup>summary { font-size: 18px; }
.va-workspace .va-account-setup>summary span { font-size: 14px; }
.va-workspace .va-nav-mobile a b { font-size: 13px; }
.shell .va-hub-tabs a { font-size: 14px; padding: 10px 14px; }
.shell .va-hub-name small, .shell .va-hub-stats { font-size: 14px; }
.shell .va-hub-person>summary { gap: 12px 16px; }
.shell .va-hub-person>summary>.pill { font-size: 14px; }
.shell .va-hub-actions button { min-height: 44px; font-size: 14px; }

/* Chat: message text is primary; names and warnings stay readable. */
:is(.shell, .va-workspace) .chat-message .chat-text { font-size: 16px; line-height: 1.65; }
:is(.shell, .va-workspace) .chat-message header strong { font-size: 14px; }
:is(.shell, .va-workspace) .chat-message time { font-size: 13px; }
:is(.shell, .va-workspace) .chat-header { flex-wrap: wrap; gap: 6px 14px; }
:is(.shell, .va-workspace) .chat-header small,
:is(.shell, .va-workspace) .chat-compose-actions small { font-size: 13px; }
.va-workspace[data-page=team-chat] .chat-compose-actions>small { font-size: 13px; }
.shell .chat-warning-person, .shell .chat-warning-title { font-size: 15px; }
.shell .chat-warning-person small, .shell .chat-warning-item summary:after,
.shell .chat-supervision [data-chat-warning-time] { font-size: 13px; }
.shell .chat-warning-detail p { font-size: 14px; }
.shell .chat-warning-actions :is(button, a) { font-size: 14px; }

/* Revenue: a card per account, with a consistent row of metrics. */
.shell .ml-source, .shell .ml-note, .shell .ml-connect { font-size: 14px; line-height: 1.65; }
.shell .ml-row { border: 1px solid #383340; border-radius: 14px; padding: 20px; margin-top: 16px; background: #17171f; }
.shell .ml-row header strong { font-size: 17px; }
.shell .ml-row header small, .shell .ml-leader small, .shell .ml-creator small { font-size: 13px; }
.shell .ml-leader { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 16px; }
.shell .ml-leader strong, .shell .ml-creator strong { font-size: 16px; }
.shell .ml-funnel { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.shell .ml-step { padding: 16px; }
.shell .ml-step span { font-size: 14px; }
.shell .ml-step small, .shell .ml-step em { font-size: 13px; }
.shell .ml-step em { position: static; display: block; margin-top: 4px; }
.shell .ml-step strong { font-size: 24px; }
.shell .revenue-total>span, .shell .revenue-visits>span { font-size: 14px; }
.shell .revenue-account-title p, .shell .revenue-report p, .shell .revenue-caption { font-size: 14px; }
.shell .revenue-campaign, .shell .revenue-account>footer { font-size: 13px; }

/* Library and creation: give titles and posting controls enough space. */
.shell .asset-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.shell .asset-info { padding: 20px; }
.shell .asset-info h3 { font-size: 17px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; margin-bottom: 10px; }
.shell .asset-info p { font-size: 13px; line-height: 1.65; }
.shell .asset-card .media-publication { font-size: 12px; line-height: 1.4; }
.shell .asset-info .row { gap: 10px; padding-top: 16px; border-top: 1px solid #35313e; }
.shell .asset-info .row>:is(button, a), .shell .asset-info .row button span { font-size: 14px; min-height: 44px; line-height: 1.45; }
.shell .asset-info .row button span { min-height: 0; }
.shell .creation-choice { padding: 20px; gap: 14px; }
.shell .creation-choice strong { font-size: 16px; }
.shell .creation-choice small { font-size: 14px; }
.shell .creation-meta, .shell .creation-live { font-size: 13px; }
.shell .creation-info h3 { font-size: 17px; line-height: 1.5; }
.shell .creation-filters { flex-wrap: wrap; gap: 10px; }
.shell .creation-filters button span { font-size: 13px; margin-left: 6px; }
.shell .planner-week { gap: 8px; }
.shell .planner-week small { font-size: 13px; }

@media (max-width: 1200px) {
  .shell .home-desk { grid-template-columns: minmax(0, 1fr); }
  .shell .home-desk-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .shell .home-results-link { grid-column: 1 / -1; }
  .shell .link-card-heading { grid-template-columns: 48px minmax(0, 1fr); }
  .shell .link-card-state { grid-column: 2; justify-self: start; }
}
@media (max-width: 760px) {
  .shell .home-heading { flex-wrap: wrap; gap: 16px; }
  .shell .home-desk-side { grid-template-columns: minmax(0, 1fr); }
  .shell .home-stat { min-height: 128px; }
  .shell .home-chart-summary>p { width: 100%; max-width: none; text-align: left; }
  .shell .home-chart-summary small { display: block; margin: 6px 0 0; }
  .shell .home-chart-note { gap: 10px; }
  .shell .home-chart-heading h2 { font-size: 23px; }
  .shell .home-roster-controls { flex-basis: 100%; justify-content: flex-start; }
  .shell .home-search { max-width: none; }
  .shell .link-pages-guide { padding: 18px; }
  .shell .link-pages-guide>span { display: none; }
  .shell .link-card-heading, .shell .link-card-body { padding: 20px; }
  .shell .link-save-panel { align-items: stretch; }
  .shell .link-save-panel details { min-width: 0; flex-basis: 100%; }
  .shell .link-save-panel>button { width: 100%; }
  .shell .ml { padding: 18px; }
  .shell .ml-row { padding: 16px; }
  .shell .ml-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell .ml-funnel>.ml-note { grid-column: 1 / -1; }
  .shell .asset-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .shell .planner-week { overflow-x: auto; grid-template-columns: repeat(7, minmax(64px, 1fr)); padding-bottom: 10px; }
  .va-workspace .va-result-period { gap: 2px; }
  .va-workspace .va-result-period button { padding: 8px 10px; }
  .va-workspace .va-checklist-group>summary { gap: 10px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .shell .page-heading { flex-wrap: wrap; }
  .shell .page-heading h1 { font-size: 28px; }
  .shell .home-heading h1 { font-size: 32px; }
  .shell[data-page=creators] .creator-grid { grid-template-columns: minmax(0, 1fr); }
  .shell[data-page=creators] .creator-portrait { height: 230px; }
  .shell[data-page=creators] .creator-cover-title h2 { font-size: 28px; }
  .shell .asset-grid { grid-template-columns: minmax(0, 1fr); }
  .shell .asset-info .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell .va-hub-tabs { flex-wrap: wrap; justify-content: flex-start; }
  .shell .va-hub-tabs a { padding: 10px 12px; }
  .shell .ml-leader { grid-template-columns: 28px minmax(0, 1fr); }
  .shell .ml-leader>b { grid-column: 2; }
  /* Keep the compact mobile header within its fixed slots. */
  .shell .topbar :is(button, .button) { min-height: 40px; }
  /* The mobile shortcut has no text; its plus must remain visible at 320px. */
  .shell .topbar:has(#product-updates) .topbar-create svg { display: block; }
  .shell .topbar .mobile-credit { font-size: 13px; padding: 8px; }
}
@media (max-width: 360px) {
  .shell .home-stats { gap: 10px; }
  .shell .home-stat-label { font-size: 13px; }
  .shell .home-stat-label svg { display: none; }
  .shell .link-card-heading, .shell .link-card-body { padding: 16px; }
  .shell .asset-info { padding: 16px; }
  .shell .ml-step { padding: 12px; }
}
