:root {
  --type-scale: 1;
  --ink: #050505;
  --cream: #fcfcfb;
  --acid: #cbd572;
  --line: rgb(252 252 251 / 20%);
  --container-radius: 8px;
  --container-border: 1px solid rgb(252 252 251 / 50%);
  --type-t1-size: calc(24px * var(--type-scale));
  --type-t1-weight: 850;
  --type-t1-line-height: 1.2;
  --type-t1-letter-spacing: -.035em;
  --type-t2-size: calc(15px * var(--type-scale));
  --type-t2-weight: 750;
  --type-t2-line-height: 1.35;
  --type-t2-letter-spacing: 0;
  --type-t3-size: calc(12px * var(--type-scale));
  --type-t3-weight: 500;
  --type-t3-line-height: 1.6;
  --type-t3-letter-spacing: 0;
  /* 卡片标题：介于区块标题与正文之间的第四档，只用于内容卡片 */
  --type-card-title-size: calc(14px * var(--type-scale));
  --type-card-title-weight: 600;
  --type-card-title-line-height: 1.4;
  --type-card-title-letter-spacing: 0;
}

@media (max-width: 1023px) {
  :root { --type-scale: .92; }
}

@media (max-width: 743px) {
  :root { --type-scale: .84; }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--cream);
  background: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }

.page-content,
.app-header-inner,
.site-footer-inner {
  width: min(1600px, 90vw);
  margin-inline: auto;
}

.ui-container {
  border: var(--container-border);
  border-radius: var(--container-radius);
}

.page-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
}

/* 内容高度固定的页面垂直居中；列表页会随条目增长，保持顶部对齐 */
.page-shell > .page-content {
  align-self: center;
  align-self: safe center;
}

/* 列表页：条目会随数据增长，从页头下方开始排 */
.updates-page .page-shell > .page-content,
.showcase-page .page-shell > .page-content,
.public-works-page .page-shell > .page-content,
.drafts-page .page-shell > .page-content,
.my-orders-page .page-shell > .page-content,
.howoo-lab-page .page-shell > .page-content {
  align-self: auto;
}

.site-page,
.page-content {
  background: var(--ink);
}

/* 只有屏幕阅读器和搜索引擎需要的文本，不占布局 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.showcase-search {
  display: flex;
  width: min(760px, 100%);
  height: 48px;
  margin: 18px auto 0;
  padding: 0 16px 0 20px;
  align-items: center;
  border: 1px solid rgb(252 252 251 / 26%);
  border-radius: 999px;
  background: rgb(252 252 251 / 8%);
}

.showcase-search input {
  min-width: 0;
  flex: 1;
  padding: 0;
  color: var(--cream);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
  border: 0;
  outline: 0;
  background: transparent;
}

.showcase-search input::placeholder {
  color: rgb(252 252 251 / 42%);
}

.showcase-search button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: var(--cream);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.showcase-search svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.showcase-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-block: 24px;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .showcase-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 744px) and (max-width: 1023px) {
  .showcase-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 743px) {
  .showcase-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.app-header {
  height: 74px;
  color: var(--cream);
  background: var(--ink);
}

.app-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  height: 100%;
  align-items: center;
}

.brand,
.account-nav,
.account-nav-actions {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  padding: 0;
  gap: 11px;
  color: var(--cream);
  text-align: left;
}

.brand-logo-link,
.brand-product a {
  color: inherit;
  text-decoration: none;
}

.brand-logo-link {
  display: block;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 31px;
  height: 42px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgb(252 252 251 / 30%);
}

.brand-product {
  display: flex;
  align-items: center;
  color: var(--cream);
  font-size: var(--type-t1-size);
  font-weight: var(--type-t1-weight);
  line-height: var(--type-t1-line-height);
  letter-spacing: var(--type-t1-letter-spacing);
  white-space: nowrap;
}

.account-nav { justify-content: flex-end; }
.account-nav-actions { gap: 8px; }
.account-nav-actions[hidden] { display: none; }
.account-nav-actions > [hidden] { display: none; }
.account-nav-context {
  display: flex;
  gap: 0;
  margin: 0;
  align-items: center;
  color: var(--cream);
  font-size: var(--type-t2-size);
  font-weight: var(--type-t2-weight);
  line-height: var(--type-t2-line-height);
  letter-spacing: var(--type-t2-letter-spacing);
  white-space: nowrap;
}
.account-nav :is(button, a) {
  padding: 0;
  color: var(--cream);
  font-size: var(--type-t2-size);
  font-weight: var(--type-t2-weight);
  line-height: var(--type-t2-line-height);
  letter-spacing: var(--type-t2-letter-spacing);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
/* 与页脚一致：按钮和链接共用同一套悬停反馈 */
.account-nav :is(button, a):is(:hover, :focus-visible) { color: var(--acid); }
.account-nav span {
  color: rgb(252 252 251 / 42%);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
}
.account-nav-context > span { color: var(--cream); font: inherit; letter-spacing: inherit; }

@media (max-width: 743px) {
  .app-header { height: auto; min-height: 86px; }
  .app-header-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px;
    align-content: center;
  }
  .brand { gap: 6px; }
  .brand-logo { width: 22px; height: 32px; }
  .brand-divider { height: 22px; }
  .brand-product { min-width: 0; flex-wrap: wrap; }
  .account-nav {
    justify-content: flex-start;
    padding-left: 34px;
  }
  .account-nav-actions {
    max-width: 100%;
    flex-wrap: wrap;
  }
}

.site-footer {
  width: 100%;
  margin: auto 0 0;
  color: var(--cream);
  text-align: left;
  background: var(--ink);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 26px clamp(42px, 7vw, 110px);
  padding: 30px 0 20px;
  align-items: start;
}

.site-footer-brand {
  display: grid;
  grid-template-columns: max-content minmax(180px, 1fr);
  grid-template-rows: repeat(2, auto);
  column-gap: 30px;
  row-gap: 4px;
  min-width: 0;
  padding-top: 0;
  align-content: center;
}

.site-footer-identity {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  margin: 0;
  padding-right: 30px;
  align-items: center;
  border-right: 1px solid var(--line);
}

.site-footer-identity img { width: auto; height: 105px; object-fit: contain; }
.site-footer-brand p {
  grid-column: 2;
  margin: 0;
  color: var(--cream);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}
.site-footer-brand p:first-of-type { align-self: end; }
.site-footer-version { align-self: start; font-variant-numeric: tabular-nums; }
.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: clamp(34px, 5vw, 72px);
}
.site-footer-nav > div {
  display: grid;
  gap: 9px;
  align-content: start;
  justify-items: start;
}
.site-footer-nav strong {
  margin-bottom: 2px;
  color: var(--cream);
  font-size: var(--type-t2-size);
  font-weight: var(--type-t2-weight);
  line-height: var(--type-t2-line-height);
  letter-spacing: var(--type-t2-letter-spacing);
}
.site-footer-nav :is(button, span, a) {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  color: rgb(252 252 251 / 76%);
  font: inherit;
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  background: transparent;
}
.site-footer-nav span b { font: inherit; font-variant-numeric: tabular-nums; }
.site-footer-nav :is(button, a) { cursor: pointer; }
/* 按钮与链接使用同一套悬停反馈；纯数字指标（span）保持静态 */
.site-footer-nav :is(button, a):is(:hover, :focus-visible) { color: var(--acid); }

@media (max-width: 899px) {
  .site-footer-inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer-nav { gap: 24px; }
}

@media (max-width: 743px) {
  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 26px 0 18px;
  }
  .site-footer-brand {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: repeat(2, auto);
    width: 100%;
    column-gap: 24px;
    padding-top: 0;
  }
  .site-footer-identity { display: contents; }
  .site-footer-identity img {
    grid-column: 1;
    grid-row: 1 / 3;
    width: auto;
    height: 105px;
    align-self: center;
  }
  .site-footer-brand p { grid-column: 2; justify-self: end; text-align: right; }
  .site-footer-brand p:first-of-type { grid-row: 1; }
  .site-footer-brand .site-footer-version { grid-row: 2; }
  .site-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.account-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  max-width: none;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  border: 0;
  background: var(--cream);
}

.account-dialog::backdrop {
  background: rgb(5 5 5 / 78%);
  backdrop-filter: blur(8px);
}

.account-dialog-panel { padding: 24px; }

.account-dialog header {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.account-dialog header span,
.account-dialog-status,
.account-dialog-hint {
  color: rgb(5 5 5 / 60%);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.account-dialog h2 {
  margin: 0;
  font-size: var(--type-t1-size);
  font-weight: var(--type-t1-weight);
  line-height: var(--type-t1-line-height);
  letter-spacing: var(--type-t1-letter-spacing);
}

.account-dialog button {
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.account-dialog [data-account-close],
.account-dialog .export-dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.account-dialog form { display: grid; gap: 14px; }

.account-dialog label {
  display: grid;
  gap: 6px;
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.account-dialog input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding-inline: 12px;
  color: var(--ink);
  border: 1px solid rgb(5 5 5 / 42%);
  border-radius: var(--container-radius);
  outline: 0;
  background: #fff;
}

.account-dialog input:focus {
  border-color: var(--ink);
  outline: 3px solid rgb(203 213 114 / 58%);
}

.account-dialog input::placeholder { color: rgb(5 5 5 / 38%); }

.account-dialog .account-dialog-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.account-dialog .account-dialog-consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: #7a8549;
}

.account-dialog-consent button {
  padding: 0;
  color: #7a8549;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-dialog .account-dialog-primary {
  height: 44px;
  color: var(--ink);
  border-radius: var(--container-radius);
  background: var(--acid);
}

.account-dialog-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.account-dialog-code button { padding-inline: 12px; border: var(--container-border); border-radius: var(--container-radius); }
.account-dialog-code button { color: var(--cream); border-color: var(--ink); background: var(--ink); }

.account-dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.account-dialog-actions button {
  color: #7a8549;
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.account-dialog-status { min-height: 1.6em; margin: 14px 0 0; }

.account-dialog-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  margin-block: 16px;
  align-items: center;
  color: rgb(5 5 5 / 48%);
}

.account-dialog-divider::before,
.account-dialog-divider::after {
  height: 1px;
  content: "";
  background: rgb(5 5 5 / 18%);
}

.account-dialog-providers { display: grid; gap: 10px; }

.account-dialog .account-dialog-providers button {
  min-height: 44px;
  color: var(--cream);
  border: 1px solid #7a8549;
  border-radius: var(--container-radius);
  background: #7a8549;
}

.account-dialog .account-dialog-providers button:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--acid);
}

.account-dialog-qr {
  display: grid;
  width: min(260px, 70vw);
  aspect-ratio: 1;
  margin-inline: auto;
  place-items: center;
  border: 1px solid rgb(5 5 5 / 28%);
  border-radius: var(--container-radius);
  background: #fff;
  overflow: hidden;
}

.account-dialog-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-dialog-hint { margin: 16px 0 0; text-align: center; }

.account-dialog-wechat-code {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  text-align: center;
}

.account-dialog-wechat-code[hidden] { display: none; }

.account-dialog-wechat-code span {
  color: rgb(5 5 5 / 60%);
  font-size: var(--type-t3-size);
}

.account-dialog-wechat-code strong {
  font-size: 30px;
  letter-spacing: .18em;
}

.account-dialog-refresh { width: 100%; margin-top: 8px; }

.export-decision-dialog p {
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.export-decision-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.export-decision-actions button {
  min-height: 44px;
  font-family: inherit;
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
  border: 1px solid var(--ink);
  border-radius: var(--container-radius);
}

.export-decision-actions button:active,
.account-dialog .export-dialog-close:active { filter: brightness(.9); }

.export-decision-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.export-decision-actions button:focus-visible,
.account-dialog .export-dialog-close:focus-visible {
  outline: 3px solid rgb(122 133 73 / 58%);
  outline-offset: 2px;
}

.account-dialog.export-success-dialog {
  width: min(380px, calc(100vw - 24px));
  color: var(--cream);
  border: 1px solid rgb(252 252 250 / 24%);
  border-radius: 16px;
  background: #070806;
  box-shadow: 0 28px 80px rgb(0 0 0 / 46%);
}

.export-success-dialog .account-dialog-panel { padding: 26px 12px 22px; text-align: center; }

.account-dialog.export-success-dialog .export-success-heading {
  display: grid;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  grid-template-columns: max-content max-content;
  grid-template-areas: "lead lead" "tail action";
  column-gap: 12px;
  align-items: center;
  color: var(--cream);
  font-size: clamp(24px, 4.4vw, 30px);
  line-height: 1.28;
  letter-spacing: -.02em;
  text-align: left;
  word-break: normal;
}

.export-success-heading-lead { grid-area: lead; }
.export-success-heading-tail { grid-area: tail; }

.export-success-purchase-link {
  display: inline-flex;
  grid-area: action;
  justify-self: center;
  color: var(--acid);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.export-support-area { position: relative; margin-bottom: 20px; }

.export-support-options {
  display: grid;
  width: 100%;
  margin: 12px auto 0;
  padding: 38px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.export-support-options li {
  position: relative;
  min-width: 0;
  border-radius: 12px;
}

.export-support-options button {
  display: grid;
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: inherit;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.export-support-options button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.export-support-options button:disabled { cursor: wait; opacity: .62; }
.export-support-options button:active:not(:disabled) { opacity: .78; }

.export-support-bubble {
  position: absolute;
  top: -34px;
  left: 50%;
  margin: 0;
  padding: 5px 11px;
  color: #070806;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 8px 24px rgb(0 0 0 / 32%);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 5px) scale(.96);
  transition: opacity 160ms ease, transform 200ms cubic-bezier(.22, .8, .28, 1);
}

.export-support-bubble::after {
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--cream);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.export-support-options li:hover .export-support-bubble,
.export-support-options button:focus-visible .export-support-bubble {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.export-support-options img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  transform-origin: 50% 100%;
}

.export-support-options strong {
  color: var(--acid);
  font-size: 16px;
  line-height: 1.35;
  transition: color 160ms ease;
}

.export-support-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: rgb(252 252 250 / 68%);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
  text-align: center;
}

.export-support-thanks {
  display: grid;
  min-height: 286px;
  padding: 18px;
  place-content: center;
  justify-items: center;
  gap: 18px;
}

.export-support-thanks[hidden] { display: none; }

.export-support-thanks h2 {
  margin: 0;
  color: var(--cream);
  font-size: var(--type-t1-size);
  font-weight: var(--type-t1-weight);
  line-height: var(--type-t1-line-height);
  letter-spacing: var(--type-t1-letter-spacing);
}

.export-support-thanks p {
  max-width: 30ch;
  margin: 0;
  color: rgb(252 252 250 / 68%);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.account-dialog .export-support-confirm {
  min-width: 132px;
  min-height: 44px;
  padding-inline: 24px;
  color: #070806;
  border: 1px solid var(--acid);
  border-radius: 999px;
  background: var(--acid);
  font-family: inherit;
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.account-dialog .export-support-confirm:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

@keyframes export-support-excited-hop {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  24% { transform: translateY(-13px) rotate(-5deg) scale(1.06); }
  48% { transform: translateY(-4px) rotate(5deg) scale(1.03); }
  68% { transform: translateY(-9px) rotate(-3deg) scale(1.05); }
  84% { transform: translateY(-2px) rotate(2deg) scale(1.01); }
}

.account-dialog .export-success-dismiss {
  width: auto;
  min-width: 132px;
  min-height: 44px;
  margin-inline: auto;
  padding-inline: 24px;
  color: rgb(252 252 250 / 62%);
  border: 1px solid rgb(252 252 250 / 24%);
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.account-dialog .export-success-dismiss:focus-visible {
  outline: 3px solid rgb(203 213 114 / 64%);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .account-dialog .account-dialog-providers button:hover,
  .export-decision-actions button:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: rgb(203 213 114 / 58%);
  }

  .account-dialog :is([data-account-close], .export-dialog-close):hover { color: #7a8549; }

  .export-success-purchase-link:hover { color: var(--cream); }
  .export-support-options button:hover img { animation: export-support-excited-hop 620ms cubic-bezier(.22, .8, .28, 1); }
  .export-support-options button:hover strong { color: var(--cream); }
  .account-dialog .export-success-dismiss:hover { color: #070806; border-color: var(--acid); background: var(--acid); }
  .account-dialog .export-support-confirm:hover { color: var(--cream); border-color: var(--cream); background: transparent; }
}

@media (max-width: 743px) {
  .account-dialog-panel { padding: 18px; }
}

@media (max-width: 420px) {
  .export-success-dialog .account-dialog-panel { padding: 22px 18px 18px; }
  .account-dialog.export-success-dialog .export-success-heading { font-size: 24px; line-height: 1.34; }
  .export-success-purchase-link { font-size: 13px; }
  .export-support-options { gap: 8px; }
  .export-support-options img { width: 74px; height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .export-support-options button:hover img { animation: none; }
  .export-support-options strong,
  .export-support-bubble { transition: none; }
}

/* Checkout address form shared with the personal center. */
.checkout-dialog { --checkout-muted:#aaa9a2; --checkout-surface:#151613; --checkout-error:#ffb5aa; box-sizing:border-box; overflow:auto; font-size: var(--type-t3-size); font-weight: var(--type-t3-weight); line-height: var(--type-t3-line-height); letter-spacing: var(--type-t3-letter-spacing); width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; color: var(--cream); border: var(--container-border); border-radius: var(--container-radius); background: var(--checkout-surface); }
.checkout-dialog h2 { font-size: var(--type-t2-size); font-weight: var(--type-t2-weight); line-height: var(--type-t2-line-height); letter-spacing: var(--type-t2-letter-spacing); }
.checkout-dialog :is(h2, p) { margin: 0; }
.checkout-dialog .checkout-contact-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.checkout-dialog .checkout-field { display: grid; gap: 4px; min-width: 0; }
.checkout-dialog .checkout-field :is(input, textarea) { width: 100%; box-sizing: border-box; }
.checkout-dialog .checkout-field input[readonly] { color: var(--checkout-muted); }
.checkout-dialog .checkout-field [aria-invalid="true"] { border-color: var(--checkout-error); }
.checkout-dialog .checkout-address-fields { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--container-radius); }
.checkout-dialog .checkout-address-fields legend { padding-inline: 6px; }
.checkout-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-dialog button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--container-radius); color: var(--cream); background: transparent; font: inherit; cursor: pointer; transition: background 160ms ease, border-color 160ms ease; }
.checkout-dialog button:hover { border-color: var(--acid); background: rgb(203 213 114 / 10%); }
.checkout-dialog :is(button, input, select, textarea, a):focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.checkout-dialog button:disabled { opacity: .4; cursor: not-allowed; }
.checkout-dialog :is(input, select, textarea) { min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--container-radius); color: var(--cream); background: var(--ink); font: inherit; }
.checkout-dialog .checkout-primary { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.checkout-dialog .checkout-primary:hover { color: var(--ink); background: var(--cream); }
.checkout-dialog::backdrop { background: rgb(0 0 0 / 65%); backdrop-filter: blur(8px); }
.checkout-dialog form { display: grid; gap: 12px; }
#checkoutAddressDialog { padding: 16px; }
#checkoutAddressForm { gap: 8px; }
.checkout-dialog header { margin-bottom: 8px; }
.checkout-dialog header button { width: 44px; padding: 0; flex-shrink: 0; }
.checkout-dialog label { margin-top: 6px; }
#checkoutAddressForm label { margin-top: 0; }
.checkout-dialog button[type=submit] { margin-top: 6px; }
@media(max-width:743px) { .checkout-dialog { padding: 20px; } .checkout-dialog :is(input,select,textarea) { font-size:16px; } }
@media(prefers-reduced-motion:reduce) { .checkout-dialog button { transition: none; } }
.checkout-dialog .checkout-error { color:var(--checkout-error); }
.checkout-dialog [hidden] { display:none; }

/* Shared personal-center and administrator profile content. */
.account-profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto repeat(4,minmax(52px,auto)); column-gap:32px; padding:24px; }
.account-profile-grid-admin { grid-template-rows:auto repeat(5,minmax(52px,auto)); }
.account-profile-grid .account-profile-section { display:grid; grid-template-rows:subgrid; grid-row:span 5; padding:0; border:0; }
.account-profile-grid-admin .account-profile-section { grid-row:span 6; }
.account-profile-grid h2 { padding-bottom:12px; }
.account-profile-section { min-width:0; padding:24px; border:0; }
.account-profile-section > header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.account-profile-section h2 { margin:0; font-size:var(--type-t2-size); font-weight:var(--type-t2-weight); line-height:var(--type-t2-line-height); letter-spacing:var(--type-t2-letter-spacing); }
.account-profile-fields { display:contents; }
.account-profile-fields > div { display:grid; grid-template-columns:120px minmax(0,1fr); gap:12px; align-items:center; min-height:52px; box-sizing:border-box; padding:4px 0; border:0; }
.account-profile-fields dt { color:rgb(252 252 251 / 62%); }
.account-profile-fields dd { margin:0; overflow-wrap:anywhere; }
.account-profile-fields :is(dt,dd), .account-profile-section, .account-profile-header p { font-size:var(--type-t3-size); font-weight:var(--type-t3-weight); line-height:var(--type-t3-line-height); letter-spacing:var(--type-t3-letter-spacing); }
.account-profile-fields .personal-center-field-action { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.account-profile-fields button { min-height:44px; padding:0 8px; color:var(--acid); background:transparent; border:0; text-decoration:underline; text-underline-offset:4px; font:inherit; cursor:pointer; }
.account-profile-header { padding:16px 24px; border-bottom:1px solid rgb(252 252 251 / 12%); }
.account-profile-header :is(h1,p) { margin:0; }
.account-profile-header p { color:rgb(252 252 251 / 62%); margin-bottom:8px; }
.account-profile-header h1 { font-size:var(--type-t1-size); font-weight:var(--type-t1-weight); line-height:var(--type-t1-line-height); letter-spacing:var(--type-t1-letter-spacing); }
.profile-address-list { display:grid; gap:12px; margin-top:16px; }
.profile-address-card { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px; background:var(--ink); border:1px solid var(--line); border-radius:var(--container-radius); overflow-wrap:anywhere; }
.profile-address-card p { margin:4px 0 0; color:rgb(252 252 251 / 62%); white-space:pre-line; }
.profile-address-card > div { min-width:0; }
.profile-address-card a { color:var(--acid); flex-shrink:0; }
.profile-address-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.profile-default-address { display:inline-flex; align-items:center; gap:8px; min-height:44px; white-space:nowrap; cursor:pointer; }
.profile-default-address input { width:18px; height:18px; margin:0; accent-color:var(--acid); }
.profile-outline-button { min-height:44px; padding:8px 12px; color:var(--cream); background:transparent; border:1px solid var(--line); border-radius:var(--container-radius); font:inherit; cursor:pointer; }
.profile-outline-button:hover { border-color:var(--acid); }
.profile-resource-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.profile-resource-grid a { display:grid; gap:10px; padding:20px; border:1px solid var(--line); border-radius:var(--container-radius); background:var(--ink); color:var(--cream); text-decoration:none; }
.profile-resource-grid strong { color:var(--acid); font-size:var(--type-t1-size); font-weight:var(--type-t1-weight); line-height:var(--type-t1-line-height); letter-spacing:var(--type-t1-letter-spacing); }
.profile-address-dialog { width:min(640px,calc(100% - 32px)); max-height:calc(100dvh - 48px); padding:24px; overflow:auto; color:var(--cream); background:#151613; border:1px solid var(--line); border-radius:var(--container-radius); font-size:var(--type-t3-size); font-weight:var(--type-t3-weight); line-height:var(--type-t3-line-height); letter-spacing:var(--type-t3-letter-spacing); }
.profile-address-dialog::backdrop { background:rgb(0 0 0 / 72%); backdrop-filter:blur(8px); }
.profile-address-dialog header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.profile-address-dialog h2 { margin:0; font-size:var(--type-t2-size); font-weight:var(--type-t2-weight); line-height:var(--type-t2-line-height); letter-spacing:var(--type-t2-letter-spacing); }
.profile-address-dialog header button { width:44px; height:44px; color:var(--cream); background:transparent; border:1px solid var(--line); border-radius:var(--container-radius); font:inherit; cursor:pointer; }
.profile-address-dialog footer { display:flex; justify-content:flex-end; margin-top:20px; }
.profile-address-dialog :is(button,a):focus-visible { outline:2px solid var(--acid); outline-offset:3px; }
.profile-address-dialog [role=status]:empty { display:none; }
:is(.account-profile-section,.account-profile-header) :is(button,a):focus-visible { outline:2px solid var(--acid); outline-offset:3px; }
@media(max-width:743px) {
 .account-profile-grid { grid-template-columns:minmax(0,1fr); gap:24px; padding:16px; grid-template-rows:none; }
 .account-profile-grid .account-profile-section { grid-row:auto; grid-template-rows:auto; row-gap:0; }
 .account-profile-section { padding:16px; }
 .account-profile-fields > div { grid-template-columns:100px minmax(0,1fr); }
 .profile-address-card { align-items:flex-start; flex-direction:column; }
}

.sn-copy-value { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: middle; }
.sn-copy-value > span { min-width: 0; overflow-wrap: anywhere; }
.sn-copy-value > .sn-copy-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 6px; font: inherit; color: inherit; background: transparent; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.sn-copy-button svg { display: block; width: .9em; height: .9em; }
.sn-copy-button:hover { background: rgb(127 127 127 / 20%); }
.sn-copy-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.clipboard-copy-field { position: fixed; left: -9999px; top: 0; }
.sn-reconcile-result { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid rgb(252 252 251 / 12%); }
.sn-reconcile-result > [data-admin-reconcile-work] { flex: 1; min-width: 0; }
.sn-reconcile-result > .sn-copy-value { padding-inline: 12px; }

.content-dialog {
  width: min(720px, 90vw);
  max-width: none;
  max-height: min(760px, 86vh);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 0;
  background: var(--cream);
}

.content-dialog::backdrop {
  background: rgb(5 5 5 / 78%);
  backdrop-filter: blur(8px);
}

.content-dialog-panel { padding: 24px; }

.content-dialog header {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.content-dialog h2,
.content-dialog h3,
.content-dialog p { margin-top: 0; }

.content-dialog h2 {
  margin-bottom: 0;
  font-size: var(--type-t1-size);
  font-weight: var(--type-t1-weight);
  line-height: var(--type-t1-line-height);
  letter-spacing: var(--type-t1-letter-spacing);
}

.content-dialog h3 {
  margin-bottom: 8px;
  font-size: var(--type-t2-size);
  font-weight: var(--type-t2-weight);
  line-height: var(--type-t2-line-height);
  letter-spacing: var(--type-t2-letter-spacing);
}

.content-dialog p {
  max-width: none;
  margin-bottom: 0;
  color: #6f7f75;
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.content-dialog .content-dialog-updated {
  margin: 6px 0 0;
  color: rgb(5 5 5 / 48%);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.content-dialog-body section {
  padding-block: 18px;
}

.content-dialog-body section:first-of-type { padding-top: 0; }
.content-dialog-body section:last-of-type { padding-bottom: 0; }
.content-dialog-body a { color: #7a8549; text-underline-offset: 3px; }

.content-dialog-links {
  display: flex;
  gap: 8px 18px;
  margin-top: 8px;
  flex-wrap: wrap;
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.content-dialog [data-content-close] {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  color: inherit;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.content-dialog-body {
  max-height: calc(86vh - 104px);
  padding-right: 8px;
  overflow: auto;
}

.content-dialog-media {
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: var(--container-radius);
}

.content-dialog-media img { display: block; width: 100%; height: auto; }

.content-dialog-share-layout {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.content-dialog[data-content-dialog="share"] {
  width: min(460px, calc(100vw - 32px));
}

.content-dialog-share-layout > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(5 5 5 / 24%);
  border-radius: var(--container-radius);
}

.content-dialog-share-layout section,
.content-dialog-share-layout label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.content-dialog-share-layout label {
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.content-dialog-share-layout input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding-inline: 12px;
  color: var(--ink);
  border: 1px solid rgb(5 5 5 / 42%);
  border-radius: var(--container-radius);
  background: #fff;
  font: inherit;
}

.content-dialog-share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.content-dialog-share-actions button {
  min-height: 44px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--container-radius);
  background: transparent;
  cursor: pointer;
}

.content-dialog-share-actions button:first-child { background: var(--acid); }

.content-dialog-share-actions button:active { filter: brightness(.9); }

.content-dialog-share-actions button:focus-visible,
.content-dialog [data-content-close]:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .content-dialog-share-actions button:hover {
    background: var(--acid);
  }
}

@media (max-width: 743px) {
  .content-dialog-panel { padding: 18px; }
  .content-dialog-share-layout { grid-template-columns: minmax(0, 1fr); }
  .content-dialog-share-layout > img { width: min(220px, 70vw); margin-inline: auto; }
}

.showcase-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease;
}

.showcase-card-media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #757f4a;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.showcase-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.showcase-card:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.showcase-card:active .showcase-card-media {
  border-color: var(--acid);
}

@media (hover: hover) and (pointer: fine) {
  .showcase-card:hover {
    transform: translate(-6px, -6px);
  }

  .showcase-card:hover .showcase-card-media {
    border-color: var(--acid);
    box-shadow: 0 12px 28px rgb(0 0 0 / 32%);
  }

  .showcase-card:hover .showcase-card-image {
    filter: brightness(.86);
    transform: scale(1.03);
  }
}

.showcase-card-cover-title {
  position: relative;
  flex-shrink: 0;
  color: var(--cream);
  font-size: var(--type-t2-size);
  font-weight: var(--type-t2-weight);
  line-height: var(--type-t2-line-height);
  letter-spacing: var(--type-t2-letter-spacing);
}

.showcase-card-cover-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-height: 0;
  gap: 6px;
}

.showcase-card-cover-slogan,
.showcase-card-cover-tag {
  flex-shrink: 0;
  color: var(--cream);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}

.showcase-card-cover-slogan {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.showcase-card-cover-tag {
  flex-shrink: 0;
  color: rgb(252 252 251 / 50%);
}

.showcase-card-info {
  padding-top: 10px;
}

.showcase-card-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.showcase-card-heading h2 {
  min-width: 0;
  margin: 0;
  color: var(--cream);
  font-size: var(--type-t2-size);
  font-weight: var(--type-t2-weight);
  line-height: var(--type-t2-line-height);
  letter-spacing: var(--type-t2-letter-spacing);
}

.showcase-card-likes,
.showcase-card-info time {
  color: rgb(252 252 251 / 68%);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
  white-space: nowrap;
}

.showcase-card-likes {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.showcase-card-like-icon {
  font-size: 16px;
  line-height: 1;
}

.showcase-card-info time {
  display: block;
  margin-top: 4px;
}

.showcase-cards--media-only .showcase-card-info {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-card,
  .showcase-card-media,
  .showcase-card-image {
    transition: none;
  }
}

body a:is(:hover, :focus-visible) {
  color: var(--acid);
}

html:has(dialog[open]),
body:has(dialog[open]) {
  overflow: hidden;
}
