:root {
  color-scheme: dark;
  --bg: #080b16;
  --panel: #0e1323;
  --panel-2: #121a2e;
  --line: rgba(164, 180, 218, .16);
  --text: #f4f7ff;
  --muted: #9aa7c2;
  --accent: #7c8cff;
  --accent-2: #50e3c2;
  --danger: #ff718b;
  --warning: #f7bd65;
  --success: #59d9a6;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 10% 12%, rgba(85, 108, 255, .16), transparent 32rem), radial-gradient(circle at 90% 84%, rgba(52, 213, 184, .08), transparent 28rem), var(--bg); }
body[data-product="claude"] { --accent: #e6925f; --accent-2: #ffc27d; }
body[data-product="grok"] { --accent: #4bc6f3; --accent-2: #8fe7ff; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
[hidden] { display: none !important; }

.shell { width: min(1180px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(44px, 8vw, 110px); padding: 52px 0; }
.intro { min-height: 680px; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(124, 140, 255, .5); border-radius: 12px; color: #fff; background: linear-gradient(145deg, #5f70f8, #855bf6); box-shadow: 0 10px 34px rgba(90, 100, 246, .28); }
.intro-copy { margin: auto 0 56px; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: var(--accent-2); font-size: .75rem; line-height: 1.4; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; max-width: 620px; font-size: clamp(2.7rem, 5vw, 4.9rem); line-height: 1.04; letter-spacing: -.055em; }
.lede { max-width: 470px; margin: 26px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 16px; color: #66718b; transition: color .25s ease; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: 16px; width: 1px; height: 28px; background: var(--line); }
.steps li > span { font-size: .74rem; font-variant-numeric: tabular-nums; padding-top: 3px; }
.steps strong, .steps small { display: block; }
.steps strong { margin-bottom: 4px; font-size: .94rem; }
.steps small { font-size: .78rem; line-height: 1.45; }
.steps li.active { color: var(--text); }
.steps li.active > span { color: var(--accent-2); }
.steps li.done { color: #8792aa; }
.product-guide { margin: auto 0; }
.product-guide > h1 { max-width: 520px; font-size: clamp(2.55rem, 4.2vw, 4.2rem); }
.product-guide .lede { margin-top: 20px; }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 34px 0 16px; }
.guide-head h2 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.guide-head-actions { display: flex; align-items: center; gap: 8px; }
.guide-channel { padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 99px; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: .72rem; }
.guide-toggle { display: none; padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; color: #cdd5e7; background: rgba(255,255,255,.03); font-size: .72rem; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.guide-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); }
.guide-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: .68rem; font-weight: 800; }
.guide-steps h3 { margin: 0 0 4px; color: #e7ecf9; font-size: .82rem; }
.guide-steps p { margin: 0; color: #8390aa; font-size: .75rem; line-height: 1.5; }
.guide-steps a { display: inline-block; margin-top: 7px; color: var(--accent-2); font-size: .78rem; text-decoration: none; }
.guide-steps a::after { content: " ↗"; }
.guide-steps a:hover { text-decoration: underline; }
.guide-visual { margin: 12px 0 0; }
.guide-visual a { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.02); }
.guide-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1863 / 848; object-fit: cover; transition: transform .2s ease, filter .2s ease; }
.guide-visual a span { position: absolute; right: 9px; bottom: 9px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; color: #fff; background: rgba(8,11,22,.82); backdrop-filter: blur(8px); font-size: .7rem; }
.guide-visual a:hover img { transform: scale(1.012); filter: brightness(1.06); }
.guide-visual figcaption { margin-top: 7px; color: #71809d; font-size: .7rem; line-height: 1.45; }

.workspace { position: relative; min-height: 680px; padding: clamp(28px, 4vw, 46px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(150deg, rgba(20, 28, 50, .97), rgba(12, 17, 31, .98)); box-shadow: 0 32px 90px rgba(0, 0, 0, .38); overflow: hidden; }
.workspace::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); opacity: .75; }
.workspace-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
.workspace h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.03em; }
.secure-badge { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(80, 227, 194, .18); border-radius: 99px; color: #8be8d1; background: rgba(80, 227, 194, .06); font-size: .75rem; }
.workspace-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: -10px 0 26px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #0a0f1e; }
.workspace-tab { min-height: 42px; border: 0; border-radius: 10px; color: #7f8ca8; background: transparent; font-size: .84rem; font-weight: 720; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.workspace-tab:hover { color: #dfe6f7; }
.workspace-tab.active { color: #fff; background: color-mix(in srgb, var(--accent) 18%, #12192a); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent); }
.workspace-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 24%, transparent); outline-offset: 2px; }
label, legend { display: block; margin-bottom: 10px; color: #dbe2f4; font-size: .88rem; font-weight: 650; }
fieldset { margin: 0 0 25px; padding: 0; border: 0; }
.input-action { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input[type="text"], textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; outline: 0; color: var(--text); background: #0a0f1e; transition: border-color .2s ease, box-shadow .2s ease; }
input[type="text"] { height: 52px; padding: 0 16px; font-size: 1rem; letter-spacing: .025em; }
textarea { min-height: 126px; padding: 15px 16px; resize: vertical; line-height: 1.6; }
textarea.concealed { -webkit-text-security: disc; font-family: monospace; letter-spacing: .08em; }
input:focus, textarea:focus { border-color: rgba(124, 140, 255, .8); box-shadow: 0 0 0 3px rgba(124, 140, 255, .12); }
::placeholder { color: #55617a; }
.field-help { margin: 9px 0 0; color: #7785a2; font-size: .78rem; line-height: 1.6; }
.button { min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; color: white; font-size: .9rem; font-weight: 760; transition: transform .15s ease, filter .15s ease, border-color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07); }
.button.primary { background: linear-gradient(135deg, #6678ff, #8264f4); box-shadow: 0 10px 28px rgba(97, 102, 242, .22); }
.button.secondary { border-color: var(--line); color: #dce3f4; background: #151d31; }
.button.wide { width: 100%; margin-top: 26px; }
.button.loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice { display: grid; gap: 5px; margin-top: 20px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: #cbd4e8; background: rgba(126, 145, 188, .07); font-size: .86rem; line-height: 1.55; }
.notice small { color: #74809a; font-size: .7rem; font-variant-numeric: tabular-nums; }
.notice.success { border-color: rgba(89, 217, 166, .23); color: #a9efd2; background: rgba(89, 217, 166, .07); }
.notice.error { border-color: rgba(255, 113, 139, .24); color: #ffafbd; background: rgba(255, 113, 139, .07); }
.notice.warning { border-color: rgba(247, 189, 101, .25); color: #f9d59e; background: rgba(247, 189, 101, .07); }
.service-status { display: flex; gap: 8px; margin-top: 18px; padding: 12px 14px; border-left: 3px solid #7f8ba5; color: #aab5ca; background: rgba(127,139,165,.07); font-size: .8rem; line-height: 1.5; }
.service-status strong { color: #dbe2f4; white-space: nowrap; }
.service-status.normal { border-color: var(--success); }
.service-status.unstable { border-color: var(--warning); }
.service-status.abnormal { border-color: var(--danger); }

.gift-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(124, 140, 255, .055); }
.gift-card > div { display: flex; align-items: center; gap: 14px; min-width: 0; }
.product-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; color: #bdc5ff; background: #20294d; font-size: .75rem; font-weight: 800; }
.gift-card small { display: block; margin-bottom: 3px; color: #7784a0; font-size: .7rem; }
.gift-card h3 { margin: 0; overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.state-pill { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(89, 217, 166, .2); border-radius: 99px; color: #85e3bd; background: rgba(89, 217, 166, .07); font-size: .7rem; }
.method-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.method-card { position: relative; margin: 0; }
.method-card input { position: absolute; opacity: 0; pointer-events: none; }
.method-card > span { display: block; min-height: 76px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #0c1222; cursor: pointer; transition: border-color .2s, background .2s; }
.method-card strong, .method-card small { display: block; }
.method-card strong { margin-bottom: 6px; color: #dfe6f7; font-size: .84rem; }
.method-card small { color: #71809d; font-size: .72rem; font-weight: 400; line-height: 1.4; }
.method-card input:checked + span { border-color: rgba(124, 140, 255, .72); background: rgba(124, 140, 255, .09); box-shadow: inset 0 0 0 1px rgba(124, 140, 255, .12); }
.method-card input:focus-visible + span { outline: 3px solid rgba(124, 140, 255, .23); }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.text-button { padding: 4px; border: 0; color: #91a2ff; background: transparent; font-size: .78rem; }
.text-button:hover { color: #bbc4ff; }
.check-row { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015); cursor: pointer; }
.check-row.risk { border-color: rgba(247, 189, 101, .2); background: rgba(247, 189, 101, .04); }
.check-row input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--accent); }
.check-row strong, .check-row small { display: block; }
.check-row strong { margin-bottom: 3px; font-size: .82rem; }
.check-row small { color: #7d89a3; font-size: .72rem; font-weight: 400; line-height: 1.45; }

.result-card { padding-top: 20px; text-align: center; }
.result-symbol { display: grid; place-items: center; width: 62px; height: 62px; margin: 5px auto 20px; border: 1px solid rgba(247,189,101,.22); border-radius: 50%; color: var(--warning); background: rgba(247,189,101,.07); font-size: 1.65rem; }
.result-symbol.success { border-color: rgba(89,217,166,.24); color: var(--success); background: rgba(89,217,166,.08); }
.result-symbol.processing { color: var(--accent); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(124,140,255,0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(124,140,255,.14); } }
.result-card > p:not(.section-kicker) { margin: 12px auto 22px; max-width: 420px; color: var(--muted); line-height: 1.65; }
.result-card dl { margin: 0; padding: 8px 18px; border: 1px solid var(--line); border-radius: 14px; text-align: left; background: rgba(255,255,255,.015); }
.result-card dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.result-card dl > div:last-child { border-bottom: 0; }
.result-card dt { color: #74809a; font-size: .76rem; }
.result-card dd { margin: 0; overflow-wrap: anywhere; color: #dbe2f4; font-size: .78rem; text-align: right; }
.result-card dd.missing-value { color: var(--warning); }
.result-actions { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; }
.aftercare { margin-top: 26px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.015); }
.aftercare summary { color: #b9c4dc; font-size: .85rem; cursor: pointer; }
.aftercare form { margin-top: 18px; }
.aftercare .button { margin-top: 14px; }
.claude-refresh-panel { animation: panel-in .2s ease-out; }
.refresh-intro { display: grid; grid-template-columns: 46px 1fr; gap: 14px; margin-bottom: 26px; padding: 16px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 15px; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.refresh-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: 1.35rem; }
.refresh-intro h3 { margin: 0 0 7px; color: #eef2fb; font-size: 1rem; }
.refresh-intro p { margin: 0; color: #8996b0; font-size: .79rem; line-height: 1.55; }
.claude-refresh-panel .field-block + .field-block { margin-top: 22px; }
.refresh-result { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.refresh-result h3 { margin: 0; font-size: 1.35rem; }
.refresh-result .result-symbol { margin-top: 0; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } }
footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: #606d87; font-size: .72rem; line-height: 1.6; text-align: center; }

dialog { width: min(460px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--text); background: #111829; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(2, 4, 11, .78); backdrop-filter: blur(5px); }
.dialog-card { position: relative; padding: 32px; text-align: center; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; color: #71809d; background: transparent; font-size: 1.5rem; }
.dialog-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 18px; border: 1px solid rgba(247,189,101,.3); border-radius: 50%; color: var(--warning); background: rgba(247,189,101,.07); font-weight: 800; }
.dialog-card h2 { margin: 0; font-size: 1.35rem; }
.dialog-card > p { margin: 12px 0 22px; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.dialog-card dl { margin: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; }
.dialog-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dialog-card dl div:last-child { border: 0; }
.dialog-card dt { color: #74809a; font-size: .76rem; }
.dialog-card dd { margin: 0; color: #dce3f4; font-size: .78rem; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

@media (max-width: 850px) {
  .shell { display: block; width: min(680px, calc(100% - 28px)); padding: 26px 0 40px; }
  .intro { min-height: auto; }
  .intro-copy { margin: 64px 0 32px; }
  .product-guide { margin: 58px 0 28px; }
  .guide-toggle { display: inline-flex; }
  .product-guide:not(.expanded) .guide-steps,
  .product-guide:not(.expanded) .guide-visual { display: none; }
  h1 { font-size: clamp(2.55rem, 11vw, 4.4rem); }
  .steps { display: none; }
  .workspace { min-height: 0; border-radius: 22px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 680px); padding-top: 18px; }
  .intro-copy { margin-top: 48px; }
  .product-guide { margin-top: 46px; }
  .product-guide > h1 { font-size: clamp(2.35rem, 10vw, 3.4rem); }
  .lede { font-size: .96rem; }
  .workspace { padding: 24px 18px; }
  .secure-badge { display: none; }
  .input-action { grid-template-columns: 1fr; }
  .input-action .button { width: 100%; }
  .method-options { grid-template-columns: 1fr; }
  .gift-card { align-items: flex-start; }
  .state-pill { max-width: 104px; text-align: center; line-height: 1.35; }
  .result-actions { flex-direction: column; }
  .dialog-card { padding: 30px 20px 22px; }
}

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