/* Actual Rizqo screen structure, reduced to a self-contained sample-data demo.
   The app's source components are mapped in preview/app-faithful-motion/reference/source-map.md. */
.ha-atelier { --ha-purple-tint: color-mix(in srgb, var(--purple) 12%, var(--paper)); --ha-blue-tint: color-mix(in srgb, var(--blue) 7%, var(--paper)); --ha-ease: cubic-bezier(.22,.8,.22,1); margin:54px auto 0; width:100%; text-align:left; color:var(--ink); font-family:Geist,Arial,sans-serif; line-height:1.45; container-type:inline-size; }
.ha-atelier * { box-sizing:border-box; }
.ha-atelier svg { display:inline-block; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; vertical-align:middle; }
.ha-atelier b,.ha-atelier strong { font-weight:500; }
.ha-scenario-heading { display:flex; justify-content:space-between; align-items:center; margin:0 3px 15px; color:var(--text); font-size:12px; }
.ha-scenario-heading > span:first-child { display:flex; align-items:center; gap:8px; color:var(--ink); font-weight:500; }
.ha-scenario-heading i { width:7px; height:7px; border-radius:50%; background:var(--blue); }
.ha-app { display:flex; height:700px; position:relative; overflow:hidden; border:1px solid color-mix(in srgb,var(--line) 85%,var(--ink)); border-radius:13px; background:var(--surface); box-shadow:0 2px 4px color-mix(in srgb,var(--ink) 3%,transparent),0 22px 60px -34px color-mix(in srgb,var(--ink) 28%,transparent); font-size:11px; }
.ha-sidebar { width:181px; flex-shrink:0; padding:0 10px; border-right:1px solid var(--line); display:flex; flex-direction:column; }
.ha-logo { height:57px; display:flex; align-items:center; gap:8px; padding:0 12px; }
.ha-logo img { width:23px; height:23px; object-fit:contain; }
.ha-logo b { font-size:21px; letter-spacing:-.8px; }
.ha-nav { display:flex; flex-direction:column; gap:2px; }
.ha-nav > small { font-size:8px; font-weight:500; letter-spacing:.09em; color:var(--text); padding:13px 11px 5px; }
.ha-nav-item { display:flex; align-items:center; height:30px; gap:10px; padding:0 11px; border:1px solid transparent; border-radius:6px; font-size:10.5px; color:var(--text); white-space:nowrap; }
.ha-nav-item svg { width:14px; height:14px; }
.ha-atelier[data-ha-view="project"] .ha-nav-folder,.ha-atelier[data-ha-view="invoices"] .ha-nav-invoice,.ha-atelier[data-ha-view="invoice"] .ha-nav-invoice { color:var(--ink); border-color:var(--line); background:var(--paper); box-shadow:0 1px 2px color-mix(in srgb,var(--ink) 3%,transparent); }
.ha-sidebar-bottom { margin-top:auto; padding:10px 0; border-top:1px solid var(--line); }
.ha-app-main { flex:1; min-width:0; position:relative; }
.ha-topbar { display:flex; align-items:center; gap:18px; height:57px; padding:0 25px; }
.ha-workspace-switch { display:flex; align-items:center; justify-content:space-between; gap:30px; background:var(--paper); border:1px solid var(--line); border-radius:6px; padding:7px 10px; font-size:10.5px; }
.ha-workspace-switch svg { width:12px; }
.ha-global-search { display:flex; align-items:center; gap:8px; margin-left:auto; width:238px; padding:6px 9px; background:var(--paper); border:1px solid var(--line); color:var(--text); border-radius:6px; font-size:10px; }
.ha-global-search svg { width:13px; height:13px; }
.ha-global-search kbd { margin-left:auto; border:1px solid var(--line); border-radius:3px; padding:1px 4px; font:9px Geist,Arial,sans-serif; }
.ha-top-actions { display:flex; align-items:center; gap:13px; color:var(--text); font-size:10px; }
.ha-top-actions > svg { width:14px; height:14px; }
.ha-top-actions small { display:block; font-size:8px; }
.ha-avatar { display:inline-grid; width:24px; height:24px; flex-shrink:0; place-items:center; background:color-mix(in srgb,var(--ink) 6%,var(--paper)); border:1px solid var(--line); border-radius:50%; font-size:8px; font-style:normal; color:var(--text); }
.ha-scroll { position:absolute; top:57px; left:0; right:0; bottom:0; overflow:hidden; scroll-behavior:auto; scrollbar-width:none; }
.ha-page { padding:17px 25px 26px; display:none; opacity:var(--ha-reset,1); }
.ha-atelier[data-ha-view="project"] .ha-project-page,.ha-atelier[data-ha-view="invoices"] .ha-invoices-page,.ha-atelier[data-ha-view="invoice"] .ha-invoice-page { display:block; }
.ha-breadcrumb { display:flex; align-items:center; gap:9px; color:var(--text); font-size:10px; margin-bottom:20px; }
.ha-breadcrumb > span { color:var(--text); }
.ha-page-heading { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; margin-bottom:20px; }
.ha-page-heading h3 { display:flex; align-items:center; font-size:26px; line-height:1.2; font-weight:500; letter-spacing:-1.15px; }
.ha-page-heading h3 > span { color:var(--text); }
.ha-page-heading h3 .ha-status-pill { margin-left:12px; }
.ha-status-pill { display:inline-flex; align-items:center; justify-content:center; font-style:normal; padding:2px 7px; border-radius:5px; color:var(--ink); background:var(--ha-blue-tint); border:1px solid color-mix(in srgb,var(--blue) 15%,var(--paper)); font-size:9px; letter-spacing:0; font-weight:500; line-height:1.6; }
.ha-page-heading p { display:flex; flex-wrap:wrap; align-items:center; gap:8px; color:var(--text); font-size:10px; margin-top:9px; }
.ha-page-heading p > b { padding:2px 5px; background:color-mix(in srgb,var(--ink) 5%,var(--paper)); border-radius:4px; color:var(--ink); font-size:9px; }
.ha-page-heading p > strong { color:var(--ink); }
.ha-page-actions { display:flex; gap:7px; }
.ha-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:7px 10px; border:1px solid var(--line); border-radius:6px; background:var(--paper); font-size:10px; font-weight:500; white-space:nowrap; line-height:1.3; }
.ha-button svg { width:12px; height:12px; }
.ha-dark { background:var(--ink); border-color:var(--ink); color:var(--paper); }
.ha-progress-card { border:1px solid var(--line); border-radius:10px; background:var(--paper); padding:19px; box-shadow:0 1px 2px color-mix(in srgb,var(--ink) 2%,transparent); }
.ha-metrics { display:grid; grid-template-columns:1fr 1fr 1fr; gap:15px; margin-bottom:22px; }
.ha-metrics > div > span { display:block; color:var(--text); font-size:10px; }
.ha-metrics strong { display:block; font-size:26px; letter-spacing:-.9px; line-height:1.3; margin:4px 0 3px; font-variant-numeric:tabular-nums; }
.ha-metrics small { display:block; color:var(--text); font-size:9px; }
.ha-segmented-progress { display:flex; gap:4px; }
.ha-segmented-progress > div { min-width:0; }
.ha-segmented-progress > div > span { display:block; color:var(--text); font-size:9px; padding-bottom:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ha-segmented-progress i { display:block; height:7px; background:color-mix(in srgb,var(--ink) 5%,var(--paper)); border-radius:3px; overflow:hidden; position:relative; }
.ha-segmented-progress i > * { display:block; position:absolute; top:0; left:0; height:100%; background:var(--purple); transition:width .65s var(--ha-ease); }
.ha-segmented-progress i > em { background:color-mix(in srgb,var(--purple) 35%,var(--paper)); }
.ha-progress-legend { display:flex; align-items:center; justify-content:space-between; margin-top:13px; font-size:9px; color:var(--text); gap:10px; }
.ha-progress-legend > span:last-child { display:flex; align-items:center; gap:5px; white-space:nowrap; font-size:8px; }
.ha-progress-legend i,.ha-progress-legend em { display:inline-block; width:6px; height:6px; background:var(--purple); border-radius:2px; }
.ha-progress-legend em { background:color-mix(in srgb,var(--purple) 35%,var(--paper)); margin-left:5px; }
.ha-tabs { display:flex; align-items:center; gap:2px; overflow:hidden; white-space:nowrap; margin-top:18px; padding:3px; border:1px solid var(--line); border-radius:7px; width:fit-content; max-width:100%; background:color-mix(in srgb,var(--ink) 3%,var(--paper)); color:var(--text); font-size:9px; }
.ha-tabs > span { padding:6px 10px; border:1px solid transparent; border-radius:5px; }
.ha-atelier[data-ha-step="ready"] .ha-phases-tab,.ha-atelier[data-ha-step="edit"] .ha-phases-tab,.ha-atelier[data-ha-step="typed"] .ha-phases-tab,.ha-atelier[data-ha-step="saved"] .ha-phases-tab,.ha-atelier[data-ha-step="time"] .ha-time-tab { background:var(--paper); border-color:var(--line); color:var(--ink); box-shadow:0 1px 2px color-mix(in srgb,var(--ink) 4%,transparent); }
.ha-panel-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:17px 0 11px; font-size:9px; color:var(--text); }
.ha-panel-toolbar > div { display:flex; gap:6px; }
.ha-panel-toolbar strong { display:flex; align-items:center; gap:7px; color:var(--ink); font-size:12px; }
.ha-panel-toolbar strong small { font-size:9px; font-weight:400; color:var(--text); }
.ha-panel-toolbar > strong > svg { width:14px; }
.ha-table-scroll,.ha-time-table { overflow:hidden; border:1px solid var(--line); border-radius:7px; background:var(--paper); scroll-behavior:auto; }
.ha-phase-row { display:grid; grid-template-columns:20px minmax(155px,1.5fr) 59px 78px 84px 91px 82px 56px 65px 50px; align-items:center; min-width:850px; min-height:49px; border-top:1px solid var(--line); font-size:9px; gap:7px; padding:0 9px; }
.ha-phase-row > span { min-width:0; }
.ha-phase-row .ha-cell-value { display:block; white-space:nowrap; }
.ha-phase-row .ha-phase-progress { display:flex; align-items:center; gap:6px; }
.ha-phase-progress > i { display:block; height:5px; width:45px; border-radius:5px; background:var(--line); overflow:hidden; }
.ha-phase-progress > i > b { display:block; height:100%; background:var(--purple); transition:width .5s var(--ha-ease); }
.ha-grip { font-size:16px; color:var(--text); }
.ha-row-actions .ha-cell-value,.ha-row-actions .ha-cell-edit { display:flex; gap:8px; align-items:center; }
.ha-row-actions svg { width:12px; height:12px; }
.ha-row-actions .ha-cell-edit { display:none; }
.ha-table-head { font-size:8px; min-height:33px; border-top:0; color:var(--text); background:color-mix(in srgb,var(--surface) 65%,var(--paper)); }
.ha-cell-edit { display:none; }
.ha-control { display:flex; align-items:center; justify-content:space-between; gap:6px; border:1px solid var(--line); border-radius:5px; background:var(--paper); padding:6px 8px; min-height:29px; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ha-cell-edit .ha-control { font-size:9px; padding:5px; min-height:28px; }
.ha-number-input { border-color:var(--purple); box-shadow:0 0 0 2px var(--ha-purple-tint); }
.ha-number-input > b::after { content:''; display:inline-block; height:10px; border-left:1px solid var(--ink); margin-left:2px; vertical-align:middle; }
.ha-atelier:is([data-ha-step="edit"],[data-ha-step="typed"]) .ha-edited-row { background:color-mix(in srgb,var(--purple) 4%,var(--paper)); }
.ha-atelier:is([data-ha-step="edit"],[data-ha-step="typed"]) .ha-edited-row .ha-cell-value { display:none; }
.ha-atelier:is([data-ha-step="edit"],[data-ha-step="typed"]) .ha-edited-row .ha-cell-edit { display:block; }
.ha-atelier:is([data-ha-step="edit"],[data-ha-step="typed"]) .ha-edited-row .ha-row-actions .ha-cell-edit { display:flex; }
.ha-save { display:grid; place-items:center; width:23px; height:24px; border-radius:4px; background:var(--ink); color:var(--paper); }
.ha-phase-toast { margin-top:9px; font-size:9px; color:var(--text); opacity:0; }
.ha-atelier[data-ha-step="saved"] .ha-phase-toast { opacity:1; }
.ha-time-panel { display:none; }
.ha-atelier[data-ha-step="time"] .ha-phase-panel { display:none; }
.ha-atelier[data-ha-step="time"] .ha-time-panel { display:block; }
.ha-time-filters { display:flex; gap:6px; margin:0 0 12px; }
.ha-time-filters .ha-control { min-width:0; color:var(--text); font-size:9px; }
.ha-time-filters .ha-control:first-child { margin-right:auto; flex:1; justify-content:flex-start; }
.ha-time-filters svg { width:12px; height:12px; }
.ha-time-row { display:grid; grid-template-columns:16px 77px 100px 110px 42px 42px 55px 48px 42px 130px 55px 40px; align-items:center; min-width:957px; gap:8px; min-height:49px; border-top:1px solid var(--line); padding:0 10px; font-size:9px; }
.ha-time-row > span { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.ha-time-row .ha-avatar { width:20px; height:20px; font-size:7px; }
.ha-time-row.ha-table-head { min-height:33px; font-size:8px; border-top:0; }
.ha-time-footer { color:var(--text); margin-top:12px; font-size:10px; }
.ha-invoice-list { border:1px solid var(--line); background:var(--paper); border-radius:8px; overflow:hidden; margin-top:24px; }
.ha-invoice-list > div { display:grid; grid-template-columns:1fr 2fr 1fr 1fr; align-items:center; gap:12px; padding:18px; border-bottom:1px solid var(--line); }
.ha-invoice-list > div:first-child { font-size:9px; color:var(--text); background:var(--surface); padding-block:10px; }
.ha-invoice-list .ha-status-pill { width:fit-content; }
.ha-invoice-page .ha-page-heading { margin-bottom:23px; }
.ha-invoice-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); align-items:start; gap:18px; }
.ha-invoice-left,.ha-invoice-right { display:grid; gap:18px; }
.ha-form-section { padding:17px; border:1px solid var(--line); border-radius:9px; background:var(--paper); }
.ha-form-section h4 { display:flex; align-items:center; justify-content:space-between; margin:0 0 15px; font-weight:500; font-size:12px; letter-spacing:-.15px; }
.ha-form-section h4 > span { font-size:10px; font-weight:400; }
.ha-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ha-field { min-width:0; }
.ha-field > label { display:block; color:var(--text); font-size:9px; margin-bottom:5px; }
.ha-field > label > span { color:var(--orange); }
.ha-field .ha-control { font-size:9px; }
.ha-project-field { grid-column:1/-1; position:relative; z-index:5; }
.ha-project-options { position:absolute; top:calc(100% + 4px); left:0; right:0; display:none; background:var(--paper); border:1px solid var(--line); border-radius:7px; padding:5px; box-shadow:0 8px 25px color-mix(in srgb,var(--ink) 10%,transparent); }
.ha-project-options > span { display:block; padding:9px; }
.ha-project-options > span:first-child { color:var(--text); border-bottom:1px solid var(--line); font-size:9px; }
.ha-project-options svg { width:12px; height:12px; margin-right:6px; }
.ha-project-options > span:last-child { background:var(--surface); border-radius:4px; margin-top:4px; }
.ha-project-options small { display:block; margin-top:3px; color:var(--text); font-size:9px; }
.ha-atelier[data-ha-step="choose"] .ha-project-options { display:block; }
.ha-atelier[data-ha-step="choose"] .ha-project-picker { border-color:var(--purple); box-shadow:0 0 0 2px var(--ha-purple-tint); }
.ha-totals { display:grid; gap:9px; }
.ha-totals > div { display:flex; justify-content:space-between; align-items:center; gap:6px; font-size:10px; color:var(--text); }
.ha-totals > div:last-child { padding-top:12px; margin-top:4px; border-top:1px solid var(--line); font-size:15px; color:var(--ink); }
.ha-payment p { font-size:10px; color:var(--text); }
.ha-notes .ha-control { min-height:83px; align-items:flex-start; color:var(--text); font-size:9px; white-space:normal; }
.ha-line-head,.ha-invoice-line { display:grid; grid-template-columns:minmax(0,1fr) 40px 55px 67px 12px; align-items:center; gap:6px; }
.ha-line-head { font-size:7px; color:var(--text); margin-bottom:7px; }
.ha-invoice-line { padding-block:10px; border-top:1px solid var(--line); font-size:9px; }
.ha-invoice-line .ha-control { padding:5px; font-size:8px; min-width:0; }
.ha-invoice-line > b { text-align:right; font-size:9px; font-variant-numeric:tabular-nums; }
.ha-empty-lines { display:none; color:var(--text); font-size:10px; padding:15px 0; }
.ha-atelier:is([data-ha-step="form"],[data-ha-step="choose"]) .ha-invoice-lines { display:none; }
.ha-atelier:is([data-ha-step="form"],[data-ha-step="choose"]) .ha-empty-lines { display:block; }
.ha-invoice-actions { position:sticky; bottom:0; display:flex; gap:7px; align-items:center; justify-content:flex-end; padding:17px 0 0; margin-top:20px; border-top:1px solid var(--line); background:var(--surface); }
.ha-invoice-actions > span:first-child { margin-right:auto; }
.ha-cursor { position:absolute; left:0; top:0; width:24px; height:28px; pointer-events:none; opacity:0; z-index:20; will-change:transform; }
.ha-cursor > svg { width:23px; height:27px; fill:var(--ink); stroke:var(--paper); stroke-width:1.7; filter:drop-shadow(0 2px 2px color-mix(in srgb,var(--ink) 18%,transparent)); }
.ha-cursor > i { position:absolute; left:-10px; top:-10px; width:24px; height:24px; border:1px solid var(--purple); border-radius:50%; opacity:var(--ha-click,0); transform:scale(var(--ha-click-scale,.5)); }
.ha-storyline { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; padding-top:23px; }
.ha-storyline > div { display:flex; align-items:center; gap:11px; position:relative; padding-bottom:17px; color:var(--text); }
.ha-storyline > div > span { display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--line); border-radius:7px; font-size:10px; flex-shrink:0; }
.ha-storyline b { display:block; font-size:12px; }
.ha-storyline small { display:block; font-size:10px; margin-top:3px; }
.ha-storyline > div > i { position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--line); overflow:hidden; }
.ha-storyline > div > i::after { content:''; display:block; height:100%; width:100%; background:var(--blue); transform:scaleX(var(--ha-chapter-progress,1)); transform-origin:left; }
.ha-storyline > div:nth-child(2) > i::after { background:var(--orange); }
.ha-storyline > div:nth-child(3) > i::after { background:var(--purple); }
.ha-storyline .is-current { color:var(--ink); }
.ha-storyline .is-current > span { background:var(--surface); border-color:color-mix(in srgb,var(--line) 75%,var(--ink)); }
.ha-caption { text-align:center; color:var(--text); font-size:9px; margin-top:15px; }
.ha-accessible-description { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@container (max-width:1000px) {
 .ha-sidebar { width:160px; }
 .ha-topbar { gap:12px; padding-inline:20px; }
 .ha-top-actions > svg:first-child,.ha-top-actions > span,.ha-top-actions > svg:last-child { display:none; }
 .ha-global-search { max-width:190px; }
 .ha-page { padding-inline:20px; }
 .ha-page-actions .ha-button:last-child { display:none; }
 .ha-tabs > span { padding-inline:7px; }
 .ha-invoice-grid { grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:14px; }
 .ha-form-section { padding:14px; }
 .ha-line-head { display:none; }
 .ha-invoice-line { grid-template-columns:1fr 1fr 1fr 12px; gap:8px; }
 .ha-invoice-line > span:first-child { grid-column:1/-1; }
 .ha-invoice-line > span:nth-child(2)::before { content:'Qty'; color:var(--text); }
 .ha-invoice-line > span:nth-child(3)::before { content:'Rate'; color:var(--text); }
}
@container (max-width:780px) {
 .ha-sidebar { width:54px; padding:0 7px; }
 .ha-logo { padding:0; justify-content:center; }
 .ha-logo b,.ha-nav-item > span,.ha-nav > small { display:none; }
 .ha-nav { gap:9px; padding-top:10px; }
 .ha-nav-item { padding:0; justify-content:center; height:32px; }
 .ha-sidebar-bottom .ha-nav-item { margin-top:9px; }
 .ha-workspace-switch { gap:15px; }
 .ha-topbar { gap:12px; }
 .ha-top-actions { gap:12px; }
 .ha-page-heading h3 { font-size:25px; }
 .ha-progress-legend > span:last-child { display:none; }
 .ha-invoice-grid { grid-template-columns:1.5fr 1fr; }
 .ha-storyline { gap:20px; }
 .ha-storyline small { font-size:9px; }
}
@container (max-width:560px) {
 .ha-app { height:640px; }
 .ha-sidebar { display:none; }
 .ha-topbar { height:48px; padding-inline:15px; }
 .ha-workspace-switch { font-size:10px; }
 .ha-global-search { width:29px; height:29px; padding:7px; font-size:0; margin-left:auto; }
 .ha-global-search kbd { display:none; }
 .ha-top-actions { gap:10px; }
 .ha-top-actions > svg { display:none; }
 .ha-scroll { top:48px; }
 .ha-page { padding:16px 15px 25px; }
 .ha-breadcrumb { margin-bottom:17px; font-size:9px; }
 .ha-page-heading { gap:8px; margin-bottom:18px; }
 .ha-page-heading h3 { font-size:24px; }
 .ha-page-heading h3 .ha-status-pill { margin-left:8px; font-size:8px; }
 .ha-page-heading p { font-size:9px; gap:6px; }
 .ha-page-heading p > .ha-started { flex-basis:100%; }
 .ha-page-actions { display:none; }
 .ha-progress-card { padding:14px; }
 .ha-metrics { gap:8px; margin-bottom:18px; }
 .ha-metrics strong { font-size:23px; margin-top:6px; }
 .ha-metrics small { font-size:8px; line-height:1.6; }
 .ha-metrics > div > span { font-size:9px; }
 .ha-segmented-progress > div > span { font-size:7px; }
 .ha-progress-legend { font-size:8px; }
 .ha-tabs { font-size:8px; margin-top:16px; gap:0; }
 .ha-tabs > span { padding:6px; }
 .ha-tabs > span:nth-child(n+6) { display:none; }
 .ha-panel-toolbar { margin-top:15px; }
 .ha-panel-toolbar .ha-button { padding:6px; font-size:8px; }
 .ha-panel-toolbar > div > span:first-child { display:none; }
 .ha-phase-row { min-height:47px; }
 .ha-phase-row.ha-table-head { min-height:32px; }
 .ha-time-filters { flex-wrap:wrap; }
 .ha-time-filters > .ha-control:first-child { flex-basis:100%; }
 .ha-time-filters > .ha-control:nth-last-child(-n+2) { display:none; }
 .ha-time-row { min-height:50px; }
 .ha-invoice-grid { display:flex; flex-direction:column; gap:16px; }
 .ha-invoice-left,.ha-invoice-right { width:100%; gap:16px; }
 .ha-invoice-right { display:flex; flex-direction:column; }
 .ha-totals { order:-1; }
 .ha-form-section { padding:15px; }
 .ha-fields { gap:12px; }
 .ha-field .ha-control { font-size:9px; }
 .ha-line-head { display:none; }
 .ha-line-items h4 { margin-bottom:10px; }
 .ha-invoice-line { grid-template-columns:1fr 1fr 1fr 12px; }
 .ha-invoice-line .ha-control { font-size:9px; }
 .ha-invoice-line > b { font-size:10px; }
 .ha-invoice-actions { flex-wrap:wrap; position:static; gap:6px; }
 .ha-invoice-actions .ha-button { font-size:8px; padding:7px 8px; }
 .ha-invoice-actions > span:first-child { margin-right:0; }
 .ha-scenario-heading { font-size:10px; }
 .ha-scenario-heading > span:last-child { font-size:9px; }
 .ha-storyline { gap:12px; padding-top:19px; }
 .ha-storyline > div { display:block; padding-bottom:12px; }
 .ha-storyline > div > span { width:23px; height:23px; margin-bottom:8px; font-size:8px; }
 .ha-storyline b { font-size:9px; }
 .ha-storyline small { display:none; }
 .ha-caption { font-size:8px; margin-top:13px; }
}
@media(prefers-reduced-motion:reduce) { .ha-atelier *,.ha-atelier *::before,.ha-atelier *::after { animation:none!important; transition:none!important; } .ha-cursor { display:none; } }
/* The intermediary invoice list follows the real overview/filter/table layout. */
.ha-invoice-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-block:22px; }
.ha-invoice-stat { border:1px solid var(--line); border-radius:8px; padding:14px; background:var(--paper); }
.ha-invoice-stat > span { display:block; font-size:9px; color:var(--text); }
.ha-invoice-stat > strong { display:block; font-size:22px; letter-spacing:-.7px; margin-top:7px; }
.ha-invoice-stat > small { font-size:8px; color:var(--text); }
.ha-invoice-list { padding:15px; overflow:hidden; }
.ha-invoice-list > div { display:flex; padding:0; border:0; }
.ha-invoice-list > div:first-child { background:none; padding:0; margin:0 0 12px; }
.ha-invoice-list .ha-invoice-filters { padding-bottom:12px; margin-bottom:0; }
.ha-invoice-list > .ha-invoice-list-row { display:grid; grid-template-columns:14px 75px 100px 100px 60px 75px 80px 65px 40px; gap:10px; min-width:800px; padding:14px 6px; border-bottom:1px solid var(--line); font-size:9px; }
.ha-invoice-list > .ha-table-head { background:var(--surface); padding-block:9px; font-size:8px; }
.ha-invoice-list .ha-list-row-actions { visibility:hidden; }
.ha-invoice-list .ha-time-footer { font-size:9px; padding-top:12px; }
@container(max-width:560px) { .ha-invoice-stats { grid-template-columns:1fr 1fr; } .ha-invoice-stat { padding:12px; } .ha-invoice-stat > strong { font-size:20px; } .ha-invoice-filters > :nth-child(n+3) { display:none; } }
/* Keep all four phase rows in the demo viewport while preserving the app's hierarchy. */
.ha-breadcrumb { margin-bottom:15px; }
.ha-page-heading { margin-bottom:16px; }
.ha-progress-card { padding:17px; }
.ha-metrics { margin-bottom:17px; }
.ha-metrics strong { font-size:24px; }
.ha-progress-legend { margin-top:11px; }
.ha-tabs { margin-top:15px; }
.ha-panel-toolbar { margin-top:12px; }
.ha-phase-row { min-height:42px; }
.ha-phase-row.ha-table-head { min-height:30px; }
@container(max-width:560px) { .ha-progress-card { padding:13px; } .ha-metrics strong { font-size:22px; } .ha-metrics { margin-bottom:16px; } .ha-phase-row { min-height:44px; } }
.ha-atelier.is-animated .ha-page { animation:ha-page-enter .18s ease-out both; }
@keyframes ha-page-enter { from { filter:opacity(.2); } to { filter:opacity(1); } }
.ha-invoice-stat > span { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ha-invoice-stat > span > svg { width:13px; height:13px; }
.ha-invoice-stat[data-tone="amber"] > span > svg { color:color-mix(in srgb,var(--yellow) 50%,var(--ink)); }
.ha-invoice-stat[data-tone="brand"] > span > svg { color:color-mix(in srgb,var(--blue) 70%,var(--ink)); }
.ha-invoice-stat[data-tone="danger"] > span > svg { color:color-mix(in srgb,var(--orange) 70%,var(--ink)); }
.ha-invoice-stat[data-tone="purple"] > span > svg { color:var(--purple); }
.ha-invoice-list-row small { display:block; font-size:8px; margin-top:2px; color:var(--text); }
.ha-button > kbd { font:8px Geist,Arial,sans-serif; opacity:.7; }
@container(max-width:560px) { .ha-page-heading p > .ha-budget + span { display:none; } }
