:root {
  color-scheme: dark;
  --bg: #0b1426;
  --card: #142239;
  --mint: #75ecd3;
  --text: #f5f7fc;
  --muted: #a9b8cd;
  --line: #2a3b55;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 90% 0, #19394866, transparent 48%), var(--bg);
  min-height: 100dvh;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
.button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 16px;
  background: #1c2e48;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
button:hover,
.button:hover {
  border-color: var(--mint);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--mint);
  border-color: var(--mint);
  color: #092322;
}
.danger {
  color: #ffbabd;
}
.small {
  font-size: 0.85rem;
  padding: 9px 12px;
}
.shell {
  max-width: 820px;
  margin: auto;
}
header {
  padding: calc(18px + env(safe-area-inset-top)) 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.38rem;
  font-weight: 850;
  letter-spacing: -0.045em;
}
main {
  padding: 20px 22px calc(125px + env(safe-area-inset-bottom));
  min-height: 75dvh;
}
h1 {
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  letter-spacing: -0.055em;
  margin: 6px 0 24px;
  font-weight: 850;
  line-height: 1.07;
}
h2 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  margin: 0 0 9px;
}
h3 {
  font-size: 1rem;
  margin: 0 0 10px;
}
p {
  line-height: 1.55;
}
.eyebrow {
  color: var(--mint);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 750;
}
.muted,
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.card,
.panel {
  background: linear-gradient(130deg, #182943cc, #122036ee);
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 16px 35px #0002;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cards .card {
  margin: 0;
}
.beer-art {
  height: 130px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #75ecd322, transparent 65%);
  border-radius: 16px;
  margin-bottom: 16px;
}
.beer-art img {
  width: 78px;
  height: 100px;
  object-fit: contain;
}
.facts,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 13px 0;
}
.badge {
  border-radius: 100px;
  border: 1px solid #486279;
  padding: 5px 10px;
  font-size: 0.75rem;
  display: inline-block;
  color: var(--mint);
}
.price {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.card .primary {
  width: 100%;
  margin-top: 12px;
}
.search {
  display: flex;
  gap: 9px;
  margin-bottom: 20px;
}
.search input {
  min-width: 0;
  flex: 1;
}
.search button {
  flex-shrink: 0;
}
.dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 12px 7px calc(12px + env(safe-area-inset-bottom));
  background: #101d32f5;
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
  z-index: 20;
}
.dock a {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  min-height: 48px;
  font-size: 0.68rem;
  color: var(--muted);
  border-radius: 12px;
  justify-content: center;
}
.dock a span {
  font-size: 1.5rem;
  line-height: 1.2;
}
.dock a[aria-current] {
  color: var(--mint);
  background: #75ecd310;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.row > * {
  min-width: 0;
}
label {
  display: block;
  margin: 15px 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
input,
select,
textarea {
  width: 100%;
  background: #0d192c;
  border: 1px solid #3b506b;
  border-radius: 13px;
  padding: 13px;
  color: var(--text);
  min-height: 46px;
}
textarea {
  resize: vertical;
  min-height: 82px;
}
form .primary {
  margin-top: 19px;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}
.round {
  border-left: 2px solid #75ecd34d;
  padding-left: 15px;
  margin: 20px 0;
}
.keg-row {
  display: block;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.keg-row:hover {
  color: var(--mint);
}
.timeline {
  list-style: none;
  padding: 0;
}
.timeline li {
  padding: 11px 0 11px 17px;
  border-left: 2px solid #75ecd35a;
  font-size: 0.9rem;
}
.timeline small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--muted);
}
.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--mint);
  margin-bottom: 15px;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 18px 0 25px;
}
.message {
  max-width: 88%;
  align-self: flex-start;
  padding: 12px 15px;
  border-radius: 17px 17px 17px 4px;
  background: #223550;
  overflow-wrap: anywhere;
}
.message.own {
  align-self: flex-end;
  border-radius: 17px 17px 4px 17px;
  background: #20473f;
}
.message p {
  margin: 5px 0;
  white-space: pre-wrap;
}
.message small {
  color: var(--muted);
  font-size: 0.72rem;
}
.day {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 13px 0 4px;
}
.composer {
  position: sticky;
  bottom: calc(89px + env(safe-area-inset-bottom));
  background: #0b1426ef;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.composer textarea {
  min-height: 46px;
  height: 46px;
  max-height: 140px;
}
.composer button {
  flex-shrink: 0;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 10px 13px;
  font-size: 0.8rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu summary::before {
  content: "●";
  color: var(--mint);
  margin-right: 7px;
}
.account-menu .dropdown {
  position: absolute;
  right: 0;
  top: 44px;
  min-width: 150px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 8px;
  z-index: 30;
}
.dropdown a,
.dropdown button {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}
.error {
  border: 1px solid #ba7479;
  background: #4b252b;
  padding: 15px;
  border-radius: 14px;
  color: #ffdbdd;
}
.notice {
  border: 1px solid #436c67;
  background: #153831;
  padding: 14px;
  border-radius: 14px;
  margin: 15px 0;
}
#toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(110px + env(safe-area-inset-bottom));
  background: #24483f;
  border: 1px solid var(--mint);
  border-radius: 15px;
  padding: 13px 20px;
  z-index: 100;
  width: max-content;
  max-width: 90vw;
  box-shadow: 0 8px 30px #0008;
}
#connection {
  margin: 0 22px;
  padding: 12px;
  background: #5b3e20;
  border-radius: 12px;
  color: #fff3dc;
}
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: 22px;
  min-height: 22px;
}
.notification {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.notification.unread {
  color: var(--mint);
}
@media (max-width: 550px) {
  .cards {
    grid-template-columns: 1fr;
  }
  header {
    padding-left: 18px;
    padding-right: 18px;
  }
  main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .card {
    padding: 18px;
  }
  .beer-art {
    height: 105px;
  }
  .brand {
    font-size: 1.22rem;
  }
  .account-menu summary {
    max-width: 135px;
  }
  .composer {
    bottom: calc(87px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
