* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(242, 140, 40, 0.18), transparent 30%),
    radial-gradient(circle at right center, rgba(217, 74, 69, 0.16), transparent 24%),
    linear-gradient(180deg, #120e0f 0%, var(--color-bg) 45%, #120e0f 100%);
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 4vw;
  background: rgba(15, 11, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 179, 71, 0.16);
}

.brand {
  display: grid;
  line-height: 0.9;
}

.brand-kicker,
.brand-main,
.site-nav a,
.eyebrow,
h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.brand-kicker {
  font-size: 1rem;
  color: var(--color-accent-soft);
}

.brand-main {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.nav-button:hover {
  transform: translateY(-2px);
}

.button-primary,
.nav-button {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff8f0;
  box-shadow: 0 16px 40px rgba(217, 74, 69, 0.25);
}

.button-secondary {
  border-color: rgba(255, 179, 71, 0.35);
  background: rgba(255, 179, 71, 0.08);
  color: var(--color-text);
}

.button-danger {
  background: rgba(217, 74, 69, 0.14);
  border-color: rgba(217, 74, 69, 0.32);
  color: #ffd8d4;
}

.flash-stack {
  position: fixed;
  right: 1rem;
  top: 5.5rem;
  z-index: 30;
  display: grid;
  gap: 0.75rem;
}

.flash {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(24, 19, 20, 0.96);
  border: 1px solid rgba(255, 179, 71, 0.24);
}

.flash-success {
  border-color: rgba(255, 209, 102, 0.35);
}

.flash-error {
  border-color: rgba(217, 74, 69, 0.4);
}

.audio-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 179, 71, 0.24);
  border-radius: 999px;
  background: rgba(20, 15, 16, 0.92);
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.audio-toggle-icon {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 0 0 0 rgba(242, 140, 40, 0.45);
}

.audio-toggle[data-state="playing"] .audio-toggle-icon {
  animation: pulse-audio 1.4s ease-out infinite;
}

.audio-toggle[data-state="muted"] .audio-toggle-icon,
.audio-toggle[data-state="paused"] .audio-toggle-icon,
.audio-toggle[data-state="blocked"] .audio-toggle-icon {
  background: rgba(209, 198, 186, 0.45);
  box-shadow: none;
}

main {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 110px);
}

.hero-copy h1 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.92;
}

.eyebrow {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.15rem;
}

.hero-text,
.section p,
.contact-card p,
.featured-card p,
.offer-card p,
.menu-panel p,
.auth-help,
.stack-item p {
  color: var(--color-muted);
  line-height: 1.6;
}

.hero-actions,
.hero-meta,
.admin-stats,
.contact-grid,
.offer-grid,
.featured-grid,
.gallery-grid,
.admin-grid,
.media-admin-grid {
  display: grid;
  gap: 1rem;
}

.hero-actions {
  grid-template-columns: repeat(3, max-content);
  margin: 1.6rem 0;
}

.hero-meta {
  grid-template-columns: repeat(2, max-content);
  color: var(--color-accent-soft);
  font-size: 0.95rem;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -1rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(242, 140, 40, 0.22), rgba(217, 74, 69, 0.12));
  filter: blur(28px);
}

.hero-media video,
.hero-media img {
  position: relative;
  border-radius: 2rem;
  border: 1px solid rgba(255, 179, 71, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section {
  margin-top: 5rem;
}

.section-note,
.success-card,
.tpv-card,
.admin-stats-card {
  background: linear-gradient(180deg, rgba(39, 28, 29, 0.88), rgba(25, 19, 20, 0.96));
  border: 1px solid rgba(255, 179, 71, 0.16);
  border-radius: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.section-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.admin-hero h1,
.auth-card h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.offer-grid,
.featured-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-card,
.featured-card,
.menu-panel,
.contact-card,
.about-card,
.admin-card,
.auth-card,
.media-admin-card,
.stack-item,
.admin-stats article {
  background: linear-gradient(180deg, rgba(39, 28, 29, 0.88), rgba(25, 19, 20, 0.96));
  border: 1px solid rgba(255, 179, 71, 0.16);
  border-radius: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.offer-card,
.featured-card,
.contact-card,
.about-card,
.media-admin-card,
.stack-item,
.admin-stats article {
  padding: 1.4rem;
}

.offer-price,
.card-tag {
  color: var(--color-accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.menu-panel {
  padding: 1.6rem;
}

.menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-panel li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-panel li:last-child {
  border-bottom: 0;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 1.4rem;
  min-height: 240px;
  border: 1px solid rgba(255, 179, 71, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.admin-shell,
.auth-shell {
  padding-top: 2rem;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.admin-stats {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
}

.admin-stats article {
  text-align: center;
}

.admin-stats strong {
  display: block;
  font-size: 2rem;
  color: var(--color-primary);
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-form-shell,
.success-grid,
.tpv-grid,
.tpv-status-grid {
  display: grid;
  gap: 1rem;
}

.order-form-shell,
.tpv-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.order-form-card,
.tpv-card,
.success-card {
  padding: 1.5rem;
}

.order-menu-sections,
.tpv-products,
.tpv-orders-list {
  display: grid;
  gap: 1rem;
}

.order-menu-group,
.tpv-product-group {
  display: grid;
  gap: 0.75rem;
}

.order-menu-item,
.tpv-product-row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(11, 9, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.order-menu-item input,
.tpv-product-row input {
  max-width: 90px;
}

.order-market-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-market-hero,
.order-market-spotlight,
.order-market-card {
  padding: 1.1rem 1.15rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 179, 71, 0.18);
  background:
    radial-gradient(circle at top right, rgba(242, 140, 40, 0.15), transparent 38%),
    linear-gradient(180deg, rgba(255, 248, 240, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.order-market-hero h1,
.order-market-hero p,
.order-market-spotlight p {
  margin: 0;
}

.order-market-hero p + p {
  margin-top: 0.5rem;
}

.order-market-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.order-market-badges span {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.16);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}

.order-market-spotlight strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.order-market-spotlight p + p {
  margin-top: 0.35rem;
}

.order-market-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.order-market-main,
.order-market-summary {
  min-width: 0;
}

.order-market-summary {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

.order-market-categories {
  position: sticky;
  top: 1rem;
  z-index: 6;
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.85rem;
  margin-bottom: 0.9rem;
  border-radius: 1rem;
  background: rgba(24, 19, 20, 0.9);
  border: 1px solid rgba(255, 179, 71, 0.16);
  backdrop-filter: blur(10px);
}

.order-market-category {
  flex: 0 0 auto;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.06);
  border: 1px solid rgba(255, 179, 71, 0.16);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 800;
}

.order-market-category.is-active,
.order-market-category:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff8f0;
  border-color: transparent;
}

.order-market-sections {
  display: grid;
  gap: 1rem;
}

.order-market-section {
  padding: 1rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(17, 12, 13, 0.54);
  border: 1px solid rgba(255, 179, 71, 0.16);
  scroll-margin-top: 6rem;
}

.order-market-section-head h2,
.order-market-summary-head h2,
.order-market-card h2 {
  margin: 0;
}

.order-market-list,
.order-market-fields,
.order-market-summary-list {
  display: grid;
  gap: 0.75rem;
}

.order-market-list {
  margin-top: 0.85rem;
}

.order-market-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 248, 240, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.order-market-item.has-qty {
  border-color: rgba(255, 179, 71, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.12);
}

.order-market-item.is-out {
  opacity: 0.55;
}

.order-market-item-copy strong,
.order-market-item-copy p {
  margin: 0;
}

.order-market-item-copy p {
  margin-top: 0.35rem;
  color: var(--color-muted);
}

.order-market-item-meta {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.order-market-item-price {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--color-accent-soft);
}

.order-market-item-state {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.14);
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.order-market-stepper {
  display: grid;
  grid-template-columns: 48px 64px 48px;
  gap: 0.45rem;
  align-items: center;
}

.order-market-stepper-button,
.order-market-stepper-value {
  min-height: 48px;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
}

.order-market-stepper-button {
  border: 1px solid rgba(255, 179, 71, 0.22);
  background: rgba(255, 248, 240, 0.08);
  color: var(--color-text);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}

.order-market-stepper-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.order-market-stepper-value {
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  color: #fff8f0;
  font-size: 1.18rem;
  font-weight: 800;
}

.order-market-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.order-market-summary-list {
  margin-top: 0.9rem;
}

.order-market-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 248, 240, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.order-market-summary-row strong,
.order-market-summary-row p,
.order-market-empty {
  margin: 0;
}

.order-market-empty {
  padding: 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 248, 240, 0.05);
  color: var(--color-muted);
  text-align: center;
}

.order-market-summary-total {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.order-market-summary-total div {
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 248, 240, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.14);
  display: grid;
  gap: 0.2rem;
}

.order-market-summary-total .is-total {
  background: linear-gradient(135deg, rgba(242, 140, 40, 0.18), rgba(217, 74, 69, 0.18));
}

.order-market-summary-total span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.order-market-summary-total strong {
  font-size: 1.3rem;
}

.order-market-submit {
  width: 100%;
  margin-top: 1rem;
}

.success-card {
  max-width: 980px;
  margin: 0 auto;
}

.success-grid,
.tpv-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 1.5rem;
}

.tpv-shell {
  width: min(1380px, calc(100vw - 1rem));
  min-height: calc(100svh - 1rem);
  padding: 0.45rem 0.5rem 0.55rem;
}

.tpv-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tpv-live-alert {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 179, 71, 0.22);
  background: linear-gradient(135deg, rgba(242, 140, 40, 0.18), rgba(217, 74, 69, 0.18));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.tpv-live-alert h2,
.tpv-live-alert p {
  margin: 0;
}

.tpv-classic-shell {
  width: min(1700px, calc(100vw - 0.75rem));
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
}

.tpv-topbar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
}

.tpv-session-banner {
  margin-top: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(142, 199, 161, 0.28);
  background: rgba(15, 71, 43, 0.22);
  color: #eef7e8;
  display: grid;
  gap: 0.08rem;
}

.tpv-session-banner strong {
  font-size: 0.84rem;
  color: #fff8e6;
}

.tpv-session-banner span {
  color: #d5e7d3;
  font-size: 0.78rem;
  line-height: 1.2;
}

.tpv-session-banner.is-pending {
  border-color: rgba(255, 179, 71, 0.35);
  background: rgba(255, 179, 71, 0.14);
}

.tpv-session-banner.is-pending strong,
.tpv-session-banner.is-pending span {
  color: #ffe7ba;
}

.tpv-classic-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.tpv-classic-stat {
  padding: 0.7rem 0.6rem;
  border-radius: 0.8rem;
  background: #dbe7d9;
  border: 1px solid #7cb690;
  color: #19472b;
  text-align: center;
}

.tpv-classic-stat strong {
  display: block;
  font-size: 1.35rem;
}

.tpv-classic-stat-wide {
  background: linear-gradient(135deg, #f7b24e, #eb7f20);
  color: #fff;
}

.tpv-terminal {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-height: 0;
  height: 100%;
}

.tpv-terminal-left,
.tpv-terminal-right {
  min-width: 0;
  min-height: 0;
}

.tpv-terminal-left {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.tpv-terminal-right {
  display: grid;
}

.tpv-screen-card,
.tpv-side-command,
.tpv-terminal-right,
.tpv-products-stage {
  padding: 0.7rem;
  border-radius: 0.9rem;
  background: #f3efe2;
  border: 2px solid #8ec7a1;
  color: #123a26;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.tpv-screen-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 0;
}

.tpv-client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.tpv-source-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.tpv-client-field {
  display: grid;
  gap: 0.2rem;
}

.tpv-client-field span,
.tpv-payment-selector span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4f6f57;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tpv-client-field-large {
  grid-column: span 2;
}

.tpv-client-field-time {
  max-width: 170px;
  justify-self: end;
}

.tpv-client-field-time input {
  text-align: center;
  font-weight: 800;
}

.tpv-client-field input,
.tpv-payment-selector select {
  min-height: 44px;
  border-radius: 0.5rem;
  border: 1px solid #8ec7a1;
  background: #fbfaf3;
  color: #173825;
  font-size: 1rem;
}

.tpv-order-board {
  overflow: hidden;
  border-radius: 0.7rem;
  border: 2px solid #0c4d2d;
  background: #fff;
  min-height: 0;
  height: min(100%, 340px);
  max-height: 340px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.tpv-order-board-head,
.tpv-order-row {
  display: grid;
  grid-template-columns: 1fr 90px 120px;
  gap: 0.65rem;
  align-items: center;
}

.tpv-order-board-head {
  padding: 0.8rem 0.9rem;
  background: #0d4e2f;
  color: #d9f3d8;
  font-weight: 700;
}

.tpv-order-board-body {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.9rem;
  overflow: auto;
  align-content: start;
  max-height: 100%;
}

.tpv-order-row {
  padding: 0.45rem 0;
  border-bottom: 1px solid #dde9db;
}

.tpv-order-row-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0.45rem;
  padding-inline: 0.3rem;
  transition: background 0.12s ease, transform 0.08s ease;
}

.tpv-order-row-button:hover {
  background: #eef5eb;
}

.tpv-order-row-button:active {
  transform: scale(0.995);
}

.tpv-empty-board {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #7b8778;
  text-align: center;
}

.tpv-ticket-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.tpv-ticket-summary article {
  padding: 0.8rem 0.9rem;
  border-radius: 0.7rem;
  background: #dce8db;
  border: 1px solid #8ec7a1;
  display: grid;
  gap: 0.25rem;
}

.tpv-ticket-summary article strong {
  font-size: 1.25rem;
}

.tpv-ticket-summary-total {
  background: #fff4dc !important;
  border-color: #f0c273 !important;
}

.tpv-terminal-controls {
  display: grid;
  gap: 0.75rem;
}

.tpv-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.tpv-quick-actions-single {
  grid-template-columns: 1fr;
}

.tpv-mini-action {
  min-height: 54px;
  border-radius: 0.65rem;
  border: 1px solid #79b58d;
  background: #edf5eb;
  color: #1d5937;
  font-weight: 700;
  cursor: pointer;
}

.tpv-keypad-area {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr;
  gap: 0.7rem;
}

.tpv-keypad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.tpv-key {
  min-height: 74px;
  border-radius: 0.7rem;
  border: 1px solid #75b48a;
  background: #f7f8ef;
  color: #123926;
  font-size: 2rem;
  font-weight: 800;
  cursor: pointer;
}

.tpv-key-wide {
  font-size: 1.15rem;
}

.tpv-payment-stack {
  display: grid;
  gap: 0.65rem;
}

.tpv-payment-selector {
  display: grid;
  gap: 0.25rem;
}

.tpv-cash-button {
  min-height: 100%;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffa727, #ef7f00);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.tpv-side-command h2,
.tpv-side-command p {
  margin-block: 0;
}

.tpv-side-status-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.tpv-side-status-list div {
  padding: 0.7rem;
  border-radius: 0.7rem;
  background: #fff;
  border: 1px solid #cddfca;
  display: grid;
  gap: 0.15rem;
}

.tpv-side-status-list strong {
  font-size: 1.6rem;
  color: #0e4c2d;
}

.tpv-category-strip {
  display: grid;
  grid-auto-rows: 64px;
  gap: 0.45rem;
  overflow: auto;
  padding-right: 0.1rem;
}

.tpv-category-side {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
}

.tpv-products-layout {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: stretch;
  min-height: 100%;
}

.tpv-products-stage {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.tpv-category-chip {
  min-height: 64px;
  border-radius: 0.65rem;
  border: 1px solid #efc6a5;
  background: #fff3e6;
  color: #513420;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.tpv-category-chip.is-active {
  background: #0f5a34;
  border-color: #0f5a34;
  color: #f4f6ea;
  box-shadow: 0 0 0 3px rgba(15, 90, 52, 0.2);
}

.tpv-product-panel {
  display: none;
}

.tpv-product-panel.is-active {
  display: block;
  height: 100%;
}

.tpv-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  max-height: 100%;
  overflow: auto;
  align-content: start;
  padding-right: 0.15rem;
}

.tpv-product-tile {
  display: grid;
  gap: 0.4rem;
  padding: 0.45rem;
  border-radius: 0.7rem;
  border: 1px solid #f0c8a8;
  background: #fff9f1;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.tpv-product-tile.is-selected,
.tpv-product-tile.has-qty {
  border-color: #0e5d35;
  box-shadow: 0 0 0 2px rgba(14, 93, 53, 0.14);
}

.tpv-product-hitbox {
  min-height: 104px;
  border: 0;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #ffffff, #fff0df);
  padding: 0.8rem 0.7rem;
  display: grid;
  align-content: space-between;
  text-align: left;
  cursor: pointer;
}

.tpv-product-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #213d29;
}

.tpv-product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #c55d13;
}

.tpv-product-stock {
  font-size: 0.72rem;
  font-weight: 800;
  color: #55715f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tpv-product-qty-controls {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  gap: 0.35rem;
  align-items: center;
}

.tpv-qty-button,
.tpv-product-qty {
  min-height: 38px;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
}

.tpv-qty-button {
  border: 1px solid #7ab58c;
  background: #eef5eb;
  color: #165132;
  font-size: 1.45rem;
  font-weight: 800;
  cursor: pointer;
}

.tpv-product-hitbox:disabled,
.tpv-qty-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.18);
}

.tpv-product-qty {
  background: #0d4e2f;
  color: #f2f8ec;
  font-size: 1.25rem;
  font-weight: 800;
}

.tpv-queue-shell {
  margin-top: 1rem;
}

.tpv-order-card-classic {
  background: #f4f0e4;
  border: 1px solid #b9d3bd;
  color: #143625;
}

.tpv-modal[hidden] {
  display: none;
}

.tpv-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.tpv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 12, 0.58);
}

.tpv-modal-card {
  position: relative;
  width: min(500px, calc(100vw - 1.5rem));
  margin: 7vh auto 0;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff8ed;
  border: 2px solid #f0c273;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
  color: #1b3927;
}

.tpv-modal-card-large {
  width: min(860px, calc(100vw - 2rem));
}

.tpv-modal-card-editor {
  width: min(520px, calc(100vw - 1.5rem));
}

.tpv-modal-card-compact {
  width: min(420px, calc(100vw - 1.5rem));
}

.tpv-modal-card-editor.is-compact {
  width: min(420px, calc(100vw - 1.5rem));
}

.tpv-modal-card-editor.is-wide {
  width: min(760px, calc(100vw - 1.5rem));
}

.tpv-modal-card h2,
.tpv-modal-card p {
  margin-block: 0;
}

.tpv-open-day-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.tpv-open-day-form label {
  display: grid;
  gap: 0.35rem;
  color: #35523b;
  font-weight: 700;
}

.tpv-open-day-form input[type="text"],
.tpv-open-day-form input[type="number"] {
  min-height: 48px;
  padding: 0 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid #8ec7a1;
  background: #fffef7;
  color: #183728;
  font: inherit;
  font-weight: 700;
}

.tpv-opening-help {
  color: #516757;
  font-size: 0.92rem;
}

.tpv-opening-help.is-success {
  color: #22663b;
}

.tpv-opening-help.is-error {
  color: #b33e25;
}

.tpv-closure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tpv-closure-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.tpv-closure-summary article {
  padding: 0.8rem 0.85rem;
  border-radius: 0.75rem;
  background: #eef5eb;
  border: 1px solid #b9d3bd;
  display: grid;
  gap: 0.2rem;
}

.tpv-closure-summary span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4f6f57;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tpv-closure-summary strong {
  font-size: 1.1rem;
  color: #173825;
}

.tpv-closure-products {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.tpv-closure-products h3 {
  margin: 0;
  color: #254734;
}

.tpv-closure-product-list {
  display: grid;
  gap: 0.4rem;
  max-height: 220px;
  overflow: auto;
  padding-right: 0.2rem;
}

.tpv-closure-product-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  background: #fffef7;
  border: 1px solid #d6e3d4;
}

.tpv-field-editor-label {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #36533d;
  font-weight: 700;
}

.tpv-field-editor-label input {
  min-height: 54px;
  border-radius: 0.9rem;
  border: 1px solid #8ec7a1;
  background: #fffef7;
  color: #183728;
  padding: 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.tpv-field-editor-keyboard {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.tpv-field-editor-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.tpv-field-editor-row-mobile {
  grid-template-columns: repeat(var(--editor-columns, 10), minmax(0, 1fr));
  gap: 0.35rem;
}

.tpv-field-editor-row-mobile.is-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
  gap: 0.55rem;
  margin-top: 0.15rem;
}

#tpv-field-editor-actions {
  justify-content: center;
}

.tpv-modal-card-editor.is-compact .tpv-field-editor-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tpv-modal-card-editor.is-wide .tpv-field-editor-row {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tpv-modal-card-editor.is-wide .tpv-field-editor-row-mobile {
  grid-template-columns: repeat(var(--editor-columns, 10), minmax(0, 1fr));
}

.tpv-field-editor-key {
  min-height: 50px;
  border-radius: 0.8rem;
  border: 1px solid #79b58d;
  background: #fffef7;
  color: #1c4d31;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.tpv-field-editor-key-mobile {
  min-height: 52px;
  border-radius: 1rem;
  font-size: 0.96rem;
  font-weight: 700;
}

.tpv-field-editor-key-mobile.is-function {
  background: linear-gradient(180deg, #edf4ef, #d6e8da);
  color: #204933;
}

.tpv-field-editor-key-mobile.is-accept {
  background: linear-gradient(180deg, #ffba4c, #ef860d);
  border-color: #e28d2f;
  color: #fff;
}

.tpv-field-editor-key-mobile.is-wide {
  grid-column: auto;
}

.tpv-field-editor-key-mobile.is-space {
  grid-column: auto;
}

.tpv-field-editor-key.is-time {
  min-height: 52px;
  font-size: 1.05rem;
}

.tpv-modal-card-editor.is-compact .tpv-field-editor-label input {
  min-height: 50px;
  font-size: 0.95rem;
  text-align: center;
}

.tpv-modal-card-editor.is-compact .tpv-field-editor-key.is-time {
  min-height: 50px;
  font-size: 0.95rem;
}

.tpv-modal-card-editor.is-compact .tpv-modal-actions {
  margin-top: 0.75rem;
}

.tpv-payment-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.tpv-payment-modal-grid label {
  display: grid;
  gap: 0.35rem;
  color: #36533d;
  font-weight: 700;
}

.tpv-payment-modal-grid input,
.tpv-payment-modal-grid select {
  min-height: 42px;
  border-radius: 0.7rem;
  border: 1px solid #8ec7a1;
  background: #fffef7;
  color: #183728;
  padding: 0 0.75rem;
}

.tpv-payment-keyboard {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.tpv-payment-keyboard-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.tpv-modal-actions,
.tpv-main-tabs,
.tpv-payment-quickbar,
.tpv-order-tabs,
.tpv-order-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tpv-soft-button,
.tpv-compact-accent {
  min-height: 44px;
  padding: 0.62rem 0.8rem;
  border-radius: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease, border-color 0.12s ease, filter 0.12s ease;
}

.tpv-soft-button {
  border: 1px solid #7ab58c;
  background: linear-gradient(180deg, #f3f8ef, #d8ead8);
  color: #19482d;
  box-shadow: 0 2px 0 rgba(34, 92, 58, 0.18);
}

.tpv-soft-button.is-active {
  background: linear-gradient(180deg, #1d6a3f, #0f5a34);
  border-color: #0f5a34;
  color: #f5f7ec;
  box-shadow: 0 0 0 3px rgba(15, 90, 52, 0.2);
}

.tpv-compact-accent {
  border: 1px solid #e28d2f;
  background: linear-gradient(180deg, #ffba4c, #ef860d);
  color: #fff;
  box-shadow: 0 2px 0 rgba(128, 61, 5, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.tpv-compact-accent.is-active {
  background: linear-gradient(180deg, #e46a18, #b54d00);
  border-color: #9d4300;
  box-shadow: 0 0 0 3px rgba(228, 106, 24, 0.22), 0 2px 0 rgba(128, 61, 5, 0.22);
}

.tpv-soft-button:hover,
.tpv-compact-accent:hover,
.tpv-main-tab:hover,
.tpv-category-chip:hover,
.tpv-keyboard-key:hover,
.tpv-field-editor-key:hover,
.tpv-order-select-card:hover {
  filter: brightness(1.03);
}

.tpv-soft-button:active,
.tpv-compact-accent:active,
.tpv-main-tab:active,
.tpv-category-chip:active,
.tpv-keyboard-key:active,
.tpv-field-editor-key:active,
.tpv-order-select-card:active,
.tpv-qty-button:active,
.tpv-cash-button:active {
  transform: translateY(1px) scale(0.99);
}

.tpv-modal-actions {
  margin-top: 1rem;
  justify-content: flex-end;
}

.tpv-ticket-line-actions {
  display: grid;
  grid-template-columns: 72px 72px minmax(0, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.tpv-main-tabs {
  margin: 0 0 0.85rem;
}

.tpv-main-tab,
.tpv-order-filter {
  min-height: 48px;
  padding: 0.72rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid #85bb97;
  background: #eef5eb;
  color: #19482d;
  font-weight: 800;
  cursor: pointer;
}

.tpv-main-tab.is-active,
.tpv-order-filter.is-active {
  background: #0f5a34;
  border-color: #0f5a34;
  color: #f8f6ed;
  box-shadow: 0 0 0 3px rgba(15, 90, 52, 0.22);
}

.tpv-main-panel {
  display: none;
  min-height: 0;
}

.tpv-main-panel.is-active {
  display: block;
}

.tpv-main-panel-terminal.is-active,
.tpv-main-panel-list.is-active {
  min-height: 0;
}

.tpv-main-panel-terminal.is-active {
  height: 100%;
}

.tpv-main-panel-list.is-active {
  height: auto;
}

.tpv-payment-quickbar {
  align-items: stretch;
}

.tpv-payment-quickbar-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.tpv-payment-quickbar .tpv-cash-button {
  flex: 1 1 180px;
  min-height: 54px;
  font-size: 1.35rem;
}

.tpv-payment-quickbar-side .tpv-cash-button {
  min-height: 58px;
  font-size: 1.28rem;
}

.tpv-cash-button-bottom {
  width: 100%;
  margin-top: 0.55rem;
}

.tpv-print-ticket-button {
  width: 100%;
  margin-top: 0.4rem;
  font-weight: 800;
}

.tpv-touch-keyboard {
  padding: 0.65rem;
  border-radius: 0.8rem;
  border: 1px solid #9ec9ab;
  background: #eaf1e5;
}

.tpv-touch-keys {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

.tpv-keyboard-key {
  min-height: 48px;
  border-radius: 0.65rem;
  border: 1px solid #79b58d;
  background: #fffef7;
  color: #1c4d31;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.tpv-keyboard-key-wide {
  grid-column: span 2;
}

.tpv-client-field input[data-open-editor] {
  cursor: pointer;
  background: linear-gradient(180deg, #fffdf6, #f0f6ea);
  border-color: #9bc7a7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.tpv-orders-shell {
  display: grid;
  gap: 0.85rem;
  min-height: 0;
  grid-template-rows: auto auto auto;
}

.tpv-terminal-sidegrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tpv-orders-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
}

.tpv-orders-toolbar-main {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.tpv-panel-web-counter {
  min-width: 102px;
  padding: 0.6rem 0.75rem;
  border-radius: 0.8rem;
  background: #f3efe2;
  border: 1px solid #8ec7a1;
  color: #19472b;
  display: grid;
  justify-items: center;
  align-self: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.tpv-panel-web-counter-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c745f;
}

.tpv-panel-web-counter strong {
  font-size: 1.55rem;
  line-height: 1;
}

.tpv-orders-caption h2,
.tpv-orders-caption p {
  margin-block: 0;
}

.tpv-orders-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
  gap: 0.85rem;
}

.tpv-order-selection,
.tpv-orders-list-panel {
  min-width: 0;
}

.tpv-selected-order-card,
.tpv-orders-list-panel {
  padding: 0.9rem;
  border-radius: 0.9rem;
  background: #f4f0e4;
  border: 2px solid #b9d3bd;
  color: #143625;
}

.tpv-selected-order-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: start;
}

.tpv-selected-order-badges {
  display: grid;
  gap: 0.4rem;
}

.tpv-selected-order-items {
  display: grid;
  gap: 0.3rem;
  margin: 0.8rem 0;
  color: #3f5846;
}

.tpv-selected-order-actions {
  display: grid;
  gap: 0.8rem;
}

.tpv-action-group {
  display: grid;
  gap: 0.35rem;
}

.tpv-action-group > span {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4d6956;
}

.tpv-action-chip {
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid #7ab58c;
  background: #eff6ec;
  color: #1d5436;
  font-weight: 800;
  cursor: pointer;
}

.tpv-orders-list-panel .tpv-orders-list {
  display: grid;
  gap: 0.55rem;
  max-height: 100%;
  overflow: auto;
}

.tpv-order-select-card {
  width: 100%;
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid #bfd4c1;
  background: #fffef7;
  color: #163725;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  text-align: left;
  cursor: pointer;
}

.tpv-order-select-card.is-selected {
  border-color: #0f5a34;
  box-shadow: 0 0 0 4px rgba(15, 90, 52, 0.24);
  background: linear-gradient(180deg, #e9f6ea, #d7edd8);
}

.tpv-order-select-card.is-empty {
  cursor: default;
  grid-template-columns: 1fr;
}

.tpv-order-select-card strong,
.tpv-order-select-card p {
  margin: 0;
}

.tpv-order-select-side {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.tpv-parked-list {
  display: grid;
  gap: 0.55rem;
}

.tpv-parked-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.tpv-parked-items span {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #fff3e2;
  border: 1px solid #f2c48a;
  color: #7a3f08;
  font-size: 0.78rem;
  font-weight: 700;
}

.tpv-parked-list-panel {
  max-height: 100%;
  overflow: auto;
}

@media (max-width: 1180px) and (min-width: 760px) and (orientation: landscape) {
  .tpv-shell {
    width: min(1024px, calc(100vw - 0.4rem));
    min-height: calc(100svh - 0.35rem);
    padding: 0.2rem;
  }

  .tpv-classic-shell {
    width: 100%;
    gap: 0.45rem;
  }

  .tpv-topbar {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 0.55rem;
  }

  .tpv-main-tabs {
    margin: 0;
  }

  .tpv-classic-stats {
    gap: 0.4rem;
  }

  .tpv-classic-stat {
    padding: 0.48rem 0.32rem;
    border-radius: 0.6rem;
  }

  .tpv-classic-stat strong {
    font-size: 1.04rem;
  }

  .tpv-classic-stat span {
    font-size: 0.7rem;
  }

  .tpv-main-tab,
  .tpv-order-filter {
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }

  .tpv-terminal {
    grid-template-columns: 378px minmax(0, 1fr);
    gap: 0.55rem;
  }

  .tpv-screen-card,
  .tpv-terminal-right,
  .tpv-products-stage {
    padding: 0.5rem;
    border-radius: 0.72rem;
  }

  .tpv-source-selector,
  .tpv-client-grid {
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .tpv-client-field span {
    font-size: 0.7rem;
  }

  .tpv-client-field input {
    min-height: 38px;
    font-size: 0.92rem;
  }

  .tpv-client-field-time {
    max-width: 132px;
  }

  .tpv-order-board {
    border-radius: 0.58rem;
  }

  .tpv-order-board-head {
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
  }

  .tpv-order-board-body {
    padding: 0.45rem 0.65rem;
  }

  .tpv-order-row {
    gap: 0.45rem;
    font-size: 0.84rem;
  }

  .tpv-ticket-summary {
    gap: 0.45rem;
    margin-top: 0.55rem;
  }

  .tpv-ticket-summary article {
    padding: 0.55rem 0.65rem;
  }

  .tpv-ticket-summary article strong {
    font-size: 1.02rem;
  }

  .tpv-quick-actions {
    gap: 0.45rem;
  }

  .tpv-soft-button,
  .tpv-compact-accent {
    min-height: 38px;
    padding: 0.45rem 0.62rem;
    border-radius: 0.66rem;
    font-size: 0.83rem;
  }

  .tpv-products-layout {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 0.5rem;
  }

  .tpv-category-strip {
    grid-auto-rows: 50px;
    gap: 0.35rem;
  }

  .tpv-category-chip {
    min-height: 50px;
    font-size: 0.78rem;
    padding: 0.35rem;
  }

  .tpv-payment-quickbar-side {
    gap: 0.35rem;
  }

  .tpv-payment-quickbar-side .tpv-compact-accent {
    min-height: 36px;
    font-size: 0.78rem;
  }

  .tpv-payment-quickbar-side .tpv-cash-button,
  .tpv-cash-button-bottom {
    min-height: 50px;
    font-size: 1.1rem;
    margin-top: 0.35rem;
  }

  .tpv-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .tpv-product-tile {
    gap: 0.3rem;
    padding: 0.32rem;
    border-radius: 0.55rem;
  }

  .tpv-product-hitbox {
    min-height: 88px;
    padding: 0.5rem;
    border-radius: 0.45rem;
  }

  .tpv-product-name {
    font-size: 0.8rem;
    line-height: 1.08;
  }

  .tpv-product-price {
    font-size: 0.82rem;
  }

  .tpv-product-stock {
    font-size: 0.62rem;
  }

  .tpv-product-qty-controls {
    grid-template-columns: 38px 1fr 38px;
    gap: 0.28rem;
  }

  .tpv-qty-button,
  .tpv-product-qty {
    min-height: 30px;
    border-radius: 0.4rem;
  }

  .tpv-product-qty {
    font-size: 0.92rem;
  }

  .tpv-qty-button {
    font-size: 1.1rem;
  }

  .tpv-orders-toolbar {
    gap: 0.45rem;
  }

  .tpv-orders-toolbar {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .tpv-orders-caption h2 {
    font-size: 1.05rem;
  }

  .tpv-panel-web-counter {
    min-width: 96px;
    padding: 0.46rem 0.5rem;
    border-radius: 0.66rem;
  }

  .tpv-panel-web-counter strong {
    font-size: 1.2rem;
  }

  .tpv-orders-list-panel,
  .tpv-parked-card,
  .tpv-order-select-card {
    border-radius: 0.72rem;
  }

  .tpv-order-select-card,
  .tpv-parked-card {
    padding: 0.62rem;
    gap: 0.5rem;
  }
}

.tpv-parked-card {
  padding: 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid #c8d9c7;
  background: #fffef7;
  display: grid;
  gap: 0.55rem;
}

.tpv-parked-card.is-empty {
  color: #556c58;
}

.tpv-parked-card strong,
.tpv-parked-card p {
  margin: 0;
}

.tpv-parked-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-stats-card {
  padding: 1rem 1.1rem;
  text-align: center;
}

.admin-stats-card strong {
  display: block;
  font-size: 2rem;
  color: var(--color-primary);
}

.tpv-order-form,
.tpv-order-top,
.tpv-order-side,
.tpv-actions,
.report-filter {
  display: grid;
  gap: 0.75rem;
}

.tpv-submit {
  position: sticky;
  bottom: 1rem;
}

.tpv-order-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(11, 9, 10, 0.52);
  border: 1px solid rgba(255, 179, 71, 0.12);
}

.tpv-order-top {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.tpv-order-side {
  text-align: right;
}

.tpv-order-items,
.tpv-notes {
  color: var(--color-muted);
}

.tpv-actions {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 0.9rem;
}

.tpv-actions .button {
  width: 100%;
  padding-inline: 0.6rem;
  font-size: 0.95rem;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 179, 71, 0.18);
}

.status-new,
.status-preparing,
.status-ready {
  color: #fff0c4;
  background: rgba(255, 179, 71, 0.12);
}

.status-delivered {
  color: #f6fff2;
  background: linear-gradient(180deg, rgba(44, 122, 67, 0.95), rgba(33, 96, 53, 0.95));
  border-color: rgba(164, 231, 177, 0.38);
}

.status-cancelled {
  color: #ffd8d4;
  background: rgba(217, 74, 69, 0.16);
}

.status-rectified {
  color: #f6eefc;
  background: linear-gradient(180deg, rgba(111, 72, 148, 0.95), rgba(84, 50, 118, 0.95));
  border-color: rgba(216, 191, 255, 0.38);
}

.status-payment-paid {
  color: #f6fff2;
  background: linear-gradient(180deg, rgba(26, 108, 56, 0.95), rgba(19, 82, 42, 0.95));
  border-color: rgba(164, 231, 177, 0.38);
}

.status-payment-pending {
  color: #fff0c4;
  background: rgba(255, 179, 71, 0.12);
}

.report-filter {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.report-filter-wide {
  grid-template-columns: repeat(3, minmax(0, 180px)) auto;
  gap: 0.8rem;
}

.report-day-side {
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  text-align: right;
}

.admin-card {
  padding: 1.5rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.22);
  background: rgba(255, 248, 240, 0.05);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-tab:hover {
  transform: translateY(-2px);
}

.admin-tab.is-active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff8f0;
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(217, 74, 69, 0.22);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-card-wide {
  grid-column: 1 / -1;
}

.admin-form {
  display: grid;
  gap: 0.9rem;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label,
.auth-card label {
  display: grid;
  gap: 0.45rem;
  color: var(--color-muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 9, 10, 0.7);
  color: var(--color-text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
}

.checkbox-row input {
  width: auto;
}

.admin-subfield-label {
  margin-bottom: -0.2rem;
}

.weekday-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 0.55rem 0.8rem;
  align-items: start;
}

.weekday-selector .checkbox-row {
  min-width: 0;
  padding: 0.15rem 0;
  white-space: nowrap;
}

.stack-list,
.subsection {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.stack-item,
.inline-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.inline-actions form {
  margin: 0;
}

.menu-stock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.menu-stock-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 179, 71, 0.14);
  background: rgba(255, 248, 240, 0.04);
}

.menu-stock-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.menu-stock-head p {
  margin: 0.3rem 0 0;
  color: var(--color-muted);
}

.admin-item-description {
  font-size: 0.92rem;
  line-height: 1.45;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.22);
  color: var(--color-accent-soft);
  font-weight: 700;
}

.stock-editor-form {
  display: grid;
  gap: 0.75rem;
}

.admin-item-editor-featured,
#admin-item-editor-form .tpv-modal-actions {
  grid-column: 1 / -1;
}

#admin-item-editor-form [data-close-item-editor] {
  border-color: #c88a35;
  background: #fff1d8;
  color: #6f3a06;
}

.stock-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.stock-chip {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.24);
  background: rgba(255, 248, 240, 0.05);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.stock-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 179, 71, 0.45);
  background: rgba(255, 179, 71, 0.12);
}

.stock-chip-danger {
  border-color: rgba(217, 74, 69, 0.32);
  background: rgba(217, 74, 69, 0.12);
  color: #ffd8d4;
}

.stock-chip-danger:hover {
  border-color: rgba(217, 74, 69, 0.48);
  background: rgba(217, 74, 69, 0.18);
}

.stock-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.stock-editor-help {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.stock-editor-help.is-success {
  color: #a8f0b0;
}

.stock-editor-help.is-error {
  color: #ffb2aa;
}

.media-admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.media-admin-card img,
.media-admin-card video {
  border-radius: 1rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.audio-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin-bottom: 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 179, 71, 0.12);
  background: radial-gradient(circle at center, rgba(242, 140, 40, 0.2), rgba(35, 27, 28, 0.9));
  color: var(--color-accent-soft);
  letter-spacing: 0.18em;
}

.media-admin-card audio {
  width: 100%;
  margin-bottom: 0.8rem;
}

.install-app-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.38);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff8f0;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.install-app-button.has-audio-widget {
  bottom: 5.5rem;
}

.install-app-button:hover {
  filter: brightness(1.04);
}

@media (max-width: 640px) {
  .install-app-button {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .install-app-button.has-audio-widget {
    bottom: 5rem;
  }

  .audio-widget {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@keyframes pulse-audio {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 140, 40, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(242, 140, 40, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 140, 40, 0);
  }
}

.auth-shell {
  min-height: calc(100vh - 130px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(480px, 100%);
  padding: 2rem;
}

@media (max-width: 980px) {
  .hero,
  .section-about,
  .admin-grid,
  .menu-stock-grid,
  .order-market-header,
  .order-market-shell,
  .order-market-summary-total,
  .order-form-shell,
  .menu-grid,
  .offer-grid,
  .featured-grid,
  .contact-grid,
  .success-grid,
  .tpv-grid,
  .tpv-status-grid,
  .tpv-live-alert,
  .gallery-grid,
  .media-admin-grid {
    grid-template-columns: 1fr;
  }

  .order-market-summary,
  .order-market-categories {
    position: static;
  }

  .tpv-topbar,
  .tpv-terminal,
  .tpv-keypad-area,
  .tpv-client-grid,
  .tpv-ticket-summary,
  .tpv-quick-actions,
  .tpv-classic-stats,
  .tpv-product-grid,
  .tpv-orders-layout,
  .tpv-terminal-sidegrid,
  .tpv-products-layout,
  .tpv-field-editor-row {
    grid-template-columns: 1fr;
  }

  .tpv-touch-keys {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-header,
  .admin-hero,
  .section-heading,
  .stack-item,
  .inline-actions,
  .menu-stock-head {
    display: grid;
  }

  .hero-actions,
  .hero-meta,
  .compact-form,
  .tpv-actions,
  .report-filter-wide,
  .stock-editor-row {
    grid-template-columns: 1fr;
  }

  .section-note,
  .order-menu-item,
  .tpv-product-row,
  .tpv-order-top {
    display: grid !important;
  }

  .order-market-item,
  .order-market-summary-head {
    grid-template-columns: 1fr;
  }

  .order-market-item-actions,
  .order-market-summary-head {
    justify-content: stretch;
  }

  .order-market-summary-head .button,
  .order-market-submit {
    width: 100%;
  }

  .order-market-stepper {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }

  .order-market-stepper-button,
  .order-market-stepper-value {
    min-height: 54px;
  }

  .tpv-key {
    min-height: 62px;
  }

  .tpv-product-hitbox {
    min-height: 92px;
  }
}

@media (max-width: 1280px) {
  .order-market-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 900px) {
  .tpv-terminal {
    grid-template-columns: 1fr;
  }

  .tpv-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .tpv-classic-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpv-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpv-order-select-card,
  .tpv-selected-order-head {
    grid-template-columns: 1fr;
  }
}

/* TPV adaptive layout */
@media (max-width: 1400px) and (min-width: 1181px) {
  .tpv-shell {
    width: min(1320px, calc(100vw - 0.75rem));
    min-height: calc(100svh - 0.75rem);
    padding: 0.35rem;
  }

  .tpv-classic-shell {
    gap: 0.55rem;
  }

  .tpv-topbar {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 0.65rem;
  }

  .tpv-terminal {
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 0.6rem;
  }

  .tpv-products-layout {
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 0.55rem;
  }

  .tpv-product-hitbox {
    min-height: 96px;
  }

  .tpv-product-name {
    font-size: 0.88rem;
  }
}

@media (max-width: 1180px) and (min-width: 900px) and (orientation: landscape) {
  .tpv-shell {
    width: min(1024px, calc(100vw - 0.3rem));
    min-height: calc(100svh - 0.3rem);
    padding: 0.15rem;
  }

  .tpv-classic-shell {
    gap: 0.4rem;
  }

  .tpv-topbar {
    grid-template-columns: minmax(0, 1fr) 312px;
    gap: 0.45rem;
  }

  .tpv-main-tabs,
  .tpv-order-tabs {
    gap: 0.35rem;
    margin: 0;
  }

  .tpv-main-tab,
  .tpv-order-filter {
    min-height: 40px;
    padding: 0.48rem 0.68rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
  }

  .tpv-classic-stats {
    gap: 0.35rem;
  }

  .tpv-classic-stat {
    padding: 0.42rem 0.3rem;
    border-radius: 0.55rem;
  }

  .tpv-classic-stat strong {
    font-size: 1rem;
  }

  .tpv-classic-stat span {
    font-size: 0.66rem;
  }

  .tpv-terminal {
    grid-template-columns: 352px minmax(0, 1fr);
    gap: 0.45rem;
  }

  .tpv-screen-card,
  .tpv-terminal-right,
  .tpv-products-stage,
  .tpv-orders-list-panel {
    padding: 0.45rem;
    border-radius: 0.66rem;
  }

  .tpv-source-selector,
  .tpv-client-grid {
    gap: 0.35rem;
    margin-bottom: 0.42rem;
  }

  .tpv-client-field span {
    font-size: 0.66rem;
  }

  .tpv-client-field input {
    min-height: 36px;
    font-size: 0.88rem;
    padding-inline: 0.55rem;
  }

  .tpv-client-field-time {
    max-width: 120px;
  }

  .tpv-order-board-head {
    padding: 0.48rem 0.6rem;
    font-size: 0.76rem;
  }

  .tpv-order-board-body {
    padding: 0.42rem 0.6rem;
  }

  .tpv-order-row {
    gap: 0.35rem;
    font-size: 0.8rem;
  }

  .tpv-ticket-summary {
    gap: 0.38rem;
    margin-top: 0.45rem;
  }

  .tpv-ticket-summary article {
    padding: 0.48rem 0.58rem;
  }

  .tpv-ticket-summary article strong {
    font-size: 0.98rem;
  }

  .tpv-quick-actions {
    gap: 0.4rem;
  }

  .tpv-soft-button,
  .tpv-compact-accent {
    min-height: 36px;
    padding: 0.4rem 0.55rem;
    border-radius: 0.58rem;
    font-size: 0.79rem;
  }

  .tpv-products-layout {
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 0.42rem;
  }

  .tpv-category-strip {
    grid-auto-rows: 46px;
    gap: 0.3rem;
  }

  .tpv-category-chip {
    min-height: 46px;
    padding: 0.3rem;
    font-size: 0.74rem;
    border-radius: 0.52rem;
  }

  .tpv-payment-quickbar-side {
    gap: 0.28rem;
  }

  .tpv-payment-quickbar-side .tpv-compact-accent {
    min-height: 34px;
    font-size: 0.74rem;
  }

  .tpv-payment-quickbar-side .tpv-cash-button,
  .tpv-cash-button-bottom {
    min-height: 46px;
    margin-top: 0.3rem;
    font-size: 1rem;
    border-radius: 0.6rem;
  }

  .tpv-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.34rem;
  }

  .tpv-product-tile {
    gap: 0.24rem;
    padding: 0.28rem;
    border-radius: 0.5rem;
  }

  .tpv-product-hitbox {
    min-height: 82px;
    padding: 0.45rem;
    border-radius: 0.42rem;
  }

  .tpv-product-name {
    font-size: 0.76rem;
    line-height: 1.05;
  }

  .tpv-product-price {
    font-size: 0.78rem;
  }

  .tpv-product-stock {
    font-size: 0.58rem;
  }

  .tpv-product-qty-controls {
    grid-template-columns: 34px 1fr 34px;
    gap: 0.24rem;
  }

  .tpv-qty-button,
  .tpv-product-qty {
    min-height: 28px;
    border-radius: 0.34rem;
  }

  .tpv-product-qty {
    font-size: 0.86rem;
  }

  .tpv-qty-button {
    font-size: 1rem;
  }

  .tpv-orders-toolbar {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 0.4rem;
  }

  .tpv-orders-caption h2 {
    font-size: 0.96rem;
  }

  .tpv-panel-web-counter {
    min-width: 88px;
    padding: 0.38rem 0.4rem;
    border-radius: 0.58rem;
  }

  .tpv-panel-web-counter-label {
    font-size: 0.62rem;
  }

  .tpv-panel-web-counter strong {
    font-size: 1.05rem;
  }

  .tpv-order-select-card,
  .tpv-parked-card {
    padding: 0.55rem;
    gap: 0.45rem;
  }

  .tpv-order-select-side {
    gap: 0.26rem;
  }
}

@media (max-width: 899px) {
  .tpv-shell {
    width: min(100vw, calc(100vw - 0.25rem));
    min-height: calc(100svh - 0.25rem);
    padding: 0.12rem;
  }

  .tpv-classic-shell {
    gap: 0.45rem;
  }

  .tpv-topbar {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .tpv-main-tabs,
  .tpv-order-tabs {
    gap: 0.35rem;
  }

  .tpv-main-tab,
  .tpv-order-filter {
    flex: 1 1 calc(50% - 0.35rem);
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    font-size: 0.84rem;
  }

  .tpv-classic-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .tpv-classic-stat {
    padding: 0.48rem 0.35rem;
  }

  .tpv-classic-stat strong {
    font-size: 1rem;
  }

  .tpv-terminal {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    height: auto;
  }

  .tpv-terminal-left,
  .tpv-terminal-right,
  .tpv-screen-card,
  .tpv-products-stage,
  .tpv-orders-shell,
  .tpv-main-panel-terminal.is-active,
  .tpv-main-panel-list.is-active {
    height: auto;
    min-height: 0;
  }

  .tpv-screen-card,
  .tpv-terminal-right,
  .tpv-products-stage,
  .tpv-orders-list-panel {
    padding: 0.45rem;
  }

  .tpv-client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.4rem;
  }

  .tpv-client-field-large {
    grid-column: 1 / -1;
  }

  .tpv-client-field-time {
    max-width: none;
    justify-self: stretch;
  }

  .tpv-client-field input {
    min-height: 40px;
    font-size: 0.92rem;
  }

  .tpv-order-board {
    min-height: 240px;
    height: 240px;
    max-height: 240px;
  }

  .tpv-ticket-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .tpv-ticket-summary article {
    padding: 0.5rem;
  }

  .tpv-ticket-summary article strong {
    font-size: 1rem;
  }

  .tpv-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpv-products-layout {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    min-height: auto;
  }

  .tpv-category-side {
    grid-template-rows: auto auto auto;
    gap: 0.4rem;
  }

  .tpv-category-strip {
    display: flex;
    overflow: auto;
    gap: 0.35rem;
    padding-bottom: 0.1rem;
  }

  .tpv-category-chip {
    flex: 0 0 120px;
    min-height: 44px;
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
  }

  .tpv-payment-quickbar-side {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .tpv-payment-quickbar-side .tpv-compact-accent {
    min-height: 38px;
  }

  .tpv-cash-button-bottom {
    min-height: 48px;
    margin-top: 0;
    font-size: 1.05rem;
  }

  .tpv-products-stage,
  .tpv-product-panel.is-active,
  .tpv-product-grid {
    max-height: none;
    height: auto;
    overflow: visible;
  }

  .tpv-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding-right: 0;
  }

  .tpv-product-hitbox {
    min-height: 86px;
    padding: 0.48rem;
  }

  .tpv-product-name {
    font-size: 0.82rem;
  }

  .tpv-product-price {
    font-size: 0.82rem;
  }

  .tpv-product-stock {
    font-size: 0.6rem;
  }

  .tpv-product-qty-controls {
    grid-template-columns: 36px 1fr 36px;
  }

  .tpv-qty-button,
  .tpv-product-qty {
    min-height: 30px;
  }

  .tpv-orders-toolbar {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .tpv-panel-web-counter {
    justify-self: start;
    min-width: 84px;
    padding: 0.35rem 0.45rem;
  }

  .tpv-orders-list-panel .tpv-orders-list,
  .tpv-parked-list-panel {
    max-height: none;
  }

  .tpv-order-select-card,
  .tpv-parked-card {
    padding: 0.55rem;
  }

  .tpv-modal-card,
  .tpv-modal-card-large,
  .tpv-modal-card-editor {
    width: min(calc(100vw - 0.75rem), 720px);
    margin-top: 4vh;
    padding: 1rem;
  }

  .tpv-field-editor-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tpv-shell {
    width: 100vw;
    min-height: 100svh;
    padding: 0;
  }

  .tpv-classic-shell {
    gap: 0.35rem;
  }

  .tpv-screen-card,
  .tpv-terminal-right,
  .tpv-products-stage,
  .tpv-orders-list-panel {
    padding: 0.35rem;
    border-radius: 0.5rem;
  }

  .tpv-main-tab,
  .tpv-order-filter {
    flex: 1 1 100%;
    min-height: 40px;
    font-size: 0.8rem;
  }

  .tpv-classic-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpv-client-grid {
    grid-template-columns: 1fr;
  }

  .tpv-client-field-large {
    grid-column: auto;
  }

  .tpv-client-field input {
    min-height: 38px;
    font-size: 0.88rem;
  }

  .tpv-order-board-head,
  .tpv-order-row {
    grid-template-columns: 1fr 56px 84px;
    gap: 0.25rem;
  }

  .tpv-order-board {
    height: 210px;
    max-height: 210px;
  }

  .tpv-ticket-summary {
    grid-template-columns: 1fr;
  }

  .tpv-quick-actions,
  .tpv-payment-quickbar-side,
  .tpv-product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tpv-category-chip {
    flex-basis: 104px;
  }

  .tpv-product-hitbox {
    min-height: 78px;
  }

  .tpv-product-name {
    font-size: 0.78rem;
  }

  .tpv-orders-caption h2 {
    font-size: 0.92rem;
  }

  .tpv-order-select-card {
    grid-template-columns: 1fr;
  }

  .tpv-order-select-side {
    justify-items: start;
  }

  .tpv-modal-card,
  .tpv-modal-card-large,
  .tpv-modal-card-editor,
  .tpv-modal-card-editor.is-compact {
    width: calc(100vw - 0.5rem);
    margin-top: 1.5vh;
    padding: 0.8rem;
    border-radius: 0.75rem;
  }

  .tpv-field-editor-label input,
  .tpv-modal-card-editor.is-compact .tpv-field-editor-label input {
    min-height: 52px;
    font-size: 0.96rem;
  }

  .tpv-field-editor-key,
  .tpv-field-editor-key.is-time,
  .tpv-modal-card-editor.is-compact .tpv-field-editor-key.is-time {
    min-height: 52px;
    font-size: 0.96rem;
  }

  .tpv-payment-modal-grid {
    grid-template-columns: 1fr;
  }

  .tpv-modal-actions {
    justify-content: stretch;
  }

  .tpv-modal-actions .tpv-soft-button,
  .tpv-modal-actions .tpv-compact-accent {
    flex: 1 1 100%;
  }
}

@media (max-width: 899px) and (min-width: 800px) and (orientation: landscape) {
  .tpv-shell {
    width: min(100vw, calc(100vw - 0.2rem));
    min-height: calc(100svh - 0.2rem);
    padding: 0.1rem;
  }

  .tpv-classic-shell {
    gap: 0.3rem;
  }

  .tpv-topbar {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 0.35rem;
    align-items: start;
  }

  .tpv-main-tabs,
  .tpv-order-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .tpv-main-tab,
  .tpv-order-filter {
    flex: 1 1 auto;
    min-height: 38px;
    padding: 0.42rem 0.55rem;
    font-size: 0.78rem;
  }

  .tpv-classic-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .tpv-classic-stat {
    padding: 0.38rem 0.25rem;
    border-radius: 0.5rem;
  }

  .tpv-classic-stat strong {
    font-size: 0.92rem;
  }

  .tpv-classic-stat span {
    font-size: 0.62rem;
  }

  .tpv-terminal {
    grid-template-columns: 345px minmax(0, 1fr);
    gap: 0.35rem;
    height: 100%;
  }

  .tpv-screen-card,
  .tpv-terminal-right,
  .tpv-products-stage,
  .tpv-orders-list-panel {
    padding: 0.38rem;
    border-radius: 0.55rem;
  }

  .tpv-source-selector,
  .tpv-client-grid {
    gap: 0.3rem;
    margin-bottom: 0.35rem;
  }

  .tpv-client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpv-client-field span {
    font-size: 0.62rem;
  }

  .tpv-client-field input {
    min-height: 34px;
    padding: 0.45rem 0.55rem;
    font-size: 0.84rem;
  }

  .tpv-client-field-large {
    grid-column: 1 / -1;
  }

  .tpv-client-field-time {
    max-width: 132px;
    justify-self: end;
  }

  .tpv-order-board {
    height: 300px;
    max-height: 300px;
  }

  .tpv-order-board-head {
    padding: 0.45rem 0.55rem;
    font-size: 0.72rem;
  }

  .tpv-order-board-body {
    padding: 0.35rem 0.55rem;
  }

  .tpv-order-row {
    gap: 0.3rem;
    font-size: 0.78rem;
  }

  .tpv-ticket-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    margin-top: 0.35rem;
  }

  .tpv-ticket-summary article {
    padding: 0.42rem 0.5rem;
  }

  .tpv-ticket-summary article strong {
    font-size: 0.92rem;
  }

  .tpv-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .tpv-soft-button,
  .tpv-compact-accent {
    min-height: 34px;
    padding: 0.35rem 0.5rem;
    font-size: 0.76rem;
    border-radius: 0.5rem;
  }

  .tpv-products-layout {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 0.35rem;
    min-height: 0;
  }

  .tpv-category-side {
    grid-template-rows: auto auto 1fr auto;
    gap: 0.35rem;
  }

  .tpv-category-strip {
    display: grid;
    grid-auto-rows: 42px;
    gap: 0.24rem;
    overflow: visible;
  }

  .tpv-category-chip {
    min-height: 42px;
    padding: 0.25rem;
    font-size: 0.7rem;
    border-radius: 0.45rem;
  }

  .tpv-payment-quickbar-side {
    grid-template-columns: 1fr;
    gap: 0.24rem;
  }

  .tpv-payment-quickbar-side .tpv-compact-accent {
    min-height: 32px;
    font-size: 0.72rem;
  }

  .tpv-cash-button-bottom {
    min-height: 44px;
    margin-top: 0;
    font-size: 0.96rem;
    border-radius: 0.52rem;
  }

  .tpv-product-panel.is-active,
  .tpv-products-stage {
    height: 100%;
    min-height: 0;
  }

  .tpv-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
  }

  .tpv-product-tile {
    gap: 0.2rem;
    padding: 0.24rem;
    border-radius: 0.42rem;
  }

  .tpv-product-hitbox {
    min-height: 88px;
    padding: 0.4rem;
    border-radius: 0.36rem;
  }

  .tpv-product-name {
    font-size: 0.72rem;
    line-height: 1.05;
  }

  .tpv-product-price {
    font-size: 0.74rem;
  }

  .tpv-product-stock {
    font-size: 0.56rem;
  }

  .tpv-product-qty-controls {
    grid-template-columns: 30px 1fr 30px;
    gap: 0.2rem;
  }

  .tpv-qty-button,
  .tpv-product-qty {
    min-height: 26px;
    border-radius: 0.3rem;
  }

  .tpv-product-qty {
    font-size: 0.82rem;
  }

  .tpv-orders-toolbar {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 0.35rem;
  }

  .tpv-orders-caption h2 {
    font-size: 0.88rem;
  }

  .tpv-panel-web-counter {
    min-width: 82px;
    padding: 0.32rem 0.35rem;
  }

  .tpv-panel-web-counter-label {
    font-size: 0.58rem;
  }

  .tpv-panel-web-counter strong {
    font-size: 0.96rem;
  }
}

@media (min-width: 980px) and (max-width: 1100px) and (max-height: 720px) and (orientation: landscape) {
  html,
  body {
    height: 708px;
    min-height: 708px;
    overflow: hidden;
  }

  main.tpv-shell.tpv-classic-shell {
    width: 100vw;
    max-width: 1024px;
    min-height: 708px;
    height: 708px;
    padding: 0.08rem;
    gap: 0.24rem;
    overflow: hidden;
  }

  .tpv-topbar {
    grid-template-columns: minmax(0, 1fr) 244px;
    gap: 0.24rem;
    align-items: start;
  }

  .tpv-main-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .tpv-main-tab {
    min-height: 34px;
    padding: 0.26rem 0.32rem;
    font-size: 0.72rem;
    border-radius: 0.52rem;
  }

  .tpv-classic-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .tpv-classic-stat {
    padding: 0.24rem 0.16rem;
    border-radius: 0.48rem;
  }

  .tpv-classic-stat strong {
    font-size: 0.84rem;
  }

  .tpv-classic-stat span {
    font-size: 0.54rem;
  }

  .tpv-main-panel-terminal.is-active {
    min-height: 0;
    height: 100%;
  }

  .tpv-terminal {
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 0.24rem;
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }

  .tpv-terminal-left,
  .tpv-terminal-right,
  .tpv-screen-card,
  .tpv-products-stage,
  .tpv-products-layout,
  .tpv-product-panel.is-active {
    min-height: 0;
    height: 100%;
  }

  .tpv-screen-card,
  .tpv-terminal-right,
  .tpv-products-stage,
  .tpv-orders-list-panel {
    padding: 0.24rem;
    border-radius: 0.48rem;
  }

  .tpv-screen-card {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .tpv-source-selector,
  .tpv-client-grid {
    gap: 0.16rem;
    margin-bottom: 0.16rem;
  }

  .tpv-soft-button,
  .tpv-compact-accent {
    min-height: 28px;
    padding: 0.22rem 0.32rem;
    font-size: 0.64rem;
    border-radius: 0.4rem;
  }

  .tpv-client-field span {
    font-size: 0.52rem;
  }

  .tpv-client-field input {
    min-height: 26px;
    padding: 0.22rem 0.38rem;
    font-size: 0.72rem;
    border-radius: 0.38rem;
  }

  .tpv-client-field-time {
    max-width: 118px;
  }

  .tpv-order-board {
    height: 204px;
    max-height: 204px;
  }

  .tpv-order-board-head {
    padding: 0.24rem 0.34rem;
    font-size: 0.58rem;
  }

  .tpv-order-board-body {
    padding: 0.2rem 0.34rem;
  }

  .tpv-order-row {
    gap: 0.18rem;
    font-size: 0.62rem;
    padding: 0.18rem 0;
  }

  .tpv-empty-board {
    min-height: 92px;
    font-size: 0.68rem;
  }

  .tpv-ticket-summary {
    gap: 0.18rem;
    margin-top: 0.18rem;
  }

  .tpv-ticket-summary article {
    padding: 0.24rem 0.3rem;
  }

  .tpv-ticket-summary article strong {
    font-size: 0.74rem;
  }

  .tpv-terminal-controls {
    gap: 0.18rem;
  }

  .tpv-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.18rem;
  }

  .tpv-products-layout {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 0.18rem;
  }

  .tpv-category-side {
    grid-template-rows: auto auto 1fr auto;
    gap: 0.18rem;
  }

  .tpv-category-strip {
    grid-auto-rows: 36px;
    gap: 0.16rem;
  }

  .tpv-category-chip {
    min-height: 36px;
    padding: 0.18rem;
    font-size: 0.62rem;
    border-radius: 0.38rem;
  }

  .tpv-payment-quickbar-side {
    grid-template-columns: 1fr;
    gap: 0.16rem;
  }

  .tpv-payment-quickbar-side .tpv-compact-accent {
    min-height: 24px;
    font-size: 0.6rem;
  }

  .tpv-cash-button-bottom {
    min-height: 34px;
    font-size: 0.76rem;
    border-radius: 0.42rem;
  }

  .tpv-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.16rem;
    align-content: start;
  }

  .tpv-product-tile {
    gap: 0.1rem;
    padding: 0.14rem;
    border-radius: 0.34rem;
  }

  .tpv-product-hitbox {
    min-height: 58px;
    padding: 0.18rem;
    border-radius: 0.3rem;
  }

  .tpv-product-name {
    font-size: 0.58rem;
    line-height: 0.98;
  }

  .tpv-product-price {
    font-size: 0.6rem;
  }

  .tpv-product-stock {
    font-size: 0.44rem;
  }

  .tpv-product-qty-controls {
    grid-template-columns: 26px 1fr 26px;
    gap: 0.14rem;
  }

  .tpv-qty-button,
  .tpv-product-qty {
    min-height: 22px;
    border-radius: 0.24rem;
  }

  .tpv-product-qty {
    font-size: 0.66rem;
  }

  .tpv-orders-toolbar {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 0.35rem;
  }

  .tpv-orders-caption h2 {
    font-size: 0.86rem;
  }

  .tpv-panel-web-counter {
    min-width: 82px;
    padding: 0.32rem 0.35rem;
  }

  .tpv-panel-web-counter-label {
    font-size: 0.58rem;
  }

  .tpv-panel-web-counter strong {
    font-size: 0.95rem;
  }
}
