@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/geist-400-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/geist-mono-400-600-latin.woff2) format('woff2'); }
:root {
  --bg: #07080a; --surface: #101116; --sunken: #0b0c10; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --ink: #f4f4f6; --ink-2: #b9bcc6; --ink-3: #8d919c; --accent: #ff5a1f; --accent-hi: #ff7a45; --accent-ink: #1a0700;
  --good: #4fd18b; --warn: #ffb347; --bad: #ff6b6b; --focus: #ffb38a; --paper: #f7f6f2; --paper-ink: #2a2c33;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 'Geist', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-hi); text-decoration: none; } a:hover { text-decoration: underline; }
.wl-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* story side */
.wl-story { position: relative; overflow: hidden; padding: 40px 56px; display: flex; flex-direction: column; gap: 36px;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255,90,31,.16), transparent 55%), radial-gradient(90% 70% at 100% 100%, rgba(251,162,64,.08), transparent 60%), var(--sunken);
  border-right: 1px solid var(--line); }
.wl-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.wl-brand:hover { text-decoration: none; }
/* the story column (caption, isometric plan, loop) is styled in welcome-story.css */

/* form side */
.wl-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 24px; }
.wl-brand-m { display: none; }
.wl-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; width: 100%; max-width: 440px; counter-reset: s; }
.wl-steps li { position: relative; flex: 1; font-size: 13px; color: var(--ink-3); counter-increment: s; }
.wl-steps li::before { content: ''; display: block; height: 3px; border-radius: 3px; background: var(--line-2); margin-bottom: 8px; }
.wl-steps li::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.wl-steps li.is-done::after, .wl-steps li.is-on::after { transform: none; }
.wl-steps li.is-on { color: var(--ink); }
.wl-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); animation: wlin .35s ease both; }
@keyframes wlin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wl-card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; font-weight: 650; }
.wl-sub { margin: 0 0 22px; color: var(--ink-2); }
.wl-sub b { color: var(--ink); font-weight: 600; word-break: break-all; }
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.wl-field { margin-bottom: 14px; }
.wl-opt { color: var(--ink-3); font-weight: 400; }
input:not([type=radio]):not([type=file]) { font: inherit; color: var(--ink); background: var(--sunken); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.25); }
input::placeholder { color: #5d616c; }
.wl-meter { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wl-meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }
.wl-btn { font: 600 15px 'Geist', sans-serif; border: 0; border-radius: 10px; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: background .15s, transform .05s; width: 100%; margin-top: 4px; }
.wl-btn:hover:not(:disabled) { background: var(--accent-hi); }
.wl-btn:active:not(:disabled) { transform: translateY(1px); }
.wl-btn:disabled { opacity: .5; cursor: default; }
.wl-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wl-btn.is-busy { color: transparent; position: relative; }
.wl-btn.is-busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent-ink); border-right-color: transparent; animation: wlspin .7s linear infinite; }
.wl-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.wl-btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.04); }
.wl-err { margin: 0; color: var(--bad); font-size: 13px; }
.wl-note { color: var(--ink-3); font-size: 13px; min-height: 1em; margin: 10px 0 0; }
.wl-alt { margin: 18px 0 0; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.wl-fine { margin: 14px 0 0; color: var(--ink-3); font-size: 13px; text-align: center; }
.wl-foot { color: var(--ink-3); font-size: 13px; margin: 0; }
.wl-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,90,31,.12); margin-bottom: 18px; }
.wl-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wl-icon-ok { background: rgba(255,90,31,.12); } .wl-icon-ok svg { stroke: var(--accent); stroke-width: 2; }
.wl-loading { display: grid; gap: 14px; min-height: 160px; align-content: start; }
.wl-loading i { display: block; height: 42px; border-radius: 10px; background: #17181e linear-gradient(100deg, transparent 30%, rgba(255,255,255,.05) 50%, transparent 70%) 0 0 / 250% 100% no-repeat; }
.wl-loading i:nth-child(1) { height: 26px; width: 62%; border-radius: 7px; } .wl-loading i:nth-child(2) { height: 14px; width: 86%; border-radius: 6px; margin-bottom: 8px; }
.wl-loading i:nth-child(5) { height: 46px; margin-top: 6px; background-color: rgba(255,90,31,.16); }
.wl-spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: wlspin .8s linear infinite; }
@keyframes wlspin { to { transform: rotate(360deg); } }

.wl-seg { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.wl-seg legend { font-size: 13px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; padding: 0; }
.wl-seg label { flex-direction: row; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; color: var(--ink); font-size: 14px; }
.wl-seg label:has(input:checked) { border-color: var(--accent); background: rgba(255,90,31,.08); }
.wl-seg input { accent-color: var(--accent); margin: 0; }

.wl-drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.wl-drop:hover, .wl-drop.is-over, .wl-drop:focus-visible { border-color: var(--accent); background: rgba(255,90,31,.06); outline: none; }
.wl-drop svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.wl-drop span { color: var(--ink-3); font-size: 13px; }
.wl-drop.is-locked { pointer-events: none; opacity: .5; }
.wl-files { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.wl-file { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--sunken); }
.wl-file-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.wl-file-name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-file-size { color: var(--ink-3); font: 13px 'Geist Mono', monospace; white-space: nowrap; }
.wl-bar { height: 4px; background: var(--line); border-radius: 4px; margin: 10px 0 8px; overflow: hidden; }
.wl-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.wl-file.is-ok .wl-bar i { background: var(--accent); }
.wl-file.is-bad .wl-bar i { background: var(--bad); }
.wl-file-status { font-size: 13px; color: var(--ink-2); display: flex; gap: 6px; align-items: baseline; }
.wl-file.is-ok .wl-file-status { color: var(--ink); }
.wl-file.is-bad .wl-file-status { color: var(--bad); }
.wl-hash { font: 13px/1.4 'Geist Mono', monospace; color: var(--ink-3); margin-top: 4px; word-break: break-all; }

.wl-build { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 4px; }
.wl-build li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 8px 0; color: var(--ink-3); transition: color .3s; }
.wl-build li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); margin-top: 2px; box-sizing: border-box; }
.wl-build li.is-run { color: var(--ink); } .wl-build li.is-run::before { border-color: var(--accent); border-right-color: transparent; animation: wlspin .8s linear infinite; }
.wl-build li.is-ok { color: var(--ink); }
.wl-build li.is-ok::before { border: 0; background: var(--accent); }
.wl-build li.is-ok::after { content: ''; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%231a0700' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.wl-build small { display: block; color: var(--ink-3); font-size: 13px; }
.wl-projects { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.wl-project { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--sunken); }
.wl-project b { display: block; } .wl-project small { color: var(--ink-3); }
.wl-chip { font-size: 13px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.wl-chip.is-ready { color: var(--accent-hi); border-color: rgba(255,90,31,.45); }
.wl-project .wl-btn { width: auto; margin: 0; padding: 8px 12px; font-size: 13.5px; }

@media (max-width: 900px) {
  .wl-shell { grid-template-columns: 1fr; }
  .wl-story { display: none; }
  .wl-brand-m { display: inline-flex; }
  .wl-main { justify-content: flex-start; padding: 28px 16px; }
  .wl-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
