@charset "UTF-8";
:root {
  --page: #f3f6f3;
  --surface: #fff;
  --ink: #233b32;
  --text: #34473f;
  --muted: #5d6d63;
  --green: #214e40;
  --green-hover: #173e31;
  --green-soft: #e9f1eb;
  --line: #dfe6df;
  --error: #a43d3d;
  --amber: #8c631e;
  --radius: 14px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--green); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button { transition: background-color 160ms, border-color 160ms, color 160ms; }
input, textarea, select { width: 100%; border: 1px solid #d6dfd8; border-radius: 8px; padding: 13px 14px; color: var(--ink); background: white; outline: none; min-height: 46px; caret-color: var(--green); transition: border-color 150ms; }
input:hover, textarea:hover, select:hover { border-color: #a4b6a9; }
input:focus, textarea:focus, select:focus { border-color: var(--green); outline: 3px solid #d8e8dc; outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #657168; font-size: 13px; }
textarea { resize: vertical; line-height: 1.7; }
select { padding-right: 30px; }
label, legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 9px; font-size: 13px; }
fieldset { border: 0; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h2 { font-size: 23px; line-height: 1.4; font-weight: 650; letter-spacing: -.5px; }
::selection { color: #123a2b; background: #cbe3d0; }
:focus-visible { outline: 3px solid #6c9a7c; outline-offset: 4px; }
* { scrollbar-width: thin; scrollbar-color: #a9bbb0 #edf2ee; }
.icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -.3px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-caption { display: block; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 1.2px; margin-top: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-radius: 8px; padding: 11px 18px; border: 1px solid transparent; font-weight: 600; font-size: 13px; white-space: nowrap; line-height: 1.5; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover:not(:disabled) { background: var(--green-hover); }
.button.secondary { background: white; border-color: var(--line); color: var(--text); }
.button.secondary:hover:not(:disabled) { border-color: #a8bcad; background: #f5f8f5; }
.button.subtle { background: transparent; color: var(--muted); font-weight: 400; }
.button.subtle:hover { background: var(--page); color: var(--green); }
.button.full { width: 100%; }
.button.danger { background: #fff5f3; color: var(--error); border-color: #f1d9d3; }
.button.danger:hover:not(:disabled) { background: #fbe7e4; }
.button.compact { padding: 7px 12px; min-height: 36px; font-size: 12px; }
.button .icon { width: 17px; height: 17px; }
.text-button { padding: 5px 0; color: var(--green); border: none; background: none; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.icon-button { border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 7px; padding: 7px; color: var(--muted); flex-shrink: 0; }
.icon-button:hover { background: var(--green-soft); color: var(--green); }
.mono { font-family: Consolas, "SFMono-Regular", monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.danger-text { color: var(--error) !important; }
.align-right { text-align: right; }
.field { margin-bottom: 20px; }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 8px; }
.optional { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 6px; }
.input-icon { position: relative; }
.input-icon > [data-icon] { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7a8d7f; }
.input-icon input { padding-left: 43px; }
.input-icon .icon { width: 18px; height: 18px; }
.password-input { display: flex; position: relative; }
.password-input input { padding-right: 48px; }
.password-input button { position: absolute; right: 5px; top: 4px; }
.form-error, .list-error { color: var(--error); background: #fdf0ed; border: 1px solid #f2d9d3; padding: 10px 12px; line-height: 1.7; border-radius: 7px; font-size: 12px; margin: 12px 0; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--green); color: white; border-radius: 9px; padding: 13px 23px; box-shadow: 0 8px 28px #00000026; max-width: calc(100vw - 36px); width: max-content; text-align: center; line-height: 1.7; }
.toast.is-error { background: #8b3737; }

/* Customer workspace */
.customer-body { background: var(--page); }
.site-header { height: 97px; max-width: 1240px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; gap: 24px; border-bottom: 1px solid var(--line); }
.top-nav { display: flex; align-items: center; gap: 28px; margin-left: 15px; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 2px; border: 0; background: transparent; color: var(--muted); font-size: 13px; position: relative; }
.nav-link.active { color: var(--green); font-weight: 650; }
.nav-link.active::after { content: ''; position: absolute; bottom: -27px; left: 0; right: 0; height: 2px; background: var(--green); }
.nav-link .icon { width: 15px; height: 15px; }
.header-note { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 11px; }
.header-note .icon { width: 15px; height: 15px; }
.customer-main { max-width: 1144px; padding: 65px 48px 0; margin: 0 auto; }
.redeem-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 78px; align-items: start; }
.intro { padding-top: 9px; }
.intro h1 { font-size: clamp(30px, 3.1vw, 43px); line-height: 1.55; font-weight: 600; letter-spacing: -1.6px; }
.intro-copy { font-size: 13px; color: var(--muted); line-height: 1.95; margin-top: 17px; }
.membership-pass { background: #214e40; color: #f2f7ed; border-radius: 13px; padding: 21px 25px 0; margin-top: 32px; position: relative; overflow: hidden; max-width: 380px; }
.pass-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pass-label { font-size: 12px; color: #deeadc; letter-spacing: .5px; }
.pass-mark { font-size: 17px; line-height: 1; font-weight: 600; border: 1px solid #6b8e7b; border-radius: 5px; padding: 5px 8px; }
.pass-term { display: flex; align-items: center; gap: 13px; margin: 20px 0 25px; min-height: 53px; }
.pass-term strong { font-size: 45px; font-weight: 450; line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.pass-term > span { font-size: 11px; line-height: 1.8; color: #c2d6c6; border-left: 1px solid #678673; padding-left: 14px; }
.pass-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 10px; padding: 13px 0 14px; border-top: 1px solid #547361; color: #d4e2d3; }
.pass-bottom .icon { width: 17px; height: 17px; }
.service-points { display: flex; gap: 35px; margin: 25px 0 30px; }
.service-points > div { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--ink); }
.service-points > div > [data-icon] { color: var(--green); padding-top: 1px; }
.service-points .icon { width: 18px; height: 18px; }
.service-points small { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }
.privacy-note { border-top: 1px solid #d6e0d6; padding-top: 19px; display: flex; gap: 10px; max-width: 380px; }
.privacy-note > [data-icon] { color: #557563; }
.privacy-note .icon { width: 17px; height: 17px; }
.privacy-note strong { display: block; font-size: 11px; font-weight: 600; margin: 1px 0 6px; }
.privacy-note p { font-size: 10px; color: var(--muted); line-height: 1.95; }
.redemption-panel { background: white; border: 1px solid #e1e8e1; border-radius: 17px; padding: 29px 32px 25px; box-shadow: 0 10px 30px #29473506; min-width: 0; }
.stepper { display: flex; padding: 0 0 25px; margin: 0; list-style: none; border-bottom: 1px solid #edf0eb; gap: 0; justify-content: space-between; }
.stepper li { display: flex; gap: 6px; align-items: center; font-size: 10px; color: #657168; white-space: nowrap; position: relative; }
.stepper li > span { border: 1px solid #dce3dc; border-radius: 50%; width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.stepper li.current { color: var(--green); font-weight: 600; }
.stepper li.current > span { background: var(--green); border-color: var(--green); color: white; }
.stepper li.done { color: var(--green); }
.stepper li.done > span { border-color: #cbdccc; background: var(--green-soft); }
.stepper .icon { width: 13px; height: 13px; }
.panel-heading { margin: 29px 0 27px; }
.panel-heading h2 { font-size: 23px; }
.panel-heading p { color: var(--muted); font-size: 11px; line-height: 1.85; margin-top: 8px; }
.code-input { font-size: 12px; height: 49px; letter-spacing: .2px; }
#verify-form .field-hint { margin-bottom: 25px; }
#verify-form > .button { min-height: 48px; }
.panel-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; margin: 29px 0 20px; }
.panel-divider::before, .panel-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.check-list { padding: 0; list-style: none; display: grid; gap: 16px; margin: 0 0 32px; font-size: 11px; }
.check-list li { display: flex; align-items: center; gap: 9px; }
.check-list .icon { width: 15px; height: 15px; color: #588567; }
.panel-footnote { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--muted); font-size: 10px; border-top: 1px solid #edf0eb; padding-top: 20px; }
.panel-footnote .icon { width: 13px; height: 13px; }
.matched-plan { padding: 11px 12px; margin: -5px 0 23px; border: 1px solid #dce7dc; background: #f0f6ef; border-radius: 7px; display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--green); }
.matched-plan .icon { width: 16px; height: 16px; }
.matched-plan .text-button { margin-left: auto; font-size: 10px; white-space: nowrap; }
.checkbox-label { display: flex; align-items: flex-start; gap: 9px; font-size: 10px; line-height: 1.85; color: var(--muted); font-weight: 400; margin: 20px 0; }
.checkbox-label input { width: 15px; height: 15px; min-height: 15px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green); }
.success-heading { text-align: center; padding: 30px 0 24px; }
.success-heading h2 { font-size: 21px; margin: 14px 0 7px; }
.success-heading p { font-size: 11px; color: var(--muted); line-height: 1.8; }
.success-icon { display: inline-flex; align-items: center; justify-content: center; background: #e6f0e5; color: var(--green); width: 50px; height: 50px; border-radius: 50%; }
.success-icon .icon { width: 26px; height: 26px; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.receipt-details { margin: 18px 0; font-size: 11px; }
.receipt-details > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; line-height: 1.7; }
.receipt-details dt { color: var(--muted); white-space: nowrap; }
.receipt-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.order-track { padding: 18px 0 23px; display: flex; justify-content: space-between; margin: 0; list-style: none; }
.order-track li { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 10px; color: #778279; position: relative; flex: 1; }
.order-track li:not(:last-child)::after { content: ''; position: absolute; top: 10px; height: 1px; width: calc(100% - 34px); left: calc(50% + 17px); background: #dce4dd; }
.order-track li.done { color: var(--green); }
.order-track li.done > .icon { color: var(--green); background: #edf4ea; border-radius: 50%; }
.order-note { padding: 13px 12px; background: var(--green-soft); border-radius: 7px; display: flex; gap: 9px; margin-bottom: 20px; font-size: 11px; }
.order-note p { white-space: pre-wrap; line-height: 1.8; margin-top: 6px; overflow-wrap: anywhere; }
.order-note .icon { width: 17px; height: 17px; }
#result-stage > .button { margin-top: 10px; }
.lookup-layout { min-height: 540px; }
.section-intro { text-align: center; margin: 5px 0 35px; }
.section-intro h1 { font-size: 32px; font-weight: 600; letter-spacing: -1px; }
.section-intro > p { color: var(--muted); margin-top: 14px; font-size: 13px; }
.lookup-panel { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 30px; max-width: 630px; margin: 0 auto; }
.lookup-input-row { display: flex; gap: 12px; }
.lookup-input-row input { min-width: 0; }
.lookup-placeholder { padding: 40px 10px 25px; text-align: center; color: var(--muted); }
.lookup-placeholder > [data-icon] { color: #879e8d; margin-bottom: 15px; }
.lookup-placeholder .icon { width: 32px; height: 32px; }
.lookup-placeholder p { font-size: 13px; margin-bottom: 10px; }
.lookup-placeholder small { font-size: 11px; }
.lookup-receipt { padding-top: 25px; }
.faq-section { margin: 64px 0 51px; padding-top: 37px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.9fr; gap: 50px; }
.faq-title h2 { font-size: 20px; font-weight: 600; }
.faq-title p { font-size: 11px; color: var(--muted); margin-top: 10px; }
.faq-list details { border-bottom: 1px solid #dfe6df; }
.faq-list details:first-child summary { padding-top: 0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; list-style: none; color: var(--text); font-size: 11px; line-height: 1.7; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 15px; height: 15px; color: var(--muted); transition: transform 180ms; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); font-size: 11px; line-height: 1.95; padding: 0 24px 18px 0; }
.site-footer { max-width: 1144px; margin: auto; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 48px 30px; color: var(--muted); font-size: 9px; line-height: 1.9; }
.site-footer > span:last-child { display: flex; align-items: center; gap: 20px; }
.site-footer a { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; color: #50675b; }
.site-footer .icon { width: 11px; height: 11px; }
.footer-dot { margin: 0 8px; }

/* Administrator workspace */
.admin-body { background: #f4f7f4; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: .85fr 1fr; }
.login-story { background: var(--green); color: white; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 55px; min-height: 700px; }
.brand-light { color: #f2f7ef; }
.brand-light .brand-caption { color: #bed1c2; }
.login-story .brand img { border: 1px solid #64836c; border-radius: 12px; }
.login-story h1 { color: #f0f6eb; font-size: clamp(32px, 3.7vw, 52px); line-height: 1.6; font-weight: 500; letter-spacing: -1.8px; }
.login-story p { font-size: 14px; line-height: 2; color: #c2d4c6; margin-top: 28px; }
.login-line { width: 45px; height: 2px; background: #a4c3a3; margin: 35px 0 20px; }
.login-story-note { font-size: 11px; color: #bdd1c1; }
.login-story-footer { font-size: 10px; color: #bad0bf; }
.login-workspace { display: flex; justify-content: center; align-items: center; padding: 40px; }
.login-box { width: 100%; max-width: 350px; }
.login-symbol { display: inline-flex; color: var(--green); background: #e4ede4; padding: 11px; border-radius: 12px; margin-bottom: 23px; }
.login-symbol .icon { width: 23px; height: 23px; }
.login-box h2 { font-size: 29px; }
.login-box > p { margin: 10px 0 35px; color: var(--muted); font-size: 12px; }
.login-box form > .button { margin-top: 10px; min-height: 46px; }
.back-link { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 30px; color: var(--muted); font-size: 11px; }
.back-link .icon { width: 13px; height: 13px; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 228px; background: var(--green); display: flex; flex-direction: column; padding: 30px 17px 20px; color: #ecf3e9; z-index: 10; }
.sidebar .brand { padding: 0 7px; font-size: 15px; gap: 9px; }
.sidebar .brand-caption { font-size: 9px; letter-spacing: 1px; }
.sidebar-label { font-size: 10px; color: #bbd1bf; margin: 45px 16px 14px; }
.side-nav { display: grid; gap: 7px; }
.side-nav button { display: flex; align-items: center; gap: 11px; min-height: 45px; width: 100%; color: #d4e4d5; border: 0; border-radius: 7px; background: transparent; padding: 12px 15px; text-align: left; font-size: 12px; }
.side-nav button .icon { width: 18px; height: 18px; }
.side-nav button.active { color: #173d2d; background: #e2ecdc; font-weight: 650; }
.side-nav button:not(.active):hover { background: #355f4f; }
.nav-count { margin-left: auto; background: #cbdcc7; border-radius: 4px; font-size: 10px; line-height: 18px; padding: 0 6px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-tip { margin: 25px 8px; border: 1px solid #51765e; border-radius: 9px; padding: 15px 13px; color: #d7e7d8; font-size: 10px; }
.sidebar-tip > [data-icon] { display: inline; margin-right: 6px; }
.sidebar-tip .icon { width: 15px; height: 15px; }
.sidebar-tip p { line-height: 1.9; color: #bdd1c2; margin-top: 9px; }
.sidebar-bottom > a, .sidebar-bottom > button { display: flex; align-items: center; gap: 9px; color: #c8dbcc; font-size: 11px; padding: 12px 15px; width: 100%; border: 0; background: transparent; text-align: left; }
.sidebar-bottom > a { justify-content: space-between; }
.sidebar-bottom .icon { width: 15px; height: 15px; }
.sidebar-bottom > button:hover { color: white; background: #355f4f; border-radius: 7px; }
.admin-content { grid-column: 2; min-width: 0; }
.admin-topbar { height: 75px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; background: white; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.admin-topbar strong { font-weight: 500; color: var(--ink); }
.breadcrumb-slash { margin: 0 15px; color: #a9b4ab; }
.admin-identity { display: flex; align-items: center; gap: 10px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; background: #e9f0e7; color: var(--green); width: 30px; height: 30px; border-radius: 50%; font-weight: 600; }
.admin-main { padding: 33px 36px 25px; max-width: 1600px; margin: auto; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 29px; }
.workspace-heading h1 { font-size: 26px; font-weight: 650; letter-spacing: -.6px; }
.workspace-heading p { color: var(--muted); margin-top: 9px; font-size: 11px; }
.heading-actions { display: flex; gap: 10px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: white; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 26px; padding: 22px 0; }
.stats-strip > div { position: relative; padding: 0 23px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip > div > span:first-child { color: var(--muted); font-size: 11px; }
.stats-strip strong { font-size: 29px; line-height: 1; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-icon { position: absolute; top: 0; right: 22px; color: #718f78; }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-icon.amber { color: var(--amber); }
.data-panel { background: white; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.data-panel-head { padding: 18px 22px 8px; display: flex; justify-content: space-between; align-items: center; }
.panel-title { display: flex; gap: 10px; align-items: center; }
.panel-title h2 { font-size: 15px; font-weight: 600; }
.count-pill { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; font-variant-numeric: tabular-nums; }
.filters { display: flex; align-items: center; gap: 10px; padding: 10px 22px 21px; }
.filter-search { flex: 1; min-width: 120px; max-width: 380px; }
.filters input, .filters select { min-height: 38px; height: 38px; padding-top: 8px; padding-bottom: 8px; font-size: 11px; border-color: #dfe5df; }
.filters input::placeholder { font-size: 11px; }
.filters select { width: 130px; }
.filters .button { min-height: 38px; padding: 8px 16px; font-size: 11px; }
.list-error { margin: 0 22px 20px; }
.table-scroll { width: 100%; overflow-x: auto; min-height: 270px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 11px; }
th { padding: 13px 17px; background: #f7f9f6; color: #6b796f; font-weight: 400; border-top: 1px solid #e9eee7; border-bottom: 1px solid #e9eee7; white-space: nowrap; }
td { padding: 18px 17px; border-bottom: 1px solid #edf0eb; vertical-align: middle; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcf8; }
td strong { font-size: 11px; font-weight: 550; }
td small { display: block; font-size: 9px; color: var(--muted); margin-top: 7px; }
.plan-tag { display: inline-flex; border: 1px solid #e0e7df; background: #f9fbf6; color: var(--ink); border-radius: 5px; padding: 4px 8px; font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 5px 8px; font-size: 10px; white-space: nowrap; font-weight: 400; background: #f0f3ef; color: #607264; }
.status-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.badge.pending { color: #896319; background: #faf3e0; }
.badge.processing { color: #3c6b93; background: #eaf2fb; }
.badge.completed, .badge.unused { color: #35694b; background: #eaf3e8; }
.badge.failed { color: #a4473e; background: #fff0eb; }
.badge.disabled { color: #89594e; background: #f9eeea; }
.table-action { display: inline-flex; align-items: center; gap: 3px; background: none; border: 0; padding: 9px 0 9px 8px; color: var(--green); font-size: 10px; white-space: nowrap; }
.table-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.table-action .icon { width: 13px; height: 13px; }
.batch-cell { font-size: 10px; }
.pagination { padding: 16px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pagination > div { display: flex; align-items: center; gap: 15px; }
.pagination .button { min-height: 32px; font-size: 10px; padding: 6px 10px; }
.admin-footnote { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 20px; }
.admin-footnote .icon { width: 13px; height: 13px; flex-shrink: 0; }
.empty-state { padding: 66px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; min-height: 270px; }
.empty-state > .icon { width: 32px; height: 32px; color: #9db3a1; margin-bottom: 17px; }
.empty-state h3 { font-size: 14px; font-weight: 500; }
.empty-state p { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.8; max-width: 45ch; }
.loading-dots { width: 21px; height: 21px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.audit-target { white-space: normal; overflow-wrap: anywhere; }

/* Protected workflows */
.modal { border: 0; border-radius: 15px; background: white; padding: 27px; color: var(--text); max-width: calc(100vw - 32px); width: 480px; max-height: calc(100dvh - 48px); overflow: auto; box-shadow: 0 20px 60px #00000030; }
.modal::backdrop { background: #102b2466; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.modal-header h2 { font-size: 20px; }
.modal-header .icon-button { margin: -7px -7px -7px 0; }
.modal-description { color: var(--muted); font-size: 12px; line-height: 1.85; margin-bottom: 25px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 27px; border-top: 1px solid var(--line); padding-top: 20px; }
.plan-options { margin: 0 0 22px; display: flex; gap: 12px; }
.plan-options legend { margin-bottom: 12px; }
.plan-options > label { flex: 1; border: 1px solid #dce3dc; border-radius: 8px; padding: 16px 12px; display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; cursor: pointer; }
.plan-options > label:has(input:checked) { border-color: var(--green); background: #f0f5ec; }
.plan-options input { width: 15px; height: 15px; min-height: 15px; padding: 0; margin: 0; accent-color: var(--green); }
.plan-options strong { font-size: 17px; font-weight: 600; }
.plan-options small { display: block; margin-top: 7px; font-size: 10px; color: var(--muted); }
.generated-codes { font-size: 11px; white-space: pre; resize: none; overflow: auto; }
.order-modal { width: 560px; }
.auth-modal { width: 430px; }
.order-summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 11px; margin: 23px 0 20px; }
.secrets-area { border: 1px solid var(--line); background: #f6f8f3; border-radius: 8px; padding: 15px; margin: 22px 0; }
.secrets-area > div:first-child { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.secrets-area > .button { margin-top: 12px; }
.secrets-area .icon { width: 15px; height: 15px; }
.revealed-heading { justify-content: space-between; }
.revealed-heading strong { display: inline-flex; gap: 6px; align-items: center; color: var(--green); font-size: 11px; }
.secret-fields { margin: 18px 0 0; font-size: 11px; }
.secret-fields > div { margin-top: 13px; }
.secret-fields dt { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.secret-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; color: var(--ink); line-height: 1.8; }

@media (min-width: 1440px) {
  .customer-main { padding-top: 76px; }
  .site-header { max-width: 1300px; }
  .redemption-panel { padding: 32px 35px 28px; }
  .intro h1 { font-size: 44px; }
}
@media (max-width: 1100px) {
  .site-header { padding: 0 32px; }
  .customer-main { padding: 48px 32px 0; }
  .redeem-layout { gap: 40px; }
  .redemption-panel { padding: 25px; }
  .service-points { gap: 20px; }
  .admin-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .sidebar { width: 200px; padding-left: 12px; padding-right: 12px; }
  .sidebar .brand { font-size: 13px; gap: 7px; }
  .sidebar .brand img { width: 30px; height: 30px; }
  .admin-main { padding: 26px 24px; }
  .admin-topbar { padding: 0 24px; }
  .stats-strip > div { padding: 0 17px; }
  .stat-icon { right: 16px; }
  .filters { flex-wrap: wrap; }
  .filter-search { min-width: 200px; max-width: none; }
  .login-story { padding: 35px; }
}
@media (max-width: 760px) {
  .site-header { height: 80px; padding: 0 22px; gap: 15px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand-caption { font-size: 8px; letter-spacing: .6px; }
  .header-note { display: none; }
  .top-nav { gap: 18px; margin: 0; }
  .nav-link { font-size: 11px; }
  .nav-link .icon { display: none; }
  .nav-link.active::after { bottom: -23px; }
  .customer-main { padding: 32px 22px 0; }
  .redeem-layout { grid-template-columns: 1fr; gap: 26px; max-width: 510px; margin: auto; }
  .intro { padding: 0; }
  .intro h1 { font-size: 32px; letter-spacing: -1px; line-height: 1.5; }
  .intro-copy { font-size: 12px; margin-top: 12px; }
  .intro-copy br { display: none; }
  .membership-pass { max-width: none; margin-top: 24px; padding: 18px 22px 0; }
  .pass-term { margin: 10px 0 17px; }
  .pass-term strong { font-size: 39px; }
  .service-points { display: none; }
  .privacy-note { display: none; }
  .redemption-panel { padding: 24px; }
  .panel-heading { margin-top: 24px; }
  .faq-section { margin-top: 38px; padding-top: 28px; grid-template-columns: 1fr; gap: 27px; }
  .faq-title h2 { font-size: 19px; }
  .faq-list summary { font-size: 12px; padding: 17px 0; }
  .faq-list details p { font-size: 11px; }
  .site-footer { padding: 20px 22px 25px; align-items: flex-start; flex-direction: column; gap: 8px; font-size: 9px; }
  .site-footer > span:last-child { gap: 14px; flex-wrap: wrap; }
  .section-intro h1 { font-size: 27px; }
  .section-intro > p { font-size: 11px; line-height: 1.8; }
  .lookup-panel { padding: 23px 20px; }
  .lookup-input-row { flex-direction: column; gap: 10px; }
  .lookup-layout { min-height: 470px; }
  .login-screen { grid-template-columns: 1fr; min-height: 100dvh; }
  .login-story { padding: 25px; min-height: 0; gap: 20px; }
  .login-story > div { display: none; }
  .login-story-footer { display: none; }
  .login-workspace { padding: 45px 28px 80px; align-items: flex-start; }
  .login-box { max-width: 420px; }
  .admin-shell { display: block; }
  .sidebar { position: static; width: 100%; padding: 17px 20px 0; }
  .sidebar .brand { font-size: 14px; padding: 0; }
  .sidebar .brand img { width: 31px; height: 31px; }
  .sidebar-label, .sidebar-tip, .sidebar-bottom > a { display: none; }
  .side-nav { display: flex; gap: 4px; margin-top: 21px; }
  .side-nav button { flex: 1; padding: 10px 11px; justify-content: center; border-radius: 7px 7px 0 0; min-height: 42px; gap: 6px; font-size: 11px; }
  .side-nav button .icon { width: 15px; height: 15px; }
  .nav-count { margin-left: 2px; font-size: 9px; }
  .sidebar-bottom { position: absolute; top: 15px; right: 15px; }
  .sidebar-bottom > button { padding: 10px; font-size: 10px; gap: 5px; }
  .admin-topbar { height: 53px; padding: 0 20px; font-size: 10px; }
  .avatar { width: 25px; height: 25px; }
  .admin-main { padding: 25px 18px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 22px; }
  .workspace-heading h1 { font-size: 25px; }
  .workspace-heading p { font-size: 10px; line-height: 1.8; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; min-height: 42px; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin-bottom: 22px; }
  .stats-strip > div { padding: 20px; gap: 10px; }
  .stats-strip > div:nth-child(2) { border-right: 0; }
  .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats-strip > div > span:first-child { font-size: 10px; }
  .stats-strip strong { font-size: 27px; }
  .stat-icon { top: 20px; right: 18px; }
  .stat-icon .icon { width: 16px; height: 16px; }
  .data-panel-head { padding-left: 17px; padding-right: 17px; }
  .filters { padding: 10px 17px 18px; gap: 9px; }
  .filter-search { min-width: 100%; }
  .filters select { flex: 1; width: 95px; min-width: 0; font-size: 10px; }
  .filters .button { padding: 8px 13px; }
  .filters input { font-size: 12px; }
  .filters input, .filters select { min-height: 42px; }
  .table-scroll { min-height: 270px; }
  th, td { padding: 14px; }
  th:first-child, td:first-child { padding-left: 17px; }
  .pagination { padding: 15px 14px; flex-direction: column; align-items: stretch; gap: 13px; }
  .pagination > div { justify-content: flex-end; }
  .pagination .button { min-height: 36px; }
  .admin-footnote { font-size: 9px; align-items: flex-start; }
  .modal { padding: 22px; max-height: calc(100dvh - 32px); }
  .modal-actions { gap: 8px; }
  .modal-actions .button { padding-left: 12px; padding-right: 12px; font-size: 11px; }
  .modal-description { font-size: 11px; }
}
@media (max-width: 380px) {
  .site-header { padding: 0 16px; }
  .customer-main { padding-left: 16px; padding-right: 16px; }
  .top-nav { gap: 10px; }
  .brand { font-size: 12px; }
  .redemption-panel { padding: 22px 18px; }
  .stepper li { font-size: 9px; gap: 4px; }
  .optional { font-size: 10px; }
  .side-nav button { padding-left: 6px; padding-right: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Readable utility type on both desktop and high-density mobile screens. */
.brand-caption, .sidebar .brand-caption, .sidebar-label, .nav-count,
.count-pill, .badge, .plan-tag, .stat-icon, .pass-bottom,
.service-points small, .panel-divider, .panel-footnote, .optional,
.stepper li, .stepper li > span, .matched-plan, .matched-plan .text-button,
.order-track li, .receipt-details, .order-summary, .secret-fields,
.secret-fields dt, .revealed-heading strong, .sidebar-bottom > a,
.sidebar-bottom > button, .sidebar-tip, .sidebar-tip p, .pagination,
.pagination .button, .table-action, td small, .batch-cell,
.stats-strip > div > span:first-child, .filters select, .filters .button,
.plan-options small, .admin-topbar, .admin-footnote, .site-footer,
.login-story-note, .login-story-footer, .back-link {
  font-size: 11px;
}
.field-hint, .privacy-note p, .privacy-note strong, .check-list,
.panel-heading p, .faq-title p, .faq-list summary, .faq-list details p,
.checkbox-label, .success-heading p, .lookup-placeholder small,
.order-note, .modal-description, .workspace-heading p, .empty-state p,
.secrets-area > div:first-child, .filters input, .filters input::placeholder,
table, td strong, .modal-actions .button {
  font-size: 12px;
}
.intro-copy, .section-intro > p, .login-box > p { font-size: 13px; }
.icon-button { width: 44px; height: 44px; }
.password-input button { top: 1px; right: 2px; }
.table-action { min-height: 44px; }
.order-track li { color: #657168; }
.login-story p { color: #d4e8d1; }
.customer-body .nav-link { min-height: 44px; }
.account-privacy { display: flex; align-items: flex-start; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.account-privacy > [data-icon] { padding-top: 2px; color: var(--green); }
.account-privacy .icon { width: 17px; height: 17px; }
.account-privacy p { font-size: 12px; line-height: 1.9; }
@media (max-width: 760px) {
  .brand-caption { font-size: 10px; }
  .site-header .brand { font-size: 13px; }
  .top-nav { gap: 14px; }
  .stepper li { font-size: 11px; }
}
