:root {
  --sky: #d1e9f6;
  --sky-deep: #b7d4e8;
  --cloud: #f8f9fa;
  --panel: #fffdf8;
  --sage: #6b8e7b;
  --sage-deep: #5a7a6a;
  --forest: #4e6b5c;
  --stone: #c5c2b8;
  --stone-deep: #a8a49a;
  --earth: #3e2723;
  --muted: #6b645c;
  --egg: #fffef9;
  --warn: #8a6a3a;
  --shadow: 0 10px 28px rgba(62, 39, 35, 0.08);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--earth);
  background:
    radial-gradient(900px 420px at 12% -8%, #eef6fb 0%, transparent 58%),
    radial-gradient(760px 380px at 96% 6%, #cfe3f0 0%, transparent 52%),
    linear-gradient(180deg, var(--sky) 0%, #c9dce8 72%, var(--stone) 100%);
  padding: 28px 20px 56px;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-copy { min-width: 0; }

h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--forest);
}

h2 {
  margin: 0 0 14px;
  font-size: 1.12rem;
  color: var(--forest);
  font-weight: 700;
}

.lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.mark {
  flex-shrink: 0;
  width: 92px;
  height: 64px;
  color: var(--sage);
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(168, 164, 154, 0.55);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.home-banner {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.home-banner:hover {
  border-color: var(--sage);
}

.home-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #e8f0f6;
}

.home-banner-caption {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 286px) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: stretch;
}

.top-row .panel { margin-bottom: 0; }

.entry-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.entry-stack .signup-entry,
.entry-stack .fund-entry {
  flex: 0 0 auto;
  display: block;
  width: 100%;
}

.top-row .qr-box,
.top-row .extra-box {
  height: 0;
  min-height: 100%;
  overflow: hidden;
}

.top-row .qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.top-row .qr-box img {
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 8px;
}

.top-row .qr-link {
  flex: 0 0 auto;
  margin-top: 8px;
}

.extra-box {
  min-width: 0;
}

.qr-box { text-align: center; }

.qr-box img {
  display: block;
  width: min(240px, 70vw);
  height: auto;
  margin: 0 auto 12px;
  padding: 12px;
  background: var(--egg);
  border: 2px solid var(--earth);
  border-radius: 8px;
}

.qr-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.qr-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 0;
}

.qr-link a {
  color: #9e2f28;
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  line-height: 1.1;
}

.qr-link a:hover { text-decoration: underline; }

.qr-arrow {
  color: #9e2f28;
  font-size: 1.8rem;
  animation: point 1s ease-in-out infinite;
}

.qr-arrow-left { transform: scaleX(-1); }

@keyframes point {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.qr-arrow-left {
  animation-name: point-left;
}

@keyframes point-left {
  0%, 100% { transform: scaleX(-1) translateX(0); }
  50% { transform: scaleX(-1) translateX(6px); }
}

.job-groups {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.job-group {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  text-align: center;
}

.job-group + .job-group {
  border-left: 1px solid var(--stone);
}

.job-group h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.job-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.job-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 86px;
  min-height: 58px;
  padding: 8px 4px;
  text-align: center;
  text-decoration: none;
  color: var(--egg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--sage);
  border: 1px solid var(--forest);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(78, 107, 92, 0.18);
  transition: background 0.12s ease, transform 0.12s ease;
}

.job-card:hover { background: var(--sage-deep); }

.job-card:active { transform: translateY(1px); }

.job-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.job-nick {
  margin-top: 2px;
  color: rgba(255, 254, 249, 0.82);
  font-size: 0.68rem;
}

.job-rose {
  color: var(--earth);
  background: #e8b6b0;
  border-color: #c48b84;
  box-shadow: 0 6px 14px rgba(196, 139, 132, 0.2);
}

.job-rose:hover { background: #ddaaa3; }

.job-blue {
  color: var(--earth);
  background: #b7d0e0;
  border-color: #8eafc2;
  box-shadow: 0 6px 14px rgba(142, 175, 194, 0.22);
}

.job-blue:hover { background: #a8c4d6; }

.job-brown {
  color: var(--earth);
  background: #cbb59a;
  border-color: #a89074;
  box-shadow: 0 6px 14px rgba(168, 144, 116, 0.2);
}

.job-brown:hover { background: #c0a88c; }

.job-brick {
  color: var(--egg);
  background: #c27268;
  border-color: #9e564e;
  box-shadow: 0 6px 14px rgba(194, 114, 104, 0.22);
}

.job-brick:hover { background: #b4645b; }

.job-rose .job-nick,
.job-blue .job-nick,
.job-brown .job-nick {
  color: rgba(62, 39, 35, 0.62);
}

.dir-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px 28px;
  padding: 18px 22px 20px;
}

.dir-col { min-width: 0; }

.dir-col h2 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--stone);
  font-size: 1rem;
}

.dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: dir;
}

.dir-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(197, 194, 184, 0.35);
}

.dir-list li::before {
  counter-increment: dir;
  content: counter(dir);
  flex: 0 0 1.1em;
  color: #b0aaa2;
  font-weight: 700;
  font-size: 0.95rem;
}

.dir-list li:nth-child(1)::before { color: #e85d6a; }
.dir-list li:nth-child(2)::before { color: #e89a3a; }
.dir-list li:nth-child(3)::before { color: #c9b04a; }

.dir-list a {
  color: var(--earth);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
}

.dir-list a:hover { color: #1a5f9e; }

.craft-list,
.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tool-list li + li {
  margin-top: 8px;
}

.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--cloud);
  border: 1px solid var(--stone);
  border-radius: 16px;
}

.tool-meta { min-width: 0; }

.tool-name { font-weight: 600; }

.tool-size {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-wait {
  background: var(--stone);
  color: #5c5850;
  border: 1px solid var(--stone-deep);
  pointer-events: none;
}

a.btn-dl,
a.btn {
  background: var(--sage);
  color: var(--egg);
  border: 1px solid var(--forest);
}

a.btn-dl:hover,
a.btn:hover { background: var(--sage-deep); }

.signup-entry {
  display: block;
  align-self: flex-start;
  box-sizing: border-box;
  width: min(286px, 100%);
  padding: 12px;
  text-decoration: none;
  overflow: hidden;
}

.signup-entry:hover {
  border-color: var(--sage);
}

.signup-entry img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 260 / 100;
  object-fit: cover;
  border-radius: 14px;
}

.raid-entry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 18px;
}

.raid-entry-row .panel {
  margin-bottom: 0;
}

.raid-entry-row .roles-showcase-side {
  flex: 1 1 320px;
  min-width: 280px;
  margin-top: 0;
}

.raid-entry-row .roles-showcase-side .roles-slots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.raid-actions-wide {
  width: 100%;
  margin-top: 18px;
  margin-bottom: 0;
  justify-content: space-between;
}

.raid-actions-wide .raid-action {
  flex: 1 1 0;
  width: auto;
  min-width: 140px;
}

.raid-schedule {
  margin-top: 40px;
}

.roles-showcase {
  margin-top: 28px;
  margin-bottom: 0;
}

.raid-actions-wide + .raid-schedule,
.roles-showcase + .raid-schedule {
  margin-top: 28px;
}

.raid-schedule-row {
  margin: 0;
}

.raid-schedule-row h3 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
}

.raid-schedule-empty {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  background: var(--cloud);
  border: 1px dashed rgba(168, 164, 154, 0.55);
  border-radius: 14px;
}

.raid-schedule-empty.is-done {
  color: var(--forest);
  border-style: solid;
  border-color: rgba(90, 122, 90, 0.35);
  background: rgba(90, 122, 90, 0.08);
}

.activity-mine {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(90, 122, 90, 0.1);
  color: var(--forest);
  font-size: 0.92rem;
}

.weekly-incomplete {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.weekly-incomplete-char {
  padding: 12px 14px;
  background: var(--cloud);
  border: 1px solid rgba(168, 164, 154, 0.45);
  border-radius: 14px;
}

.weekly-incomplete-char-name {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.weekly-incomplete-char-done {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.weekly-incomplete-section {
  margin-top: 8px;
}

.weekly-incomplete-section h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.weekly-incomplete-grid {
  margin: 0;
}

.weekly-item-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(168, 164, 154, 0.35);
  position: relative;
}

.weekly-item-done {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  margin: 0;
  padding: 1px 6px;
  border: 1px solid rgba(90, 122, 90, 0.45);
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.weekly-item-done:hover {
  background: rgba(90, 122, 90, 0.1);
}

.weekly-item-done.is-armed {
  background: #2f7a45;
  border-color: #246338;
  color: #fff;
}

.weekly-item-done:disabled {
  opacity: 0.65;
  cursor: wait;
}

.weekly-item-chip.has-holders {
  cursor: help;
  border-color: rgba(90, 122, 90, 0.55);
}

.weekly-item-chip.no-holders {
  cursor: help;
}

.weekly-item-tip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 20;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  background: #2f3633;
  color: #f4f7f5;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-align: left;
  pointer-events: none;
}

.weekly-item-chip:hover .weekly-item-tip {
  display: block;
}

.weekly-item-tip-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.weekly-item-tip-row + .weekly-item-tip-row {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.join-weekly-cols {
  display: block;
  max-width: 920px;
}

.join-weekly-col h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.raid-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  width: fit-content;
  padding: 8px;
}

.raid-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 168px;
  padding: 16px 14px 14px;
  text-decoration: none;
  color: var(--earth);
  border-radius: 16px;
}

.raid-action + .raid-action {
  border-left: 1px solid rgba(197, 194, 184, 0.55);
}

.raid-action:hover { background: var(--cloud); }

.raid-action img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 16px;
}

.raid-action span {
  font-weight: 700;
  font-size: 0.95rem;
}

.raid-action small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.weekly-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.weekly-hint a {
  color: var(--forest);
  font-weight: 700;
}

.weekly-kills {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.weekly-kills legend {
  margin: 0 0 10px;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.weekly-kill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.weekly-kill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  cursor: pointer;
  background: var(--cloud);
  border: 1px solid var(--stone);
  border-radius: 14px;
  color: var(--earth);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.weekly-kill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.weekly-kill:has(input:checked) {
  border-color: var(--sage);
  background: #eef6f1;
  box-shadow: inset 0 0 0 1px rgba(107, 142, 123, 0.35);
}

.weekly-kill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 55%),
    repeating-linear-gradient(
      -45deg,
      rgba(168, 164, 154, 0.18) 0 6px,
      rgba(168, 164, 154, 0.05) 6px 12px
    ),
    #e8e4dc;
  border: 1px dashed var(--stone-deep);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.weekly-kill-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffdf8;
}

.weekly-kill-name {
  line-height: 1.3;
}

@media (max-width: 720px) {
  .weekly-kill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .weekly-kill-grid { grid-template-columns: 1fr; }
}

.signup-form {
  display: grid;
  gap: 14px;
  max-width: 360px;
}

.weekly-form {
  max-width: none;
}

.yitiao-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.yitiao-head-main {
  min-width: 0;
}

.yitiao-head-main h1 {
  margin: 0 0 4px;
  font-size: 1.45rem;
}

.yitiao-rule-note {
  margin: 0;
  padding-left: 8px;
  border-left: 3px solid rgba(180, 40, 40, 0.6);
  color: #a01818;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.yitiao-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  padding-top: 4px;
}

.yitiao-meta-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--cloud);
  border: 1px solid rgba(168, 164, 154, 0.45);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
}

.yitiao-meta-chip:empty {
  display: none;
}

.yitiao-meta-chip.yitiao-status.is-locked {
  color: #9a4a2a;
  background: #fff1e8;
  border-color: rgba(154, 74, 42, 0.4);
  font-weight: 700;
}

#yitiao-form {
  max-width: none;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 14px 22px;
  align-items: start;
}

#yitiao-form.is-locked {
  opacity: 0.72;
}

.yitiao-form-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

@media (max-width: 720px) {
  #yitiao-form {
    grid-template-columns: 1fr;
  }
}

.yitiao-lock-banner {
  margin: 0 0 12px;
  padding: 8px 12px;
  color: #7a3418;
  background: #fff1e8;
  border: 1px solid rgba(154, 74, 42, 0.35);
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 600;
}

.yitiao-placement {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(90, 122, 90, 0.12);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 600;
  display: grid;
  gap: 2px;
}

.yitiao-placement-line {
  display: block;
  color: var(--muted);
}

.yitiao-placement-line.is-team {
  color: var(--forest);
}

.yitiao-mine-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.82rem;
}

.yitiao-mine-label {
  color: var(--muted);
  font-weight: 600;
}

.yitiao-mine-chip {
  padding: 1px 10px;
  border-radius: 999px;
  border: 1px solid rgba(90, 122, 90, 0.35);
  background: rgba(90, 122, 90, 0.1);
  color: var(--forest);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
}

.yitiao-mine-chip:hover {
  background: rgba(90, 122, 90, 0.18);
}

.yitiao-mine-chip.is-current {
  background: var(--sage);
  border-color: var(--forest);
  color: var(--egg);
}

#yitiao-teams.yitiao-teams {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

#yitiao-teams.yitiao-teams > .signup-empty,
#yitiao-teams.yitiao-teams > .yitiao-team-card.is-pending,
#yitiao-teams.yitiao-teams > .yitiao-team-card.is-wait {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  #yitiao-teams.yitiao-teams {
    grid-template-columns: 1fr;
  }
}

.yitiao-team-card {
  padding: 12px 14px;
  background: var(--cloud);
  border: 1px solid rgba(168, 164, 154, 0.45);
  border-radius: 14px;
}

.yitiao-team-card.is-pending {
  border-color: rgba(180, 40, 40, 0.35);
  background: rgba(200, 50, 50, 0.06);
}

.yitiao-team-card.is-wait {
  border-style: dashed;
}

.yitiao-team-head {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.yitiao-team-members {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yitiao-team-member {
  font-size: 0.88rem;
  color: var(--muted);
}

.yitiao-team-member.is-eye-boss {
  color: #c9a227;
  font-weight: 700;
}

.yitiao-loot-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 12px;
}

.yitiao-loot-strip-title {
  flex: 0 0 auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.2);
  color: #8a6a1a;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.yitiao-loot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink);
}

.yitiao-loot-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.yitiao-loot-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest);
}

.yitiao-loot-bar {
  opacity: 0.4;
  margin: 0 0.5em;
}

@media (max-width: 560px) {
  .yitiao-loot-strip {
    flex-direction: column;
    gap: 6px;
  }
}

.yitiao-loot-body {
  flex: none;
  min-width: 0;
}

.yitiao-loot-sep {
  opacity: 0.6;
}

.yitiao-loot .is-eye-boss {
  color: #c9a227;
  font-weight: 700;
}

.yitiao-placement-home .raid-schedule-empty {
  margin: 0;
}

.yitiao-needs {
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid rgba(168, 164, 154, 0.45);
  border-radius: 16px;
  background: var(--panel);
  min-width: 0;
}

.yitiao-needs legend {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forest);
}

.yitiao-needs-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.yitiao-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.yitiao-opt {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--cloud);
  border: 1px solid var(--stone);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  color: var(--earth) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.yitiao-opt:hover {
  border-color: var(--sage);
  background: #f2f6f3;
}

.yitiao-opt input {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px;
  margin: 2px 0 0;
  cursor: pointer;
  accent-color: var(--forest);
}

.yitiao-opt-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.yitiao-opt-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.3;
}

.yitiao-opt-sub {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.yitiao-opt.is-on {
  background: rgba(107, 142, 123, 0.14);
  border-color: var(--sage-deep);
  box-shadow: inset 0 0 0 1px rgba(90, 122, 106, 0.35);
}

.yitiao-opt.is-disabled,
.yitiao-opt.is-na {
  cursor: not-allowed;
  background: #f1f1ee;
  border-color: rgba(168, 164, 154, 0.35);
  color: var(--muted) !important;
  box-shadow: none;
}

.yitiao-opt.is-disabled:hover,
.yitiao-opt.is-na:hover {
  border-color: rgba(168, 164, 154, 0.35);
  background: #f1f1ee;
}

.yitiao-opt.is-disabled input,
.yitiao-opt.is-na input {
  cursor: not-allowed;
}

.yitiao-opt.is-disabled .yitiao-opt-title,
.yitiao-opt.is-na .yitiao-opt-title {
  opacity: 0.6;
}

.yitiao-opt-eye {
  grid-column: 1 / -1;
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.08);
}

.yitiao-opt-eye:hover {
  border-color: #b8901f;
  background: rgba(201, 162, 39, 0.14);
}

.yitiao-opt-eye input {
  accent-color: #b8901f;
}

.yitiao-opt-eye.is-on {
  background: rgba(201, 162, 39, 0.2);
  border-color: #b8901f;
  box-shadow: inset 0 0 0 1px rgba(184, 144, 31, 0.45);
}

.yitiao-opt-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  color: #8a6a1a;
  background: rgba(201, 162, 39, 0.2);
}

.yitiao-opt-badge.is-full {
  color: #9e2f28;
  background: rgba(158, 47, 40, 0.12);
}

@media (max-width: 560px) {
  .yitiao-opts {
    grid-template-columns: 1fr;
  }
}

.yitiao-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.yitiao-pool-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.yitiao-pool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.yitiao-pool-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-width: 0;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(168, 164, 154, 0.3);
  font-size: 0.86rem;
  line-height: 1.35;
}

.yitiao-pool-name {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.yitiao-pool-meta {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.yitiao-pool-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.yitiao-pool-tags span {
  display: inline-block;
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--forest);
  background: rgba(90, 122, 90, 0.1);
  border-radius: 999px;
}

.yitiao-pool-tags span.is-none {
  color: var(--stone-deep);
  background: transparent;
  padding: 0;
}

@media (max-width: 560px) {
  .yitiao-pool {
    grid-template-columns: 1fr;
  }
}

.signup-form > label:not(.signup-remember),
.yitiao-form-side > label,
.roles-extra > label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.signup-form input[type="text"],
.signup-form input[type="number"],
.signup-form input[type="password"],
.signup-form input[type="date"],
.signup-form input:not([type]),
.signup-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--stone);
  border-radius: 12px;
  background: var(--egg);
  color: var(--earth);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
}

.signup-form input:focus,
.signup-form select:focus {
  outline: 2px solid rgba(107, 142, 123, 0.35);
  border-color: var(--sage);
}

.signup-who {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.roles-extra {
  display: grid;
  gap: 14px;
}

.roles-extra[hidden] { display: none; }

.roles-list-title {
  margin: 22px 0 10px;
  font-size: 1rem;
}

.roles-slots-panel h2 {
  margin: 0;
}

.roles-slots-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.roles-slots-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.roles-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.roles-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  min-height: 0;
  padding: 8px 44px 8px 10px;
  background: var(--cloud);
  border: 1px solid var(--stone);
  border-radius: 14px;
}

.roles-level-btns {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  flex-direction: row;
  gap: 2px;
}

.roles-level-btn {
  width: 18px;
  height: 16px;
  padding: 0;
  line-height: 1;
  font-size: 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.roles-level-btn:first-child {
  background: rgba(90, 122, 90, 0.18);
  border-color: rgba(90, 122, 90, 0.55);
  color: #3d6b3d;
}

.roles-level-btn:first-child:hover {
  background: rgba(90, 122, 90, 0.32);
}

.roles-level-btn:last-child {
  background: rgba(180, 60, 60, 0.14);
  border-color: rgba(180, 60, 60, 0.5);
  color: #a02828;
}

.roles-level-btn:last-child:hover {
  background: rgba(180, 60, 60, 0.28);
}

.roles-level-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.roles-slot.is-empty {
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 8px 10px;
  border-style: dashed;
  background: transparent;
}

.roles-slot-empty {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.roles-slot .btn-ghost {
  margin-top: 0;
  align-self: auto;
  padding: 4px 10px;
  font-size: 0.78rem;
}

.roles-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.roles-slot .btn-danger,
button.btn-danger {
  margin: 0;
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 60, 60, 0.55);
  background: #c44;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.roles-slot .btn-danger:hover,
button.btn-danger:hover {
  background: #a83333;
}

#roles-cancel-edit {
  margin-left: 8px;
}

.roles-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.roles-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(197, 194, 184, 0.35);
}

.roles-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.roles-info {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 900px) {
  .roles-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .roles-slots { grid-template-columns: 1fr; }
}

button.btn-ghost {
  width: auto;
  background: var(--cloud);
  color: var(--earth);
  border: 1px solid var(--stone);
}

button.btn-ghost:hover { background: #eef2f4; }

.signup-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--earth);
  font-size: 0.92rem;
  font-weight: 600;
}

.signup-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--forest);
}

button.btn {
  width: fit-content;
  cursor: pointer;
  font-family: inherit;
  background: var(--sage);
  color: var(--egg);
  border: 1px solid var(--forest);
}

button.btn:hover { background: var(--sage-deep); }

.signup-msg {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 600;
}

.signup-msg.is-ok { color: var(--forest); }
.signup-msg.is-err { color: #9e2f28; }

.crumb {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumb a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
}

.crumb a:hover { text-decoration: underline; }

.crumb span { color: var(--earth); }

.pending {
  margin: 0;
  color: var(--warn);
  font-weight: 600;
}

.guide-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 12px;
}

.guide-text {
  margin: 12px 0 0;
  color: var(--earth);
  line-height: 1.7;
  font-size: 0.98rem;
}

.guide-text-strong {
  margin: 12px 0 0;
  color: var(--earth);
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 700;
}

.guide-label {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-quote {
  margin: 0;
  padding: 14px 16px;
  background: var(--cloud);
  border: 1px solid var(--stone);
  border-radius: 14px;
  color: var(--earth);
  line-height: 1.65;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: pre-wrap;
  word-break: break-word;
}

.ground {
  margin-top: 8px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4d0c6, var(--stone-deep));
}

@media (max-width: 900px) {
  .dir-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .job-groups { flex-wrap: wrap; }
  .job-group {
    flex: 0 0 33.33%;
    margin-bottom: 12px;
  }
  .job-group:nth-child(3n + 1) { border-left: none; }
}

@media (max-width: 640px) {
  .hero { align-items: center; }
  .mark { width: 72px; height: 50px; }
  .qr-link a { font-size: 1.55rem; }
  .dir-panel { grid-template-columns: 1fr; }
  .top-row { grid-template-columns: 1fr; }
  .top-row .qr-box,
  .top-row .extra-box {
    height: auto;
    overflow: visible;
  }
  .top-row .qr-box { display: block; }
  .top-row .qr-box img {
    width: min(240px, 70vw);
    max-height: none;
    margin: 0 auto 12px;
  }
  .entry-stack .signup-entry,
  .entry-stack .fund-entry { flex: 0 0 auto; }
}

.fund-entry {
  display: block;
  align-self: flex-start;
  box-sizing: border-box;
  width: min(286px, 100%);
  padding: 12px;
  text-decoration: none;
  overflow: hidden;
}

.fund-entry:hover { border-color: var(--sage); }

.fund-entry img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 260 / 100;
  object-fit: cover;
  border-radius: 14px;
}

.fund-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fund-head h1 {
  margin: 0;
  font-size: 1.45rem;
}

.fund-actions {
  display: flex;
  gap: 8px;
}

.fund-hint {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.fund-pass { margin-bottom: 12px; }

.fund-form[hidden],
.fund-pass[hidden],
#fund-book[hidden],
#fund-lock[hidden] {
  display: none !important;
}

.fund-form {
  max-width: none;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  margin: 0 0 14px;
}

.fund-span { grid-column: 1 / -1; }

.fund-guilds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.fund-card {
  min-width: 0;
  padding: 12px 12px 8px;
  background: var(--cloud);
  border: 1px solid var(--stone);
  border-radius: 16px;
}

.fund-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fund-card h2 {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 1.02rem;
}

.fund-detail-link {
  color: #8a847c;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.fund-detail-link:hover {
  color: #6b645c;
  text-decoration: underline;
}

.fund-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
}

.fund-pager[hidden] { display: none !important; }

.fund-pager a,
.fund-pager-off {
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.fund-pager-off { color: var(--stone-deep); }

.fund-pager a:hover { text-decoration: underline; }

.fund-pager-num {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.fund-balance {
  margin: 0;
  color: var(--forest);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fund-balance.is-neg { color: #9e2f28; }

.fund-empty {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.fund-table-wrap { overflow-x: auto; }

.fund-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.fund-table th,
.fund-table td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(197, 194, 184, 0.55);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.fund-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.fund-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fund-in { color: var(--forest); font-weight: 700; }
.fund-out { color: #9e2f28; font-weight: 700; }

.fund-note {
  white-space: normal;
  word-break: break-word;
}

button.fund-del {
  padding: 2px 8px;
  border: 1px solid #e3b2ae;
  border-radius: 999px;
  background: transparent;
  color: #9e2f28;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

button.fund-del:hover { background: #f8ecea; }

@media (max-width: 720px) {
  .fund-form { grid-template-columns: 1fr; }
}
