:root {
  color-scheme: dark;
  --bg: #101a19;
  --panel: rgba(33, 53, 50, .9);
  --panel-2: #203532;
  --panel-3: #29433f;
  --line: rgba(103, 143, 141, .28);
  --line-strong: rgba(255, 208, 0, .55);
  --text: #fff9e9;
  --muted: #9db4ad;
  --cyan: #ffd000;
  --cyan-strong: #ffd000;
  --orange: #ffd000;
  --green: #77a88d;
  --danger: #ff6670;
  --purple: #678f8d;
  --shadow: 0 30px 90px rgba(0, 0, 0, .34);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 72% 22%, rgba(119, 168, 141, .18), transparent 36%),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto;
  font: 16px/1.6 Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
input, select, textarea { color-scheme: dark; }

.ambient { position: fixed; pointer-events: none; filter: blur(90px); opacity: .13; border-radius: 50%; z-index: -1; }
.ambient-a { width: 420px; height: 420px; background: #77a88d; right: -180px; top: 8%; }
.ambient-b { width: 300px; height: 300px; background: #ff6670; left: -170px; bottom: -80px; }
.hidden { display: none !important; }
.kicker { color: var(--cyan); font-size: 10px; letter-spacing: .2em; font-weight: 850; }
.muted { color: var(--muted); }

.topbar {
  min-height: 74px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 26, 25, .88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; cursor: pointer; border: 0; background: transparent; padding: 0; text-align: left; }
.brand strong { display: block; letter-spacing: .04em; font-size: 17px; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .22em; line-height: 1.2; }
.ghost-btn, .icon-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: .2s ease;
}
.ghost-btn { padding: 8px 12px; color: #c7d5cf; }
.ghost-btn:hover { border-color: var(--line); background: rgba(255,255,255,.04); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: inline-block; margin-right: 6px; box-shadow: 0 0 12px var(--orange); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 142px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  padding: 55px 0;
}
.intro-panel, .terminal-panel { min-width: 0; }
.eyebrow { color: var(--cyan); font-weight: 750; font-size: 12px; letter-spacing: .2em; display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.intro-panel h1 { margin: 18px 0; font-size: clamp(42px, 5vw, 70px); line-height: 1.07; letter-spacing: -.045em; }
.intro-panel h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, var(--cyan), #b7f5ff 68%, #fff); background-clip: text; -webkit-background-clip: text; }
.intro-panel-simple { display: flex; flex-direction: column; justify-content: center; }
.intro-panel-simple .single-title { margin-top: 0; max-width: none; font-size: clamp(44px, 5.4vw, 76px); white-space: nowrap; }
.intro-panel > p { max-width: 500px; color: #a9bbb4; font-size: 17px; }
.assurance-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 30px 0; }
.assurance-row span { color: #a8bbc7; font-size: 14px; }
.assurance-row b { color: var(--cyan); font-size: 11px; margin-right: 5px; }

.terminal-panel, .surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(46,72,68,.94), rgba(20,34,32,.97));
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05);
}
.terminal-panel { padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden; }
.terminal-panel::before { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; top: -110px; border: 1px solid rgba(255,208,0,.28); border-radius: 50%; box-shadow: 0 0 0 24px rgba(119,168,141,.04), 0 0 0 48px rgba(119,168,141,.025); pointer-events: none; }
.terminal-head, .surface-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; position: relative; }
.terminal-head h2, .surface-head h2 { margin: 2px 0 0; font-size: 26px; letter-spacing: -.02em; }
.terminal-title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.terminal-notice-link { padding: 0; border: 0; background: transparent; color: var(--cyan); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; cursor: pointer; }
.terminal-notice-link:hover, .terminal-notice-link:focus-visible { color: var(--text); }
.terminal-head p, .surface-head p { margin: 4px 0 0; color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a9bbb4;
  font-size: 12px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.pill.success { color: var(--green); border-color: rgba(119,168,141,.38); background: rgba(119,168,141,.1); }
.pill.warning { color: var(--orange); border-color: rgba(255,208,0,.38); background: rgba(255,208,0,.09); }
.pill.danger { color: var(--danger); border-color: rgba(255,102,112,.38); background: rgba(255,102,112,.09); }
.pill.info { color: var(--cyan); border-color: rgba(255,208,0,.38); background: rgba(255,208,0,.08); }

.steps { list-style: none; padding: 0; margin: 28px 0 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: #839d96; }
.steps li:not(:last-child)::after { content: ""; position: absolute; height: 1px; left: 58%; right: -42%; top: 17px; background: var(--line); }
.steps li.done:not(:last-child)::after { background: var(--green); }
.steps li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #1a2b28; font-weight: 800; z-index: 1; }
.steps b { display: block; font-size: 12px; }
.steps small { display: block; font-size: 10px; }
.steps .active { color: var(--text); }
.steps .active > span { color: #17201d; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 24px rgba(255,208,0,.22); }
.steps .active b { color: var(--cyan); }
.steps .done > span { color: transparent; position: relative; background: var(--green); border-color: var(--green); box-shadow: 0 0 22px rgba(119,168,141,.2); }
.steps .done > span::after { content: "✓"; color: #06131d; position: absolute; }

.form-stage { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: rgba(15,27,25,.62); }
.field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.field-head label { font-weight: 750; }
.field-head span { font-size: 12px; color: var(--muted); }
.code-input-wrap { min-height: 54px; display: flex; align-items: center; border: 1px solid #598987; border-radius: 11px; background: rgba(17,30,28,.96); transition: .2s; }
.code-input-wrap:focus-within, input:focus, select:focus, textarea:focus { border-color: var(--cyan) !important; outline: 0; box-shadow: 0 0 0 3px rgba(255,208,0,.12); }
.code-icon { width: 24px; margin-left: 14px; color: #6b8797; text-align: center; }
.code-input-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; padding: 0 10px; font-size: 16px; letter-spacing: .04em; }
.code-input-wrap input::placeholder, input::placeholder, textarea::placeholder { color: #678f8d; letter-spacing: 0; }
.code-input-wrap button { align-self: stretch; border: 0; border-left: 1px solid var(--line); padding: 0 14px; color: var(--cyan); background: transparent; cursor: pointer; }
.helper-text { color: var(--muted); font-size: 12px; margin: 10px 0 18px; }
.helper-text i { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid #598987; border-radius: 50%; font-size: 10px; margin-right: 5px; font-style: normal; }
.primary-btn:disabled, .secondary-btn:disabled { opacity: .58; cursor: wait; transform: none; }
.primary-btn, .secondary-btn {
  min-height: 44px;
  border-radius: 11px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, filter .2s, border-color .2s, background .2s;
}
.primary-btn { border: 0; color: #18201d; background: var(--cyan); box-shadow: 0 12px 34px rgba(255,208,0,.16); }
.primary-btn.block { width: 100%; }
.primary-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-btn:active, .secondary-btn:active { transform: translateY(1px); }
.secondary-btn { border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--text); }
.secondary-btn:hover { border-color: var(--line-strong); background: rgba(255,208,0,.06); }
.button-row { display: flex; align-items: center; gap: 10px; }
.button-row > * { flex: 1; }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.quick-links button { min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); cursor: pointer; transition: .2s; }
.quick-links button:hover { border-color: var(--line-strong); background: rgba(255,208,0,.05); }
.quick-links button > span { flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: rgba(119,168,141,.16); color: var(--cyan); font-weight: 800; }
.quick-links b { display: block; font-size: 12px; }
.quick-links small { display: block; color: var(--muted); font-size: 10px; }
.batch-entry-link, .batch-resume-link { width: 100%; min-height: 45px; margin-top: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(119,168,141,.06); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 750; }
.batch-entry-link:hover, .batch-resume-link:hover { border-color: var(--line-strong); background: rgba(255,208,0,.06); }
.batch-resume-link { color: var(--cyan); }
.batch-stage { display: grid; gap: 16px; }
.batch-stage-head h3 { margin: 4px 0 2px; font-size: 21px; }
.batch-stage-head p, .batch-helper { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.batch-input-label { color: #e0e9e3; font-size: 13px; font-weight: 750; }
.batch-code-input { width: 100%; min-height: 166px; resize: vertical; padding: 12px 14px; border: 1px solid #598987; border-radius: 12px; outline: none; background: rgba(17,30,28,.96); color: var(--text); font: 12px/1.75 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.batch-code-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(255,208,0,.12); }
.batch-demo-link { justify-self: start; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--cyan); cursor: pointer; font-size: 12px; }
.batch-groups { display: grid; gap: 8px; }
.batch-groups > div { padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(119,168,141,.07); }
.batch-groups strong { color: var(--text); font-size: 15px; }
.batch-weapon-pickers { display: grid; gap: 12px; }
.batch-weapon-pickers h4 { margin: 0; color: var(--text); font-size: 14px; }
.batch-weapon-picker { display: grid; gap: 9px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(119,168,141,.055); }
.batch-weapon-picker b, .batch-weapon-picker small { display: block; }
.batch-weapon-picker b { font-size: 13px; }
.batch-weapon-picker small { color: var(--muted); font-size: 11px; }
.batch-weapon-picker label { color: var(--muted); font-size: 12px; }
.batch-weapon-picker select { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #598987; border-radius: 9px; outline: none; background: #172a27; color: var(--text); cursor: pointer; font-size: 13px; }
.batch-weapon-picker select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(255,208,0,.12); }
.batch-progress-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--muted); font-size: 12px; }
.batch-progress-meta strong { color: var(--text); }
.batch-preview-note { margin: -4px 0 0; color: var(--cyan); font-size: 11px; line-height: 1.6; }
.batch-order-row { display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.batch-groups > .batch-sort-card { border: 1px solid var(--line); }
.batch-groups .batch-sort-card b { font-size: 15px; }
.batch-groups .batch-sort-card small { margin-top: 3px; font-size: 11px; }
.batch-reselect-link { margin-left: 8px; padding: 0; border: 0; background: transparent; color: var(--cyan); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.batch-reselect-link:hover, .batch-reselect-link:focus-visible { color: var(--text); }
.batch-reselect-link:disabled { opacity: .45; cursor: not-allowed; }
.batch-order-row.sortable { cursor: grab; }
.batch-order-row.sortable:active { cursor: grabbing; }
.batch-order-row.dragging { opacity: .5; }
.batch-order-row.drop-target { background: rgba(255,208,0,.12); outline: 1px solid var(--cyan); outline-offset: -1px; }
.batch-order-controls { display: flex; align-items: center; gap: 4px; }
.batch-drag-handle { padding: 0 5px; color: var(--muted); font-size: 18px; line-height: 1; user-select: none; }
.batch-order-controls button { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: rgba(119,168,141,.09); color: var(--text); cursor: pointer; font-size: 17px; }
.batch-order-controls button:hover:not(:disabled), .batch-order-controls button:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.batch-order-controls button:disabled { opacity: .3; cursor: not-allowed; }
.batch-order-index { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: rgba(119,168,141,.13); color: var(--cyan); font-size: 11px; font-weight: 850; }
.batch-order-row b, .batch-order-row small { display: block; overflow-wrap: anywhere; }
.batch-order-row b { font-size: 12px; }
.batch-order-row small { color: var(--muted); font-size: 10px; }
.batch-order-row em { font-size: 11px; font-style: normal; white-space: nowrap; color: var(--muted); }
.batch-order-row em.success { color: var(--green); }
.batch-order-row em.warning { color: var(--cyan); }
.batch-continue-note { padding: 14px; border: 1px solid rgba(255,208,0,.35); border-radius: 12px; background: rgba(255,208,0,.07); }
.batch-continue-note p { margin: 0; color: #d4ded5; font-size: 12px; line-height: 1.75; }
.batch-review-note { margin: 5px 0 0; color: #d4ded5; font-size: 12px; line-height: 1.75; }
.batch-review-note { padding: 13px; border: 1px solid rgba(255,102,112,.4); border-radius: 10px; color: #ffd3d6; }

.stack-form { display: grid; gap: 15px; }
.stack-form label { display: grid; gap: 7px; color: #d8e2dc; font-size: 14px; font-weight: 700; }
.stack-form input, .stack-form select, .stack-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #598987;
  border-radius: 10px;
  background: rgba(17,30,28,.96);
  color: var(--text);
  padding: 10px 12px;
  font-weight: 500;
}
.stack-form textarea { min-height: 100px; resize: vertical; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(255,255,255,.025); cursor: pointer; transition: .2s; }
.choice-card:hover, .choice-card.selected { border-color: var(--cyan); background: rgba(255,208,0,.07); }
.choice-card input { position: absolute; opacity: 0; }
.choice-card b, .choice-card small { display: block; }
.choice-card small { color: var(--muted); font-weight: 500; margin-top: 3px; }
.selection-card, .summary-card { border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: rgba(119,168,141,.08); }
.selection-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.selection-card b, .selection-card small { display: block; }
.selection-card small { color: var(--muted); }
.binding-layout, .binding-form { display: grid; gap: 16px; }
.binding-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: rgba(119,168,141,.08); }
.item-result { min-height: 76px; display: flex; align-items: center; gap: 5px; font-size: 18px; }
.item-result span { color: var(--muted); }
.item-result strong { color: var(--text); }
.friend-code-card { display: grid; gap: 12px; }
.friend-code-card label { color: #e0e9e3; font-size: 16px; font-weight: 750; }
.friend-code-card input { width: 100%; min-height: 56px; border: 1px solid #598987; border-radius: 11px; background: rgba(17,30,28,.96); color: var(--text); padding: 0 15px; font-size: 17px; letter-spacing: .03em; }
.weapon-stage { display: grid; gap: 15px; }
.weapon-picker-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.weapon-picker-head h3 { margin: 4px 0 0; font-size: 21px; }
.weapon-picker-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.weapon-upgrade-notice { margin: 0; padding: 10px 13px; border-left: 3px solid var(--cyan); border-radius: 0 8px 8px 0; background: rgba(255,208,0,.08); color: #f3e7aa; font-size: 13px; line-height: 1.65; }
.weapon-count { flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.weapon-select-wrap { display: grid; gap: 8px; }
.weapon-select-toggle { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 15px; border: 1px solid #598987; border-radius: 11px; background: rgba(17,30,28,.96); color: var(--text); cursor: pointer; text-align: left; transition: .18s ease; }
.weapon-select-toggle:hover, .weapon-select-toggle.open { border-color: var(--cyan); background: rgba(255,208,0,.045); }
.weapon-select-toggle small, .weapon-select-toggle strong { display: block; }
.weapon-select-toggle small { color: var(--muted); font-size: 10px; }
.weapon-select-toggle strong { margin-top: 2px; font-size: 14px; }
.weapon-select-toggle > i { color: var(--cyan); font-size: 20px; font-style: normal; transition: transform .18s ease; }
.weapon-select-toggle.open > i { transform: rotate(180deg); }
.weapon-dropdown { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(16,29,27,.98); box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.weapon-search { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #598987; border-radius: 11px; background: rgba(17,30,28,.96); }
.weapon-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(255,208,0,.12); }
.weapon-search span { color: var(--muted); font-size: 19px; }
.weapon-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.weapon-list { max-height: 220px; display: grid; grid-template-columns: 1fr; gap: 5px; overflow-y: auto; padding: 1px 4px 1px 1px; scrollbar-color: #598987 transparent; }
.weapon-option { min-width: 0; min-height: 43px; display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(119,168,141,.055); color: var(--text); cursor: pointer; text-align: left; transition: .18s ease; }
.weapon-option:hover { border-color: #77a88d; background: rgba(119,168,141,.11); }
.weapon-option.selected { border-color: var(--cyan); background: rgba(255,208,0,.11); box-shadow: 0 0 0 2px rgba(255,208,0,.08); }
.weapon-option b { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.weapon-option i { color: var(--cyan); font-style: normal; font-weight: 900; text-align: right; }
.weapon-empty { padding: 25px 10px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); text-align: center; }
.weapon-selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(119,168,141,.065); }
.weapon-selection-bar small, .weapon-selection-bar strong { display: block; }
.weapon-selection-bar small { color: var(--muted); font-size: 10px; }
.weapon-selection-bar strong { max-width: 190px; overflow: hidden; margin-top: 2px; white-space: nowrap; text-overflow: ellipsis; }
.weapon-actions { display: flex; gap: 8px; }
.weapon-actions button { white-space: nowrap; }
.primary-btn:disabled { cursor: not-allowed; filter: grayscale(.55); opacity: .48; transform: none; }
.supply-items { display: flex; flex-wrap: wrap; gap: 7px; }
.supply-items span { padding: 5px 8px; border-radius: 7px; background: rgba(119,168,141,.14); color: #e7f0e9; font-size: 12px; }
.summary-list { display: grid; gap: 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary-list > div:last-child { border: 0; }
.summary-list span { color: var(--muted); }
.limit-notice { display: grid; gap: 13px; margin-top: 15px; padding: 17px; border: 1px solid rgba(255,208,0,.34); border-radius: 14px; background: linear-gradient(135deg, rgba(255,208,0,.1), rgba(119,168,141,.07)); }
.limit-notice-title { display: flex; align-items: center; gap: 11px; }
.limit-notice-title > span { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--cyan); color: #17201d; font-weight: 950; }
.limit-notice-title b, .limit-notice-title small { display: block; }
.limit-notice-title b { font-size: 15px; }
.limit-notice-title small { color: var(--muted); font-size: 11px; }
.limit-notice p { margin: 0; color: #cbd8d1; font-size: 13px; line-height: 1.75; }
.limit-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.limit-grid > span { min-width: 0; padding: 9px 7px; border: 1px solid var(--line); border-radius: 10px; background: rgba(16,26,25,.5); text-align: center; }
.limit-grid small, .limit-grid b { display: block; }
.limit-grid small { overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.limit-grid b { margin-top: 2px; color: var(--cyan); font-size: 13px; }
.limit-notice .limit-foot { padding-top: 10px; border-top: 1px solid var(--line); color: #fff3b9; }
.limit-notice.compact { margin-top: 0; padding: 14px; gap: 10px; }
.limit-notice.compact .limit-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.progress-hero { position: relative; text-align: center; padding: 16px 0 22px; }
.progress-hero.has-delivery-time { padding-top: 40px; }
.progress-ring { --p: 72%; width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cyan) var(--p), rgba(255,255,255,.08) 0); position: relative; box-shadow: 0 0 40px rgba(255,208,0,.14); }
.progress-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #1b2f2c; }
.progress-ring b { position: relative; font-size: 21px; }
.progress-hero h3 { margin: 0; }
.delivery-time-link { position: absolute; top: 0; right: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.03); color: var(--cyan); font-size: 12px; line-height: 1.5; cursor: pointer; }
.delivery-time-link:hover, .delivery-time-link:focus-visible { color: #fff3a3; outline-color: var(--cyan); }
.progress-hero p { color: var(--muted); margin: 5px 0 0; }
.progress-hero p.compact-status-note { font-size: 13px; }
.timeline { display: grid; gap: 0; margin: 0 0 18px; }
.timeline-item { display: grid; grid-template-columns: 25px 1fr auto; gap: 11px; position: relative; padding-bottom: 17px; }
.timeline-item:not(:last-child)::before { content: ""; width: 1px; position: absolute; left: 12px; top: 22px; bottom: -1px; background: var(--line); }
.timeline-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #304c48; border: 1px solid var(--line); font-size: 11px; z-index: 1; }
.timeline-item.done .timeline-icon { background: var(--green); color: #17201d; border-color: var(--green); }
.timeline-item.active .timeline-icon { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 15px rgba(255,208,0,.22); }
.timeline-item b { display: block; font-size: 13px; }
.timeline-item small { color: var(--muted); }
.live-order-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); overflow: hidden; margin: 0 0 22px; }
.live-order-summary > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: rgba(11,24,22,.96); }
.live-order-summary span { flex: 0 0 auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.live-order-summary b { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.beginner-delivery { display: grid; gap: 16px; }
.beginner-delivery > .block { width: 100%; }
.batch-hero { display: flex; align-items: center; gap: 13px; }
.batch-hero h3, .batch-hero p { margin: 0; }
.batch-hero p { margin-top: 2px; color: var(--muted); font-size: 12px; }
.batch-badge { flex: 0 0 auto; padding: 10px 13px; border-radius: 11px; background: var(--cyan); color: #17201d; font-size: 13px; font-weight: 900; }
.simple-batch-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(16,26,25,.48); }
.simple-batch-card.done { border-color: rgba(119,168,141,.42); background: rgba(119,168,141,.08); }
.simple-batch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.simple-batch-head small, .simple-batch-head b { display: block; }
.simple-batch-head small { color: var(--muted); font-size: 10px; }
.simple-batch-head b { font-size: 16px; }
.simple-batch-head > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #17201d; font-weight: 900; }
.simple-batch-card p { margin: 11px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: #e9f1ec; font-size: 14px; }
.batch-count-note { display: flex; justify-content: space-between; gap: 12px; margin-top: -8px; padding: 0 3px; color: var(--muted); font-size: 11px; }
.batch-count-note b { color: var(--text); font-size: 12px; }
.stack-progress { padding: 5px 0 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack-progress-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 1px 9px; }
.stack-progress-title span { font-size: 18px; font-weight: 800; }
.stack-progress-title b { color: var(--cyan); font-size: 20px; }
.stack-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.075); }
.stack-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #77a88d, var(--cyan)); box-shadow: 0 0 16px rgba(255,208,0,.28); transition: width .25s ease; }
.stack-progress-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 17px; }
.stack-progress-values > div { min-width: 0; padding: 0 14px; border-right: 1px solid var(--line); }
.stack-progress-values > div:first-child { padding-left: 1px; }
.stack-progress-values > div:last-child { padding-right: 1px; border-right: 0; text-align: right; }
.stack-progress-values small, .stack-progress-values strong { display: block; }
.stack-progress-values small { color: var(--muted); font-size: 10px; }
.stack-progress-values strong { margin-top: 2px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.stack-batch-count { margin: 13px 0 0; color: var(--muted); font-size: 11px; text-align: right; }
.continue-reminder { padding: 15px; border: 1px solid rgba(255,208,0,.32); border-radius: 13px; background: rgba(255,208,0,.075); }
.continue-reminder b { color: var(--cyan); }
.continue-reminder p { margin: 4px 0 0; color: #cad7d0; font-size: 13px; line-height: 1.7; }
.batch-complete-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; border: 1px solid rgba(119,168,141,.42); border-radius: 13px; background: rgba(119,168,141,.1); }
.batch-complete-note b, .batch-complete-note span { display: block; }
.batch-complete-note span { color: var(--muted); font-size: 11px; text-align: right; }
.delivery-breakdown { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(16,26,25,.42); }
.delivery-breakdown-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.delivery-breakdown-head b, .delivery-breakdown-head small { display: block; }
.delivery-breakdown-head small { color: var(--muted); font-size: 10px; }
.delivery-resource-list { display: grid; }
.delivery-resource { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.delivery-resource:last-child { border-bottom: 0; }
.delivery-resource b, .delivery-resource small { display: block; }
.delivery-resource b { font-size: 13px; }
.delivery-resource small { color: var(--muted); font-size: 10px; }
.delivery-resource strong { color: #eaf3ed; font-size: 13px; text-align: right; }
.resource-dot { width: 7px; height: 7px; border-radius: 50%; background: #598987; }
.resource-dot.done { background: var(--green); box-shadow: 0 0 10px rgba(119,168,141,.55); }
.resource-dot.active { background: var(--cyan); box-shadow: 0 0 10px rgba(255,208,0,.45); }
.batch-timeline { margin-top: 2px; }

.page-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 60px; min-height: calc(100vh - 142px); }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-title h1 { margin: 3px 0 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; }
.page-title p { margin: 5px 0 0; color: var(--muted); }
.order-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.surface { padding: 24px; }
.order-empty { min-height: 360px; display: grid; place-items: center; text-align: center; padding: 30px; }
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(119,168,141,.1); color: var(--cyan); font-size: 26px; }
.order-empty h3 { margin: 0; }
.order-empty p { max-width: 350px; color: var(--muted); }
.order-result { display: grid; gap: 16px; }
.order-result-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.order-result-head h3 { margin: 0; }
.order-result-head > div { min-width: 0; }
.order-result-head small { color: var(--muted); overflow-wrap: anywhere; }
.order-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.order-metrics div { border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: rgba(255,255,255,.025); }
.order-metrics small, .order-metrics strong { display: block; }
.order-metrics small { color: var(--muted); }
.order-metrics strong { font-size: 18px; margin-top: 2px; }

.demo-hint { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: 12px; margin-top: 16px; background: rgba(255,208,0,.05); }

.modal {
  width: min(560px, calc(100% - 28px));
  max-height: min(88vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--text);
  background: #1b2f2c;
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
  padding: 24px;
}
.modal.compact-modal { width: min(620px, calc(100% - 28px)); }
.modal::backdrop { background: rgba(1,7,12,.75); backdrop-filter: blur(7px); }
.supply-warning-modal { width: min(660px, calc(100% - 28px)); }
.supply-warning-modal .modal-head h3 { margin-top: 2px; font-size: 30px; }
.supply-warning-content { display: grid; gap: 12px; }
.supply-warning-content > p { margin: 0; color: #cbd8d1; line-height: 1.85; }
.supply-warning-content strong { color: var(--cyan); }
.warning-limit-lines { display: grid; gap: 3px; color: #cbd8d1; }
.warning-limit-lines p { margin: 0; font-size: 16px; line-height: 1.75; }
.warning-limit-lines strong { color: var(--cyan); font-weight: 850; }
.batch-explain { display: grid; gap: 7px; padding: 15px; border: 1px solid rgba(255,208,0,.3); border-radius: 13px; background: rgba(255,208,0,.07); }
.batch-explain b { color: var(--cyan); }
.batch-explain span { color: #dce5df; font-size: 13px; }
.batch-preview-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid rgba(255,208,0,.18); border-bottom: 1px solid rgba(255,208,0,.18); }
.batch-preview-row small { color: var(--muted); font-size: 11px; }
.batch-preview-row span { line-height: 1.65; }
.supply-warning-modal .modal-actions { margin-top: 20px; }
.modal-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.modal-head h3 { margin: 2px 0 0; font-size: 23px; }
#noticeModal .modal-head h3 { font-size: clamp(28px, 5vw, 36px); }
.close-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.notice-content { display: grid; gap: 14px; margin-bottom: 22px; color: #b9c9d2; }
.notice-content p { margin: 0; font-size: 16px; line-height: 1.85; }
.notice-content strong { color: var(--cyan); }
#noticeModal > .primary-btn { width: 100%; }
.delivery-time-modal { width: min(500px, calc(100% - 28px)); }
.delivery-time-content { display: grid; gap: 14px; margin-bottom: 20px; }
.delivery-time-section { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.delivery-time-section h4 { margin: 0 0 8px; color: var(--text); font-size: 14px; }
.delivery-time-section p { margin: 0; color: #cbd8d1; font-size: 13px; line-height: 1.7; }
.delivery-time-value { display: block; color: var(--cyan); font-weight: 800; }
.delivery-time-rows { display: grid; }
.delivery-time-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.delivery-time-rows > div:first-child { border-top: 0; }
.delivery-time-rows span { color: #cbd8d1; }
.delivery-time-rows strong { flex: 0 0 auto; color: var(--cyan); font-weight: 800; }
.delivery-time-limit { margin: 0; padding: 11px 13px; border: 1px solid rgba(255,208,0,.3); border-radius: 11px; background: rgba(255,208,0,.07); color: #eee6bd; font-size: 12px; line-height: 1.7; }
.delivery-time-notes { display: grid; gap: 5px; }
.delivery-time-notes p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.delivery-time-dismiss { width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.modal-actions button { min-width: 110px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 30; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: #29423f; box-shadow: var(--shadow); transition: .25s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-footer { min-height: 68px; padding: 18px clamp(18px, 4vw, 64px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #617986; font-size: 12px; }

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; max-width: 650px; padding: 40px 0 54px; gap: 34px; }
  .intro-panel { text-align: center; }
  .intro-panel > p { margin-left: auto; margin-right: auto; }
  .eyebrow, .assurance-row { justify-content: center; }
  .intro-panel h1 { font-size: clamp(38px, 9vw, 58px); }
  .order-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { min-height: 66px; padding: 0 15px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .site-footer { display: none; }
  .shell { min-height: calc(100vh - 66px); }
  .page-shell { width: min(100% - 24px, 650px); padding: 28px 0 40px; min-height: calc(100vh - 66px); }
  .page-title { align-items: flex-start; }

}

@media (max-width: 600px) {
  .live-order-summary { grid-template-columns: 1fr; }
  .shell { width: min(100% - 24px, 650px); padding: 28px 0 38px; }
  .intro-panel h1 { margin: 13px 0; }
  .intro-panel-simple .single-title { font-size: clamp(40px, 13vw, 52px); }
  .eyebrow { max-width: 100%; flex-wrap: wrap; font-size: 10px; letter-spacing: .13em; }
  .eyebrow span { flex: 0 0 22px; }
  .intro-panel > p { font-size: 15px; }
  .assurance-row { margin: 23px 0; gap: 10px 16px; }
  .terminal-panel { padding: 20px 14px; border-radius: 18px; }
  .terminal-head { padding: 0 5px; }
  .terminal-head h2 { font-size: 23px; }
  .steps { margin: 24px 0 20px; }
  .steps li div { display: none; }
  .steps li > span { width: 32px; height: 32px; border-radius: 9px; }
  .steps li:not(:last-child)::after { top: 15px; }
  .form-stage { padding: 17px 14px; }
  .limit-grid, .limit-notice.compact .limit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limit-grid > span:last-child { grid-column: 1 / -1; }
  .batch-hero { align-items: flex-start; }
  .delivery-breakdown-head { align-items: flex-start; }
  .delivery-resource { padding: 11px 12px; }
  .delivery-resource strong { max-width: 118px; }
  .weapon-list { max-height: 220px; }
  .weapon-option { grid-template-columns: minmax(0, 1fr) 18px; padding: 7px 10px; }
  .weapon-selection-bar { align-items: stretch; flex-direction: column; padding: 12px; }
  .weapon-selection-bar strong { max-width: none; }
  .weapon-actions { display: grid; grid-template-columns: .7fr 1.3fr; }
  .code-input-wrap button { padding: 0 11px; }
  .quick-links { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .surface { padding: 18px 15px; }
  .page-title { display: block; }
  .page-title .pill { margin-top: 12px; }
  .order-metrics { grid-template-columns: 1fr; }
  .modal { padding: 19px 16px; }
  .modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .modal-actions button { min-width: 0; }
  .supply-warning-modal .modal-actions { grid-template-columns: 1fr; }
  .toast { width: max-content; max-width: calc(100% - 28px); bottom: 82px; }
}

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