/*
  HITUNE Design System — Theme Master v1
  Phase 5 orchestration layer.

  Flow:
    Theme preset -> Theme Master -> Component Masters -> UI

  Presets own raw values in nightrun-theme.css. This layer exposes a stable,
  editor-facing semantic model without changing the current NightRun output.
*/
:root,
[data-hitune-theme]{
  /* Identity + brand */
  --ht-master-theme-name:var(--ht-theme-name);
  --ht-master-accent:var(--ht-color-accent);
  --ht-master-accent-strong:var(--ht-color-accent-strong);
  --ht-master-accent-secondary:var(--ht-color-accent-secondary);
  --ht-master-accent-tertiary:var(--ht-color-accent-tertiary);
  --ht-master-roadside:var(--ht-color-roadside);

  /* Canvas + type */
  --ht-master-page-bg:var(--ht-page-bg);
  --ht-master-page-bg-alt:var(--ht-page-bg-alt);
  --ht-master-surface-bg:var(--ht-surface-bg);
  --ht-master-surface-bg-strong:var(--ht-surface-bg-strong);
  --ht-master-surface-border:var(--ht-surface-border);
  --ht-master-text-primary:var(--ht-text-primary);
  --ht-master-text-secondary:var(--ht-text-secondary);
  --ht-master-text-muted:var(--ht-text-muted);
  --ht-master-type-body:var(--ht-type-body);
  --ht-master-type-display:var(--ht-type-display);
  --ht-master-type-body-size:var(--ht-type-body-size);
  --ht-master-type-body-line-height:var(--ht-type-body-line-height);
  --ht-master-type-body-letter-spacing:var(--ht-type-body-letter-spacing);
  --ht-master-type-display-size:var(--ht-type-display-size);
  --ht-master-type-display-line-height:var(--ht-type-display-line-height);
  --ht-master-type-display-letter-spacing:var(--ht-type-display-letter-spacing);

  /* Actions */
  --ht-master-action-primary:var(--ht-action-primary);
  --ht-master-action-primary-strong:var(--ht-action-primary-strong);
  --ht-master-action-primary-ink:var(--ht-action-primary-ink);
  --ht-master-action-secondary-bg:var(--ht-action-secondary-bg);
  --ht-master-action-secondary-text:var(--ht-action-secondary-text);
  --ht-master-action-secondary-border:var(--ht-action-secondary-border);
  --ht-master-action-danger:var(--ht-action-danger);
  --ht-master-action-roadside:var(--ht-action-roadside);
  --ht-master-focus:var(--ht-focus);

  /* Controls */
  --ht-master-control-bg:var(--ht-control-bg);
  --ht-master-control-text:var(--ht-control-text);
  --ht-master-control-placeholder:var(--ht-control-placeholder);
  --ht-master-control-border:var(--ht-control-border);
  --ht-master-control-border-hover:var(--ht-control-border-hover);
  --ht-master-control-border-focus:var(--ht-control-border-focus);
  --ht-master-control-radius:var(--ht-control-radius);
  --ht-master-control-height:var(--ht-control-height);

  /* Surfaces */
  --ht-master-card-bg:var(--ht-surface-card);
  --ht-master-card-bg-strong:var(--ht-surface-card-strong);
  --ht-master-card-bg-soft:var(--ht-surface-card-soft);
  --ht-master-card-border:var(--ht-surface-card-border);
  --ht-master-card-border-strong:var(--ht-surface-border-strong);
  --ht-master-surface-text:var(--ht-surface-text);
  --ht-master-surface-muted:var(--ht-surface-muted);
  --ht-master-surface-radius:var(--ht-surface-radius);
  --ht-master-surface-radius-large:var(--ht-surface-radius-large);
  --ht-master-surface-shadow:var(--ht-surface-shadow);
  --ht-master-surface-shadow-elevated:var(--ht-surface-shadow-elevated);

  /* Semantic state */
  --ht-master-status-info:var(--ht-status-info);
  --ht-master-status-success:var(--ht-status-success);
  --ht-master-status-warning:var(--ht-status-warning);
  --ht-master-status-error:var(--ht-status-error);

  /* Navigation */
  --ht-master-nav-bg:var(--ht-nav-bg);
  --ht-master-nav-text:var(--ht-nav-text);
  --ht-master-nav-muted:var(--ht-nav-muted);
  --ht-master-nav-active:var(--ht-nav-active);
  --ht-master-nav-active-ink:var(--ht-nav-active-ink);
  --ht-master-nav-active-bg:var(--ht-nav-active-bg);
  --ht-master-nav-active-border:var(--ht-nav-active-border);
  --ht-master-nav-border:var(--ht-nav-border);
  --ht-master-nav-hover-bg:var(--ht-nav-hover-bg);
  --ht-master-nav-radius:var(--ht-nav-radius);

  /* Dialog / overlay */
  --ht-master-overlay-bg:var(--ht-overlay-bg);
  --ht-master-overlay-blur:var(--ht-overlay-blur);
  --ht-master-dialog-bg:var(--ht-dialog-bg);
  --ht-master-dialog-border:var(--ht-dialog-border);
  --ht-master-dialog-radius:var(--ht-dialog-radius);
  --ht-master-dialog-shadow:var(--ht-dialog-shadow);

  /* Data presentation */
  --ht-master-table-bg:var(--ht-table-bg);
  --ht-master-table-head-bg:var(--ht-table-head-bg);
  --ht-master-table-head-text:var(--ht-table-head-text);
  --ht-master-table-border:var(--ht-table-border);
  --ht-master-table-text:var(--ht-table-text);
  --ht-master-table-hover-bg:var(--ht-table-hover-bg);

  /* Motion */
  --ht-master-motion-quick:var(--ht-motion-quick);
  --ht-master-motion-normal:var(--ht-motion-normal);
  --ht-master-motion-smooth:var(--ht-motion-smooth);
  --ht-master-motion-ease:var(--ht-motion-ease);
  --ht-master-tour-motion-fade:var(--ht-tour-motion-fade);
  --ht-master-tour-motion-popover:var(--ht-tour-motion-popover);
  --ht-master-tour-motion-travel:var(--ht-tour-motion-travel);
  --ht-master-tour-motion-route:var(--ht-tour-motion-route);
  --ht-master-tour-motion-ease:var(--ht-tour-motion-ease);
  --ht-master-tour-spotlight-radius:var(--ht-tour-spotlight-radius);
  --ht-master-tour-spotlight-border-width:var(--ht-tour-spotlight-border-width);
  --ht-master-tour-sidebar-spotlight-inset-x:var(--ht-tour-sidebar-spotlight-inset-x);
  --ht-master-tour-spotlight-shadow:var(--ht-tour-spotlight-shadow);
  --ht-master-tour-popover-radius:var(--ht-tour-popover-radius);
  --ht-master-tour-popover-shadow:var(--ht-tour-popover-shadow);
  --ht-master-tour-popover-transition-y:var(--ht-tour-popover-transition-y);
  --ht-master-tour-popover-transition-scale:var(--ht-tour-popover-transition-scale);
  --ht-master-tour-route-radius:var(--ht-tour-route-radius);
  --ht-master-tour-route-transition-y:var(--ht-tour-route-transition-y);
  --ht-master-tour-route-transition-scale:var(--ht-tour-route-transition-scale);
  --ht-master-tour-nav-pulse-duration:var(--ht-tour-nav-pulse-duration);
  --ht-master-tour-nav-pulse-count:var(--ht-tour-nav-pulse-count);
  --ht-master-tour-nav-pulse-scale:var(--ht-tour-nav-pulse-scale);
  --ht-master-tour-nav-rest-shadow:var(--ht-tour-nav-rest-shadow);
  --ht-master-tour-nav-peak-shadow:var(--ht-tour-nav-peak-shadow);
  --ht-master-tour-nav-guide-duration:var(--ht-tour-nav-guide-duration);
  --ht-master-tour-nav-guide-scale:var(--ht-tour-nav-guide-scale);
  --ht-master-tour-nav-guide-offset:var(--ht-tour-nav-guide-offset);
  --ht-master-tour-destination-pulse-duration:var(--ht-tour-destination-pulse-duration);
  --ht-master-nav-indicator-motion:var(--ht-nav-indicator-motion);
  --ht-master-nav-indicator-ease:var(--ht-nav-indicator-ease);
  --ht-master-nav-indicator-glow:var(--ht-nav-indicator-glow);
  --ht-master-nav-indicator-left:var(--ht-nav-indicator-left);
  --ht-master-nav-indicator-width:var(--ht-nav-indicator-width);
  --ht-master-nav-indicator-height:var(--ht-nav-indicator-height);
  --ht-master-nav-indicator-radius:var(--ht-nav-indicator-radius);
  --ht-master-nav-page-motion:var(--ht-nav-page-motion);
  --ht-master-nav-page-shift-x:var(--ht-nav-page-shift-x);
  --ht-master-nav-page-shift-y:var(--ht-nav-page-shift-y);
  --ht-master-nav-selection-shift:var(--ht-nav-selection-shift);
  --ht-master-garage-vehicle-active-brightness:var(--ht-garage-vehicle-active-brightness);
  --ht-master-garage-vehicle-inactive-brightness:var(--ht-garage-vehicle-inactive-brightness);
  --ht-master-garage-vehicle-active-saturation:var(--ht-garage-vehicle-active-saturation);
  --ht-master-garage-vehicle-inactive-saturation:var(--ht-garage-vehicle-inactive-saturation);
  --ht-master-garage-vehicle-active-overlay-bg:var(--ht-garage-vehicle-active-overlay-bg);
  --ht-master-garage-vehicle-inactive-overlay-bg:var(--ht-garage-vehicle-inactive-overlay-bg);
  --ht-master-garage-vehicle-info-bg:var(--ht-garage-vehicle-info-bg);
  --ht-master-garage-vehicle-info-border:var(--ht-garage-vehicle-info-border);
  --ht-master-garage-vehicle-info-blur:var(--ht-garage-vehicle-info-blur);
  --ht-master-garage-vehicle-info-max-width:var(--ht-garage-vehicle-info-max-width);
  /* Complete component-master bridge */
  --ht-master-action-outline:var(--ht-action-outline);
  --ht-master-action-danger-bg:var(--ht-action-danger-bg);
  --ht-master-action-roadside-bg:var(--ht-action-roadside-bg);
  --ht-master-surface-pad:var(--ht-surface-pad);
  --ht-master-surface-pad-large:var(--ht-surface-pad-large);
  --ht-master-surface-pad-mobile:var(--ht-surface-pad-mobile);
  --ht-master-surface-pad-large-mobile:var(--ht-surface-pad-large-mobile);
  --ht-master-type-weight-regular:var(--ht-type-weight-regular);
  --ht-master-type-weight-medium:var(--ht-type-weight-medium);
  --ht-master-type-weight-bold:var(--ht-type-weight-bold);
  --ht-master-type-weight-heavy:var(--ht-type-weight-heavy);
  --ht-master-control-focus-ring:var(--ht-control-focus-ring);
  --ht-master-control-error-ring:var(--ht-control-error-ring);
  --ht-master-notice-bg:var(--ht-notice-bg);
  --ht-master-notice-border:var(--ht-notice-border);
  --ht-master-notice-text:var(--ht-notice-text);
  --ht-master-notice-title:var(--ht-notice-title);
  --ht-master-notice-radius:var(--ht-notice-radius);
  --ht-master-status-bg:var(--ht-status-bg);
  --ht-master-status-border:var(--ht-status-border);
  --ht-master-status-text:var(--ht-status-text);
  --ht-master-dialog-width:var(--ht-dialog-width);
  --ht-master-dialog-pad:var(--ht-dialog-pad);
  --ht-master-table-radius:var(--ht-table-radius);
  --ht-master-table-cell-pad:var(--ht-table-cell-pad);
  --ht-master-list-gap:var(--ht-list-gap);
  --ht-master-list-pad:var(--ht-list-pad);

}
