:root {
  color-scheme: light;
  --ink: #201915;
  --muted: #6f6259;
  --line: #e6ddd3;
  --paper: #f7f3ee;
  --surface: #fffaf4;
  --surface-strong: #ffffff;
  --brand: #0e6f63;
  --brand-dark: #063d37;
  --coffee: #5b3525;
  --copper: #b97943;
  --cream: #f2dfc3;
  --accent: #b3261e;
  --shadow: 0 18px 45px rgba(45, 31, 22, 0.10);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.92), rgba(247, 243, 238, 0.98)),
    radial-gradient(circle at top left, rgba(185, 121, 67, 0.12), transparent 34%);
  color: var(--ink);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(91, 53, 37, 0.12);
  background: rgba(255, 250, 244, 0.88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-x: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff7ed;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(6, 61, 55, 0.22);
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.customer-topbar {
  min-height: 62px;
  justify-content: center;
  padding: 10px 16px;
}

.customer-topbar .brand {
  pointer-events: none;
}

.customer-public-page .page {
  margin-top: 14px;
}

.public-topbar {
  position: sticky;
}

.public-nav .nav-order {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 10px 20px rgba(14, 111, 99, 0.18);
}

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.main-nav::-webkit-scrollbar,
.category-strip::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.main-nav button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
}

.main-nav a:hover,
.main-nav button:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
}

nav form {
  margin: 0;
}

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

button,
.primary,
.button-link {
  min-height: 42px;
  border: 0;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #ffffff;
  padding: 11px 15px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(14, 111, 99, 0.18);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.ghost-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 250, 244, 0.52);
  color: #fff7ed;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.10);
}

.ghost-link.compact {
  color: var(--brand-dark);
  border-color: var(--line);
  background: #ffffff;
}

.page {
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 44px;
}

.hero-shell {
  min-height: 360px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(22px, 5vw, 48px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.86), rgba(20, 14, 11, 0.58) 44%, rgba(20, 14, 11, 0.10)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--copper), var(--brand), var(--cream));
}

.internet-entry-hero {
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 18px;
  padding: clamp(24px, 6vw, 48px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.86), rgba(20, 14, 11, 0.42)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.corporate-hero {
  min-height: min(640px, calc(100vh - 116px));
  display: flex;
  align-items: flex-end;
  margin-bottom: 18px;
  padding: clamp(24px, 6vw, 54px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.88), rgba(20, 14, 11, 0.44), rgba(20, 14, 11, 0.18)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.corporate-hero-content {
  width: min(700px, 100%);
}

.corporate-hero h1 {
  max-width: 12ch;
  margin: 8px 0 12px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
}

.corporate-hero p {
  max-width: 58ch;
  color: rgba(255, 247, 237, 0.84);
  font-size: 17px;
  line-height: 1.55;
}

.corporate-band,
.taste-showcase {
  margin: 18px 0;
  padding: clamp(20px, 4vw, 34px) 0;
}

.corporate-band .section-head p {
  max-width: 520px;
}

.corporate-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.corporate-feature-grid article,
.taste-grid article {
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.corporate-feature-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.corporate-feature-grid span {
  color: var(--muted);
}

.taste-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1.18fr;
  align-items: center;
  gap: 18px;
}

.taste-showcase p {
  color: var(--muted);
  line-height: 1.55;
}

.taste-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.taste-grid article {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.taste-grid img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.loyalty-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.loyalty-band p {
  color: var(--muted);
}

.internet-entry-copy {
  width: min(680px, 100%);
  position: relative;
  z-index: 1;
}

.internet-entry-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.02;
  max-width: 12ch;
}

.internet-entry-copy p {
  max-width: 58ch;
  color: rgba(255, 247, 237, 0.84);
  font-size: 17px;
  line-height: 1.55;
}

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

.entry-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.entry-card p {
  margin: 0;
  color: var(--muted);
}

.table-entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.table-entry-list a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--brand-dark);
  background: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.hero-content {
  width: min(650px, 100%);
  position: relative;
  z-index: 1;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.90), rgba(20, 14, 11, 0.58)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(32px, 5vw, 52px);
}

.admin-hero p {
  max-width: 620px;
  color: rgba(255, 247, 237, 0.84);
}

.admin-hero-actions {
  width: min(390px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-hero-actions a {
  justify-content: center;
  text-align: center;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-metrics article {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 244, 0.95);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.admin-metrics span,
.admin-metrics small {
  color: var(--muted);
  font-size: 13px;
}

.admin-metrics strong {
  display: block;
  margin: 8px 0;
  color: var(--brand-dark);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  margin-bottom: 14px;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-action-grid a,
.station-summary div,
.payment-chip-grid div,
.top-item-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
  text-decoration: none;
}

.quick-action-grid strong,
.station-summary strong,
.top-item-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.quick-action-grid span,
.station-summary span,
.top-item-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.station-summary,
.payment-chip-grid,
.top-item-list {
  display: grid;
  gap: 10px;
}

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

.payment-chip-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.assignment-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.assignment-actions {
  display: grid;
  gap: 10px;
}

.assignment-card strong,
.assignment-card span {
  display: block;
}

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

.staff-form-grid,
.staff-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.staff-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.staff-card-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.staff-card-head img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(6, 61, 55, 0.14);
}

.staff-card-head h2 {
  margin: 4px 0;
  font-size: 21px;
}

.staff-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.staff-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-facts span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.09);
  font-size: 12px;
  font-weight: 800;
}

.payment-chip-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-dark);
}

.top-item-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.10);
  font-size: 12px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  max-width: 11ch;
}

.hero-content p {
  max-width: 58ch;
  color: rgba(255, 247, 237, 0.82);
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-shell .eyebrow {
  color: var(--cream);
}

.auth-panel,
.panel,
.metrics article,
.table-tile,
.menu-item,
.order-card,
.day-totals article {
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.auth-panel,
.panel {
  padding: clamp(18px, 3vw, 26px);
}

.auth-panel {
  width: min(440px, 100%);
  margin: 56px auto;
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--copper));
}

.section-head,
.bill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

h1,
h2 {
  margin: 6px 0 0;
  line-height: 1.15;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(14, 111, 99, 0.14);
  border-color: var(--brand);
}

.alert {
  color: var(--accent);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metrics article {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metrics article::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(185, 121, 67, 0.28);
  border-radius: 50%;
}

.metrics span,
.menu-item span,
.bill-head span,
.day-totals span,
.order-card span {
  color: var(--muted);
  font-size: 13px;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

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

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

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

tr:hover td {
  background: rgba(14, 111, 99, 0.04);
}

.menu-head {
  margin: 0 0 18px;
  padding: 28px;
  border-radius: 8px;
  color: #fff7ed;
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.82), rgba(20, 14, 11, 0.38)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.menu-head p {
  color: rgba(255, 247, 237, 0.82);
}

.menu-list {
  display: grid;
  gap: 12px;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto 190px;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.item-controls {
  display: grid;
  gap: 8px;
}

.menu-item h2 {
  margin: 4px 0;
  font-size: 18px;
}

.menu-item p {
  margin: 0;
  color: var(--muted);
}

.sticky {
  position: sticky;
  bottom: 12px;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 14px;
}

.ops-card {
  align-self: start;
}

.task-list,
.waiter-order-stack,
.station-lines {
  display: grid;
  gap: 10px;
}

.waiter-profile-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(14, 111, 99, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(14, 111, 99, 0.08), rgba(255, 250, 244, 0.96));
}

.waiter-profile-card img {
  width: 76px;
  height: 76px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(6, 61, 55, 0.16);
}

.waiter-profile-card h2 {
  margin: 4px 0;
  font-size: 22px;
}

.waiter-profile-card p {
  margin: 0;
  color: var(--muted);
}

.customer-waiter-card {
  grid-template-columns: 76px 1fr auto;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.task-row.is-ready {
  border-color: rgba(14, 111, 99, 0.26);
  background: rgba(14, 111, 99, 0.07);
}

.task-row strong,
.station-line strong {
  display: block;
}

.task-row span,
.station-line span,
.station-order-head span,
.station-order-head small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.compact-table-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.table-task-list {
  margin-bottom: 16px;
}

.waiter-order-card,
.station-order-card {
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
  min-width: 0;
}

.station-board {
  min-height: 70vh;
}

.station-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.station-order-card {
  display: grid;
  gap: 12px;
  border-left: 6px solid var(--brand);
}

.station-order-card.is-late {
  border-left-color: var(--accent);
  background: #fff7f3;
}

.station-order-head,
.station-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.station-line {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.station-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.station-line em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  color: #7a4d00;
  background: #fde9a8;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.station-note {
  margin: 0;
  border-radius: 8px;
  padding: 10px;
  color: var(--coffee);
  background: #fff2df;
}

.order-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.order-card strong {
  font-size: 20px;
}

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

.table-tile {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.table-tile::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.10;
}

.table-tile strong {
  font-size: 21px;
}

.table-tile span {
  color: var(--muted);
}

.table-tile small {
  color: var(--brand-dark);
  font-weight: 800;
}

.table-alert {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.table-total {
  color: var(--brand-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.cashier-table-grid .table-tile {
  gap: 8px;
}

.cashier-order-block {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.status-empty {
  color: #267046;
  border-left: 6px solid #267046;
}

.status-waiting_order,
.status-payment_requested {
  color: #a25f17;
  border-left: 6px solid #c47f17;
}

.status-preparing,
.status-ready,
.status-seated {
  color: #1d5d88;
  border-left: 6px solid #2364aa;
}

.bill-head strong {
  font-size: 30px;
}

.cashier-actions,
.split-options,
.station-actions,
.day-totals,
.end-day-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.cash-close-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0;
  border: 1px solid rgba(14, 111, 99, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(14, 111, 99, 0.06);
}

.cash-close-panel button {
  align-self: end;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-form input,
.inline-form select {
  width: min(220px, 100%);
}

.day-totals article {
  padding: 14px;
  min-width: 170px;
}

.day-totals strong {
  display: block;
  margin-top: 6px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.tier {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tier-bronze {
  color: #784421;
  background: #f5dfcf;
}

.tier-silver {
  color: #475569;
  background: #e5e7eb;
}

.tier-gold {
  color: #7a4d00;
  background: #fde9a8;
}

.success-note {
  border: 1px solid rgba(14, 111, 99, 0.22);
  border-radius: 8px;
  padding: 12px;
  color: var(--brand-dark);
  background: rgba(14, 111, 99, 0.08);
}

.muted-line {
  color: var(--muted);
  font-size: 13px;
}

.customer-hero {
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: clamp(22px, 6vw, 38px);
  border-radius: 8px;
  color: #fff7ed;
  background:
    linear-gradient(180deg, rgba(20, 14, 11, 0.18), rgba(20, 14, 11, 0.86)),
    url("images/coffeecoffee-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.customer-hero h1 {
  max-width: 620px;
  margin: 8px 0 10px;
  font-size: clamp(34px, 8vw, 64px);
}

.customer-hero p {
  max-width: 520px;
  color: rgba(255, 247, 237, 0.84);
}

.customer-actions {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.customer-actions form,
.customer-actions button,
.customer-actions .button-soft {
  width: 100%;
}

.button-soft {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 244, 0.35);
  border-radius: 8px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.category-strip {
  position: sticky;
  top: 76px;
  z-index: 12;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 12px;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.category-strip a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--coffee);
  background: #fffaf4;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.customer-menu {
  display: grid;
  gap: 12px;
  padding-bottom: 86px;
}

.category-title {
  margin: 22px 0 2px;
  font-size: 24px;
}

.customer-item {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 16px;
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
  overflow: hidden;
}

.customer-item-photo {
  min-height: 190px;
  width: 100%;
  display: block;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--cream);
  padding: 0;
  cursor: pointer;
  box-shadow: none;
}

.customer-item-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.28s ease;
}

.customer-item:hover .customer-item-photo img {
  transform: scale(1.04);
}

.customer-item-photo span {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #7a4d00;
  background: #fde9a8;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(45, 31, 22, 0.16);
}

.customer-item-photo b {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(6, 61, 55, 0.28);
}

.item-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.item-main span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.item-main h3 {
  margin: 4px 0;
  font-size: 20px;
}

.item-main p {
  margin: 0;
  color: var(--muted);
}

.item-main strong {
  min-width: 98px;
  text-align: right;
  color: var(--brand-dark);
  font-size: 18px;
}

.item-main small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: line-through;
}

.item-main em {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #7a4d00;
  background: #fde9a8;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.customer-controls {
  display: grid;
  grid-template-columns: 44px 72px 44px 1fr;
  gap: 8px;
  align-self: end;
  grid-column: 2;
}

.qty-button,
.plain-button,
.danger-button {
  min-height: 42px;
  box-shadow: none;
}

.qty-button {
  padding: 0;
  background: #ffffff;
  color: var(--brand-dark);
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
}

.plain-button {
  background: #ffffff;
  color: var(--coffee);
  border: 1px solid var(--line);
  padding: 8px 11px;
}

.danger-button {
  background: #fff2ef;
  color: var(--accent);
  border: 1px solid rgba(179, 38, 30, 0.22);
  padding: 8px 11px;
}

.customer-account {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.customer-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.account-card,
.customer-order-card {
  border: 1px solid rgba(91, 53, 37, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 30px rgba(45, 31, 22, 0.06);
}

.account-card span,
.account-card small,
.customer-order-head span,
.order-line span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.account-card strong {
  display: block;
  margin: 6px 0;
  font-size: 26px;
}

.member-card h2,
.takeaway-pay h2 {
  font-size: 20px;
}

.member-card .plain-button,
.campaign-row .plain-button {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.campaign-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.campaign-row {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

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

.takeaway-pay {
  margin-bottom: 4px;
}

.customer-orders {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.customer-order-card,
.customer-order-items {
  display: grid;
  gap: 12px;
}

.customer-order-head,
.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-line {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.customer-note {
  margin-top: 8px;
}

.customer-submit {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  width: 100%;
  min-height: 54px;
  font-size: 17px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-topbar {
    align-items: center;
    flex-direction: row;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .main-nav a,
  .main-nav button {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .public-nav {
    padding-right: 4px;
  }

  .page {
    width: min(100% - 20px, 1180px);
    margin-top: 14px;
  }

  .hero-shell {
    min-height: 420px;
    align-items: flex-end;
    background-position: center right;
  }

  .internet-entry-hero {
    min-height: 460px;
  }

  .internet-entry-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-hero-actions,
  .admin-metrics,
  .admin-workspace,
  .quick-action-grid,
  .assignment-grid,
  .staff-form-grid,
  .staff-edit-grid,
  .staff-grid,
  .station-summary {
    grid-template-columns: 1fr;
  }

  .corporate-feature-grid,
  .taste-showcase,
  .taste-grid {
    grid-template-columns: 1fr;
  }

  .loyalty-band {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-hero {
    min-height: 460px;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
  }

  .customer-actions {
    width: 100%;
  }

  .category-strip {
    top: 132px;
  }

  .hero-content h1 {
    max-width: 100%;
  }

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

  .item-main {
    align-items: stretch;
    flex-direction: column;
  }

  .item-main strong {
    text-align: left;
  }

  .customer-controls {
    grid-template-columns: 44px 1fr 44px;
  }

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

  .customer-item-photo {
    min-height: 230px;
  }

  .customer-controls {
    grid-column: auto;
  }

  .customer-controls input[type="text"] {
    grid-column: 1 / -1;
  }

  .section-head,
  .bill-head {
    align-items: stretch;
    flex-direction: column;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .settings-grid,
  .customer-member-grid,
  .ops-grid,
  .insight-grid,
  .metrics,
  .orders-grid,
  .table-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .cash-close-panel {
    grid-template-columns: 1fr;
  }

  .inline-form input,
  .inline-form select,
  .inline-form button {
    width: 100%;
  }

  .waiter-order-card .button-link {
    width: 100%;
    justify-content: center;
  }

  .waiter-order-card table {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .topbar {
    min-height: auto;
    padding: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .page {
    width: min(100% - 14px, 1180px);
  }

  .panel,
  .auth-panel {
    padding: 16px;
  }

  .customer-hero {
    min-height: 390px;
    padding: 18px;
  }

  .internet-entry-hero {
    min-height: 430px;
    padding: 18px;
  }

  .internet-entry-copy h1 {
    max-width: 100%;
  }

  .customer-actions {
    grid-template-columns: 1fr 1fr;
  }

  .customer-item-photo {
    min-height: 190px;
  }

  .customer-controls {
    grid-template-columns: 1fr;
  }

  .customer-order-head,
  .order-line,
  .waiter-profile-card,
  .task-row,
  .station-order-head,
  .station-line {
    align-items: stretch;
    flex-direction: column;
  }

  .waiter-profile-card {
    grid-template-columns: 64px 1fr;
  }

  .customer-waiter-card {
    grid-template-columns: 64px 1fr;
  }

  .customer-waiter-card form {
    grid-column: 1 / -1;
  }

  .waiter-profile-card img {
    width: 64px;
    height: 64px;
  }

  .danger-button,
  .button-link,
  .plain-button {
    width: 100%;
  }

  .campaign-row .inline-form {
    align-items: stretch;
  }

  .member-card .plain-button,
  .campaign-row .plain-button {
    width: 100%;
    justify-content: center;
  }

  .customer-submit {
    bottom: 8px;
  }
}
