:root {
  color-scheme: light;
  font-family: "Inter", "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202f29;
  background: #f6f6f1;
  --ink: #202f29;
  --muted: #606d64;
  --forest: #244a3c;
  --rule: #dce1d7;
  --paper: #fffefa;
  --rust: #aa593a;
  --outer: clamp(18px, 3vw, 52px);
  --columns: minmax(0, 1fr) minmax(100px, 16%) minmax(84px, 12%) 84px;
}
* { box-sizing: border-box }
body { margin: 0 }
h1,h2,h3,p { margin: 0 }
button,input,select,textarea { font: inherit }
button,a { touch-action: manipulation }
a { color: var(--forest); text-underline-offset: 3px }
button,.action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--rule); border-radius: 7px; padding: 8px 13px; min-height: 36px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 550; font-size: 14px; line-height: 1.4; cursor: pointer }
button:hover,.action:hover { border-color: #aab9a9; background: #f1f4ec }
button:disabled { opacity: .5; cursor: default }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #b4683c; outline-offset: 3px }
[hidden] { display: none !important }
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle }
.mast { background: var(--paper); border-bottom: 1px solid var(--rule) }
.mast-inner,.workspace,.guest { width: min(100%,1660px); margin-inline: auto; padding-inline: var(--outer) }
.mast-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; font-size: 17px; font-weight: 700; letter-spacing: .02em }
.brand b { background: #254738; color: #fff8e6; font: 800 22px/34px "Arial Black",Arial,sans-serif; letter-spacing: -.09em; text-indent: -.07em; width: 39px; text-align: center; border-radius: 5px }
#account,.actions,.tabs { display: flex; align-items: center; gap: 8px }
.actions { flex-wrap: wrap }
#account { gap: 6px }
.account-action,.account-name { font-size: 13px; color: #46554c }
.account-action { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; min-height: 34px; border: 0; background: transparent; border-radius: 5px; cursor: pointer; font-weight: 500 }
.account-action:hover { color: var(--forest); background: #edf1e7 }
.account-action .icon { width: 16px; height: 16px }
.logout span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden }
.account-name { border-left: 1px solid var(--rule); margin-left: 8px; padding: 3px 1px 3px 17px; font-weight: 650; max-width: 18ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.workspace { display: grid; grid-template-columns: clamp(180px,15.2vw,235px) minmax(0,1fr); align-items: start; gap: clamp(24px,2.6vw,46px); padding-block: clamp(19px,2.15vw,36px) 58px }
.projects { position: sticky; top: 18px; max-height: calc(100dvh - 36px); overflow: auto; scrollbar-width: thin; scrollbar-color: #d7ded1 transparent }
.project-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px 16px; color: #647064 }
.project-heading h2 { font-size: 13px; font-weight: 650; letter-spacing: .06em }
.project-heading span,.projects small { font: 500 12px/1.4 Consolas,monospace; font-variant-numeric: tabular-nums }
.project-heading span { border: 1px solid #d6dcce; border-radius: 4px; padding: 0 5px }
.projects nav { display: grid; gap: 3px }
.projects nav button { width: 100%; display: grid; grid-template-columns: 16px minmax(0,1fr) auto; text-align: left; justify-content: stretch; gap: 10px; min-height: 37px; padding: 8px 11px; font-size: 14px; font-weight: 500; border: 0; background: transparent; color: #435249 }
.projects nav button .icon { width: 15px; height: 15px; color: #869384 }
.projects nav button:hover { background: #eaece4 }
.projects nav button[aria-current=true] { background: #dce7d8; color: #233f2e; font-weight: 700 }
.projects nav button[aria-current=true] .icon { color: #315c3e }
.projects small { color: #586957 }
.projects nav button:first-child { margin-bottom: 6px }
.mobile-project { display: none }
.collection { min-width: 0 }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 218px; padding: 27px clamp(25px,3.2vw,50px); border-radius: 14px; background: linear-gradient(115deg,#193c31 3%,#204537 50%,#365849 100%); color: #fffdf1 }
.hero::before,.hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 }
.hero::before { background-image: linear-gradient(to right,#e9f2d414 1px,transparent 1px),linear-gradient(to bottom,#e9f2d414 1px,transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(100deg,transparent 10%,#000 75%) }
.hero::after { left: 43%; background: url("/terrain.webp") center / contain no-repeat }
.hero-content { width: 54%; min-width: 0 }
.hero h1 { font-family: "STZhongsong","Songti SC","Noto Serif CJK SC","SimSun",serif; font-size: clamp(32px,3.4vw,53px); line-height: 1.2; letter-spacing: .045em; font-weight: 700; overflow-wrap: anywhere }
.totals { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-top: 14px; color: #d9e3d4; font-size: 12px }
.totals span { display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap }
.totals span+span { border-left: 1px solid #698373; margin-left: 16px; padding-left: 16px }
.totals strong { font: 500 20px/1.05 Georgia,"Times New Roman",serif; color: #f3e7bd; font-variant-numeric: lining-nums tabular-nums }
.hero .actions:not(:empty) { margin-top: 22px }
.hero .actions :is(button,a) { padding: 8px 13px; font-size: 13px }
.hero .actions .icon { width: 15px; height: 15px }
.hero-primary { background: #f1e8c8; border-color: #f1e8c8; color: #24382c }
.hero-primary:hover { background: #fff6d9; border-color: #fff6d9 }
.hero-secondary { background: #244838; color: #f1f5e9; border-color: #748d78 }
.hero-secondary:hover { background: #375946; color: white; border-color: #b2c7b1 }
.catalogue { margin-top: 21px; background: var(--paper); border: 1px solid var(--rule); border-radius: 13px; overflow: clip }
.filters { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 0 21px; min-height: 61px; border-bottom: 1px solid var(--rule) }
.tabs { align-self: stretch; gap: clamp(14px,1.7vw,26px) }
.tabs button { min-height: 42px; align-self: stretch; position: relative; border: 0; padding: 4px 0; border-radius: 0; font-size: 14px; color: #6a736b; background: transparent; white-space: nowrap }
.tabs button:hover { color: var(--forest) }
.tabs button[aria-pressed=true] { color: #203b2d; font-weight: 750 }
.tabs button[aria-pressed=true]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: var(--rust); border-radius: 3px 3px 0 0 }
.search-box { display: flex; gap: 8px; align-items: center; width: clamp(180px,20vw,260px); border: 1px solid #dbe0d5; background: #f6f7f1; border-radius: 6px; color: #657365; padding: 0 10px }
.search-box .icon { width: 15px; height: 15px }
input,select,textarea { border: 1px solid #cbd3c8; border-radius: 6px; padding: 9px 10px; background: #fff; color: var(--ink); max-width: 100% }
.search-box input { width: 100%; min-width: 0; font-size: 13px; padding: 8px 0; outline: 0; border: 0; background: transparent }
.search-box:focus-within { outline: 2px solid var(--forest); outline-offset: 1px }
.columns,.row { display: grid; grid-template-columns: var(--columns); align-items: center; gap: clamp(9px,1.4vw,22px); padding-inline: clamp(14px,1.6vw,25px) }
.columns { min-height: 33px; color: #637062; background: #f1f3ec; border-bottom: 1px solid var(--rule); font-size: 11.5px; font-weight: 600; letter-spacing: .055em }
.last-column { text-align: right; padding-right: 9px }
.row { padding-block: 12px; min-height: 73px }
.row+.row { border-top: 1px solid #e6e9e0 }
.row:hover,.row:focus-within { background: #f7f8f2 }
.record { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--ink); text-decoration: none; width: fit-content; max-width: 100% }
.record:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px }
.record-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere }
.record strong { font-size: clamp(14px,1.13vw,17px); letter-spacing: .004em; font-weight: 650; line-height: 1.45 }
.record small,.role { color: var(--muted); font-size: 13px; line-height: 1.5 }
.record small i { margin: 0 5px; font: inherit; color: #acb4a8 }
.role { overflow-wrap: anywhere }
.cover { display: grid; place-items: center; flex: none; position: relative; width: 32px; height: 40px; padding-left: 2px; color: #fff5d5; border-radius: 2px 4px 4px 2px; border: 1px solid #1e302120; background: var(--cover,#59766b); box-shadow: inset 3px 0 #0002,inset 4px 0 #fff3 }
.cover::after { content: ""; position: absolute; inset: auto 4px 3px 6px; height: 1px; background: #fff5 }
.cover .icon { width: 17px; height: 17px; stroke-width: 1.45 }
.cover.pine { --cover: #3c6151 }.cover.ochre { --cover: #a07943 }.cover.blue { --cover: #54717c }.cover.terra { --cover: #a06450 }.cover.moss { --cover: #72804d }.cover.plum { --cover: #826676 }
.status { display: inline-flex; align-items: center; justify-self: start; gap: 6px; font-size: 11.5px; font-weight: 500; line-height: 1.5; white-space: nowrap; padding: 3px 8px; color: #456351; background: #edf2e9; border-radius: 5px }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 100%; background: #77927c }
.status.public { background: #e6f1f1; color: #385f68 }.status.public::before { background: #50838a }
.status.draft { background: #fbefda; color: #805a20 }.status.draft::before { background: #a0793e }
.version-link,.text-button { border: 0; background: transparent; color: var(--forest); font-size: 12px; padding: 7px 2px; min-height: 32px; gap: 3px }
.version-link { justify-self: end; white-space: nowrap }
.version-link .icon { width: 13px; height: 13px }
.version-link:hover,.text-button:hover { background: #e8eee2 }
.empty { text-align: center; padding: 42px 18px; color: var(--muted); font-size: 14px }
.empty>.icon { width: 27px; height: 27px; color: #738571; margin-bottom: 10px }
.empty .text-button { margin-top: 7px }
.guest { max-width: 1260px; padding-block: clamp(22px,4vw,55px) }
.guest .hero { min-height: 240px }
.guest .row { grid-template-columns: minmax(0,1fr) minmax(95px,16%) minmax(84px,12%) }
.public-title { font-size: 17px; padding: 19px 23px; border-bottom: 1px solid var(--rule) }
.loading { padding: 35px; text-align: center; color: var(--muted) }
.primary { background: var(--forest); color: white; border-color: var(--forest) }
.primary:hover { background: #16372c; color: white }
.quiet { background: transparent }
dialog { width: min(680px,94vw); max-height: 90dvh; overflow: auto; padding: 0; border: 1px solid var(--rule); border-radius: 13px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 90px #172a2140 }
dialog::backdrop { background: #142a2380 }
.dialog-head { padding: 16px 21px; display: flex; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); background: #f1f4eb }
.dialog-head h2 { font-size: 18px }
#dialog-body { padding: 20px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55 }
#dialog-body label { display: block; margin: 12px 0 5px }
#dialog-body textarea { width: 100%; min-height: 155px; font: 13px/1.45 Consolas,monospace }
#dialog-body table { border-collapse: collapse; width: 100% }
#dialog-body th,#dialog-body td { padding: 7px; text-align: left; border-bottom: 1px solid var(--rule) }
#dialog-body input[type=checkbox] { margin-right: 7px }
#dialog-body :is(#p-actions,#save-text,#member-list,#member-results) { margin-top: 10px }
.muted { color: var(--muted); font-size: 13px }
.version { padding: 15px 0; border-top: 1px solid var(--rule) }
.version h3 { font-size: 16px }
.version p { margin: 5px 0 12px }
.checklist { padding: 8px 0 8px 18px }
.warning,.error { color: #963e23 }.error { white-space: pre-wrap; margin: 12px 0 }
.error:empty,.totals:empty { display: none }
.file { width: 100%; margin-bottom: 9px }.manual { margin: 12px 0 18px }.manual summary { cursor: pointer }
.block-text { display: grid; gap: 8px; max-height: 50vh; overflow: auto }.block-text button { text-align: left; justify-content: start; font-weight: 400 }
#notice { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 10; background: var(--forest); color: white; border-radius: 7px; padding: 12px 20px }
.reader { height: 100dvh; display: flex; flex-direction: column }.reader header { display: flex; align-items: center; gap: 16px; padding: 10px 19px; border-bottom: 1px solid var(--rule); font-size: 14px }.reader header span { margin-left: auto; color: var(--muted) }.reader iframe { flex: 1; width: 100%; border: 0; background: white }.ref { overflow-wrap: anywhere }
@media(max-width:1050px) {
  .workspace { grid-template-columns: 175px minmax(0,1fr); gap: 19px }
  .projects nav button { gap: 7px; padding-inline: 8px }
  .row,.columns { column-gap: 10px; --columns: minmax(0,1fr) minmax(76px,13%) 78px 65px }
  .record { gap: 10px }
}
@media(max-width:820px) {
  .workspace { display: block; padding-top: 13px }
  .projects { position: static; display: flex; align-items: center; gap: 16px; max-height: none; overflow: visible; margin-bottom: 13px }
  .project-heading { padding: 0; gap: 7px }
  .projects nav { display: none }
  .mobile-project { display: flex; position: relative; align-items: center; min-width: 0 }
  .mobile-project .icon { position: absolute; left: 9px; width: 15px; color: var(--forest); pointer-events: none }
  .mobile-project select { width: 100%; padding: 6px 28px 6px 31px; font-size: 13px; color: var(--ink); background-color: var(--paper) }
  .hero { min-height: 188px }
  .catalogue { margin-top: 15px }
}
@media(max-width:600px) {
  :root { --outer: 13px }
  .mast-inner { min-height: 50px; gap: 6px }
  .brand { font-size: 15px; gap: 8px }.brand b { width: 33px; font-size: 19px; line-height: 29px }
  #account { gap: 0 }.account-action { justify-content: center; width: 32px; padding: 6px }
  .account-action span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden }
  .account-name { margin-left: 3px; padding-left: 8px; max-width: 7ch; font-size: 12px }
  .workspace { padding-bottom: 26px }
  .project-heading h2 { font-size: 12px }
  .hero,.guest .hero { min-height: 166px; border-radius: 10px; padding: 22px 16px }
  .hero-content { width: 80% }
  .hero h1 { font-size: 31px; max-width: 95%; text-shadow: 0 1px 3px #17372b }
  .hero::after { left: 46%; right: -3%; top: -7%; bottom: 10%; opacity: .8; mask-image: linear-gradient(to right,transparent,#000 29%) }
  .hero::before { background-size: 20px 20px }
  .totals { margin-top: 10px; font-size: 11px }.totals strong { font-size: 17px }.totals span+span { margin-left: 9px; padding-left: 9px }
  .hero .actions:not(:empty) { margin-top: 17px }.hero .actions :is(a,button) { font-size: 12px; padding: 6px 9px; min-height: 32px }
  .filters { flex-wrap: wrap; min-height: 0; gap: 0; padding: 10px 13px 0 }
  .search-box { order: -1; width: 100% }.tabs { gap: 22px }.tabs button { min-height: 42px; font-size: 13px }
  .catalogue { border-radius: 10px }.columns { display: none }
  .row,.guest .row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; row-gap: 5px; padding: 12px 13px 9px }
  .record { grid-column: 1/-1; gap: 10px }.record strong { font-size: 15px; line-height: 1.45 }
  .cover { width: 27px; height: 35px }.cover .icon { width: 15px; height: 15px }
  .record-copy { gap: 2px }.record small,.role { font-size: 11px }
  .row .role { margin-left: 37px }.status { font-size: 10.5px; padding: 2px 5px }
  .version-link { font-size: 12px; min-height: 34px; padding-block: 5px }
  .reader header { font-size: 12px; gap: 8px }.reader header span { display: none }.reader header a { flex: none }
}
@media(prefers-reduced-motion:no-preference) {
  :where(button,a,.row) { transition: background-color .15s,color .15s,border-color .15s }
}
