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

@font-face {
  font-family: "Outfit Local";
  src: url("fonts/outfit-560.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #101828;
  --ink: #1a2233;
  --muted: #7d8798;
  --orange: #ff7a1a;
  --orange-soft: #fff1e6;
  --mint: #b7f0c9;
  --mint-ink: #14663a;
  --blue: #3b82f6;
  --blue-soft: #eef3ff;
  --line: #e6ebf2;
  --card: #ffffff;
  --bg: #f5f7fb;
  --shadow: 0 18px 40px rgba(16, 24, 40, 0.06);
  --sans: "Outfit Local", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

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

button, a.btn {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a.btn { text-decoration: none; display: inline-flex; align-items: center; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  width: min(220px, 55vw);
  height: min(220px, 55vw);
  background: #f6d7bf;
  top: -40px;
  left: -60px;
  opacity: 0.55;
}

.orb-b {
  width: min(240px, 60vw);
  height: min(240px, 60vw);
  background: #d7ebff;
  top: 40px;
  right: -70px;
  opacity: 0.65;
}

.orb-c {
  width: min(200px, 50vw);
  height: min(200px, 50vw);
  background: #d9f6e8;
  bottom: -40px;
  right: 4%;
  opacity: 0.7;
}

.deco {
  position: fixed;
  width: 72px;
  height: 72px;
  z-index: 0;
  pointer-events: none;
}

.deco-gift { left: 28px; bottom: 36px; }
.deco-gift-blue { right: 36px; bottom: 64px; }

.deco { display: none; }

.page {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 14px calc(28px + env(safe-area-inset-bottom, 0px));
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  background: var(--navy);
  color: #f8fafc;
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
}

.brand { min-width: 0; }

.eyebrow {
  margin: 0 0 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #ffb27a;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lead {
  max-width: 40rem;
  margin: 10px 0 0;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.98rem;
}

.bar-actions, .mast-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

.bar-actions .btn,
.bar-actions a.btn,
.mast-actions .btn,
.mast-actions a.btn {
  width: 100%;
  justify-content: center;
}

main { margin-top: 16px; }

.banner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.banner p { margin: 0; color: var(--muted); }

.toolbar {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 0 14px;
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toolbar > .search { width: 100%; }

.toolbar > .btn,
.toolbar > .btn.ghost {
  width: 100%;
  justify-content: center;
}

.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.chips::-webkit-scrollbar { display: none; }

.chips .chip { flex: 0 0 auto; }

.chip, .btn, .btn.ghost, .btn.quiet, .btn.danger, .btn.mint {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 16px;
  min-height: 44px;
  background: var(--orange);
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.chip[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.sorts {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.sorts::-webkit-scrollbar { display: none; }

.sorts .sort-pill { flex: 0 0 auto; }

.sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.sort-pill.is-active { border-color: var(--navy); }

.sort-pill span { font-weight: 600; margin-right: 4px; }

.sort-arrow {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  line-height: 1;
}

.sort-arrow[aria-pressed="true"] {
  background: var(--navy);
  color: white;
}

.btn.mint {
  background: var(--mint);
  color: var(--mint-ink);
}

.btn.ghost, .btn.quiet {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}

.bar .btn.quiet {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn.danger {
  background: white;
  color: #c2412d;
  border-color: #f0d0c8;
}

.btn:disabled { opacity: 0.55; cursor: wait; }

.btn.is-locked:disabled { cursor: not-allowed; }

.search {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 12px 16px;
  min-height: 44px;
  width: 100%;
  min-width: 0;
  box-shadow: var(--shadow);
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f7f8fb;
  overflow: hidden;
}

.photo img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.photo-empty {
  display: grid;
  place-items: center;
}

.photo-empty .gift-mark { display: none; }

.photo-empty::before {
  content: "+";
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.card:nth-child(odd) .photo-empty::before { color: var(--orange); }

.stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: white;
  color: var(--orange);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
}

.stamp-gekauft {
  background: #e8f9ef;
  color: var(--mint-ink);
}

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.prio {
  margin: 0;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.prio-hoch { background: var(--orange-soft); color: #c2510d; }
.prio-mittel { background: var(--blue-soft); color: #1d4ed8; }
.prio-niedrig { background: #e8f9ef; color: var(--mint-ink); }

.purpose { margin: 0; }
.purpose span {
  display: block;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.card h2 {
  margin: 0;
  min-height: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  margin: 0;
  width: fit-content;
  background: var(--orange-soft);
  color: #c2510d;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status-line { margin: 0; color: var(--ink); }

.status-mask {
  display: inline-block;
  margin: 0;
  padding: 2px 6px;
  border: 0;
  border-radius: 8px;
  background: #eef1f6;
  color: inherit;
  font: inherit;
  letter-spacing: 0.22em;
  filter: blur(3px);
  cursor: pointer;
  user-select: none;
}

.status-clear { font-weight: 600; }

.qty, .desc, .since, .secret-note, .shop { margin: 0; }

.desc, .since, .secret-note { color: var(--muted); }

.desc {
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop {
  color: var(--blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
}

.card-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  align-items: stretch;
}

.card-actions .btn {
  width: 100%;
}

.move-pair { display: flex; gap: 6px; }

.icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
}

.icon-btn .arrow { width: 18px; height: 18px; display: block; }

.empty, .loading {
  grid-column: 1 / -1;
  background: white;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.foot {
  margin-top: 28px;
  color: var(--muted);
}

.foot summary { cursor: pointer; color: var(--ink); }

.foot p { max-width: 42rem; }

.foot-note { font-size: 0.92rem; }

.foot a { color: var(--navy); font-weight: 600; }

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  inset: auto 0 0 0;
  position: fixed;
}

dialog::backdrop { background: rgba(16, 24, 40, 0.46); }

.sheet {
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: var(--shadow);
  max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 12px));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet-actions .btn,
.row-actions .btn,
.sheet-actions a.btn {
  flex: 1 1 calc(50% - 4px);
  min-width: min(100%, 140px);
}

.sheet-actions,
.row-actions {
  justify-content: stretch;
}

.sheet h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hint { color: var(--muted); margin-top: 0; font-weight: 400; }

.fields { display: grid; gap: 12px; }

label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 600; }

input[type="text"], input[type="password"], input[type="url"], input[type="number"], textarea, select, .code {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 14px;
  padding: 11px 12px;
  font-weight: 400;
}

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

.pin-entry {
  display: grid;
  gap: 14px;
  justify-items: center;
  outline: none;
}

.pin-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

.pin-slot {
  width: clamp(44px, 11vw, 52px);
  height: clamp(52px, 13vw, 64px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pin-slot.current { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16); }

.pin-slot.filled { background: white; }

.pin-sep { color: var(--muted); font-weight: 600; }

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 300px);
}

.pin-key {
  height: 52px;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.pin-key:hover { border-color: var(--orange); }

.pin-key-empty { visibility: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.choice { display: flex; gap: 8px; flex-wrap: wrap; }

.choice label {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 500;
}

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
}

.sheet-actions, .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.error {
  color: #c2412d;
  margin: 0;
  min-height: 1.2em;
  font-weight: 500;
}

.note-box {
  background: var(--blue-soft);
  border-radius: 16px;
  padding: 12px 14px;
}

.note-box p { margin: 0 0 6px; }

.gate {
  grid-column: 1 / -1;
  max-width: 460px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  z-index: 6;
  max-width: min(520px, calc(100vw - 24px));
  text-align: center;
  font-size: 0.95rem;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  .card-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .card-actions .btn {
    width: auto;
    flex: 1 1 auto;
  }

  dialog {
    width: min(560px, calc(100vw - 24px));
    max-width: min(560px, calc(100vw - 24px));
    margin: auto;
    inset: unset;
    position: fixed;
  }

  .sheet {
    border-radius: 24px;
    border-bottom: 1px solid var(--line);
    padding: 22px;
    max-height: min(88dvh, calc(100dvh - 48px));
  }
}

@media (min-width: 720px) {
  body { font-size: 16.5px; }

  .page { padding: 28px 20px calc(48px + env(safe-area-inset-bottom, 0px)); }

  .bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 28px;
    padding: 22px 26px;
  }

  .bar-actions, .mast-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    justify-content: flex-end;
  }

  .bar-actions .btn,
  .bar-actions a.btn,
  .mast-actions .btn,
  .mast-actions a.btn {
    width: auto;
  }

  main { margin-top: 22px; }

  .toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    top: 8px;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .toolbar > .search {
    width: auto;
    min-width: min(240px, 100%);
    flex: 1 1 200px;
  }

  .toolbar > .btn,
  .toolbar > .btn.ghost {
    width: auto;
  }

  .chips {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .sorts {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .banner {
    flex-direction: row;
    align-items: center;
  }

  .deco { display: block; }

  .orb-a {
    width: 280px;
    height: 280px;
    opacity: 0.7;
  }

  .orb-b {
    width: 340px;
    height: 340px;
    top: 80px;
    right: -80px;
    opacity: 0.85;
  }

  .orb-c {
    width: 260px;
    height: 260px;
    right: 12%;
    opacity: 0.9;
  }

  h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

  .card h2 {
    min-height: 2.4em;
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.shop-head { display: none; }

body.layout-table {
  background: #f5f5f5;
  color: #3c3c3c;
}

body.layout-table .orb,
body.layout-table .deco,
body.layout-table .shop-head + .bar { display: none; }

body.layout-table .shop-head {
  display: block;
  text-align: center;
  padding: 28px 12px 4px;
}

body.layout-table .shop-crumb {
  margin: 0 0 14px;
  color: #b0b0b0;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

body.layout-table .shop-heart {
  width: 28px;
  height: 28px;
  color: #2b2b2b;
}

body.layout-table .shop-head h1 {
  margin: 6px 0 4px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: #2c2c2c;
  min-height: 0;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

body.layout-table .page { max-width: 1120px; }

body.layout-table .toolbar { position: static; }

body.layout-table .btn { background: #6d947f; }

body.layout-table .btn.ghost,
body.layout-table .btn.quiet {
  background: white;
  color: #333;
  border-color: #e4e4e4;
}

body.layout-table .shop-list { display: block; }

body.layout-table .shop-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

body.layout-table .shop-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
  padding: 12px 12px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

body.layout-table .shop-table td {
  padding: 12px;
  border-bottom: 1px solid #f2f2f2;
  vertical-align: middle;
}

body.layout-table .shop-side-head,
body.layout-table .shop-side { text-align: right; }

body.layout-table .shop-product {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 220px;
}

body.layout-table .shop-thumb {
  width: 56px;
  height: 56px;
  flex: none;
  background: #fafafa;
  display: grid;
  place-items: center;
  overflow: hidden;
}

body.layout-table .shop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.layout-table .shop-thumb.is-empty::before {
  content: "+";
  color: #c5c5c5;
  font-size: 1.6rem;
  font-weight: 600;
}

body.layout-table .shop-name {
  margin: 0;
  font-weight: 700;
  color: #333;
}

body.layout-table .shop-sub,
body.layout-table .shop-link,
body.layout-table .shop-added,
body.layout-table .shop-note {
  margin: 4px 0 0;
  color: #8d8d8d;
  font-size: 0.9rem;
}

body.layout-table .shop-link { display: inline-block; color: #6d947f; font-weight: 600; }

body.layout-table .shop-price {
  color: #8c9344;
  font-weight: 700;
  white-space: nowrap;
}

body.layout-table .shop-price.is-open { color: #9a9a9a; font-weight: 500; }

body.layout-table .shop-stock {
  color: #6d947f;
  font-weight: 700;
  white-space: nowrap;
}

body.layout-table .shop-status {
  display: block;
  margin-top: 4px;
  color: #8d8d8d;
  font-size: 0.85rem;
  font-weight: 500;
}

body.layout-table .shop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

body.layout-table .shop-cart,
body.layout-table .shop-quiet {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

body.layout-table .shop-cart { background: #6d947f; color: white; }

body.layout-table .shop-quiet { background: white; color: #555; border: 1px solid #e4e4e4; }

body.layout-table .empty {
  background: white;
  border: 0;
  border-top: 1px solid #e6e6e6;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 760px) {
  body.layout-table .shop-table thead { display: none; }

  body.layout-table .shop-table,
  body.layout-table .shop-table tbody,
  body.layout-table .shop-table tr,
  body.layout-table .shop-table td { display: block; width: 100%; }

  body.layout-table .shop-row {
    padding: 8px 0 16px;
    border-bottom: 1px solid #eee;
  }

  body.layout-table .shop-table td { border: 0; padding: 8px 14px; }

  body.layout-table .shop-side,
  body.layout-table .shop-actions,
  body.layout-table .admin-actions { text-align: left; justify-content: flex-start; }
}

body.layout-table {
  background: #fafafa;
}

body.layout-table .page { padding-top: 8px; }

body.layout-table .bar {
  background: transparent;
  color: #2c2c2c;
  box-shadow: none;
  border-radius: 0;
  padding: 18px 0 0;
}

body.layout-table .eyebrow { color: #a3a3a3; letter-spacing: 0.16em; }

body.layout-table .lead { color: #8a8a8a; font-size: 0.92rem; }

body.layout-table .mast-actions {
  flex-direction: row;
  flex-wrap: wrap;
  width: auto;
  gap: 8px;
}

body.layout-table .mast-actions .btn,
body.layout-table .mast-actions a.btn {
  width: auto;
  padding: 8px 14px;
  font-size: 0.9rem;
  box-shadow: none;
}

body.layout-table .mast-actions .btn.mint {
  background: #eef4f0;
  color: #2f6b4c;
}

body.layout-table .mast-actions .btn.quiet {
  background: transparent;
  color: #666;
  border-color: transparent;
}

body.layout-table .toolbar { gap: 8px; padding-top: 0; }

body.layout-table .search,
body.layout-table .chip,
body.layout-table .sort-pill,
body.layout-table .btn {
  box-shadow: none;
}

body.layout-table .search { padding: 8px 12px; }

body.layout-table .chip { padding: 6px 11px; font-size: 0.86rem; }

body.layout-table .sort-pill { padding: 2px 2px 2px 12px; }

body.layout-table .sort-arrow { width: 28px; height: 28px; }

body.layout-table .btn { padding: 8px 14px; font-size: 0.9rem; }

body.layout-table .foot { font-size: 0.88rem; }

body.layout-table .foot summary { font-weight: 500; }

body.layout-table .admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

body.layout-table .icon-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-color: #ececec;
}

body.layout-table .text-btn {
  border: 0;
  background: transparent;
  color: #444;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 8px;
  cursor: pointer;
}

body.layout-table .text-btn.is-danger { color: #b42318; }

body.layout-table .gate.sheet {
  border-radius: 18px;
  border: 1px solid #eee;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
  max-height: none;
  margin: 36px auto;
}

body.layout-table dialog {
  width: min(420px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  height: fit-content;
  max-height: min(88dvh, 760px);
  margin: auto;
  inset: 0;
  position: fixed;
  overflow: auto;
}

body.layout-table dialog::backdrop { background: rgba(17, 17, 17, 0.38); }

body.layout-table dialog .sheet {
  border-radius: 18px;
  border: 1px solid #eee;
  border-bottom: 1px solid #eee;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  padding: 22px 22px 18px;
  max-height: none;
}

body.layout-table dialog .sheet h2 { font-size: 1.35rem; }

body.layout-table .pin-key {
  height: 46px;
  min-height: 44px;
  border-radius: 12px;
}
