:root {
  font-family:
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: #26323c;
  background: #f4f5f7;
  font-size: 15px;
  line-height: 1.58;
  --ink: #1c2832;
  --muted: #55626d;
  --line: #d6dce2;
  --paper: #fff;
  --blue: #315f80;
  --soft: #e8f0f5;
  --red: #963636;
  --purple: #705394;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.62;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38em;
  padding: 0.48rem 0.9rem;
  min-height: 42px;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #8798a6;
  background: #fff;
  color: var(--blue);
  font-weight: 650;
  line-height: 1.4;
}
button:hover,
.button:hover {
  background: #edf2f5;
}
.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.primary:hover {
  background: #234d6a;
}
.subtle {
  background: transparent;
  border-color: transparent;
  padding: 0.38rem 0.54rem;
}
.danger {
  color: var(--red);
}
:focus-visible {
  outline: 3px solid #1876a7;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.6rem;
  background: #fff;
}
.skip:focus {
  top: 0.5rem;
}
.masthead {
  background: #f9fafb;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem max(1.15rem, 3vw);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
}
.wordmark {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.mode {
  font-size: 0.85rem;
  color: #435768;
}
.identity {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.identity select {
  min-width: 100px;
  max-width: 210px;
  height: 40px;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
}
.layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: calc(100dvh - 64px);
  max-width: 1660px;
  margin: auto;
}
.rail {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #eff1f3;
  gap: 2rem;
  padding: 1.7rem 0.8rem;
}
.rail nav {
  display: grid;
  gap: 0.36rem;
}
.rail nav:last-child:not(:first-child) {
  margin-top: auto;
}
.rail a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.63rem 0.9rem;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 580;
  color: #40515e;
  text-decoration: none;
}
.rail a[aria-current='page'] {
  color: #214f70;
  background: #dde8ef;
  font-weight: 720;
}
.rail a:hover {
  background: #e4eaee;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main {
  width: 100%;
  max-width: 1180px;
  padding: clamp(1rem, 4vw, 3.4rem);
  min-width: 0;
  margin: 0 auto;
}
main:focus {
  outline: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.34;
}
h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 730;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.24rem;
}
h3 {
  font-size: 1.06rem;
}
h4 {
  font-size: 1rem;
}
.section {
  margin-top: 1.6rem;
}
.intro,
.row,
.actions,
.tags,
.stats,
.field-inline,
.heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.intro,
.heading {
  justify-content: space-between;
  gap: 0.7rem 1rem;
}
.intro {
  align-items: flex-start;
  margin-bottom: 1.45rem;
}
.intro p,
.subtitle {
  color: var(--muted);
  margin-top: 0.35rem;
}
.heading {
  margin-bottom: 0.75rem;
}
.actions {
  gap: 0.42rem;
}
.actions.end {
  justify-content: flex-end;
}
.panel,
.card,
details.expand {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.panel,
.card {
  padding: 1.15rem 1.25rem;
}
.stack {
  display: grid;
  gap: 0.8rem;
}
.stack.tight {
  gap: 0.45rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 0.85rem;
}
.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
  gap: 0.72rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}
.card .foot {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.card .project-link {
  color: var(--ink);
  text-decoration: none;
}
.project-link:hover {
  text-decoration: underline;
  color: var(--blue);
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #465460;
  background: #edf0f2;
  line-height: 1.6;
  padding: 0.1rem 0.52rem;
  border-radius: 5px;
}
.tag.active,
.tag.working,
.tag.in_progress {
  color: #265a7d;
  background: #e2eef8;
}
.tag.done,
.tag.completed,
.tag.sent {
  color: #246345;
  background: #e0f0e7;
}
.tag.pending,
.tag.ready,
.tag.returned,
.tag.awaiting {
  color: #785016;
  background: #fbefd7;
}
.tag.rejected,
.tag.failed {
  color: #8e3834;
  background: #f9e6e3;
}
.tag.waiting,
.tag.blocked {
  color: #435d6e;
  background: #e6edf1;
}
.tag.mine {
  color: #644882;
  background: #efe9f5;
}
.small,
.meta {
  font-size: 0.9rem;
  color: var(--muted);
}
.meta {
  display: flex;
  gap: 0.4rem 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}
.line {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.label {
  font-weight: 650;
}
ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}
.listrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.8rem 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.listrow:last-child {
  border-bottom: 0;
}
.listrow:first-child {
  padding-top: 0;
}
.empty {
  background: white;
  border: 1px dashed #b5bec6;
  border-radius: 10px;
  padding: 1.25rem;
  color: var(--muted);
}
.notice,
.error {
  border-radius: 8px;
  background: var(--soft);
  color: #2c526d;
  padding: 0.68rem 0.86rem;
}
.error {
  background: #fae9e7;
  color: #872d29;
}
.warning {
  background: #fcf0d7;
  color: #745016;
}
pre,
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  margin: 0;
}
details.expand > summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: #314e63;
  font-weight: 650;
}
details.expand > .content {
  padding: 0 1rem 1rem;
}
details.expand summary span {
  font-weight: 450;
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 0.55rem;
}
.node {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  min-width: 0;
}
.node.owned {
  border-inline-start: 3px solid #9373ae;
}
.node summary {
  cursor: pointer;
  padding: 0.75rem;
}
.node summary::marker {
  color: #667b8a;
}
.node summary strong {
  font-size: 1rem;
}
.node summary .tags,
.node summary .small {
  margin-top: 0.4rem;
}
.node .content {
  padding: 0 0.75rem 0.85rem;
  display: grid;
  gap: 0.65rem;
}
.node ul {
  padding-left: 1.1rem;
  margin: 0;
}
.module + .module {
  margin-top: 0.8rem;
}
.module-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.72rem;
}
.module-heading .meta {
  font-size: 0.84rem;
}
.guide {
  margin-bottom: 1rem;
}
.guide summary {
  cursor: pointer;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  margin-bottom: 1rem;
  min-height: 34px;
}
.field {
  display: grid;
  gap: 0.35rem;
  font-weight: 630;
}
.field .small {
  font-weight: 450;
}
input:not([type='checkbox'], [type='radio']),
select,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #8495a2;
  background: white;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
.field-inline {
  gap: 0.4rem;
  min-height: 40px;
  cursor: pointer;
}
input[type='checkbox'] {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
}
fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.65rem 0.9rem 1rem;
  min-width: 0;
}
legend {
  font-weight: 700;
  padding: 0 0.35rem;
}
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
dialog {
  width: min(100% - 2rem, 600px);
  max-height: 86dvh;
  border: 1px solid #b6c1ca;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 80px #172a3a25;
}
dialog.wide {
  width: min(100% - 2rem, 800px);
}
dialog::backdrop {
  background: #19263270;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  padding: 1.15rem;
}
.close {
  min-width: 42px;
  font-size: 1.45rem;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  color: white;
  background: #263b4a;
  padding: 0.65rem 1.2rem;
  border-radius: 9px;
  max-width: min(90vw, 640px);
  z-index: 2;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.login {
  max-width: 460px;
  margin: 6vh auto;
}
.progress {
  width: 100%;
  height: 5px;
  border: 0;
  background: #e7ecee;
  border-radius: 3px;
  overflow: hidden;
}
.progress::-webkit-progress-bar {
  background: #e7ecee;
}
.progress::-webkit-progress-value {
  background: #5b839e;
}
.progress::-moz-progress-bar {
  background: #5b839e;
}
@media (min-width: 960px) {
  .node-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .layout {
    display: block;
  }
  .rail {
    padding: 0.3rem max(1rem, 3vw);
    gap: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
  }
  .rail nav:last-child:not(:first-child) {
    margin: 0;
  }
  .rail a {
    padding: 0.45rem 0.6rem;
    min-height: 39px;
    font-size: 0.92rem;
    gap: 0.32rem;
  }
  main {
    padding: 1.25rem max(1rem, 3.5vw) 2.5rem;
  }
}
@media (max-width: 550px) {
  .masthead {
    padding: 0.6rem 0.8rem;
    gap: 0.45rem;
    min-height: 54px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 1.12rem;
    gap: 0.36rem;
  }
  .wordmark img {
    width: 24px;
    height: 24px;
  }
  .identity {
    gap: 0.2rem;
    font-size: 0.88rem;
  }
  .identity select {
    font-size: 16px;
    width: 136px;
  }
  .rail {
    padding: 0.25rem 0.45rem;
    gap: 0;
  }
  .rail a {
    font-size: 0.87rem;
    padding: 0.3rem 0.46rem;
  }
  .rail .icon {
    display: none;
  }
  .panel,
  .card {
    padding: 0.9rem;
  }
  main {
    padding: 1.1rem 0.8rem 2rem;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .node-grid {
    grid-template-columns: 1fr;
  }
  .intro {
    margin-bottom: 1rem;
  }
  input:not([type='checkbox'], [type='radio']),
  textarea,
  select {
    font-size: 16px;
  }
  .section {
    margin-top: 1.15rem;
  }
  .mode {
    font-size: 0.77rem;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .masthead,
  .rail,
  .panel {
    background: #fff;
  }
}
@media (forced-colors: active) {
  .tag,
  .node.owned {
    border: 1px solid currentColor;
  }
  .rail a[aria-current='page'] {
    outline: 1px solid;
  }
}
.layout.no-rail {
  display: block;
}
.read-link {
  color: var(--blue);
  text-align: start;
  justify-content: start;
  padding: 0.25rem 0.15rem;
  min-height: 36px;
}
.code {
  background: #f1f3f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}
.code code {
  white-space: pre-wrap;
  word-break: break-word;
}

.topic > summary .small {
  font-weight: 400;
  margin: 0.25rem 0;
}
.topic > summary .tag {
  margin-left: 0;
  font-size: 0.8rem;
}
.topic > summary .density {
  display: block;
  margin: 0.5rem 0;
  height: 4px;
}

.editor-flow-node {
  display: grid;
  gap: .2rem;
  width: 100%;
  min-height: 4.5rem;
  padding: .6rem .75rem;
  text-align: left;
  align-content: center;
  overflow-wrap: anywhere;
}
.editor-flow-node strong { color: var(--ink); }
