:root {
  color-scheme: light;
  --bg: #f4f8fc;
  --panel: #ffffff;
  --ink: #092a5e;
  --muted: #63758f;
  --line: #d8e5f2;
  --brand: #073575;
  --brand-2: #12c5a4;
  --brand-blue: #0b8fe8;
  --brand-soft: #e8f6ff;
  --brand-mint: #e8fbf6;
  --danger: #b42318;
  --ok: #0b8f72;
  --shadow: 0 14px 40px rgba(9, 42, 94, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--brand);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: #eef6fb;
  color: var(--ink);
}

button.ghost {
  background: transparent;
  color: var(--brand);
  padding: 8px 10px;
}

button.danger {
  background: var(--danger);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}

.ts-wrapper {
  width: 100%;
}

.ts-wrapper.single .ts-control,
.ts-dropdown {
  border-color: var(--line);
  border-radius: 8px;
  font: inherit;
}

.ts-wrapper.single .ts-control {
  min-height: 43px;
  padding: 8px 12px;
  box-shadow: none;
}

.ts-wrapper.focus .ts-control {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 143, 232, 0.16);
}

.ts-dropdown {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ts-dropdown .option,
.ts-dropdown .no-results {
  padding: 10px 12px;
}

.ts-dropdown .active {
  background: var(--brand-soft);
  color: var(--ink);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.locked-field {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7fbff;
}

.locked-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.locked-field strong {
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
}

.marketing-page {
  min-height: 100vh;
  background: #f4f8fc;
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.marketing-nav strong {
  font-size: 22px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-lockup img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.marketing-lockup img {
  height: 86px;
  max-width: min(430px, 72vw);
}

.marketing-nav div {
  display: flex;
  gap: 16px;
}

.marketing-nav a,
.marketing-plan a,
.button-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 900;
}

.marketing-hero {
  min-height: min(760px, 86vh);
  display: flex;
  align-items: center;
  padding: clamp(52px, 8vw, 110px) clamp(18px, 5vw, 64px);
  color: white;
  background:
    linear-gradient(90deg, rgba(4, 29, 70, 0.92), rgba(5, 75, 135, 0.58), rgba(18, 197, 164, 0.16)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1,
.pricing-section h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p,
.pricing-section p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.marketing-hero .eyebrow {
  color: #36e0bd;
}

.marketing-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--brand);
  color: white;
}

.secondary-link {
  background: #e8f6ff;
  color: var(--ink);
}

.feature-band,
.pricing-section,
.marketing-auth,
.visual-section {
  margin: 0 clamp(18px, 5vw, 64px) 34px;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.feature-band article,
.marketing-plan {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
}

.feature-band article {
  border-top: 5px solid var(--brand-2);
  box-shadow: var(--shadow);
}

.feature-band article:nth-child(2) {
  border-top-color: var(--brand-blue);
}

.feature-band article:nth-child(3) {
  border-top-color: var(--brand);
}

.feature-band span,
.marketing-plan p,
.marketing-plan li,
.form-note {
  color: var(--muted);
  line-height: 1.5;
}

.pricing-section {
  display: grid;
  gap: 22px;
  padding: 34px 0;
}

.visual-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 42px 0 18px;
}

.visual-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-section h2 {
  margin: 10px 0;
  max-width: 680px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.visual-section p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.pricing-section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.marketing-plan h3 {
  margin: 0;
  font-size: 34px;
}

.marketing-plan {
  background:
    linear-gradient(180deg, #ffffff, #f5fbff);
}

.marketing-plan:nth-child(2) {
  border-color: #64d8c4;
  box-shadow: 0 14px 40px rgba(18, 197, 164, 0.18);
}

.marketing-plan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.marketing-auth {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.marketing-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.6fr) minmax(0, 1fr);
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 64px);
  background: #061d46;
  color: white;
}

.marketing-footer strong {
  font-size: 24px;
}

.marketing-footer p,
.marketing-footer a {
  color: #bfd4e8;
}

.marketing-footer div {
  display: grid;
  gap: 8px;
  align-content: start;
}

.marketing-footer a {
  text-decoration: none;
  font-weight: 800;
}

.marketing-footer span {
  color: #36e0bd;
  font-weight: 900;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 56px;
  color: white;
  background:
    linear-gradient(90deg, rgba(4, 29, 70, 0.9), rgba(5, 75, 135, 0.38)),
    url("https://images.unsplash.com/photo-1556742044-3c52d6e88c62?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.auth-hero h1 {
  max-width: 660px;
  margin: 0 0 14px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-hero p {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.auth-panel {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 40px;
  background: var(--panel);
}

.auth-panel h2 {
  margin: 0;
  font-size: 28px;
}

.tabs,
.nav,
.segmented {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs button,
.nav button,
.segmented button {
  background: #eef6fb;
  color: var(--ink);
}

.tabs button.active,
.nav button.active,
.segmented button.active {
  background: var(--brand);
  color: white;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.full-span {
  grid-column: 1 / -1;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #061d46;
  color: white;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-toggle {
  width: 100%;
  height: 38px;
  padding: 0;
}

.brand {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand strong {
  font-size: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand span,
.userbox,
.hint {
  color: #a9c4df;
  font-size: 13px;
}

.sidebar .brand span {
  color: #36e0bd;
  font-weight: 900;
}

.nav {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-group,
.mobile-nav-group {
  display: grid;
  gap: 6px;
}

.nav-group-label,
.mobile-nav-label {
  width: 100%;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #85a8c8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-group-label.active,
.mobile-nav-label.active {
  color: #ffffff;
}

.nav-group-items,
.mobile-nav-items {
  display: none;
  gap: 6px;
}

.nav-group.open .nav-group-items,
.mobile-nav-group.open .mobile-nav-items {
  display: grid;
}

.nav-caret {
  font-size: 12px;
  opacity: 0.7;
}

.nav button {
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: #e8f6ff;
}

.nav .nav-group-label {
  background: rgba(255, 255, 255, 0.06);
}

.nav .nav-group-label.active {
  background: rgba(18, 197, 164, 0.22);
}

.nav button .nav-full,
.mobile-menu-panel button .nav-full {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-short {
  display: none;
}

.nav button.active {
  background: linear-gradient(90deg, #0b8fe8, #12c5a4);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #061d46;
}

.app-shell.sidebar-collapsed .sidebar {
  gap: 18px;
  padding: 18px 12px;
}

.app-shell.sidebar-collapsed .sidebar-header {
  justify-content: center;
}

.app-shell.sidebar-collapsed .brand,
.app-shell.sidebar-collapsed .sidebar .nav-full,
.app-shell.sidebar-collapsed .sidebar .nav-caret,
.app-shell.sidebar-collapsed .sidebar .nav-full,
.app-shell.sidebar-collapsed .userbox,
.app-shell.sidebar-collapsed #logout {
  display: none;
}

.app-shell.sidebar-collapsed .nav {
  gap: 12px;
  padding-right: 0;
}

.app-shell.sidebar-collapsed .nav button,
.app-shell.sidebar-collapsed .nav-group-label {
  justify-content: center;
  min-height: 42px;
  padding: 10px 8px;
  text-align: center;
}

.app-shell.sidebar-collapsed .sidebar .nav-short {
  display: inline;
  font-size: 12px;
  font-weight: 900;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  width: 42px;
  justify-self: center;
}

.main {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
}

.mobile-user,
.mobile-menu-wrap {
  display: none;
}

.mobile-menu-panel {
  display: none;
}

.section {
  display: grid;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  overflow-x: auto;
}

.panel h2,
.panel h3 {
  margin: 0 0 14px;
}

.collapsible-panel {
  display: grid;
  gap: 0;
}

.panel-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.panel-toggle h2 {
  margin: 0;
}

.panel-toggle span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.panel-body {
  margin-top: 16px;
}

.collapsible-panel.collapsed .panel-body {
  display: none;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi {
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  padding: 18px;
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.sales-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.sales-search {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: -18px -18px 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-tabs button {
  min-height: 38px;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #f7fbff;
  color: var(--ink);
}

.category-tabs button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.product-tap {
  width: 100%;
  min-height: 132px;
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
  padding: 14px;
  border-radius: 0;
  background: white;
  color: var(--ink);
  text-align: left;
}

.product-tap strong {
  min-height: 42px;
  line-height: 1.25;
}

.product-price {
  font-size: 18px;
  font-weight: 900;
}

.product-tap small {
  color: var(--muted);
  font-weight: 800;
}

.product-tap:active {
  background: var(--brand-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  flex-wrap: wrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--brand-mint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-toggle {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
}

.category-toggle input {
  width: auto;
  grid-row: 1 / span 2;
}

.category-toggle span {
  color: var(--ink);
}

.category-toggle small {
  color: var(--muted);
  font-weight: 800;
}

.option-editor {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfc;
}

.option-editor-head,
.option-group-head,
.option-value-grid,
.option-ingredient {
  display: grid;
  gap: 10px;
  align-items: end;
}

.option-editor-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.option-editor-head strong {
  display: block;
  margin-bottom: 3px;
}

.option-groups,
.option-values,
.option-ingredients {
  display: grid;
  gap: 12px;
}

.option-group,
.option-value {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.option-group-head {
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
}

.option-value-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 170px) auto auto;
}

.option-ingredients {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.option-ingredient {
  grid-template-columns: minmax(200px, 1fr) minmax(110px, 150px) auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 29, 70, 0.5);
  backdrop-filter: blur(4px);
}

.option-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 41;
  display: grid;
  gap: 16px;
  width: min(760px, calc(100vw - 28px));
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: 0 24px 70px rgba(9, 42, 94, 0.24);
  transform: translate(-50%, -50%);
}

.option-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.option-modal-head h2 {
  margin: 4px 0;
}

.option-modal-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.option-modal-groups {
  display: grid;
  gap: 14px;
}

.option-modal-group {
  display: grid;
  gap: 10px;
}

.option-modal-group-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.option-modal-group-title strong {
  color: var(--ink);
  font-size: 16px;
}

.option-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.option-choice {
  display: grid;
  gap: 4px;
  min-height: 76px;
  align-content: center;
  border: 1px solid var(--line);
  background: #f7fbff;
  color: var(--ink);
  text-align: left;
}

.option-choice.selected {
  border-color: var(--brand);
  background: var(--brand-mint);
  color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
}

.option-choice span {
  color: var(--muted);
  font-size: 13px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  min-height: 43px;
  color: var(--ink);
}

.checkbox-line input {
  width: auto;
}

.empty.compact {
  padding: 10px 0;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.cart-heading h2 {
  margin-bottom: 4px;
}

.cart-heading strong {
  font-size: 24px;
  white-space: nowrap;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 40px;
  height: 40px;
  padding: 0;
}

.qty-input {
  width: 86px;
  min-height: 40px;
  padding: 8px;
  text-align: center;
  font-weight: 900;
}

.total {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--line);
  font-size: 24px;
  font-weight: 900;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.table-action {
  min-height: 36px;
  padding: 8px 10px;
}

.table-tools,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.table-tools label {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
}

.table-tools select {
  width: auto;
  min-width: 86px;
}

.table-sort {
  padding: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-transform: uppercase;
  font-size: 12px;
}

.pagination button {
  min-height: 36px;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f7fbff;
}

.notice {
  border: 1px solid #9de6d7;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--brand-mint);
  color: #076858;
  font-weight: 800;
}

.billing-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.billing-hero h2 {
  margin-top: 10px;
}

.billing-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.billing-price {
  display: grid;
  gap: 4px;
  text-align: right;
}

.billing-price strong {
  font-size: 34px;
}

.billing-price span {
  color: var(--muted);
  font-weight: 800;
}

.plans-grid {
  display: grid;
  gap: 12px;
}

.plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.plan-card.active {
  border-color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
}

.plan-card h3 {
  margin: 0 0 8px;
}

.plan-card strong {
  display: block;
  font-size: 24px;
}

.plan-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.blocked-panel {
  max-width: 680px;
}

.blocked-panel h2 {
  margin-top: 12px;
}

.blocked-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.sale-actions button {
  width: 100%;
  min-height: 48px;
}

.mobile-checkout {
  display: none;
}

.empty {
  color: var(--muted);
  padding: 20px 0;
  text-align: center;
}

.status-ok {
  color: var(--ok);
  font-weight: 800;
}

.status-low {
  color: var(--danger);
  font-weight: 800;
}

.mobile-menu {
  display: none;
}

#ticket {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  #ticket,
  #ticket * {
    visibility: visible;
  }

  #ticket {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 58mm;
    padding: 4mm;
    font-family: Consolas, monospace;
    font-size: 10px;
    color: black;
  }

  #ticket h1,
  #ticket h2,
  #ticket p {
    margin: 0 0 4px;
    text-align: center;
  }

  #ticket table {
    font-size: 10px;
  }

  #ticket th,
  #ticket td {
    border: 0;
    padding: 2px 0;
  }
}

@media (max-width: 980px) {
  .auth,
  .app-shell,
  .split,
  .sales-screen,
  .visual-section,
  .marketing-footer {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: 42vh;
    padding: 32px;
  }

  .sidebar {
    position: static;
    display: none;
  }

  .app-shell {
    display: block;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: -28px -28px 18px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 248, 252, 0.96);
    backdrop-filter: blur(10px);
  }

  .mobile-user,
  .mobile-menu-wrap {
    display: block;
  }

  .mobile-user {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-menu-wrap {
    position: relative;
    margin-left: auto;
  }

  .mobile-menu-button {
    min-height: 42px;
  }

  .mobile-menu-panel.open {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(82vw, 300px);
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

  .mobile-menu-panel button {
    width: 100%;
    min-height: 44px;
    text-align: left;
    background: #eef6fb;
    color: var(--ink);
  }

  .mobile-menu-panel .mobile-nav-label {
    min-height: 38px;
    background: #e6f3fb;
    color: var(--muted);
  }

  .mobile-menu-panel button.active {
    background: var(--brand);
    color: white;
  }

  .mobile-menu-panel button.danger {
    background: var(--danger);
    color: white;
    text-align: center;
  }

  .mobile-menu-user {
    display: grid;
    gap: 2px;
    padding: 6px 4px 10px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu-user span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

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

  .feature-band,
  .pricing-grid,
  .option-group-head,
  .option-value-grid,
  .option-ingredient {
    grid-template-columns: 1fr;
  }

  .feature-band {
    margin-top: 18px;
  }

  .option-editor-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    background: white;
  }

  .main,
  .auth-panel {
    padding: 14px;
  }

  .marketing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketing-lockup img {
    height: 66px;
    max-width: min(360px, 88vw);
  }

  .marketing-hero {
    padding-top: 28px;
    min-height: 74vh;
  }

  .hero-actions,
  .hero-actions a {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .two,
  .kpis {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin: -14px -14px 12px;
    padding: 12px 14px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .desktop-date {
    display: none;
  }

  #clearCart {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
  }

  .panel {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 14px;
    margin-left: -14px;
    margin-right: -14px;
  }

  .option-editor {
    padding: 12px;
  }

  .option-modal {
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    border-radius: 8px 8px 0 0;
    transform: translateX(-50%);
  }

  .option-modal-head {
    display: grid;
  }

  .option-modal-head button {
    width: 100%;
  }

  .option-choice-grid {
    grid-template-columns: 1fr;
  }

  .option-group,
  .option-value {
    padding: 10px;
  }

  .option-editor button,
  .option-group button,
  .option-value button,
  .option-ingredient button {
    width: 100%;
    min-height: 42px;
  }

  .sales-screen {
    padding-bottom: 92px;
  }

  .sales-products {
    padding-top: 0;
  }

  .sales-search {
    top: 0;
    margin: 0 -14px 12px;
    padding: 12px 14px;
  }

  .sales-search input {
    min-height: 48px;
    font-size: 16px;
  }

  .category-tabs {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .category-tabs button {
    min-height: 42px;
  }

  .billing-hero,
  .plan-card {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-price {
    text-align: left;
  }

  .plan-card button {
    min-height: 46px;
  }

  .sales-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-tap {
    min-height: 142px;
    padding: 12px;
  }

  .product-tap strong {
    min-height: 48px;
    font-size: 15px;
  }

  .product-price {
    font-size: 17px;
  }

  .sale-cart {
    order: 2;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .qty {
    justify-content: space-between;
  }

  .qty button {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .qty-input {
    width: min(46vw, 150px);
    min-height: 48px;
    font-size: 16px;
  }

  .sale-actions {
    display: none;
  }

  .mobile-checkout {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: white;
    box-shadow: 0 -12px 28px rgba(9, 42, 94, 0.14);
  }

  .mobile-checkout div {
    display: grid;
    gap: 2px;
  }

  .mobile-checkout span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-checkout strong {
    font-size: 22px;
  }

  .mobile-checkout button {
    min-width: 128px;
    min-height: 52px;
  }

  th,
  td {
    padding: 10px 6px;
    font-size: 13px;
  }
}
