:root {
  color-scheme: light;
  --app-max-width: 494px;
  --paper: #f5f3f0;
  --paper-deep: #ebe8e3;
  --ink: #20201e;
  --muted: #77736e;
  --faint: #aaa6a0;
  --line: #d9d5cf;
  --green: #007b5e;
  --danger: #914b43;
  --serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", serif;
  --sans: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--paper-deep);
}

body,
button,
input,
textarea,
select {
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

::view-transition-group(item-detail-card) {
  z-index: 20;
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-group(publish-sheet) {
  z-index: 21;
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-detail-transition],
html[data-publish-transition] {
  pointer-events: none;
}

::view-transition-image-pair(item-detail-card) {
  overflow: hidden;
}

html[data-detail-transition="open"]::view-transition-image-pair(item-detail-card) {
  animation: detail-corners-open 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-detail-transition="close"]::view-transition-image-pair(item-detail-card) {
  animation: detail-corners-close 460ms cubic-bezier(0.32, 0, 0.2, 1) both;
}

html[data-detail-transition="open"]::view-transition-old(root) {
  animation: detail-background-out 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-detail-transition="open"]::view-transition-new(root) {
  animation: detail-page-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-detail-transition="close"]::view-transition-old(root) {
  animation: detail-page-out 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

html[data-detail-transition="close"]::view-transition-new(root) {
  animation: detail-background-in 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

::view-transition-image-pair(publish-sheet) {
  overflow: hidden;
}

html[data-publish-transition="open"]::view-transition-image-pair(publish-sheet) {
  animation: publish-corners-open 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-publish-transition="close"]::view-transition-image-pair(publish-sheet) {
  animation: publish-corners-close 460ms cubic-bezier(0.32, 0, 0.2, 1) both;
}

html[data-publish-transition="open"]::view-transition-old(root) {
  animation: detail-background-out 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-publish-transition="open"]::view-transition-new(root) {
  animation: detail-page-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-publish-transition="close"]::view-transition-old(root) {
  animation: detail-page-out 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

html[data-publish-transition="close"]::view-transition-new(root) {
  animation: detail-background-in 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes detail-corners-open {
  0% { border-radius: 3px; }
  55% { border-radius: 12px; }
  100% { border-radius: 2px; }
}

@keyframes detail-corners-close {
  0% { border-radius: 2px; }
  45% { border-radius: 12px; }
  100% { border-radius: 3px; }
}

@keyframes publish-corners-open {
  0% { border-radius: 50%; }
  58% { border-radius: 16px; }
  100% { border-radius: 2px; }
}

@keyframes publish-corners-close {
  0% { border-radius: 2px; }
  42% { border-radius: 16px; }
  100% { border-radius: 50%; }
}

@keyframes detail-background-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.38; transform: scale(0.985); }
}

@keyframes detail-page-in {
  from { opacity: 0.35; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes detail-page-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0.18; transform: translateY(58px) scale(0.965); }
}

@keyframes detail-background-in {
  from { opacity: 0.42; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

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

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  width: min(100%, var(--app-max-width));
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: 78px;
  background: var(--paper);
}

.paper-header {
  padding: 27px 18px 10px;
  background: var(--paper);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.wordmark span {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.wordmark em {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.14em;
}

.paper-search {
  position: relative;
  height: 43px;
  margin-top: 24px;
  border-radius: 3px;
  background: var(--paper-deep);
}

.search {
  width: 100%;
  height: 100%;
  padding: 0 14px 0 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search::placeholder {
  color: #918d87;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-60%);
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.content {
  padding: 18px 18px 34px;
}

.daily-feature {
  position: relative;
  width: 100%;
  aspect-ratio: 1.78 / 1;
  display: block;
  overflow: hidden;
  padding: 0;
  border-radius: 3px;
  background: var(--paper-deep);
  color: #fff;
  text-align: left;
}

.daily-image,
.product-image,
.shelf-image,
.overview-image,
.swap-image,
.admin-thumb,
.detail-gallery img,
.detail-placeholder {
  display: block;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.daily-image {
  width: 100%;
  height: 100%;
}

.daily-feature .image-placeholder {
  background: #d6d1ca;
  color: #5e5a55;
}

.daily-shade {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 17, 0.38);
}

.daily-copy {
  position: absolute;
  right: 22px;
  bottom: 23px;
  left: 22px;
  display: grid;
  gap: 12px;
}

.daily-copy small,
.micro-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.daily-copy strong {
  max-width: 92%;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
}

.category-section {
  margin-top: 37px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0 3px 15px;
}

.section-heading h2,
.overview-head h1,
.form-page h1,
.swap-page h1,
.list-page h1,
.mine-page h1,
.admin-page h1,
.detail-page h1,
.login-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

.section-heading h2 {
  font-size: 22px;
}

.section-heading button,
.back-link,
.text-button {
  padding: 2px 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 44%);
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 7px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.shelf::-webkit-scrollbar,
.category-tabs::-webkit-scrollbar,
.mine-tabs::-webkit-scrollbar {
  display: none;
}

.shelf-card {
  min-width: 0;
  scroll-snap-align: start;
}

.shelf-card button,
.overview-card button {
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.shelf-image {
  width: 100%;
  aspect-ratio: 0.84 / 1;
  border-radius: 2px;
}

.shelf-card h3 {
  min-height: 40px;
  margin: 10px 1px 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.shelf-card p {
  margin: 3px 1px 0;
  overflow: hidden;
  color: var(--green);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf-card .shelf-amount {
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
}

.image-placeholder {
  display: grid;
  place-items: center;
  background: #dfdbd5;
  color: #6f6a64;
}

.image-placeholder span {
  font-family: var(--serif);
  font-size: 24px;
}

.overview-head {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.overview-head h1,
.form-page h1,
.swap-page h1,
.list-page h1,
.admin-page h1 {
  font-size: 25px;
}

.category-tabs,
.mine-tabs {
  display: flex;
  gap: 21px;
  overflow-x: auto;
  padding: 0 1px 12px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-tabs button,
.mine-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.category-tabs button.active,
.mine-tabs button.active {
  color: var(--green);
}

.category-tabs button.active::after,
.mine-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--green);
  content: "";
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 13px;
  margin-top: 18px;
}

.overview-card {
  min-width: 0;
}

.overview-image {
  width: 100%;
  aspect-ratio: 0.92 / 1;
  border-radius: 2px;
}

.overview-copy {
  padding: 9px 2px 0;
}

.overview-copy h3 {
  margin: 0 0 4px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiet-tag {
  color: var(--faint);
  font-size: 10px;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  margin-top: 4px;
}

.price-line strong {
  font-size: 12px;
  font-weight: 400;
}

.price-line span {
  min-width: 0;
  overflow: hidden;
  color: var(--green);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fab {
  position: fixed;
  right: max(18px, calc((100vw - var(--app-max-width)) / 2 + 18px));
  bottom: 76px;
  z-index: 8;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(33, 39, 35, 0.14);
}

.fab span::before,
.fab span::after {
  position: absolute;
  top: 27px;
  left: 17px;
  width: 22px;
  height: 1.5px;
  background: #fff;
  content: "";
}

.fab span::after {
  transform: rotate(90deg);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 7;
  width: min(100%, var(--app-max-width));
  border-top: 1px solid var(--line);
  background: rgba(245, 243, 240, 0.98);
  transform: translateX(-50%);
}

.bottom-nav-inner {
  min-height: 68px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}

.nav-btn {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.nav-ring {
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.nav-btn.active {
  color: var(--ink);
}

.nav-btn.active .nav-ring {
  border-color: var(--ink);
  background: var(--ink);
}

.micro-label {
  margin: 0 0 7px;
  color: var(--muted);
}

.page-intro,
.login-intro {
  margin: 7px 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.form-page,
.swap-page,
.list-page,
.mine-page,
.admin-page,
.detail-page {
  padding-top: 2px;
}

.form-page .back-link,
.detail-page .back-link {
  margin-bottom: 24px;
}

.form {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: #4b4844;
  font-size: 11px;
}

.field small {
  color: var(--faint);
  font-size: 10px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: 0;
  background: rgba(255, 255, 255, 0.32);
  font-size: 12px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 12px;
}

.btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--green);
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
}

.btn.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.detail-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 25px;
}

.detail-gallery img,
.detail-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
}

.detail-page h1 {
  font-size: 26px;
  line-height: 1.45;
}

.detail-price {
  margin: 8px 0 17px;
  font-size: 14px;
}

.detail-page > p:not(.micro-label) {
  color: #4d4944;
  font-size: 12px;
  line-height: 1.8;
}

.detail-list {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.detail-list div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
}

.detail-actions,
.swap-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-seller { grid-column: 1 / -1; }

.nav-unread, .chat-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
}
.nav-unread { position: absolute; top: 5px; left: calc(50% + 7px); }
[hidden] { display: none !important; }
.messages-page { padding-top: 12px; }
.messages-heading { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.messages-heading h1 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.chat-status { color: var(--muted); font-size: 12px; line-height: 1.5; }
.chat-status[data-status="connected"] { color: var(--green); }
.chat-status[data-status="reconnecting"], .chat-error { color: var(--danger); }
.chat-empty p { max-width: 280px; font-size: 14px; }
.chat-empty .btn { margin-top: 14px; }
.conversation-row { display: flex; width: 100%; align-items: center; gap: 12px; padding: 19px 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.conversation-row:hover { background: rgba(0, 123, 94, 0.04); }
.chat-avatar { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: var(--paper-deep); font-family: var(--serif); font-size: 20px; }
.conversation-copy { display: grid; min-width: 0; flex: 1; gap: 6px; }
.conversation-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.conversation-title strong { font-size: 16px; font-weight: 500; }
.conversation-title time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.conversation-item { color: var(--green); font-size: 14px; }
.conversation-preview { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item, .conversation-title strong { overflow-wrap: anywhere; }
.is-messages .content { padding-top: 18px; padding-bottom: 10px; }
.chat-page { height: calc(100dvh - 106px); min-height: 330px; display: flex; flex-direction: column; position: relative; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; flex-shrink: 0; }
.chat-header .back-link { margin: 0; padding: 8px 8px 8px 0; font-size: 22px; }
.chat-header h1 { font-size: 18px; font-weight: 500; margin: 0; }
.chat-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.chat-item-card { display: flex; align-items: center; flex-shrink: 0; width: 100%; gap: 12px; padding: 12px; background: var(--paper-deep); text-align: left; border: 1px solid var(--line); }
.chat-item-card > img { width: 42px; height: 42px; object-fit: cover; border-radius: 2px; }
.chat-item-card > span:nth-child(2) { flex: 1; min-width: 0; }
.chat-item-card strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.chat-item-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.chat-page > .chat-status { text-align: center; padding: 10px 0 2px; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; padding: 6px 2px 16px; }
.chat-notice { color: var(--muted); font-size: 14px; line-height: 1.8; text-align: center; margin: 28px 16px; }
.chat-day { margin: 16px 0; text-align: center; color: var(--muted); font-size: 12px; }
.chat-message { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 16px; }
.chat-message.is-mine { align-items: flex-end; }
.chat-bubble { max-width: 85%; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 2px 12px 12px; font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.is-mine .chat-bubble { color: #fff; background: var(--green); border-color: var(--green); border-radius: 12px 2px 12px 12px; }
.chat-message-meta { color: var(--muted); font-size: 12px; margin-top: 5px; }
.chat-composer { display: flex; flex-shrink: 0; align-items: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.chat-composer textarea { flex: 1; min-width: 0; max-height: 140px; resize: vertical; border: 1px solid var(--line); border-radius: 2px; padding: 11px; background: #fff; font-size: 16px; line-height: 1.5; }
.chat-composer .btn { padding: 13px 16px; min-height: 46px; font-size: 14px; white-space: nowrap; }
.chat-composer .btn:disabled { opacity: 0.55; cursor: default; }
.chat-composer-hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; flex-shrink: 0; }
.chat-error { margin: 8px 0; font-size: 14px; line-height: 1.6; flex-shrink: 0; }
.chat-history { display: block; margin: 8px auto 14px; padding: 8px 12px; background: transparent; color: var(--green); font-size: 14px; }
.chat-new { position: absolute; bottom: 130px; align-self: center; padding: 8px 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--green); font-size: 14px; box-shadow: 0 2px 8px #0001; }
.trade-chat { grid-column: 2; justify-self: start; padding: 8px 0 0; background: transparent; color: var(--green); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.offer-select {
  margin-bottom: 23px;
}

.swap-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.swap-card,
.swap-empty {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.swap-empty {
  min-height: 247px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  text-align: center;
}

.swap-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
  border-radius: 2px;
}

.swap-card h3 {
  margin: 0 0 3px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swap-card p,
.swap-card small {
  margin: 0;
  font-size: 10px;
}

.swap-card small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--green);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swap-symbol {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
}

.swap-actions {
  margin-top: 16px;
}

.profile-block {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: center;
  padding: 10px 0 23px;
}

.profile-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 19px;
}

.profile-block h1 {
  font-size: 20px;
}

.profile-block p,
.profile-block small {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.mine-tabs {
  gap: 17px;
  margin-bottom: 19px;
}

.trade-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.trade-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 2px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.trade-list span,
.trade-list small {
  color: var(--muted);
  font-size: 10px;
}

.trade-list strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
}

.trade-list small {
  grid-column: 2;
}

.logout-button {
  width: 100%;
  margin-top: 30px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.admin-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.admin-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-list article > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.admin-list span {
  min-width: 0;
  display: grid;
}

.admin-list strong,
.admin-list small {
  overflow: hidden;
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list small {
  color: var(--muted);
  font-size: 9px;
}

.admin-list select {
  width: 78px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-size: 10px;
}

.empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px 18px;
  color: var(--muted);
  text-align: center;
}

.empty.compact {
  min-height: 160px;
}

.empty span {
  font-family: var(--serif);
  font-size: 17px;
}

.empty p {
  margin: 7px 0;
  font-size: 11px;
}

.login-page {
  position: relative;
  width: min(100%, var(--app-max-width));
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 auto;
  padding: 24px;
  background: var(--paper);
}

.login-card {
  width: min(350px, 100%);
}

.login-page.is-arriving .login-card {
  animation: login-settle 680ms 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-brand {
  width: 118px;
  height: auto;
  display: block;
  margin-bottom: 34px;
}

.login-card h1 {
  font-size: 31px;
}

.login-intro {
  margin-top: 10px;
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.auth-switch button {
  padding: 7px 5px;
  background: transparent;
  color: var(--green);
}

.auth-switch button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.auth-error {
  margin: 0;
  color: #a03e34;
  font-size: 12px;
  line-height: 1.6;
}

.register-page {
  padding-top: 36px;
  padding-bottom: 36px;
}

.register-page .login-brand {
  margin-bottom: 24px;
}

.sesa-field {
  display: grid;
  gap: 7px;
}

.sesa-lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.sesa-lookup-row input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
  font-size: 12px;
}

.sesa-lookup-row input:focus {
  border-color: var(--green);
}

.lookup-hint {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.lookup-hint[data-status="matched"],
.field input[data-autofilled] {
  color: var(--green);
}

.lookup-hint[data-status="error"] {
  color: #a03e34;
}

.registration-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.registration-details input {
  min-width: 0;
}

.login-launch {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
  pointer-events: none;
  animation: launch-curtain 1.9s cubic-bezier(0.32, 0, 0.18, 1) both;
}

.launch-bloom {
  position: absolute;
  width: 82px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 123, 94, 0.25);
  filter: blur(17px);
  animation: launch-bloom 1.55s cubic-bezier(0.3, 0, 0.15, 1) both;
}

.launch-logo {
  position: relative;
  z-index: 1;
  width: 132px;
  display: grid;
  place-items: center;
  animation: launch-logo 1.55s cubic-bezier(0.3, 0, 0.15, 1) both;
}

.launch-logo img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes launch-logo {
  0%, 12% {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.5);
  }
  28% {
    opacity: 1;
    filter: blur(1.5px);
    transform: scale(0.78);
  }
  52% {
    opacity: 1;
    filter: blur(0);
    transform: scale(0.92);
  }
  68% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(5px);
    transform: scale(5.6);
  }
}

@keyframes launch-bloom {
  0%, 14% {
    opacity: 0;
    transform: scale(0.25);
  }
  30% {
    opacity: 1;
    transform: scale(0.9);
  }
  67% {
    opacity: 0.7;
    transform: scale(1.25);
  }
  100% {
    opacity: 0;
    transform: scale(14);
  }
}

@keyframes launch-curtain {
  0%, 70% {
    visibility: visible;
    opacity: 1;
  }
  83% {
    visibility: visible;
    opacity: 0.92;
  }
  100% {
    visibility: hidden;
    opacity: 0;
  }
}

@keyframes login-settle {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast {
  position: fixed;
  bottom: 82px;
  left: 50%;
  z-index: 10;
  max-width: min(360px, calc(100% - 36px));
  padding: 10px 14px;
  border-radius: 2px;
  background: #272624;
  color: #fff;
  font-size: 11px;
  transform: translateX(-50%);
}

@media (max-width: 370px) {
  .paper-header,
  .content {
    padding-right: 13px;
    padding-left: 13px;
  }

  .wordmark em {
    display: none;
  }

  .split-fields {
    grid-template-columns: 1fr;
  }

  .registration-details {
    grid-template-columns: 1fr;
  }

  .shelf {
    grid-auto-columns: 47%;
  }

  .swap-stage {
    grid-template-columns: 1fr;
  }

  .swap-symbol {
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-launch {
    display: none;
    animation: none;
  }

  .login-page.is-arriving .login-card {
    animation: none;
  }

  ::view-transition-group(root),
  ::view-transition-group(item-detail-card),
  ::view-transition-group(publish-sheet) {
    animation-duration: 1ms;
  }
}
