/* Local variant; the shared workspace owns the tokens. */
.plan-preview-bar { padding: 14px 18px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-strong); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plan-preview-bar > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.plan-preview-bar span { color: var(--muted); font-size: 14px; }
.plan-preview-bar nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.plan-preview-bar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-dark); text-underline-offset: 3px; }
.plan-preview-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.plan-preview-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 0; display: flex; flex-direction: column; }
.plan-preview-card-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.plan-preview-card h2 { margin: 0; font-size: 18px; }
.plan-preview-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.plan-preview-price strong { font-size: 26px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.plan-preview-price span { color: var(--muted); font-size: 14px; }
.plan-preview-description { margin: 0 0 18px; color: var(--muted); }
.plan-preview-facts { margin: 0; }
.plan-preview-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.plan-preview-facts dt { color: var(--muted); }
.plan-preview-facts dt { font-size: 14px; }
.plan-preview-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-preview-card ul { padding-left: 22px; margin: 16px 0; }
.plan-preview-card li + li { margin-top: 6px; }
.plan-preview-card-links { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.plan-preview-card-links a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; white-space: normal; }
.plan-preview-note { font-size: 14px; color: var(--muted); line-height: 1.8; }
.plan-preview-pricing > h2,.plan-preview-comparison > h2 { font-size: 20px; margin-top: 0; }
.plan-preview-staff { display: flex; flex-direction: column; max-width: 300px; gap: 8px; margin-top: 22px; }
.plan-preview-staff-input { display: flex; align-items: center; gap: 10px; }
.plan-preview-staff-input input { width: 140px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
.plan-preview-error { min-height: 26px; color: var(--ink); font-size: 14px; margin: 8px 0; }
.plan-preview-quote { max-width: 500px; }
.plan-preview-quote > div:last-child dd { font-size: 24px; }
.plan-preview-bar a:focus-visible,.plan-preview-card a:focus-visible,.plan-preview-staff input:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.plan-preview-card-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media(min-width:1600px) { .plan-preview-cards { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:1000px) { .plan-preview-cards { grid-template-columns: 1fr; } }
@media(max-width:760px) { .plan-preview-bar { padding: 12px; margin-bottom: 16px; } .plan-preview-bar nav { gap: 2px 14px; } .plan-preview-card { padding: 18px; } }

.plan-preview-bar button { min-height:44px; color:var(--brand-dark); text-decoration:underline; text-underline-offset:3px; }
.plan-preview-bar button:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }

.plan-preview-card-links a.primary-button { color:var(--panel); }

#planWorkflowsView.view:not(.active) { display:none; }
#planWorkflowsView.view.active.plan-workflow-preview { display:grid; }

/* A short action label stays whole in every navigation surface. */
[data-local-preview-plan] .nav-item[data-nav-id="planWorkflowsView"] > span,
[data-local-preview-plan] .mobile-nav-entry[data-nav-id="planWorkflowsView"] > span { white-space:nowrap; overflow-wrap:normal; }
#localProfitAnalytics { min-width:0; margin-bottom:24px; }

.plan-preview-quick-compare { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0 24px; }
.plan-preview-quick-compare > button { min-width:0; min-height:76px; padding:12px 16px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); text-align:left; display:grid; gap:6px; }
.plan-preview-quick-compare > button { font-size: 14px; }
.plan-preview-quick-compare strong { font-size: 16px; }
.plan-preview-quick-compare > button > span { display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.plan-preview-quick-compare small { color:var(--muted); font-size:14px; line-height:1.6; }
.plan-preview-quick-compare button:hover { background:var(--panel-strong); }
.plan-preview-quick-compare button:focus-visible,.plan-preview-card button:focus-visible,.plan-feature-hint a:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
.plan-preview-inherited { margin:20px 0 0; font-weight:700; font-size:14px; }
.plan-preview-card ul { margin-top:8px; }
.plan-preview-card h2 { scroll-margin-top:88px; }
.plan-preview-card[data-comparison-focus] { outline:2px solid var(--brand); outline-offset:2px; }
.plan-preview-card-links button { min-height:44px; white-space:normal; }
.plan-preview-pricing > summary { min-height:48px; cursor:pointer; font-weight:700; }
.plan-preview-calculator { padding-top:16px; }
.plan-preview-quote-plan { display:grid; gap:8px; max-width:300px; }
.plan-preview-quote-plan select { min-height:48px; }
.plan-preview-calculator h3 { scroll-margin-top:88px; }
.plan-feature-hint { display:grid; grid-template-columns:32px minmax(0,1fr) 44px; align-items:start; gap:12px; border:1px solid var(--line); border-radius:8px; background:var(--panel-strong); padding:12px; margin:12px 0 20px; }
.plan-feature-hint > svg { width:32px; height:32px; margin-top:6px; color:var(--brand-dark); }
.plan-feature-hint strong { font-size:15px; line-height:1.6; }
.plan-feature-hint p { margin:4px 0; color:var(--muted); font-size:14px; line-height:1.7; }
.plan-feature-hint a { display:inline-flex; align-items:center; min-height:44px; color:var(--brand-dark); font-size:14px; text-underline-offset:3px; }
@media(min-width:1280px) { .plan-preview-cards,.plan-preview-quick-compare { grid-template-columns:repeat(4,minmax(0,1fr)); } .plan-preview-card { padding:18px; } }
@media(max-width:760px) { .plan-preview-quick-compare { gap:8px; } .plan-preview-quick-compare > button { padding:12px; } .plan-feature-hint { grid-template-columns:minmax(0,1fr) 44px; gap:8px; } .plan-feature-hint > svg { display:none; } }
@media(max-width:760px) { .plan-preview-quick-compare > button > span { flex-direction:column; align-items:flex-start; gap:4px; } }
@media(forced-colors:active) { .plan-preview-card[data-comparison-focus] { outline-color:Highlight; } .plan-feature-hint { border-color:CanvasText; } }

/* A read-only comparison keeps column relationships visible on every screen. */
.plan-preview-table-legend { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 20px; margin:18px 0 10px; color:var(--muted); font-size:14px; line-height:1.7; }
.plan-preview-scroll-hint { display:none; }
.plan-preview-comparison { min-width:0; }
.plan-preview-table-region { min-width:0; max-width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:8px; background:var(--panel); scrollbar-gutter:auto; }
.plan-preview-table-region:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
.plan-preview-table { width:100%; min-width:880px; margin:0; border-collapse:separate; border-spacing:0; table-layout:fixed; font-size:14px; }
.plan-preview-table th,.plan-preview-table td { padding:12px 16px; line-height:1.65; text-align:center; vertical-align:middle; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.plan-preview-table th:first-child { position:sticky; left:0; z-index:1; width:208px; background:var(--panel); text-align:left; border-right:1px solid var(--line); font-weight:600; }
.plan-preview-table thead th { background:var(--panel-strong); vertical-align:top; }
.plan-preview-table thead th:first-child { z-index:2; background:var(--panel-strong); }
.plan-preview-table tbody tr:last-child > * { border-bottom:0; }
.plan-preview-table th[data-comparison-selected],.plan-preview-table td[data-comparison-selected] { background:var(--panel-strong); box-shadow:inset 1px 0 var(--line),inset -1px 0 var(--line); }
.plan-preview-table thead button { display:block; width:100%; min-height:44px; padding:0 4px; border:0; background:transparent; color:var(--ink); font-size:18px; font-weight:700; cursor:pointer; }
.plan-preview-table thead button:hover { color:var(--brand-dark); text-decoration:underline; text-underline-offset:4px; }
.plan-preview-table thead button:focus-visible { outline:3px solid var(--brand); outline-offset:2px; }
.plan-preview-table thead button:active { background:var(--panel); }
.plan-preview-table-selected { display:block; margin-top:2px; color:var(--muted); font-size:14px; font-weight:400; }
.plan-preview-availability { font-size:18px; line-height:1.4; }
.plan-preview-table-legend[data-has-overflow] .plan-preview-scroll-hint { display:inline; }
/* Live contract comparison has no preview observer; keep its existing hint
   visible at the widths where the full four-column table needs scrolling. */
@media(max-width:1200px) { [data-live-plan-comparison] .plan-preview-scroll-hint { display:inline; } }
@media(max-width:760px) {
  .plan-preview-table { min-width:612px; }
  .plan-preview-table th,.plan-preview-table td { padding:12px; }
  .plan-preview-table th:first-child { width:100px; }
  .plan-preview-table thead button { font-size:16px; }
}
@media(forced-colors:active) {
  .plan-preview-table th[data-comparison-selected],.plan-preview-table td[data-comparison-selected] { border-left:1px solid CanvasText; border-right:1px solid CanvasText; }
  .plan-preview-table-region:focus-visible,.plan-preview-table thead button:focus-visible { outline-color:Highlight; }
}

.plan-comparison-word { display:inline-block; white-space:nowrap; }
.plan-comparison-feature-note { display:block; margin-top:4px; color:var(--muted); font-size:12px; font-weight:400; line-height:1.6; }
.plan-project-sales-overview { min-width:0; }
.plan-project-sales-overview h3,.plan-sales-preview-copy h3 { margin:0; font-size:18px; line-height:1.6; }
.plan-project-sales-table-region { max-width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:8px; background:var(--panel); scrollbar-gutter:auto; }
.plan-project-sales-table-region:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
.plan-project-sales-table { width:100%; min-width:640px; margin:0; border-collapse:separate; border-spacing:0; font-size:16px; }
.plan-project-sales-table th,.plan-project-sales-table td { padding:12px 16px; border-bottom:1px solid var(--line); text-align:right; vertical-align:top; font-variant-numeric:tabular-nums; }
.plan-project-sales-table th:first-child { width:40%; min-width:200px; text-align:left; }
.plan-project-sales-table thead th { background:var(--panel-strong); font-size:14px; line-height:1.6; }
.plan-project-sales-table tbody tr:last-child > * { border-bottom:0; }
.plan-project-sales-table td { white-space:nowrap; }
.plan-project-sales-table .open-project { min-height:44px; padding:0; text-align:left; overflow-wrap:anywhere; line-height:1.6; }
.plan-project-sales-table .open-project:hover { text-decoration:underline; text-underline-offset:3px; }
.plan-project-sales-table .open-project:focus-visible { outline:3px solid var(--brand); outline-offset:2px; }
.plan-project-sales-customer,.plan-project-sales-count { display:block; color:var(--muted); font-size:14px; font-weight:400; line-height:1.6; overflow-wrap:anywhere; }
.plan-project-sales-scroll-hint { display:none; margin:12px 0 8px; color:var(--muted); font-size:14px; }
.plan-sales-graph-preview { overflow:hidden; min-width:0; margin-top:20px; border:1px solid var(--line); border-radius:8px; background:var(--panel); }
.plan-sales-preview-visual { height:136px; padding:16px 20px 0; overflow:hidden; filter:blur(5px); opacity:.45; pointer-events:none; user-select:none; }
.plan-sales-preview-visual svg { display:block; width:100%; height:100%; }
.plan-sales-preview-grid { stroke:var(--line); stroke-width:1; fill:none; }
.plan-sales-preview-bars { fill:var(--brand); }
.plan-sales-preview-copy { padding:16px 20px 20px; }
.plan-sales-preview-copy p { margin:6px 0 12px; color:var(--muted); line-height:1.7; }
.plan-sales-preview-copy .secondary-button { min-height:44px; }
.plan-sales-preview-copy button:hover { text-decoration:underline; text-underline-offset:3px; }
.plan-sales-preview-copy button:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
@media(max-width:1000px) { .plan-project-sales-scroll-hint { display:block; } }
@media(max-width:760px) {
 .plan-project-sales-table th,.plan-project-sales-table td { padding:12px; }
 .plan-sales-preview-copy { padding:16px; }
 .plan-sales-preview-visual { padding-inline:16px; }
}
@media(forced-colors:active) {
 .plan-sales-preview-bars { fill:CanvasText; }
 .plan-sales-preview-grid { stroke:CanvasText; }
 .plan-project-sales-table-region:focus-visible,.plan-project-sales-table .open-project:focus-visible,.plan-sales-preview-copy button:focus-visible { outline-color:Highlight; }
}

/* Keep all three basic amounts visible in each compact mobile project row. */
@media(max-width:760px) {
 .plan-project-sales-table { display:block; min-width:0; width:100%; }
 .plan-project-sales-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .plan-project-sales-table tbody { display:block; }
 .plan-project-sales-table tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:12px; border-bottom:1px solid var(--line); }
 .plan-project-sales-table tbody tr:last-child { border-bottom:0; }
 .plan-project-sales-table tbody th:first-child { grid-column:1 / -1; width:auto; min-width:0; padding:0; border:0; }
 .plan-project-sales-table tbody td { padding:0; border:0; text-align:left; white-space:normal; overflow-wrap:anywhere; line-height:1.65; }
 .plan-project-sales-table tbody td::before { content:attr(data-label); display:block; margin-bottom:3px; color:var(--muted); font-size:14px; line-height:1.6; }
 .plan-project-sales-table tbody tr.plan-project-sales-wide-amounts { grid-template-columns:minmax(0,1fr); }
 .plan-project-sales-table .plan-project-sales-wide-amounts td { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; }
 .plan-project-sales-table .plan-project-sales-wide-amounts td::before { margin:0; }
 .plan-project-sales-scroll-hint { display:none; }
}
