.member-shell { width: min(880px, calc(100% - 32px)); margin: 38px auto; }
.member-panel { border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 4vw, 40px); background: white; }
.member-panel h1 { margin: 0 0 22px; font-size: clamp(25px, 4.4vw, 36px); }
.member-panel h2 { font-size: 17px; }
.member-panel a { color: var(--blue); }
.member-panel .primary { color: white; }
.member-panel p { overflow-wrap: anywhere; }
.login-shell { max-width: 480px; margin-block: clamp(32px, 11vh, 115px); }
.site-name { color: var(--blue); font-weight: 700; }
.uid-help { border-top: 1px solid var(--line); margin-top: 18px; line-height: 1.75; }
.introduction { isolation: isolate; position: relative; overflow: hidden; line-height: 1.85; }
.introduction::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('/assets/guild-intro.png') center 44% / cover no-repeat; opacity: .13; }
.introduction p { margin-block: 0 1.25em; }
.intro-emphasis { color: #244bb0; background: #e7efff; padding: .13em .28em; border-radius: 4px; box-decoration-break: clone; }
.intro-motto { font-size: 1.18em; }
.introduction .intro-signature { margin: 0; text-align: right; font-weight: 700; }
.section-heading { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.primary, .secondary { display: inline-block; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 9px 14px; font: inherit; font-weight: 700; text-decoration: none; line-height: 1.4; }
.primary { background: var(--blue); border-color: var(--blue); color: white; }
.secondary { background: #eff4fc; color: var(--ink); }
.secondary[aria-pressed=true] { background: #dae7ff; }
.member-form { display: grid; gap: 9px; }
.member-form label { font-weight: 700; margin-top: 4px; }
.member-form input, .member-form select, .member-form textarea { width: 100%; min-width: 0; color: var(--ink); background: white; border: 1px solid #a8bad7; border-radius: 7px; font: inherit; padding: 10px 12px; }
.member-form textarea { resize: vertical; }
.member-form .form-status:empty { display: none; }
.form-status { margin: 0; color: #855027; }
.login-panel .primary { width: 100%; }
.notice-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.notice-table th, .notice-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); text-align: center; overflow-wrap: anywhere; }
.notice-table th { border-top: 2px solid var(--blue-deep); background: #eff4fc; }
.notice-table :is(th,td):nth-child(1) { width: 8%; }
.notice-table :is(th,td):nth-child(3) { width: 16%; }
.notice-table :is(th,td):nth-child(4) { width: 19%; }
.notice-table :is(th,td):nth-child(5) { width: 11%; }
.notice-table a { font-weight: 700; }
.notice-meta { color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.notice-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; margin-block: 24px; }
.notice-comments { border-top: 1px solid var(--line); margin-top: 24px; }
.notice-comments ul { list-style: none; padding: 0; }
.notice-comments li { border-bottom: 1px solid var(--line); padding-block: 10px; }
.notice-comments p { white-space: pre-wrap; margin: 6px 0 0; }
.character-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.character-grid a { display: grid; gap: 8px; place-items: center; padding: 12px 3px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-align: center; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.character-grid a:hover, .character-grid a:focus-visible { border-color: var(--blue); background: #eff4fc; }
.character-grid img, .character-portrait { width: min(76px, 90%); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.character-portrait { width: min(130px, 100%); display: block; margin-block: 16px; }
@media (max-width: 520px) {
  .member-shell { margin-block: 20px; }
  .login-shell { margin-top: 42px; }
  .introduction br { display: none; }
  .notice-table { font-size: 12px; }
  .notice-table th, .notice-table td { padding-inline: 3px; }
  .notice-table :is(th,td):nth-child(1) { width: 10%; }
  .notice-table :is(th,td):nth-child(3) { width: 18%; }
  .notice-table :is(th,td):nth-child(4) { width: 21%; }
  .notice-table :is(th,td):nth-child(5) { width: 12%; }
  .character-grid { gap: 6px; font-size: 12px; }
}
.developer-account { border-top: 1px solid var(--line); padding-block: 14px; }
.developer-account > button { margin-top: 10px; }
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.member-home{display:inline-block;margin-bottom:12px;color:var(--blue);font-weight:700}
.uid-steps{padding-left:24px;margin:0;display:grid;gap:6px}
.uid-steps li::marker{color:var(--blue);font-weight:700}
.post-search{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;margin-top:20px}
.post-search input,.post-search select,.catalog-heading input{width:100%;min-width:0;border:1px solid #a8bad7;border-radius:7px;padding:8px 9px;background:var(--white);color:var(--ink);font:inherit}
.post-remove{margin-left:8px}
.catalog-heading{align-items:flex-start}
.catalog-heading form{position:relative;width:min(48%,245px)}
.character-results{position:absolute;z-index:2;top:100%;width:100%;max-height:220px;overflow:auto;padding:5px 0;margin:4px 0 0;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);box-shadow:0 4px 12px #10182030;list-style:none;font-size:14px}
.character-results li{padding:5px 9px;overflow-wrap:anywhere}
.character-results a{display:block}
.character-results a:hover{text-decoration:underline}
.character-results mark{background:#e2ecff;color:#234da8;font-weight:800}
[data-theme=dark] .character-results mark{background:#2b426f;color:#e0ecff}
@media(max-width:520px){.catalog-heading{gap:8px}.catalog-heading input{font-size:13px}.post-search{gap:5px}.post-search input,.post-search select,.post-search button{padding-inline:6px}}
@media(max-width:600px){.uid-pc-break{display:none}}
.profile-identity{display:flex;gap:16px;align-items:center;margin-bottom:18px}
.profile-identity .profile-avatar{width:76px;height:76px;font-size:30px}
.profile-identity h2{margin:0}
.profile-identity p,.profile-history small{color:var(--muted)}
.profile-history{margin-top:24px}
.profile-history ul{padding:0;list-style:none}
.profile-history li{border-top:1px solid var(--line);padding:9px 0;overflow-wrap:anywhere}
.profile-history small{display:block}
.profile-history li p{white-space:pre-wrap}
.rename-member{margin-bottom:16px}
.notice-body:has(h3){white-space:normal}
.notice-body h3{font-size:1.08em;margin:22px 0 6px}
.notice-body p{margin:0 0 12px}
.post-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:12px}
.post-heading h2{margin:0;font-size:clamp(20px,3.6vw,30px);line-height:1.28;overflow-wrap:anywhere;min-width:0}
.post-byline{display:flex;align-items:center;gap:7px;max-width:37%;font-weight:700;font-size:14px;overflow-wrap:anywhere}
.post-byline .profile-avatar{margin:0;width:58px;height:58px}
.post-byline-bot{flex:0 0 auto;flex-direction:column;align-items:center;gap:4px;min-width:52px;white-space:nowrap;word-break:keep-all}
.post-byline-bot .profile-avatar{width:68px;height:68px}
.article-chart{margin:18px 0}
.article-chart img{display:block;width:100%;height:auto;border-radius:9px}
.article-chart figcaption{font-size:13px;color:var(--muted);margin-top:5px}
#profile-photo{margin-bottom:18px}
@media(max-width:520px){.post-byline{font-size:12px;gap:4px}.post-byline .profile-avatar{width:42px;height:42px}.post-byline-bot .profile-avatar{width:52px;height:52px}}
.guide-player{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}
.guide-media{display:block;width:100%;min-height:200px;aspect-ratio:16/9;border:0;border-radius:10px;background:#101828}
.guide-video-empty,.tower-description{color:var(--muted)}
.tower-video{border-top:1px solid var(--line);margin-top:22px;padding-top:14px}
.tower-video h2{margin:0 0 10px}
.tower-video form{margin-top:16px}
.catalog-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.catalog-choices a,.pet-catalog-card{display:grid;justify-items:center;align-content:center;gap:8px;padding:14px 6px;border:1px solid var(--line);border-radius:10px;text-align:center;color:var(--ink)}
.catalog-choices a:hover,.catalog-choices a:focus-visible{border-color:var(--blue)}
.catalog-choices img{width:64px;height:64px;object-fit:contain}
.catalog-back{display:inline-block;margin-bottom:12px;color:var(--blue);font-weight:700}
.pet-portrait{display:grid;place-items:center;width:min(100%,var(--pet-size,64px));aspect-ratio:1}
.pet-portrait>img,.catalog-choices .pet-portrait>img{display:block;width:100%;height:100%;aspect-ratio:auto;border-radius:0;object-fit:contain}
.pet-face{position:relative;overflow:hidden;border-radius:50%;background:var(--paper)}
.pet-face.pet-portrait>img,.catalog-choices .pet-face.pet-portrait>img{position:absolute;max-width:none;width:145%;height:auto;left:var(--pet-x);top:var(--pet-y)}
.pet-detail-portrait{--pet-size:112px;margin-top:12px}
.pet-facts,.pet-upgrade-list{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;row-gap:6px;margin:14px 0}
.pet-facts dt,.pet-upgrade-list dt{font-weight:700}
.pet-facts dd,.pet-upgrade-list dd{margin:0}
.pet-skill-card{border:1px solid var(--line);border-radius:10px;padding:14px}
.pet-skill-heading{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.pet-skill-heading img{width:52px;height:52px;border-radius:8px}
.pet-skill-heading h2{margin:0}
.pet-skill-target{color:var(--blue);font-weight:700}
.pet-skill-card h3{margin:14px 0 4px;font-size:15px}
.pet-upgrade-list{margin:0}
