/* 拾光 GIF styles · v8.0.0 */
.action-editor-section {
  margin-top: 22px;
}
.action-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.action-editor-toolbar h3 {
  font-size: 15px;
  margin: 0;
}
.action-editor-toolbar > button {
  margin-left: auto;
}
.action-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.action-editor-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcf8f2;
}
.admin-section .action-editor-card textarea {
  min-height: 180px;
}
.action-editor-card .action-remove {
  align-self: flex-end;
  margin-top: auto;
  color: #a36451;
}
.code-operation-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.code-operation-buttons button {
  white-space: nowrap;
}
.code-operation-buttons .marked-button {
  background: #dfecda;
  border-color: #86a17b;
  color: #3d6237;
}
.code-row-marked td {
  background: #f1f7ed;
}
.code-row-redeemed td {
  color: #8f8981;
}
.clipboard-buffer {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
}
.gif-guide {
  padding: 30px 0 46px;
  border-top: 1px solid var(--line);
}
.gif-guide h2 {
  font-size: 24px;
}
.gif-guide > p {
  max-width: 800px;
  font-size: 13px;
  color: var(--muted);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.faq-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.faq-card h3 {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 9px;
}
.faq-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 800px) {
  .action-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .action-editor-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .action-editor-toolbar .hint {
    flex-basis: 100%;
  }
  .gif-guide h2 {
    font-size: 20px;
  }
}
.share-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 13px;
  border: 1px solid #e5d9c8;
  border-radius: 30px;
  color: #977453;
  background: #f7f0e5;
  font-size: 12px;
}
.share-open > span:first-child {
  font-size: 20px;
  line-height: 1;
}
.share-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.share-tabs {
  display: flex;
  gap: 9px;
  margin: 20px 0;
  padding: 5px;
  background: #f1e9dc;
  border-radius: 12px;
}
.share-tabs button {
  flex: 1;
  padding: 11px 10px;
  background: transparent;
  border-radius: 8px;
  color: #968371;
  font-size: 13px;
}
.share-tabs button[aria-selected="true"] {
  background: #fffdf8;
  color: #a56241;
  box-shadow: 0 2px 8px #8b6b4010;
}
.share-dialog textarea {
  min-height: 252px;
  font-size: 13px;
  line-height: 1.85;
}
.share-poster {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
}
.share-dialog .share-destination {
  font-size: 11px;
  margin: 20px 0 0;
  overflow-wrap: anywhere;
}
.share-destination a {
  color: #a86f4d;
  text-decoration: underline;
}
#sharePosterPanel > .primary {
  display: flex;
}
@media (max-width: 600px) {
  .header nav {
    gap: 8px;
  }
  .share-open {
    width: 33px;
    height: 33px;
    padding: 0;
  }
  .share-open-label {
    display: none;
  }
  .share-dialog {
    padding: 24px;
  }
  .share-dialog h2 {
    font-size: 20px;
  }
}
:root {
  --bg: #fcf8f2;
  --paper: #fffdfa;
  --ink: #403b36;
  --muted: #938b82;
  --line: #eee5da;
  --accent: #c76d49;
  --accent-light: #fae9dd;
  --mint: #e7eee4;
  --purple: #eee6f5;
  --radius: 24px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b3a0c8;
  outline-offset: 4px;
}
button {
  border: 0;
}
p {
  line-height: 1.8;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1180px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 1px;
}
.brand b {
  font-size: 19px;
  color: var(--accent);
}
.brand small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 4px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #e89b76;
  color: #fffaf3;
  border-radius: 14px;
  font-size: 40px;
  line-height: 1;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}
.pill {
  background: #f6eddf;
  border: 1px solid #eadcc8;
  border-radius: 50px;
  padding: 10px 17px;
  font-size: 13px;
  color: #7c6747;
}
.pill > span {
  color: #c98b42;
  margin-right: 6px;
}
.avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #e8e6dc;
  color: #6f7967;
  font-size: 27px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 432px;
  align-items: center;
  gap: 36px;
  padding: 46px 20px 40px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2.4px;
  color: #a28c7a;
  display: inline-block;
  margin-bottom: 17px;
}
.eyebrow i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #b2bc9b;
  border-radius: 50%;
  margin-right: 7px;
}
.hero h1 {
  font-size: 49px;
  line-height: 1.3;
  letter-spacing: -1.8px;
  margin-bottom: 18px;
  font-weight: 730;
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero p {
  font-size: 14px;
  color: #8c8177;
  margin-bottom: 24px;
}
.hero-notes {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: #91897e;
}
.hero-art {
  position: relative;
  height: 340px;
}
.art-card {
  position: absolute;
  width: 205px;
  height: 259px;
  background: #fff;
  border: 1px solid #efe8df;
  border-radius: 15px;
  padding: 16px;
  box-shadow: 0 16px 30px #a68c7120;
}
.art-back {
  transform: rotate(-12deg);
  left: 18px;
  top: 15px;
  background: #f1f4ed;
}
.art-card > span {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #9b998b;
}
.art-card small {
  display: block;
  text-align: center;
  color: #8b9980;
  font-size: 12px;
  margin-top: 18px;
}
.art-front {
  transform: rotate(10deg);
  right: 18px;
  top: 62px;
  width: 224px;
  height: 266px;
  background: #fff9f1;
}
.face {
  width: 137px;
  height: 142px;
  margin: 23px auto 0;
  border-radius: 46% 47% 43% 44%;
  position: relative;
  background: #dfb7a4;
  box-shadow: inset 0 20px #5f4c3f;
}
.face:before,
.face:after {
  content: "";
  position: absolute;
  width: 23px;
  height: 29px;
  border-radius: 50%;
  background: inherit;
  top: 68px;
  z-index: -1;
}
.face:before {
  left: -12px;
}
.face:after {
  right: -12px;
}
.face i:before,
.face i:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 11px;
  top: 66px;
  background: #534237;
  border-radius: 50%;
}
.face i:before {
  left: 40px;
}
.face i:after {
  right: 40px;
}
.face b {
  position: absolute;
  left: 56px;
  top: 77px;
  font-size: 27px;
  color: #755647;
}
.face.mint {
  background: #efc6a8;
  transform: scale(0.94);
  box-shadow: inset 0 26px #665743;
}
.face.peach {
  background: #f2cbaa;
  box-shadow: inset 0 22px #755c4b;
}
.cheek {
  position: absolute;
  width: 24px;
  height: 11px;
  background: #e6a38d80;
  top: 88px;
  border-radius: 50%;
}
.cheek.left {
  left: 18px;
}
.cheek.right {
  right: 18px;
}
.art-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin-top: 22px;
}
.art-bottom b {
  font-size: 9px;
  border: 1px solid #dac7af;
  border-radius: 5px;
  padding: 4px;
  color: #b08560;
}
.floating-note {
  position: absolute;
  bottom: 0;
  left: 7px;
  transform: rotate(-5deg);
  background: #eee7f2;
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 12px;
  color: #8e769f;
  box-shadow: 0 5px 12px #977ca912;
}
.doodle {
  position: absolute;
  color: #c8b587;
  font-size: 35px;
}
.d1 {
  right: 15px;
  top: 3px;
}
.d2 {
  left: -8px;
  top: 181px;
  color: #ce9b88;
  font-size: 28px;
}
.d3 {
  right: 5px;
  bottom: 0;
}
.studio {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 31px;
  box-shadow: 0 8px 35px #ad937005;
}
.studio-header,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.studio-header .eyebrow {
  margin-bottom: 9px;
}
.studio h2,
.collection h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin-bottom: 0;
}
.local-tag {
  color: #85937d;
  background: #f0f4ed;
  border-radius: 30px;
  padding: 8px 12px;
  font-size: 10px;
  white-space: nowrap;
}
.steps {
  list-style: none;
  margin: 25px 0 30px;
  padding: 16px 0;
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 32px;
  color: #b1aaa2;
  font-size: 12px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.steps b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3efe9;
  font-size: 11px;
}
.steps .active {
  color: var(--accent);
  font-weight: 600;
}
.steps .active b {
  background: var(--accent-light);
  color: var(--accent);
}
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1.17fr;
  gap: 36px;
}
.field-title {
  font-size: 11px;
  color: #ba9e86;
  margin-bottom: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.field-title b {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.field-title span,
.options label > span {
  font-size: 9px;
  margin-left: auto;
  color: #aa9f93;
}
.upload {
  height: 266px;
  border: 1.5px dashed #ddceba;
  background: #fbf8f2;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.upload:hover,
.upload.drag {
  background: #f8eedf;
  border-color: #c88d64;
}
.upload input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.upload-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f1e7d8;
  color: #a89378;
  font-size: 28px;
  margin: 0 auto 18px;
}
.upload strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.upload p {
  font-size: 11px;
  color: #9c9286;
  margin: 7px 0 22px;
}
.upload small {
  font-size: 9px;
  color: #aaa092;
}
.upload img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.replace {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #fffdf3e8;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.privacy-card {
  display: flex;
  gap: 12px;
  padding: 15px;
  background: #f1f2eb;
  border-radius: 13px;
  margin-top: 18px;
}
.privacy-card > span {
  font-size: 21px;
  color: #8d9a80;
}
.privacy-card p {
  font-size: 10px;
  color: #929884;
  margin: 0;
}
.privacy-card b {
  font-size: 11px;
  color: #7f8875;
  font-weight: 500;
}
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 22px;
}
.category {
  background: #fcfaf6;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px 5px 13px;
  color: #8e8377;
  position: relative;
}
.category > span {
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  width: 43px;
  height: 43px;
  border-radius: 15px;
  font-size: 25px;
  background: #ebe7dc;
  color: #968564;
}
.category:nth-child(2) > span {
  background: #f8e5e0;
  color: #c68f89;
}
.category:nth-child(3) > span {
  background: #e9ecdb;
  color: #9b9f6f;
}
.category b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.category.selected {
  border: 1.5px solid #c78d6a;
  background: #fff7ee;
  color: #ad704f;
}
.category.selected:after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 9px;
  font-size: 10px;
}
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 12px;
  color: #81766b;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid #e6ddd1;
  border-radius: 9px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 12px;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.8;
}
select {
  height: 41px;
}
.field-title.small {
  margin-bottom: 10px;
}
.colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 32px;
}
.color-option {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  background: #faf6ef;
  border: 1px solid #ede2d5;
  border-radius: 7px;
  color: #968674;
  font-size: 10px;
}
.color-option.selected {
  border-color: #ba8864;
  background: #f5e7d7;
}
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7ad91;
}
.creation-summary {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.creation-summary p {
  font-size: 12px;
  margin-bottom: 2px;
}
.creation-summary small {
  font-size: 10px;
  color: var(--muted);
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff9f1;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 12px;
  transition: background 0.15s;
}
.primary:hover:not(:disabled) {
  background: #af5c3d;
}
.creation-summary .primary {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 13px;
}
.secondary {
  background: #f7f0e6;
  border: 1px solid #e5d8c6;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 12px;
  color: #8d745f;
}
.text-button {
  background: none;
  color: #9a8570;
  font-size: 11px;
  padding: 8px;
}
.collection {
  margin-top: 53px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 9px 0 0;
}
.collection h2 span {
  font-size: 11px;
  display: inline-block;
  vertical-align: middle;
  background: #ede5d8;
  color: #a08b71;
  border-radius: 5px;
  padding: 3px 7px;
  margin-left: 8px;
}
.save-notice {
  margin-top: 21px;
  background: #f4efdf;
  color: #a2936e;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 10px;
  line-height: 1.8;
}
.save-notice strong {
  font-weight: 600;
}
.empty {
  text-align: center;
  padding: 43px 10px 49px;
}
.empty > span {
  font-size: 34px;
  display: block;
  color: #c6bb9f;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 13px;
  font-weight: 500;
  color: #948b7a;
}
.empty p {
  font-size: 11px;
  color: #b4aa9b;
}
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  border-top: 1px solid var(--line);
  padding: 30px 12px 39px;
}
.how-it-works b {
  font-size: 11px;
  color: #c1a987;
}
.how-it-works h3 {
  font-size: 12px;
  margin: 10px 0 7px;
  font-weight: 500;
}
.how-it-works p {
  font-size: 10px;
  color: #9f9588;
  margin: 0;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  height: 100px;
}
.footer .brand {
  font-size: 16px;
}
.footer .brand-mark {
  height: 28px;
  width: 28px;
  border-radius: 9px;
  font-size: 27px;
}
.footer p,
.footer > a:last-child {
  font-size: 10px;
  color: #a3978a;
  margin: 0;
}
.notice {
  padding: 15px 20px;
  border: 1px solid #edcfb7;
  background: #fff2e1;
  border-radius: 12px;
  color: #936642;
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.8;
}
.draft-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.draft-section h3,
.section-heading h3 {
  font-size: 23px;
  margin-bottom: 15px;
}
.draft-section p {
  font-size: 13px;
  color: var(--muted);
}
.draft-image {
  position: relative;
  background: #f5f1ea;
  border-radius: 16px;
  padding: 15px;
}
.draft-image img {
  width: 100%;
  display: block;
  border-radius: 8px;
}
.download {
  display: inline-block;
  background: #fffaf1;
  border: 1px solid #e5d6bf;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 11px;
  color: #9a7354;
  cursor: pointer;
}
.draft-image .download {
  margin-top: 8px;
}
.draft-candidates {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 12px;
}
.draft-candidates button {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
}
.draft-candidates button.selected {
  border-color: #ba8864;
  background: #f5e7d7;
}
.draft-candidates img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 23px;
}
.action {
  border: 1px solid var(--line);
  background: #fcf9f3;
  padding: 23px 10px;
  border-radius: 13px;
  color: #867663;
  font-size: 12px;
}
.action span {
  font-size: 26px;
  display: block;
  margin-bottom: 13px;
}
.action.selected {
  border-color: var(--accent);
  background: #faeadb;
}
.queue-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.queue-bar p {
  font-size: 12px;
  margin: 0;
}
.queue-bar p span {
  color: var(--muted);
}
.progress {
  display: flex;
  align-items: center;
  gap: 17px;
  border-radius: 12px;
  background: #f3eee4;
  padding: 20px;
  margin-top: 25px;
}
.progress b {
  font-size: 13px;
}
.progress p {
  font-size: 11px;
  margin: 6px 0 0;
  color: var(--muted);
}
.spinner {
  height: 25px;
  width: 25px;
  border: 3px solid #e1ceb7;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 23px;
}
.gallery-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 15px;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f7f3eb;
  border-radius: 11px;
}
.gallery-card h3 {
  font-size: 13px;
  margin: 13px 0 4px;
}
.gallery-card p {
  font-size: 10px;
  color: var(--muted);
}
.gallery-card .button-row {
  margin-top: 10px;
}
.gallery-card .text-button {
  margin-left: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
  color: var(--ink);
  padding: 32px;
  width: min(480px, calc(100vw - 28px));
  box-shadow: 0 20px 80px #40302030;
}
dialog::backdrop {
  background: #45372c66;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
  line-height: 1.6;
  padding-right: 15px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
}
dialog form > .primary {
  width: 100%;
  margin-top: 20px;
}
dialog label {
  margin-top: 13px;
}
.close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  font-size: 25px;
  color: #9a8877;
  padding: 4px 9px;
}
.code-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.code-row label {
  flex: 1;
}
.code-row button {
  height: 40px;
  white-space: nowrap;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #524a42;
  color: white;
  font-size: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 28px #34251e33;
  z-index: 99;
  max-width: 90vw;
  line-height: 1.8;
}
.admin-wrap {
  max-width: 1000px;
}
.admin-section {
  margin: 25px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px;
}
.admin-section h2 {
  font-size: 20px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-grid .wide {
  grid-column: 1/-1;
}
.admin-section label {
  margin-bottom: 12px;
}
.admin-section details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.admin-section summary {
  cursor: pointer;
  font-size: 14px;
}
.admin-section textarea {
  min-height: 130px;
}
.admin-table-wrap {
  overflow: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  max-width: 250px;
  overflow-wrap: anywhere;
}
.admin-table input {
  min-width: 70px;
  width: 85px;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline-check input {
  width: auto;
  margin: 0;
}
.status-dot {
  color: #7c9a6b;
}
.admin-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.admin-tabs a {
  padding: 9px 13px;
  border-radius: 8px;
  background: #efe6d8;
  font-size: 12px;
}
.secret-note {
  font-size: 10px;
  color: #849177;
}
.warning-text {
  color: #a96844;
}
@media (max-width: 800px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding: 35px 0;
    gap: 10px;
    min-height: 385px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero-art {
    transform: scale(0.82);
    transform-origin: center;
    width: 330px;
    margin-left: -30px;
  }
  .hero-notes {
    gap: 10px;
    font-size: 9px;
  }
  .setup-grid {
    gap: 22px;
  }
  .studio {
    padding: 24px;
  }
  .categories {
    gap: 6px;
  }
  .hero p {
    font-size: 12px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .wrap {
    padding-left: 17px;
    padding-right: 17px;
  }
  .header {
    height: 83px;
  }
  .header nav {
    gap: 11px;
  }
  .header nav > a {
    display: none;
  }
  .brand {
    font-size: 20px;
    gap: 9px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 32px;
    border-radius: 11px;
  }
  .pill {
    font-size: 11px;
    padding: 8px 11px;
  }
  .avatar {
    width: 33px;
    height: 33px;
    font-size: 23px;
  }
  .hero {
    display: block;
    padding: 35px 3px 26px;
    position: relative;
    min-height: auto;
  }
  .hero h1 {
    font-size: 37px;
    letter-spacing: -1px;
  }
  .hero-art {
    height: 240px;
    transform: scale(0.7);
    transform-origin: top center;
    margin: 20px auto -49px;
    width: 350px;
    max-width: 100%;
  }
  .hero-notes {
    gap: 15px;
    font-size: 10px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .hero p {
    font-size: 12px;
  }
  .studio {
    padding: 21px 16px;
    border-radius: 19px;
  }
  .studio-header {
    align-items: flex-start;
  }
  .studio-header h2 {
    font-size: 19px;
  }
  .studio-header .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .local-tag {
    font-size: 8px;
    padding: 6px 8px;
    margin-top: 20px;
  }
  .steps {
    gap: 0;
    justify-content: space-between;
    margin: 20px 0 23px;
    font-size: 9px;
    padding: 13px 0;
  }
  .steps li {
    gap: 5px;
  }
  .steps b {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }
  .setup-grid {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .upload {
    height: 240px;
  }
  .privacy-card {
    margin-top: 12px;
  }
  .field-title b {
    font-size: 12px;
  }
  .categories {
    gap: 10px;
  }
  .category {
    padding: 14px 8px;
  }
  .options {
    gap: 12px;
  }
  .creation-summary {
    margin-top: 18px;
  }
  .collection {
    margin-top: 35px;
  }
  .collection h2 {
    font-size: 21px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .save-notice {
    font-size: 10px;
    padding: 12px;
    line-height: 1.8;
  }
  .how-it-works {
    gap: 15px;
    padding: 24px 0;
  }
  .how-it-works h3 {
    font-size: 11px;
  }
  .how-it-works p {
    font-size: 9px;
  }
  .footer {
    height: 85px;
    gap: 10px;
  }
  .footer p {
    display: none;
  }
  .draft-section {
    grid-template-columns: 1fr;
  }
  .draft-section h3 {
    font-size: 22px;
  }
  .draft-image {
    grid-row: 1;
  }
  .actions {
    gap: 9px;
    grid-template-columns: repeat(2, 1fr);
  }
  .queue-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .queue-bar > div {
    display: flex;
    gap: 8px;
  }
  .queue-bar .primary {
    flex: 1;
  }
  .gallery {
    gap: 11px;
  }
  .gallery-card {
    padding: 10px;
  }
  .gallery-card .button-row {
    gap: 4px;
  }
  .gallery-card .download {
    font-size: 10px;
    padding: 7px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-section {
    padding: 16px;
  }
  dialog {
    padding: 26px;
  }
  .code-row {
    gap: 7px;
  }
  .code-row button {
    padding: 10px;
    font-size: 11px;
  }
  .section-heading {
    gap: 8px;
  }
  .section-heading h3 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .hero-art {
    animation: none;
  }
  .spinner {
    border-color: var(--accent);
  }
}

.tone-0 {
  background: #837244;
}
.tone-1 {
  background: #8090a3;
}
.tone-2 {
  background: #994f4c;
}
.tone-3 {
  background: #e4cb83;
}
.tone-4 {
  background: #dfb1b4;
}
.tone-5 {
  background: #c8b5dd;
}
.tone-6 {
  background: #b1c7b7;
}
.tone-7 {
  background: #a7c6da;
}
.tone-8 {
  background: #dbb2bb;
}
.tone-9 {
  background: #b9c9a2;
}

.contact-dialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.contact-qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 14px 0;
}
.contact-save {
  display: block;
  text-align: center;
}

#redeemDialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.redeem-help {
  margin: 18px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f0e5;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.redeem-help:hover,
.redeem-help:focus-visible {
  border-color: var(--accent);
  background: var(--accent-light);
}
.redeem-help h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
#redeemHelpContent {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.redeem-help .copy-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--accent);
}
