:root {
  color-scheme: dark;
  --bg: #0f1418;
  --panel: #171e24;
  --panel-alt: #1d252d;
  --surface: #f0ede3;
  --surface-soft: #e5ded2;
  --ink: #10161b;
  --text: #f4f1ea;
  --muted: #b6c0c8;
  --accent: #d59b3d;
  --accent-2: #81a6c8;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

html,
body {
  width: 100%;
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(213, 155, 61, 0.14), transparent 34%),
    linear-gradient(180deg, #11171c 0%, #0c1013 100%);
  color: var(--text);
  overflow: hidden;
}

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

a {
  color: inherit;
}

.page-shell {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-block {
  margin: 0;
  min-height: 0;
}

.section-block:first-child {
  flex: 1 1 auto;
}

.section-block:last-child:not(:first-child) {
  flex: 0 0 auto;
}

.section-block:only-child {
  flex: 1 1 auto;
}

.beer-card h3,
.feed-body h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

.beer-card,
.feed-item,
.feed-empty {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.beer-grid {
  display: grid;
  grid-template-columns: repeat(var(--beer-columns, 4), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.beer-card {
  position: relative;
  --beer-qr-size: 88px;
  --beer-qr-offset: 10px;
  display: flex;
  flex-direction: column;
  padding: 16px 10px 16px 16px;
  height: 100%;
}

.beer-media {
  position: relative;
  margin-bottom: 12px;
}

.beer-image {
  display: block;
  width: min(52%, 250px);
  max-height: 250px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 8px;
  border: 4px solid var(--surface-soft);
  background: #fff;
}

.beer-copy {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.beer-card__content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.9fr);
  gap: 16px;
  align-items: stretch;
  min-height: 0;
}

.beer-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 12px;
  min-height: 100%;
  padding-right: 0;
  padding-bottom: calc(var(--beer-qr-size) + (var(--beer-qr-offset) * 2));
  overflow: hidden;
}

.beer-venue-logo-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  padding: 0;
  transform: translate(25%, -25%);
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.beer-venue-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.beer-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(213, 155, 61, 0.18);
  color: #7b4f08;
  font-size: 0.78rem;
  font-weight: 700;
}

.beer-badge--corner {
  position: absolute;
  top: 10px;
  right: 10px;
}

.beer-subtitle,
.beer-style,
.beer-description,
.feed-summary,
.feed-rating,
.feed-head span,
.beer-stats span,
.beer-qr span {
  margin: 0;
  color: #4d5a64;
}

.beer-subtitle {
  margin-bottom: 4px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.beer-card h3 {
  font-size: var(--beer-title-size, 1.3rem);
  line-height: 1.05;
}

.beer-style {
  margin-top: 4px;
  font-size: var(--beer-style-size, 0.95rem);
  font-weight: 700;
}

.beer-description {
  margin-top: 12px;
  font-size: var(--beer-desc-size, 0.98rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--beer-desc-lines, 5);
  overflow: hidden;
}

.beer-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 160px);
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(16, 22, 27, 0.06);
}

.beer-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.beer-stats strong {
  color: #10161b;
}

.beer-stat span {
  color: #10161b;
  font-weight: 700;
}

.beer-qr {
  position: absolute;
  right: var(--beer-qr-offset);
  bottom: var(--beer-qr-offset);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.beer-qr img {
  width: var(--beer-qr-size);
  height: var(--beer-qr-size);
}

.feed-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  min-height: 0;
}

.rss-traffic-light {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(15, 20, 24, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: help;
}

.rss-traffic-light__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  opacity: 0.18;
  transform: scale(0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.rss-traffic-light__dot--red {
  background: #f05a5a;
}

.rss-traffic-light__dot--yellow {
  background: #f2c84b;
}

.rss-traffic-light__dot--green {
  background: #56d57c;
}

.rss-traffic-light--red .rss-traffic-light__dot--red,
.rss-traffic-light--yellow .rss-traffic-light__dot--yellow,
.rss-traffic-light--green .rss-traffic-light__dot--green {
  opacity: 1;
  transform: scale(1);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.06),
    0 0 14px rgba(255, 255, 255, 0.12);
}

.rss-traffic-light--red .rss-traffic-light__dot--red {
  box-shadow:
    0 0 0 4px rgba(240, 90, 90, 0.16),
    0 0 16px rgba(240, 90, 90, 0.34);
}

.rss-traffic-light--yellow .rss-traffic-light__dot--yellow {
  box-shadow:
    0 0 0 4px rgba(242, 200, 75, 0.16),
    0 0 16px rgba(242, 200, 75, 0.34);
}

.rss-traffic-light--green .rss-traffic-light__dot--green {
  box-shadow:
    0 0 0 4px rgba(86, 213, 124, 0.16),
    0 0 16px rgba(86, 213, 124, 0.34);
}

.feed-item {
  flex: 0 0 160px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 12px 16px;
  background: #2c2f33;
  color: #f4f1ea;
}

.feed-photo-column {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.feed-photo-link {
  position: relative;
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: visible;
  text-decoration: none;
}

.feed-photo-link--insider .feed-avatar--large {
  border-color: #facc00;
  box-shadow: 0 0 0 4px rgba(250, 204, 0, 0.26);
}

.feed-avatar--large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 7px solid rgba(255, 255, 255, 0.05);
}

.feed-brewery-logo {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 48px;
  height: 48px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(240, 237, 227, 0.96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.feed-brewery-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.feed-rating-block {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.feed-stars {
  display: flex;
  gap: 2px;
  line-height: 1;
  transform: scale(1.2);
  transform-origin: center;
}

.feed-star {
  position: relative;
  display: inline-block;
  font-size: 1.08rem;
}

.feed-star--filled {
  color: #facc00;
}

.feed-star--empty {
  color: rgba(255, 255, 255, 0.28);
}

.feed-star--partial {
  color: rgba(255, 255, 255, 0.28);
}

.feed-star__fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #facc00;
  white-space: nowrap;
}

.feed-rating-text {
  display: none;
}

.feed-body {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.feed-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.feed-body h3 {
  font-size: 1.08rem;
}

.feed-summary {
  margin-top: 8px;
  line-height: 1.45;
}

.feed-empty {
  padding: 18px;
  background: #2c2f33;
  color: #f4f1ea;
}

.feed-empty--loading {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: linear-gradient(180deg, #2c2f33 0%, #26292e 100%);
}

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

.feed-empty__spinner span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #facc00;
  opacity: 0.35;
  animation: feed-empty-pulse 1s ease-in-out infinite;
}

.feed-empty__spinner span:nth-child(2) {
  animation-delay: 0.15s;
}

.feed-empty__spinner span:nth-child(3) {
  animation-delay: 0.3s;
}

.feed-empty__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.feed-empty__text {
  margin: 0;
  color: #d9d1c3;
  line-height: 1.4;
}

@keyframes feed-empty-pulse {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

body.config-page {
  overflow: auto;
}

body.config-page .config-shell {
  width: min(1260px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.config-page code {
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(16, 22, 27, 0.08);
}

.config-auth-card,
.config-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(240, 237, 227, 0.98);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.config-auth-card {
  max-width: 560px;
  padding: 28px;
}

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

.config-kicker {
  margin: 0 0 8px;
  color: #d59b3d;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.config-auth-card h1,
.config-header h1 {
  margin: 0;
  line-height: 1.05;
}

.config-text {
  margin: 10px 0 0;
  color: #596771;
  line-height: 1.55;
}

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

.config-form--auth {
  max-width: 320px;
  margin-top: 22px;
}

.config-field {
  display: grid;
  gap: 6px;
}

.config-field span {
  font-weight: 700;
  color: #293038;
}

.config-field input,
.config-field textarea,
.config-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(16, 22, 27, 0.14);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.config-field textarea {
  resize: vertical;
  min-height: 110px;
}

.config-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.config-button--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(16, 22, 27, 0.16);
}

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

.config-summary__item {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 22, 27, 0.08);
}

.config-summary__item strong,
.config-summary__item span {
  display: block;
}

.config-summary__item strong {
  margin-bottom: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64707a;
}

.config-summary__item span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.config-alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.config-alert--notice {
  background: rgba(86, 213, 124, 0.16);
  color: #1f6b39;
}

.config-alert--error {
  background: rgba(240, 90, 90, 0.14);
  color: #9d2d2d;
}

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

.config-grid > .config-card:first-child {
  grid-column: 1 / -1;
}

.config-beer-edit-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.config-beer-edit-section__head {
  margin: 0;
}

.config-beer-edit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.config-beer-editor {
  display: flex;
  flex-direction: column;
}

.config-beer-editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.config-beer-editor__head h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.1;
}

.config-beer-editor__head p {
  margin: 4px 0 0;
  color: #60707a;
  font-size: 0.82rem;
  word-break: break-all;
}

.config-card {
  padding: 20px;
}

.config-card__head h2 {
  margin: 0;
}

.config-card__head p {
  margin: 6px 0 0;
  color: #60707a;
  line-height: 1.45;
}

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

.config-group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.config-group--wide {
  grid-column: 1 / -1;
}

.config-checklist {
  display: grid;
  gap: 10px;
}

.config-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid rgba(16, 22, 27, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.config-check input {
  margin-top: 3px;
}

.config-check__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.config-check__body strong {
  line-height: 1.2;
}

.config-check__body span {
  color: #60707a;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}

.config-check--stacked .config-check__body span {
  font-size: 0.88rem;
}

.config-empty {
  margin: 0;
  color: #60707a;
}

.config-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 18px;
}

.config-field--wide {
  grid-column: 1 / -1;
}

.config-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  body.config-page .config-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.config-page .config-grid {
    grid-template-columns: 1fr;
  }

  body.config-page .config-beer-edit-list,
  body.config-page .config-columns,
  body.config-page .config-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100%;
    padding: 12px;
  }

  .beer-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    height: auto;
  }

  .beer-card__content {
    grid-template-columns: 1fr;
  }

  .beer-aside {
    --beer-qr-size: 78px;
    --beer-qr-offset: 10px;
    align-items: flex-start;
  }

  .beer-qr {
    justify-content: flex-start;
  }

  .beer-stats {
    width: 100%;
    max-width: 220px;
  }

  .feed-item {
    flex-basis: 148px;
  }

  .feed-photo-link {
    width: 122px;
    height: 122px;
  }

  .feed-brewery-logo {
    width: 51px;
    height: 51px;
  }

  .beer-venue-logo-wrap {
    width: 72px;
    height: 72px;
  }

  .rss-traffic-light {
    right: 12px;
    bottom: 12px;
    gap: 6px;
    padding: 8px 6px;
  }

  .rss-traffic-light__dot {
    width: 12px;
    height: 12px;
  }

  body.config-page .config-shell {
    padding: 14px;
  }

  body.config-page .config-auth-card {
    padding: 20px;
  }

  body.config-page .config-header {
    flex-direction: column;
  }

  body.config-page .config-summary {
    grid-template-columns: 1fr;
  }
}

body.config-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(162, 211, 164, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(233, 255, 236, 0.05), transparent 26%),
    #0d0f0c;
  color: #e1e7dc;
  font-family: "Inter", sans-serif;
}

body.config-page.config-modal-open {
  overflow: hidden;
}

body.config-page h1,
body.config-page h2,
body.config-page h3,
body.config-page .brand-font {
  font-family: "Space Grotesk", sans-serif;
}

body.config-page .material-symbols-outlined {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

body.config-page code {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #a2d3a4;
  font-size: 0.78rem;
}

body.config-page .config-shell {
  width: min(100%, 1520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

body.config-page .config-layout {
  display: grid;
  grid-template-columns: minmax(260px, 292px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

body.config-page .config-sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(17, 20, 16, 0.98), rgba(13, 15, 12, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.config-page .config-sidebar__brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body.config-page .config-sidebar__logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1c211b;
  color: #a2d3a4;
  box-shadow: inset 0 0 0 1px rgba(162, 211, 164, 0.08);
}

body.config-page .config-sidebar__logo .material-symbols-outlined {
  font-size: 28px;
}

body.config-page .config-sidebar__actions {
  display: grid;
  gap: 10px;
}

body.config-page .config-sidebar__name {
  margin: 0;
  color: #a2d3a4;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.config-page .config-sidebar__meta {
  margin: 4px 0 0;
  color: #a7ada2;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.config-page .config-sidebar__cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 0;
  appearance: none;
  cursor: pointer;
  font: inherit;
  background: linear-gradient(135deg, #a2d3a4, #24502c);
  color: #1d4926;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 20px 42px rgba(36, 80, 44, 0.3);
  transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

body.config-page .config-sidebar__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

body.config-page .config-sidebar__cta:active {
  transform: translateY(0);
}

body.config-page .config-sidebar__cta--ghost {
  background: rgba(39, 46, 37, 0.96);
  color: #e1e7dc;
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.14);
}

body.config-page .config-sidebar__nav {
  display: grid;
  gap: 8px;
}

body.config-page .config-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #a7ada2;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.config-page .config-sidebar__link:hover,
body.config-page .config-sidebar__link--active {
  background: rgba(23, 27, 22, 0.98);
  color: #e1e7dc;
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(162, 211, 164, 0.06);
}

body.config-page .config-sidebar__link--active {
  box-shadow: inset 3px 0 0 rgba(162, 211, 164, 0.72), inset 0 0 0 1px rgba(162, 211, 164, 0.06);
}

body.config-page .config-sidebar__status {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(23, 27, 22, 0.96);
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.14);
}

body.config-page .config-sidebar__status span {
  color: #a7ada2;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.config-page .config-sidebar__status strong {
  color: #e1e7dc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

body.config-page .config-sidebar__status p {
  margin: 0;
  color: #a7ada2;
  font-size: 0.86rem;
}

body.config-page .config-main {
  display: grid;
  gap: 22px;
}

body.config-page .config-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0 8px;
}

body.config-page .config-hero__copy {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

body.config-page .config-hero h1,
body.config-page .config-auth-card h1 {
  margin: 0;
  color: #e1e7dc;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

body.config-page .config-hero__actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

body.config-page .config-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(23, 27, 22, 0.95);
  color: #e1e7dc;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.14);
}

body.config-page .config-status-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a2d3a4;
  box-shadow: 0 0 0 6px rgba(162, 211, 164, 0.1);
}

body.config-page .config-auth-card {
  width: min(100%, 560px);
  margin: 10vh auto 0;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(23, 27, 22, 0.98), rgba(17, 20, 16, 0.96));
  color: #e1e7dc;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.config-page .config-kicker {
  margin: 0;
  color: #a2d3a4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.config-page .config-text {
  margin: 0;
  color: #a7ada2;
  line-height: 1.6;
  max-width: 62ch;
}

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

body.config-page .config-form--auth {
  max-width: 340px;
  margin-top: 24px;
}

body.config-page .config-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.config-page .config-summary__item {
  display: grid;
  gap: 10px;
  min-height: 156px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(23, 27, 22, 0.96), rgba(17, 20, 16, 0.96));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.config-page .config-summary__item--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(23, 27, 22, 0.98), rgba(36, 80, 44, 0.28));
  box-shadow: inset 3px 0 0 rgba(162, 211, 164, 0.72), 0 18px 60px rgba(0, 0, 0, 0.26);
}

body.config-page .config-summary__item strong {
  color: #a7ada2;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.config-page .config-summary__item span {
  color: #e1e7dc;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

body.config-page .config-summary__item p {
  margin: 0;
  color: #a7ada2;
  font-size: 0.92rem;
}

body.config-page .config-summary__item--toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.config-page .config-summary__toggle {
  margin-top: auto;
  align-self: flex-start;
}

body.config-page .config-alert {
  margin: 0;
  padding: 14px 18px;
  border-radius: 20px;
  font-weight: 600;
  background: rgba(23, 27, 22, 0.94);
  box-shadow: inset 3px 0 0 currentColor, 0 16px 34px rgba(0, 0, 0, 0.18);
}

body.config-page .config-alert--notice {
  color: #a2d3a4;
  background: rgba(36, 80, 44, 0.16);
}

body.config-page .config-alert--error {
  color: #ed7f64;
  background: rgba(237, 127, 100, 0.12);
}

body.config-page .config-card {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(23, 27, 22, 0.97), rgba(17, 20, 16, 0.96));
  color: #e1e7dc;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.config-page .config-card__head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

body.config-page .config-card__head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

body.config-page .config-card__head p {
  margin: 0;
  color: #a7ada2;
  line-height: 1.55;
}

body.config-page .config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.config-page .config-grid--compact > .config-card:first-child {
  grid-column: auto;
}

body.config-page .config-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.config-page .config-group {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(13, 15, 12, 0.42);
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.12);
}

body.config-page .config-group h3 {
  margin: 0;
  color: #a7ada2;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.config-page .config-group--wide {
  grid-column: 1 / -1;
}

body.config-page .config-checklist {
  display: grid;
  gap: 10px;
}

body.config-page .config-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(23, 27, 22, 0.96);
  color: #e1e7dc;
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.12);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

body.config-page .config-check:hover {
  transform: translateY(-1px);
  background: rgba(39, 46, 37, 0.95);
  box-shadow: inset 0 0 0 1px rgba(162, 211, 164, 0.12);
}

body.config-page .config-check input {
  margin-top: 2px;
  accent-color: #a2d3a4;
}

body.config-page .config-check__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.config-page .config-check__body strong {
  line-height: 1.25;
}

body.config-page .config-check__body span {
  color: #a7ada2;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}

body.config-page .config-check--stacked .config-check__body span {
  font-size: 0.84rem;
}

body.config-page .config-beer-row__toggle-form {
  margin: 0;
  display: inline-flex;
}

body.config-page .config-empty {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(23, 27, 22, 0.96);
  color: #a7ada2;
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.12);
}

body.config-page .config-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.config-page .config-form-grid--modal {
  margin-top: 0;
}

body.config-page .config-field {
  display: grid;
  gap: 8px;
}

body.config-page .config-field span {
  color: #a7ada2;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.config-page .config-field input,
body.config-page .config-field textarea,
body.config-page .config-field select {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(39, 46, 37, 0.96);
  color: #e1e7dc;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.14);
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}

body.config-page .config-field input[type="file"] {
  padding: 10px 12px;
}

body.config-page .config-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(162, 211, 164, 0.18);
  color: #a2d3a4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.config-page .config-field input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(162, 211, 164, 0.18);
  color: #a2d3a4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.config-page .config-field input:focus,
body.config-page .config-field textarea:focus,
body.config-page .config-field select:focus {
  outline: none;
  background: rgba(33, 39, 32, 0.98);
  box-shadow: inset 0 0 0 1px rgba(162, 211, 164, 0.38), 0 0 0 4px rgba(162, 211, 164, 0.08);
}

body.config-page .config-field textarea {
  min-height: 120px;
  resize: vertical;
}

body.config-page .config-field__hint {
  margin: 0;
  color: #a7ada2;
  font-size: 0.82rem;
  line-height: 1.45;
}

body.config-page .config-source-logo-preview {
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(23, 27, 22, 0.96);
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.14);
  overflow: hidden;
}

body.config-page .config-source-logo-preview img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 14px;
}

body.config-page .config-source-logo-preview__empty {
  color: #a7ada2;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

body.config-page .config-field--wide {
  grid-column: 1 / -1;
}

body.config-page .config-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

body.config-page .config-actions--start {
  justify-content: flex-start;
}

body.config-page .config-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #a2d3a4, #24502c);
  color: #1d4926;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(36, 80, 44, 0.34);
  transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

body.config-page .config-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

body.config-page .config-button:active {
  transform: translateY(0);
}

body.config-page .config-button--ghost {
  background: rgba(39, 46, 37, 0.96);
  color: #e1e7dc;
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.14);
}

body.config-page .config-button--danger {
  background: rgba(237, 127, 100, 0.14);
  color: #ed7f64;
  box-shadow: inset 0 0 0 1px rgba(237, 127, 100, 0.18);
}

body.config-page .config-beer-list {
  display: grid;
  gap: 14px;
}

body.config-page .config-beer-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 20, 16, 0.96), rgba(15, 18, 14, 0.96));
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.12), 0 18px 50px rgba(0, 0, 0, 0.22);
}

body.config-page .config-beer-row--visible {
  box-shadow: inset 3px 0 0 rgba(162, 211, 164, 0.78), 0 18px 50px rgba(0, 0, 0, 0.22);
}

body.config-page .config-beer-row--hidden {
  opacity: 0.9;
  box-shadow: inset 3px 0 0 rgba(237, 127, 100, 0.42), 0 18px 50px rgba(0, 0, 0, 0.2);
}

body.config-page .config-beer-row__index {
  color: rgba(225, 231, 220, 0.08);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

body.config-page .config-beer-row__media {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.1);
}

body.config-page .config-beer-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.config-page .config-beer-row__copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body.config-page .config-beer-row__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.config-page .config-beer-row__topline h3 {
  margin: 0;
  color: #a2d3a4;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.05;
}

body.config-page .config-beer-row__style {
  margin: 6px 0 0;
  color: #a7ada2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.config-page .config-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

body.config-page .config-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

body.config-page .config-chip--primary {
  background: rgba(36, 80, 44, 0.34);
  color: #a2d3a4;
}

body.config-page .config-chip--muted {
  background: rgba(39, 46, 37, 0.96);
  color: #a7ada2;
}

body.config-page .config-beer-row__description {
  margin: 0;
  color: #d0d5ca;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.config-page .config-beer-row__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  min-width: 210px;
}

body.config-page .config-beer-row__meta {
  display: grid;
  gap: 8px;
  text-align: right;
}

body.config-page .config-beer-row__meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #a7ada2;
  font-size: 0.78rem;
}

body.config-page .config-beer-row__meta strong {
  color: #e1e7dc;
  font-size: 0.92rem;
  font-weight: 700;
}

body.config-page .config-beer-row__edit {
  min-width: 150px;
  justify-content: center;
}

body.config-page .config-beer-row__edit .material-symbols-outlined {
  font-size: 18px;
}

body.config-page .config-source-form {
  display: grid;
  gap: 14px;
}

body.config-page .config-source-list {
  display: grid;
  gap: 12px;
}

body.config-page .config-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(23, 27, 22, 0.96);
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.12);
}

body.config-page .config-source-row__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

body.config-page .config-source-row__check input {
  margin-top: 2px;
  accent-color: #a2d3a4;
}

body.config-page .config-source-row__check-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.config-page .config-source-row__check-body strong {
  color: #e1e7dc;
  line-height: 1.25;
}

body.config-page .config-source-row__check-body span {
  color: #a7ada2;
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
}

body.config-page .config-source-row__meta {
  display: grid;
  gap: 8px;
  color: #a7ada2;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.config-page .config-source-row__meta strong {
  color: #e1e7dc;
}

body.config-page .config-source-row__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.config-page .config-source-row__edit {
  min-width: 138px;
  justify-content: center;
}

body.config-page .config-source-row__edit .material-symbols-outlined {
  font-size: 18px;
}

body.config-page .config-source-row__delete {
  min-width: 92px;
}

body.config-page .config-chip--danger {
  background: rgba(237, 127, 100, 0.14);
  color: #ed7f64;
}

body.config-page .config-modal {
  width: min(100%, 760px);
  border: 0;
  padding: 0;
  background: transparent;
  margin: auto;
}

body.config-page .config-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

body.config-page .config-modal__dialog {
  width: min(100%, 760px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(23, 27, 22, 0.98), rgba(17, 20, 16, 0.98));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.5);
}

body.config-page .config-modal[open] .config-modal__dialog {
  animation: config-modal-enter 0.22s ease-out;
}

@keyframes config-modal-enter {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0.45;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

body.config-page .config-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
}

body.config-page .config-modal__headline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

body.config-page .config-modal__accent {
  width: 8px;
  height: 42px;
  border-radius: 999px;
  background: #a2d3a4;
  box-shadow: 0 0 0 6px rgba(162, 211, 164, 0.08);
}

body.config-page .config-modal__headline h2 {
  margin: 4px 0 0;
  color: #e1e7dc;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.05;
}

body.config-page .config-modal__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(39, 46, 37, 0.96);
  color: #e1e7dc;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.16);
}

body.config-page .config-modal__body {
  display: grid;
  gap: 18px;
  padding: 0 24px 22px;
  overflow: auto;
}

body.config-page .config-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.82);
  color: #a7ada2;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(67, 74, 65, 0.08);
}

body.config-page .config-modal__meta strong {
  color: #e1e7dc;
}

body.config-page .config-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px 24px;
  background: rgba(39, 46, 37, 0.32);
}

body.config-page .config-modal__footer .config-button {
  min-width: 160px;
}

body.config-page .config-modal__footer .config-button--ghost {
  min-width: 0;
}

@media (max-width: 1180px) {
  body.config-page .config-layout {
    grid-template-columns: 1fr;
  }

  body.config-page .config-sidebar {
    display: none;
  }

  body.config-page .config-summary {
    grid-template-columns: 1fr;
  }

  body.config-page .config-summary__item--featured {
    grid-column: auto;
  }

  body.config-page .config-columns,
  body.config-page .config-grid,
  body.config-page .config-form-grid {
    grid-template-columns: 1fr;
  }

  body.config-page .config-group--wide,
  body.config-page .config-field--wide {
    grid-column: auto;
  }

  body.config-page .config-beer-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  body.config-page .config-beer-row__aside {
    grid-column: 1 / -1;
    align-items: flex-start;
    min-width: 0;
  }

  body.config-page .config-beer-row__meta {
    text-align: left;
  }

  body.config-page .config-beer-row__edit {
    width: 100%;
  }

  body.config-page .config-source-row {
    grid-template-columns: 1fr;
  }

  body.config-page .config-source-row__actions {
    justify-content: flex-start;
  }

  body.config-page .config-source-row__edit,
  body.config-page .config-source-row__delete {
    width: 100%;
  }

  body.config-page .config-modal__dialog {
    width: min(100%, calc(100vw - 24px));
  }
}

@media (max-width: 720px) {
  body.config-page .config-shell {
    padding: 14px;
  }

  body.config-page .config-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  body.config-page .config-hero__actions {
    justify-items: start;
  }

  body.config-page .config-summary {
    gap: 12px;
  }

  body.config-page .config-card,
  body.config-page .config-auth-card {
    padding: 18px;
  }

  body.config-page .config-beer-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  body.config-page .config-beer-row__index {
    display: none;
  }

  body.config-page .config-beer-row__media {
    width: 100%;
    height: 160px;
  }

  body.config-page .config-beer-row__aside {
    gap: 12px;
  }

  body.config-page .config-modal__header,
  body.config-page .config-modal__body,
  body.config-page .config-modal__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  body.config-page .config-modal__footer {
    flex-direction: column-reverse;
  }

  body.config-page .config-modal__footer .config-button {
    width: 100%;
  }
}

/* Screen administration; display styles live in screens.css. */
.config-screen-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.config-screen-background--medium::after { opacity: 0.35; }
.config-screen-background--strong::after { opacity: 0.65; }
.screen-empty { padding: 32px; text-align: center; font-size: 1.5rem; }
.screen-warning { margin: 0; padding: 8px 16px; background: #562f17; color: #fff2d8; }

/* Screen administration */
#screens { min-width: 0; }
.config-screen-list { display: grid; gap: 16px; }
.config-screen {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: #171b16;
}
.config-screen__thumbnail,
.config-screen-background { background: linear-gradient(180deg, #11171c, #0c1013); }
.config-screen__thumbnail { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.config-screen__thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.config-screen__copy h3 { margin: 0 0 8px; color: #e1e7dc; }
.config-screen__copy p { margin: 0 0 8px; color: #a7ada2; }
.config-screen__event { overflow-wrap: anywhere; }
.config-screen__copy a { color: #a2d3a4; overflow-wrap: anywhere; }
.config-screen__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; grid-column: 1 / -1; }
.config-screen__actions form { margin: 0; }
.config-screen-status { margin-top: 24px; padding: 20px; border-radius: 16px; background: #171b16; }
.config-screen-status h3 { margin: 0 0 12px; color: #e1e7dc; }
.config-screen-status summary { cursor: pointer; color: #a2d3a4; }
.config-screen-status__table-wrap { overflow-x: auto; margin: 16px 0; }
.config-screen-status__table { width: 100%; border-collapse: separate; border-spacing: 0 8px; text-align: left; font-size: 0.9rem; color: #e1e7dc; }
.config-screen-status__table caption { text-align: left; }
.config-screen-status__table th, .config-screen-status__table td { padding: 12px; }
.config-screen-status__table tbody tr { background: #212720; }
.config-screen-status__table th[scope="row"] { overflow-wrap: anywhere; min-width: 110px; max-width: 200px; }
.config-screen-status__table time { white-space: nowrap; }
.config-device-state { display: inline-block; padding: 4px 8px; border-radius: 999px; }
.config-device-state--online { color: #c1f0c3; background: #24502c; }
.config-device-state--offline { color: #ffd2c7; background: #562f26; }
.config-screen-editor { margin-top: 24px; padding: 24px; border-radius: 16px; background: #171b16; }
.config-screen-editor h3 { margin-top: 0; color: #e1e7dc; }
.config-screen-check { display: flex; align-items: center; gap: 12px; color: #e1e7dc; padding: 10px 0; }
.config-screen-check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: #a2d3a4; }
.config-screen-check small { display: block; margin-top: 4px; color: #edb99d; }
.config-screen-beers { border: 0; padding: 0; margin: 24px 0; }
.config-screen-beers legend { font-weight: 700; color: #e1e7dc; }
.config-screen-beer { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 6px 12px; margin-top: 8px; background: #212720; border-radius: 8px; }
.config-screen-beer__order { display: flex; flex-shrink: 0; gap: 8px; }
.config-background-library { min-width: 0; border: 0; padding: 0; margin: 24px 0; }
.config-background-library legend { font-weight: 700; color: #e1e7dc; }
.config-background-library__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; max-height: 480px; overflow-y: auto; padding: 4px; }
.config-background-choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 8px; background: #212720; cursor: pointer; }
.config-background-choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #a2d3a4; }
.config-background-choice:has(input:checked) { background: #24502c; }
.config-background-choice:focus-within { outline: 2px solid #a2d3a4; outline-offset: 2px; }
.config-background-choice__content { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; color: #e1e7dc; }
.config-background-choice__content img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0f1418; border-radius: 4px; }
.config-background-choice__content small { color: #c1c9bb; }
.config-screen-background { position: relative; aspect-ratio: 16 / 9; max-width: 480px; margin: 16px 0; overflow: hidden; border-radius: 8px; }
.config-screen-background img { width: 100%; height: 100%; object-fit: cover; }
.config-screen-background img[hidden],
.config-background-choice img[hidden],
.config-screen__thumbnail img[hidden] { display: none; }
.config-screen-background__image--contain { object-fit: contain !important; }
.config-screen-error { color: #edb99d !important; }
.config-screen-editor button:disabled { opacity: 0.5; cursor: not-allowed; }
.config-screen-preview { width: min(1400px, 95vw); max-width: 95vw; max-height: 95vh; box-sizing: border-box; padding: 24px; border: 0; border-radius: 16px; background: #171b16; color: #e1e7dc; }
.config-screen-preview::backdrop { background: rgba(0, 0, 0, 0.8); }
.config-screen-preview__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.config-screen-preview__viewport { position: relative; width: 100%; height: 60vh; overflow: hidden; background: #0a0d10; }
.config-screen-preview iframe { position: absolute; left: 50%; display: block; max-width: none; border: 0; transform-origin: top left; }

@media (max-width: 640px) {
  .config-screen { grid-template-columns: 1fr; }
  .config-screen__thumbnail { max-width: 200px; }
  .config-screen-editor { padding: 16px; }
  .config-screen-beer { flex-wrap: wrap; }
}
.config-backup {
  min-width: 0;
  overflow-wrap: anywhere;
}

.config-backup form,
.config-backup__review,
.config-backup__history {
  margin-top: 1.5rem;
}

.config-backup input[type="file"] {
  max-width: 100%;
  min-width: 0;
}

.config-backup__confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0;
}

.config-backup__message {
  padding: 0.9rem;
  border: 1px solid #517966;
  border-radius: 0.6rem;
  background: #e8f4ec;
  color: #244535;
}

.config-backup__message--error {
  border-color: #c58777;
  background: #fff0e9;
  color: #783b26;
}

.config-backup summary {
  cursor: pointer;
  font-weight: 700;
}

body.config-page .config-backup .config-actions {
  flex-wrap: wrap;
  gap: 0.6rem;
}

.config-backup .config-button {
  overflow-wrap: normal;
}

.config-account__form {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
  margin-top: 1.5rem;
}

/* Superadmin page */
.admin-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  color: #f0ede3;
}

.admin-header h1 {
  margin: 0;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

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

.admin-hint {
  margin: 0;
  color: #5d6259;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-invite__link {
  width: 100%;
  padding: 10px 12px;
  font-family: monospace;
}

.admin-brewery {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(16, 22, 27, 0.12);
}

.admin-brewery p {
  margin: 4px 0 0;
}

.admin-brewery--inactive {
  opacity: 0.75;
}

.admin-brewery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-inline input {
  min-width: 0;
  max-width: 220px;
  padding: 8px 10px;
}

.admin-button--danger {
  background: #9d2d2d;
  color: #fff;
}

.admin-backup__list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.admin-backup__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-backup__review,
.admin-backup__upload,
.admin-backup__result {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 22, 27, 0.12);
}

.admin-backup__review h3,
.admin-backup__upload h3,
.admin-backup__result h3 {
  margin: 0;
}

.admin-backup__choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.admin-backup__choice input {
  margin-top: 4px;
}
