/* Shared component layer. This file has no knowledge of the documentation shell. */
:root{--hr-focus-ring:var(--hr-color-border-focus);--hr-focus-width:2px;--hr-focus-offset:3px;--hr-button-primary-hover-border:var(--hr-button-primary-hover-border-token,#C9A128);--hr-button-primary-pressed:#E9B52F}
.hr-icon{width:1.15em;height:1.15em;flex:none;vertical-align:middle}
.hr-button{--button-bg:var(--hr-color-surface-default);--button-border:var(--hr-color-border-strong);--button-fg:var(--hr-color-text-primary);--button-hover-bg:var(--hr-color-surface-subtle);--button-hover-border:var(--button-border);--button-pressed-bg:var(--hr-color-surface-secondary);--button-pressed-border:var(--button-border);--button-width:1px;display:inline-flex;align-items:center;justify-content:center;gap:var(--hr-spacing-2);min-height:40px;padding:calc(var(--hr-spacing-2) + 1px - var(--button-width)) calc(var(--hr-spacing-4) + 1px - var(--button-width));border:var(--button-width) solid var(--button-border);border-radius:var(--hr-radius-sm);background:var(--button-bg);color:var(--button-fg);font:var(--hr-font-weight-semibold) var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base);text-decoration:none;cursor:pointer;touch-action:manipulation;transition:border-color .1s linear}
.hr-button--primary{--button-width:2px;--button-bg:var(--hr-component-button-primary-background-default,var(--hr-color-brand-secondary));--button-border:var(--hr-component-button-primary-border-default,transparent);--button-hover-bg:var(--hr-component-button-primary-background-hover,var(--button-bg));--button-hover-border:var(--hr-component-button-primary-border-hover,var(--hr-button-primary-hover-border));--button-pressed-bg:var(--hr-component-button-primary-background-pressed,var(--hr-button-primary-pressed));--button-pressed-border:var(--hr-component-button-primary-border-pressed,var(--hr-button-primary-pressed))}
.hr-button--secondary{--button-width:2px;--button-bg:var(--hr-component-button-secondary-background-default,transparent);--button-border:var(--hr-component-button-secondary-border-default,var(--hr-color-action-secondary));--button-fg:var(--hr-color-action-secondary);--button-hover-border:var(--hr-component-button-secondary-border-hover,var(--button-border));--button-pressed-border:var(--hr-component-button-secondary-border-pressed,var(--button-pressed-bg));--button-hover-bg:var(--hr-component-button-secondary-background-hover,var(--hr-color-surface-subtle));--button-pressed-bg:var(--hr-component-button-secondary-background-pressed,var(--hr-color-surface-secondary))}
.hr-button--destructive{--button-bg:var(--hr-component-button-destructive-background-default,var(--hr-color-action-destructive));--button-border:var(--hr-component-button-destructive-border-default,var(--button-bg));--button-fg:var(--hr-color-text-inverse);--button-hover-bg:var(--hr-component-button-destructive-background-hover,var(--button-bg));--button-hover-border:var(--hr-component-button-destructive-border-hover,var(--button-hover-bg));--button-pressed-bg:var(--hr-component-button-destructive-background-pressed,var(--button-bg));--button-pressed-border:var(--hr-component-button-destructive-border-pressed,var(--button-pressed-bg))}
.hr-button--ghost{--button-bg:transparent;--button-border:transparent;--button-fg:var(--hr-color-text-secondary);--button-hover-border:transparent;--button-pressed-border:transparent}
@media(hover:hover){.hr-button:hover{background:var(--button-hover-bg);border-color:var(--button-hover-border)}}
.hr-button:active,.hr-button.is-key-pressed{background:var(--button-pressed-bg);border-color:var(--button-pressed-border)}
.hr-button:focus-visible,.hr-input:focus-visible,.hr-select:focus-visible,.hr-checkbox:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:var(--hr-focus-offset)}
.hr-button:disabled{background:var(--hr-color-action-disabled);border-color:var(--hr-color-border-default);color:var(--hr-color-text-disabled);cursor:not-allowed}
.hr-button--sm{min-height:32px;padding-block:calc(var(--hr-spacing-1) + 1px - var(--button-width));font-size:var(--hr-font-size-xs)}
.hr-button--block{width:100%}
.hr-field{display:flex;flex-direction:column;gap:var(--hr-spacing-2);font-family:var(--hr-font-family-base);color:var(--hr-color-text-primary);min-width:0}
.hr-field__label{font-size:var(--hr-font-size-sm);line-height:var(--hr-font-line-height-sm);font-weight:var(--hr-font-weight-semibold)}
.hr-field__hint{font-size:var(--hr-font-size-xs);color:var(--hr-color-text-secondary)}
.hr-input,.hr-select{box-sizing:border-box;width:100%;min-height:40px;padding:var(--hr-spacing-2) var(--hr-spacing-3);border:1px solid var(--hr-color-border-strong);border-radius:var(--hr-radius-sm);background:var(--hr-color-surface-default);color:var(--hr-color-text-primary);font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base)}
.hr-input::placeholder{color:var(--hr-color-text-placeholder);opacity:1}.hr-input[aria-invalid=true]{border-color:var(--hr-color-status-error-default)}.hr-input:disabled,.hr-select:disabled{background:var(--hr-color-action-disabled);color:var(--hr-color-text-disabled);cursor:not-allowed}
.hr-check-label{display:flex;align-items:center;gap:var(--hr-spacing-2);font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base);color:var(--hr-color-text-primary)}
.hr-checkbox{width:18px;height:18px;margin:0;accent-color:var(--hr-color-action-secondary)}
.hr-actions{display:flex;align-items:center;gap:var(--hr-spacing-3);flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){.hr-button{transition:none}}

/* Match the chevron inset to the text inset; reserve space for long labels. */
:root{--hr-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23565545' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.hr-select:not([multiple]){appearance:none;-webkit-appearance:none;padding-inline-end:calc(var(--hr-spacing-3) * 2 + 12px);background-image:var(--hr-select-chevron);background-repeat:no-repeat;background-size:12px 8px;background-position:right var(--hr-spacing-3) center}
@media(forced-colors:active){.hr-select:not([multiple]){appearance:auto;-webkit-appearance:auto;background-image:none}}

/* Form states: labels and messages carry meaning alongside colour. */
@media(hover:hover){.hr-input:not(:disabled):not([readonly]):hover,.hr-select:not(:disabled):hover{border-color:var(--hr-color-action-secondary)}.hr-checkbox:not(:disabled):hover{box-shadow:0 0 0 2px var(--hr-color-border-strong)}}
.hr-input[readonly]{background-color:var(--hr-color-surface-subtle)}
.hr-input[aria-invalid=true],.hr-select[aria-invalid=true]{border-color:var(--hr-color-status-error-default)}
.hr-field__error{font-size:var(--hr-font-size-xs);color:var(--hr-color-status-error-strong)}
.hr-checkbox[aria-invalid=true]{outline:1px solid var(--hr-color-status-error-default);outline-offset:2px}
.hr-checkbox:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:var(--hr-focus-offset)}
.hr-checkbox:disabled{cursor:not-allowed}.hr-check-label:has(:disabled){color:var(--hr-color-text-disabled)}
.hr-input:disabled,.hr-select:disabled{border-color:var(--hr-color-border-default)}
/* Semantic colours use the imported Figma status aliases. */
.hr-badge,.hr-alert{--status-bg:var(--hr-color-surface-secondary);--status-fg:var(--hr-color-text-primary);--status-border:var(--hr-color-border-strong)}
.hr-badge--success,.hr-alert--success{--status-bg:var(--hr-color-status-success-subtle);--status-fg:var(--hr-color-status-success-strong);--status-border:var(--hr-color-status-success-default,var(--hr-color-status-success-defautl))}
.hr-badge--warning,.hr-alert--warning{--status-bg:var(--hr-color-status-warning-subtle);--status-fg:var(--hr-color-status-warning-strong);--status-border:var(--hr-color-status-warning-default,var(--hr-color-status-warning-defautl))}
.hr-badge--error,.hr-alert--error{--status-bg:var(--hr-color-status-error-subtle);--status-fg:var(--hr-color-status-error-strong);--status-border:var(--hr-color-status-error-default,var(--hr-color-status-error-defautl))}
.hr-badge--info,.hr-alert--info{--status-bg:var(--hr-color-status-info-subtle);--status-fg:var(--hr-color-status-info-strong);--status-border:var(--hr-color-status-info-default,var(--hr-color-status-info-defautl))}
.hr-badge{display:inline-flex;align-items:center;gap:var(--hr-spacing-1);padding:var(--hr-spacing-1) var(--hr-spacing-2);border-radius:var(--hr-radius-full);background:var(--status-bg);color:var(--status-fg);font:var(--hr-font-weight-semibold) var(--hr-font-size-xs)/1.3 var(--hr-font-family-base);white-space:nowrap}
.hr-alert{display:flex;align-items:flex-start;gap:var(--hr-spacing-3);padding:var(--hr-spacing-4);border:1px solid var(--status-border);border-radius:var(--hr-radius-sm);background:var(--status-bg);color:var(--status-fg);font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base)}
.hr-alert__content{flex:1;min-width:0}.hr-alert__title{display:block;font-weight:var(--hr-font-weight-semibold)}.hr-alert__message{margin:var(--hr-spacing-1) 0 0}.hr-alert__close{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border:0;border-radius:var(--hr-radius-sm);background:transparent;color:inherit;font:inherit;cursor:pointer}.hr-alert__close:hover{background:var(--hr-color-surface-default)}.hr-alert__close:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:var(--hr-focus-offset)}
.hr-alert[hidden]{display:none}

/* Native tables; selection and action columns are optional. */
.hr-table-group{min-width:0}.hr-table-toolbar{display:flex;justify-content:space-between;gap:var(--hr-spacing-4);align-items:center;margin-bottom:var(--hr-spacing-3);font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base)}
.hr-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--hr-color-border-default);border-radius:var(--hr-radius-sm)}.hr-table-scroll:focus-visible,.hr-table-sort:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:var(--hr-focus-offset)}
.hr-table{width:100%;border-collapse:collapse;text-align:left;color:var(--hr-color-text-primary);background:var(--hr-color-surface-default);font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base)}.hr-table caption{text-align:left;padding:var(--hr-spacing-3) var(--hr-spacing-4);color:var(--hr-color-text-secondary);font-size:var(--hr-font-size-xs)}.hr-table th,.hr-table td{padding:var(--hr-spacing-3) var(--hr-spacing-4);border-bottom:1px solid var(--hr-color-border-subtle);vertical-align:middle;white-space:nowrap}.hr-table th{font-weight:var(--hr-font-weight-semibold)}.hr-table thead{background:var(--hr-color-surface-subtle)}.hr-table tbody tr:last-child>*{border-bottom:0}.hr-table tbody tr:hover{background:var(--hr-color-surface-subtle)}.hr-table tbody tr:has([data-select-row]:checked){background:var(--hr-color-surface-secondary)}.hr-table-sort{display:inline-flex;align-items:center;gap:var(--hr-spacing-2);background:transparent;border:0;padding:0;color:inherit;font:inherit;cursor:pointer;min-height:32px}.hr-table-sort:hover{text-decoration:underline}.hr-table-feedback{font:var(--hr-font-size-xs)/1.5 var(--hr-font-family-base);color:var(--hr-color-text-secondary);margin:var(--hr-spacing-3) 0 0}.hr-table .hr-table-state{text-align:center;white-space:normal;padding:var(--hr-spacing-8) var(--hr-spacing-4)}.hr-table-state p{margin:var(--hr-spacing-2) 0 0;color:var(--hr-color-text-secondary)}

/* Horizontal tabs with manual keyboard activation. */
.hr-tabs{min-width:0}.hr-tabs__list{display:flex;gap:var(--hr-spacing-2);overflow-x:auto;padding:4px 4px 0;border-bottom:1px solid var(--hr-color-border-default)}.hr-tabs__tab{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:var(--hr-spacing-2) var(--hr-spacing-4);border:0;border-bottom:3px solid transparent;border-radius:var(--hr-radius-sm) var(--hr-radius-sm) 0 0;background:transparent;color:var(--hr-color-text-secondary);font:var(--hr-font-weight-semibold) var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base);cursor:pointer}.hr-tabs__tab:hover:not(:disabled){background:var(--hr-color-surface-subtle);color:var(--hr-color-text-primary)}.hr-tabs__tab[aria-selected=true]{border-bottom-color:var(--hr-color-action-secondary);color:var(--hr-color-text-primary)}.hr-tabs__tab:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:-3px}.hr-tabs__tab:disabled{color:var(--hr-color-text-disabled);cursor:not-allowed}.hr-tabs__panel{padding:var(--hr-spacing-6) var(--hr-spacing-1);color:var(--hr-color-text-primary);font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base)}.hr-tabs__panel>.hr-field{max-width:400px}.hr-tabs__panel:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:-2px}.hr-tabs__panel[hidden]{display:none}

/* Lucide: actual stroke thickness stays 1.75 px at every icon size. */
:root{--hr-icon-size:16px;--hr-icon-stroke:1.75px;--hr-icon-navigation:20px;--hr-icon-alert:24px}
.hr-icon{display:inline-block;width:var(--hr-icon-size);height:var(--hr-icon-size);flex:none;fill:none;stroke:currentColor;stroke-width:var(--hr-icon-stroke);stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.hr-icon>*{vector-effect:non-scaling-stroke}
.hr-alert>.hr-icon{width:var(--hr-icon-alert);height:var(--hr-icon-alert);margin-top:calc((var(--hr-font-line-height-sm) - var(--hr-icon-alert)) / 2)}.hr-alert__close .hr-icon,.hr-badge .hr-icon{width:16px;height:16px}.hr-alert{gap:var(--hr-spacing-3)}.hr-sort-icons,.hr-sort-icons>span{display:inline-flex}.hr-sort-icons>[hidden]{display:none}
:root{--hr-select-chevron:url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22%23565545%22%0A%20%20stroke-width%3D%222.625%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22m6%209%206%206%206-6%22%20%2F%3E%0A%3C%2Fsvg%3E%0A")}
.hr-select:not([multiple]){background-size:16px 16px;padding-inline-end:calc(var(--hr-spacing-3) * 2 + 16px)}

/* Native single-choice groups and multi-line fields. */
.hr-radio-group{min-width:0;margin:0;padding:0;border:0;display:grid;gap:var(--hr-spacing-3)}.hr-radio-group legend{padding:0;margin-bottom:var(--hr-spacing-2)}.hr-radio-group p{margin:0}.hr-radio{width:18px;height:18px;flex:none;margin:0;accent-color:var(--hr-color-action-secondary)}.hr-radio:disabled{cursor:not-allowed}.hr-radio[aria-invalid=true]{outline:1px solid var(--hr-color-status-error-default);outline-offset:2px;border-radius:50%}
.hr-textarea{box-sizing:border-box;display:block;width:100%;min-height:96px;resize:vertical;padding:var(--hr-spacing-2) var(--hr-spacing-3);border:1px solid var(--hr-color-border-strong);border-radius:var(--hr-radius-sm);background:var(--hr-color-surface-default);color:var(--hr-color-text-primary);font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base)}.hr-textarea::placeholder{color:var(--hr-color-text-placeholder);opacity:1}.hr-textarea[readonly]{background:var(--hr-color-surface-subtle)}.hr-textarea:disabled{background:var(--hr-color-action-disabled);border-color:var(--hr-color-border-default);color:var(--hr-color-text-disabled);cursor:not-allowed}
@media(hover:hover){.hr-textarea:not(:disabled):not([readonly]):hover{border-color:var(--hr-color-action-secondary)}.hr-radio:not(:disabled):hover{box-shadow:0 0 0 2px var(--hr-color-border-strong);border-radius:50%}}
.hr-textarea[aria-invalid=true]{border-color:var(--hr-color-status-error-default)}.hr-radio:focus-visible,.hr-textarea:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:var(--hr-focus-offset)}.hr-character-count{text-align:right;font-variant-numeric:tabular-nums}

.hr-date-range{display:grid;gap:var(--hr-spacing-4);max-width:720px}.hr-date-range__group{display:grid;gap:var(--hr-spacing-4);border:0;padding:0;margin:0;min-width:0}.hr-date-range__group legend{padding:0;margin-bottom:var(--hr-spacing-2)}.hr-date-range p{margin:0}.hr-date-range__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--hr-spacing-4)}.hr-date-range>.hr-button{justify-self:start}.hr-date-range [data-date-preset][aria-pressed=true]{background:var(--hr-color-surface-secondary);border-color:var(--hr-color-surface-secondary)}.hr-date-range input{min-width:0;max-width:100%}@media(max-width:600px){.hr-date-range__fields{grid-template-columns:1fr}}

.hr-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.hr-switch{position:relative;display:inline-flex;align-items:center;gap:var(--hr-spacing-3);min-height:32px;color:var(--hr-color-text-primary);font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base);cursor:pointer}.hr-switch__input{position:absolute;left:0;top:0;width:40px;height:100%;margin:0;opacity:0}.hr-switch__track{box-sizing:border-box;display:block;position:relative;width:40px;height:24px;flex:none;border:1px solid var(--hr-color-border-strong);border-radius:999px;background:var(--hr-color-surface-secondary)}.hr-switch__track:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--hr-color-text-secondary)}.hr-switch__input:checked+.hr-switch__track{background:var(--hr-color-action-secondary);border-color:var(--hr-color-action-secondary)}.hr-switch__input:checked+.hr-switch__track:after{transform:translateX(16px);background:var(--hr-color-text-inverse)}.hr-switch__input:focus-visible+.hr-switch__track{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:var(--hr-focus-offset)}.hr-switch:has(:disabled){cursor:not-allowed;color:var(--hr-color-text-disabled)}.hr-switch__input:disabled+.hr-switch__track{opacity:.45}.hr-switch:hover .hr-switch__input:not(:disabled)+.hr-switch__track{border-color:var(--hr-color-text-primary)}
.hr-multiselect{max-width:400px}.hr-multiselect__trigger{display:flex;justify-content:space-between;align-items:center;gap:var(--hr-spacing-3);text-align:left;min-height:40px;width:100%;padding:var(--hr-spacing-2) var(--hr-spacing-3);border:1px solid var(--hr-color-border-strong);border-radius:var(--hr-radius-sm);background:var(--hr-color-surface-default);color:var(--hr-color-text-primary);font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base);cursor:pointer}.hr-multiselect__trigger:hover:not(:disabled){border-color:var(--hr-color-action-secondary)}.hr-multiselect__trigger:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:var(--hr-focus-offset)}.hr-multiselect__trigger[aria-expanded=true]>.hr-icon{transform:rotate(180deg)}.hr-multiselect__trigger:disabled{background:var(--hr-color-action-disabled);color:var(--hr-color-text-disabled);cursor:not-allowed}.hr-multiselect__trigger[aria-invalid=true]{border-color:var(--hr-color-status-error-default)}.hr-multiselect__panel{display:grid;gap:var(--hr-spacing-3);padding:var(--hr-spacing-4);border:1px solid var(--hr-color-border-strong);border-radius:var(--hr-radius-sm);background:var(--hr-color-surface-default)}.hr-multiselect__panel[hidden],.hr-multiselect [hidden]{display:none}.hr-multiselect__panel p{margin:0}.hr-multiselect__panel>.hr-button{justify-self:start}.hr-multiselect__options{display:grid;gap:var(--hr-spacing-2);max-height:220px;overflow-y:auto;margin:0;padding:4px;border:0;min-width:0}.hr-multiselect__options label{min-height:32px}
@media(forced-colors:active){.hr-switch__track{forced-color-adjust:none;background:Canvas;border-color:ButtonText}.hr-switch__track:after{background:ButtonText}.hr-switch__input:checked+.hr-switch__track{background:Highlight;border-color:Highlight}.hr-switch__input:checked+.hr-switch__track:after{background:HighlightText}}

/* Shared card surface; interactions belong to contained controls. */
.hr-card{min-width:0;overflow-wrap:anywhere;background:var(--hr-color-surface-default);border:1px solid var(--hr-color-border-default);border-radius:var(--hr-radius-md);color:var(--hr-color-text-primary);font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base)}.hr-card__header,.hr-card__body,.hr-card__footer{padding:var(--hr-spacing-4);display:grid;gap:var(--hr-spacing-3)}.hr-card__header+.hr-card__body{padding-top:0}.hr-card__title{margin:0;font:var(--hr-font-weight-semibold) var(--hr-font-size-md)/1.4 var(--hr-font-family-heading)}.hr-card__description,.hr-card__body p{margin:0}.hr-card__description{color:var(--hr-color-text-secondary)}.hr-card__body>.hr-badge{justify-self:start}.hr-card__footer{display:flex;align-items:center;gap:var(--hr-spacing-3);flex-wrap:wrap;border-top:1px solid var(--hr-color-border-subtle)}.hr-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:var(--hr-spacing-4)}
.hr-metric{padding:var(--hr-spacing-4);display:flex;flex-direction:column;align-items:flex-start;gap:var(--hr-spacing-2)}.hr-metric__label{margin:0;color:var(--hr-color-text-secondary);font:var(--hr-font-weight-semibold) var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base)}.hr-metric__value{margin:0;display:flex;align-items:baseline;gap:var(--hr-spacing-1);font:var(--hr-font-weight-semibold) var(--hr-font-size-2xl)/1.2 var(--hr-font-family-base);font-variant-numeric:tabular-nums}.hr-metric__unit{font-size:var(--hr-font-size-sm)}.hr-metric__context,.hr-metric__note{margin:0;font-size:var(--hr-font-size-xs);color:var(--hr-color-text-secondary)}.hr-metric__note{margin-top:auto}.hr-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:var(--hr-spacing-3)}.hr-metric__placeholder{width:90px;height:29px;max-width:100%;border-radius:var(--hr-radius-sm);background:var(--hr-color-surface-secondary)}

/* Expandable cards keep actions separate from the native disclosure toggle. */
.hr-expandable__header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:var(--hr-spacing-4);padding:var(--hr-spacing-4)}.hr-expandable__summary{flex:1 1 200px;min-width:0;display:grid;gap:var(--hr-spacing-3)}.hr-expandable__summary>.hr-badge{justify-self:start}.hr-expandable__toggle{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:var(--hr-spacing-3);min-height:44px;padding:var(--hr-spacing-3) var(--hr-spacing-4);border-top:1px solid var(--hr-color-border-subtle);list-style:none;cursor:pointer;font-weight:var(--hr-font-weight-semibold);border-radius:0 0 var(--hr-radius-md) var(--hr-radius-md)}.hr-expandable__toggle::-webkit-details-marker{display:none}.hr-expandable__toggle:hover{background:var(--hr-color-surface-subtle)}.hr-expandable__toggle:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:-3px}.hr-expandable__disclosure[open]>.hr-expandable__toggle{border-radius:0}.hr-expandable__disclosure[open]>.hr-expandable__toggle>.hr-icon{transform:rotate(180deg)}.hr-expandable__content{padding:var(--hr-spacing-4);background:var(--hr-color-surface-subtle);border-top:1px solid var(--hr-color-border-subtle);border-radius:0 0 var(--hr-radius-md) var(--hr-radius-md);display:grid;gap:var(--hr-spacing-4)}.hr-expandable__content p{margin:0}.hr-expandable__facts{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:var(--hr-spacing-2) var(--hr-spacing-3);margin:0}.hr-expandable__facts dt{font-weight:var(--hr-font-weight-semibold)}.hr-expandable__facts dd{margin:0}@media(max-width:480px){.hr-expandable__facts{grid-template-columns:1fr}}

/* Shared popup surfaces. Position is calculated relative to the viewport. */
.hr-dropdown{position:relative;display:inline-block}.hr-dropdown__panel{position:fixed;inset:auto;margin:0;box-sizing:border-box;min-width:200px;width:240px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:var(--hr-spacing-2);border:1px solid var(--hr-color-border-strong);border-radius:var(--hr-radius-md);background:var(--hr-color-surface-default);color:var(--hr-color-text-primary);box-shadow:0 4px 12px #17171314;z-index:1000;font:var(--hr-font-size-sm)/var(--hr-font-line-height-sm) var(--hr-font-family-base)}.hr-dropdown__panel[hidden]{display:none}.hr-dropdown__heading{margin:var(--hr-spacing-2);color:var(--hr-color-text-secondary);font-size:var(--hr-font-size-xs)}.hr-dropdown__item{display:flex;align-items:center;gap:var(--hr-spacing-2);width:100%;min-height:40px;padding:var(--hr-spacing-2);border:0;border-radius:var(--hr-radius-sm);background:transparent;color:inherit;text-align:left;text-decoration:none;font:inherit;cursor:pointer}.hr-dropdown__item>span:first-of-type{flex:1}.hr-dropdown__item:hover:not(:disabled),.hr-dropdown__item[aria-pressed=true]{background:var(--hr-color-surface-subtle)}.hr-dropdown__item:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:-2px}.hr-dropdown__item:disabled{color:var(--hr-color-text-disabled);cursor:not-allowed}.hr-dropdown__item--destructive{color:var(--hr-color-action-destructive)}.hr-dropdown__separator{border:0;border-top:1px solid var(--hr-color-border-subtle);margin:var(--hr-spacing-2) 0}
.hr-tooltip{position:fixed;inset:auto;margin:0;box-sizing:border-box;max-width:min(260px,calc(100vw - 16px));padding:6px 10px;border:1px solid var(--hr-color-border-inverse);border-radius:var(--hr-radius-sm);background:var(--hr-color-surface-inverse);color:var(--hr-color-text-inverse);font:var(--hr-font-size-xs)/1.5 var(--hr-font-family-base);overflow-wrap:anywhere;z-index:1100;pointer-events:auto}.hr-tooltip[hidden]{display:none}

/* Service-run composition built on the shared card and disclosure. */
.hr-service-run__header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--hr-spacing-4);padding:var(--hr-spacing-4)}.hr-service-run__identity{background:var(--hr-color-surface-subtle);padding:var(--hr-spacing-3);border:1px solid var(--hr-color-border-subtle);border-radius:var(--hr-radius-sm);align-self:start}.hr-service-run__identity h3{margin:0;font:var(--hr-font-weight-semibold) var(--hr-font-size-md)/1.4 var(--hr-font-family-base)}.hr-service-run__identity>span{font-size:var(--hr-font-size-xs);color:var(--hr-color-text-secondary)}.hr-service-run__route{display:flex;align-items:center;gap:var(--hr-spacing-3);min-width:0}.hr-service-run__route>div{min-width:0;flex:1}.hr-service-run__route>div>span{display:block;color:var(--hr-color-text-secondary);font-size:var(--hr-font-size-xs)}.hr-service-run__route-line{display:flex;align-items:center;flex:1;min-width:24px;border-top:1px solid var(--hr-color-border-default)}.hr-service-run__route-line>.hr-icon{margin-left:auto;margin-top:-1px;background:var(--hr-color-surface-default)}.hr-service-run__header>.hr-badge{align-self:center}.hr-service-run__timing{grid-column:2 / -1;display:grid;gap:var(--hr-spacing-1);font-variant-numeric:tabular-nums}.hr-service-run__timing small{color:var(--hr-color-text-secondary)}.hr-service-run__meta,.hr-service-run__actions{padding:0 var(--hr-spacing-4) var(--hr-spacing-4);display:flex;flex-wrap:wrap;gap:var(--hr-spacing-3)}.hr-service-run__meta{font-size:var(--hr-font-size-xs);color:var(--hr-color-text-secondary)}.hr-service-run__actions{justify-content:flex-end}.hr-service-run__actions [aria-pressed=true]{background:var(--hr-color-surface-secondary);border-color:var(--hr-color-action-secondary)}.hr-service-run__details>section+section{border-top:1px solid var(--hr-color-border-default);padding-top:var(--hr-spacing-4)}.hr-service-run__details h4{margin:0 0 var(--hr-spacing-3);font-size:var(--hr-font-size-sm)}.hr-service-run code{overflow-wrap:anywhere}.hr-station-trace{list-style:none;padding:0;margin:var(--hr-spacing-4) 0 0}.hr-station-trace__stop{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--hr-spacing-3);padding:var(--hr-spacing-4) 0 var(--hr-spacing-4) var(--hr-spacing-6);border-left:1px solid var(--hr-color-border-strong);margin-left:6px}.hr-station-trace__stop:before{content:"";position:absolute;left:-5px;top:22px;width:8px;height:8px;border-radius:50%;border:1px solid var(--hr-color-border-strong);background:var(--hr-color-surface-default)}.hr-station-trace__stop+.hr-station-trace__stop{border-top:1px solid var(--hr-color-border-subtle)}.hr-station-trace__description{display:block;color:var(--hr-color-text-secondary);font-size:var(--hr-font-size-xs)}.hr-station-trace__times{display:grid;gap:var(--hr-spacing-2);font-variant-numeric:tabular-nums;font-size:var(--hr-font-size-xs)}.hr-station-trace__times>div{display:grid;grid-template-columns:70px auto 76px;align-items:center;gap:var(--hr-spacing-2)}.hr-station-trace__times .hr-badge{justify-self:start}.hr-service-run__json{max-width:100%;overflow:auto;padding:var(--hr-spacing-4);margin:0;background:var(--hr-color-surface-default);border:1px solid var(--hr-color-border-default);border-radius:var(--hr-radius-sm);font:12px/1.6 monospace}.hr-service-run__json[hidden]{display:none}.hr-service-run__feedback{margin:0;padding:var(--hr-spacing-3) var(--hr-spacing-4);font-size:var(--hr-font-size-xs);color:var(--hr-color-text-secondary)}.hr-service-run__feedback:empty{display:none}@media(max-width:900px){.hr-service-run__header{grid-template-columns:1fr auto}.hr-service-run__route{grid-row:2;grid-column:1 / -1}.hr-service-run__timing{grid-column:1 / -1}.hr-station-trace__stop{grid-template-columns:1fr}}@media(max-width:480px){.hr-service-run__header{grid-template-columns:1fr}.hr-service-run__header>.hr-badge{justify-self:start}.hr-service-run__route{flex-wrap:wrap}.hr-service-run__route>div{flex-basis:100%}.hr-service-run__route-line{display:none}.hr-service-run__actions{justify-content:flex-start}.hr-station-trace__times>div{grid-template-columns:1fr;gap:4px}}

.hr-service-run__details>*{min-width:0}

/* Button refinement: proposed size mappings await Figma component tokens. */
.hr-button{box-sizing:border-box;--button-height:40px;--button-padding-x:var(--hr-spacing-4);--button-font:var(--hr-font-size-sm);--button-line:20px;--button-icon:16px;min-height:var(--button-height);padding:calc((var(--button-height) - var(--button-line)) / 2 - var(--button-width)) var(--button-padding-x);font-size:var(--button-font);line-height:var(--button-line)}
.hr-button--sm{--button-height:32px;--button-padding-x:var(--hr-spacing-3);--button-font:var(--hr-font-size-xs);--button-line:16px;--button-icon:16px}
.hr-button--md{--button-height:40px;--button-padding-x:var(--hr-spacing-4);--button-font:var(--hr-font-size-sm);--button-line:20px;--button-icon:16px}
.hr-button--lg{--button-height:48px;--button-padding-x:var(--hr-spacing-6);--button-font:var(--hr-font-size-md);--button-line:24px;--button-icon:20px}
.hr-button>.hr-icon{width:var(--button-icon);height:var(--button-icon)}.hr-button--icon-right>.hr-icon{order:1}.hr-button--icon-left>.hr-icon{order:-1}
.hr-button--primary:disabled{border-color:var(--hr-color-action-disabled)}
/* Two adjacent focus rings need 10 px between controls; labels need 5 px. */
.hr-field{gap:max(var(--hr-spacing-2),8px)}.hr-actions{gap:max(var(--hr-spacing-3),12px)}

/* Experimental error treatment: existing Figma red.50; no new token. */
.hr-input[aria-invalid=true],.hr-select[aria-invalid=true],.hr-textarea[aria-invalid=true],.hr-multiselect__trigger[aria-invalid=true]{background-color:var(--hr-color-red-50)}
/* Reserve three lines in both states. Longer messages scroll rather than move fields. */
.hr-field__error,.hr-field__error[hidden]{display:block;position:relative;box-sizing:border-box;line-height:18px;height:54px;min-height:54px;overflow:auto;margin:0;padding:0 0 0 24px;color:var(--hr-color-status-error-strong)}
.hr-field__error[hidden]{visibility:hidden}
.hr-field__error::before{content:"";position:absolute;left:0;top:1px;width:16px;height:16px;background:currentColor;mask:url('../icons/lucide/circle-alert.svg') center/contain no-repeat;-webkit-mask:url('../icons/lucide/circle-alert.svg') center/contain no-repeat}
/* Override the shared hidden reset only for the reserved validation message. */
.hr-field__error[hidden]{display:block!important;visibility:hidden}

/* Experimental mappings to existing Figma colours; no tokens are created. */
.hr-select:not(:disabled):has(option[value=""]:checked){color:var(--hr-color-text-placeholder)}
.hr-select option{color:var(--hr-color-text-primary)}
.hr-checkbox{box-sizing:border-box;flex:none;border-radius:2px}
.hr-checkbox:disabled{appearance:none;-webkit-appearance:none;position:relative;border:1px solid var(--hr-color-olive-300);background:var(--hr-color-olive-100);opacity:1}
.hr-checkbox:disabled:checked::after,.hr-checkbox:disabled:indeterminate::after{content:"";position:absolute;background:var(--hr-color-olive-500)}
.hr-checkbox:disabled:checked::after{inset:2px;mask:url('../icons/lucide/check.svg') center/contain no-repeat;-webkit-mask:url('../icons/lucide/check.svg') center/contain no-repeat}
.hr-checkbox:disabled:indeterminate::after{left:3px;right:3px;height:2px;top:7px;mask:none;-webkit-mask:none}
.hr-radio{border-radius:50%}
.hr-checkbox[aria-invalid=true],.hr-radio[aria-invalid=true]{outline:var(--hr-focus-width) solid var(--hr-color-status-error-default);outline-offset:var(--hr-focus-offset)}
.hr-checkbox:focus-visible,.hr-radio:focus-visible{outline:var(--hr-focus-width) solid var(--hr-focus-ring);outline-offset:var(--hr-focus-offset)}
@media(forced-colors:active){.hr-checkbox:disabled{appearance:auto;-webkit-appearance:auto}.hr-checkbox:disabled::after{display:none}}
/* Explicit circular rendering prevents native appearance from squaring outlines. */
.hr-radio{appearance:none;-webkit-appearance:none;box-sizing:border-box;border:1px solid var(--hr-color-border-strong);border-radius:50%;background:var(--hr-color-surface-default);display:inline-grid;place-content:center}
.hr-radio:checked::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--hr-color-action-secondary)}
.hr-radio:disabled{background:var(--hr-color-olive-100);border-color:var(--hr-color-olive-300)}
.hr-radio:disabled:checked::before{background:var(--hr-color-olive-500)}
@media(forced-colors:active){.hr-radio{appearance:auto;-webkit-appearance:auto}.hr-radio::before{display:none}}

/* Badge geometry from exported Figma component tokens. */
.hr-badge{padding-inline:var(--hr-component-badge-padding-inline,var(--hr-spacing-3))}
.hr-badge .hr-icon{stroke-width:var(--hr-component-badge-icon-stroke-width,1.5px)}

/* Compact table status minimum from Figma component.table.status.badge-min-width. */
.hr-table__status>.hr-badge{display:inline-flex;justify-content:center;box-sizing:border-box;min-width:var(--hr-component-table-status-badge-min-width,88px);width:auto}

/* Floating multiselect: popover top layer avoids ancestor clipping without moving form inputs. */
.hr-multiselect__panel{position:fixed;inset:auto;margin:0;box-sizing:border-box;z-index:1000;overflow-y:auto;overscroll-behavior:contain;align-content:start;color:var(--hr-color-text-primary);font-family:var(--hr-font-family-base)}

/* Service run refinement: existing palette mappings are pending Figma approval. */
.hr-service-run__route-line{position:relative;height:1px;background:var(--hr-color-border-default);border:0;flex:1;min-width:24px}
.hr-service-run__route-line::before,.hr-service-run__route-line::after{content:"";position:absolute;top:-2px;width:5px;height:5px;border-radius:50%;background:var(--hr-color-border-default)}.hr-service-run__route-line::before{left:0}.hr-service-run__route-line::after{right:0}
.hr-service-run__footer-row{display:flex;align-items:center;justify-content:space-between;gap:var(--hr-spacing-4);flex-wrap:wrap;padding:0 var(--hr-spacing-4) var(--hr-spacing-4)}
.hr-service-run__footer-row>.hr-service-run__meta,.hr-service-run__footer-row>.hr-service-run__actions{padding:0}.hr-service-run__footer-row>.hr-service-run__actions{margin-left:auto}.hr-service-run__meta abbr{text-decoration:none;cursor:help}
.hr-station-trace__stop{border-left:0}.hr-station-trace__stop::before{left:0;top:0;bottom:0;width:1px;height:auto;border:0;border-radius:0;background:var(--hr-color-border-default)}.hr-station-trace__stop:first-child::before{top:24px}.hr-station-trace__stop:last-child::before{bottom:auto;height:24px}
.hr-trace-marker{display:inline-block;box-sizing:border-box;width:10px;height:10px;border:2px solid var(--hr-color-olive-100);border-radius:50%;background:var(--hr-component-service-run-marker-confirmed, var(--hr-color-olive-600));flex:none}
.hr-station-trace__stop>.hr-trace-marker{position:absolute;left:-5px;top:20px;z-index:1}.hr-station-trace__stop--endpoint>.hr-trace-marker{width:14px;height:14px;left:-7px;top:18px;box-shadow:0 0 0 1px var(--hr-color-border-strong)}
.hr-station-trace__stop--endpoint>.hr-trace-marker::after{content:"";position:absolute;left:2px;right:2px;top:4px;height:2px;background:var(--hr-color-olive-50)}
.hr-trace-marker--past{background:var(--hr-component-service-run-marker-estimated-past, var(--hr-color-olive-400))}.hr-trace-marker--ahead{background:var(--hr-component-service-run-marker-estimated-ahead, var(--hr-color-yellow-500))}.hr-trace-marker--mixed{background:linear-gradient(to bottom,var(--hr-component-service-run-marker-confirmed, var(--hr-color-olive-600)) 50%,var(--hr-component-service-run-marker-estimated-ahead, var(--hr-color-yellow-500)) 50%)}
.hr-trace-legend{display:flex;flex-wrap:wrap;gap:var(--hr-spacing-4);font-size:var(--hr-font-size-xs);color:var(--hr-color-text-secondary);margin-top:var(--hr-spacing-4)}.hr-trace-legend>span{display:inline-flex;gap:var(--hr-spacing-2);align-items:center}

/* Service-run component tokens imported from Figma; fallbacks support older snapshots. */
.hr-service-run{--run-identity-width:var(--hr-component-service-run-identity-width,128px)}
.hr-service-run__header{grid-template-columns:var(--run-identity-width) minmax(0,1fr) auto}
.hr-service-run__identity{box-sizing:border-box;width:var(--run-identity-width);max-width:none}
.hr-service-run__route>div{flex:0 1 auto}
.hr-service-run__route-line{flex:1 1 24px}
.hr-service-run__details .hr-expandable__facts{grid-template-columns:var(--run-identity-width) minmax(0,1fr);column-gap:var(--hr-spacing-4)}
.hr-trace-marker{width:var(--hr-component-service-run-marker-size,12px);height:var(--hr-component-service-run-marker-size,12px)}
.hr-station-trace__stop>.hr-trace-marker{left:calc(var(--hr-component-service-run-marker-size,12px) / -2);top:calc(25px - var(--hr-component-service-run-marker-size,12px) / 2)}
.hr-station-trace__stop--endpoint>.hr-trace-marker{width:var(--hr-component-service-run-marker-endpoint-size,16px);height:var(--hr-component-service-run-marker-endpoint-size,16px);left:calc(var(--hr-component-service-run-marker-endpoint-size,16px) / -2);top:calc(25px - var(--hr-component-service-run-marker-endpoint-size,16px) / 2)}
.hr-station-trace__stop--endpoint>.hr-trace-marker::after{top:calc(50% - 1px)}
.hr-station-trace__platform{display:inline-block;padding:2px var(--hr-spacing-1);margin-right:var(--hr-spacing-1);border-radius:var(--hr-radius-sm);background:var(--hr-color-surface-secondary);color:var(--hr-color-text-primary);font-size:var(--hr-font-size-xs);font-weight:var(--hr-font-weight-semibold)}
@media(max-width:900px){.hr-service-run__header{grid-template-columns:var(--run-identity-width) minmax(0,1fr)}}
@media(max-width:600px){.hr-service-run__details .hr-expandable__facts{grid-template-columns:1fr}}
@media(max-width:480px){.hr-service-run__header{grid-template-columns:1fr}.hr-service-run__route>div{flex-basis:100%}}
