:root {
  color-scheme: light;
  --paper: #f5f6ef;
  --ink: #20281c;
  --muted: #586250;
  --line: #dbe1d2;
  --green: #c9f77c;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #4d712c; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.bar-content { display: flex; justify-content: space-between; align-items: center; min-height: 75px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 850; letter-spacing: -.055em; }
.brand-dot { color: #5a792e; }
.nav-link { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; font-size: 13px; }
.nav-link:hover, .paste:hover, .copy:hover { background: #e9eedf; }
.nav-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.customer-account-entry {
  position: absolute;
  inset-inline-end: clamp(16px, 3vw, 54px);
  background: #fbfdf9;
  color: #234b37;
  border-color: #a9c3a4;
  font-weight: 750;
}
@media (min-width: 521px) and (max-width: 1500px) {
  body:has(> section[aria-label="店铺宣传"]) .customer-account-entry {
    inset-inline-end: calc(10% + 144px);
  }
}
@media (max-width: 520px) {
  body:has(> section[aria-label="店铺宣传"]) .topbar { padding-bottom: 43px; }
  body:has(> section[aria-label="店铺宣传"]) .customer-account-entry { top: 63px; }
}
.customer-account-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 22px;
  border: 1px solid #b8cfb6;
  border-radius: 14px;
  background: #fbfdf9;
  color: #234b37;
}
.customer-account-dialog::backdrop { background: rgba(18, 42, 31, .52); }
.customer-account-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.customer-account-heading h2 { margin: 0; font-size: 22px; }
.customer-account-dialog form { display: grid; gap: 8px; }
.customer-account-dialog input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8cfb6;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  font-size: 16px;
}
.customer-account-dialog label { font-size: 14px; font-weight: 700; }
.customer-account-dialog small { color: #506c59; font-size: 12px; margin-bottom: 6px; }
.customer-registration-fields { display: grid; gap: 8px; }
.customer-registration-fields label { margin: 5px 0 0; }
.customer-account-field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.customer-account-field-row button { white-space: nowrap; justify-content: center; }
.customer-human-refresh {
  display: grid;
  place-items: center;
  min-width: 112px;
  padding: 0;
  border: 1px solid #b8cfb6;
  border-radius: 7px;
  background: #eef6f3;
  color: inherit;
  font-size: 12px;
}
.customer-human-refresh img { display: block; max-width: 100%; }
.customer-account-dialog .primary { justify-content: center; margin-top: 8px; }
.customer-account-switch { justify-self: center; padding: 8px; color: #2b6747; border: 0; background: transparent; }
.customer-account-dialog .status { margin: 12px 0 0; color: #923d30; }
.customer-account-dialog .status[data-kind="success"] { color: #2b6747; }
.hero { display: grid; grid-template-columns: 1.11fr 1fr; gap: clamp(35px, 6.5vw, 94px); align-items: start; padding-block: clamp(48px, 7vw, 94px) 54px; }
.eyebrow { margin: 0 0 17px; display: flex; align-items: center; gap: 8px; font: 700 11px/1.4 var(--mono); letter-spacing: .13em; color: #4b5d40; }
.eyebrow span { width: 8px; height: 8px; background: #91c740; box-shadow: 0 0 0 3px #e3edd6; transform: rotate(45deg); margin-left: 2px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(44px, 6.6vw, 91px); line-height: 1.08; font-weight: 850; letter-spacing: -.075em; margin-bottom: 21px; }
.title-dot { color: #62852f; margin-left: 7px; }
.intro-copy { font-size: clamp(15px, 1.65vw, 18px); line-height: 1.75; color: var(--muted); margin-bottom: 30px; }
.art { position: relative; height: clamp(166px, 20vw, 222px); isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 54% 46%, #33462a, #1c2b1a 74%); border-radius: 13px; border: 1px solid #2b3d23; }
.ticket-art { width: 100%; height: 100%; display: block; object-fit: cover; }
.art-id, .art-coord { position: absolute; z-index: 1; color: #c4dbad; font: 9px var(--mono); letter-spacing: .12em; }
.art-id { left: 13px; top: 12px; }
.art-coord { right: 13px; bottom: 12px; }
.panel { background: #fff; padding: clamp(24px, 3.4vw, 39px); border: 1px solid #d9dfd2; border-radius: 15px; box-shadow: 0 16px 42px #253a1610; }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.panel-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 10px; background: #edf5e4; color: #2a461f; font-size: 27px; }
.step-id { font: 11px var(--mono); letter-spacing: .08em; color: var(--muted); }
h2 { margin-bottom: 10px; font-size: clamp(23px, 2.9vw, 32px); letter-spacing: -.045em; line-height: 1.2; }
.panel-copy { color: var(--muted); line-height: 1.55; font-size: 14px; margin-bottom: 23px; }
label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 8px; }
.input-wrap { display: flex; gap: 8px; padding: 6px; border: 1px solid #c7d1bf; border-radius: 9px; background: #f9faf6; }
.input-wrap:focus-within { outline: 2px solid #9bbe65; outline-offset: 1px; }
input { width: 100%; min-width: 0; padding: 9px 6px; border: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 16px; outline: none !important; }
input::placeholder { color: #687461; }
.paste, .copy { flex: none; border: 1px solid #dce3d5; border-radius: 6px; background: #fff; color: #33452b; padding: 7px 9px; font-size: 12px; }
.formats { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: #52604c; margin: 11px 0 23px; }
.formats b { font: 700 11px var(--mono); color: #35442d; background: #eaf0e4; border-radius: 4px; padding: 2px 4px; margin-right: 3px; }
.primary { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 51px; border: 1px solid #b8e66e; border-radius: 8px; background: var(--green); color: #202d14; font-size: 15px; font-weight: 800; padding: 10px 15px; }
.primary:hover:not(:disabled) { background: #bbee64; }
.primary:disabled, .paste:disabled { cursor: wait; opacity: .65; }
.primary span:last-child { font-size: 20px; font-weight: 400; }
.status { font-size: 13px; line-height: 1.5; padding: 9px 11px; margin: 13px 0 0; border-radius: 6px; background: #eef4e8; color: #314e25; }
.status[data-tone="error"] { color: #8b3027; background: #fff0eb; }
.privacy { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; border-top: 1px solid #e7ebe3; padding-top: 15px; margin: 21px 0 0; }
.result-fields { margin: 0; }
.result-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 10px 0; border-top: 1px solid #e7ebe3; }
.result-field dt { grid-column: 1; color: var(--muted); font-size: 12px; }
.result-field dd { grid-column: 1; margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.result-field button { grid-area: 1 / 2 / span 2; align-self: center; }
.copy-status { min-height: 17px; color: var(--muted); font-size: 12px; margin: 6px 0 10px; }
#sms-actions { display: grid; gap: 10px; margin-bottom: 15px; }
#sms-actions .status { margin: 0; }
.help { scroll-margin: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2.15fr; gap: 25px; padding-block: 31px 44px; }
.help .eyebrow { margin-bottom: 10px; }
.help h2 { font-size: 24px; }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; font-size: 14px; font-weight: 750; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font: 20px var(--mono); color: #4c623f; }
.questions details[open] summary::after { content: "−"; }
.questions p { color: var(--muted); font-size: 13px; margin: 1px 0 13px; line-height: 1.65; }
.questions code { overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; padding-block: 18px 22px; font-size: 12px; color: var(--muted); }
.footer a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .nav-actions .nav-link { padding: 7px; font-size: 11px; }
  .shell { width: min(520px, calc(100% - 36px)); }
  .bar-content { min-height: 62px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 36px 35px; }
  .intro-copy { margin-bottom: 0; }
  .art { display: none; }
  .help { grid-template-columns: 1fr; gap: 3px; padding-block: 27px 34px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.redeem-categories {
  width: min(100% - 32px, 1120px);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.redeem-categories a {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid #d5dfcb;
  border-radius: 9px;
  background: #fafbf7;
  color: #20351c;
  text-decoration: none;
}
.redeem-categories a:is(:hover, [aria-current="true"]) {
  border-color: #80aa54;
  background: #eaf4df;
}
.redeem-categories a:focus-visible { outline: 2px solid #386329; outline-offset: 2px; }
.redeem-categories small { color: #4d6343; }
@media (max-width: 560px) {
  .redeem-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body[data-category="virtual-card"] { --category-bg:#eef5ee; --category-ink:#183f32; --category-accent:#c0edaa; }
body[data-category="sms"] { --category-bg:#edf4fc; --category-ink:#173e69; --category-accent:#c1dfff; }
body[data-category="account"] { --category-bg:#f3eef9; --category-ink:#482d6b; --category-accent:#e0cffb; }
body:is([data-category="subscription-key"], [data-category="student-verification"]) { --category-bg:#faf3e7; --category-ink:#654118; --category-accent:#ffdf9d; }
body[data-category="subscription-key"] .hero { grid-template-columns: minmax(0, 600px); }
body[data-category="subscription-key"] .redeem-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.student-redeem-link { margin-top: 12px; }
.student-history-head { display: flex; justify-content: space-between; gap: 10px; }
#student-order-dialog { max-width: min(480px, calc(100vw - 32px)); padding: 22px; border: 1px solid #dce5d9; border-radius: 12px; color: #223c2d; overflow-wrap: anywhere; }
#student-order-dialog::backdrop { background: rgba(18, 36, 30, .45); }
#student-order-dialog h3 { margin: 0 0 12px; }
#student-order-dialog p { margin: 8px 0; }
#student-order-dialog form { margin-top: 14px; }
@media (max-width: 370px) { body[data-category="subscription-key"] .redeem-actions { grid-template-columns: minmax(0, 1fr); } }
body[data-category] { background:var(--category-bg); color:var(--category-ink); }
body[data-category] .art { display:grid; place-content:center; gap:8px; text-align:center; background:var(--category-ink); color:var(--category-accent); }
body[data-category] .primary, .redeem-categories a[aria-current="page"] { background:var(--category-accent); color:var(--category-ink); border-color:var(--category-ink); }
.category-symbol { font-size:clamp(44px,7vw,86px); line-height:1; }
.category-caption { font:700 12px monospace; letter-spacing:.16em; }

.hero { grid-template-columns: minmax(0, 510px); justify-content: center; }

.vcc-preview { display:none; }
body[data-category="virtual-card"] { min-height:100vh; }
body[data-category="virtual-card"] .hero {
  grid-template-columns:minmax(0, 1fr) minmax(0, 510px);
  align-items:center;
  gap:clamp(24px, 5vw, 64px);
}
body[data-category="virtual-card"] .vcc-preview { display:block; min-width:0; }
.vcc-card {
  display:grid; gap:clamp(14px, 3vw, 27px);
  max-width:470px; margin-inline:auto; padding:clamp(19px, 3vw, 34px);
  border:1px solid #527962; border-radius:22px;
  background:radial-gradient(ellipse at top right,#446d54,transparent 70%),linear-gradient(135deg,#153829,#0d241d);
  color:#effbf0; box-shadow:0 18px 38px #133e2926;
}
.vcc-card-head,.vcc-card-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.vcc-card-head strong { font-size:clamp(18px,3vw,30px); }
.vcc-card-head span,.vcc-card-foot { color:#c1dec8; font-size:12px; }
.vcc-card-foot { letter-spacing:.08em; }
.vcc-chip { width:40px; height:29px; border:1px solid #e5d397; border-radius:6px; background:linear-gradient(135deg,#e8d498,#ad955e); }
.vcc-number { font:600 clamp(12px,2vw,24px) monospace; white-space:nowrap; }
@media(max-width:740px) {
  body[data-category="virtual-card"] .hero { grid-template-columns:minmax(0, 510px); }
  .vcc-card { max-width:none; }
}

.vcc-preview h2 { margin:0 0 14px; font-size:20px; }
.vcc-prefix-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.vcc-prefix-card { display:grid; gap:5px; padding:12px; border:1px solid #d6e3d9; border-radius:10px; background:#fff; color:#183f32; }
.vcc-prefix-list strong { font:700 15px monospace; overflow-wrap:anywhere; }
.vcc-prefix-list small,.vcc-network { color:#466253; font-size:11px; }


body[data-category="virtual-card"] {
  background: radial-gradient(ellipse at 24% 24%, #f8f5eb, transparent 60%), #eef2ef;
}
.vcc-prefix-list { gap:clamp(16px, 2.4vw, 30px) clamp(16px, 2vw, 26px); }
.vcc-prefix-card {
  --card-light:#39564d;
  --card-dark:#101d1b;
  --card-rim:#62796c;
  aspect-ratio:1.62;
  align-content:space-between;
  padding:clamp(11px,1.5vw,18px);
  border:1px solid var(--card-rim);
  border-radius:15px;
  color:#fffdf4;
  background:
    repeating-linear-gradient(128deg, transparent 0 7px, #ffffff0b 8px, transparent 9px 15px),
    radial-gradient(ellipse at 105% -15%, var(--card-light), transparent 74%),
    var(--card-dark);
  box-shadow:inset 0 1px 0 #ffffff26, 0 7px 16px #13221e25;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vcc-prefix-card:hover, .vcc-prefix-card:focus-visible, .vcc-prefix-card[aria-expanded="true"] {
  border-color: #b8d79e;
  box-shadow: inset 0 1px 0 #ffffff26, 0 12px 24px #13221e3b;
  transform: translateY(-2px);
}
.vcc-prefix-card::after {
  content: "+";
  float: right;
  color: #d8e9d8;
  font: 700 16px/1 var(--mono);
}
.vcc-prefix-card[aria-expanded="true"]::after { content: "−"; }
.vcc-feedback-buttons[hidden] { display: none; }
}
.vcc-prefix-list li:nth-child(2) .vcc-prefix-card,
.vcc-prefix-list li:nth-child(4) .vcc-prefix-card {
  --card-light:#655844;
  --card-dark:#242018;
  --card-rim:#847659;
}
.vcc-prefix-list li:last-child .vcc-prefix-card {
  --card-light:#3a5476;
  --card-dark:#121e30;
  --card-rim:#61768e;
}
.vcc-prefix-list .vcc-network { color:#f0dfbd; font-weight:700; letter-spacing:.07em; }
.vcc-prefix-list strong { font-size:clamp(12px,1.35vw,17px); letter-spacing:.04em; }
.vcc-prefix-list small { color:#e2e6e0; }
.vcc-prefix-list small::after {
  content:""; float:right; width:22px; height:14px; border:1px solid #f5e1ae7a; border-radius:3px;
  background:linear-gradient(90deg,transparent 45%,#7e674f 46% 51%,transparent 52%),linear-gradient(140deg,#f2deb1,#a98d65);
}

.vcc-prefix-list .vcc-network { display:flex; align-items:center; gap:7px; }
.vcc-network-mark { width:27px; height:18px; flex:none; }
.vcc-prefix-list .vcc-network-visa { font:bold italic 17px/18px Arial,sans-serif; color:#fff; letter-spacing:.02em; }

.vcc-buy-link { display:none; }
body[data-category="virtual-card"] .vcc-buy-link {
  display:flex; justify-content:space-between; align-items:center;
  margin-top:12px; padding:10px 12px; border:1px solid #a7bfaa;
  border-radius:8px; color:#183f32; background:#f4faf3; text-decoration:none; font-weight:650;
}
body[data-category="virtual-card"] .vcc-buy-link:hover { background:#e6f3e4; }
.vcc-buy-link:focus-visible { outline:2px solid #346048; outline-offset:2px; }

/* Quanqi homepage and navigation */
@media (min-width: 761px) {
  .redeem-categories { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.quanqi-welcome-brand { width:min(1232px,calc(100% - 32px)); margin:auto; min-height:76px; display:flex; align-items:center; gap:12px; font-size:24px; }
.quanqi-welcome { width:min(1232px,calc(100% - 32px)); margin:clamp(24px,6vw,72px) auto; padding:clamp(20px,5vw,60px); border:1px solid #d2dfd0; border-radius:24px; background:#fff; color:#183f32; }
.quanqi-welcome h1 { font-size:clamp(32px,5vw,58px); margin:8px 0; }
.quanqi-welcome-eyebrow { color:#426751; font-weight:700; }
.quanqi-welcome-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:12px; margin-top:24px; }
.quanqi-welcome-grid a { display:grid; gap:6px; padding:16px; color:#183f32; background:#f1f7ec; border:1px solid #d2dfd0; border-radius:12px; text-decoration:none; }
.quanqi-welcome-grid a:hover { background:#dff1d6; }

/* Center virtual-card results after redemption. */
body[data-card-result="true"] .vcc-preview { display: none; }
body[data-card-result="true"] .hero {
  grid-template-columns: minmax(0, 510px);
  justify-content: center;
}

/* Homepage services and recommended store. */
.home-service-section { margin-top: 30px; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.home-section-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.home-section-heading > span { color: #667868; font-size: 13px; }
.home-service-section .quanqi-welcome-grid { margin-top: 0; }
.home-store-section { margin-top: 38px; padding-top: 30px; border-top: 1px solid #e1e9dd; }
.home-store-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 26px; border: 1px solid #c6dbc0; border-radius: 18px; background: linear-gradient(115deg, #f1f8eb, #fff); color: #183f32; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.home-store-card:hover { border-color: #7eab71; box-shadow: 0 8px 24px #183f3210; }
.home-store-card:focus-visible { outline: 3px solid #679d54; outline-offset: 4px; }
.home-store-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #dcefcf; color: #346048; }
.home-store-copy { display: grid; gap: 8px; min-width: 0; }
.home-store-tag { width: fit-content; font-size: 11px; font-weight: 650; letter-spacing: .06em; color: #567947; }
.home-store-copy h3 { margin: 0; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.home-store-description { font-size: 14px; color: #58705d; line-height: 1.6; }
.home-store-copy small { color: #768574; font-size: 12px; overflow-wrap: anywhere; }
.home-store-action { display: inline-flex; align-items: center; gap: 24px; white-space: nowrap; padding: 12px 18px; background: #bceba6; border: 1px solid #83aa72; border-radius: 10px; font-size: 14px; font-weight: 650; }
@media (max-width: 600px) {
  .home-store-card { grid-template-columns: 48px minmax(0, 1fr); padding: 20px; gap: 16px; }
  .home-store-icon { width: 48px; height: 48px; border-radius: 14px; }
  .home-store-action { grid-column: 1 / -1; justify-content: space-between; }
  .home-store-copy h3 { font-size: 21px; }
}

.home-store-list { display: grid; gap: 16px; }
.store-promotion-media { display: block; width: 100%; max-height: 320px; aspect-ratio: 16 / 9; object-fit: cover; background: #10251e; }
.home-store-media-item, .store-promotion-has-media { overflow: hidden; border: 1px solid #c6dbc0; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px #183f3210; }
.home-store-media-item > .home-store-card { border: 0; border-radius: 0; }
.store-promotion-has-media > .store-promotion-media { max-height: 280px; }
.store-promotion-has-media > a { margin: 0; }

/* Keep the brand header visible while scrolling. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--category-bg, var(--paper));
}
html { scroll-padding-top: 90px; }

/* Unified redemption and Gemini 3 navigation. */
.redeem-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 761px) {
  .redeem-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .redeem-categories { grid-template-columns: 1fr; }
}
body[data-category="redeem"] {
  --category-bg: #eef5ee;
  --category-ink: #183f32;
  --category-accent: #c0edaa;
}
body[data-category="virtual-card"] .hero { grid-template-columns: minmax(0, 510px); }
body[data-category="virtual-card"] .vcc-preview { display: none; }

body[data-category="redeem"] .hero:has(#redeem-form:not([hidden])) > .vcc-preview {
  display: block;
  min-width: 0;
}
.vcc-feedback-status {
  margin: 0 0 12px;
  color: #466253;
  font-size: 12px;
  line-height: 1.55;
}
.vcc-feedback-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.vcc-feedback-buttons button {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2px 5px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #d2ded3;
  border-radius: 999px;
  background: rgba(250,253,249,.92);
  color: #183f32;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(20,50,38,.06);
}
.vcc-feedback-buttons button:hover, .vcc-feedback-buttons button[aria-pressed="true"] {
  border-color: #7aa16f;
  background: #e4f1df;
}
.vcc-feedback-buttons small { color: #829187; font-size: 10px; white-space: nowrap; }
.vcc-feedback-status { margin-top: 8px; }
.vcc-feedback-summary {
  display: none;
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: 15px;
  border-top: 1px solid rgba(126,156,135,.25);
}
body[data-category="redeem"] .hero:has(#redeem-form:not([hidden])) > .vcc-feedback-summary {
  display: block;
}
.vcc-feedback-summary-head {
  margin: 0 0 10px;
  color: #315542;
  font-size: 16px;
  font-weight: 800;
}
.vcc-comment-panel {
  display: grid;
  align-content: start;
  gap: 9px;
  width: min(100%, 880px);
  min-height: 300px;
  padding: 16px;
  border: 1px solid rgba(126,156,135,.25);
  border-radius: 12px;
  background: rgba(238,248,233,.68);
}
.vcc-comment-panel.is-dragging { border-color: #3c9b66; background: #e3f4e4; box-shadow: 0 0 0 3px rgba(60,155,102,.15); }
.vcc-comment-panel > button {
  width: fit-content;
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid #9fbea5;
  border-radius: 6px;
  background: #f7faf5;
  color: #315f43;
  font-size: 12px;
  cursor: pointer;
}
.vcc-comment-panel > button:hover { border-color: #4b9a6a; background: #eef8ef; }
.vcc-comment-message { margin: 0; color: #446851; font-size: 12px; }
.vcc-feedback-image-gallery {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding-block: 8px;
}
.vcc-feedback-image-box {
  position: relative;
  aspect-ratio: 4 / 3;
}
.vcc-feedback-image-box img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  border: 1px solid #c3d6c7;
  object-fit: cover;
  cursor: zoom-in;
}
.vcc-feedback-image-error {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: #f8e9e9;
  color: #9b5e5e;
  font-size: 8px;
  line-height: 1.25;
  text-align: center;
}
.vcc-feedback-empty { margin: 2px 0 10px; color: #5d7464; font-size: 12px; }
.vcc-feedback-comments {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  max-height: clamp(260px, 48vh, 360px);
  overflow: auto;
  margin-block: 4px 8px;
}
.vcc-feedback-comments:empty { display: none; }
.vcc-feedback-comment-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(255,255,255,.58);
  color: #4d6957;
  font-size: 14px;
  line-height: 1.5;
}
.vcc-feedback-comment-item span { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.vcc-feedback-comment-item small { color: #617367; font-size: 11px; }
.vcc-feedback-comment-meta { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }
.vcc-feedback-comment-delete {
  padding: 2px 6px;
  border: 1px solid #dfc6c1;
  border-radius: 4px;
  background: #fff9f8;
  color: #893d35;
  font-size: 11px;
}
.vcc-feedback-comment-images { flex-basis: 100%; }
.vcc-feedback-comment-images > .vcc-feedback-image-box { width: min(132px, 100%); }
.vcc-feedback-comment-composer {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.vcc-feedback-comment-field {
  min-width: 0;
  flex: 1;
  border: 1px solid #c7d9ca;
  border-radius: 6px;
  background: rgba(255,255,255,.72);
}
.vcc-feedback-comment-field:focus-within { border-color: #3d7654; }
.vcc-feedback-comment-editor { display: flex; align-items: center; }
.vcc-feedback-comment-field textarea {
  min-width: 0;
  min-height: 96px;
  flex: 1;
  resize: vertical;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #31533f;
  font-size: 14px;
  line-height: 1.5;
}
.vcc-feedback-comment-composer button {
  flex: none;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #9fbea5;
  border-radius: 6px;
  background: #edf8ee;
  color: #315f43;
  font-size: 12px;
  cursor: pointer;
}
.vcc-feedback-comment-field .vcc-feedback-image-upload {
  margin-inline: 4px;
  border-style: dashed;
  white-space: nowrap;
}
.vcc-feedback-image-drafts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid #c7d9ca;
}
.vcc-feedback-image-drafts > div { display: grid; gap: 4px; }
.vcc-feedback-image-drafts img {
  display: block;
  width: 76px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
}
.vcc-feedback-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7,20,15,.78);
}
.vcc-feedback-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  object-fit: contain;
}
.vcc-feedback-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px;
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
}
@media (min-width: 901px) {
  body[data-category="redeem"] .hero:has(#redeem-form:not([hidden])):has(> .vcc-preview:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 510px);
    gap: 20px clamp(24px, 5vw, 64px);
    align-items: center;
  }
  body[data-category="redeem"] .hero:has(#redeem-form:not([hidden])) > .vcc-preview {
    grid-area: 1 / 1;
  }
  body[data-category="redeem"] .hero:has(#redeem-form:not([hidden])):has(> .vcc-preview:not([hidden])) > .panel {
    grid-area: 1 / 2;
  }
}

/* Student verification dashboard */
body[data-category="student-verification"] {
  --student-control-bg: #f9faf6;
  --student-control-line: #c7d1bf;
  min-height: 100vh;
}
body[data-category="student-verification"] .shell { width: min(1320px, calc(100% - 48px)); }
body[data-category="student-verification"] .redeem-categories { display: none; }
body[data-category="student-verification"] .bar-content { min-height: 68px; }
body[data-category="student-verification"] .customer-account-entry { position: static; }
body[data-category="student-verification"] .hero { display: block; padding: 24px 0 56px; }
.student-verification .nav-link { background: #fff; color: var(--category-ink); }
.student-verification .nav-link:hover { background: #f6efe0; }
.student-back { min-height: 40px; margin-bottom: 14px; font-weight: 700; }
.student-verification :focus-visible { outline-color: var(--category-ink); }
body[data-category="student-verification"] .nav-link:disabled { opacity: .5; cursor: default; }
body[data-category="student-verification"] .student-verification h2 { margin: 0; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.student-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.student-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.student-services button {
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid var(--student-control-line);
  border-radius: 10px;
  background: #fff;
  color: var(--category-ink);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.student-services button:hover { background: #fff4dd; }
.student-services button[aria-pressed="true"] { background: var(--category-accent); border-color: var(--category-ink); }
.student-stat { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.student-stat > span { font-size: 12px; color: var(--muted); }
.student-stat > strong { font-size: 26px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
.student-workspace { display: grid; grid-template-columns: 315px minmax(0, 1fr); align-items: start; gap: 16px; }
.student-create,
body[data-category="student-verification"] .student-history {
  min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 16px 42px #253a1610;
}
.student-subtitle { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.student-service { display: flex; align-items: center; gap: 9px; padding: 12px; margin: 16px 0; border: 1px solid #cfab70; border-radius: 10px; color: var(--category-ink); background: #fff3d9; font-size: 14px; font-weight: 700; }
.student-service-icon { color: #986f36; font-size: 20px; line-height: 1; }
.student-service-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #cfab70; }
.student-guide { padding: 12px; border-radius: 10px; background: #f8f2e7; margin-bottom: 14px; }
.student-guide p { margin: 0 0 10px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.student-guide .nav-link { padding: 6px 9px; font-size: 12px; }
.student-quota-note { margin: 12px 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
body[data-category="student-verification"] .student-verification label { display: block; font-size: 13px; font-weight: 650; margin: 14px 0 8px; }
body[data-category="student-verification"] .student-verification textarea,
.student-filters input,
.student-filters select {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--student-control-line); border-radius: 9px;
  background: var(--student-control-bg); color: var(--category-ink); font: inherit; font-size: 13px; line-height: 1.6;
}
body[data-category="student-verification"] .student-verification textarea { min-height: 118px; resize: vertical; overflow-wrap: anywhere; }
body[data-category="student-verification"] .student-verification textarea::placeholder,
.student-filters input::placeholder { color: #687461; opacity: 1; }
body[data-category="student-verification"] .student-verification .student-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; font-weight: 400; line-height: 1.7; color: var(--muted); margin: 12px 0 16px; }
.student-consent input { flex: none; width: 15px; height: 15px; padding: 0; accent-color: var(--category-ink); margin: 3px 0 0; }
.student-filters input:focus-visible, .student-consent input:focus-visible { outline: 2px solid var(--category-ink) !important; }
body[data-category="student-verification"] .primary { min-height: 42px; justify-content: center; font-size: 13px; padding: 10px 12px; }
body[data-category="student-verification"] .primary:hover:not(:disabled) { background: #ffd58a; }
body[data-category="student-verification"] .primary:disabled { cursor: default; opacity: .45; }
body[data-category="student-verification"] .status { font-size: 12px; line-height: 1.8; }
body[data-category="student-verification"] .student-history-head { margin-bottom: 15px; align-items: center; }
body[data-category="student-verification"] .student-history-head .nav-link { padding: 6px 10px; font-size: 12px; }
.student-filters { display: grid; grid-template-columns: minmax(0, 1fr) 144px; gap: 10px; margin-bottom: 12px; }
.student-filters input,
.student-filters select { min-height: 40px; }
.student-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
.student-orders { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 12px; text-align: left; background: #fff; }
.student-orders thead { background: #f8f2e7; color: var(--category-ink); font-size: 11px; }
.student-orders th { padding: 11px 12px; font-weight: 600; white-space: nowrap; }
.student-orders td { padding: 15px 12px; vertical-align: top; border-top: 1px solid var(--line); line-height: 1.65; }
.student-orders tbody tr:hover { background: #fdf9ef; }
.student-order-identity { max-width: 235px; }
.student-order-number { display: block; overflow-wrap: anywhere; color: var(--category-ink); font-family: var(--mono); font-size: 11px; }
.student-order-identity time { display: block; margin-top: 5px; white-space: nowrap; color: var(--muted); font-size: 11px; }
.student-order-type { min-width: 110px; }
.student-order-reference { max-width: 150px; overflow-wrap: anywhere; color: var(--muted); font-family: var(--mono); }
.student-order-state { min-width: 110px; max-width: 210px; }
.student-badge { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #f1efe8; color: #5e5b50; font-size: 11px; white-space: nowrap; }
.student-badge[data-state="processing"],
.student-badge[data-state="sending"],
.student-badge[data-state="queued"] { background: #edf3ee; color: #3f614e; }
.student-badge[data-state="succeeded"] { background: #e6f2df; color: #31633f; }
.student-badge[data-state="failed"],
.student-badge[data-state="rejected"] { background: #ffede7; color: #8f382d; }
.student-badge[data-state="retry"],
.student-badge[data-state="checking"] { background: #fff0cf; color: #75521e; }
.student-order-note { margin: 6px 0 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.student-order-actions { width: 110px; }
body[data-category="student-verification"] .student-order-actions .nav-link { padding: 5px 8px; margin-bottom: 5px; white-space: nowrap; font-size: 11px; }
body[data-category="student-verification"] .student-order-actions .student-claim { color: #31633f; }
.student-orders .student-empty { height: 82px; vertical-align: middle; padding: 24px; color: var(--muted); font-size: 13px; }
.student-history-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
@media (max-width: 900px) {
  .student-workspace { grid-template-columns: minmax(250px, 290px) minmax(0, 1fr); gap: 12px; }
  .student-create, body[data-category="student-verification"] .student-history { padding: 16px; }
}
@media (max-width: 720px) {
  body[data-category="student-verification"] .shell { width: calc(100% - 28px); }
  body[data-category="student-verification"] .hero { padding-top: 16px; }
  .student-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .student-stat { padding: 14px; }
  .student-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .student-filters { grid-template-columns: minmax(0, 1fr); }
}

