:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #252434;
  background: #f7f7fa;
  --purple: #6744bf;
  --ink: #252434;
  --muted: #6c6a79;
  --line: #e4e2ea;
  --tint: #f0ebfb;
}
* { box-sizing: border-box }
body { margin: 0 }
button, input, textarea { font: inherit }
button, a { -webkit-tap-highlight-color: transparent }
button { cursor: pointer; color: inherit }
button:disabled { cursor: default }
button, input, textarea { border: 1px solid var(--line) }
a { color: inherit }
:focus-visible { outline: 3px solid #9271de; outline-offset: 3px }
[hidden] { display: none !important }
h1, h2, h3, p { margin: 0 }
ui-icon { display:inline-block; width:1.2em; height:1.2em; flex:none; background:currentColor; mask-size:contain; mask-repeat:no-repeat }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .6rem; background: white }
.skip:focus { top: 1rem }
.layout { display:grid; grid-template-columns: clamp(218px, 17.75vw, 278px) minmax(0, 1fr); min-height:100svh }
#sidebar { position:sticky; top:0; height:100svh; display:flex; flex-direction:column; padding:0 18px; background:#fff; border-right:1px solid var(--line); z-index:4 }
.brand { display:flex; gap:11px; align-items:center; height:80px; padding-left:6px; flex:none; text-decoration:none; font-weight:800; font-size:1.25rem; letter-spacing:-.045em }
.brand-mark { display:grid; place-items:center; width:39px; height:39px; border-radius:11px; background:#704ac7; color:white; box-shadow:inset 0 -3px 0 #5838a6 }
.brand-mark ui-icon { width:30px; height:30px }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; border-radius:8px; padding:9px 17px; font-size:.925rem; font-weight:650; background:white }
.primary { background:var(--purple); color:white; border-color:var(--purple) }
.primary:hover { background:#5735ad }
.btn:disabled { opacity:.52 }
.create { width:100%; margin:13px 0 29px }
.list-label { display:flex; align-items:center; justify-content:space-between; color:var(--muted); padding:0 9px 12px; font-size:.84rem; font-weight:650 }
#project-count { font: .8rem/1.4 ui-monospace, monospace; color:#797582 }
.project-list { overflow:auto; flex:1 }
.project-link, .account-link { display:flex; align-items:center; width:100%; text-align:left; gap:10px; border:0; border-radius:8px; text-decoration:none }
.project-link { background:transparent; min-height:43px; padding:9px 12px; font-size:.925rem; color:#514e5e; margin-bottom:4px }
.project-link span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.project-link.active { background:var(--tint); color:#5835a6; font-weight:650 }
.project-link.active::after { content:""; width:6px; height:6px; border-radius:50%; background:#815dd0; margin-left:auto; flex:none }
.project-link:hover:not(.active), .account-link:hover { background:#f6f4fa }
.account-link { margin:14px 0; padding:16px 6px 2px; border-top:1px solid var(--line); border-radius:0 }
.account-link > span:nth-child(2) { min-width:0 }
.account-link strong, .account-link small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.account-link small:empty { display:none }
.account-link strong { font-size:.94rem }
.account-link small { color:var(--muted); font-size:.8rem; margin-top:3px }
.account-link > ui-icon { margin-left:auto; color:#777383; width:1rem }
.account-link.active strong { color:var(--purple) }
.avatar { display:grid; place-items:center; flex:none; border-radius:12px; color:#65549b; width:39px; height:39px; background:#eae4f7 }
.workspace { min-width:0 }
.topbar { height:68px; padding:0 clamp(20px, 3.25vw, 62px); display:flex; align-items:center; gap:14px; background:white; border-bottom:1px solid var(--line) }
.topbar nav { display:flex; align-self:stretch; gap:32px }
.topbar nav a { display:inline-flex; align-items:center; position:relative; gap:8px; text-decoration:none; font-size:.94rem; font-weight:600; color:#646170 }
.topbar nav a[aria-current="page"] { color:var(--purple) }
.topbar nav a[aria-current="page"]::after { content:""; position:absolute; bottom:0; height:3px; background:var(--purple); left:0; right:0; border-radius:4px 4px 0 0 }
.mobile-menu, .scrim { display:none !important }
main { padding:30px clamp(20px, 3.25vw, 62px) 40px; outline:none }
.hero { display:flex; align-items:center; position:relative; overflow:hidden; isolation:isolate; border-radius:15px; min-height:clamp(200px,15.6vw,265px); padding:28px clamp(24px,3vw,50px); color:white; background:#352c4b url("/assets/world.webp") center 53% / cover no-repeat }
.hero::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,rgba(26,18,49,.83),rgba(36,24,54,.56) 34%,rgba(28,17,47,.02) 70%) }
.hero-content { max-width:min(660px,90%) }
.hero-project { display:inline-flex; align-items:center; gap:7px; max-width:100%; color:#eee6fe; font-size:.83rem; margin-bottom:12px }
.hero-project span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
h1 { font-size:clamp(2rem,3vw,3.25rem); letter-spacing:-.055em; line-height:1.22; font-weight:770 }
.hero p { margin-top:12px; color:#f1eafa; font-size:.97rem; line-height:1.65 }
.progress { margin:25px 0 21px }
.section-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px }
.section-head h2 { font-size:1.1rem; font-weight:720; letter-spacing:-.025em }
.section-head small, .muted { color:var(--muted) }
.section-head small { font-size:.8rem }
.steps { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:6px; border:1px solid var(--line); padding:8px; border-radius:12px; background:white }
.step { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:6px 3px; border:0; border-radius:8px; background:transparent; font-size:.88rem; font-weight:600; color:#655f71 }
.step:hover { background:#f7f4fc }
.step-circle { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#f0eff4; color:#726d7e; font:600 .82rem/1 ui-monospace, monospace }
.step.done .step-circle { background:var(--tint); color:var(--purple) }
.step.skipped .step-circle { border:1px dashed #8a8197; background:white }
.step.current { background:var(--tint); color:var(--purple) }
.step.current .step-circle { background:var(--purple); color:white; border:0 }
.panel, .resource, .profile-card { border:1px solid var(--line); border-radius:14px; background:white }
.editor { padding:24px clamp(18px,2.1vw,35px) 22px; box-shadow:0 3px 10px #25243404 }
.question-head { display:flex; align-items:center; gap:13px; margin-bottom:19px }
.question-icon, .tile-icon { display:grid; place-items:center; flex:none; border-radius:10px; width:43px; height:43px; background:var(--tint); color:var(--purple) }
.question-icon ui-icon { width:23px; height:23px }
.question-head h2 { font-size:clamp(1.18rem,1.6vw,1.5rem); line-height:1.4; letter-spacing:-.035em }
.question-head p { margin-top:4px; font-size:.89rem; color:var(--muted); line-height:1.55 }
.answer-wrap { border:1px solid #dcd9e6; border-radius:9px; padding:12px 14px 8px; background:#fcfbfd }
.answer-wrap:focus-within { border-color:#9271d3; box-shadow:0 0 0 2px #eee9f8 }
textarea { width:100%; height:clamp(68px,6.5vw,120px); display:block; resize:vertical; padding:0; border:0; outline:none; background:transparent; color:var(--ink); line-height:1.7 }
textarea:focus-visible { outline:0 }
::placeholder { color:#837e8c; opacity:1 }
.count { display:block; text-align:right; color:#777280; font: .76rem/1.4 ui-monospace,monospace }
.ideas { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin:12px 0 19px }
.ideas > span { color:var(--muted); font-size:.81rem; margin-right:3px }
.chip, .filter { display:inline-flex; align-items:center; gap:5px; border-radius:7px; font-size:.82rem; background:white; padding:5px 9px; line-height:1.5 }
.chip:hover, .filter.active, .filter:hover { color:#5833a5; border-color:#d2c5ee; background:#f3eefb }
.editor-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--line); padding-top:16px }
.editor-foot .primary { margin-left:auto }
.step-actions { display:flex; align-items:center; gap:16px; margin-left:auto }
.text-btn { border:0; background:none; color:var(--purple); font-size:.9rem; padding:5px 0; font-weight:600; text-decoration:none }
.icon-button { display:inline-grid; place-items:center; width:36px; height:36px; border:0; background:transparent; border-radius:8px }
.icon-button:hover { background:var(--tint); color:var(--purple) }
.page-head { margin:12px 0 26px }
.page-head h1 { font-size:clamp(2rem,3vw,2.7rem) }
.page-head p { color:var(--muted); margin-top:10px; line-height:1.65 }
.toolbar { display:flex; justify-content:space-between; gap:12px; align-items:center; margin:0 0 18px; flex-wrap:wrap }
.library-head { display:flex; align-items:center; flex-wrap:wrap; gap:12px; justify-content:space-between; margin-bottom:20px }
.library-switch { display:inline-flex; align-items:center; gap:4px; padding:4px; border:1px solid var(--line); border-radius:10px; background:#eeedf3 }
.library-switch a { display:inline-flex; align-items:center; gap:7px; padding:8px 12px; border-radius:7px; color:var(--muted); text-decoration:none; font-size:.92rem; font-weight:600 }
.library-switch a[aria-current="page"] { background:white; color:var(--purple); box-shadow:0 1px 3px #31244620 }
.personal { overflow-wrap:anywhere }
.personal p { white-space:pre-wrap }
#entry-form label { display:block; margin-bottom:16px }
#entry-form textarea { min-height:95px; border:1px solid var(--line); border-radius:7px; font-weight:400 }
#entry-form textarea:focus-visible { outline:3px solid #9271de; outline-offset:2px }
#entry-form .source-note { margin-top:0 }
.filters { display:flex; gap:6px }
.filter { font-size:.9rem; padding:7px 14px }
.searchbox { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:8px; padding:7px 10px; background:white; color:var(--muted); max-width:100% }
.searchbox input { width:14rem; max-width:100%; border:0; font-size:.92rem; padding:2px }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr)); gap:15px }
.resource { padding:20px; display:flex; flex-direction:column; min-width:0 }
.resource-top, .meta, .row { display:flex; align-items:center; justify-content:space-between; gap:10px }
.source { display:inline-flex; align-items:center; gap:6px; background:#efedf5; border-radius:6px; font:650 .78rem/1.6 Inter,sans-serif; padding:3px 8px; color:#42394e }
.source.reddit { background:#fff0e8; color:#9a451d }
.resource h2 { font-size:1.14rem; margin:13px 0 8px; line-height:1.45 }
.resource h2 a { text-decoration:none }
.resource h2 a:hover { text-decoration:underline; color:var(--purple) }
.resource p { font-size:.94rem; color:#625f6d; line-height:1.7; margin-bottom:20px }
.resource .meta { border-top:1px solid var(--line); margin-top:auto; padding-top:12px; color:var(--muted); font-size:.8rem; flex-wrap:wrap; overflow-wrap:anywhere }
.icon-button[aria-pressed="true"] { background:var(--tint); color:var(--purple) }
.profile-card { padding:22px; margin-bottom:20px }
.profile-card h2 { font-size:1.2rem }
.profile-card p, .empty { color:var(--muted); line-height:1.7 }
.empty { padding:24px 0 }
.profile-head { display:flex; align-items:center; gap:12px; margin-bottom:18px }
.profile-head p { font-size:.9rem; margin-top:3px }
.account-form { display:flex; gap:12px; align-items:end; flex-wrap:wrap }
.account-form label { flex:1; min-width:160px }
label { font-size:.9rem; font-weight:600 }
.question-label { font:inherit }
.source-note { margin-top:18px; color:var(--muted); font-size:.82rem; line-height:1.6 }
input:not([type=checkbox]) { border-radius:7px }
.field { display:block; width:100%; padding:10px 12px; font-size:1rem; margin-top:6px }
.project-row { display:flex; align-items:center; width:100%; min-height:48px; background:transparent; border:0; border-top:1px solid var(--line); gap:10px; text-align:left }
.project-row span { overflow-wrap:anywhere }
.project-row small { margin-left:auto; color:var(--muted); white-space:nowrap }
.project-item { display:flex; align-items:center; gap:12px; border-top:1px solid var(--line) }
.project-item .project-row { flex:1; min-width:0; border:0 }
.project-item>.text-btn { flex:none }
#project-form label:not([hidden]) { display:block; margin-bottom:8px }
#project-form [type=submit] { margin-top:6px }
.summary dl { margin:0 0 20px }
.summary dt { color:var(--purple); font-weight:650; margin:18px 0 6px }
.summary dd { margin:0; line-height:1.65; overflow-wrap:anywhere; white-space:pre-wrap }
dialog { padding:0; width:min(420px,calc(100% - 32px)); border:1px solid var(--line); border-radius:14px; color:var(--ink); box-shadow:0 15px 70px #20133a26 }
dialog::backdrop { background:#211b3c66 }
dialog form { padding:25px }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px }
.dialog-heading h2 { font-size:1.3rem }
#project-name { display:block; width:100%; padding:12px; margin:8px 0 12px }
.error { color:#a12f42; font-size:.9rem; margin:8px 0 }
.notice { position:fixed; z-index:8; bottom:24px; left:50%; transform:translateX(-50%); background:#332c44; color:white; padding:11px 16px; border-radius:9px; box-shadow:0 4px 16px #0002; max-width:90vw; font-size:.93rem }
.notice:empty { display:none }
@media (max-width:1200px) {
  .steps { grid-template-columns:repeat(4,minmax(0,1fr)) }
}
@media (max-width: 900px) {
  .layout { grid-template-columns:196px minmax(0,1fr) }
  #sidebar { padding-inline:12px }
  .topbar { height:61px }
  .brand { height:70px; font-size:1.15rem }
  .step { gap:5px; font-size:.81rem }
  .step-circle { width:24px; height:24px }
}
@media (max-width: 680px) {
  .layout { display:block }
  #sidebar { position:fixed; left:0; top:0; width:min(280px,82vw); transform:translateX(-101%); visibility:hidden }
  body.drawer #sidebar { transform:translateX(0); visibility:visible }
  body.drawer .scrim { display:block !important; position:fixed; inset:0; background:#241a3b70; border:0; z-index:3 }
  .mobile-menu { display:inline-grid !important }
  .topbar { padding:0 12px; gap:11px; height:56px }
  .topbar nav { gap:20px }
  .topbar nav a { font-size:.88rem; gap:5px }
  main { padding:16px 14px 28px }
  .hero { min-height:185px; padding:22px 19px; background-position:61% 50% }
  .hero-content { max-width:100% }
  .hero p { max-width:80%; font-size:.88rem }
  .progress { margin:18px 0 14px }
  .steps { padding:6px; gap:3px }
  .step { gap:5px; white-space:nowrap }
  .editor { padding:18px 14px 14px }
  .question-head { gap:9px }
  textarea { height:100px }
  .ideas { gap:5px }
  .ideas > span { width:100% }
  .toolbar { align-items:start }
  .searchbox { width:100% }
  .searchbox input { width:100% }
}
@media (max-width:450px) {
  .step { flex-direction:column }
  .editor-foot { flex-wrap:wrap; gap:8px }
  .step-actions { gap:10px }
  .library-switch a { padding:7px 9px }
}
@media (max-width:360px) {
}
