:root {
  color-scheme: light;
  --ink: #392438;
  --muted: #735c70;
  --line: #ead0df;
  --paper: #fffbfd;
  --rose: #ffc3da;
  --lemon: #ffeaa1;
  --mint: #bdeadd;
  --violet: #dfd0f8;
  --sky: #c9e6fc;
  --shadow: #ed9cbc;
  --wash: #fff1f7;
  --font: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  font: 15px/1.55 var(--font);
  color: var(--ink);
  background-color: #fff0f6;
  background-image: radial-gradient(#ebbbd2 1px, transparent 1.25px);
  background-size: 19px 19px;
}
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
a, button, summary { -webkit-tap-highlight-color: #e57da055; }
:focus-visible { outline: 3px solid #924180; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.24; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); font-weight: 850; letter-spacing: -.032em; }
h2 { font-size: 1.32rem; font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 780; }
small { font-size: .8rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 9; padding: 8px 14px; border: 2px solid; background: var(--paper); }
.skip:focus { top: 10px; }

.site {
  width: min(1152px, calc(100% - 44px));
  margin: clamp(14px, 3vw, 38px) auto 38px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background: #ffd1e2;
  box-shadow: 6px 7px 0 #e7a2bf88;
}
.masthead { background: #ffe6ef; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 23px 15px; }
.brand {
  display: inline-flex;
  text-decoration: none;
  padding: 0 8px 3px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: repeating-linear-gradient(135deg, #ffcada, #ffcada 4px, #ffdee9 4px, #ffdee9 7px);
  box-shadow: 3px 3px 0 var(--ink);
}
.wordmark {
  font: 900 clamp(1.5rem, 3.25vw, 2.25rem)/1.15 "Arial Black", var(--font);
  letter-spacing: -.068em;
  padding-right: .05em;
  -webkit-text-stroke: 1.1px var(--ink);
  paint-order: stroke fill;
  text-shadow: 1.2px 1.7px 0 var(--ink);
}
.wordmark span:nth-child(1) { color: #fff4f9; }
.wordmark span:nth-child(2) { color: #ffe491; }
.wordmark span:nth-child(3) { color: #b8efd8; }
.wordmark span:nth-child(4) { color: #c5e8ff; }
.wordmark span:nth-child(5) { color: #b8d2fe; }
.wordmark span:nth-child(6) { color: #dec9fb; }
.wordmark span:nth-child(7) { color: #ffb7d1; }
.wordmark span:nth-child(8) { color: #ef89b0; }
.bar-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sprinkles { display: flex; align-items: center; gap: 9px; font-size: 1.08rem; margin-right: 8px; }
.sprinkles b:nth-child(1) { color: #a84778; transform: rotate(14deg); }
.sprinkles b:nth-child(2) { color: #ffe68c; -webkit-text-stroke: 1px var(--ink); }
.sprinkles b:nth-child(3) { color: #527f73; transform: rotate(-14deg); }
.sprinkles b:nth-child(4) { color: #ad4975; transform: rotate(12deg); }
.account-chip { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 750; text-decoration: none; }
.account-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.account-chip .avatar { width: 27px; height: 27px; flex-shrink: 0; }
.logout { font-size: .85rem; flex-shrink: 0; }
.login { min-height: 34px !important; padding-block: 4px !important; background: var(--lemon) !important; }
.tone-rose { --tone: var(--rose); }
.tone-lemon { --tone: var(--lemon); }
.tone-mint { --tone: var(--mint); }
.tone-violet { --tone: var(--violet); }
.tone-sky { --tone: var(--sky); }
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding-inline: 14px; padding-top: 4px; }
.tab {
  display: block;
  position: relative;
  text-align: center;
  font-weight: 670;
  padding: 8px 3px 7px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: repeating-linear-gradient(135deg, #ffffff55 0 2px, transparent 2px 7px), var(--tone);
  text-decoration: none;
  transition: filter .12s ease;
}
.tab[aria-current="page"] { font-weight: 850; top: -3px; padding-bottom: 10px; margin-bottom: -3px; }
.tab[aria-current="page"]::after { content: ""; position: absolute; height: 3px; background: var(--tone); bottom: -2px; inset-inline: 0; z-index: 1; }
.tab:hover { filter: brightness(1.06); }
.tab > span { margin-right: 3px; }
.workspace {
  min-height: 635px;
  border-top: 2px solid var(--ink);
  padding: clamp(18px, 3vw, 34px);
  background-color: #ffd1e2;
  background-image: radial-gradient(#fff9fc 1.2px, transparent 1.45px);
  background-size: 17px 17px;
}
.panel {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--shadow);
}
.tape { position: relative; }
.tape::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;
  width: 44px;
  height: 13px;
  transform: rotate(14deg);
  background: repeating-linear-gradient(135deg, #ffe47ece 0 4px, #fff4bdcc 4px 7px);
  pointer-events: none;
}
.standard { padding: clamp(18px, 3vw, 28px); }
.narrow { max-width: 720px; margin-inline: auto; }
.standard > h1 + p, .standard > h1 + .form, .standard > h2 + p { margin-top: 12px; }
.standard > p + .button { margin-top: 14px; }
.standard h2[id] { margin-bottom: 12px; }
.home-wrap { display: grid; gap: 20px; }
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 34px;
  min-height: 144px;
  padding: clamp(18px, 4vw, 34px);
  background: linear-gradient(112deg, #fffbfd 40%, #fff0f6);
}
.hero h1 { font-size: clamp(2rem, 4.7vw, 3.72rem); line-height: 1.02; }
.hero h1 span { display: block; margin-top: 9px; font-size: clamp(.96rem, 2vw, 1.26rem); letter-spacing: .075em; color: #844064; }
.downloads, .inline-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.downloads { justify-content: flex-end; }
.download-note { flex: 0 0 100%; font-size: .82rem; text-align: right; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 6px 13px;
  border: 1.6px solid var(--ink);
  border-radius: 5px;
  background-color: #fff4f9;
  box-shadow: 2px 2px 0 #452a4399;
  text-decoration: none;
  text-align: center;
  font-weight: 750;
  line-height: 1.3;
  cursor: pointer;
}
.button.primary { background: var(--rose); }
.button:hover:not(:disabled) { background: #ffe0ed; }
.button:active:not(:disabled) { box-shadow: 0 0 0 var(--ink); transform: translate(1px, 1px); }
.button:disabled { cursor: default; color: #775f71; border-color: #9f889a; background-color: #f7edf2; box-shadow: none; }
.button.small { min-height: 32px; padding: 4px 9px; font-size: .84rem; box-shadow: 1px 1px 0 #452a4377; }
.button.subtle { border-color: #b997ab; box-shadow: none; }
.split { display: inline-flex; align-items: stretch; }
.split > .button { border-radius: 5px 0 0 5px; }
.release-menu { position: relative; }
.release-menu > summary { height: 100%; min-width: 34px; border-radius: 0 5px 5px 0; border-left: 0; padding-inline: 9px; }
.release-menu summary::-webkit-details-marker { display: none; }
.menu-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 3;
  width: 215px;
  max-height: 250px;
  overflow: auto;
  padding: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--shadow);
}
.menu-pop p { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.menu-pop ul { margin: 4px 0 0; padding: 0; list-style: none; }
.menu-pop li a, .menu-pop li > span { display: flex; justify-content: space-between; gap: 8px; padding: 6px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.menu-pop li a:hover { background: var(--wash); }
.repo { overflow: hidden; }
.repo-toolbar, .repo-columns { display: flex; align-items: center; gap: 12px; padding: 11px 17px; }
.repo-toolbar { background: #fff1f7; }
.repo-toolbar h2 { font-size: 1rem; }
.repo-link { margin-left: auto; font-size: .86rem; font-weight: 700; }
.repo-columns { justify-content: space-between; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.repo-empty { min-height: 110px !important; margin: 0; border: 0 !important; border-radius: 0 !important; }
.folder-mark { display: block; width: 25px; height: 17px; background: var(--lemon); border: 1.5px solid var(--ink); border-radius: 3px; position: relative; }
.folder-mark::before { content: ""; position: absolute; height: 4px; width: 10px; top: -5px; left: -1.5px; background: var(--lemon); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 2px 2px 0 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--tone, var(--rose));
  box-shadow: 2px 2px 0 var(--ink);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.section-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 18px; }
.section-head p { color: var(--muted); margin-top: 6px; }
.release-block .section-head { margin-bottom: 13px; }
.release-empty { min-height: 96px !important; background: #fff8fb; }
.release-detail { padding: 14px 0 16px; overflow-wrap: anywhere; }
.release-detail > header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.release-detail h3 { margin-top: 12px; }
.release-detail time { margin-left: auto; }
.release-detail .doc-text { margin-top: 10px; }
.history { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 9px; }
.history summary { font-weight: 760; cursor: pointer; padding-block: 3px; }
.history > p { margin-top: 8px; }
.history-list { list-style: none; padding: 0; margin: 6px 0 0; }
.history-list li { display: flex; flex-wrap: wrap; gap: 9px 13px; align-items: center; border-top: 1px solid var(--line); padding: 10px 0; }
.history-list li > a:first-child { flex: 1; overflow-wrap: anywhere; text-decoration: none; }
.history-list li > a:first-child:hover { text-decoration: underline; }
.history-list .tag { margin-right: 5px; }

.columns { display: grid; grid-template-columns: minmax(150px, 212px) minmax(0, 1fr); align-items: start; gap: 19px; }
.rail { padding: 13px 11px; }
.rail-list { display: grid; gap: 3px; margin-top: 13px; }
.rail-list a { display: flex; gap: 9px; align-items: center; min-width: 0; padding: 7px 8px; border-radius: 4px; text-decoration: none; overflow-wrap: anywhere; }
.rail-list a[aria-current="page"], .rail-list a:hover { background: #ffdeec; font-weight: 730; }
.rail-list a small { margin-left: auto; color: var(--muted); }
.rail-icon { display: inline-grid; place-items: center; width: 22px; height: 21px; border-radius: 4px; flex-shrink: 0; background: var(--tone); font-weight: 780; }
.search { display: flex; gap: 8px; margin-bottom: 15px; align-items: center; }
.search input { flex: 1; min-width: 0; width: 100%; }
.topic-list, .ticket-list, .members { list-style: none; margin: 0; padding: 0; }
.topic-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .95fr) max-content; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.topic-row:first-child, .ticket-list li:first-child { border-top: 1px solid var(--line); }
.topic-title { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.topic-title a { font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.topic-title a:hover, .ticket-list li a:hover { text-decoration: underline; }
.board-badge, .ticket-state, .role, .count {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--tone, var(--wash));
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 760;
}
.topic-stat { display: grid; grid-template-columns: repeat(2, max-content); gap: 5px 8px; justify-content: end; }
.topic-stat time { grid-column: span 2; }
time { font-size: .8rem; color: var(--muted); }
.empty { display: grid; place-content: center; justify-items: center; gap: 7px; min-height: 150px; padding: 17px 12px; text-align: center; color: var(--muted); border: 1px dashed #d8a9c2; border-radius: 6px; }
.empty > span:not(.folder-mark) { color: #a84279; font-size: 1.45rem; line-height: 1; }
.empty strong { color: var(--ink); }
.empty p { font-size: .9rem; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 17px; }
.person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.person-copy { min-width: 0; overflow-wrap: anywhere; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1.4px solid var(--ink);
  border-radius: 50%;
  font-size: .95rem;
  font-weight: 830;
  background: repeating-linear-gradient(135deg, #ffaacb55 0 3px, #ffdced55 3px 7px), #fff1f7;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.nickname { font-weight: 790; }
.nick-rose { color: #a72157; }
.nick-mint { color: #17694f; }
.nick-violet { color: #6940a5; }
.nick-ink { font-weight: 950; letter-spacing: .04em; }
.nick-sunset { color: #9d3c56; text-shadow: 1.25px 1.2px 0 #fed680; }
.role-owner { background: var(--lemon); }
.role-admin { background: var(--violet); }
.signature { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.crumbs { display: flex; gap: 7px; font-size: .85rem; font-weight: 680; margin-bottom: 10px; color: var(--muted); overflow-wrap: anywhere; }
.author-line { margin-top: 11px; display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0; }
.attachment { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; padding: 5px 8px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--wash); overflow-wrap: anywhere; text-decoration: none; }
.attachment:hover { text-decoration: underline; }
.attachment small { color: var(--muted); }
.reply { border-top: 1px solid var(--line); padding-bottom: 9px; }
.reply-form { margin-top: 20px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.doc-text { overflow-wrap: anywhere; }
.doc-text > * + * { margin-top: 12px; }
.doc-text pre { padding: 12px; border-radius: 5px; background: var(--wash); overflow: auto; }
.doc-attribution { color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; margin-top: 20px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; font-weight: 760; min-width: 0; }
.field small { color: var(--muted); font-weight: 500; }
input:not([type="checkbox"]), select, textarea {
  padding: 7px 9px;
  border: 1.5px solid #88667e;
  border-radius: 5px;
  background: #fffafe;
  min-height: 36px;
  min-width: 0;
  max-width: 100%;
  font-weight: 500;
}
textarea { resize: vertical; width: 100%; min-height: 90px; }
input[type="file"] { width: 100%; font-size: .87rem; }
input[type="file"]::file-selector-button { border: 0; border-radius: 3px; background: var(--violet); color: var(--ink); padding: 5px; cursor: pointer; }
.checkbox { display: flex; align-items: center; gap: 5px; }
input[type="checkbox"] { accent-color: #a84279; }
.form-actions { margin-top: 3px; }
.notice { padding: 8px 10px; margin-bottom: 13px; border: 1px solid #8abda9; background: var(--mint); border-radius: 5px; }
.profile-preview { min-height: 130px; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; padding: 16px 7px; overflow-wrap: anywhere; }
.profile-preview .avatar { width: 53px; height: 53px; font-size: 1.25rem; }
.members { margin-top: 10px; }
.members li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 7px 0; }
.standard > .inline-actions + h3 { margin-top: 17px; }
.standard > h2 + .inline-actions { margin-top: 10px; }
.ticket-list li { display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ticket-list li a { text-decoration: none; overflow-wrap: anywhere; }
.state-open { background: var(--lemon); }
.state-answered { background: var(--mint); }
.state-closed { background: var(--violet); }
.filters { margin-bottom: 16px; }
.filter[aria-current="page"] { background: var(--violet); }
.ticket-actions { margin-top: 14px; }
.tickets-messages { margin-bottom: 17px; }

@media (max-width: 780px) {
  .site { width: calc(100% - 22px); margin: 11px auto 22px; }
  .workspace { padding: 18px; min-height: calc(100svh - 110px); }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .rail-list { display: flex; flex-wrap: wrap; }
  .profile-rail .profile-preview { min-height: 75px; }
  .topic-row { grid-template-columns: minmax(0, 1fr) max-content; }
  .topic-row .person { grid-column: 1; grid-row: 2; }
  .topic-stat { grid-column: 2; grid-row: span 2; }
  .hero { flex-wrap: wrap; }
  .downloads { justify-content: flex-start; }
  .download-note { text-align: left; }
}
@media (max-width: 440px) {
  .bar { padding: 13px 11px 13px; }
  .bar-right { gap: 7px; }
  .sprinkles { display: none; }
  .tabs { gap: 4px; padding-inline: 6px; }
  .tab { font-size: .78rem; padding-inline: 1px; }
  .tab > span { display: none; }
  .workspace { padding: 12px 9px; }
  .standard, .hero { padding: 16px 12px; }
  .home-wrap { gap: 13px; }
  .repo-toolbar, .repo-columns { padding-inline: 10px; }
  .ticket-list li { grid-template-columns: minmax(0, 1fr) max-content; }
  .ticket-list time { grid-column: 1 / -1; }
  .downloads .button { font-size: .86rem; padding-inline: 8px; }
  .menu-pop { width: 174px; }
}
@media (prefers-reduced-motion: reduce) { .tab { transition: none; } }
