:root {
  color-scheme: light;
  --ink: #101828;
  --ink-soft: #475467;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --page: #eef1f7;
  --violet: #6d52f5;
  --violet-dark: #5338df;
  --violet-soft: #eeeaff;
  --teal: #18b9a9;
  --teal-soft: #e7faf7;
  --green: #14966f;
  --amber: #c97a16;
  --red: #d13b4d;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.1);
  --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.07);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 74% 8%, rgba(109,82,245,.1), transparent 27rem), var(--page); font-size: 16px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }

.topbar {
  height: 78px;
  padding: 0 clamp(22px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(208,213,221,.8);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--ink); box-shadow: 0 8px 18px rgba(16,24,40,.18); }
.brand-mark svg { width: 25px; fill: #fff; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 18px; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: 11px; letter-spacing: .15em; margin-top: 5px; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.ios-language { height: 42px; padding: 3px; display: inline-flex; align-items: center; gap: 2px; border: 1px solid #e4e5ea; border-radius: 13px; color: #636b7b; background: rgba(245,245,247,.94); box-shadow: inset 0 1px 1px rgba(16,24,40,.02); }
.ios-language svg { width: 16px; margin: 0 2px 0 6px; fill: currentColor; }
.ios-language-option { height: 34px; min-width: 41px; padding: 0 10px; border: 0; border-radius: 10px; color: #697386; background: transparent; font-size: 12px; font-weight: 800; transition: background .18s ease, box-shadow .18s ease, color .18s ease; }
.ios-language-option:hover { color: var(--ink); }
.ios-language-option.active { color: #202939; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.12), 0 1px 1px rgba(16,24,40,.06); }
.tutorial-trigger { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cfc5ff; border-radius: 12px; color: var(--violet-dark); background: #fff; font-size: 13px; font-weight: 800; transition: .18s ease; }
.tutorial-trigger svg { width: 18px; fill: currentColor; }
.tutorial-trigger:hover { transform: translateY(-1px); border-color: var(--violet); background: #faf9ff; box-shadow: 0 8px 17px rgba(83,56,223,.12); }
.subscription-query-trigger { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dcd5ff; border-radius: 12px; color: var(--violet-dark); background: linear-gradient(135deg, #fff 0%, #f2efff 100%); font-size: 14px; font-weight: 800; box-shadow: 0 7px 18px rgba(83,56,223,.1); transition: .2s ease; }
.subscription-query-trigger svg { width: 18px; fill: currentColor; transition: transform .25s ease; }
.subscription-query-trigger:hover { transform: translateY(-1px); border-color: #c3b7ff; box-shadow: 0 10px 23px rgba(83,56,223,.16); }
.subscription-query-trigger:hover svg { transform: rotate(45deg); }
.header-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(24,185,169,.13); }

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 134px);
  margin: 0 auto;
  padding: 42px 0 64px;
}
.benefit-strip { display: none; }
body.awaiting-code .benefit-strip { width: min(760px, 100%); margin: 0 auto 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.benefit-strip article { min-height: 64px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.8); border-radius: 15px; background: rgba(255,255,255,.88); box-shadow: 0 9px 20px rgba(16,24,40,.06); }
.benefit-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #fff; font-size: 22px; font-style: normal; font-weight: 800; }
.benefit-icon.purple { background: linear-gradient(135deg,#7b62f4,#a27bff); }.benefit-icon.coral { background: linear-gradient(135deg,#ff9a43,#ff5d6c); }.benefit-icon.blue { background: linear-gradient(135deg,#36b4ff,#2a73f5); }
.benefit-strip span { display:grid; gap:2px; }.benefit-strip small { color:#8a8fa0; font-size:10px; font-weight:700; }.benefit-strip strong { color:var(--ink); font-size:13px; white-space:nowrap; }
.stock-indicator { margin-left: auto; padding: 7px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; }.stock-indicator::before { content:""; width:7px; height:7px; display:inline-block; margin-right:6px; border-radius:50%; background:currentColor; }.stock-indicator.empty { color:#c23d52; background:#fff0f2; }.stock-indicator.low { color:#b06b10; background:#fff5df; }.stock-indicator.ample { color:#158064; background:#e8f8f2; }

body.awaiting-code .intro-panel,
body.awaiting-code .notice-card,
body.awaiting-code .guide-column,
body.awaiting-code footer { display: none; }
body.awaiting-code .page-shell {
  width: min(1060px, calc(100% - 48px));
  min-height: calc(100vh - 78px);
  padding: clamp(72px, 12vh, 132px) 0 80px;
}
  body.awaiting-code .content-grid { display: block; }
body.awaiting-code .workspace-panel {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: static;
}
body.awaiting-code .workspace-panel { max-width: 760px; }
body.awaiting-code {
  background:
    radial-gradient(circle at 50% 16%, rgba(109,82,245,.15), transparent 27rem),
    radial-gradient(circle at 22% 74%, rgba(24,185,169,.07), transparent 24rem),
    var(--page);
}
body.awaiting-code .flow-card {
  overflow: hidden;
  border-color: rgba(255,255,255,.88);
  box-shadow: 0 30px 90px rgba(16,24,40,.12), 0 0 0 1px rgba(109,82,245,.05);
}

.intro-panel { max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow, .section-kicker { color: var(--violet); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { display: flex; gap: 10px; align-items: center; justify-content: center; }
.eyebrow span { width: 26px; height: 2px; background: var(--violet); }
.intro-panel h1 { margin: 16px 0 10px; font-size: clamp(38px, 4vw, 54px); line-height: 1.08; letter-spacing: -.05em; }
.intro-panel h1 em { font-style: normal; background: linear-gradient(105deg, var(--violet), #9a4ff5 46%, var(--teal)); color: transparent; background-clip: text; -webkit-background-clip: text; }
.hero-description { max-width: 680px; margin: 0 auto; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.content-grid { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(620px, 1.28fr); gap: 20px; align-items: start; }
.guide-column { min-width: 0; }

.operation-guide { padding: 23px 22px 9px; border: 1px solid rgba(208,213,221,.8); border-radius: 21px; background: rgba(255,255,255,.92); box-shadow: 0 18px 46px rgba(16,24,40,.075); backdrop-filter: blur(12px); }
.guide-query-link { margin-top: 12px; padding: 13px 15px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; border: 1px solid rgba(196,184,255,.9); border-radius: 17px; color: var(--ink); background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(244,241,255,.92)); box-shadow: 0 12px 30px rgba(83,56,223,.09); text-decoration: none; transition: .2s ease; }
.guide-query-link:hover { transform: translateY(-2px); border-color: #a997ff; box-shadow: 0 17px 35px rgba(83,56,223,.15); }
.guide-query-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #7b62f4, #4f43d6); font-size: 26px; font-weight: 800; line-height: 1; }
.guide-query-link span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.guide-query-link small { color: var(--violet); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.guide-query-link strong { font-size: 14px; }
.guide-query-link em { overflow: hidden; color: var(--muted); font-size: 11px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.guide-query-link > i { color: var(--violet); font-size: 21px; font-style: normal; font-weight: 700; }
.operation-guide-heading h2 { margin: 5px 0 4px; font-size: 24px; letter-spacing: -.035em; }
.operation-guide-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.guide-list { margin: 12px 0 0; padding: 0; list-style: none; }
.guide-step { padding: 14px 0; display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 13px; align-items: start; border-top: 1px solid var(--line); }
.guide-step:first-child { border-top: 0; }
.guide-number { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #111b31, #0c1425); font-size: 13px; font-weight: 900; box-shadow: 0 7px 16px rgba(16,24,40,.14); }
.guide-content { min-width: 0; padding-top: 2px; }
.guide-content h3 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.guide-content p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.guide-action { width: fit-content; margin-top: 8px; min-height: 35px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border-radius: 9px; color: #fff; background: linear-gradient(110deg, #2867ec, var(--violet)); box-shadow: 0 7px 15px rgba(55,91,226,.2); font-size: 12px; font-weight: 800; text-decoration: none; transition: .2s ease; }
.guide-action svg { width: 15px; fill: currentColor; transition: transform .2s ease; }
.guide-action:hover { transform: translateY(-1px); box-shadow: 0 11px 23px rgba(55,91,226,.3); }
.guide-action:hover svg { transform: translate(2px, -2px); }
.guide-action:focus-visible { outline: 3px solid rgba(109,82,245,.28); outline-offset: 3px; }

.notice-card { margin: 0 0 14px; padding: 12px 16px; display: flex; align-items: center; gap: 11px; border: 1px solid #dcd5ff; border-radius: 13px; background: rgba(238,234,255,.72); }
.notice-card svg { width: 20px; min-width: 20px; fill: var(--violet); }
.notice-card > div { display: flex; align-items: baseline; gap: 12px; }
.notice-card strong { white-space: nowrap; font-size: 14px; }
.notice-card p { margin: 0; color: #655f77; font-size: 12px; line-height: 1.55; }

.workspace-panel { min-width: 0; position: sticky; top: 100px; }
.product-switcher { padding: 5px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; border-radius: 16px; background: #dde1e9; margin-bottom: 14px; }
.identified-label { display: none; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.identified-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(24,185,169,.12); }
.workspace-panel.precheck .product-switcher { display: none; }
.workspace-panel.identified .product-switcher { min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 10px; overflow: hidden; }
.workspace-panel.identified .identified-label { display: flex; grid-column: 1; grid-row: 1; min-width: 0; padding: 0 4px; }
.workspace-panel.identified .product-tab:not(.active) { display: none; }
.workspace-panel.identified .product-tab.active { grid-column: 2; grid-row: 1; min-width: 238px; min-height: 48px; padding: 8px 15px; justify-content: center; gap: 10px; pointer-events: none; }
.workspace-panel.identified .product-tab.active .product-name { font-size: 17px; }
.workspace-panel.identified .product-tab.active .product-tag { min-width: auto; padding: 6px 11px; font-size: 13px; }
.workspace-panel.identified .stock-indicator { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; white-space: nowrap; }
.product-tab { min-width: 0; min-height: 64px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; transition: .2s ease; }
.product-tab:hover { color: var(--ink); background: rgba(255,255,255,.45); }
.product-tab.active { color: var(--ink); background: white; box-shadow: 0 3px 11px rgba(16,24,40,.1); }
.product-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 800; }
.product-tag { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; padding: 6px 10px; border: 1px solid transparent; border-radius: 20px; background: #f2f4f7; color: var(--muted); font-size: 13px; line-height: 1.15; font-weight: 900; letter-spacing: .04em; text-align: center; white-space: nowrap; }
.product-tag b, .product-tag small { position: relative; z-index: 2; }
.product-tag b, .product-tag small { font-size: inherit; line-height: 1; font-weight: inherit; letter-spacing: inherit; }
.product-tag small { padding-left: 6px; border-left: 1px solid currentColor; opacity: 1; }
.product-tag::after { content: ""; position: absolute; z-index: 1; top: -65%; bottom: -65%; left: -52%; width: 26%; pointer-events: none; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); opacity: 0; animation: product-tag-shine 3.2s ease-in-out infinite; }
.product-tab.active .product-tag { background: var(--violet-soft); color: var(--violet-dark); }
.product-tab[data-product="pro5x"] .product-tag { color: #633a00; border-color: #ffd870; background: linear-gradient(135deg, #fff2a8 0%, #ffc83d 48%, #e99b09 100%); text-shadow: 0 1px 0 rgba(255,255,255,.55); box-shadow: 0 5px 13px rgba(225,158,11,.27), inset 0 1px 0 rgba(255,255,255,.72); animation: advanced-tag-glow 2.6s ease-in-out infinite; }
.product-tab[data-product="pro5x"] .product-tag::after { animation-delay: .55s; }
.product-tab[data-product="plus"] .product-tag { color: #fff; border-color: #f2455b; background: linear-gradient(135deg, #ff5269, #d61935); box-shadow: 0 5px 13px rgba(214,25,53,.28); }
.product-tab[data-product="pro20x"] .product-tag { color: #ffe27b; border-color: #c99a27; background: linear-gradient(135deg, #2d291e, #080704 62%, #3f2e08); text-shadow: 0 0 8px rgba(255,216,87,.48); box-shadow: 0 5px 15px rgba(82,60,8,.35), 0 0 0 2px rgba(220,173,47,.1); }
.product-tab[data-product="plus"] .product-tag::after { animation-delay: .15s; }
.product-tab[data-product="pro20x"] .product-tag::after { animation-delay: .9s; }

@keyframes product-tag-shine {
  0%, 54% { left: -52%; opacity: 0; }
  62% { opacity: .78; }
  78%, 100% { left: 126%; opacity: 0; }
}
@keyframes advanced-tag-glow {
  0%, 100% { box-shadow: 0 5px 13px rgba(225,158,11,.25), inset 0 1px 0 rgba(255,255,255,.72); }
  50% { box-shadow: 0 6px 18px rgba(235,172,20,.43), 0 0 0 3px rgba(255,205,65,.11), inset 0 1px 0 rgba(255,255,255,.78); }
}

.flow-card, .utility-card { background: var(--surface); border: 1px solid rgba(208,213,221,.85); box-shadow: var(--shadow); }
.flow-card { padding: clamp(20px, 3vw, 30px); border-radius: 22px; }
.flow-card .product-switcher { margin-bottom: 14px; border: 1px solid #e6e9f0; background: #f4f6fa; }
.precheck-heading { display: none; margin-bottom: 27px; }
.precheck-heading h2 { margin: 8px 0 7px; font-size: 28px; letter-spacing: -.03em; }
.precheck-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.workspace-panel.precheck .precheck-heading { display: block; }
.workspace-panel.precheck .flow-heading,
.workspace-panel.precheck .stepper,
.workspace-panel.precheck .step-section[data-step="1"] .section-title,
.workspace-panel.precheck .utility-card { display: none; }
.workspace-panel.precheck .flow-card { padding: 0; }
.workspace-panel.precheck .precheck-heading {
  margin: 0;
  padding: 38px 42px 14px;
  color: var(--ink);
  background: transparent;
}
.workspace-panel.precheck .precheck-heading::before,
.workspace-panel.precheck .precheck-heading::after {
  display: none;
}
.workspace-panel.precheck .precheck-topline,
.workspace-panel.precheck .precheck-points { display: none; }
.precheck-topline { display: flex; align-items: center; gap: 11px; }
.precheck-symbol { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.precheck-symbol svg { width: 20px; fill: #fff; }
.workspace-panel.precheck .precheck-heading .section-kicker { color: var(--violet); }
.precheck-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 700; }
.precheck-live i { width: 7px; height: 7px; border-radius: 50%; background: #39d5c4; box-shadow: 0 0 0 4px rgba(57,213,196,.14), 0 0 14px rgba(57,213,196,.6); }
.workspace-panel.precheck .precheck-heading h2 { margin: 0 0 9px; font-size: 30px; line-height: 1.2; letter-spacing: -.045em; }
.workspace-panel.precheck .precheck-heading p { max-width: 520px; color: var(--muted); font-size: 14px; }
.precheck-points { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 9px; }
.precheck-points span { min-height: 34px; padding: 0 12px 0 7px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; color: rgba(255,255,255,.83); background: rgba(255,255,255,.075); font-size: 12px; font-weight: 700; backdrop-filter: blur(8px); }
.precheck-points i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #dcd6ff; background: rgba(109,82,245,.38); font-size: 9px; font-style: normal; font-weight: 900; }
.workspace-panel.precheck .step-section[data-step="1"] { padding: 20px 42px 42px; }
.workspace-panel.precheck .message { margin: 22px 40px 0; }
.workspace-panel.precheck .primary-button { background: linear-gradient(110deg, #151d2d 0%, #202a3d 62%, #362a77 100%); box-shadow: 0 10px 24px rgba(16,24,40,.18); }
.workspace-panel.precheck .primary-button:hover { background: linear-gradient(110deg, #202b40 0%, #2a3956 62%, #4a3c98 100%); }
.flow-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.flow-heading h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -.025em; }
.service-badge { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.service-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.service-badge.neutral { color: var(--muted); background: #f2f4f7; }
.service-badge.normal { color: var(--green); background: #eaf8f3; }
.service-badge.unstable { color: var(--amber); background: #fff6e7; }
.service-badge.abnormal { color: var(--red); background: #fff0f2; }

.stepper { list-style: none; margin: 22px 0 24px; padding: 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); border: solid var(--line); border-width: 1px 0; }
.stepper li { min-width: 0; display: flex; align-items: center; gap: 10px; color: #98a2b3; position: relative; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; right: 15px; width: 22px; height: 1px; background: var(--line-strong); }
.stepper li > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 800; }
.stepper li div { min-width: 0; display: grid; }
.stepper strong { font-size: 13px; white-space: nowrap; }
.stepper small { margin-top: 4px; font-size: 11px; white-space: nowrap; }
.stepper li.active, .stepper li.done { color: var(--ink); }
.stepper li.active > span { color: white; border-color: var(--violet); background: var(--violet); box-shadow: 0 0 0 5px var(--violet-soft); }
.stepper li.done > span { color: white; border-color: var(--teal); background: var(--teal); }
.stepper li.done:not(:last-child)::after { background: var(--teal); }

.section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.section-title > span { color: var(--violet); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.section-title h3 { margin: 0; font-size: 20px; }
.section-title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
label { display: block; margin-bottom: 9px; color: #344054; font-size: 14px; font-weight: 700; }
input, textarea { width: 100%; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; outline: none; transition: .18s ease; }
input { height: 50px; padding: 0 14px; }
textarea { padding: 14px; resize: vertical; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
#session-info { height: 150px; min-height: 150px; }
input:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
input::placeholder, textarea::placeholder { color: #98a2b3; }
.input-wrap { position: relative; }
.input-wrap svg { width: 20px; fill: #98a2b3; position: absolute; left: 15px; top: 15px; }
.input-wrap input { padding-left: 47px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; }

.primary-button, .secondary-button, .back-button, .utility-body form button { border: 0; border-radius: 12px; font-weight: 800; transition: .18s ease; }
.primary-button { width: 100%; height: 51px; margin-top: 17px; display: flex; align-items: center; justify-content: center; gap: 10px; color: white; background: var(--ink); box-shadow: 0 9px 20px rgba(16,24,40,.17); }
.primary-button:hover { transform: translateY(-1px); background: #1d2939; box-shadow: 0 12px 24px rgba(16,24,40,.2); }
.primary-button.accent { background: linear-gradient(110deg, var(--violet-dark), var(--violet)); box-shadow: 0 10px 24px rgba(109,82,245,.25); }
.primary-button.compact { width: auto; min-width: 145px; margin: 0; }
.primary-button:disabled, .utility-body button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.42); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.label-row { display: flex; align-items: center; justify-content: space-between; }
.help-link, .text-button { border: 0; padding: 0; background: transparent; color: var(--violet); font-size: 13px; font-weight: 700; }
.field-hint { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.check-row { margin: 15px 0 0; padding: 12px; display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; background: var(--surface-soft); cursor: pointer; }
.check-row input { appearance: none; width: 17px; height: 17px; min-width: 17px; padding: 0; margin: 1px 0 0; border-radius: 5px; }
.check-row input:checked { border-color: var(--violet); background: var(--violet); box-shadow: inset 0 0 0 3px white; }
.check-row span { display: grid; }
.check-row b { font-size: 13px; }
.check-row small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.verified-summary { padding: 10px 12px; margin-bottom: 17px; display: flex; align-items: center; gap: 11px; border: 1px solid #bcecdf; border-radius: 13px; background: var(--teal-soft); }
.verified-summary > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-weight: 900; }
.verified-summary div { flex: 1; min-width: 0; display: grid; }
.verified-summary strong { font-size: 13px; }
.verified-summary p { margin: 4px 0 0; overflow: hidden; color: #39736c; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }

.confirm-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-grid div { min-width: 0; padding: 14px; border-radius: 12px; background: var(--surface-soft); }
.confirm-grid dt { color: var(--muted); font-size: 12px; }
.confirm-grid dd { margin: 8px 0 0; overflow: hidden; font-size: 14px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
#confirm-code, #confirm-account { overflow: visible; overflow-wrap: anywhere; white-space: normal; text-overflow: clip; }
#confirm-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.back-button { width: 100%; margin-top: 10px; padding: 9px; color: var(--muted); background: transparent; font-size: 12px; }
.back-button:hover { color: var(--ink); }

.message { padding: 13px 15px; margin: -17px 0 24px; border-radius: 11px; font-size: 13px; line-height: 1.6; }
.message.error { color: #9f2636; background: #fff0f2; border: 1px solid #ffc9d0; }
.message.warning { color: #86520e; background: #fff7e8; border: 1px solid #f6dcae; }
.message.success { color: #16745b; background: #eaf8f3; border: 1px solid #bcecdf; }

.result-section { padding: 16px 0 0; text-align: center; }
.result-icon { width: 64px; height: 64px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--teal); box-shadow: 0 0 0 9px var(--teal-soft); font-size: 28px; font-weight: 900; }
.result-section.processing .result-icon { background: var(--violet); box-shadow: 0 0 0 9px var(--violet-soft); animation: spin 1.1s linear infinite; }
.result-section.error .result-icon { background: var(--red); box-shadow: 0 0 0 9px #fff0f2; }
@keyframes breathe { 50% { transform: scale(.93); opacity: .8; } }
.result-section h3 { margin: 8px 0; font-size: 24px; }
.result-section > p { margin: 0 auto; max-width: 460px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.result-details { margin: 20px 0 0; padding: 14px 16px; display: grid; gap: 9px; border-radius: 13px; background: var(--surface-soft); text-align: left; }
.result-details div { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.result-details dt { color: var(--muted); }
.result-details dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.result-actions { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }
.secondary-button { padding: 0 18px; color: var(--ink); border: 1px solid var(--line-strong); background: white; }
.secondary-button:hover { background: var(--surface-soft); }
.invoice-button { min-width: 145px; min-height: 51px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #5538d4; border: 1px solid #d8d0ff; border-radius: 12px; background: linear-gradient(135deg, #faf9ff, #f1efff); box-shadow: 0 7px 18px rgba(101,76,255,.12); font-size: 16px; font-weight: 800; line-height: 1; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.invoice-button[hidden] { display: none; }
.invoice-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.invoice-button i { font-size: 12px; font-style: normal; opacity: .72; }
.invoice-button:hover { color: #4526c8; border-color: #b9aaff; box-shadow: 0 10px 24px rgba(101,76,255,.2); transform: translateY(-1px); }
.invoice-dialog { width: min(440px, calc(100% - 34px)); padding: 30px; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 28px 70px rgba(16,24,40,.27); }
.invoice-dialog::backdrop { background: rgba(16,24,40,.56); backdrop-filter: blur(3px); }
.invoice-dialog h2 { margin: 8px 0 11px; font-size: 25px; }
.invoice-dialog > p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.invoice-dialog-actions { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.invoice-dialog-actions .secondary-button, .invoice-dialog-actions .primary-button { min-height: 48px; margin: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }

.utility-card { margin-top: 12px; border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.utility-toggle { width: 100%; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; border: 0; color: var(--ink); background: white; }
.utility-toggle > span:first-child { display: flex; align-items: center; gap: 10px; }
.utility-toggle svg { width: 18px; fill: var(--violet); }
.utility-toggle b { font-size: 14px; }
.utility-toggle .chevron { color: var(--muted); transition: .2s ease; }
.utility-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.utility-body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.utility-body > p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.utility-body form { padding-top: 14px; display: flex; gap: 8px; }
.utility-body form textarea { min-height: 88px; }
.utility-body form button { min-width: 86px; padding: 0 14px; color: white; background: var(--ink); }
.utility-divider { margin: 17px 0 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.utility-divider::before, .utility-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.batch-query-form, .reuse-form { display: grid !important; gap: 9px !important; }
.batch-query-form { grid-template-columns: 1fr auto; }
.batch-query-form label { grid-column: 1 / -1; margin: 0; }
.batch-query-form label small { margin-left: 7px; color: var(--muted); font-weight: 500; }
.batch-query-form textarea { min-height: 100px !important; }
.batch-query-form button, .reuse-form button { min-height: 44px; align-self: end; border-radius: 11px; font-weight: 800; }
.batch-result { margin-top: 22px; }
.batch-result-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.batch-result-summary h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.batch-result-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.batch-stat { padding: 7px 10px; border-radius: 9px; color: var(--ink-soft); background: #f0f2f7; font-size: 12px; font-weight: 800; }
.batch-stat.completed { color: #148363; background: #ddf6ec; }
.batch-stat.ready { color: #a56809; background: #fff2ce; }
.batch-stat.failed { color: #b42338; background: #fff0f2; }
.batch-table-wrap { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.batch-result table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 12px; }
.batch-result th, .batch-result td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.batch-result tr:last-child td { border-bottom: 0; }
.batch-result th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 850; }
.batch-result .batch-index { width: 38px; color: var(--muted); text-align: center; }
.batch-result .batch-code { color: #2851b8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; white-space: nowrap; }
.batch-result .ok { color: #148363; font-weight: 800; }
.batch-result .fail { color: var(--red); font-weight: 800; }
.batch-state { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 6px 8px; border-radius: 7px; font-weight: 800; white-space: nowrap; }
.batch-state.ready { color: #a56809; background: #fff6e7; }
.batch-state.completed { color: #148363; background: #e4f8ef; }
.batch-state.processing { color: #375eb8; background: #eaf0ff; }
.batch-state.failed { color: #b42338; background: #fff0f2; }
.reuse-card { margin-top: 12px; }
.reuse-form { grid-template-columns: 1fr 1fr; }
.reuse-form label { margin: 3px 0 0; }
.reuse-form input, .reuse-form select, .reuse-form textarea, .reuse-form label[for="reuse-session"], .reuse-form button { grid-column: 1 / -1; }
.reuse-form select { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: white; outline: none; }
.reuse-form select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.inline-result { margin-top: 10px; padding: 12px 13px; border-radius: 10px; color: var(--ink-soft); background: var(--surface-soft); font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.inline-result.success { color: #16745b; background: #eaf8f3; }
.inline-result.error { color: #9f2636; background: #fff0f2; }

.query-page { min-height: 100vh; background: radial-gradient(circle at 50% 12%, rgba(109,82,245,.15), transparent 28rem), radial-gradient(circle at 18% 76%, rgba(24,185,169,.08), transparent 23rem), var(--page); }
.query-shell { width: min(1064px, calc(100% - 48px)); margin: 0 auto; padding: clamp(65px, 10vh, 112px) 0 80px; }
.query-return { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dcd5ff; border-radius: 12px; color: var(--violet-dark); background: #fff; font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 7px 18px rgba(83,56,223,.08); transition: .18s ease; }
.query-return:hover { transform: translateY(-1px); border-color: var(--violet); }
.query-hero { margin: 0 auto 24px; text-align: center; }
.query-hero h1 { margin: 8px 0; font-size: clamp(31px, 4vw, 42px); letter-spacing: -.045em; }
.query-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.query-card { padding: 30px; border: 1px solid rgba(255,255,255,.88); border-radius: 25px; background: rgba(255,255,255,.94); box-shadow: 0 28px 70px rgba(16,24,40,.12), 0 0 0 1px rgba(109,82,245,.04); }
.query-tabs { margin: -10px -10px 28px; padding: 5px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; border: 1px solid #e3dfff; border-radius: 14px; background: #f5f3ff; }
.query-tab { min-height: 44px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 850; transition: .18s ease; }
.query-tab:hover { color: var(--violet-dark); }
.query-tab.active { color: var(--violet-dark); background: #fff; box-shadow: 0 2px 7px rgba(58,42,139,.13); }
.query-pane[hidden] { display: none; }
.query-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.query-card-heading h2 { margin: 0 0 3px; font-size: 21px; letter-spacing: -.025em; }
.query-card-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.query-card-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #7b62f4, #4f43d6); font-size: 31px; font-weight: 800; line-height: 1; }
.query-card-icon.batch { font-size: 29px; background: linear-gradient(135deg, #20b6c6, #3180dc); }
.status-form { display: grid; gap: 8px; }
.status-form label, .status-batch-form label { color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.status-form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.status-form input, .status-batch-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: #fff; outline: none; transition: .18s ease; }
.status-form input { height: 48px; padding: 0 14px; }
.status-batch-form textarea { min-height: 118px; padding: 13px 14px; resize: vertical; }
.status-form input:focus, .status-batch-form textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.status-form button, .status-batch-form button { min-height: 48px; padding: 0 19px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--ink), #382b8b); font-weight: 800; box-shadow: 0 9px 18px rgba(16,24,40,.12); }
.status-form button:disabled, .status-batch-form button:disabled { opacity: .65; cursor: wait; }
.query-divider { margin: 27px 0 20px; display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; }
.query-divider::before, .query-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.status-batch-form { display: grid; gap: 9px; }
.status-batch-form label small { margin-left: 6px; color: var(--muted); font-weight: 500; }
.batch-actions { display: flex; justify-content: flex-end; gap: 10px; }
.status-batch-form .batch-actions button { justify-self: auto; }
.batch-clear-results { color: var(--ink) !important; border: 1px solid var(--line-strong) !important; background: #fff !important; box-shadow: none !important; }
.batch-clear-results:disabled { color: #a2a8b6 !important; border-color: var(--line) !important; background: #f7f8fa !important; opacity: 1 !important; cursor: not-allowed !important; }
.batch-result-actions { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.batch-result-actions button { min-height: 43px; padding: 0 17px; border-radius: 10px; font-weight: 800; }
.batch-export { color: #fff; border: 0; background: linear-gradient(135deg, #49aa36, #77cc43); box-shadow: 0 9px 18px rgba(52,145,43,.16); }
.batch-copy { color: var(--ink-soft); border: 1px solid var(--line-strong); background: #fff; }
.batch-progress-dialog { width: min(380px, calc(100% - 34px)); padding: 0; overflow: hidden; border: 0; border-radius: 22px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(16,24,40,.3); }
.batch-progress-dialog::backdrop { background: rgba(16,24,40,.5); backdrop-filter: blur(4px); }
.batch-progress-content { padding: 33px 31px 28px; text-align: center; }
.batch-progress-content .section-kicker { display: block; margin: 16px 0 7px; }
.batch-progress-content h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.batch-progress-content p { min-height: 20px; margin: 9px 0 17px; color: var(--muted); font-size: 14px; }
.batch-progress-content small { display: block; margin-top: 11px; color: #98a2b3; font-size: 12px; }
.batch-progress-orbit { position: relative; width: 50px; height: 50px; display: inline-block; border: 4px solid #e7e2ff; border-top-color: var(--violet); border-right-color: #1dbcb3; border-radius: 50%; animation: batch-orbit .78s linear infinite; }
.batch-progress-orbit::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: linear-gradient(135deg, #7960f1, #26beb4); opacity: .18; }
.batch-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #efeff6; }
.batch-progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #20bdb4, #6d52f5); transition: width .22s ease; }
@keyframes batch-orbit { to { transform: rotate(360deg); } }

dialog { width: min(460px, calc(100% - 32px)); padding: 28px; color: var(--ink); border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(16,24,40,.28); }
dialog::backdrop { background: rgba(16,24,40,.48); backdrop-filter: blur(3px); }
dialog h2 { margin: 8px 0 18px; font-size: 21px; }
dialog ol { padding-left: 20px; color: var(--ink-soft); font-size: 12px; line-height: 1.85; }
dialog p { margin: 16px 0 0; padding: 11px 12px; border-radius: 10px; color: #86520e; background: #fff7e8; font-size: 10px; line-height: 1.6; }
.session-guide-list { margin: 0; display: grid; gap: 8px; }
.session-guide-action { min-height: 31px; margin: 6px 0 1px; padding: 0 10px; font-size: 11px; }
.session-guide-action svg { width: 13px; }
.dialog-close { position: absolute; right: 17px; top: 14px; border: 0; color: var(--muted); background: transparent; font-size: 26px; }
.subscription-dialog { width: min(610px, calc(100% - 32px)); padding: 31px; }
.subscription-dialog h2 { margin-bottom: 8px; font-size: 25px; }
.subscription-dialog .subscription-dialog-tip { margin: 0 0 22px; padding: 0; color: var(--muted); background: transparent; font-size: 14px; line-height: 1.7; }
.subscription-dialog form { display: grid; gap: 11px; }
.subscription-dialog form label { font-size: 14px; font-weight: 800; }
.subscription-dialog textarea { min-height: 140px; }
.subscription-dialog .primary-button { margin-top: 3px; }
.subscription-dialog .inline-result { margin-top: 14px; font-size: 13px; }
.tutorial-dialog { width: min(760px, calc(100% - 32px)); padding: 30px; }
.tutorial-dialog h2 { margin: 0 0 8px; font-size: 25px; }
.tutorial-tip { margin: 0 0 18px; padding: 0; color: var(--muted); background: transparent; font-size: 14px; line-height: 1.65; }
.tutorial-dialog video { width: 100%; display: block; border: 1px solid var(--line); border-radius: 14px; background: #101828; aspect-ratio: 16 / 9; }
.tutorial-steps { margin: 19px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; counter-reset: tutorial; }
.tutorial-steps li { min-height: 52px; padding: 11px 12px 11px 43px; position: relative; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; counter-increment: tutorial; }
.tutorial-steps li::before { content: counter(tutorial); width: 23px; height: 23px; position: absolute; left: 11px; top: 11px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--violet); font-size: 11px; font-weight: 800; }

footer { min-height: 68px; padding: 12px clamp(22px, 4vw, 68px); display: flex; align-items: center; justify-content: center; color: #98a2b3; border-top: 1px solid rgba(208,213,221,.75); font-size: 12px; letter-spacing: .02em; }
.footer-copy { display: grid; justify-items: center; gap: 3px; text-align: center; }
.footer-line { display: flex; align-items: center; gap: 4px; color: #7583a0; }
.footer-line svg { width: 17px; height: 17px; fill: #8ca2c1; }
.footer-copy > small { color: #98a2b3; font-size: 11px; }

@media (max-width: 980px) {
  .page-shell { width: min(720px, calc(100% - 36px)); padding-top: 36px; }
  .intro-panel { padding: 0 4px; }
  .content-grid { grid-template-columns: 1fr; gap: 18px; }
  .workspace-panel { position: static; }
  .intro-panel h1 { font-size: clamp(38px, 8vw, 56px); }
  .operation-guide { background: rgba(255,255,255,.82); }
  .notice-card { background: rgba(255,255,255,.62); }
}

@media (max-width: 680px) {
  .topbar { height: 68px; padding: 0 12px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-mark svg { width: 22px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { display: none; }
  .header-actions { gap: 0; }
  .ios-language { display: none; }
  .tutorial-trigger { min-height: 39px; padding: 0 10px; margin-right: 7px; font-size: 12px; }
  .tutorial-trigger svg { width: 16px; }
  .subscription-query-trigger { min-height: 39px; padding: 0 10px; gap: 6px; font-size: 12px; }
  .subscription-query-trigger svg { width: 16px; }
  .header-note { display: none; }
  .page-shell { width: min(100% - 24px, 620px); padding: 27px 0 45px; }
  body.awaiting-code .page-shell {
    width: min(100% - 24px, 620px);
    min-height: calc(100vh - 68px);
    padding: 34px 0 56px;
  }
  body.awaiting-code .benefit-strip { grid-template-columns: 1fr; gap: 9px; margin-bottom: 18px; }
  body.awaiting-code .benefit-strip article:nth-child(n+2) { display: none; }
  .benefit-strip article { min-height: 68px; padding: 10px 13px; border-radius: 16px; }.benefit-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 24px; }.benefit-strip strong { font-size: 15px; }
  .guide-column { display: none; }
  body:not(.awaiting-code) .page-shell { padding-top: 4px; }
  body:not(.awaiting-code) .notice-card { margin-top: 0; }
  body:not(.awaiting-code) .flow-card { padding: 14px 14px 16px; border-radius: 18px; }
  body:not(.awaiting-code) .flow-card .product-switcher { margin-bottom: 12px; }
  .workspace-panel.identified .product-switcher { min-height: 84px; gap: 5px; padding: 6px 8px; }
  .workspace-panel.identified .identified-label, .workspace-panel.identified .stock-indicator { font-size: 10px; }
  .workspace-panel.identified .product-tab.active { min-height: 40px; padding: 5px 10px; }
  .workspace-panel.identified .product-tab.active .product-name { font-size: 16px; }
  .workspace-panel.identified .product-tab.active .product-tag { padding: 5px 9px; font-size: 11px; }
  body:not(.awaiting-code) .flow-heading .section-kicker { display: none; }
  body:not(.awaiting-code) .flow-heading h2 { margin: 0; font-size: 21px; }
  body:not(.awaiting-code) .service-badge { padding: 4px 7px; font-size: 11px; }
  body:not(.awaiting-code) .stepper { margin: 14px 0 16px; padding: 10px 0; }
  body:not(.awaiting-code) .stepper li > span { width: 29px; height: 29px; font-size: 12px; }
  body:not(.awaiting-code) .verified-summary { margin-bottom: 14px; padding: 9px 10px; }
  body:not(.awaiting-code) .verified-summary > span { width: 24px; height: 24px; }
  body:not(.awaiting-code) .section-title { gap: 10px; margin-bottom: 12px; }
  body:not(.awaiting-code) .section-title h3 { font-size: 19px; }
  body:not(.awaiting-code) .section-title p { margin-top: 3px; font-size: 12px; }
  body:not(.awaiting-code) #session-info { height: 105px; min-height: 105px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
  body:not(.awaiting-code) .field-hint { display: none; }
  body:not(.awaiting-code) .check-row { margin-top: 9px; padding: 9px; }
  body:not(.awaiting-code) .primary-button { height: 48px; margin-top: 11px; }
  .workspace-panel.precheck .precheck-heading { padding: 27px 21px 25px; }
  .workspace-panel.precheck .precheck-heading h2 { margin-top: 18px; font-size: 25px; }
  .workspace-panel.precheck .precheck-heading p { font-size: 13px; }
  .precheck-points { margin-top: 20px; gap: 7px; }
  .precheck-points span { padding-right: 10px; font-size: 11px; }
  .workspace-panel.precheck .step-section[data-step="1"] { padding: 24px 20px 24px; }
  .workspace-panel.precheck .message { margin: 18px 20px 0; }
  .intro-panel { padding: 0 3px; }
  .intro-panel h1 { margin-top: 14px; font-size: 36px; }
  .intro-panel h1 em { display: block; }
  .hero-description { font-size: 16px; }
  .notice-card { margin: 20px 0 12px; align-items: flex-start; }
  .notice-card { padding: 10px 12px; gap: 8px; align-items: center; }
  .notice-card svg { width: 17px; min-width: 17px; }
  .notice-card > div { min-width: 0; display: block; }
  .notice-card p { margin: 0; overflow: hidden; font-size: 10px; line-height: 1.35; letter-spacing: -.025em; white-space: nowrap; text-overflow: clip; }
  .operation-guide { padding: 22px 18px 8px; border-radius: 20px; }
  .guide-query-link { padding: 12px 13px; border-radius: 16px; }
  .operation-guide-heading h2 { font-size: 24px; }
  .operation-guide-heading p { font-size: 14px; }
  .guide-list { margin-top: 13px; }
  .guide-step { padding: 17px 0; grid-template-columns: 46px minmax(0, 1fr); gap: 13px; }
  .guide-number { width: 46px; height: 46px; border-radius: 13px; font-size: 14px; }
  .guide-content h3 { font-size: 17px; }
  .guide-content p { font-size: 13px; }
  .guide-action { min-height: 39px; padding: 0 12px; font-size: 13px; }
  .product-switcher { overflow: hidden; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-tab { min-height: 76px; padding: 8px 4px; flex-direction: column; justify-content: center; gap: 6px; }
  .product-name { width: 100%; font-size: 13px; text-align: center; }
  .product-tag { min-width: 42px; padding: 5px 8px; font-size: 12px; }
  .workspace-panel.identified .product-switcher { min-height: 112px; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 9px 10px; }
  .workspace-panel.identified .identified-label { grid-column: 1; grid-row: 1; font-size: 11px; }
  .workspace-panel.identified .stock-indicator { grid-column: 2; grid-row: 1; font-size: 11px; }
  .workspace-panel.identified .product-tab.active { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; min-height: 52px; padding: 8px 12px; }
  .workspace-panel.identified .product-tab.active .product-name { width: auto; font-size: 17px; }
  .flow-card { padding: 23px 18px; border-radius: 20px; }
  .flow-heading h2 { font-size: 21px; }
  .service-badge { padding: 6px 8px; }
  .stepper { margin: 24px 0 28px; }
  .stepper li { justify-content: center; }
  .stepper li div { display: none; }
  .stepper li:not(:last-child)::after { width: calc(100% - 52px); right: calc(-50% + 26px); }
  .section-title { align-items: flex-start; }
  .confirm-grid { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column-reverse; }
  .primary-button.compact, .secondary-button, .invoice-button { width: 100%; min-height: 46px; }
  .utility-body form { flex-direction: column; }
  .utility-body form button { min-height: 43px; }
  .batch-query-form { grid-template-columns: 1fr; }
  .reuse-form { grid-template-columns: 1fr; }
  .query-shell { width: min(100% - 28px, 620px); padding: 44px 0 56px; }
  .query-return { min-height: 38px; padding: 0 11px; font-size: 12px; }
  .query-card { padding: 23px 18px; border-radius: 21px; }
  .query-tabs { margin: -5px -5px 24px; }
  .query-card-heading { align-items: flex-start; }
  .query-card-heading h2 { font-size: 19px; }
  .status-form-row { grid-template-columns: 1fr; }
  .status-form button, .status-batch-form button { width: 100%; }
  .batch-actions, .batch-result-actions { flex-direction: column; }
  .batch-result-summary { align-items: flex-start; flex-direction: column; }
  .batch-result-stats { justify-content: flex-start; }
  .subscription-dialog { padding: 27px 20px 22px; }
  .subscription-dialog h2 { font-size: 22px; }
  .subscription-dialog textarea { min-height: 125px; }
  .tutorial-dialog { padding: 25px 18px 18px; }
  .tutorial-dialog h2 { font-size: 22px; }
  .tutorial-steps { grid-template-columns: 1fr; }
  footer { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
