:root {
  color-scheme: light;
  --page:#f7f6f2; --paper:#fffefa; --ink:#262538; --muted:#5e5c6c; --line:#e5e1db;
  --accent:#45336b; --lavender:#eee7fb; --peach:#f7e8df; --green:#e7efe2; --amber:#f7eccc;
  --soft:#f2f0eb; --shadow:0 17px 40px #4036500f;
  font-family:"Instrument Sans","Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--page); color:var(--ink); }
button,input,textarea,select { font:inherit; color:inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.65; }
a { color:inherit; text-decoration:none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid #695497; outline-offset:3px; }
img { display:block; max-width:100%; }
h1,h2,h3,p { margin:0; }
svg { width:20px; height:20px; flex-shrink:0; }
.skip { position:fixed; z-index:10; top:-50px; left:12px; padding:8px 12px; background:var(--paper); }
.skip:focus { top:10px; }
.shell { min-height:100vh; display:grid; grid-template-columns:228px minmax(0,1fr); }
.sidebar { position:sticky; top:0; height:100dvh; display:flex; flex-direction:column; background:var(--paper); border-right:1px solid var(--line); padding:24px 16px 15px; }
.brand { display:flex; align-items:center; gap:9px; width:max-content; margin:0 0 39px 7px; font-size:19px; font-weight:820; letter-spacing:-.055em; }
.nav { display:grid; gap:5px; }
.nav a { display:flex; gap:11px; align-items:center; min-height:44px; padding:8px 12px; color:var(--muted); border-radius:9px; font-size:14px; font-weight:630; }
.nav a:hover,.nav a[aria-current="page"] { background:var(--lavender); color:var(--accent); }
.nav a[aria-current="page"] { font-weight:750; }
.nav .secondary-nav { margin-top:17px; }
.sidebar-footer { margin-top:auto; padding-top:18px; }
.environment { display:flex; align-items:center; gap:8px; margin:0 7px 15px; color:var(--muted); font-size:11px; font-weight:700; }
.environment span { width:7px; height:7px; background:#748863; border-radius:50%; }
.profile-button { width:100%; display:flex; align-items:center; gap:9px; border:1px solid var(--line); border-radius:10px; background:var(--page); padding:8px; text-align:left; font-weight:690; font-size:13px; }
.profile-button > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar { min-height:73px; display:flex; align-items:center; gap:13px; padding:11px 30px; border-bottom:1px solid var(--line); background:var(--paper); }
.topbar-label { margin-right:auto; white-space:nowrap; font-weight:735; font-size:14px; }
.search { display:flex; gap:8px; align-items:center; background:var(--page); border:1px solid var(--line); border-radius:9px; padding:0 10px; min-width:0; }
.search span { display:flex; color:var(--muted); }
.search svg { width:16px; height:16px; }
.search input { background:none; padding:9px 0; border:0; width:min(17vw,200px); min-width:0; font-size:13px; }
.search:focus-within { outline:2px solid #695497; outline-offset:2px; }
.search input:focus { outline:none; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:39px; padding:8px 12px; border:1px solid var(--line); border-radius:9px; background:var(--paper); font-size:13px; font-weight:730; text-align:center; }
.button:hover { border-color:#a397b7; }
.button.primary { color:white; border-color:#302642; background:#302642; }
.button.primary:hover { background:#493663; }
.button svg,.detail-meta svg { width:16px; height:16px; }
.button.ghost { background:none; }
.button.danger { color:#922b34; }
#content { max-width:1330px; margin:0 auto; padding:33px 34px 52px; }
.hero { position:relative; isolation:isolate; overflow:hidden; display:grid; grid-template-columns:1fr minmax(270px,.84fr); align-items:center; gap:clamp(18px,5vw,60px); padding:clamp(21px,4vw,53px); border:1px solid #e5dced; border-radius:21px; background:linear-gradient(122deg,#f3eafd 0%,#f4edf9 59%,#fbf5e9 100%); }
.hero::before,.hero::after { content:""; position:absolute; z-index:-1; border-radius:50%; border:1px solid #cbb8e376; width:440px; height:440px; left:-120px; bottom:-340px; pointer-events:none; }
.hero::after { width:505px; height:505px; left:-154px; bottom:-374px; }
.hero h1 { font-weight:830; max-width:9ch; font-size:clamp(46px,6.2vw,85px); line-height:.98; letter-spacing:-.085em; }
.hero-options { display:grid; gap:8px; }
.intent { display:grid; grid-template-columns:34px minmax(0,1fr) 17px; align-items:center; gap:10px; text-align:left; min-height:53px; padding:7px 12px 7px 8px; border:1px solid #e1d9e7; background:#fffdfb; font-weight:710; font-size:14px; border-radius:10px; }
.intent:hover { background:#f9f4ff; border-color:#ab94cc; }
.intent-icon,.avatar,.project-placeholder { display:grid; place-items:center; background:var(--tint,var(--lavender)); color:var(--tint-ink,var(--accent)); }
.intent-icon,.avatar { width:34px; height:34px; border-radius:9px; flex-shrink:0; }
.intent-icon svg { width:16px; height:16px; }
.intent-arrow { width:17px; height:17px; color:#615472; }
.avatar { font-size:12px; font-weight:800; }
.fern { --tint:var(--green); --tint-ink:#33553e; }
.plum { --tint:var(--lavender); --tint-ink:#53376e; }
.indigo { --tint:#e4eafa; --tint-ink:#334875; }
.rust { --tint:var(--peach); --tint-ink:#794130; }
.amber { --tint:var(--amber); --tint-ink:#644d21; }
.section-head { display:flex; align-items:end; flex-wrap:wrap; justify-content:space-between; gap:12px; margin:33px 0 16px; }
.section-head h2,.page-title h1 { font-size:clamp(25px,4vw,42px); font-weight:820; line-height:1.08; letter-spacing:-.057em; overflow-wrap:anywhere; }
.section-head h2 { font-size:clamp(22px,3.2vw,30px); }
.page-title { margin:0 0 20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.filters { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 14px; }
.filter { min-height:36px; padding:6px 10px; border:1px solid var(--line); border-radius:999px; font-size:12px; font-weight:685; background:var(--paper); }
.filter:hover,.filter[aria-pressed="true"] { color:var(--accent); background:var(--lavender); border-color:#d8c9ee; }
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.card { background:var(--paper); border:1px solid var(--line); border-radius:14px; overflow:hidden; min-width:0; box-shadow:0 2px 3px #382e5307; }
.card > a:hover h3 { color:var(--accent); text-decoration:underline; text-underline-offset:4px; }
.cover { width:100%; aspect-ratio:1.85; object-fit:cover; background:var(--soft); }
.project-placeholder { aspect-ratio:1.85; }
.project-placeholder svg { width:45px; height:45px; opacity:.7; stroke-width:1; }
.card-content { display:grid; align-content:start; gap:8px; padding:13px 14px; }
.card h3,.list-item h3 { font-size:18px; font-weight:795; line-height:1.2; letter-spacing:-.033em; overflow-wrap:anywhere; }
.card p,.list-item p,.detail p { color:var(--muted); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.project-ask { font-size:13px; font-weight:670; overflow-wrap:anywhere; }
.topic,.time { width:max-content; display:inline-flex; align-items:center; max-width:100%; border-radius:999px; font-size:11px; font-weight:770; }
.topic { padding:4px 8px; color:var(--tint-ink,var(--accent)); background:var(--tint,var(--lavender)); }
.time { color:var(--muted); gap:5px; }
.time svg { width:13px; height:13px; }
.card-foot { min-height:44px; display:flex; gap:9px; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding:4px 12px; }
.card-foot .meta { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.icon-button { background:none; border:0; color:var(--muted); min-width:36px; min-height:36px; display:inline-grid; place-items:center; padding:6px; border-radius:7px; flex-shrink:0; }
.icon-button:hover,.icon-button[aria-pressed="true"] { background:var(--lavender); color:var(--accent); }
.meta { font-size:12px; color:var(--muted); }
.inline { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.between { justify-content:space-between; }
.stack { display:grid; gap:11px; }
.list-item { display:grid; gap:8px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.list-item .inline h3 { margin-right:auto; }
.list-item a:not(.button):hover { text-decoration:underline; }
.person-card { display:flex; flex-direction:column; }
.person-card .card-content { flex:1; gap:10px; }
.person-card .avatar { width:43px; height:43px; font-size:15px; }
.detail { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(240px,.9fr); gap:17px; align-items:start; }
.detail .card-content { padding:17px; }
.detail .cover,.detail .project-placeholder { aspect-ratio:2.05; }
.detail h2 { font-size:21px; letter-spacing:-.04em; }
.detail-meta { display:flex; flex-wrap:wrap; gap:8px; align-items:center; color:var(--muted); font-size:13px; }
.back { display:inline-flex; align-items:center; gap:5px; color:var(--accent); margin-bottom:12px; font-size:13px; font-weight:720; }
.back svg { width:16px; height:16px; }
.preserve { white-space:pre-wrap; }
.empty,.alert { background:var(--paper); color:var(--muted); border:1px dashed var(--line); padding:14px; border-radius:10px; font-size:14px; }
.alert { border-style:solid; background:#fff4e1; color:#704c1b; margin-bottom:15px; }
.task { width:100%; justify-content:flex-start; text-align:left; }
.task[aria-pressed="true"] { color:var(--muted); text-decoration:line-through; }
dialog { width:min(480px,calc(100% - 24px)); max-height:calc(100dvh - 26px); border:1px solid var(--line); border-radius:15px; background:var(--paper); color:var(--ink); padding:19px; box-shadow:0 30px 80px #241a4350; }
dialog::backdrop { background:#28213780; }
dialog h2 { font-size:23px; letter-spacing:-.045em; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:9px; margin-bottom:12px; }
.fields { display:grid; gap:12px; }
.fields label { display:grid; gap:4px; font-size:13px; font-weight:720; }
.fields label.check { display:flex; gap:7px; align-items:start; }
.fields label.check input { margin:3px 0 0; }
.fields input:not([type="checkbox"]),.fields select,.fields textarea { width:100%; border:1px solid var(--line); border-radius:8px; background:var(--page); min-height:39px; padding:8px 9px; font-size:16px; font-weight:460; }
.fields textarea { resize:vertical; }
.form-error { color:#952e39; font-size:13px; }
.toast { z-index:5; position:fixed; right:15px; bottom:15px; background:#302642; color:white; box-shadow:var(--shadow); border-radius:9px; padding:10px 13px; max-width:calc(100vw - 30px); font-size:14px; }
@media(max-width:1060px) {
  .shell { grid-template-columns:190px minmax(0,1fr); }
  #content { padding-inline:23px; }
  .topbar { padding-inline:23px; }
}
@media(max-width:830px) {
  .shell { display:block; }
  .sidebar { position:static; height:auto; flex-direction:row; flex-wrap:wrap; align-items:center; padding:10px 14px 1px; border-right:0; border-bottom:1px solid var(--line); }
  .brand { margin:0 auto 5px 0; }
  .nav { order:2; width:100%; display:flex; overflow-x:auto; padding-bottom:5px; }
  .nav a { flex-shrink:0; min-height:39px; padding:7px 9px; font-size:13px; gap:5px; }
  .nav a svg { width:16px; height:16px; }
  .nav .secondary-nav { margin:0; }
  .sidebar-footer { padding:0 0 5px; }
  .environment { display:none; }
  .profile-button { padding:3px; border:0; background:none; }
  .profile-button > span:last-child { display:none; }
  .topbar { min-height:56px; padding:7px 15px; }
  .search input { width:clamp(66px,22vw,180px); }
  #content { padding:19px 15px 34px; }
}
@media(max-width:600px) {
  .hero,.detail { grid-template-columns:1fr; }
  .hero { gap:17px; }
  .hero h1 { max-width:11ch; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .card-content { padding:11px; }
}
@media(max-width:420px) {
  .grid { grid-template-columns:1fr; }
  .top-new { white-space:nowrap; }
  .topbar { gap:7px; }
}
.project-placeholder { min-height:110px; }
.project-placeholder > span {
  font-size:clamp(38px,6vw,76px);
  font-weight:820;
  letter-spacing:-.12em;
  transform:rotate(-9deg);
}
.fields input[readonly] { color:var(--accent); font-family:ui-monospace,monospace; font-size:13px; }
@media(max-width:830px) { .profile-button { min-height:44px; min-width:44px; justify-content:center; } }
