:root {
  color-scheme: light;
  font:
    16px/1.5 'DM Sans',
    system-ui,
    sans-serif;
  color: #202d27;
  background: #f7f6f0;
  --ink: #173d33;
  --line: #d2d8cd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
header {
  background: var(--ink);
  color: #fff;
}
.bar,
main {
  max-width: 1100px;
  margin: auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.bar,
.heading,
.actions,
.row,
.row-actions,
.settings,
nav,
.venue-picker,
#account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar {
  min-height: 68px;
  justify-content: space-between;
}
.brand {
  font:
    600 1.65rem Georgia,
    serif;
  color: inherit;
  text-decoration: none;
}
.light {
  background: transparent;
  color: white;
  border-color: #78928a;
}
main {
  padding-bottom: 64px;
}
nav {
  padding-top: 20px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
nav button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 10px 2px;
}
nav button[aria-pressed='true'] {
  border-color: var(--ink);
  color: var(--ink);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: 'DM Serif Text', Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
}
h2 {
  font-size: 1.7rem;
}
.heading {
  justify-content: space-between;
  align-items: flex-end;
  margin: 24px 0;
}
.heading p,
.login p {
  color: #536159;
  margin-top: 8px;
}
.venue-picker {
  margin-top: 28px;
}
.venue-picker label,
legend {
  font-weight: 650;
}
.venue-picker select {
  width: auto;
}
.panel,
dialog {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.login {
  max-width: 500px;
  margin: 70px auto 24px;
  padding: clamp(24px, 5vw, 44px);
}
#google-button {
  margin-top: 22px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 1px solid #a9b6ac;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 7px 13px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.87rem;
  min-height: 40px;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.danger,
.form-error {
  color: #983426;
}
:focus-visible {
  outline: 3px solid #ba7629;
  outline-offset: 3px;
}
.settings {
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.settings button {
  margin-left: auto;
}
.settings label,
.check {
  display: flex;
  align-items: center;
  gap: 6px;
}
.group {
  margin-top: 32px;
}
.group h2 {
  margin: 0 0 8px;
}
.row {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.row:last-child {
  border-bottom: 0;
}
.row img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}
.row-body {
  flex: 1;
  min-width: 130px;
}
.row-body strong,
.row-body small {
  display: block;
}
.row-body small,
small {
  color: #58675f;
}
.row-actions {
  flex-wrap: wrap;
  gap: 6px;
}
.stock {
  font-size: 0.78rem;
  padding: 2px 9px;
  border-radius: 20px;
  background: #eaf2e9;
  color: #30563a;
}
.stock.out {
  background: #f6e8db;
  color: #7d4828;
}
.empty {
  padding: 24px 0;
}
.price {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
input:not([type='checkbox']),
select,
textarea {
  width: 100%;
  padding: 9px;
  border: 1px solid #aab6ac;
  border-radius: 4px;
  color: inherit;
  background: white;
}
input[type='checkbox'] {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
}
dialog {
  width: min(510px, 94vw);
  max-height: 92dvh;
  padding: 24px;
  color: inherit;
}
dialog::backdrop {
  background: #1228209c;
}
form {
  display: grid;
  gap: 12px;
}
form > label,
.pair label {
  display: grid;
  gap: 3px;
  font-size: 0.9rem;
  font-weight: 600;
}
form .check {
  display: flex;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 4px;
}
fieldset label {
  display: block;
}
.actions {
  justify-content: flex-end;
}
.form-error:empty,
#status:empty {
  display: none;
}
#status {
  margin-top: 18px;
  color: var(--ink);
}
#reload {
  margin-top: 8px;
}
@media (max-width: 650px) {
  .row-actions {
    width: 100%;
  }
  .row {
    gap: 8px;
  }
  .settings button {
    margin-left: 0;
  }
  .heading {
    align-items: center;
  }
  .bar {
    gap: 5px;
  }
  #email {
    display: none;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .row img {
    width: 42px;
    height: 42px;
  }
}
