:root {
  color-scheme: light;
  --bg: #f8f7f2;
  --paper: #fffefa;
  --paper-2: #f1eee7;
  --paper-3: #e9e3d8;
  --ink: #151515;
  --muted: #7d776d;
  --faint: #aaa39a;
  --line: rgba(21, 21, 21, 0.1);
  --line-strong: rgba(21, 21, 21, 0.18);
  --accent: #e95f18;
  --accent-dark: #c84d09;
  --accent-soft: rgba(233, 95, 24, 0.1);
  --green: #158354;
  --blue: #566fe8;
  --shadow: 0 26px 80px rgba(36, 31, 24, 0.1);
  --soft-shadow: 0 16px 48px rgba(36, 31, 24, 0.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(233, 95, 24, 0.09), transparent 25%),
    radial-gradient(circle at 86% 50%, rgba(86, 111, 232, 0.08), transparent 23%),
    linear-gradient(90deg, rgba(21, 21, 21, 0.025) 0 1px, transparent 1px) 50% 0 / 104px 100%,
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

#app {
  width: min(1520px, calc(100vw - 56px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 36px;
}

.topbar {
  height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  min-width: 250px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #111216;
  box-shadow: 0 14px 32px rgba(21, 21, 21, 0.16);
  position: relative;
  overflow: hidden;
}

.brand-mark .sheet {
  width: 18px;
  height: 22px;
  border-radius: 4px 7px 4px 4px;
  background: #fff;
  clip-path: polygon(0 0, 68% 0, 100% 27%, 100% 100%, 0 100%);
  transform: rotate(-5deg);
  position: relative;
}

.brand-mark .sheet::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: #111216;
}

.brand-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-copy small {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 750;
}

.top-nav {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.72);
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #817a70;
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

.nav-item.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 21, 21, 0.13);
}

.account {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.credit-chip,
.user-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.8);
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.credit-chip {
  padding: 0 15px;
}

.credit-chip span {
  color: var(--ink);
  font-weight: 950;
}

.credit-chip b {
  color: var(--faint);
  font-weight: 800;
}

.user-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px 0 6px;
  color: var(--ink);
}

.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.68fr) minmax(550px, 1.42fr) minmax(330px, 0.86fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 42px 0 20px;
}

.profile-panel {
  align-self: center;
  display: grid;
  gap: 16px;
}

.panel-kicker,
.hero p,
.page-head p,
.pickup-head {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.company-card,
.memory-card,
.handoff-card,
.packet,
.list-card,
.admin-card,
.price-card {
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 14px 44px rgba(36, 31, 24, 0.055);
}

.company-card {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
}

.company-card > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.company-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f57723, #f0b26b);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.company-card strong,
.memory-card h2 {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.company-card span {
  display: block;
  margin-top: 4px;
  color: #8b857c;
  font-size: 12px;
  font-weight: 700;
}

.mini-edit {
  flex: none;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffefa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.memory-card {
  padding: 18px;
  border-radius: 24px;
}

.memory-card h2 {
  margin: 0 0 12px;
}

.memory-card p {
  margin: 0;
  color: #746f66;
  font-size: 13px;
  line-height: 1.72;
  font-weight: 650;
}

.memory-card.quiet { opacity: 0.72; }

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

.asset-tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffefa;
  color: #6c675f;
  font-size: 12px;
  font-weight: 820;
}

.drop-panel {
  position: relative;
}

.drop-panel::before {
  content: "";
  position: absolute;
  inset: 116px -44px -34px;
  z-index: -1;
  border-radius: 52px;
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.98), transparent 52%),
    rgba(229, 224, 214, 0.34);
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero p { margin: 0 0 12px; }

.hero h1,
.page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero span,
.page-head span {
  display: block;
  margin-top: 14px;
  color: #77716a;
  font-size: 15px;
  font-weight: 650;
}

.cap-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 18px;
}

.cap-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 254, 250, 0.75);
  color: #6e6860;
  font-size: 13px;
  font-weight: 850;
}

.cap-row button.is-active {
  color: var(--ink);
  border-color: rgba(233, 95, 24, 0.38);
  background: var(--accent-soft);
}

.handoff-card {
  overflow: hidden;
  border-color: var(--line-strong);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(255, 251, 243, 0.95));
  box-shadow: var(--shadow);
}

.slip-top {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 0 26px;
}

.slip-top span {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.slip-top strong {
  display: block;
  margin-top: 4px;
  color: #948d84;
  font-size: 12px;
  font-weight: 800;
}

.slip-top b {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

textarea {
  width: 100%;
  min-height: 230px;
  resize: none;
  border: 0;
  outline: none;
  padding: 30px 32px 22px;
  background:
    linear-gradient(rgba(21, 21, 21, 0.035) 1px, transparent 1px) 0 30px / 100% 36px,
    transparent;
  color: #1d1b18;
  font-size: 19px;
  line-height: 1.8;
  font-weight: 650;
}

textarea::placeholder { color: #b4afa6; }

.handoff-tools,
.handoff-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.handoff-tools {
  padding: 0 26px 18px;
  justify-content: flex-start;
}

.attached-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 26px 18px;
}

.attached-assets .asset-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(233, 95, 24, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

.attached-assets .asset-pill button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(233, 95, 24, 0.14);
  color: var(--accent-dark);
  line-height: 1;
}

.handoff-tools button,
.packet-actions button,
.drawer-head button,
.logout-button,
.price-card button,
.admin-card button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: #fffefa;
  color: #706a62;
  font-size: 13px;
  font-weight: 850;
}

.handoff-action {
  min-height: 78px;
  border-top: 1px solid var(--line);
  padding: 0 20px 0 26px;
  background: rgba(255, 254, 250, 0.68);
}

.handoff-action span {
  color: #817a70;
  font-size: 13px;
  font-weight: 780;
}

.stamp-button,
.primary-wide {
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 20px 42px rgba(21, 21, 21, 0.2);
  transition: transform 0.18s ease, background 0.18s ease;
}

.stamp-button {
  min-width: 148px;
  height: 52px;
  font-size: 16px;
}

.stamp-button:hover,
.primary-wide:hover {
  transform: translateY(-1px);
  background: #282724;
}

.stamp-button.is-loading {
  background: var(--accent);
}

.pickup-panel {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 560px;
  opacity: 0.72;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.pickup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #aaa49b;
}

.pickup-head b {
  color: #aaa49b;
}

.pickup-head b.ready {
  color: var(--green);
}

.packet-stack {
  position: relative;
  min-height: 520px;
}

.packet {
  position: absolute;
  background: var(--paper);
}

.packet-main {
  inset: 0 0 auto;
  min-height: 436px;
  border-radius: 30px;
  padding: 26px;
  transform: translateY(22px) rotate(1deg);
  transition: transform 0.42s ease, box-shadow 0.42s ease;
}

.packet-note {
  right: 18px;
  bottom: 0;
  left: 18px;
  min-height: 110px;
  border-radius: 22px;
  padding: 18px 20px;
  opacity: 0.84;
  transform: rotate(-1.5deg);
}

.packet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.packet-top span,
.packet-note span {
  color: #4c4945;
  font-size: 13px;
  font-weight: 950;
}

.packet-top small {
  border-radius: 999px;
  padding: 6px 10px;
  background: #edf8f2;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.packet-main h2 {
  max-width: 370px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 27px;
  line-height: 1.22;
}

.packet-main p {
  max-width: 370px;
  margin: 18px 0 0;
  color: #6a665f;
  font-size: 14px;
  line-height: 1.82;
  font-weight: 650;
}

.packet-note p {
  margin: 8px 0 0;
  color: #77726b;
  font-size: 13px;
  font-weight: 680;
}

.artifact-preview {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.artifact-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.artifact-chip b {
  color: var(--ink);
}

.packet-actions {
  position: absolute;
  right: 24px;
  bottom: 26px;
  left: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.12s, transform 0.3s ease 0.12s;
}

.stamp {
  position: absolute;
  right: 28px;
  top: 122px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(233, 95, 24, 0.5);
  border-radius: 50%;
  color: rgba(233, 95, 24, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
  transform: rotate(-14deg) scale(0.84);
  opacity: 0;
  transition: opacity 0.38s ease 0.16s, transform 0.38s ease 0.16s;
}

.pickup-panel.delivered {
  opacity: 1;
  transform: translateX(-4px) scale(1.03);
}

.packet-stack.ready .packet-main {
  transform: translateY(0) rotate(0);
  box-shadow: 0 30px 90px rgba(36, 31, 24, 0.12);
}

.packet-stack.ready .stamp,
.packet-stack.ready .packet-actions {
  opacity: 1;
  transform: rotate(-14deg) scale(1);
}

.packet-stack.ready .packet-actions {
  transform: translateY(0);
}

.view-page {
  grid-column: 1 / -1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-head {
  margin-bottom: 28px;
}

.page-head h1 {
  font-size: clamp(36px, 4vw, 56px);
}

.list-card {
  border-radius: 30px;
  overflow: hidden;
}

.list-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

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

.list-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.pill {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.price-card {
  min-height: 210px;
  border-radius: 30px;
  padding: 24px;
  background: rgba(20, 20, 20, 0.93);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.price-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 95, 24, 0.36), transparent 68%);
}

.price-card .badge {
  color: #f1b79a;
  font-size: 12px;
  font-weight: 900;
}

.price-card h2 {
  margin: 18px 0 0;
  font-size: 44px;
  line-height: 1;
}

.price-card p {
  margin: 12px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.price-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.price-card .price {
  font-size: 30px;
  font-weight: 950;
}

.price-card button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

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

.admin-standalone {
  min-height: calc(100vh - 110px);
  padding: 60px 0;
}

.admin-login-card {
  width: min(460px, calc(100vw - 40px));
  margin: 72px auto 0;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 32px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 22px 0 10px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.admin-login-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-login-card input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 14px;
  background: #fffefa;
  outline: none;
}

.admin-login-card input:focus {
  border-color: rgba(233, 95, 24, 0.4);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.admin-dashboard {
  margin-top: 10px;
}

.admin-card {
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
}

.admin-card.wide {
  grid-column: 1 / -1;
}

.admin-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.admin-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.admin-line b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.grant-form {
  display: grid;
  gap: 10px;
}

.grant-form input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 254, 250, 0.9);
  outline: none;
}

.grant-form input:focus {
  border-color: rgba(233, 95, 24, 0.4);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.grant-form button {
  justify-self: start;
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

.auth-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(18, 18, 18, 0.22);
  backdrop-filter: blur(4px);
}

.auth-card {
  width: min(430px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 30px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow);
}

.auth-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--ink);
}

.auth-mark span {
  width: 20px;
  height: 24px;
  border-radius: 4px 7px 4px 4px;
  background: #fff;
  clip-path: polygon(0 0, 68% 0, 100% 27%, 100% 100%, 0 100%);
}

.auth-card h2 {
  margin: 20px 0 8px;
  font-size: 26px;
}

.auth-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.auth-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.auth-card input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  outline: none;
}

.auth-card input:focus {
  border-color: rgba(233, 95, 24, 0.4);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
  align-items: end;
}

.code-row button {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  font-weight: 850;
}

.dev-code {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
}

.primary-wide {
  width: 100%;
  height: 50px;
  margin-top: 18px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(21, 21, 21, 0.2);
  backdrop-filter: blur(3px);
}

.drawer-card {
  position: absolute;
  right: 24px;
  top: 24px;
  bottom: 24px;
  width: min(430px, calc(100vw - 48px));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  background: rgba(255, 254, 250, 0.98);
  box-shadow: var(--shadow);
  overflow: auto;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.drawer-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.drawer-head strong {
  display: block;
  margin-top: 4px;
}

.balance-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 24px;
  background: #151515;
  color: #fff;
}

.balance-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
}

.balance-card strong {
  display: block;
  margin: 7px 0 16px;
  font-size: 46px;
  line-height: 1;
}

.balance-card button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  font-weight: 900;
}

.drawer-tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0 10px;
}

.drawer-tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
}

.drawer-tabs button.is-active {
  background: var(--ink);
  color: #fff;
}

.drawer-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.drawer-line b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.logout-button {
  width: 100%;
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translateX(-50%);
  min-width: 180px;
  max-width: min(520px, calc(100vw - 40px));
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 820;
  box-shadow: var(--shadow);
}

@media (max-width: 1180px) {
  #app { width: min(100% - 30px, 760px); }
  .topbar {
    height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 16px;
  }
  .top-nav,
  .account {
    justify-self: start;
  }
  .layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .profile-panel,
  .drop-panel,
  .pickup-panel {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }
  .view-page {
    grid-column: auto;
  }
  .pricing-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 42px; }
  textarea { min-height: 190px; font-size: 16px; }
  .handoff-action,
  .handoff-tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .stamp-button { width: 100%; }
  .list-row {
    grid-template-columns: 1fr;
  }
}
