/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
:root {
  --seed-bg: #F6F7F9;
  --seed-text: #1E2230;
  --seed-brand: #CC071E;
  --seed-accent: #C1061C;
  --seed-action: #CC071E;
  --seed-on-action: #FFFFFF;
  --seed-band-accent: #FF7A88;
  color-scheme: light;
  --bg: var(--seed-bg);
  --surface: #FFFFFF;
  --surface-2: var(--seed-bg);
  @supports (color: color-mix(in lab, red, red)) {
    --surface-2: color-mix(in srgb, var(--seed-bg), var(--seed-text) 4%);
  }
  --surface-accent: var(--seed-bg);
  @supports (color: color-mix(in lab, red, red)) {
    --surface-accent: color-mix(in srgb, var(--seed-bg), var(--seed-accent) 8%);
  }
  --secondary-hover: var(--seed-bg);
  @supports (color: color-mix(in lab, red, red)) {
    --secondary-hover: color-mix(in srgb, var(--seed-bg), var(--seed-accent) 14%);
  }
  --secondary-pressed: var(--seed-bg);
  @supports (color: color-mix(in lab, red, red)) {
    --secondary-pressed: color-mix(in srgb, var(--seed-bg), var(--seed-accent) 20%);
  }
  --border: var(--seed-bg);
  @supports (color: color-mix(in lab, red, red)) {
    --border: color-mix(in srgb, var(--seed-bg), var(--seed-text) 13%);
  }
  --control-border: var(--seed-bg);
  @supports (color: color-mix(in lab, red, red)) {
    --control-border: color-mix(in srgb, var(--seed-bg), var(--seed-text) 50%);
  }
  --text: var(--seed-text);
  --text-secondary: var(--seed-bg);
  @supports (color: color-mix(in lab, red, red)) {
    --text-secondary: color-mix(in srgb, var(--seed-bg), var(--seed-text) 80%);
  }
  --text-muted: var(--seed-bg);
  @supports (color: color-mix(in lab, red, red)) {
    --text-muted: color-mix(in srgb, var(--seed-bg), var(--seed-text) 66%);
  }
  --brand: var(--seed-brand);
  --accent: var(--seed-accent);
  --action: var(--seed-action);
  --action-hover: var(--seed-action);
  @supports (color: color-mix(in lab, red, red)) {
    --action-hover: color-mix(in srgb, var(--seed-action), black 10%);
  }
  --action-pressed: var(--seed-action);
  @supports (color: color-mix(in lab, red, red)) {
    --action-pressed: color-mix(in srgb, var(--seed-action), black 20%);
  }
  --on-action: var(--seed-on-action);
  --focus: var(--seed-accent);
  --header-bg: var(--surface);
  @supports (color: color-mix(in lab, red, red)) {
    --header-bg: color-mix(in srgb, var(--surface) 90%, transparent);
  }
  --header-line: var(--border);
  --glow: var(--seed-brand);
  @supports (color: color-mix(in lab, red, red)) {
    --glow: color-mix(in srgb, var(--seed-brand) 12%, transparent);
  }
  --glow-strong: var(--seed-brand);
  @supports (color: color-mix(in lab, red, red)) {
    --glow-strong: color-mix(in srgb, var(--seed-brand) 30%, transparent);
  }
  --icon-tile-bg: var(--seed-accent);
  @supports (color: color-mix(in lab, red, red)) {
    --icon-tile-bg: color-mix(in srgb, var(--seed-accent) 8%, transparent);
  }
  --icon-tile-border: var(--seed-accent);
  @supports (color: color-mix(in lab, red, red)) {
    --icon-tile-border: color-mix(in srgb, var(--seed-accent) 35%, transparent);
  }
  --secondary-border: var(--seed-accent);
  @supports (color: color-mix(in lab, red, red)) {
    --secondary-border: color-mix(in srgb, var(--seed-accent) 40%, transparent);
  }
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-pop: 0 8px 32px var(--seed-text);
  @supports (color: color-mix(in lab, red, red)) {
    --shadow-pop: 0 8px 32px color-mix(in srgb, var(--seed-text) 16%, transparent);
  }
  --eyebrow: var(--accent);
  --footer-bg: var(--surface);
  --cell-bg: var(--surface);
  --logo-filter: none;
  --band: var(--seed-text);
  --band-line: transparent;
  --on-band: #FFFFFF;
  --on-band-muted: color-mix(in srgb, #FFFFFF 80%, transparent);
  --band-accent: var(--seed-band-accent);
  --band-action: var(--seed-band-accent);
  --band-action-hover: var(--seed-band-accent);
  @supports (color: color-mix(in lab, red, red)) {
    --band-action-hover: color-mix(in srgb, var(--seed-band-accent), white 18%);
  }
  --band-action-pressed: var(--seed-band-accent);
  @supports (color: color-mix(in lab, red, red)) {
    --band-action-pressed: color-mix(in srgb, var(--seed-band-accent), black 8%);
  }
  --on-band-action: var(--seed-text);
  --whatsapp: #1F8F42;
  --bg-plain: var(--surface);
  --field-bg: var(--surface);
  --strong: var(--seed-text);
  --on-strong: #FFFFFF;
  --warn-bg: #FFF3D6;
  --warn-text: #8A5A00;
  --warn-line: #FDE3A7;
  --warn-icon: #F5C842;
  --tag-bg: #FFF3D6;
  --tag-text: #8A5A00;
  --icon-red: #DC4C4C;
  --icon-green: #03B86D;
  --shadow-row: 0 1px 5px var(--seed-text);
  @supports (color: color-mix(in lab, red, red)) {
    --shadow-row: 0 1px 5px color-mix(in srgb, var(--seed-text) 12%, transparent);
  }
  --backdrop: var(--seed-text);
  @supports (color: color-mix(in lab, red, red)) {
    --backdrop: color-mix(in srgb, var(--seed-text) 60%, transparent);
  }
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}
:root {
  --radius: 12px;
  --radius-btn: 8px;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg-plain);
  color: var(--text);
  font-family: Inter, "Inter Fallback", system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.has-bar {
  padding-bottom: 104px;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select {
  font: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
svg.lucide {
  width: 1em;
  height: 1em;
  flex: none;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding-inline: 32px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  background: var(--action);
  color: var(--on-action);
}
.skip:focus {
  top: 12px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--header-line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color .15s;
}
.topbar.is-scrolled {
  border-bottom-color: var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}
.brand img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 200px;
  object-fit: contain;
  object-position: left;
}
.brand__text {
  color: var(--text);
  font-weight: 700;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}
.nav a:hover, .nav a.is-active {
  color: var(--accent);
}
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
  text-align: center;
}
h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.home h1 {
  font-size: clamp(30px, 5vw, 36px);
}
.home p {
  margin: 8px 0 32px;
  color: var(--text-muted);
  font-size: 18px;
}
.segments {
  display: flex;
  gap: 26px;
  margin-bottom: 32px;
}
.segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 168px;
  height: 125px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  transition: .18s;
}
.segment svg.lucide {
  width: 38px;
  height: 38px;
  color: var(--brand);
  stroke-width: 1.6;
}
.segment:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-row);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s, border-color .15s;
}
.btn--soft {
  border-color: var(--secondary-border);
  background: var(--surface-accent);
  color: var(--text);
}
.btn--soft:hover {
  border-color: var(--accent);
  background: var(--secondary-hover);
}
.btn--accent {
  background: var(--action);
  color: var(--on-action);
}
.btn--accent:hover {
  background: var(--action-hover);
}
.btn--primary {
  background: var(--strong);
  color: var(--on-strong);
}
.btn--primary:hover {
  filter: brightness(1.1);
}
.btn--green {
  background: var(--whatsapp);
  color: #fff;
}
.btn--green:hover {
  filter: brightness(1.08);
}
.btn--reserved, .btn--reserved:hover {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-text);
  cursor: not-allowed;
  filter: none;
}
.catalog {
  padding-top: 48px;
  padding-bottom: 40px;
}
.catalog h1 {
  margin-bottom: 24px;
  text-align: center;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.toolbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.count {
  color: var(--text-muted);
  font-size: 13px;
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
}
.tool:hover {
  border-color: var(--accent);
}
.tool svg {
  color: var(--accent);
}
.tool svg.red {
  color: var(--icon-red);
}
.tool svg.green {
  color: var(--icon-green);
}
.tool b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--strong);
  color: var(--on-strong);
  font-size: 11px;
}
.tool--small {
  font-size: 12px;
}
.tool:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.tool:disabled:hover {
  border-color: var(--border);
}
.view-switch {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-btn);
  background: var(--surface-2);
}
.view-switch button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}
.view-switch button.is-active {
  background: var(--action);
  color: var(--on-action);
}
.cards {
  display: grid;
  gap: 12px;
}
.card {
  display: grid;
  grid-template-columns: 22px 44px minmax(190px, 1.5fr) 1fr 1fr 1fr 120px auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-row);
  transition: opacity .15s, border-color .15s;
}
.card:hover {
  border-color: var(--secondary-border);
}
.card.is-selected {
  border-color: var(--accent);
  background: var(--surface);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--surface), var(--accent) 6%);
  }
}
.card.is-off {
  opacity: .38;
}
.card__check {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  background: var(--field-bg) center / 12px 12px no-repeat;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.card__check:hover:not(:disabled):not(:checked) {
  background-color: var(--icon-tile-bg);
}
.card__check:checked {
  border-color: var(--action);
  background-color: var(--action);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.7l4.5-5.2'/%3E%3C/svg%3E");
}
.card__check:checked:hover:not(:disabled) {
  background-color: var(--action-hover);
}
.card__check:disabled {
  border-color: var(--border);
  background-color: var(--surface-2);
  cursor: not-allowed;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--icon-tile-border);
  border-radius: var(--radius-btn);
  background: var(--icon-tile-bg);
  color: var(--accent);
  font-size: 21px;
}
.card__main {
  min-width: 0;
}
.card__credit {
  display: block;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}
.card__sub {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
}
.stat span {
  display: block;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.stat strong {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.card__logo {
  display: grid;
  place-items: center;
  height: 40px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}
.card__logo img {
  display: block;
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
}
.card__actions {
  display: flex;
  gap: 8px;
}
.round {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 17px;
}
.round:hover {
  border-color: var(--accent);
}
.round--whats {
  border-color: var(--whatsapp);
  background: var(--whatsapp);
  color: #fff;
  font-size: 19px;
}
.round--locked, .round--locked:hover {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-text);
  cursor: not-allowed;
}
.cards.is-grid {
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.is-grid .card {
  grid-template-columns: 22px 44px 1fr;
  align-content: start;
}
.is-grid .card__main, .is-grid .card__logo, .is-grid .card__actions {
  grid-column: 1 / -1;
}
.is-grid .card__logo {
  order: -1;
  grid-column: 3;
  grid-row: 1;
  justify-items: end;
}
.is-grid .stat {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.is-grid .card__actions {
  justify-content: flex-end;
}
.skeleton {
  height: 74px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--text) 25%, var(--text) 50%, var(--text) 75%);
  @supports (color: color-mix(in lab, red, red)) {
    background: linear-gradient(90deg, color-mix(in srgb, var(--text) 4%, transparent) 25%, color-mix(in srgb, var(--text) 9%, transparent) 50%, color-mix(in srgb, var(--text) 4%, transparent) 75%);
  }
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.state {
  grid-column: 1 / -1;
  padding: 48px 16px;
  color: var(--text-muted);
  text-align: center;
}
.state svg.lucide {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.state p {
  margin: 10px 0 16px;
}
#sentinel {
  height: 1px;
}
.disclaimer {
  margin-top: 28px;
  padding: 36px clamp(18px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}
.disclaimer svg.lucide {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  color: var(--warn-icon);
}
.disclaimer p {
  margin: 0;
}
.disclaimer strong {
  color: var(--text);
  font-weight: 700;
}
.disclaimer hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--border);
}
.selbar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 15;
  width: min(1216px, calc(100vw - 32px));
  transform: translateX(-50%);
  animation: selbar-in .18s ease-out;
}
@keyframes selbar-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}
.selbar__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--band-line);
  border-radius: 16px;
  background: var(--band);
  color: var(--on-band);
  box-shadow: var(--shadow-pop);
}
.selbar__summary {
  display: flex;
  flex: 0 1 245px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--on-band);
  text-align: left;
}
.selbar__summary:hover {
  background: var(--on-band);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--on-band) 9%, transparent);
  }
}
.selbar__summary > svg.lucide {
  margin-left: auto;
  color: var(--band-accent);
  font-size: 17px;
}
.selbar__count {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 36px;
  height: 36px;
  padding-inline: 6px;
  border-radius: var(--radius-btn);
  background: var(--band-action);
  color: var(--on-band-action);
  font-size: 15px;
  font-weight: 700;
}
.selbar__info {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.selbar__info strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selbar__sub {
  overflow: hidden;
  color: var(--on-band-muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selbar__totals {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  gap: 24px;
  min-width: 0;
  margin: 0;
}
.selbar__totals div {
  min-width: 0;
}
.selbar__totals dt {
  color: var(--on-band-muted);
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.selbar__totals dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.selbar__tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.selbar__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--on-band);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.selbar__tool:hover {
  background: var(--on-band);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--on-band) 12%, transparent);
  }
}
.selbar__tool svg.lucide {
  font-size: 16px;
}
.selbar__tool--compat[aria-pressed="true"] {
  background: var(--band-accent);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--band-accent) 25%, transparent);
  }
}
.selbar__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 7px;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--band-action);
  color: var(--on-band-action);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.selbar__primary:hover {
  background: var(--band-action-hover);
}
.selbar__primary.is-whats {
  background: var(--whatsapp);
  color: #fff;
}
.selbar__primary.is-whats:hover {
  background: var(--whatsapp);
  filter: brightness(1.08);
}
.selbar__primary svg.lucide {
  font-size: 17px;
}
.selbar .short {
  display: none;
}
:is(.selbar__summary, .selbar__tool, .selbar__primary):focus-visible {
  outline-color: var(--on-band);
}
.sheet[open] {
  display: flex;
  flex-direction: column;
}
.sheet .dialog__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.sel-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sel-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.sel-list li:not(:has(button)) {
  padding-right: 12px;
}
.sel-list strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}
.sel-list span {
  color: var(--text-muted);
  font-size: 12.5px;
}
@media (min-width: 961px) {
  .has-totals .selbar__sub {
    display: none;
  }
}
@media (max-width: 960px) {
  .selbar__totals {
    display: none;
  }
  .selbar__summary {
    flex: 1 1 auto;
  }
}
@media (max-width: 720px) {
  body.has-bar {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .selbar {
    left: 0;
    bottom: 0;
    width: 100%;
    transform: none;
  }
  .selbar__main {
    gap: 6px;
    min-height: 72px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }
  .selbar__tool--desktop {
    display: none;
  }
  .selbar__tool--compat {
    width: 40px;
    padding: 0;
  }
  .selbar__tool--compat span {
    display: none;
  }
  .selbar__tools {
    margin-left: 0;
  }
  .selbar__summary {
    gap: 8px;
    padding-right: 4px;
  }
  .selbar__primary {
    padding-inline: 14px;
  }
  .selbar__primary svg.lucide {
    display: none;
  }
  .selbar .long {
    display: none;
  }
  .selbar .short {
    display: inline;
  }
  .dialog.sheet {
    width: 100%;
    max-width: 100%;
    max-height: 85dvh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }
  .sheet .dialog__foot {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .sheet .dialog__foot .btn {
    flex: 1;
    padding-inline: 8px;
  }
}
.dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-pop);
}
.dialog--narrow {
  width: min(500px, calc(100vw - 32px));
}
.dialog::backdrop {
  background: var(--backdrop);
}
.dialog__head, .dialog__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.dialog__head {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.dialog__head h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}
.dialog__foot {
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}
.dialog__body {
  padding: 16px;
  font-size: 14.5px;
  line-height: 1.5;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.form-grid input, .form-grid select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-btn);
  background: var(--field-bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
}
.rows {
  display: grid;
  gap: 7px;
  margin: 0;
}
.rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.rows dt {
  color: var(--text-muted);
}
.rows dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}
.block-title {
  margin: 16px 0 6px;
  color: var(--text);
  font-weight: 700;
}
.note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  background: var(--icon-tile-bg);
  color: var(--text);
  font-size: 13.5px;
}
body.has-bar .toast {
  bottom: 104px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  background: var(--strong);
  color: var(--on-strong);
  font-size: 14px;
  transform: translateX(-50%);
}
#printArea {
  display: none;
}
main {
  flex: 1 0 auto;
}
.footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 16px;
}
.footer p {
  margin: 0;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.footer a, .footer button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 500;
  text-underline-offset: 4px;
  cursor: pointer;
}
.footer a:hover, .footer button:hover {
  color: var(--accent);
  text-decoration: underline;
}
@media (max-width: 1020px) {
  .card {
    grid-template-columns: 22px 44px 1fr auto;
  }
  .card__main {
    grid-column: 3;
  }
  .card__logo {
    grid-column: 4;
    grid-row: 1;
    width: 100px;
  }
  .stat {
    grid-row: 2;
    grid-column: span 1;
  }
  .card .stat:nth-of-type(1) {
    grid-column: 1 / 3;
  }
  .card {
    row-gap: 10px;
  }
  .card:not(.x) {
    grid-template-columns: 22px 44px 1fr 1fr 100px;
  }
  .card:not(.x) .card__main {
    grid-column: 3 / 5;
  }
  .card:not(.x) .card__logo {
    grid-column: 5;
  }
  .card:not(.x) .stat {
    grid-row: 2;
    grid-column: auto;
  }
  .card:not(.x) .stat--in {
    grid-column: 1 / 3;
    min-width: 0;
  }
  .card:not(.x) .card__actions {
    grid-row: 2;
    grid-column: 5;
    justify-content: flex-end;
  }
  .is-grid .card:not(.x) {
    grid-template-columns: 22px 44px 1fr;
  }
  .is-grid .card:not(.x) .card__main {
    grid-column: 1 / -1;
  }
  .is-grid .card:not(.x) .card__logo {
    grid-column: 3;
    grid-row: 1;
    width: auto;
  }
  .is-grid .card:not(.x) .stat, .is-grid .card:not(.x) .stat--in {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .is-grid .card:not(.x) .card__actions {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
@media (max-width: 767px) {
  .container {
    padding-inline: 20px;
  }
  .brand img {
    height: 40px;
    max-width: 160px;
  }
}
@media (max-width: 640px) {
  .topbar__inner {
    flex-wrap: wrap;
    gap: 4px 16px;
    min-height: 64px;
    padding-block: 8px;
  }
  .brand img {
    height: 36px;
    max-width: 140px;
  }
  .nav {
    gap: 14px;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 13px;
  }
  .home {
    padding-top: 44px;
  }
  .segments {
    gap: 12px;
    width: 100%;
    justify-content: center;
  }
  .segment {
    flex: 1;
    width: auto;
    max-width: 168px;
  }
  .catalog {
    padding-top: 28px;
  }
  .toolbar {
    padding: 10px;
  }
  .toolbar__group {
    width: 100%;
  }
  .toolbar__group:last-child {
    justify-content: space-between;
  }
  .tool span {
    font-size: 12px;
  }
  .card:not(.x) {
    grid-template-columns: 20px 40px 1fr 76px;
    gap: 10px;
    padding: 12px;
  }
  .card:not(.x) .card__main {
    grid-column: 3;
  }
  .card:not(.x) .card__logo {
    grid-column: 4;
    width: 76px;
  }
  .card__credit {
    font-size: 17px;
  }
  .card__sub {
    white-space: normal;
  }
  .card__sub .tag {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
  }
  .card:not(.x) .stat, .card:not(.x) .stat--in {
    grid-column: 1 / -1;
    grid-row: auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .card:not(.x) .card__actions {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .is-grid .card:not(.x) {
    grid-template-columns: 20px 40px 1fr 76px;
  }
  .is-grid .card:not(.x) .card__main {
    grid-column: 3;
  }
  .is-grid .card:not(.x) .card__logo {
    grid-column: 4;
    grid-row: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .disclaimer {
    padding: 24px 18px;
    font-size: 13.5px;
  }
  .disclaimer svg.lucide {
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
  }
  .disclaimer hr {
    margin: 18px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  :root {
    color-scheme: light;
  }
  body {
    background: #fff;
  }
  body > *:not(#printArea) {
    display: none !important;
  }
  body.has-bar {
    padding: 0;
  }
  #printArea {
    display: block;
    color: #000;
    font-size: 10px;
  }
  #printArea h2 {
    margin: 0 0 8px;
    font-size: 15px;
  }
  #printArea table {
    width: 100%;
    border-collapse: collapse;
  }
  #printArea th, #printArea td {
    padding: 3px 4px;
    border: 1px solid #bbb;
    text-align: left;
  }
  #printArea thead {
    display: table-header-group;
  }
  #printArea tr {
    break-inside: avoid;
  }
}
