/* EmiRaport — wspólne style kart raportu dla stron publicznych i SVG */
.emi-raport-wrap { text-align: left; }
.emi-raport__title { font-size: 1.25rem; font-weight: 600; margin-bottom: calc(var(--spacing) * 2); }
.emi-raport__meta { display: flex; flex-wrap: wrap; gap: calc(var(--spacing) * 4); font-size: .85rem; color: var(--color-muted-foreground, #6b7280); margin-bottom: calc(var(--spacing) * 4); }
.emi-raport__meta dt { font-weight: 600; }
.emi-raport__traits { display: grid; gap: calc(var(--spacing) * 3); }
.emi-raport__trait { border: 1px solid var(--color-border, #e5e7eb); border-radius: .5rem; padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4); }
.emi-raport__trait-title { font-weight: 600; margin-bottom: calc(var(--spacing) * 1); }
.emi-raport__nota { font-size: .8rem; color: var(--color-muted-foreground, #6b7280); }
.emi-raport__trait-def { font-size: .9rem; line-height: 1.5; margin: 0; }
.emi-raport__trait-detail { font-size: .9rem; line-height: 1.5; margin: calc(var(--spacing) * 2) 0 0; color: var(--color-muted-foreground, #6b7280); }
.emi-raport__empty { color: var(--color-muted-foreground, #6b7280); }
.emi-raport__states { display: grid; gap: calc(var(--spacing) * 3); margin-top: calc(var(--spacing) * 4); }
.emi-raport__section-title { font-size: 1.05rem; font-weight: 600; margin-top: calc(var(--spacing) * 2); }
.emi-raport__section-note { font-size: .8rem; color: var(--color-muted-foreground, #6b7280); margin-bottom: calc(var(--spacing) * 1); }
.emi-raport__trait--primary { border-color: var(--color-primary, #2563eb); border-width: 2px; background: color-mix(in srgb, var(--color-primary, #2563eb) 6%, transparent); }
.emi-raport__state-line { font-size: .9rem; line-height: 1.5; margin-top: calc(var(--spacing) * 0.6); }
.emi-raport__state-detail { font-size: .9rem; line-height: 1.5; margin: calc(var(--spacing) * 0.8) 0 0 calc(var(--spacing) * 4); color: var(--color-muted-foreground, #6b7280); }
.emi-raport__state-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--spacing) * 3); }
.emi-raport__state-tile { border: 1px solid var(--color-border, #e5e7eb); border-radius: .4rem; padding: calc(var(--spacing) * 3); background: color-mix(in srgb, var(--color-muted, #f3f4f6) 35%, transparent); }
.emi-raport__state-tile--body { border-inline-start: 3px solid var(--color-primary, #2563eb); }
.emi-raport__state-tile--mind { border-inline-start: 3px solid var(--color-chart-2, var(--color-ring, #7c3aed)); }
.emi-raport__state-kind { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted-foreground, #6b7280); margin: 0 0 calc(var(--spacing) * 0.8); }
.emi-raport__state-title { font-size: .95rem; font-weight: 650; margin: 0 0 calc(var(--spacing) * 1.4); }
.emi-raport__state-tile .emi-raport__state-line { margin: 0; }
.emi-raport__state-tile .emi-raport__state-detail { margin-inline-start: 0; }
@media (max-width: 640px) {
  .emi-raport__state-pair { grid-template-columns: 1fr; }
}
.app-choice-card { cursor: pointer; }
.app-choice-card input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-choice-card:has(input[type='radio']:checked) {
  border-color: var(--color-primary, #111827);
  background-color: color-mix(in srgb, var(--color-primary, #111827) 8%, transparent);
}
.app-choice-card:has(input[type='radio']:disabled) {
  cursor: not-allowed;
  opacity: .55;
}
.app-choice-card:has(input[type='radio']:focus-visible) {
  outline: 2px solid var(--color-ring, #2563eb);
  outline-offset: 2px;
}
.emitype-level-card {
  min-height: calc(var(--spacing) * 4.5);
  flex-direction: column;
  justify-content: space-between;
  line-height: 1;
}
.emitype-level-card-large {
  min-height: calc(var(--spacing) * 7.5);
  padding: calc(var(--spacing) * 1);
}
.emitype-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--color-primary);
  border-top-color: transparent;
  border-radius: 999px;
  animation: app-spin .8s linear infinite;
}
@keyframes app-spin { to { transform: rotate(360deg); } }
.emitype-loading-spinner--small {
  width: 1.25rem;
  height: 1.25rem;
}
.app-header__loading {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 1.25rem;
  margin-inline-start: auto;
  margin-inline-end: .5rem;
}
.app-header__loading svg {
  width: 1.25rem;
  height: 1.25rem;
}
.emitype-level-grid,
.emitype-level-grid-large {
  display: grid;
  gap: calc(var(--spacing) * 1);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.emitype-level-grid {
  gap: calc(var(--spacing) * 0.5);
}
@media (min-width: 48rem) {
  .emitype-level-grid,
  .emitype-level-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .emitype-level-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .emitype-level-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Application-owned layout primitives. Basecoat supplies components, not utility geometry. */
.app-shell {
  min-height: 100vh;
  overflow-x: hidden;
}
.app-main {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
  margin-left: var(--sidebar-width, 16rem);
  width: calc(100% - var(--sidebar-width, 16rem));
}
.app-main-content {
  position: relative;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}
.app-content-inner {
  box-sizing: border-box;
  min-height: 100%;
  padding: clamp(1rem, 2vw, 3rem);
}
.app-main-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  display: flex;
  min-height: 3.5rem;
  flex: 0 0 3.5rem;
  align-items: center;
  overflow: visible;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  background: var(--color-background, #fff);
}
.app-main-header__inner {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 3.5rem;
  align-items: center;
  gap: .5rem;
  padding-inline: 1rem;
}
.app-main-header__toggle { display: none; }
.theme-toggle-icon--light { display: inline-block; }
.theme-toggle-icon--dark { display: none; }
html.dark .theme-toggle-icon--light { display: none; }
html.dark .theme-toggle-icon--dark { display: inline-block; }
.app-main-header__controls {
  display: flex;
  min-width: 0;
  flex-shrink: 0;
  align-items: center;
  gap: .5rem;
  margin-inline-start: auto;
}
.app-loading-overlay {
  position: absolute;
  inset: .75rem .75rem auto auto;
  z-index: 20;
}
.app-loading-content,
.app-cluster--center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.app-sidebar { z-index: 40; }
.app-sidebar__nav { overflow: hidden; }
.app-sidebar__scroll { overflow-y: auto; }
.app-nav-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-md, .375rem);
  transition: background-color .15s ease, color .15s ease;
}
.app-nav-link__icon { display: inline-flex; flex: 0 0 auto; width: 1rem; height: 1rem; }
.app-nav-link__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nav-link:hover { background: var(--color-muted, #f3f4f6); }
.app-nav-link:focus-visible { outline: 2px solid var(--color-ring, #2563eb); outline-offset: 2px; }
.app-nav-link--active { background: var(--color-muted, #f3f4f6); color: var(--color-foreground, #111827); }
.app-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}
.app-page--narrow { max-width: 48rem; }
.app-page--wide { max-width: 80rem; }
.app-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.app-stack--tight { gap: .5rem; }
.app-stack--sm { gap: .75rem; }
.app-stack--compact { gap: 1rem; }
.app-stack--section,
.app-stack--spacious { gap: 2rem; }
.app-header { display: flex; flex-direction: column; gap: 1rem; }
.app-header__copy { display: flex; flex-direction: column; gap: .5rem; }
.app-header--toolbar { justify-content: space-between; }
.app-cluster { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.app-cluster--inline { display: inline-flex; }
.app-cluster--between { justify-content: space-between; }
.app-cluster--end { justify-content: flex-end; }
.app-cluster--actions { gap: .5rem; }
.app-cluster--tags { gap: .25rem; }
.app-cluster--meta { gap: .75rem; }
.app-cluster__push-end { margin-inline-start: auto; }
.app-grid,
.app-card-grid,
.app-stat-grid,
.app-media-grid { display: grid; gap: 1.5rem; }
.app-grid--2,
.app-card-grid--2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.app-grid--3,
.app-card-grid--3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.app-grid--4,
.app-stat-grid--4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.app-card-link { display: block; }
.app-card--content { display: flex; flex-direction: column; }
.app-card--content > section { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1rem; }
.app-card--content .app-card__heading { flex: 1 1 auto; }
.app-card__title-icon svg,
.app-card__type-icon,
.app-search__clear-icon,
.app-search__filter-icon { width: 1rem; height: 1rem; }
.app-search__icon svg { width: 1.25rem; height: 1.25rem; }
.app-search__clear-icon,
.app-search__filter-icon { flex: 0 0 auto; }
.app-card__title--content { font-size: 1.125rem; font-weight: 600; color: var(--color-foreground, #111827); transition: color .15s ease; }
.app-card__description { margin: 0; font-size: .875rem; line-height: 1.625; color: var(--color-muted-foreground, #6b7280); }
.app-card__meta--content { font-size: .75rem; color: var(--color-muted-foreground, #6b7280); }
.app-card__meta--content > * { min-width: 0; }
.app-card--fill { height: 100%; }
.app-card__title { display: flex; align-items: center; gap: .5rem; }
.app-card__heading { display: flex; flex-direction: column; gap: .5rem; }
.app-card__meta,
.app-meta-item { display: inline-flex; align-items: center; gap: .25rem; }
.app-card__meta { gap: .75rem; margin-bottom: .75rem; }
.app-card__icon { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; flex: 0 0 auto; }
.app-form { display: flex; flex-direction: column; gap: 1.5rem; }
.app-form--compact { gap: 1rem; }
.app-form--spacious { gap: 2rem; }
.app-form__field { display: grid; gap: .5rem; }
.app-form__field--grow { min-width: 0; flex: 1 1 0%; }
.app-form__section { display: grid; gap: 1rem; }
.app-form__grid { display: grid; gap: 1rem; }
.app-form__grid--2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.app-form__grid--3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.app-form__full { grid-column: 1 / -1; }
.app-form__label { display: block; margin-bottom: .5rem; }
.app-form__help { display: block; margin-top: .25rem; }
.app-form__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--color-border, #e5e7eb); }
.app-form__actions--end { justify-content: flex-end; }
.app-form__actions--split { justify-content: space-between; }
.app-choice-row,
.app-date-row { display: flex; gap: .75rem; }
.app-choice-row > *,
.app-date-row > * { min-width: 0; flex: 1 1 0%; }
.app-choice-grid--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.app-table-wrap { width: 100%; overflow-x: auto; }
.app-table { width: 100%; min-width: 42rem; border-collapse: collapse; }
.app-table__text-stack { display: flex; flex-direction: column; gap: .25rem; }
.app-table__link { color: var(--color-foreground, #111827); transition: color .15s ease; }
.app-table__link:hover,
.app-table__link:focus-visible { color: var(--color-foreground, #111827); }
.app-sync-loading { margin-bottom: 1rem; }
.app-sync-loading__panel { display: flex; align-items: center; gap: .5rem; padding: .75rem; border: 1px solid var(--color-border, #e5e7eb); border-radius: var(--radius-md, .375rem); background: var(--color-muted, #f3f4f6); }
.app-sync-loading__spinner { width: 1rem; height: 1rem; color: var(--color-muted-foreground, #6b7280); animation: app-spin .8s linear infinite; }
.app-sync-loading__spinner-track { opacity: .25; }
.app-sync-loading__spinner-head { opacity: .75; }
.app-sync-status { margin-bottom: 1rem; }
.app-alert--spaced { margin-top: 1rem; }
.app-header--statistics { margin-bottom: 2rem; }
.app-statistics__tiles { margin-bottom: 2rem; gap: 1rem; }
.app-statistics__charts { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.app-statistics__chart-header { margin-bottom: 1rem; }
.app-statistics__data-list { display: grid; gap: .5rem; margin: 0; }
.app-statistics__data-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: baseline; padding-block: .5rem 1.25rem; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.app-statistics__data-row:last-child { border-bottom: 0; }
.app-statistics__data-row dt { min-width: 0; color: var(--color-muted-foreground, #6b7280); }
.app-statistics__data-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.app-statistics__data-row dd > span { display: block; text-align: end; }
.app-statistics__progress { position: absolute; inset-inline: 0; inset-block-end: .5rem; display: block; width: 100%; height: .5rem; accent-color: var(--color-primary, #2563eb); }
@media (min-width: 64rem) {
  .app-statistics__charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.app-table__head-cell,
.app-table__cell { padding: .75rem 1rem; text-align: left; vertical-align: top; }
.app-table__head-cell { font-weight: 600; }
.app-table__cell--center { text-align: center; }
.app-table__body { display: table-row-group; }
.app-table__body .app-table__row { border-top: 1px solid var(--color-border, #e5e7eb); }
.app-pagination { display: flex; justify-content: center; width: 100%; }
.app-pagination__items { display: flex; align-items: center; gap: .5rem; }
.app-pagination__ellipsis { display: inline-flex; min-width: 2.25rem; min-height: 2.25rem; align-items: center; justify-content: center; }
.app-summary { text-align: center; }
.app-empty,
.app-state--centered { padding: 3rem 1rem; text-align: center; }
.app-empty__icon { display: block; margin: 0 auto 1rem; }
.app-panel { border: 1px solid var(--color-border, #e5e7eb); border-radius: var(--radius-lg, .5rem); padding: 1.5rem; }
.app-row,
.app-list-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.app-row--highlight { padding: 1rem; border-radius: var(--radius-lg, .5rem); background: var(--color-muted, #f3f4f6); }
.app-row__body,
.app-list-row__body { min-width: 0; flex: 1 1 auto; }
.app-media__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.app-media__fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-media__fallback { display: flex; height: 100%; align-items: center; justify-content: center; }
.app-badge--overflow { display: inline-flex; align-items: center; padding: .25rem .5rem; border-radius: 999px; background: var(--color-muted, #f3f4f6); color: var(--color-muted-foreground, #6b7280); font-size: .75rem; }
.app-section-divider { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border, #e5e7eb); }
.app-state-page {
  display: flex;
  min-height: 20rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.app-state-page__card { width: min(100%, 36rem); text-align: center; }
.app-state-page__icon { width: 4rem; height: 4rem; margin: 0 auto 1.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-muted, #f3f4f6); }
.app-state-page__actions { display: grid; gap: .75rem; }
.app-state-page__divider { margin: 1.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--color-border, #e5e7eb); }
.app-stat__icon { width: 3rem; height: 3rem; margin: 0 auto .5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-muted, #f3f4f6); }
.app-media-grid--2 { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
.app-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; font-size: .875rem; color: var(--color-muted-foreground, #6b7280); }
.app-breadcrumb__link {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.app-breadcrumb__link:hover,
.app-breadcrumb__link:focus-visible,
.app-breadcrumb__current { color: var(--color-foreground, #111827); }
.app-control--full { width: 100%; }
.app-dialog--narrow { width: min(100%, 36rem); }
.app-search__form { display: flex; flex-direction: column; gap: 1rem; }
.app-search__type-label { display: block; width: 100%; padding: .35rem .75rem; border-radius: var(--radius-sm, .25rem); }
.app-search__type-label--active { background: transparent; color: inherit; }
.app-search__filters { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem; border-radius: var(--radius-lg, .5rem); background: var(--color-muted, #f3f4f6); }
.app-search__filter { display: inline-flex; align-items: center; gap: .5rem; }
.app-search__results { margin-top: 2rem; }
.app-search__filters > .app-choice-card { min-width: min(100%, 8rem); flex: 1 1 8rem; }
.app-search__field { position: relative; }
.app-search__field > .input { width: 100%; }
.app-search__icon,
.app-search__loading { position: absolute; inset-block: 0; display: flex; align-items: center; pointer-events: none; }
.app-search__icon { inset-inline-start: 1rem; }
.app-search__loading { inset-inline-end: 1rem; }
.app-search__filter-remove { margin-inline-start: .25rem; }
.app-search__results-fragment { display: flex; flex-direction: column; gap: 1.5rem; }
.app-search__input { width: 100%; padding-inline: 3rem; }
.app-search__clear { position: absolute; inset-block: 0; inset-inline-end: .75rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--color-muted-foreground, #6b7280); }
.app-search__clear:hover,
.app-search__clear:focus-visible { color: var(--color-foreground, #111827); }
.app-search__clear svg { width: 1rem; height: 1rem; }
.app-search__suggestions { position: absolute; inset-inline: 0; inset-block-start: calc(100% + .25rem); z-index: 10; max-height: 12rem; overflow-y: auto; border: 1px solid var(--color-border, #e5e7eb); border-radius: var(--radius-lg, .5rem); background: var(--color-background, #fff); box-shadow: 0 .5rem 1rem rgb(0 0 0 / .12); }
.app-search__suggestion { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .75rem; text-align: start; }
.app-search__suggestion-count { font-size: .75rem; color: var(--color-muted-foreground, #6b7280); }
.app-search__tag-label { margin-bottom: .25rem; font-size: .75rem; font-weight: 500; color: var(--color-muted-foreground, #6b7280); }
.app-search__selected-count { font-size: .75rem; color: var(--color-muted-foreground, #6b7280); }
.app-card__title-icon { display: inline-flex; flex: 0 0 auto; color: var(--color-muted-foreground, #6b7280); }
.app-card__type-icon { width: 2rem; height: 2rem; color: var(--color-muted-foreground, #6b7280); }
.app-language__menu { position: absolute; inset-inline-end: 0; inset-block-start: 100%; margin-top: .5rem; width: 8rem; z-index: 10; }
.app-language__option { display: flex; width: 100%; align-items: center; gap: .5rem; padding: .5rem .75rem; text-align: left; }
.app-footer__note { text-align: center; font-size: .875rem; color: var(--color-muted-foreground, #6b7280); }
.app-row--start { align-items: flex-start; }
.app-media-grid--2 > * { min-width: 0; }
.app-level-card__header { margin-bottom: 1rem; align-items: flex-start; }
.app-level-card__color { width: 1rem; height: 1rem; flex: 0 0 auto; border-radius: 999px; }
.app-level-card__identity { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; }
.app-level-card__name { min-width: 0; }
.app-level-card__price { margin-bottom: 1rem; }
.app-level-card__price-value { font-size: 1.5rem; font-weight: 700; }
.app-level-card__description,
.app-level-card__features { margin-bottom: 1rem; }
.app-level-card__limits { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.app-level-card__limit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.app-level-card__features-list { display: flex; flex-direction: column; gap: .25rem; font-size: .875rem; color: var(--color-muted-foreground, #6b7280); }
.app-level-card__feature { display: inline-flex; align-items: center; gap: .5rem; }
.app-level-card__actions { display: flex; gap: .5rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--color-border, #e5e7eb); }
.app-level-card__edit { flex: 1 1 0%; }
.app-card--clip { overflow: hidden; }
.app-stat-card { text-align: center; }
.app-stat-card__value { font-size: 1.5rem; font-weight: 700; }
.app-stat-card__label { font-size: .875rem; color: var(--color-muted-foreground, #6b7280); }
.app-state__message { margin-top: .5rem; }
.app-state__result { min-height: 3rem; }
.app-state__retry { margin-top: 1rem; }
.app-list { display: flex; flex-direction: column; gap: .5rem; }
.app-list-row--bordered { padding-block: .25rem; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.app-control--resize-y { resize: vertical; }
.app-control--color { width: 100%; height: 2.5rem; }
.app-level-card__features-heading { margin-bottom: .5rem; }
.app-level-modal-actions { padding-top: 1rem; }
.app-level-table__identity { display: inline-flex; align-items: center; gap: .5rem; }
.app-level-table__color { width: .75rem; height: .75rem; flex: 0 0 auto; border-radius: 999px; }
.app-level-table__code { border-radius: .25rem; background: var(--color-muted, #f3f4f6); padding: .25rem .5rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .875rem; }
.app-empty__title { margin-bottom: .5rem; }
.app-empty__message { margin-bottom: 1rem; }
.app-page__title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.025em; }
.app-header__description { margin: 0; font-size: 1.125rem; color: var(--color-muted-foreground, #6b7280); }
.app-heading--section { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 600; }
.app-heading--card { margin: 0; font-size: 1.125rem; font-weight: 600; }
.app-text--small { font-size: .875rem; }
.app-text--tiny { font-size: .75rem; }
.app-text--muted { color: var(--color-muted-foreground, #6b7280); }
.app-text--danger { color: var(--color-destructive, #dc2626); }
.app-text--strong { font-weight: 600; }
.app-control--code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .875rem; }
.app-text-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.app-text-row--compact { padding-block: .25rem; }
.app-svg-results { display: grid; gap: 1.5rem; }
.app-svg-results__item { min-width: 0; }
.app-svg-results__title { margin: 0 0 .5rem; font-weight: 600; color: var(--color-foreground, #111827); }
.app-svg-results__frame { max-height: 70vh; overflow: auto; border: 1px solid var(--color-border, #e5e7eb); padding: .5rem; background: var(--color-background, #fff); }
.app-svg-results__meta { margin-top: 1rem; font-size: .875rem; color: var(--color-muted-foreground, #6b7280); }
.app-svg-results--reports { margin-top: 1.5rem; text-align: left; }
.app-svg-results__report { margin-top: 1.5rem; text-align: left; }

@media (min-width: 40rem) {
  .app-header--toolbar { flex-direction: row; align-items: center; }
  .app-cluster--responsive-actions { flex-direction: row; }
  .app-form__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid--2,
  .app-card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-form__grid--3,
  .app-stat-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .app-grid--3,
  .app-card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-form__grid--3,
  .app-stat-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-svg-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 80rem) {
  .app-stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .app-sidebar + .app-main { width: 100%; margin-left: 0; }
  .app-main-header__toggle { display: inline-flex; }
}
@media (min-width: 40rem) {
  .app-media-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.app-history-chart {
  min-width: 0;
  overflow: hidden;
}
.app-history-chart > svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 32rem;
  max-height: 70vh;
  margin-inline: auto;
}
.app-history-chart-grid.app-media-grid--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 65rem) {
  .app-history-chart-grid.app-media-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
