/* Organization workspace (0.4.158): one header and one set of links for Overview, Billing, Manager reports and
   Agents; the Overview has product cards (single select), the selected product's chart, its details, People. */
.view-actions-group { display:flex; flex-wrap:nowrap; align-items:center; justify-content:flex-end; gap:12px; min-width:0; }
.org-scope-chip { height:32px; padding:0 12px; }
.org-scope-chip svg, .org-export svg { flex:none; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.org-export svg { width:18px; height:18px; }
.org-export:hover { border-color:var(--accent); }

.org-overview { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; min-width:0; margin-bottom:28px; }
.org-card { min-width:0; border:1px solid var(--border); border-radius:12px; color:var(--strong); background:var(--surface); }
.org-card-title { margin:0; font-size:16px; font-weight:600; line-height:24px; }
.org-card-note, .org-card-meta { margin:0; color:var(--text); font-size:14px; line-height:20px; font-variant-numeric:tabular-nums; }
.org-card-meta { margin-top:auto; }
.org-empty { margin:0; padding:20px 24px; color:var(--text); font-size:14px; }
.org-empty .secondary-button { margin-top:12px; }

/* Cards: all products + one toggle per product. */
.org-cards { display:grid; grid-template-columns:minmax(0,1.1fr) repeat(3,minmax(0,1fr)); gap:20px; }
.org-cards[data-count="3"] { grid-template-columns:minmax(0,1.1fr) repeat(2,minmax(0,1fr)); }
.org-cards[data-count="2"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.org-total-card { display:flex; flex-direction:column; gap:10px; padding:20px; }
.org-total-card .org-card-note, .org-total-card .org-card-meta { display:block; }
.org-total-value { margin:0; font-size:28px; font-weight:700; line-height:36px; letter-spacing:-.02em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.org-product-card { display:flex; flex-direction:column; align-items:stretch; gap:10px; margin:1px; padding:20px; font:inherit; text-align:left; cursor:pointer; }
.org-product-card:hover { border-color:var(--border-strong); }
/* The selected card: a 2 px green border (3:1 or more on the card), not only a tint. */
.org-product-card.is-selected { margin:0; border:2px solid var(--focus-ring); }
.org-product-head { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; min-width:0; }
.org-product-name { flex:1 1 auto; min-width:0; font-size:16px; font-weight:600; line-height:24px; }
.org-change { flex:none; }
.org-product-value { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; min-width:0; }
.org-product-cost { font-size:26px; font-weight:700; line-height:32px; letter-spacing:-.02em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.org-product-unit { color:var(--text); font-size:15px; line-height:22px; }
.org-product-value.is-muted { color:var(--text); font-size:20px; font-weight:600; line-height:28px; }
.org-product-credits { font-size:15px; font-weight:500; line-height:22px; font-variant-numeric:tabular-nums; }
.org-product-meta { color:var(--text); font-size:14px; line-height:20px; font-variant-numeric:tabular-nums; }
/* 0.4.205: the month-end forecast on the cards (current month only). */
.org-product-forecast, .org-card-forecast { display:block; margin:0; font-size:15px; font-weight:500; line-height:22px; font-variant-numeric:tabular-nums; }
.org-forecast-amount { white-space:nowrap; }
.org-dot { display:inline-block; flex:none; width:12px; height:12px; border-radius:3px; background:var(--chart-cowork); }
.org-dot.is-studio { background:var(--chart-studio); }
.org-dot.is-github { background:var(--chart-github); }
.org-dot.is-blank { background:transparent; }

/* Six-month grouped bar chart. Tooltips appear on hover and keyboard focus. */
.org-chart-card { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; padding:20px 24px 22px; }
.org-card-header, .org-people-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 16px; }
.org-card-titles { display:grid; gap:4px; min-width:0; }
.org-card-titles h2 { margin:0; font-size:17px; font-weight:600; line-height:24px; }
.org-card-titles p { margin:0; color:var(--text); font-size:14px; line-height:20px; font-variant-numeric:tabular-nums; }
.org-legend { display:flex; flex-wrap:wrap; gap:8px 20px; color:var(--text); font-size:14px; line-height:20px; }
.org-legend-item { display:inline-flex; align-items:center; gap:8px; }
.org-chart { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px; }
/* The unit above a y-axis of evenly spaced ticks with thin gridlines, as on the daily charts. */
.org-chart-axis { grid-column:1 / -1; color:var(--text); font-size:12px; line-height:16px; font-variant-numeric:tabular-nums; }
.org-chart-ticks { position:relative; min-width:24px; height:190px; color:var(--muted); font-size:12px; line-height:1; text-align:right; font-variant-numeric:tabular-nums; }
.org-chart-tick { position:absolute; right:0; transform:translateY(50%); white-space:nowrap; }
.org-chart-gridline { position:absolute; left:0; right:0; height:1px; background:var(--border); pointer-events:none; }
.org-chart-plot { position:relative; display:flex; align-items:stretch; gap:clamp(8px,3vw,40px); height:190px; padding:0 clamp(0px,1.5vw,24px); border-bottom:1px solid var(--border-strong); }
.org-chart-month { display:flex; flex:1 1 0; align-items:flex-end; justify-content:center; gap:clamp(2px,0.6vw,6px); min-width:0; border-radius:4px 4px 0 0; }
.org-chart-month:hover { background:var(--surface-muted); }
/* The fill is a background image, so the bar's focus ring is measured against the card around it (where it is drawn). */
.org-chart-bar { --bar:var(--chart-cowork); position:relative; flex:0 1 36px; min-width:4px; height:0; border-radius:4px 4px 0 0; background:linear-gradient(var(--bar), var(--bar)); transition:opacity .2s; cursor:default; }
.org-chart-bar.is-studio { --bar:var(--chart-studio); }
.org-chart-bar.is-github { --bar:var(--chart-github); }
.org-chart-bar.is-missing { height:28px; border:1px dashed var(--border-strong); border-bottom:0; background:transparent; }
.org-chart-bar.is-faded { opacity:.18; }
.org-chart-tooltip { position:absolute; bottom:calc(100% + 8px); left:50%; z-index:30; display:none; flex-direction:column; gap:4px; min-width:190px; padding:10px 12px; border-radius:8px; color:var(--surface); background:var(--strong); box-shadow:var(--shadow-overlay); font-size:13px; line-height:18px; text-align:left; pointer-events:none; transform:translateX(-50%); }
.org-chart-tooltip.is-start { left:0; transform:none; }
.org-chart-tooltip.is-end { right:0; left:auto; transform:none; }
.org-chart-bar:hover .org-chart-tooltip, .org-chart-bar:focus .org-chart-tooltip, .org-chart-bar.is-open .org-chart-tooltip { display:flex; }
.org-chart-bar:hover, .org-chart-bar:focus { opacity:1; }
.org-chart-tooltip strong { font-weight:600; white-space:nowrap; }
.org-tip-row { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.org-tip-row > span:nth-child(2) { flex:1; }
.org-tip-row .org-dot { width:8px; height:8px; border-radius:2px; }
.org-chart-labels { grid-column:2; display:flex; gap:clamp(8px,3vw,40px); padding:0 clamp(0px,1.5vw,24px); }
.org-chart-labels > span { flex:1 1 0; min-width:0; color:var(--text); font-size:13px; line-height:18px; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.org-chart-labels > span.is-selected { color:var(--strong); font-weight:600; }
.org-label-short { display:none; }

/* People table: cost first, credits below. */
.org-people-header { padding:16px 20px; }
.org-people-tools { display:flex; flex-wrap:wrap; align-items:center; gap:12px; min-width:0; }
.org-local-filter { display:inline-flex; align-items:center; gap:8px; min-width:0; color:var(--text); font-size:14px; line-height:20px; }
.org-local-filter[hidden] { display:none; }
.org-local-filter-label { white-space:nowrap; }
.org-people-tools select { height:40px; max-width:100%; padding:0 12px; border:1px solid var(--field-border); border-radius:8px; color:var(--strong); background:var(--surface); font-size:15px; font-weight:500; }
.org-search { position:relative; display:flex; align-items:center; width:320px; max-width:100%; color:var(--text); }
.org-search svg { position:absolute; left:12px; flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
/* The input draws its own 3:1 border and the one focus ring; the icon sits inside its left padding. */
.org-people .org-search input { flex:1; width:100%; min-width:0; height:40px; min-height:40px; padding:0 12px 0 38px; border:1px solid var(--field-border); border-radius:8px; color:var(--strong); background:var(--surface); font:inherit; font-size:15px; }
.org-table-scroll { position:relative; width:100%; max-width:100%; overflow-x:auto; border-top:1px solid var(--border); }
.org-people-table { min-width:680px; table-layout:fixed; }
.org-people-table th, .org-people-table td { padding:6px 16px; }
.org-people-table th:first-child, .org-people-table td:first-child { padding-left:24px; }
.org-people-table .org-person-col { width:32%; }
.org-people-table .org-chevron-cell { width:48px; padding-right:20px; color:var(--text); }
.org-people-table td.org-chevron-cell svg { display:block; width:18px; height:18px; margin-left:auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.org-person-row { cursor:pointer; }
.org-person-row:hover { background:var(--bg); }
.org-person-button { display:flex; align-items:center; gap:12px; width:100%; min-width:0; min-height:44px; padding:0; border:0; color:var(--strong); background:transparent; font:inherit; text-align:left; cursor:pointer; }
.org-person-names { display:grid; min-width:0; }
.org-person-name { overflow:hidden; font-weight:600; white-space:nowrap; text-overflow:ellipsis; }
.org-person-sub { display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; color:var(--text); font-size:14px; line-height:20px; white-space:nowrap; }
.org-person-sub > span:first-child:not(.org-unit-tag) { overflow:hidden; text-overflow:ellipsis; }
/* The billing unit is its own small label next to the department, never joined with a separator. */
.org-unit-tag { flex:none; padding:0 6px; border:1px solid var(--border-strong); border-radius:4px; color:var(--strong); font-size:12px; font-weight:600; line-height:18px; }
.org-avatar { display:inline-flex; flex:none; align-items:center; justify-content:center; width:32px; height:32px; border-radius:100%; color:var(--strong); background:var(--surface-muted); font-size:12px; font-weight:600; line-height:1; }
.org-avatar.is-large { width:56px; height:56px; font-size:18px; }
.org-money > span, .org-total-cell > * { display:block; }
.org-money-cost { font-size:15px; font-weight:600; line-height:22px; }
.org-money-credits { color:var(--text); font-size:13px; line-height:18px; }
.org-dash { color:var(--text); }
.org-total-cell strong { font-weight:600; }
.org-people-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 16px; padding:14px 24px; color:var(--text); font-size:14px; line-height:20px; }
.org-people-footer p { flex:1 1 320px; margin:0; }
.org-pager { display:flex; flex-wrap:wrap; align-items:center; gap:12px; font-variant-numeric:tabular-nums; }
.org-pager .secondary-button { min-height:36px; font-size:14px; }

/* Person drawer. */
.org-person-identity { display:flex; align-items:center; gap:16px; min-width:0; }
.org-person-heading { display:grid; gap:2px; min-width:0; }
.org-person-title { margin:0; color:var(--strong); font-size:22px; font-weight:600; line-height:30px; overflow-wrap:anywhere; }
.org-person-subtitle { display:grid; margin:0; color:var(--text); font-size:15px; line-height:22px; overflow-wrap:anywhere; }
.org-person-products { display:grid; border:1px solid var(--border); border-radius:8px; }
/* No overflow clipping: inside the scrolling drawer body a clipped grid item could shrink to nothing.
   The value moves below the name when both do not fit on one line. */
.org-person-product { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; min-height:60px; padding:8px 18px; border-bottom:1px solid var(--border); }
.org-person-product:last-child { border-bottom:0; }
.org-person-product-name { flex:1 1 auto; font-weight:600; }
.org-person-product-value { display:grid; flex:1 1 auto; justify-items:end; min-width:0; margin-left:auto; text-align:right; font-variant-numeric:tabular-nums; }
.org-person-product-value > span { overflow-wrap:anywhere; }
.org-person-facts { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:6px 16px; margin:0; font-size:14px; line-height:20px; }
.org-person-facts dt { color:var(--text); }
.org-person-facts dd { margin:0; color:var(--strong); overflow-wrap:anywhere; }
.org-person-history { display:grid; gap:12px; }
.org-person-history h3 { margin:0; font-size:16px; font-weight:600; line-height:24px; }
.org-person-chart .daily-chart-plot, .org-person-chart .daily-chart-ticks { height:140px; }
.org-person-chart .daily-chart-plot { gap:12px; }

.org-country-control[hidden] { display:none; }

@media (max-width:1280px) {
  .view-actions-group { flex-wrap:wrap; }
  .org-cards, .org-cards[data-count="3"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:660px) {
  .org-cards, .org-cards[data-count="3"], .org-cards[data-count="2"] { grid-template-columns:minmax(0,1fr); }
  .org-chart-card { padding:16px; }
  .org-people-header { padding:16px; }
  .org-search { width:100%; }
  .org-people-tools, .org-people-tools select { width:100%; }
  .org-local-filter { display:flex; width:100%; }
  .org-local-filter select { flex:1 1 auto; min-width:0; width:auto; }
  .org-people-footer { padding:14px 16px; }
  .view-actions-group { justify-content:flex-start; }
  .org-label-long { display:none; }
  .org-label-short { display:inline; }
}
.org-people-tools select { width:auto; min-height:40px; padding:0 12px; }
/* Desktop sorts People with the column headers; phones keep the select (one shared sort state). */
.org-people-tools select.org-sort-select { display:none; }
@media (max-width:660px) { .org-people-tools select.org-sort-select { display:block; width:100%; } }
.org-people-table th .sort-button { min-height:40px; }

/* Product details source switch styled as tabs (46 px, 3 px green underline). */
#organization-source-view > .organization-source-switch { flex-wrap:wrap; align-items:center; gap:0 24px; margin-bottom:20px; border-bottom:1px solid var(--border); }
#organization-source-view > .organization-source-switch > button { flex:none; max-width:none; min-height:46px; margin-bottom:-1px; padding:0 2px; border:0; border-bottom:3px solid transparent; border-radius:0; color:var(--text); background:transparent; font-size:15px; font-weight:500; }
#organization-source-view > .organization-source-switch > button:hover { color:var(--strong); }
#organization-source-view > .organization-source-switch > button[aria-pressed="true"] { color:var(--strong); border-bottom-color:var(--accent); background:transparent; font-weight:600; }
#organization-source-view > .organization-source-switch > .organization-users-badge { margin:6px 0 6px auto; }

/* Workspace: page links with the current one underlined, then the shared header. */
.org-workspace { display:grid; gap:16px; min-width:0; }
.org-workspace-nav { display:flex; flex-wrap:wrap; gap:0 28px; border-bottom:1px solid var(--border); }
.org-workspace-nav a { display:inline-flex; align-items:center; min-height:44px; margin-bottom:-1px; padding:0 2px; border-bottom:3px solid transparent; color:var(--text); font-size:15px; font-weight:500; text-decoration:none; }
.org-workspace-nav a:hover { color:var(--strong); }
.org-workspace-nav a[aria-current="page"] { border-bottom-color:var(--focus-ring); color:var(--strong); font-weight:600; }
.org-workspace-nav a[hidden] { display:none; }
.org-workspace-header { display:flex; flex-wrap:wrap; align-items:center; gap:12px; min-width:0; }
.org-workspace-header .month-control { min-width:0; max-width:100%; }
.org-workspace-header .month-control select { width:auto; max-width:100%; min-height:40px; }
.org-workspace-header .org-export { margin-left:auto; }
.org-week-reason { margin:0; color:var(--text); font-size:14px; line-height:20px; }
/* The country applies to Overview; Manager reports keep their own report period. */
.org-workspace:not([data-tab="tab-admin"]) :is(#org-country-control, #org-export) { display:none; }
.org-workspace[data-tab="tab-manager-reports"] #org-period-control { display:none; }

/* Product details sit directly under the chart and show the parts for the selected product. */
.org-details-card { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; padding:20px 24px 22px; }
.org-details-summary { display:grid; gap:12px; }
.org-details-summary:empty { display:none; }
.org-details-block { display:grid; gap:8px; }
.org-details-block h3 { margin:0; font-size:16px; font-weight:600; line-height:24px; }
.org-details-note { margin:0; color:var(--text); font-size:14px; line-height:20px; }
.org-week-list { display:grid; grid-template-columns:minmax(0,max-content) minmax(0,1fr); gap:8px 24px; margin:0; font-size:14px; line-height:20px; font-variant-numeric:tabular-nums; }
.org-week-list dt { display:inline-flex; align-items:center; gap:8px; color:var(--strong); font-weight:600; }
.org-week-list dd { display:flex; flex-wrap:wrap; gap:4px 12px; margin:0; color:var(--text); }
.org-week-list dd strong { color:var(--strong); }
/* 0.4.191: what only one product has (Studio allocation, GitHub insights) sits in its own card after People. */
.org-breakdown-card { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; padding:20px 24px 22px; }
.org-breakdown-card[hidden], .org-details-card[hidden] { display:none; }
.org-details-body { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; min-width:0; }
.org-details-body:empty { display:none; }
#org-product-breakdown .org-details-body > * { margin:0; }
.org-studio-insights { margin:0; }
.org-studio-insights[hidden] { display:none; }
.org-insights-link { grid-column:1 / -1; justify-self:start; display:inline-flex; align-items:center; min-height:44px; color:var(--accent-text); font-size:15px; font-weight:600; }
/* The old Cowork page parts, the forecast cards and the per-day charts stay out: the details card above draws them. */
#org-product-breakdown :is(#org-summary, .organization-history, .organization-forecasts, #org-studio-projection, #cowork-users-section) { display:none; }
#org-product-breakdown:not([data-product="studio"]) #organization-source-users { display:none; }
/* The cards and People already say how many people and which days; the coverage line stays out of sight. */
#org-product-breakdown .organization-coverage-summary { display:none; }
#org-product-breakdown:is([data-product="all"], [data-product="cowork"]) #organization-source-view { display:none; }

/* "Show numbers": the chart as a table with the same values. */
.org-chart-numbers > summary { display:inline-flex; align-items:center; min-height:40px; color:var(--accent-text); font-size:14px; font-weight:600; cursor:pointer; }
.org-chart-numbers[open] > summary { margin-bottom:8px; }
.org-numbers-table { min-width:520px; }
.org-numbers-table th, .org-numbers-table td { padding:6px 16px; }
.org-numbers-table tbody th { font-weight:500; text-align:left; }

/* Next step: the page's last part, a link to the page that usually follows. */
.org-next-step { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; padding:16px 20px; border:1px solid var(--border); border-radius:12px; color:var(--strong); background:var(--surface); }
.org-next-step[hidden] { display:none; }
.org-next-step p { margin:0; color:var(--text); font-size:15px; line-height:22px; }
.org-next-step a { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--accent-text); font-size:15px; font-weight:600; text-decoration:none; }
.org-next-step a:hover { text-decoration:underline; }
.org-next-step a svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width:660px) {
  .org-workspace-nav { gap:0 18px; }
  .org-workspace-header .org-export { margin-left:0; }
  .org-details-card, .org-breakdown-card { padding:16px; }
  .org-week-list { grid-template-columns:minmax(0,1fr); gap:2px; }
  .org-week-list dd { margin-bottom:8px; }
}

/* Cost calculator (0.4.159): icon button in the workspace header and its modal dialog. */
.org-cost-calculator, .cost-calculator-open { width:44px; height:44px; border:1px solid var(--field-border); background:var(--surface); }
.org-cost-calculator[hidden], .cost-calculator-open[hidden] { display:none; }
.org-cost-calculator[aria-disabled="true"], .cost-calculator-open[aria-disabled="true"] { opacity:.55; cursor:not-allowed; }
.cost-calculator-reason { color:var(--text); font-size:13px; line-height:18px; }
.cost-calculator-reason[hidden] { display:none; }
.cost-calculator-layer { display:flex; align-items:center; justify-content:center; padding:16px; }
.cost-calculator-dialog { position:relative; display:flex; flex-direction:column; width:min(640px,100%); max-height:calc(100vh - 32px); overflow:auto; border-radius:12px; color:var(--strong); background:var(--surface); box-shadow:var(--shadow-overlay); }
.cost-calculator-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:20px 20px 0; }
.cost-calculator-header h2 { margin:0; font-size:20px; line-height:28px; }
.cost-calculator-question { margin:2px 0 0; color:var(--text); font-size:15px; }
.cost-calculator-close { width:44px; height:44px; }
.cost-calculator-body { display:grid; gap:16px; padding:12px 20px 20px; }
.cost-calculator-body p { margin:0; }
.cost-calculator-inputs { display:grid; align-content:start; gap:16px; min-width:0; }
.cost-calculator-people { display:grid; gap:6px; }
.cost-calculator-people label, .cost-calculator-levels h3 { margin:0; color:var(--strong); font-size:15px; font-weight:600; }
.cost-calculator-stepper { display:flex; align-items:stretch; gap:8px; max-width:280px; }
.cost-calculator-stepper input { min-height:44px; text-align:center; border:1px solid var(--field-border); }
.cost-calculator-step { min-width:44px; min-height:44px; padding:0 12px; font-size:20px; }
.cost-calculator-step:disabled { opacity:.55; cursor:not-allowed; }
.cost-calculator-levels { display:grid; gap:8px; }
.cost-calculator-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.cost-calculator-option { display:flex; gap:10px; align-items:flex-start; min-height:44px; padding:12px; border:1px solid var(--field-border); border-radius:8px; cursor:pointer; }
.cost-calculator-option:has(input:checked) { border-width:2px; padding:11px; border-color:var(--button-primary); background:var(--tint, var(--surface-muted)); }
.cost-calculator-option input { width:20px; height:20px; margin:2px 0 0; accent-color:var(--button-primary); }
.cost-calculator-option-text { display:grid; gap:2px; font-size:14px; }
.cost-calculator-option-credits { color:var(--strong); font-weight:600; }
.cost-calculator-results { display:grid; gap:12px; padding-top:12px; border-top:1px solid var(--border); }
.cost-calculator-extra { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; }
.cost-calculator-label { color:var(--text); font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.02em; }
.cost-calculator-amount { color:var(--strong); font-size:28px; line-height:34px; }
.cost-calculator-chart { margin:0; }
.cost-calculator-bars { display:block; width:100%; max-width:360px; height:auto; }
.cost-calculator-bar { fill:var(--chart-studio); }
.cost-calculator-bars .is-selected .cost-calculator-bar { fill:var(--chart-cowork); }
.cost-calculator-bar-value, .cost-calculator-bar-name { fill:var(--strong); font-size:12px; }
.cost-calculator-bars .is-selected .cost-calculator-bar-name { font-weight:700; }
.cost-calculator-totals { display:grid; grid-template-columns:1fr auto; gap:4px 12px; margin:0; font-size:15px; }
.cost-calculator-totals dd { margin:0; font-weight:600; text-align:right; }
.cost-calculator-explanation { color:var(--strong); font-size:14px; line-height:20px; }
.cost-calculator-suggestion { display:grid; gap:4px; padding:12px; border:1px solid var(--border); border-radius:8px; background:var(--surface-muted); font-size:14px; }
.cost-calculator-suggestion[hidden] { display:none; }
@media (min-width:900px) {
  .cost-calculator-dialog { width:min(880px,100%); }
  .cost-calculator-body { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px 24px; }
  .cost-calculator-body > :is(p, .cost-calculator-suggestion) { grid-column:1 / -1; }
  .cost-calculator-options { grid-template-columns:minmax(0,1fr); }
  .cost-calculator-results { align-content:start; min-width:0; padding:16px; border:1px solid var(--border); border-radius:8px; background:var(--surface-muted); }
  .cost-calculator-extra { display:grid; gap:4px; }
  .cost-calculator-amount { font-size:36px; line-height:44px; }
}
.cost-calculator-link { display:inline-flex; align-items:center; width:max-content; min-height:44px; font-weight:600; }
.cost-calculator-footnote { font-size:13px; line-height:18px; }
@media (max-width:660px) {
  .cost-calculator-layer { align-items:stretch; padding:0; }
  .cost-calculator-dialog { width:100%; max-height:100vh; border-radius:0; }
  .cost-calculator-options { grid-template-columns:minmax(0,1fr); }
}

/* 0.4.161: week steps, Cost/Credits toggle and the combined month-end forecast. */
.org-period-step { width:44px; height:44px; border:1px solid var(--field-border); background:var(--surface); }
.org-period-step:disabled { color:var(--muted); cursor:not-allowed; opacity:.6; }
.org-period-step[hidden] { display:none; }
.org-metric-toggle { flex:none; }
.org-metric-toggle .segmented-option { min-height:44px; height:44px; }
/* The month so far and its forecast (0.4.191): the My usage meter, one bar per product on one scale. */
.org-forecast { --tone:var(--muted); display:grid; grid-template-columns:minmax(0,1fr); gap:14px; min-width:0; margin:0; }
.org-forecast.is-cowork, .org-meter.is-cowork { --tone:var(--chart-cowork); }
.org-forecast.is-studio, .org-meter.is-studio { --tone:var(--chart-studio); }
.org-forecast.is-github, .org-meter.is-github { --tone:var(--chart-github); }
.org-meter { display:grid; gap:6px; min-width:0; }
.org-meter-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:2px 16px; font-size:14px; line-height:20px; }
.org-meter-name { color:var(--strong); font-weight:600; }
.org-meter-figure { color:var(--text); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.org-forecast .limit-meter-used { background:var(--tone); }
.org-forecast .limit-meter-forecast { background:repeating-linear-gradient(135deg, var(--tone) 0 2px, transparent 2px 6px); }
.org-forecast .limit-swatch.is-used { background:var(--tone); }
.org-forecast .limit-swatch.is-forecast { border-color:var(--tone); background:repeating-linear-gradient(135deg, var(--tone) 0 2px, transparent 2px 5px); }
/* Show only weekdays (0.4.194): right of the forecast legend, under the last meter. */
.org-meter-legend { align-items:center; }
.org-weekdays-switch { margin-left:auto; font-size:14px; }
@media (max-width:520px) {
  .org-chart-card .org-card-header { flex-wrap:wrap; }
}
/* 44px targets in the shared workspace header (0.4.161). */
.org-workspace-header .segmented-option { min-height:44px; height:44px; }
.org-workspace-header .month-control select, .org-workspace-header select, .org-workspace-header .org-export { min-height:44px; }

/* Reserve the product and chart geometry while their independent sources load. */
@media (min-width:1061px) {
  .org-cards { min-height:234px; }
  .org-product-card { min-height:234px; }
  .org-chart-card { min-height:448px; }
}

/* 0.4.170: Manager reports has its own Monthly/Weekly kind and period; the global Month/Week switch and the cost calculator do nothing there; the month still sets where Monthly starts. */
.org-workspace[data-tab="tab-manager-reports"] :is(#org-period-kind, #org-week-reason, #org-cost-calculator) { display:none; }

/* One People list (0.4.191): the GitHub login next to the person, and Copilot Studio's allocation as summary cards. */
.org-person-login { flex:none; color:var(--muted); }
.org-person-login code { font-family:var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size:12px; }
.studio-allocation-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:12px 0; padding:0; background:none; border:0; }
.studio-allocation-cards .ppac-metric { padding:16px 18px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
@media(max-width:900px){ .studio-allocation-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:420px){ .studio-allocation-cards { grid-template-columns:minmax(0,1fr); } }
/* Months shown on the cost chart (0.4.191). */
.org-chart-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; flex:0 1 auto; min-width:0; max-width:100%; }
.org-range-toggle { flex:none; }
.org-range-toggle .segmented-option { min-height:44px; height:44px; min-width:44px; }
@media(max-width:540px){ .org-chart-controls { flex-basis:100%; } .org-range-toggle { display:flex; flex:1 1 100%; min-width:0; } .org-range-toggle .segmented-option { flex:1 1 0; min-width:0; padding-inline:6px; white-space:nowrap; } }
/* 0.4.191: on a phone People shows the selected product's column (All products: the Estimate); the rest is in the person drawer. */
@media (max-width:640px) {
  .org-people-table [data-column]:not(.is-phone-column) { display:none; }
  .org-people-table { min-width:0; }
  .org-people-table .org-person-col { width:auto; }
  .org-people-table [data-column].is-phone-column { width:40%; }
}
