:root {
  --ink: #19312b;
  --muted: #6e7d77;
  --line: #dfe9e5;
  --mint: #0bb56e;
  --mint-dark: #068752;
  --pale: #effaf4;
  --white: #fff;
  --danger: #c84d4d;
  --orange: #b66a15;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f7faf9; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 34px; }
.hero { padding: 4px 8px 26px; }
.eyebrow { color: var(--mint-dark); font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.eyebrow svg { width: 24px; height: 24px; }
.eyebrow span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px #d8f4e6; }
h1 { font-size: 36px; line-height: 1.3; letter-spacing: 0; margin: 17px 0 10px; overflow-wrap: anywhere; }
.hero p { margin: 0; max-width: 530px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.notice { margin-top: 20px; width: fit-content; display: flex; gap: 8px; align-items: center; color: #377462; font-size: 13px; background: #e4f7ed; padding: 10px 12px; border-radius: 6px; }
.notice svg { width: 16px; height: 16px; }
.notice.demo { background: #fff0de; color: #874b16; }
.notice svg { flex: 0 0 auto; }
.panel { background: var(--white); border-top: 1px solid var(--line); padding: 24px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-title > div:first-child { display: flex; gap: 12px; align-items: center; }
.step { color: var(--mint-dark); font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--pale); border-radius: 4px; padding: 5px 6px; }
h2 { font-size: 20px; line-height: 1.2; margin: 0; }
.required { font-size: 12px; color: var(--muted); }
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.input-wrap { display: flex; align-items: center; border: 1px solid #cfdcd7; border-radius: 6px; height: 48px; padding: 0 13px; transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px #d8f4e6; }
.input-wrap svg { color: #7a9088; width: 18px; margin-right: 9px; }
input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.input-wrap input { width: 100%; font-size: 16px; }
.input-wrap input::placeholder { color: #9caea7; }
.checkline { display: flex; gap: 9px; align-items: flex-start; margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.checkline input { accent-color: var(--mint); margin-top: 3px; }
.activity-heading { margin-top: 30px; margin-bottom: 8px; }
.selection-tools { display: flex; gap: 3px; }
.text-button { border: 0; background: transparent; color: var(--mint-dark); padding: 5px 7px; font-size: 13px; }
.text-button:hover { background: var(--pale); border-radius: 4px; }
.helper { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.catalog { display: grid; gap: 9px; }
.group { border-top: 1px solid var(--line); }
.group-head { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: #fbfdfc; }
.group-head label { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.group-head input, .activity input { accent-color: var(--mint); }
.group-title { font-size: 16px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.group-tag { color: var(--muted); font-size: 11px; margin-left: auto; white-space: nowrap; padding-top: 4px; }
.group-details { padding: 0 14px 12px; }
.coupon-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.coupon-list li { padding: 9px 0; min-width: 0; border-bottom: 1px solid #eef2f0; }
.coupon-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 1.6; }
.coupon-line strong { color: #166749; overflow-wrap: anywhere; }
.coupon-line > span { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.coupon-condition { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.offer-rule { display: block; font-size: 12px; line-height: 1.8; color: var(--muted); margin: 10px 0 4px; overflow-wrap: anywhere; }
.offer-validity { display: flex; align-items: flex-start; gap: 5px; color: #926124; font-size: 12px; line-height: 1.7; margin: 0; }
.offer-validity svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 3px; }
.group-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding: 8px 4px; }
.activity { display: flex; gap: 9px; align-items: center; padding: 10px; min-height: 54px; }
.activity:has(input:checked) { background: #e9f9f0; }
.activity input { margin-top: 3px; flex: 0 0 auto; }
.activity label { display: flex; gap: 9px; align-items: center; flex: 1; min-width: 0; cursor: pointer; }
.source-link { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; color: var(--muted); }
.source-link svg { width: 15px; height: 15px; }
.activity-text { display: grid; gap: 4px; min-width: 0; flex: 1; }
.activity-title { font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.activity-source { color: #8b9b95; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.summary { display: flex; gap: 20px; align-items: center; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 15px; }
.summary div { display: grid; gap: 3px; }
.summary span { color: var(--muted); font-size: 11px; }
.summary strong { font-size: 14px; }
.primary { width: 100%; height: 48px; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; border: 0; border-radius: 6px; color: #fff; background: var(--mint); font-weight: 700; }
.primary:hover { background: var(--mint-dark); }
.primary:disabled { cursor: wait; opacity: .6; }
.primary svg { width: 18px; }
.submit-bar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 16px; background: #fff; border-top: 1px solid var(--line); padding: 12px 0 max(12px, env(safe-area-inset-bottom)); margin-top: 14px; }
.submit-bar > span { font-size: 13px; flex: 1; }
.submit-bar .primary { width: auto; min-width: 180px; margin: 0; padding: 0 18px; flex: 0 0 auto; }
.primary:disabled { cursor: not-allowed; }
.inline-button { border: 0; background: transparent; padding: 0; color: var(--mint-dark); font-size: inherit; text-decoration: underline; cursor: pointer; }
.inline-button svg { width: 14px; height: 14px; vertical-align: middle; }
.domain { overflow-wrap: anywhere; }
.form-message { min-height: 18px; margin: 11px 0 0; color: var(--danger); font-size: 12px; }
.results-panel { margin-top: 18px; }
.state-chip { color: var(--mint-dark); background: var(--pale); border-radius: 4px; padding: 5px 8px; font-size: 12px; }
progress { width: 100%; height: 6px; display: block; appearance: none; border: 0; background: #e8efec; border-radius: 6px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e8efec; }
progress::-webkit-progress-value { background: var(--mint); transition: width .25s ease; }
progress::-moz-progress-bar { background: var(--mint); }
.result-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 10px; color: var(--muted); font-size: 12px; }
.result-head > div { display: flex; gap: 8px; align-items: center; }
.ghost-button { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #cad8d2; border-radius: 4px; color: var(--danger); padding: 7px 10px; font-size: 12px; }
.ghost-button svg { width: 13px; }
.results { display: grid; gap: 8px; }
.result { display: flex; gap: 10px; align-items: flex-start; padding: 14px 12px; border: 1px solid #e7eeeb; border-radius: 5px; }
.result-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; background: #edf2f0; color: #789188; }
.result-icon svg { width: 14px; }
.result-copy { display: grid; gap: 3px; min-width: 0; }
.result-copy { flex: 1; }
.result-name { font-size: 14px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.result-status { width: fit-content; font-size: 12px; color: #926124; margin: 2px 0 5px; }
.result.success .result-status { color: var(--mint-dark); }
.result-detail-label { font-size: 11px; color: var(--muted); }
.result-coupons { margin-bottom: 2px; }
.result-copy .offer-rule { margin-top: 4px; }
.result-msg { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.result.success .result-icon { color: var(--mint-dark); background: #dcf7e9; }
.result.already .result-icon, .result.limited .result-icon { color: var(--orange); background: #fff2dc; }
.result.manual .result-icon, .result.unknown .result-icon { color: var(--danger); background: #ffebeb; }
.result-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 11px; }
.result-foot a { display: inline-flex; gap: 5px; align-items: center; color: var(--mint-dark); text-decoration: none; }
.result-foot svg { width: 13px; }
footer { display: flex; justify-content: space-between; gap: 14px; padding: 16px 8px 0; color: #91a09a; font-size: 11px; line-height: 1.5; }
dialog { max-width: min(560px, calc(100% - 32px)); max-height: 85dvh; padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
dialog::backdrop { background: #102b2370; }
dialog p { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.dialog-head button { border: 0; background: #f1f6f3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; }
.dialog-head svg { width: 18px; height: 18px; }
button:focus-visible, a:focus-visible, input[type=checkbox]:focus-visible { outline: 2px solid #087f51; outline-offset: 3px; }
button:disabled, input:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 760px); padding-top: 25px; }
  .panel { padding: 18px; }
  h1 { font-size: 27px; }
  .group-codes { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .coupon-list { grid-template-columns: minmax(0, 1fr); }
  .group-details { padding: 0 4px 12px; }
  .group-head { padding: 12px 4px; }
  .activity { padding: 11px 4px; gap: 6px; border-top: 1px solid #eef2f0; }
  .source-link { width: 28px; }
  .group-codes .activity-title { font-size: 13px; }
  .group-title { font-size: 15px; }
  .submit-bar { gap: 8px; }
  .submit-bar .primary { min-width: 160px; padding: 0 12px; }
  .group-tag { font-size: 10px; }
  footer { flex-direction: column; gap: 3px; }
}
