:root {
  color-scheme: light;
  --bg: #f8f7fb;
  --surface: #fff;
  --ink: #242039;
  --muted: #615b73;
  --line: #e0dcea;
  --accent: #5843a9;
  --accent-deep: #44318a;
  --lavender: #ede8f9;
  --lime: #dff0bb;
  --error: #992945;
  --radius: 18px;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--lime); }
a { color: var(--accent-deep); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #7e69d0; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; overflow-wrap: anywhere; }
p + p { margin-top: .8em; }
img { max-width: 100%; }
.wrap { width: min(100% - 48px, 1140px); margin-inline: auto; }
.narrow { max-width: 650px; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 5; padding: 10px; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }
.header-inner { height: 75px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-weight: 760; color: var(--ink); }
.brand-mark { display: inline-block; width: 31px; height: 31px; flex: 0 0 auto; background: url("/assets/favicon.svg") center / contain no-repeat; }
.brand-divider { display: inline-block; height: 13px; margin-inline: 8px; border-left: 1px solid #bdb7cc; }
.header nav, .footer nav { display: flex; align-items: center; gap: 24px; }
.header nav a, .footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.header nav a:hover, .footer nav a:hover, .header [aria-current="page"] { color: var(--accent-deep); text-decoration: underline; }
.account-link { margin-left: auto; }
.footer { border-top: 1px solid var(--line); margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 90px; padding-block: 20px; }
.footer .brand-mark { width: 24px; height: 24px; }

button, input, textarea, select { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid #c7bedf;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
}
button:hover, .button:hover { color: var(--accent-deep); background: var(--lavender); }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.primary:hover { background: var(--accent-deep); color: white; }
.small { font-size: 14px; min-height: 38px; padding-inline: 12px; }
button:disabled { opacity: .55; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.text-link { font-weight: 650; }
.small-text, .hint { font-size: 13px; color: var(--muted); }

.hero { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 54px; padding-block: 92px 65px; }
.hero h1 { font-size: clamp(40px, 5vw, 70px); letter-spacing: -.065em; line-height: 1.16; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero-copy > p:not(.hero-note) { margin-top: 20px; max-width: 28em; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }
.hero .actions { margin-block: 28px 12px; }
.product-preview { min-width: 0; border-radius: 24px; padding: clamp(15px, 3vw, 32px); background: radial-gradient(ellipse at 5% 84%, #eeeddb, transparent 61%), linear-gradient(145deg, #ded5f6, #d1c2ef); }
.product-preview figcaption { color: #574966; margin-top: 12px; font-size: 12px; }
.preview-window { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 35px #3e275926; border: 1px solid #bcacdc; }
.window-header { min-height: 42px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { height: 6px; width: 6px; border-radius: 50%; background: #ab9acb; }
.window-body { display: grid; grid-template-columns: .75fr 1.25fr; gap: 13px; padding: 13px; background: #f7f5fb; }
.mock-site { display: grid; align-content: start; justify-items: start; gap: 10px; padding: 12px 3px; }
.mock-site i { display: block; border-radius: 8px; }
.mock-heading { width: 90%; height: 13px; background: #b5a5d9; }
.mock-line { width: 59%; height: 5px; background: #d7d0e5; }
.mock-line.wide { width: 86%; }
.mock-block { width: 100%; height: 105px; border-radius: 9px; background: #e8e3f5; display: grid; place-items: center; overflow: hidden; }
.mock-block span { width: 50%; aspect-ratio: 1; border: 12px solid #bcade3; border-radius: 50%; box-shadow: 14px 8px 0 -3px #ded4f6; transform: rotate(-16deg); }
.mock-panel { border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: var(--surface); font-size: 12px; min-width: 0; }
.mock-panel-title { display: flex; align-items: center; gap: 7px; }
.mock-panel-title .brand-mark { height: 22px; width: 22px; }
.mock-tab { display: flex; flex-wrap: wrap; gap: 4px; justify-content: space-between; margin-top: 16px; font-weight: 650; }
.mock-tab span, .mock-legend { color: var(--muted); font-weight: 400; }
.mock-comment { margin-top: 8px; padding: 9px; border-radius: 7px; background: var(--lavender); overflow-wrap: anywhere; }
.mock-comment p { margin-top: 3px; color: var(--muted); }
.mock-event { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10px; }
.mock-event span { background: #f7e6cb; color: #663a12; border-radius: 4px; padding-inline: 5px; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 75px; }
.path { display: flex; gap: 16px; background: var(--surface); padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); }
.path h2 { font-size: 19px; }
.path p { margin-block: 6px 10px; color: var(--muted); }
.path-icon { display: grid; place-items: center; width: 42px; height: 42px; font-size: 21px; background: var(--lavender); border-radius: 12px; color: var(--accent-deep); flex-shrink: 0; }
.path-icon.alt { background: var(--lime); color: #3f5128; }

.content { padding-block: 48px 76px; }
.page-heading { margin-bottom: 25px; }
.page-heading h1 { font-size: clamp(32px, 4.7vw, 54px); letter-spacing: -.045em; }
.page-heading p { margin-top: 8px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.form-panel, .result-panel, .projects { padding: clamp(16px, 3vw, 25px); }
.form-panel .actions { margin-top: 18px; }
.section-title { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.section-title h2, .form-panel h2, .projects h2 { font-size: 20px; }
.split, .dashboard { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; }
.dashboard { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.project-list { display: grid; margin: 13px 0 20px; gap: 6px; }
.project-list button { justify-content: start; text-align: left; overflow-wrap: anywhere; }
.project-list button[aria-current="true"] { background: var(--lavender); border-color: #bfb0e2; color: var(--accent-deep); }
.project-detail { display: grid; gap: 14px; min-width: 0; }
.invite-panel { margin-bottom: 16px; }
.stack { display: grid; gap: 6px; }
.stack button { justify-self: start; margin-top: 5px; }
.console-form { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(115px, auto) auto; align-items: end; }
.console-form.two { grid-template-columns: minmax(0, 1fr) auto; }
.origin-list { display: grid; gap: 11px; margin-top: 14px; }
.origin { border: 1px solid var(--line); padding: 12px; border-radius: 12px; overflow-wrap: anywhere; }
.origin > p, .origin > form, .origin > .actions, .origin > details { margin-top: 9px; }
.origin h3 { font-size: 16px; }
.members { padding: 0; list-style: none; }
.members li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 7px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.chip { display: inline-block; padding: 2px 7px; border-radius: 5px; background: var(--lavender); color: var(--accent-deep); font-size: 12px; margin: 0 5px 4px 0; }
.chip.ready { background: var(--lime); color: #354820; }
.empty { padding: 16px; border: 1px dashed #d1c7e4; border-radius: 10px; color: var(--muted); }
.status { margin-top: 8px; overflow-wrap: anywhere; color: var(--muted); }
.status:empty { display: none; }
#console-status:not(:empty) { margin-bottom: 14px; }
.status[data-error="true"] { color: var(--error); }

label, .mode legend { color: var(--ink); font-weight: 650; font-size: 14px; }
input:not([type=radio]), textarea, select { display: block; width: 100%; padding: 9px 11px; margin: 4px 0; border: 1px solid #b7afc9; border-radius: 8px; background: var(--surface); color: var(--ink); }
textarea { resize: vertical; overflow-wrap: anywhere; }
#dev-login button { margin-top: 10px; }
.hint { margin: 5px 0 10px; }
.mode { display: flex; gap: 15px; flex-wrap: wrap; padding: 5px 0 12px; margin: 0 0 5px; border: 0; }
.mode input { accent-color: var(--accent); }
.share-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.share-cover, .share-placeholder { width: 100%; aspect-ratio: 1.91; object-fit: cover; display: grid; place-items: center; background: var(--lavender); color: var(--accent-deep); }
.share-copy { padding: 12px; overflow-wrap: anywhere; }
.share-copy p, .share-copy small { color: var(--muted); }
.facts { display: grid; grid-template-columns: minmax(95px, auto) minmax(0, 1fr); gap: 8px; margin-block: 12px; font-size: 14px; }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd small { color: var(--muted); display: block; }

.docs-grid { display: grid; grid-template-columns: 188px minmax(0, 720px); gap: 36px; }
.doc-nav { position: sticky; top: 16px; align-self: start; display: grid; gap: 10px; border-right: 1px solid var(--line); font-size: 14px; padding: 10px; }
.doc-nav a { color: var(--muted); }
.prose section { margin-block: 26px; scroll-margin-top: 24px; }
.prose h2 { font-size: 22px; margin-block: 16px 9px; }
.prose p { max-width: 65ch; }
code { font: .88em ui-monospace, monospace; overflow-wrap: anywhere; }
.prose p code { background: var(--lavender); padding: 2px 3px; border-radius: 3px; }
pre { margin-block: 12px; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 10px; background: #f0edf7; padding: 12px; }
#shift-slot:not(:empty) { padding: 20px; margin-bottom: 10px; border-radius: 12px; background: var(--lime); }

@media (max-width: 850px) {
  .hero { gap: 24px; padding-block: 60px 45px; }
  .dashboard { grid-template-columns: minmax(175px, 220px) minmax(0, 1fr); }
  .console-form { grid-template-columns: 1fr; }
  .console-form button { justify-self: start; }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 70px; height: auto; gap: 10px; flex-wrap: wrap; padding-block: 10px; }
  .header nav { order: 3; width: 100%; padding-block: 2px; gap: 20px; }
  .hero, .paths, .split, .dashboard, .docs-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 40px 28px; }
  .paths { padding-bottom: 48px; }
  .product-preview { max-width: 540px; }
  .footer-inner { align-items: start; flex-direction: column; }
  .footer nav { flex-wrap: wrap; gap: 14px; }
  .content { padding-block: 30px 48px; }
  .doc-nav { position: static; border: 0; display: flex; flex-wrap: wrap; padding: 0; gap: 8px 12px; }
  .doc-nav strong { width: 100%; }
}
