:root { --header-height: 86px; } .topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; height: var(--header-height); padding: 0 32px 0 25px; box-shadow: 0 1px 0 var(--line); border-bottom: 0; } .topbar > .brand { justify-self: start; } .topbar > .topbar-right { justify-self: end; white-space: nowrap; } .header-workflow.workflow { display: flex; align-items: center; justify-content: center; width: max-content; min-width: 0; gap: 8px; margin: 0; padding: 0; border: 0; border-radius: 0; } .header-workflow .step { position: relative; display: flex; justify-content: center; align-items: center; flex-shrink: 0; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); opacity: 1; transition: background-color var(--motion-standard) var(--motion-ease), border-color var(--motion-standard) var(--motion-ease), color var(--motion-standard) var(--motion-ease); } .header-workflow .step strong { color: inherit; font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; } .header-workflow .step-number { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1px solid var(--line); border-radius: 50%; color: inherit; background: transparent; } .header-workflow .step .step-index { display: block; margin: 0; color: inherit; font-size: 9px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; } .header-workflow .step-check { display: none; width: 13px; height: 13px; stroke-width: 1.8; } .header-workflow .step.done { color: var(--accent); } .header-workflow .step.done .step-index { display: none; } .header-workflow .step.done .step-check { display: block; } .header-workflow .step.done .step-number { color: var(--accent); background: var(--accent-pale); border-color: transparent; } .header-workflow .step.active { background: var(--detail-accent-surface); border-color: var(--detail-accent-line); color: var(--accent); } .header-workflow .step.active strong { font-weight: 650; } .header-workflow .step.active .step-number { color: var(--accent); border-color: var(--detail-accent-line); background: var(--surface); } .header-workflow .step:not(.active):hover:not(:disabled) { color: var(--accent); background: var(--detail-surface); border-color: var(--line); } .header-workflow .step:disabled { opacity: .46; } .header-workflow .step:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } .header-workflow .step-line { display: grid; place-items: center; flex: none; width: 12px; min-width: 12px; height: 16px; max-width: none; opacity: .6; color: var(--muted); background: transparent; } .header-workflow .step-line svg { width: 12px; height: 12px; stroke-width: 1.35; } .app-layout { min-height: calc(100vh - var(--header-height)); } #welcome, #projections-panel, #result-card, #fold-results { scroll-margin-top: calc(var(--header-height) + 24px); } #welcome:focus, #projections-panel:focus, #result-card:focus { outline: none; } @media (max-width: 1120px) { :root { --header-height: 128px; } .topbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 72px 56px; gap: 0 16px; padding: 0 22px; } .topbar > .topbar-right { grid-column: 2; grid-row: 1; } .header-workflow.workflow { grid-column: 1 / -1; grid-row: 2; justify-self: center; align-self: start; } } @media (max-width: 760px) { :root { --header-height: 119px; } .topbar { grid-template-rows: 67px 52px; padding: 0 16px; gap: 0 9px; } .header-workflow.workflow { gap: 6px; } .header-workflow .step { height: 38px; padding: 0 11px; gap: 7px; } .header-workflow .step strong { font-size: 11px; } .header-workflow .step-number { width: 20px; height: 20px; } #welcome, #projections-panel, #result-card, #fold-results { scroll-margin-top: calc(var(--header-height) + 16px); } } @media (max-width: 480px) { .header-workflow.workflow { display: grid; grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr); width: 100%; gap: 3px; } .header-workflow .step { min-width: 0; padding-inline: 4px; gap: 5px; } .header-workflow .step-number { width: 17px; height: 17px; } .header-workflow .step .step-index { font-size: 8px; } .header-workflow .step-check { width: 11px; height: 11px; } .header-workflow .step-line { width: 10px; min-width: 10px; } html[lang="ru"] .header-workflow .step-number { display: none; } } @media (max-width: 380px) { .topbar { padding-inline: 12px; gap: 0 7px; } .header-workflow .step { gap: 4px; } .header-workflow .step strong { font-size: 10px; } .header-workflow .step-number { width: 15px; height: 15px; } } @media (max-width: 340px) { .topbar { padding-inline: 8px; gap: 0 4px; } .header-workflow .step { padding-inline: 3px; gap: 3px; } .header-workflow .step-number { display: none; } } @media (prefers-reduced-motion: reduce) { .header-workflow .step { transition: none; } }