@font-face {
  font-family: "RundDisplay";
  src: url("/assets/fonts/RundDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RundDisplay";
  src: url("/assets/fonts/RundDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RundDisplay";
  src: url("/assets/fonts/RundDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RundDisplay";
  src: url("/assets/fonts/RundDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RundText";
  src: url("/assets/fonts/RundText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RundText";
  src: url("/assets/fonts/RundText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RundText";
  src: url("/assets/fonts/RundText-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RundText";
  src: url("/assets/fonts/RundText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Albra";
  src: url("/assets/fonts/Albra-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Albra";
  src: url("/assets/fonts/Albra-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Albra";
  src: url("/assets/fonts/Albra-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #292929;
  --paper: rgba(255, 241, 231, 0.95);
  --panel: rgba(255, 255, 255, 0.06);
  --ink: #292929;
  --muted: rgba(41, 41, 41, 0.72);
  --accent: #c63c26;
  --accent-2: #eb1d25;
  --gold: #fff1e7;
  --danger: #8b2f2b;
  --border: rgba(255, 241, 231, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  font-family: "RundText", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 60, 38, 0.22), transparent 24%),
    radial-gradient(circle at bottom right, rgba(235, 29, 37, 0.16), transparent 30%),
    linear-gradient(180deg, #292929 0%, #202020 100%);
  font-family: "RundText", serif;
}

.board-body {
  min-height: 100vh;
  overflow: hidden;
}

.board-loading,
.admin-shell {
  min-height: 100vh;
}

.board-viewport {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.board-stage {
  width: 1920px;
  height: 1080px;
  transform: scale(var(--board-scale, 1));
  transform-origin: center center;
}

.board-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 24px 30px 24px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.board-header {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1rem;
  align-items: end;
}

.title-mark {
  font-family: "RundDisplay", serif;
  font-size: clamp(2rem, 3vw, 3.8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.board-subtitle,
.section-kicker,
.meta-text,
.field-help,
.empty-state,
.status-text {
  color: var(--muted);
}

.board-shell .title-mark,
.board-shell .section-title,
.board-shell .beer-name,
.board-shell .menu-item-name,
.board-shell .large-price,
.board-shell .tap-price-col {
  color: #fff;
}

.board-shell .board-subtitle,
.board-shell .section-kicker,
.board-shell .meta-text,
.board-shell .brewery-name,
.board-shell .beer-note,
.board-shell .menu-item-subtitle,
.board-shell .empty-state {
  color: rgba(255, 241, 231, 0.78);
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: stretch;
  min-height: 100%;
  height: 100%;
}

.board-main-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
  border-right: 1px solid rgba(255, 241, 231, 0.18);
  padding-right: 28px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.board-shell .panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.panel-inner {
  padding: 1rem 1.1rem;
}

.board-shell .panel-inner {
  padding: 0;
}

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

.board-shell .tap-grid {
  gap: 0 14px;
}

.tap-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,245,233,0.8));
  border: 1px solid rgba(41, 41, 41, 0.08);
  border-radius: 24px;
  padding: 1.05rem;
  display: grid;
  gap: 0.55rem;
  min-height: 172px;
}

.board-shell .tap-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 7px 0 10px;
  min-height: 126px;
}

.board-shell .tap-card:nth-last-child(-n + 2) {
  padding-bottom: 0.4rem;
}

.tap-topline,
.section-head,
.inline-split,
.admin-header,
.toolbar,
.form-row,
.table-head,
.table-row,
.inventory-card-head,
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tap-badge,
.pill,
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-weight: 700;
}

.tap-badge {
  background: rgba(198, 60, 38, 0.12);
  color: var(--accent);
  min-width: 3rem;
  font-family: "RundText", serif;
}

.board-shell .tap-badge {
  background: transparent;
  color: rgba(255, 241, 231, 0.9);
  min-width: 0;
  padding: 0;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.icon-chip {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  background: rgba(41, 41, 41, 0.08);
  color: var(--ink);
  font-family: "RundText", serif;
}

.tap-gridline {
  display: flex;
  justify-content: flex-start;
  align-items: start;
  gap: 0.8rem;
}

.tap-leading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.style-square {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.78);
}

.style-ipa { background: #eb1d25; }
.style-stout { background: #8a5a44; color: #fff1e7; }
.style-lager { background: #d4b15a; }
.style-wheat { background: #f1c979; }
.style-pale { background: #f18b2b; }
.style-pilsner { background: #f3df7a; }
.style-specialty { background: #128578; color: #fff1e7; }
.style-holiday { background: #c63c26; color: #fff1e7; }
.style-saison { background: #99b85d; }
.style-cider { background: #d96c5f; color: #fff1e7; }

.tap-price-col {
  font-family: "RundDisplay", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  min-width: 6.25rem;
  text-align: left;
  flex-shrink: 0;
}

.empty-price {
  color: rgba(255, 241, 231, 0.5);
}

.beer-name,
.menu-item-name {
  font-weight: 700;
  line-height: 1;
}

.beer-name {
  font-family: "RundDisplay", serif;
  font-size: clamp(1.28rem, 1.8vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brewery-name {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: "RundText", serif;
  font-weight: 600;
}

.beer-note,
.menu-item-subtitle {
  font-size: 0.95rem;
  line-height: 1.35;
}

.tap-main {
  display: grid;
  gap: 0.2rem;
}

.tap-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.meta-row,
.pricing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  background: rgba(41, 41, 41, 0.08);
  font-family: "RundText", serif;
  font-weight: 600;
}

.board-shell .pill {
  background: transparent;
  border: 1px solid rgba(255, 241, 231, 0.18);
  color: rgba(255, 241, 231, 0.9);
  border-radius: 0;
  padding: 0.18rem 0.45rem;
  font-size: 0.78rem;
}

.price-pill {
  background: rgba(198, 60, 38, 0.12);
  color: var(--accent);
}

.board-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  padding-left: 4px;
}

.board-side-1 {
  grid-template-rows: minmax(0, 1fr);
}

.board-grid-full {
  grid-template-columns: 1fr;
  gap: 0;
}

.board-main-column-full {
  border-right: 0;
  padding-right: 0;
}

.board-shell .panel {
  position: relative;
}

.menu-list {
  display: grid;
  gap: 0.8rem;
}

.menu-item {
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(41, 41, 41, 0.07);
}

.board-shell .menu-list {
  gap: 0;
}

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

.board-shell .menu-item {
  padding: 9px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.compact-menu-item {
  min-height: 0;
}

.wine-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  border-top: 1px solid rgba(255, 241, 231, 0.18);
}

.wine-panel .section-head {
  margin-bottom: 0.1rem;
}

.board-side .panel + .panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  border-top: 1px solid rgba(255, 241, 231, 0.18);
}

.menu-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 1.8rem;
  align-items: baseline;
}

.compact-menu-item .menu-item-meta {
  gap: 1.5rem;
}

.compact-menu-item .large-price {
  min-width: 6.25rem;
  text-align: left;
  flex-shrink: 0;
}

.admin-body {
  min-height: 100vh;
  padding: 1rem;
  background:
    radial-gradient(circle at top left, rgba(198, 60, 38, 0.14), transparent 24%),
    linear-gradient(180deg, #fff1e7 0%, #f8e8dc 100%);
  color: #292929;
}

.admin-root {
  display: grid;
  gap: 1rem;
}

.admin-header {
  padding: 1rem 1.25rem;
  background: rgba(255, 247, 240, 0.78);
  border: 1px solid rgba(41, 41, 41, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(41, 41, 41, 0.08);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.admin-main,
.admin-side {
  display: grid;
  gap: 1rem;
}

.admin-card {
  background: rgba(255, 247, 240, 0.74);
  border: 1px solid rgba(41, 41, 41, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(41, 41, 41, 0.08);
  padding: 1rem;
}

.admin-card h2,
.admin-card h3,
.section-title {
  margin: 0;
}

.admin-card > .section-head {
  margin-bottom: 6.25rem;
}

.toolbar {
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

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

button,
.button {
  border: 0;
  border-radius: 14px;
  padding: 0.72rem 1rem;
  background: #292929;
  color: #fff;
  cursor: pointer;
  font-family: "RundText", serif;
  font-weight: 600;
}

button.secondary {
  background: rgba(41, 41, 41, 0.08);
  color: var(--ink);
}

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

button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(198, 60, 38, 0.24);
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(41, 41, 41, 0.14);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 250, 246, 0.9);
  color: var(--ink);
  font-family: "RundText", serif;
}

select {
  padding-right: 2.1rem;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

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

.form-section {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(41, 41, 41, 0.06);
}

.form-section-title {
  margin: 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.radio-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(41, 41, 41, 0.14);
  background: rgba(255, 250, 246, 0.9);
}

.radio-pill input {
  width: auto;
  margin: 0;
}

.form-row {
  align-items: start;
}

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

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.table,
.inventory-list,
.history-list {
  display: grid;
  gap: 0.65rem;
}

.table-row,
.inventory-card,
.history-row {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 250, 246, 0.82);
  border: 1px solid rgba(41, 41, 41, 0.07);
}

.table-row {
  align-items: flex-start;
  display: grid;
  gap: 0.8rem;
  position: relative;
}

.table-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.table-row-main {
  display: grid;
  gap: 0.8rem;
  width: 100%;
}

.table-row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.table-row-summary {
  display: grid;
  gap: 0.2rem;
  flex: 1 1 auto;
  min-width: 0;
}

.tap-assignment-row {
  display: block;
  width: 100%;
  min-height: 78px;
  padding-right: 610px;
}

.tap-assignment-controls {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  width: 580px;
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
}

.wide-select {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.tap-assignment-controls button {
  white-space: nowrap;
  min-width: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.15rem;
}

.inline-edit-form {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(41, 41, 41, 0.08);
}

.inline-edit-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-note {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(198, 60, 38, 0.08);
  color: var(--ink);
  margin: 0.75rem 0;
}

.small-text {
  font-size: 0.88rem;
}

.large-price {
  font-family: "RundDisplay", serif;
  font-size: clamp(1.12rem, 1.55vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card {
  width: min(480px, 100%);
  background: rgba(255, 247, 240, 0.82);
  border: 1px solid rgba(41, 41, 41, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(41, 41, 41, 0.08);
  padding: 1.25rem;
}

.admin-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-tab.active {
  background: var(--accent);
}

.inline-message {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(198, 60, 38, 0.1);
}

.admin-header .title-mark,
.login-card .title-mark,
.admin-card h2,
.admin-card h3 {
  color: #292929;
}

.admin-header .title-mark,
.login-card .title-mark {
  font-family: "RundDisplay", serif;
}

.admin-card h2 {
  font-family: "RundDisplay", serif;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.admin-card h3 {
  font-family: "RundText", serif;
  font-weight: 600;
}

.admin-body .section-kicker,
.admin-body .board-subtitle,
.admin-body .field-help,
.admin-body .meta-text,
.admin-body .small-text {
  color: rgba(41, 41, 41, 0.7);
}

.board-shell .section-head {
  align-items: end;
  margin-bottom: 12px;
}

.board-shell .section-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.board-shell .section-title {
  font-family: "RundDisplay", serif;
  font-size: 58px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.board-shell .menu-item-name {
  font-family: "RundDisplay", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.board-shell .tap-price-col {
  font-size: 24px;
}

.board-shell .beer-name {
  font-size: 32px;
}

.board-shell .brewery-name,
.board-shell .menu-item-subtitle,
.board-shell .beer-note,
.board-shell .meta-text,
.board-shell .small-text {
  font-size: 16px;
}

.board-shell .pill {
  font-size: 12px;
  padding: 3px 8px;
}

.board-shell .large-price {
  font-size: 24px;
}

@media (max-width: 1100px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-side {
    order: -1;
  }
}

@media (max-width: 860px) {
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }

  .table-row-top,
  .table-row-controls,
  .inline-edit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tap-assignment-row {
    min-height: 0;
    padding-right: 0;
  }

  .tap-assignment-controls {
    position: static;
    transform: none;
    grid-template-columns: 1fr;
    width: 100%;
    align-items: stretch;
  }

  .wide-select {
    width: 100%;
    min-width: 0;
  }

  .admin-tabs {
    overflow-x: auto;
    padding-bottom: 0.2rem;
    flex-wrap: nowrap;
  }

  .admin-tab {
    white-space: nowrap;
  }
}
