:root {
  color-scheme: light;
  --paper: #f4f3ee;
  --surface: #ffffff;
  --ink: #171a16;
  --ink-soft: #40453d;
  --muted: #6e756b;
  --line: #e4e2da;
  --line-strong: #d6d4ca;
  --primary: #0e5c46;
  --primary-dark: #0a4636;
  --primary-soft: #e5efe9;
  --danger: #b42318;
  --danger-soft: #fbe9e7;
  --radius: 16px;
  --radius-sm: 10px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.brand__text span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-chip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.shell {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.login {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card--login {
  width: 100%;
  max-width: 430px;
  padding: 28px;
}

h1 {
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lede {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.form label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

input[type='text'] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  outline: none;
}

input[type='text']::placeholder {
  color: #a4a8af;
  letter-spacing: 0.08em;
}

input[type='text']:focus {
  border-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease;
}

.btn--primary {
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--outline {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--quiet {
  height: 34px;
  padding: 0 12px;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
}

.btn--quiet:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.hint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.hint strong,
.note strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.note--error {
  margin: 0 0 4px;
  border-color: #f2c6c1;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12.5px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.list {
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}

.row + .row {
  border-top: 1px solid var(--line);
}

.row__when {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.row__when strong {
  font-size: 13.5px;
  font-weight: 600;
}

.row__when span {
  font-size: 11.5px;
  color: var(--muted);
}

.row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.empty {
  padding: 36px 24px;
  text-align: center;
}

.empty strong {
  display: block;
  font-size: 15px;
}

.empty p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.empty p strong {
  display: inline;
  font-size: inherit;
  color: var(--ink-soft);
}

.footer {
  padding: 18px 20px 26px;
  text-align: center;
  color: #a4a8af;
  font-size: 11.5px;
}

.footer span {
  margin: 0 6px;
}

@media (max-width: 640px) {
  .shell {
    padding-top: 24px;
  }

  .row {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
    padding: 14px 16px;
  }

  .row__meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .row .btn {
    grid-column: 2;
    grid-row: 1;
  }

  .shop-chip {
    display: none;
  }

  .card--login {
    padding: 22px;
  }
}
