:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #222139;
  background: #f8f8fc;
  --purple: #6347cd;
  --muted: #69667c;
  --line: #eae8f2;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #8668ef; outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -100px; z-index: 5; background: white; padding: 10px; }
.skip:focus { top: 12px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 27px 17px 18px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; font-weight: 800; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #674bd6; color: white; font-size: 21px; }
small { display: block; color: var(--muted); margin-top: 4px; font-weight: 500; font-size: 11px; }
.brand small { letter-spacing: .09em; }
nav { display: grid; gap: 5px; margin-top: 42px; }
.nav-link { display: flex; align-items: center; gap: 12px; border-radius: 9px; padding: 11px 12px; color: #55526a; font-size: 14px; white-space: nowrap; }
.nav-compact { display: none; }
.nav-link:hover, .nav-link[aria-current] { background: #f0ebff; color: #5337bb; }
.nav-link[aria-current] { font-weight: 750; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }
.profile { margin-top: auto; padding: 15px 7px 0; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.avatar { border-radius: 50%; padding: 8px; color: #5438b1; background: #efe9ff; font-size: 11px; }
.topbar { min-height: 66px; padding: 12px clamp(18px, 4vw, 52px); border-bottom: 1px solid var(--line); background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.date { font-size: 13px; color: var(--muted); font-weight: 500; }
main { max-width: 1450px; margin: auto; padding: 33px clamp(18px, 4vw, 52px) 54px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 3.3vw, 45px); letter-spacing: -.035em; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { line-height: 1.65; }
.hero { isolation: isolate; position: relative; overflow: hidden; min-height: 230px; display: grid; align-content: center; justify-items: start; gap: 13px; border-radius: 22px; padding: clamp(23px, 4vw, 48px); color: #fff; background: linear-gradient(112deg,#4b32ad,#7856db); }
.hero p { color: #f1eaff; }
.hero .eyebrow { font-size: 13px; font-weight: 700; }
.hero-art { position: absolute; z-index: -1; width: 315px; aspect-ratio: 1; border-radius: 90px; border: 1px solid #ffffff45; background: #ffffff10; transform: rotate(-24deg); right: -25px; top: -80px; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border-radius: 55px; border: 1px solid #ffffff55; background: linear-gradient(145deg,#e6d6ff45,#fff0); }
.hero-art::before { inset: 42px; }
.hero-art::after { inset: 87px; }
.section { margin-top: 30px; }
.section-head, .page-head, .row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.section-head { margin-bottom: 13px; }
.page-head { margin-bottom: 22px; }
.page-head p { color: var(--muted); margin-top: 5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 14px; }
.quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel, .tile { min-width: 0; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px; }
.tile { display: grid; gap: 7px; align-content: start; }
.tile:hover { border-color: #c7b8fd; box-shadow: 0 6px 18px #4133820c; }
.tile-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: var(--tint, #f0eaff); color: var(--ink, #5c40be); margin-bottom: 4px; }
.tile p, .muted { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { display: grid; gap: 5px; padding: 15px 18px; }
.stat strong { font-size: 25px; }
.stat span { color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ded8f0; background: #fff; color: #5136ae; border-radius: 9px; padding: 9px 13px; font-size: 14px; font-weight: 700; }
.btn:hover { background: #f3edff; }
.primary { background: #6044c9; border-color: #6044c9; color: #fff; }
.primary:hover { background: #5037ad; }
.text-link { color: #5539b8; font-weight: 700; font-size: 14px; }
.pill { display: inline-block; border-radius: 20px; padding: 4px 9px; background: #f0ebfb; color: #5138a6; font-size: 12px; }
.stack { display: grid; gap: 12px; }
.board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: start; }
.column { background: #f0eef7; border-radius: 15px; padding: 12px; display: grid; gap: 10px; min-width: 0; }
.column-head { padding: 4px 3px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #d8d4e7; border-radius: 8px; background: #fff; color: #222139; padding: 9px 10px; }
textarea { min-height: 110px; resize: vertical; }
.search { margin-bottom: 14px; max-width: 450px; }
.entry-body { white-space: pre-wrap; margin-top: 8px; }
details > summary { cursor: pointer; font-weight: 700; }
details[open] > summary { margin-bottom: 12px; }
dialog { width: min(490px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; color: inherit; }
dialog::backdrop { background: #24203980; }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#notice { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2; max-width: calc(100% - 24px); background: #30254f; color: white; padding: 10px 16px; border-radius: 9px; }
#notice:empty { display: none; }
@media (max-width: 1050px) { .shell { grid-template-columns: 198px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 15px 12px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  nav { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
  .nav-link { justify-content: center; gap: 5px; min-height: 44px; padding: 5px 2px; font-size: 13px; }
  .nav-link .icon { width: 16px; height: 16px; }
  .nav-full { display: none; }
  .nav-compact { display: inline; }
  .profile { display: none; }
  .topbar { min-height: 44px; }
  main { padding-top: 19px; }
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .board { grid-template-columns: 1fr; }
  .hero-art { opacity: .45; right: -133px; }
}
@media (max-width: 350px) { .quick-grid, .stats { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.attachment-option { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; font-size: 14px; }
.attachment-option input { width: auto; }
.form-error { color: #a02541; font-size: 14px; }
.form-error:empty { display: none; }
.entry .actions { margin-top: 12px; }
dialog { max-height: calc(100dvh - 32px); overflow: auto; }
