/** * Wizard Component Styles * * Inline rail: indicator + label side by side, connectors between steps that * fill as steps complete. One accent (active = where you are); completed is * solid ink with a check, pending a faint ring, error a danger ring with "!". * When the labels don't fit, the rail collapses to "Step N of M" over a * segment bar (measured in JS, see updateCompact). * * CSS Parts (::part): indicators-wrapper, step-circle, progress (segment bar), * panels-container. */ export declare const wizardStyles = "\n:host {\n display: block;\n width: var(--ty-wizard-width, 100%); /* set by width attribute \u2014 not a public token */\n box-sizing: border-box;\n\n /* State accents. Completed is ink, not green: one accent marks where you\n * are, color is kept for \"here\" and for problems. */\n --ty-wizard-active-accent: var(--ty-color-primary);\n --ty-wizard-completed-accent: var(--ty-text-strong, var(--ty-color-neutral-strong));\n --ty-wizard-error-accent: var(--ty-color-danger);\n --ty-wizard-pending-accent: color-mix(in oklab, var(--ty-text, currentColor) 35%, transparent);\n\n /* Container chrome. One surface, hairline divider, no shadow by default:\n * the wizard is a layout primitive, the page decides elevation. */\n --ty-wizard-bg: var(--ty-surface-elevated);\n --ty-wizard-border: var(--ty-border);\n --ty-wizard-radius: var(--ty-radius-lg, 12px);\n --ty-wizard-shadow: none;\n\n --ty-wizard-header-bg: transparent;\n --ty-wizard-header-border: var(--ty-wizard-border);\n --ty-wizard-header-padding: 14px 20px;\n\n --ty-wizard-progress-track: var(--ty-border);\n --ty-wizard-progress-fill: var(--ty-wizard-completed-accent);\n --ty-wizard-progress-height: 1.5px;\n\n /* Panel slide \u2014 same motion as ty-tabs. */\n --ty-wizard-transition-duration: var(--ty-transition-duration, 300ms);\n --ty-wizard-transition-easing: var(--ty-transition-easing, ease-in-out);\n\n --ty-wizard-circle-size: 24px;\n --ty-wizard-circle-border-width: 1.5px;\n\n --ty-wizard-panels-bg: transparent;\n\n --ty-wizard-focus-outline: var(--ty-wizard-active-accent);\n}\n\n.wizard-container {\n display: flex;\n flex-direction: column;\n position: relative;\n box-sizing: border-box;\n border-radius: var(--ty-wizard-radius);\n border: 1px solid var(--ty-wizard-border);\n background: var(--ty-wizard-bg);\n box-shadow: var(--ty-wizard-shadow);\n overflow: hidden;\n}\n\n.step-indicators-wrapper {\n flex-shrink: 0;\n padding: var(--ty-wizard-header-padding);\n border-bottom: 1px solid var(--ty-wizard-header-border);\n background: var(--ty-wizard-header-bg);\n}\n\n/* ---------- Rail ---------- */\n\n.step-indicators {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.step-indicator {\n display: flex;\n align-items: center;\n gap: 8px;\n /* Content basis: labels keep their width, extra space goes to connectors\n (equally). If they don't fit at all, JS switches to the compact header. */\n flex: 1 1 auto;\n min-width: 0;\n cursor: pointer;\n background: transparent;\n border: none;\n padding: 0;\n font: inherit;\n color: inherit;\n text-align: left;\n outline: none;\n}\n\n.step-indicator:last-child {\n flex: 0 0 auto;\n}\n\n/* Connector to the next step \u2014 a pseudo-element, so the tablist owns only tabs. */\n.step-indicator:not(:last-child)::after {\n content: \"\";\n flex: 1 1 auto;\n min-width: 16px;\n height: var(--ty-wizard-progress-height);\n border-radius: 1px;\n margin-left: 4px;\n background: var(--ty-wizard-progress-track);\n transition: background var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n}\n\n.step-indicator[data-done=\"true\"]:not(:last-child)::after {\n background: var(--ty-wizard-progress-fill);\n}\n\n.step-indicator[aria-disabled=\"true\"] {\n opacity: 0.45;\n cursor: not-allowed;\n pointer-events: none;\n}\n\n.step-indicator:focus-visible .step-circle {\n outline: 2px solid var(--ty-wizard-focus-outline);\n outline-offset: 2px;\n}\n\n.step-circle {\n width: var(--ty-wizard-circle-size);\n height: var(--ty-wizard-circle-size);\n border-radius: 50%;\n border: var(--ty-wizard-circle-border-width) solid;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n flex-shrink: 0;\n font-size: calc(var(--ty-wizard-circle-size) * 0.46);\n font-weight: 600;\n font-variant-numeric: tabular-nums;\n line-height: 1;\n transition: var(--ty-local-transition, background-color var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing), border-color var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing), color var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing));\n}\n\n.step-circle svg {\n width: 58%;\n height: 58%;\n}\n\n.step-circle[data-state=\"completed\"] {\n background: var(--ty-wizard-completed-accent);\n border-color: var(--ty-wizard-completed-accent);\n /* Derived from the accent this circle paints, so any override stays legible. */\n color: oklch(\n from var(--ty-wizard-completed-accent)\n clamp(0, (var(--ty-solid-fg-threshold, 0.57) - l) * 1000, 1) 0 0\n );\n}\n\n.step-circle[data-state=\"active\"] {\n background: color-mix(in oklab, var(--ty-wizard-active-accent) 12%, var(--ty-wizard-bg));\n border-color: var(--ty-wizard-active-accent);\n /* Nudged toward the text color so the number clears 4.5:1 on its tint. */\n color: color-mix(in oklab, var(--ty-wizard-active-accent) 75%, var(--ty-text-strong, currentColor));\n}\n\n.step-circle[data-state=\"pending\"] {\n background: transparent;\n border-color: var(--ty-wizard-pending-accent);\n color: var(--ty-text-soft, var(--ty-color-neutral));\n}\n\n.step-circle[data-state=\"error\"] {\n background: color-mix(in oklab, var(--ty-wizard-error-accent) 12%, var(--ty-wizard-bg));\n border-color: var(--ty-wizard-error-accent);\n color: color-mix(in oklab, var(--ty-wizard-error-accent) 75%, var(--ty-text-strong, currentColor));\n}\n\n.step-text {\n display: flex;\n flex-direction: column;\n gap: 0;\n min-width: 0;\n}\n\n.step-label {\n font-size: var(--ty-font-sm, 14px);\n font-weight: 500;\n line-height: 1.3;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: var(--ty-text-soft, var(--ty-color-neutral));\n transition: var(--ty-local-transition, color 200ms);\n}\n\n.step-indicator[data-state=\"completed\"] .step-label,\n.step-indicator[data-state=\"active\"] .step-label {\n color: var(--ty-text-strong, var(--ty-color-neutral-strong));\n}\n\n.step-indicator[aria-selected=\"true\"] .step-label {\n font-weight: 600;\n}\n\n.step-indicator[data-state=\"error\"] .step-label {\n color: var(--ty-wizard-error-accent);\n}\n\n/* Only where you are (or what's wrong) gets a second line. Hidden ones keep\n * their width (height 0), so connectors don't shift as you move. */\n.step-description {\n height: 0;\n visibility: hidden;\n font-size: var(--ty-font-xs, 12px);\n line-height: 1.3;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: var(--ty-text-soft, var(--ty-color-neutral));\n}\n\n.step-indicator[aria-selected=\"true\"] .step-description,\n.step-indicator[data-state=\"error\"] .step-description {\n height: auto;\n /* inherit, not visible: the rail is visibility:hidden in compact mode. */\n visibility: inherit;\n}\n\n.step-indicator:hover:not([aria-selected=\"true\"]) .step-label {\n color: var(--ty-text-strong, var(--ty-color-neutral-strong));\n}\n\n/* Custom indicator content via slots */\n::slotted([slot^=\"indicator-\"]) {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* ---------- Compact header (narrow containers) ---------- */\n\n.step-compact {\n display: none;\n flex-direction: column;\n gap: 10px;\n}\n\n.compact-top {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 12px;\n min-width: 0;\n}\n\n.compact-where {\n display: flex;\n align-items: baseline;\n gap: 6px;\n min-width: 0;\n white-space: nowrap;\n}\n\n.compact-count {\n font-size: var(--ty-font-xs, 12px);\n color: var(--ty-text-soft, var(--ty-color-neutral));\n}\n\n.compact-count::after {\n content: \"\u00B7\";\n margin-left: 6px;\n color: var(--ty-text-faint, var(--ty-color-neutral));\n}\n\n.compact-label {\n font-size: var(--ty-font-sm, 14px);\n font-weight: 600;\n color: var(--ty-text-strong, var(--ty-color-neutral-strong));\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.compact-description {\n font-size: var(--ty-font-xs, 12px);\n color: var(--ty-text-faint, var(--ty-color-neutral));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.compact-segments {\n display: flex;\n gap: 4px;\n}\n\n.compact-segment {\n flex: 1;\n height: 3px;\n border-radius: 2px;\n background: var(--ty-wizard-progress-track);\n transition: background var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n}\n\n.compact-segment[data-state=\"completed\"] { background: var(--ty-wizard-progress-fill); }\n.compact-segment[data-state=\"active\"] { background: var(--ty-wizard-active-accent); }\n.compact-segment[data-state=\"error\"] { background: var(--ty-wizard-error-accent); }\n\n/* .compact is set from JS when the rail's natural width doesn't fit (or a\n vertical wizard is under 360px). The rail stays laid out, hidden, so it\n can still be measured. */\n.wizard-container.compact { flex-direction: column; }\n.wizard-container.compact .step-indicators {\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n width: max-content;\n}\n.wizard-container.compact .step-compact { display: flex; }\n.wizard-container.compact .step-indicators-wrapper {\n padding: var(--ty-wizard-header-padding);\n border-right: none;\n border-bottom: 1px solid var(--ty-wizard-header-border);\n min-width: 0;\n}\n\n/* ---------- Vertical ---------- */\n\n:host([orientation=\"vertical\"]) .wizard-container:not(.compact) {\n flex-direction: row;\n}\n\n:host([orientation=\"vertical\"]) .wizard-container:not(.compact) .step-indicators-wrapper {\n border-bottom: none;\n border-right: 1px solid var(--ty-wizard-header-border);\n padding: 20px 18px;\n min-width: 170px;\n box-sizing: border-box;\n}\n\n:host([orientation=\"vertical\"]) .step-indicators {\n flex-direction: column;\n align-items: stretch;\n gap: 0;\n}\n\n:host([orientation=\"vertical\"]) .step-indicator {\n flex: 0 0 auto;\n align-items: flex-start;\n gap: 10px;\n position: relative;\n padding-bottom: 26px;\n}\n\n:host([orientation=\"vertical\"]) .step-indicator:last-child {\n padding-bottom: 0;\n}\n\n:host([orientation=\"vertical\"]) .step-text {\n /* Center the label's line box on the circle (label line-height is 1.3). */\n padding-top: calc((var(--ty-wizard-circle-size) - var(--ty-font-sm, 14px) * 1.3) / 2);\n}\n\n:host([orientation=\"vertical\"]) .step-indicator:not(:last-child)::after {\n position: absolute;\n left: calc(var(--ty-wizard-circle-size) / 2 - var(--ty-wizard-progress-height) / 2);\n top: calc(var(--ty-wizard-circle-size) + 4px);\n bottom: 4px;\n width: var(--ty-wizard-progress-height);\n height: auto;\n min-width: 0;\n margin: 0;\n}\n\n/* ---------- Panels ---------- */\n\n.panels-viewport {\n position: relative;\n flex: 1;\n min-width: 0;\n height: var(--ty-wizard-panel-height, auto);\n overflow: hidden;\n background: var(--ty-wizard-panels-bg);\n}\n\n/* Carousel, like ty-tabs: steps sit side by side and the row slides. A flex\n * row is as tall as its tallest step, so the wizard doesn't jump between\n * steps (the height attribute overrides). */\n.panels-wrapper {\n display: flex;\n height: 100%;\n transform: translateX(calc(var(--ty-wizard-active-index, 0) * -100%));\n transition: transform var(--ty-wizard-transition-duration) var(--ty-wizard-transition-easing);\n will-change: transform;\n}\n\n::slotted(ty-step) {\n flex: 0 0 100%;\n min-width: 0;\n transition: visibility 0s linear 0s;\n}\n\n/* Off-screen steps leave the tab order once the slide has finished. */\n::slotted(ty-step:not([data-active=\"true\"])) {\n visibility: hidden;\n pointer-events: none;\n transition: visibility 0s linear var(--ty-wizard-transition-duration);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .panels-wrapper,\n ::slotted(ty-step),\n ::slotted(ty-step:not([data-active=\"true\"])),\n .step-circle,\n .compact-segment,\n .step-indicator::after {\n transition-duration: 0ms !important;\n transition-delay: 0ms !important;\n }\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n";