/* Snowsong's Archive — shared reading system, 2026-09-19.
   Paper, ink, square corners, a single blue accent. No runtime JavaScript. */
@font-face {
  font-family: "Songhei Local";
  src: local("FZSongHei-B07S"), local("方正宋黑简体"), local("FZSHJW--GB1-0");
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper-white: #fff;
  --light-gray: #f2f3f3;
  --medium-gray: #d4d4d4;
  --border-gray: #555;
  --dark-gray: #242424;
  --pure-black: #111;
  --link-blue: #057dbc;
  --link-ink: #006da7;
  --hairline: #dce0e3;
  --caption-gray: #62676c;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
  --font-heading: "Songhei Local", var(--font-body);
  --max-width: 1440px;
  --reading-width: 1200px;
  --gutter: clamp(20px, 4vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-padding-top: 28px; -webkit-text-size-adjust: 100%; }
body { background: var(--paper-white); color: var(--dark-gray); font: 18px/1.8 var(--font-body); }
a { color: var(--link-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--link-blue); outline-offset: 5px; }
::selection { color: #fff; background: var(--link-ink); }
img { display: block; max-width: 100%; height: auto; }
button, input, summary { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -120px; left: 20px; z-index: 10; padding: 12px 20px; color: #fff; background: #111; }
.skip-link:focus { top: 12px; }
.top-bar { color: #fff; background: var(--pure-black); }
.top-bar-inner { width: min(calc(100% - 2 * var(--gutter)), var(--max-width)); margin-inline: auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.top-bar-brand { display: inline-flex; align-items: center; gap: 13px; font: 700 19px/1.3 var(--font-mono); letter-spacing: -.7px; text-decoration: none; color: #fff; white-space: nowrap; }
.top-bar-brand img { position: relative; z-index: 2; width: 88px; height: 88px; max-width: none; object-fit: contain; transform: translateY(8px); filter: drop-shadow(2px 0 #111) drop-shadow(-2px 0 #111) drop-shadow(0 2px #111) drop-shadow(0 -2px #111); }
.top-bar-nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 26px); }
.top-bar-nav a, .mobile-menu a { display: inline-flex; align-items: center; min-height: 44px; font: 700 19px/1.5 var(--font-mono); color: #e9e9e9; text-decoration: none; }
.top-bar-nav a:hover, .mobile-menu a:hover { color: #8ed3ff; }
.top-bar-nav a[aria-current], .mobile-menu a[aria-current] { color: #8ed3ff; text-decoration: underline; text-underline-offset: 8px; }
.top-bar-nav .account-nav-avatar, .mobile-menu .account-nav-avatar { width: 42px; min-width: 42px; height: 42px; min-height: 42px; overflow: hidden; border: 2px solid #dfe3e5; color: transparent; background: #fff; text-decoration: none; }
.top-bar-nav .account-nav-avatar:hover, .mobile-menu .account-nav-avatar:hover, .top-bar-nav .account-nav-avatar[aria-current], .mobile-menu .account-nav-avatar[aria-current] { border-color: #8ed3ff; text-decoration: none; }
.account-nav-avatar img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.mobile-menu { display: none; }
.page-width { width: min(calc(100% - 2 * var(--gutter)), var(--max-width)); margin-inline: auto; }
.eyebrow, .hero-kicker, .cat-kicker, .article-kicker, .about-kicker { font: 700 13px/1.6 var(--font-mono); color: var(--link-ink); letter-spacing: 1.2px; text-transform: uppercase; }
.back-link { display: block; width: min(calc(100% - 2 * var(--gutter)), var(--reading-width)); margin: 28px auto 0; padding-block: 6px; font: 14px/1.8 var(--font-mono); color: var(--caption-gray); text-decoration: none; }
.hr-dark { border: 0; border-top: 2px solid var(--pure-black); }
.hr-hairline { border: 0; border-top: 1px solid var(--hairline); }
.ribbon { background: var(--pure-black); color: #fff; padding: 14px 20px; }
.ribbon-text { font: 700 14px/1.5 var(--font-mono); letter-spacing: 1px; }
.ribbon-text span { font-size: 12px; font-weight: 400; color: #c3c6ca; margin-left: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-heading a { color: #fff; font: 12px var(--font-mono); }
.home-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: 60px 64px; }
.home-primary, .home-secondary { min-width: 0; }
.home-intro { padding-bottom: 48px; }
.home-secondary { display: flex; flex-direction: column; }
.home-secondary .home-categories { margin-top: 32px; }
.hero-title { width: fit-content; max-width: 100%; margin: 0 0 22px; font: 700 clamp(42px, 4.5vw, 72px)/1.06 var(--font-mono); letter-spacing: -3px; color: #111; transform-origin: left center; transition: transform .24s ease, text-shadow .24s ease; }
.hero-title span { color: var(--link-ink); }
.hero-title .hero-emote { display: inline-block; margin-left: .34em; color: #111; font-size: .45em; letter-spacing: 0; vertical-align: .14em; transition: transform .24s ease, color .24s ease; }
.hero-title:hover { transform: translateX(5px) scale(1.025); text-shadow: 0 5px 15px rgb(0 77 128 / .12); }
.hero-title:hover .hero-emote { transform: rotate(-9deg) translateY(-3px); color: var(--link-ink); }
.hero-actions, .dl-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-button, .dl-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 11px 20px; border: 2px solid #111; color: #fff; background: #111; font: 700 15px/1.5 var(--font-body); text-decoration: none; }
.hero-button:hover, .dl-button:hover { background: var(--link-ink); border-color: var(--link-ink); color: #fff; text-decoration: none; }
.hero-button.ghost, .dl-button.ghost { background: #fff; color: #111; }
.hero-button.ghost:hover, .dl-button.ghost:hover { background: #eef7fc; color: var(--link-ink); border-color: var(--link-ink); }
.hero-figure { border: 1px solid #111; min-width: 0; }
.figure-label { display: flex; justify-content: space-between; padding: 10px 14px; font: 12px/1.4 var(--font-mono); border-bottom: 1px solid #111; }
.hero-figure img { width: 100%; height: 280px; object-fit: cover; }
.hero-figure.hero-figure--art img { width: 100%; height: 100%; object-fit: contain; background: #0d1116; transition: opacity .16s ease; }
.visual-note-stage { position: relative; display: grid; place-items: center; width: 100%; height: auto; min-height: 220px; max-height: min(72vh, 760px); aspect-ratio: var(--slide-aspect, 16 / 9); padding: 0; overflow: hidden; border: 0; color: #fff; background: #0d1116; touch-action: pan-y; }
.visual-note-stage:focus-visible { z-index: 1; outline-color: #8ed3ff; outline-offset: -5px; }
.visual-note-stage img.is-switching { opacity: .18; }
.visual-note-nav { position: absolute; inset-block: 0; width: 50%; padding: 0; border: 0; background: transparent; cursor: pointer; opacity: 0; transition: opacity .18s ease, background-color .18s ease; }
.visual-note-nav--prev { left: 0; }
.visual-note-nav--next { right: 0; }
.visual-note-nav span { position: absolute; top: 50%; width: 46px; height: 64px; border: 1px solid rgb(255 255 255 / .4); background: rgb(0 0 0 / .42); transform: translateY(-50%); }
.visual-note-nav--prev span { left: 14px; }
.visual-note-nav--next span { right: 14px; }
.visual-note-nav span::before { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; }
.visual-note-nav--prev span::before { transform: translate(-35%, -50%) rotate(45deg); }
.visual-note-nav--next span::before { transform: translate(-65%, -50%) rotate(225deg); }
.visual-note-stage:hover .visual-note-nav, .visual-note-stage:focus-within .visual-note-nav, .visual-note-nav:focus-visible { opacity: .82; }
.visual-note-nav:hover { background: rgb(0 0 0 / .08); opacity: 1 !important; }
.home-posts { display: grid; grid-template-columns: minmax(0, 1fr); }
.post-item { display: block; min-width: 0; padding: 25px 0 28px; border-bottom: 1px solid var(--hairline); color: inherit; text-decoration: none; }
.post-item[hidden] { display: none; }
.post-item:hover { text-decoration: none; }
.post-item:hover .post-title { color: var(--link-ink); text-decoration: underline; text-underline-offset: .18em; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.post-kicker { color: var(--link-ink); font: 700 12px/1.6 var(--font-mono); letter-spacing: .8px; }
.post-date { color: var(--caption-gray); font: 12px/1.6 var(--font-mono); }
.post-title { font: 700 23px/1.5 var(--font-heading); color: #202020; overflow-wrap: anywhere; }
.post-excerpt { color: var(--caption-gray); font-size: 16px; line-height: 1.8; margin-top: 12px; }
.latest-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 0 6px; user-select: none; }
.latest-page-dots { display: flex; align-items: center; gap: 8px; }
.latest-page-button, .latest-page-control { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 9px; border: 1px solid #aeb8bd; background: #fff; color: #202020; cursor: pointer; font: 700 14px/1 var(--font-mono); user-select: none; transition: color .16s ease, border-color .16s ease, background-color .16s ease, transform .16s ease; }
.latest-page-control { position: relative; min-width: 36px; padding: 0; }
.latest-page-control::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.latest-page-control:first-child::before { transform: translate(-50%, -50%) rotate(225deg); }
.latest-page-button:hover, .latest-page-button:focus-visible, .latest-page-control:not(:disabled):hover, .latest-page-control:not(:disabled):focus-visible { border-color: var(--link-blue); background: #eaf6fc; color: var(--link-blue); transform: translateY(-1px); }
.latest-page-button.is-active { border-color: var(--link-blue); background: var(--link-blue); color: #fff; }
.latest-page-control:disabled { border-color: #d8dfe2; color: #b7c0c5; cursor: default; }
.cat-grid { display: grid; gap: 12px; padding-top: 20px; }
.cat-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; min-height: 104px; padding: 16px 18px 16px 14px; border: 1px solid #383838; color: inherit; text-decoration: none; overflow: hidden; }
.cat-card:hover { background: #f4f7f8; text-decoration: none; border-color: var(--link-blue); }
.cat-card-visual { display: flex; align-items: center; justify-content: center; }
.cat-card-icon { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; background: #d9f0fb; border: 0; transform: rotate(45deg); transition: transform .22s ease, background-color .18s ease; }
.cat-card-icon img { display: block; width: 36px; height: 36px; object-fit: contain; transform: rotate(-45deg); transition: transform .22s ease; }
.cat-card-copy { display: block; min-width: 0; text-align: right; }
.cat-card-kicker { display: block; color: var(--link-ink); font: 12px/1.5 var(--font-mono); margin-bottom: 5px; }
.cat-card-title { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; font: 700 18px/1.5 var(--font-heading); }
.cat-card-count { flex-shrink: 0; color: var(--caption-gray); font: 12px var(--font-mono); }
.cat-card-desc { display: block; font-size: 14px; line-height: 1.7; color: var(--caption-gray); margin-top: 5px; }
.cat-card:hover .cat-card-icon, .cat-card:focus-visible .cat-card-icon { background: #c5e7f8; transform: translateY(-2px) rotate(48deg) scale(1.04); }
.cat-card:hover .cat-card-icon img, .cat-card:focus-visible .cat-card-icon img { transform: rotate(-48deg) scale(1.08); }
.cat-header, .about-header { width: min(calc(100% - 2 * var(--gutter)), var(--reading-width)); margin-inline: auto; padding-block: 35px 44px; }
.cat-title, .about-title { font: 700 clamp(30px, 3.4vw, 52px)/1.3 var(--font-heading); letter-spacing: -.8px; margin: 14px 0 18px; }
.cat-desc { font-size: 19px; max-width: 42em; line-height: 1.9; }
.category-page > .ribbon, .category-page > main > .ribbon { padding-inline: max(var(--gutter), calc((100% - var(--reading-width)) / 2)); }
.category-page .post-list, .files-section { width: min(calc(100% - 2 * var(--gutter)), var(--reading-width)); margin-inline: auto; }
.category-page .post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; padding-block: 12px 64px; }
.category-page .post-title { font-size: 27px; }
.minecraft-status { max-width: var(--reading-width); margin-bottom: 76px; border-top: 2px solid #111; padding-top: 32px; }
.minecraft-status-heading, .minecraft-admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.minecraft-status-heading h2, .minecraft-admin-heading h3 { font: 700 clamp(25px, 2.4vw, 34px)/1.3 var(--font-heading); margin-top: 4px; }
.minecraft-refresh { min-height: 44px; padding: 7px 17px; border: 1px solid #111; background: #fff; color: #111; cursor: pointer; font: 700 14px var(--font-mono); }
.minecraft-refresh:hover { color: var(--link-ink); border-color: var(--link-ink); background: #eef7fc; }
.minecraft-refresh:disabled { opacity: .6; cursor: wait; }
.minecraft-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.minecraft-stat { min-width: 0; min-height: 142px; padding: 19px; border: 1px solid #8d969b; display: flex; flex-direction: column; }
.minecraft-stat-primary { border-color: #111; background: #f2f8fc; }
.minecraft-stat span, .minecraft-admin-grid span { font: 700 12px/1.5 var(--font-mono); color: var(--link-ink); }
.minecraft-stat strong { margin-top: 10px; font: 700 clamp(21px, 2vw, 29px)/1.3 var(--font-heading); overflow-wrap: anywhere; }
.minecraft-stat strong[data-state="online"] { color: #146b47; }
.minecraft-stat strong[data-state="offline"] { color: #ac3939; }
.minecraft-stat small { margin-top: auto; color: var(--caption-gray); font-size: 12px; line-height: 1.5; }
.minecraft-stat .minecraft-address { font: 700 clamp(21px, 1.9vw, 27px)/1.3 var(--font-heading); letter-spacing: -.035em; }
.minecraft-status-note { color: var(--caption-gray); margin-top: 14px; font-size: 14px; }
.minecraft-admin-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; padding: 7px 14px; border: 1px solid #111; color: #111; text-decoration: none; font: 700 14px var(--font-mono); }
.minecraft-admin-link:hover { background: #eaf6fc; color: var(--link-ink); border-color: var(--link-ink); text-decoration: none; }
.minecraft-admin-link[hidden], [data-mc-panel][hidden], [data-mc-guard][hidden], [data-mc-view][hidden] { display: none !important; }
.mc-console { max-width: var(--reading-width); padding-bottom: 80px; }
.mc-console .back-link { width: 100%; }
.mc-console-header { padding: 20px 0 34px; border-bottom: 2px solid #111; }
.mc-console-header h1 { margin: 9px 0 12px; font: 700 clamp(32px, 3vw, 46px)/1.25 var(--font-heading); }
.mc-console-header p { color: var(--caption-gray); font-size: 17px; }
.mc-console-guard { margin: 30px 0; padding: 26px; border: 1px solid #111; background: #f4f7f8; }
.mc-console-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.mc-console-summary > div { display: flex; flex-direction: column; min-height: 105px; padding: 17px; border: 1px solid #565e63; background: #f6f9fa; }
.mc-console-summary span { font: 700 12px var(--font-mono); color: var(--link-ink); }
.mc-console-summary strong { margin-top: 9px; font: 700 21px/1.4 var(--font-heading); overflow-wrap: anywhere; }
.mc-console-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid #111; }
.mc-console-tabs { display: flex; flex-wrap: wrap; gap: 3px; }
.mc-console-tabs button { min-height: 46px; padding: 8px 18px; border: 1px solid #b6c1c8; border-bottom: 0; background: #fff; color: #333; cursor: pointer; font: 700 15px/1.5 var(--font-heading); }
.mc-console-tabs button[aria-selected="true"] { background: #111; border-color: #111; color: #fff; }
.mc-console-description { margin: 18px 0 12px; color: var(--caption-gray); font-size: 15px; }
.mc-console-table-scroll { width: 100%; overflow-x: auto; border: 1px solid #aeb7bd; }
.mc-console-table { width: 100%; min-width: 710px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.mc-console-table th { background: #eaf2f6; color: #14202a; text-align: left; font: 700 13px var(--font-mono); }
.mc-console-table th, .mc-console-table td { padding: 12px 14px; border-bottom: 1px solid #d9e0e4; vertical-align: middle; }
.mc-console-table tbody tr:last-child td { border-bottom: 0; }
.mc-console-table tbody tr:hover { background: #f4f8fa; }
.mc-console-uuid { font: 12px/1.5 var(--font-mono); word-break: break-all; }
.mc-console-actions { white-space: nowrap; }
.mc-console-actions button { min-height: 36px; margin: 2px 5px 2px 0; padding: 5px 9px; border: 1px solid #111; background: #fff; cursor: pointer; font: 700 12px var(--font-mono); }
.mc-console-actions button:hover { background: #eaf6fc; border-color: var(--link-ink); color: var(--link-ink); }
.mc-console-message { min-height: 32px; margin-top: 16px; font: 14px/1.6 var(--font-mono); }
.mc-console-message[data-kind="ok"] { color: #176b45; }
.mc-console-message[data-kind="error"] { color: #a72c2c; }
.mc-console-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 25px; border: 2px solid #111; color: #222; background: #fff; box-shadow: 12px 12px 0 rgb(0 0 0 / .18); }
.mc-console-dialog::backdrop { background: rgb(0 0 0 / .5); }
.mc-console-dialog h2 { font: 700 24px var(--font-heading); margin-bottom: 12px; }
.mc-console-dialog p { overflow-wrap: anywhere; }
.mc-console-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.mc-console-log { width: min(900px, calc(100vw - 32px)); }
.mc-console-log pre { max-height: 55vh; padding: 15px; overflow: auto; background: #f3f6f7; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 var(--font-mono); }
.minecraft-admin { margin-top: 34px; padding: 28px; background: #f4f7f8; border: 1px solid #111; }
.minecraft-admin[hidden] { display: none; }
.minecraft-admin-badge { padding: 5px 10px; border: 1px solid #111; font: 700 12px var(--font-mono); white-space: nowrap; }
.minecraft-admin-note { margin: 10px 0 20px; color: var(--caption-gray); font-size: 14px; }
.minecraft-admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.minecraft-admin-grid > div { display: flex; flex-direction: column; padding: 15px; min-width: 0; background: #fff; border: 1px solid #c2cbd0; }
.minecraft-admin-grid strong { margin-top: 5px; font: 700 20px/1.4 var(--font-heading); }
.minecraft-admin-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.minecraft-admin-lists h4 { font-size: 16px; border-bottom: 1px solid #b8c3c8; padding-bottom: 7px; }
.minecraft-admin-lists ul { list-style: none; margin-top: 8px; max-height: 230px; overflow-y: auto; }
.minecraft-admin-lists li { padding: 5px 0; font-size: 14px; overflow-wrap: anywhere; }
.files-section { padding-block: 4px 32px; }
.article-header { width: min(calc(100% - 2 * var(--gutter)), var(--reading-width)); margin-inline: auto; padding-block: 34px 40px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font: 13px/1.8 var(--font-mono); color: var(--caption-gray); }
.article-title { max-width: 22em; margin: 16px 0 22px; color: #171717; font: 700 clamp(30px, 3.2vw, 48px)/1.35 var(--font-heading); letter-spacing: -.7px; overflow-wrap: anywhere; }
.article-desc { font-size: 19px; line-height: 1.85; color: #51565b; max-width: 45em; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; width: min(calc(100% - 2 * var(--gutter)), var(--reading-width)); margin-inline: auto; padding-block: 40px 64px; align-items: start; }
.content { min-width: 0; font-size: 20px; line-height: 1.95; overflow-wrap: anywhere; }
.content p { margin-bottom: 1.25em; }
.content h2 { color: #111; font: 700 30px/1.5 var(--font-heading); margin: 2em 0 .8em; padding-bottom: .4em; border-bottom: 1px solid var(--hairline); scroll-margin-top: 24px; }
.content > h2:first-child { margin-top: 0; }
.content h3 { font: 700 23px/1.6 var(--font-heading); margin: 1.5em 0 .6em; scroll-margin-top: 24px; }
.content ul, .content ol { margin: .5em 0 1.35em; padding-left: 1.5em; }
.content li { margin-bottom: .55em; padding-left: .15em; }
.content li::marker { color: var(--link-ink); font-weight: 700; }
.content code { font-family: var(--font-mono); font-size: .86em; padding: .1em .3em; background: #edf0f2; overflow-wrap: anywhere; }
.content pre { min-width: 0; max-width: 100%; padding: 22px 24px; margin: 24px 0 30px; background: #f2f3f3; border: 1px solid #ced3d7; border-left: 3px solid #111; overflow-x: auto; tab-size: 4; }
.content pre code { display: block; font-size: 15px; line-height: 1.9; padding: 0; background: none; overflow-wrap: normal; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 22px 0 30px; border: 1px solid #c7cdd2; }
.content table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.8; }
.content td, .content th { text-align: left; vertical-align: top; padding: 14px 16px; border: 1px solid #dce0e3; }
.content th { font-weight: 700; color: #242424; background: #edf0f2; }
.content td:first-child { font-weight: 600; }
.content tr:nth-child(even) { background: #f8f9fa; }
.content .info-table td:first-child { width: 25%; }
.table-hint { display: none; }
.content .note, .content blockquote { border-left: 3px solid var(--link-blue); background: #f2f6f8; padding: 20px 24px; margin: 26px 0; font-size: 18px; line-height: 1.9; }
.note p:last-child, blockquote p:last-child { margin-bottom: 0; }
.player-guide-banner { width: min(calc(100% - 2 * var(--gutter)), var(--reading-width)); margin: 32px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 24px 28px; border: 2px solid #111; border-left: 8px solid var(--link-blue); background: #f3f8fb; }
.player-guide-banner .eyebrow { margin-bottom: 6px; }
.player-guide-banner h2 { font: 700 clamp(24px, 2.5vw, 34px)/1.4 var(--font-heading); color: #111; }
.player-guide-banner p { margin-top: 6px; color: #4c5358; font-size: 17px; }
.player-guide-banner .dl-button { min-width: 168px; }
.server-address { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 30px; padding: 18px 22px; color: #fff; background: #111; }
.server-address span { color: #bcc4ca; font: 700 12px/1.5 var(--font-mono); letter-spacing: .8px; }
.server-address code { padding: 0; color: #fff; background: transparent; font-size: clamp(20px, 3vw, 30px); font-weight: 700; }
.callout { --callout-color: var(--link-blue); --callout-bg: #f2f7fa; margin: 28px 0; padding: 0; border: 1px solid #c8d7df; border-left: 5px solid var(--callout-color); background: var(--callout-bg); font-size: 18px; line-height: 1.85; }
.callout-title { display: flex; align-items: center; gap: 10px; padding: 14px 20px 12px; border-bottom: 1px solid color-mix(in srgb, var(--callout-color) 25%, transparent); color: #16191b; font-weight: 800; }
.callout-title::before { content: "i"; display: inline-grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border: 2px solid var(--callout-color); color: var(--callout-color); font: 800 14px/1 var(--font-mono); }
.callout-body { padding: 16px 20px 18px; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-body ol, .callout-body ul { margin: 0; }
.callout-warning { --callout-color: #aa6500; --callout-bg: #fff8e8; border-color: #dcc292; border-left-color: var(--callout-color); }
.callout-warning .callout-title::before { content: "!"; }
.callout-tip { --callout-color: #18764b; --callout-bg: #eef9f3; border-color: #acd2bd; border-left-color: var(--callout-color); }
.callout-tip .callout-title::before { content: "+"; }
.callout-important { --callout-color: #a93434; --callout-bg: #fff3f3; border-color: #dfb1b1; border-left-color: var(--callout-color); }
.callout-important .callout-title::before { content: "!"; }
.guide-step { margin: 30px 0 50px; }
.guide-step-kicker { color: var(--link-ink); font: 800 13px/1.5 var(--font-mono); letter-spacing: 1px; }
.guide-step h3 { margin-top: 8px; font-size: 27px; }
.guide-figure { margin: 24px 0 34px; border: 1px solid #aeb6bc; background: #111; }
.guide-figure img { width: 100%; max-height: 720px; object-fit: contain; background: #111; }
.guide-figure figcaption { padding: 10px 14px; color: #d3d7da; background: #111; font: 13px/1.7 var(--font-mono); }
.guide-figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.guide-figure-pair .guide-figure { margin-top: 8px; }
.quick-start-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); gap: 24px; align-items: center; padding: 24px 0 10px; }
.quick-start-panel h2 { font: 700 clamp(25px, 3vw, 36px)/1.4 var(--font-heading); }
.quick-start-panel p { margin-top: 8px; color: var(--caption-gray); font-size: 17px; }
.quick-start-panel .dl-row { justify-content: flex-end; margin-top: 0; }
.landmark-shell { width: min(calc(100% - 2 * var(--gutter)), var(--reading-width)); margin-inline: auto; padding-block: 38px 64px; }
.landmark-overview { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: stretch; }
.landmark-map-panel, .landmark-summary, .landmark-form { border: 1px solid #111; }
.landmark-map-panel { min-width: 0; }
.landmark-panel-heading, .landmark-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.landmark-panel-heading { padding: 18px 20px 14px; border-bottom: 1px solid #111; }
.landmark-panel-heading h2, .landmark-section-heading h2, .landmark-submit h2 { margin-top: 4px; color: #111; font: 700 29px/1.4 var(--font-heading); }
.landmark-panel-heading p, .landmark-section-heading > p { color: var(--caption-gray); font: 12px/1.6 var(--font-mono); }
.landmark-map { min-height: 420px; overflow-x: auto; color: #202428; background-color: #f4f6f7; background-image: linear-gradient(45deg, rgb(0 0 0 / .025) 25%, transparent 25%), linear-gradient(-45deg, rgb(0 0 0 / .025) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgb(0 0 0 / .025) 75%), linear-gradient(-45deg, transparent 75%, rgb(0 0 0 / .025) 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
.landmark-map svg { display: block; width: 100%; min-height: 420px; }
.map-grid-line { stroke: #d9dee1; stroke-width: 1; }
.map-axis-line { stroke: #7d858b; stroke-width: 1.5; stroke-dasharray: 7 5; }
.map-marker-leader { stroke: #7c858b; stroke-width: 1.5; stroke-dasharray: 4 3; }
.map-marker { cursor: pointer; outline: none; }
.map-marker circle { fill: var(--link-blue); stroke: #fff; stroke-width: 4; transition: r .15s ease, fill .15s ease; }
.map-marker text { fill: #222; font: 700 14px var(--font-body); paint-order: stroke; stroke: #f4f6f7; stroke-width: 5px; stroke-linejoin: round; }
.map-marker-home circle { fill: #a93434; }
.map-marker-wonder circle { fill: #7a46a2; }
.map-marker-other circle { fill: #62676c; }
.map-marker:hover circle, .map-marker:focus circle { r: 16; fill: #111; }
.map-marker:focus circle { stroke: #68c5fa; stroke-width: 6; }
.landmark-map-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 10px 14px; border-top: 1px solid #111; color: var(--caption-gray); font: 11px/1.5 var(--font-mono); }
.mobile-map-hint { display: none; }
.landmark-summary { display: flex; flex-direction: column; padding: 24px; color: #fff; background: #111; }
.landmark-summary > strong { margin-top: 10px; color: #8ed3ff; font: 700 clamp(64px, 8vw, 94px)/1 var(--font-mono); letter-spacing: -6px; }
.landmark-summary > span:not(.eyebrow) { color: #d3d7da; font-size: 16px; }
.landmark-summary dl { margin: 28px 0; border-top: 1px solid #51565a; }
.landmark-summary dl div { padding: 12px 0; border-bottom: 1px solid #3b4044; }
.landmark-summary dt { color: #92999e; font: 11px/1.5 var(--font-mono); }
.landmark-summary dd { margin-top: 3px; color: #fff; font-size: 15px; overflow-wrap: anywhere; }
.landmark-summary .dl-button { margin-top: auto; color: #111; border-color: #fff; background: #fff; }
.landmark-summary .dl-button:hover { color: #fff; border-color: var(--link-blue); background: var(--link-blue); }
.landmark-directory { padding-top: 64px; }
.landmark-section-heading { padding-bottom: 18px; border-bottom: 2px solid #111; }
.landmark-toolbar { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: end; padding: 22px 0; }
.landmark-search { display: grid; gap: 7px; }
.landmark-search span, .landmark-field > span { color: #454b50; font: 700 13px/1.5 var(--font-mono); }
.landmark-search input, .landmark-field input, .landmark-field select, .landmark-field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #949ba0; border-radius: 0; color: #202428; background: #fff; font: 16px/1.5 var(--font-body); }
.landmark-field textarea { min-height: 92px; resize: vertical; }
.landmark-search input:focus, .landmark-field input:focus, .landmark-field select:focus, .landmark-field textarea:focus { border-color: var(--link-blue); outline: 3px solid rgb(5 125 188 / .22); outline-offset: 0; }
.landmark-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.landmark-filters button { min-height: 44px; padding: 8px 15px; border: 1px solid #777; color: #31363a; background: #fff; cursor: pointer; font: 700 14px/1.4 var(--font-body); }
.landmark-filters button:hover, .landmark-filters button.is-active { color: #fff; border-color: #111; background: #111; }
.landmark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landmark-card { min-width: 0; border: 1px solid #aeb5ba; border-top: 5px solid var(--link-blue); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.landmark-card-home { border-top-color: #a93434; }
.landmark-card-wonder { border-top-color: #7a46a2; }
.landmark-card-other { border-top-color: #62676c; }
.landmark-card.is-highlighted { border-color: var(--link-blue); box-shadow: 0 0 0 4px rgb(5 125 188 / .2); }
.landmark-card-top { padding: 17px 18px 14px; }
.landmark-card-top h3 { margin-top: 7px; color: #171717; font: 700 22px/1.45 var(--font-heading); overflow-wrap: anywhere; }
.landmark-badge { color: var(--link-ink); font: 700 11px/1.4 var(--font-mono); letter-spacing: .6px; }
.landmark-coordinates { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #d6dade; background: #f5f6f7; }
.landmark-coordinates span { padding: 11px 13px; border-right: 1px solid #d6dade; }
.landmark-coordinates span:last-child { border-right: 0; }
.landmark-coordinates small { display: block; color: #747b80; font: 10px/1.3 var(--font-mono); }
.landmark-coordinates strong { display: block; margin-top: 2px; color: #171717; font: 700 19px/1.35 var(--font-mono); overflow-wrap: anywhere; }
.landmark-note { min-height: 66px; padding: 14px 18px; color: #5a6065; font-size: 14px; line-height: 1.75; }
.landmark-card-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d6dade; }
.landmark-card-actions button { min-height: 44px; padding: 8px; border: 0; border-right: 1px solid #d6dade; color: #34393d; background: #fff; cursor: pointer; font: 700 12px/1.4 var(--font-mono); }
.landmark-card-actions button:last-child { border-right: 0; }
.landmark-card-actions button:hover { color: #fff; background: var(--link-ink); }
.landmark-empty { padding: 36px 20px; border: 1px dashed #9ca3a8; color: var(--caption-gray); text-align: center; }
.landmark-submit { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 48px; align-items: start; margin-top: 72px; padding-top: 46px; border-top: 3px solid #111; scroll-margin-top: 24px; }
.landmark-submit-copy > p { margin-top: 16px; font-size: 18px; line-height: 1.9; }
.landmark-submit-copy .callout { margin-top: 26px; }
.landmark-form { padding: 24px; background: #f6f7f8; }
.landmark-form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.landmark-field { display: grid; grid-column: span 2; gap: 7px; min-width: 0; }
.landmark-field-wide { grid-column: span 3; }
.landmark-field b { color: #a93434; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.landmark-form-note { margin: 17px 0 12px; color: var(--caption-gray); font-size: 13px; }
.landmark-form .dl-button { width: 100%; cursor: pointer; }
.landmark-form .dl-button:disabled { cursor: wait; opacity: .55; }
.landmark-form-status { min-height: 28px; margin-top: 13px; font-size: 14px; line-height: 1.7; }
.landmark-form-status.is-success { color: #12643e; font-weight: 700; }
.landmark-form-status.is-error { color: #a12b2b; font-weight: 700; }
.content .dl-button { color: #fff; text-decoration: none; }
.content .dl-button.ghost { color: #111; }
.dl-row + .dl-row { margin-top: 12px; }
.hash { margin-top: 8px; font: 12px/1.9 var(--font-mono); color: var(--caption-gray); overflow-wrap: anywhere; }
.reading-aside { position: sticky; top: 28px; border-top: 3px solid #111; font-size: 15px; max-height: calc(100dvh - 56px); overflow-y: auto; padding: 20px 4px 4px 0; }
.toc-title { display: block; font: 700 13px/1.8 var(--font-mono); letter-spacing: .7px; margin-bottom: 16px; }
.toc-list { list-style: none; counter-reset: section; }
.toc-list li { counter-increment: section; }
.toc-list a { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; padding: 10px 0; color: #454b50; font-size: 15px; line-height: 1.7; text-decoration: none; }
.toc-list a::before { content: counter(section, decimal-leading-zero); color: #7c8287; font: 12px/2.1 var(--font-mono); }
.toc-list a:hover { color: var(--link-ink); text-decoration: underline; }
.aside-links { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.aside-links a { display: block; padding: 9px 0; font-size: 14px; }
.toc-mobile { display: none; }
.nav-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: min(calc(100% - 2 * var(--gutter)), var(--reading-width)); margin-inline: auto; padding-block: 24px 48px; border-top: 1px solid var(--hairline); }
.nav-bottom a { display: inline-flex; align-items: center; min-height: 44px; font: 14px/1.7 var(--font-mono); }
.site-footer { background: #111; color: #bbc0c4; padding: 30px var(--gutter); }
.footer-inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); max-width: var(--max-width); margin-inline: auto; }
.footer-logo { flex: 0 0 auto; width: clamp(160px, 17vw, 230px); }
.footer-logo img { width: 100%; height: auto; object-fit: contain; }
.footer-text { font: 13px/2 var(--font-mono); }
.footer-text a { color: #f5f5f5; display: inline-block; padding-block: 4px; }
.category-page { display: flex; min-height: 100vh; flex-direction: column; }
.category-page main { flex: 1; }
.about-page .content h3:first-child { margin-top: 0; }
.account-page { display: flex; min-height: 100vh; flex-direction: column; }
.account-shell { width: min(calc(100% - 2 * var(--gutter)), 1180px); margin-inline: auto; padding: 54px 0 80px; flex: 1; }
.account-login-header { width: min(100%, 520px); margin-inline: auto; padding: 14px 0 20px; border-bottom: 3px solid #111; }
.account-login-header h1 { color: #111; font: 700 clamp(34px, 4vw, 48px)/1.2 var(--font-heading); }
.account-header { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 20px 64px; align-items: end; padding-bottom: 36px; border-bottom: 3px solid #111; }
.account-header .about-kicker { grid-column: 1 / -1; }
.account-header h1 { font: 700 clamp(36px, 5vw, 68px)/1.08 var(--font-mono); letter-spacing: -2.5px; color: #111; }
.account-header h1 span { color: var(--link-ink); }
.account-header > p:last-child { max-width: 38em; color: #50575c; font-size: 18px; line-height: 1.85; }
.account-loading { margin-top: 28px; padding: 24px; border: 1px solid #aeb5ba; background: #f6f7f8; }
.account-loading span { font: 700 12px/1.5 var(--font-mono); letter-spacing: .8px; color: var(--link-ink); }
.account-loading p { margin-top: 5px; color: #555c61; }
.account-guest, .account-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 34px; align-items: start; }
.account-guest { width: min(100%, 520px); grid-template-columns: 1fr; margin-inline: auto; }
.account-auth-panel .account-form { gap: 16px; padding: 28px; }
.account-auth-panel .dl-button.ghost { color: #111; background: #fff; }
.account-panel { min-width: 0; border: 1px solid #8d9499; background: #fff; }
.account-panel-dark { color: #fff; border-color: #111; background: #1b1d1f; }
.account-panel-heading { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #b8bec2; }
.account-panel-dark .account-panel-heading { border-color: #474b4e; }
.account-panel-heading > span { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: #111; font: 700 13px/1 var(--font-mono); }
.account-panel-dark .account-panel-heading > span { color: #111; background: #fff; }
.account-panel-heading p { color: #697076; font: 700 11px/1.5 var(--font-mono); letter-spacing: 1px; }
.account-panel-dark .account-panel-heading p { color: #aeb5ba; }
.account-panel-heading h2 { margin-top: 2px; font: 700 26px/1.25 var(--font-heading); }
.account-form { display: grid; gap: 18px; padding: 24px; }
.account-form label { display: grid; gap: 7px; }
.account-form label > span { color: #41474c; font: 700 13px/1.5 var(--font-mono); }
.account-panel-dark .account-form label > span { color: #d9dcde; }
.account-form label b { color: #a93434; font-weight: 700; }
.account-panel-dark .account-form label b { color: #9edaff; }
.account-form input { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid #92999e; border-radius: 0; color: #202428; background: #fff; font: 16px/1.5 var(--font-body); }
.account-form input[type="file"] { padding: 9px; font-size: 14px; }
.account-form input:focus { border-color: var(--link-blue); outline: 3px solid rgb(5 125 188 / .22); outline-offset: 0; }
.account-form .dl-button { width: 100%; cursor: pointer; }
.account-panel-dark .account-form .dl-button { color: #111; border-color: #fff; background: #fff; }
.account-form .dl-button:disabled, .account-user-row .dl-button:disabled { cursor: wait; opacity: .55; }
.account-form-note { color: #666d72; font-size: 13px; line-height: 1.7; }
.account-panel-dark .account-form-note { color: #b8bec2; }
.account-status { min-height: 26px; color: #565d62; font-size: 14px; line-height: 1.7; }
.account-status.is-success { color: #12643e; font-weight: 700; }
.account-status.is-error { color: #a12b2b; font-weight: 700; }
.account-panel-dark .account-status.is-error { color: #ffaaaa; }
.account-identity { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 34px; padding: 28px; color: #fff; background: #111; }
.account-avatar { display: grid; width: 120px; aspect-ratio: 1; place-items: center; overflow: hidden; border: 2px solid #fff; background: #2c3338; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar span { font: 700 38px/1 var(--font-mono); }
.account-identity-copy h2 { margin-top: 4px; font: 700 clamp(30px, 4vw, 48px)/1.15 var(--font-heading); }
.account-identity-copy > p:not(.about-kicker) { margin-top: 5px; color: #bfc5c9; overflow-wrap: anywhere; }
.account-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.account-badges span { padding: 5px 8px; border: 1px solid #62696e; color: #dfe3e5; font: 700 11px/1.4 var(--font-mono); }
.account-identity > .dl-button { align-self: start; color: #111; border-color: #fff; background: #fff; cursor: pointer; }
.account-settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-form-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.account-form-actions .dl-button.ghost { color: #111; background: #fff; }
.avatar-picker { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border: 1px solid #9ba2a7; background: #f5f6f7; }
.avatar-picker-dark { border-color: #5d6266; background: #25282a; }
.avatar-picker > img, .avatar-pending img { width: 104px; height: 104px; aspect-ratio: 1; object-fit: cover; border: 2px solid #111; background: #fff; }
.avatar-picker-dark > img { border-color: #fff; }
.avatar-picker strong { display: block; font: 700 14px/1.5 var(--font-mono); }
.avatar-picker p { margin: 4px 0 10px; color: #b8bec2; font-size: 13px; line-height: 1.6; }
.account-form label.avatar-file-button { display: inline-flex; width: fit-content; min-height: 42px; padding: 8px 13px; font-size: 13px; }
.avatar-file-button input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; overflow: hidden; clip-path: inset(50%); border: 0 !important; }
.avatar-clear-button { margin-top: 7px; padding: 3px 0; border: 0; color: #b8dff5; background: transparent; font-size: 13px; text-decoration: underline; cursor: pointer; }
.avatar-pending { display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid #aab1b6; background: #f4f7f8; color: #455058; font-size: 13px; }
.avatar-pending img { width: 68px; height: 68px; border-width: 1px; }
.avatar-crop-dialog { width: min(calc(100% - 32px), 620px); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 2px solid #111; border-radius: 0; color: #222; background: #fff; }
.avatar-crop-dialog::backdrop { background: rgb(0 0 0 / .72); backdrop-filter: blur(3px); }
.avatar-crop-panel { padding: 22px; }
.avatar-crop-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 16px; }
.avatar-crop-heading h2 { margin-top: 2px; font: 700 30px/1.25 var(--font-heading); }
.avatar-crop-close { width: 44px; height: 44px; border: 1px solid #111; color: #111; background: #fff; font: 32px/1 var(--font-body); cursor: pointer; }
.avatar-crop-stage { position: relative; width: min(100%, 430px); aspect-ratio: 1; margin-inline: auto; border: 4px solid #111; background: #111; cursor: grab; touch-action: none; user-select: none; }
.avatar-crop-stage.is-dragging { cursor: grabbing; }
.avatar-crop-stage canvas { display: block; width: 100%; height: 100%; }
.avatar-crop-help { margin-top: 13px; color: #5c6368; font-size: 14px; line-height: 1.7; text-align: center; }
.avatar-zoom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 15px; }
.avatar-zoom span { font: 700 13px/1.5 var(--font-mono); }
.avatar-zoom input { width: 100%; accent-color: var(--link-ink); }
.avatar-crop-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 20px; }
.avatar-crop-actions .dl-button { cursor: pointer; }
.account-admin { margin-top: 54px; padding: 28px; border: 3px solid #111; background: #edf6fb; }
.account-admin-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid #8799a3; }
.account-admin-heading h2 { font: 700 34px/1.2 var(--font-heading); }
.account-admin-heading .dl-button { cursor: pointer; }
.account-admin > p { margin-top: 16px; color: #4c565c; line-height: 1.8; }
.account-user-list { display: grid; margin-top: 22px; border-top: 1px solid #899aa4; }
.account-user-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 80px 120px; gap: 14px; align-items: center; min-width: 0; padding: 14px 0; border-bottom: 1px solid #abb9c0; }
.account-user-row > div { min-width: 0; }
.account-user-row strong, .account-user-row > div span { display: block; overflow-wrap: anywhere; }
.account-user-row > div span { margin-top: 3px; color: #5b6368; font-size: 13px; }
.account-user-role, .account-user-state { font: 700 11px/1.4 var(--font-mono); }
.account-user-state.is-active { color: #12643e; }
.account-user-state.is-disabled { color: #a12b2b; }
.account-user-row .dl-button { min-width: 0; padding: 8px 10px; cursor: pointer; }
.account-privacy { margin-top: 48px; }
[data-account-app] [hidden] { display: none !important; }
@media (min-width: 1600px) {
  .home-layout { grid-template-columns: minmax(0, 1.45fr) minmax(420px, .95fr); }
}
@media (max-width: 1199px) {
  .top-bar-nav { gap: 12px; }
  .top-bar-nav a { font-size: 16px; }
  .top-bar-brand { gap: 8px; font-size: 16px; }
  .top-bar-brand img { width: 82px; height: 82px; }
  .home-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr); gap: 28px; }
  .home-posts { grid-template-columns: 1fr; }
  .reading-layout { grid-template-columns: minmax(0, 1fr) 216px; gap: 36px; }
  .landmark-overview { grid-template-columns: minmax(0, 1fr) 260px; }
  .landmark-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .minecraft-status-grid, .minecraft-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minecraft-admin-lists { grid-template-columns: 1fr; gap: 18px; }
  .top-bar-inner { min-height: 68px; flex-wrap: wrap; gap: 0; }
  .top-bar-brand { min-height: 68px; display: flex; align-items: center; }
  .top-bar-brand img { width: 78px; height: 78px; transform: translateY(7px); }
  .top-bar-nav { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary { cursor: pointer; min-height: 44px; padding: 9px 0 9px 16px; font-size: 16px; }
  .mobile-menu a { font-size: 16px; }
  .mobile-menu[open] { width: 100%; margin: 0 0 16px; }
  .mobile-menu[open] summary { border-top: 1px solid #515151; padding-left: 0; }
  .mobile-menu-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 12px; }
  .mobile-menu-links .account-nav-avatar { justify-self: start; }
  .home-layout { display: flex; flex-direction: column; padding-block: 40px 52px; }
  .home-primary, .home-secondary { display: contents; }
  .home-intro { order: 1; padding-bottom: 0; }
  .home-secondary > .hero-figure { order: 2; width: 100%; max-width: 100%; margin-top: 32px; }
  .home-latest { order: 3; margin-top: 44px; }
  .home-secondary .home-categories { order: 4; margin-top: 44px; }
  .hero-title { font-size: 42px; letter-spacing: -2px; }
  .hero-figure img { height: 260px; }
  .reading-layout { display: block; padding-block: 28px 48px; max-width: 820px; }
  .reading-aside { display: none; }
  .toc-mobile { display: block; border: 1px solid #ced3d7; margin-bottom: 32px; padding: 0 18px; background: #f8f9fa; }
  .toc-mobile summary { cursor: pointer; padding: 13px 0; font-size: 16px; font-weight: 600; }
  .toc-mobile .toc-list { border-top: 1px solid var(--hairline); padding: 12px 0; }
  .toc-mobile .toc-list a { min-height: 44px; }
  .content { font-size: 19px; }
  .player-guide-banner { grid-template-columns: 1fr; }
  .player-guide-banner .dl-button { width: fit-content; }
  .quick-start-panel { grid-template-columns: 1fr; }
  .quick-start-panel .dl-row { justify-content: flex-start; }
  .landmark-overview, .landmark-submit { grid-template-columns: 1fr; }
  .landmark-summary { min-height: 360px; }
  .landmark-toolbar { grid-template-columns: 1fr; }
  .landmark-filters { justify-content: flex-start; }
}
@media (max-width: 719px) {
  .mc-console-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-console-toolbar { flex-wrap: wrap; padding-bottom: 10px; }
  .mc-console-tabs { width: 100%; }
  .mc-console-tabs button { flex: 1 1 auto; }
  .mc-console-header p { font-size: 16px; }
  .minecraft-status { margin-bottom: 48px; }
  .minecraft-stat { min-height: 126px; padding: 14px; }
  .minecraft-admin { padding: 18px; }
  :root { --gutter: 20px; }
  .home-layout { padding-block: 32px 44px; }
  .hero-title { font-size: clamp(36px, 8.5vw, 54px); line-height: 1.12; letter-spacing: -1.8px; margin-block: 14px 18px; }
  .hero-actions { margin-top: 20px; }
  .hero-button { flex: 1 1 auto; padding-inline: 12px; }
  .hero-figure img { height: 160px; }
  .hero-figure.hero-figure--art img { height: 100%; }
  .visual-note-stage { min-height: 190px; max-height: min(135vw, 620px); }
  .visual-note-nav span { width: 40px; height: 54px; }
  .visual-note-nav--prev span { left: 8px; }
  .visual-note-nav--next span { right: 8px; }
  .figure-label { font-size: 11px; padding-block: 8px; }
  .cat-grid { grid-template-columns: 1fr; gap: 10px; padding-top: 14px; }
  .cat-card { grid-template-columns: 96px minmax(0, 1fr); min-height: 96px; padding: 13px 12px 13px 10px; }
  .cat-card-icon { width: 46px; height: 46px; flex-basis: 46px; }
  .cat-card-icon img { width: 31px; height: 31px; }
  .cat-card-title { flex-wrap: wrap; gap: 5px 10px; font-size: 17px; }
  .cat-card-kicker { font-size: 11px; }
  .cat-card-desc { display: none; }
  .mobile-menu-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desktop-break { display: none; }
  .ribbon { padding: 13px 16px; }
  .ribbon-text span { font-size: 11px; margin-left: 6px; }
  .post-item { padding-block: 22px; }
  .post-title { font-size: 22px; }
  .post-excerpt { font-size: 16px; margin-top: 9px; }
  .back-link { margin-top: 20px; font-size: 13px; }
  .article-header, .cat-header, .about-header { padding-block: 22px 30px; }
  .article-title, .cat-title, .about-title { font-size: 32px; line-height: 1.45; letter-spacing: -.5px; }
  .article-desc, .cat-desc { font-size: 17px; line-height: 1.9; }
  .article-meta { font-size: 12px; }
  .content { font-size: 18px; line-height: 1.95; }
  .content h2 { font-size: 25px; line-height: 1.6; margin-top: 1.8em; }
  .content h3 { font-size: 21px; }
  .content pre { padding: 16px; margin-block: 20px; }
  .content pre code { font-size: 14px; }
  .content .note, .content blockquote { padding: 16px 18px; font-size: 17px; }
  .player-guide-banner { margin-top: 20px; padding: 20px; gap: 18px; border-left-width: 5px; }
  .player-guide-banner p { font-size: 16px; }
  .player-guide-banner .dl-button { width: 100%; }
  .server-address { padding: 15px 17px; }
  .server-address code { width: 100%; font-size: 21px; }
  .callout { font-size: 17px; }
  .callout-title { padding: 13px 16px 11px; }
  .callout-body { padding: 14px 16px 16px; }
  .guide-step { margin-bottom: 40px; }
  .guide-step h3 { font-size: 22px; }
  .guide-figure { margin-block: 20px 28px; }
  .guide-figure figcaption { font-size: 12px; }
  .guide-figure-pair { grid-template-columns: 1fr; gap: 0; }
  .quick-start-panel { padding-top: 18px; }
  .quick-start-panel .dl-row, .quick-start-panel .dl-button { width: 100%; }
  .landmark-shell { padding-block: 26px 44px; }
  .landmark-overview { gap: 16px; }
  .landmark-panel-heading, .landmark-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .landmark-panel-heading { padding: 15px 16px 12px; }
  .landmark-panel-heading h2, .landmark-section-heading h2, .landmark-submit h2 { font-size: 24px; }
  .landmark-map, .landmark-map svg { min-height: 330px; }
  .landmark-map svg { width: 680px; max-width: none; }
  .mobile-map-hint { display: inline; width: 100%; color: var(--link-ink); }
  .landmark-summary { min-height: 330px; padding: 20px; }
  .landmark-directory { padding-top: 46px; }
  .landmark-toolbar { padding-block: 18px; }
  .landmark-filters { display: grid; grid-template-columns: repeat(3, 1fr); }
  .landmark-filters button { padding-inline: 7px; }
  .landmark-grid { grid-template-columns: 1fr; }
  .landmark-submit { gap: 28px; margin-top: 52px; padding-top: 36px; }
  .landmark-submit-copy > p { font-size: 17px; }
  .landmark-form { padding: 18px; }
  .landmark-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .landmark-field { grid-column: span 1; }
  .landmark-field-wide { grid-column: 1 / -1; }
  .content table { font-size: 15px; }
  .content td, .content th { padding: 12px; }
  .table-scroll.wide table { min-width: 580px; }
  .table-hint { display: block; font-size: 12px; color: var(--caption-gray); margin: 18px 0 -14px; }
  .content .dl-button { width: 100%; font-size: 15px; }
  .category-page .post-list { grid-template-columns: 1fr; padding-bottom: 40px; }
  .category-page .post-title { font-size: 23px; }
  .site-footer { padding-block: 26px; }
  .footer-inner { gap: 18px; }
  .footer-logo { width: 122px; }
  .footer-text { font-size: 12px; }
  .nav-bottom { padding-block: 16px 30px; }
}
@media (max-width: 959px) {
  .account-shell { padding-top: 36px; }
  .account-header { grid-template-columns: 1fr; gap: 14px; }
  .account-header .about-kicker { grid-column: auto; }
  .account-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-settings-grid .account-panel:last-child { grid-column: 1 / -1; }
  .account-identity { grid-template-columns: 96px minmax(0, 1fr); }
  .account-avatar { width: 96px; }
  .account-identity > .dl-button { grid-column: 1 / -1; width: 100%; }
  .account-user-row { grid-template-columns: minmax(0, 1fr) 70px 64px 108px; }
}
@media (max-width: 719px) {
  .account-shell { padding: 26px 0 54px; }
  .account-header { padding-bottom: 26px; }
  .account-header h1 { font-size: 34px; letter-spacing: -1.2px; }
  .account-header > p:last-child { font-size: 16px; }
  .account-guest, .account-settings-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
  .account-settings-grid .account-panel:last-child { grid-column: auto; }
  .account-panel-heading, .account-form { padding: 18px; }
  .account-identity { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; margin-top: 22px; padding: 20px; }
  .account-avatar { width: 74px; }
  .account-avatar span { font-size: 26px; }
  .avatar-picker { grid-template-columns: 76px minmax(0, 1fr); padding: 12px; }
  .avatar-picker > img { width: 76px; height: 76px; }
  .avatar-crop-panel { padding: 16px; }
  .avatar-crop-actions { grid-template-columns: 1fr; }
  .account-identity-copy h2 { font-size: 29px; }
  .account-badges { grid-column: 1 / -1; }
  .account-admin { margin-top: 36px; padding: 20px; }
  .account-admin-heading { align-items: flex-start; flex-direction: column; }
  .account-admin-heading .dl-button { width: 100%; }
  .account-user-row { grid-template-columns: 1fr auto auto; gap: 9px 12px; }
  .account-user-row > div { grid-column: 1 / -1; }
  .account-user-row .dl-button { grid-column: 1 / -1; width: 100%; }
  .account-form-actions { grid-template-columns: 1fr; }
  .account-privacy { margin-top: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .visual-note-stage, .hero-figure.hero-figure--art img, .visual-note-nav, .hero-title, .hero-emote, .latest-page-button, .latest-page-control, .cat-card-icon, .cat-card-icon img { transition: none; }
  .hero-title:hover { transform: none; text-shadow: none; }
  .hero-title:hover .hero-emote { transform: none; }
}
@media (hover: none) {
  .visual-note-nav { opacity: .34; }
}
@media print {
  .top-bar, .reading-aside, .toc-mobile, .skip-link, .back-link, .nav-bottom, .site-footer { display: none; }
  .reading-layout { display: block; width: 100%; padding: 0; }
  .article-header { width: 100%; }
  .content { font-size: 12pt; color: #000; }
  .content pre { white-space: pre-wrap; }
  .table-scroll { overflow: visible; }
  .content h2, .content h3 { break-after: avoid; }
}

/* 代码工具栏属于代码框本身，不占用首行代码的空间。 */
.content .code-block { position: relative; margin: 24px 0 30px; border: 1px solid #34404b; border-left: 3px solid #111; background: #24292e; }
.content .code-block > pre { margin: 0; border: 0; padding: 16px 22px 22px; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 5px 10px 5px 20px; border-bottom: 1px solid rgb(255 255 255 / .14); background: #1e252b; }
.code-toolbar-label { color: #a2afb9; font: 700 11px/1 var(--font-mono); letter-spacing: .16em; }
.code-copy { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 11px; border: 1px solid rgb(255 255 255 / .34); color: #e8eaed; background: rgb(255 255 255 / .1); font: 600 13px/1 var(--font-mono); letter-spacing: .4px; white-space: nowrap; cursor: pointer; }
.code-copy:hover { color: #fff; background: rgb(255 255 255 / .22); border-color: rgb(255 255 255 / .6); }
.code-copy:focus-visible { outline: 3px solid #8ed3ff; outline-offset: 2px; }
.code-copy-icon { flex: 0 0 15px; width: 15px; height: 15px; }
.code-copy[data-state="copied"] { color: #06210f; background: #7ee2a8; border-color: #7ee2a8; }
.code-copy[data-state="error"] { color: #2a0705; background: #ffb4a8; border-color: #ffb4a8; }
.code-copy-toast { position: fixed; z-index: 1000; top: 24px; right: 24px; display: flex; align-items: center; gap: 12px; width: min(350px, calc(100vw - 32px)); padding: 13px 18px; border: 1px solid #111; border-left: 5px solid var(--link-ink); background: #fff; color: #111; box-shadow: 7px 7px 0 rgb(17 17 17 / .16); opacity: 0; transform: translateY(-12px) scale(.97); pointer-events: none; }
.code-copy-toast[hidden] { display: none; }
.code-copy-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.code-copy-toast-mark { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; color: #095b39; background: #dff5e8; font: 700 20px/1 var(--font-mono); }
.code-copy-toast-copy { display: grid; gap: 2px; min-width: 0; }
.code-copy-toast-kicker { color: var(--link-ink); font: 700 10px/1.3 var(--font-mono); letter-spacing: .14em; }
.code-copy-toast-title { font: 700 15px/1.3 var(--font-heading); }
.code-copy-toast-detail { color: #5c6267; font: 12px/1.4 var(--font-heading); }
.code-copy-toast[data-state="error"] { border-left-color: #b4433d; }
.code-copy-toast[data-state="error"] .code-copy-toast-mark { color: #8b2420; background: #ffe8e2; }
.code-copy-toast[data-state="error"] .code-copy-toast-kicker { color: #8b2420; }
@media (prefers-reduced-motion: no-preference) {
  .code-copy { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
  .code-copy-toast { transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
}
@media (max-width: 719px) {
  .content .code-block > pre { padding: 14px 16px 18px; }
  .code-toolbar { min-height: 40px; padding-left: 15px; padding-right: 8px; }
  .code-copy { padding: 0 10px; font-size: 12px; }
  .code-copy-toast { top: 12px; right: 12px; width: calc(100vw - 24px); }
}
@media print {
  .code-toolbar, .code-copy-toast { display: none; }
}

/* WebRTC voice lobby within the chat page. */
.voice-page { display: flex; min-height: 100vh; flex-direction: column; }
.voice-page > main { flex: 1; }
.voice-shell { width: min(calc(100% - 2 * var(--gutter)), var(--max-width)); margin-inline: auto; padding: 52px 0 80px; }
.voice-heading { padding-bottom: 32px; border-bottom: 3px solid #111; }
.voice-heading h1 { margin: 8px 0 12px; color: #111; font: 700 clamp(38px, 5vw, 72px)/1.12 var(--font-heading); }
.voice-heading > p:last-child { max-width: 44em; color: #566068; font-size: 18px; }
.voice-panel { margin-top: 28px; border: 1px solid #111; }
.voice-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid #111; font: 700 14px/1.5 var(--font-mono); }
.voice-panel-head > div { display: inline-flex; align-items: center; gap: 10px; }
.voice-panel-head > span { color: var(--link-ink); }
.voice-live-dot { width: 9px; height: 9px; background: #96a4ac; }
.voice-shell.is-joined .voice-live-dot { background: #3fa48a; box-shadow: 0 0 0 4px #e4f5ef; }
.voice-seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; min-height: 210px; padding: 20px; }
.voice-seat { min-width: 0; padding: 15px; border: 1px solid #bdc9d0; background: #f8fafb; }
.voice-seat.is-self { border-color: var(--link-blue); background: #eff8fc; }
.voice-seat.is-talking { border-color: #2b9f83; box-shadow: inset 0 0 0 2px #2b9f83; }
.voice-seat.is-empty { border-style: dashed; background: #fff; }
.voice-seat-avatar { width: min(100%, 112px); aspect-ratio: 1; margin-inline: auto; border: 2px solid #111; object-fit: cover; background: #fff; }
.voice-seat.is-empty .voice-seat-avatar { display: grid; place-items: center; border: 1px dashed #b7c5cb; color: #9fb0b8; background: #f3f7f9; font: 400 42px/1 var(--font-mono); }
.voice-seat-name { margin-top: 12px; overflow: hidden; color: #171b1e; font: 700 16px/1.45 var(--font-heading); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.voice-seat-status { margin-top: 4px; color: #5d6970; font: 12px/1.45 var(--font-mono); text-align: center; }
.voice-seat.is-empty .voice-seat-name { color: #829099; font-weight: 400; }
.voice-seat.is-talking .voice-seat-status { color: #167a61; }
.voice-seat-quality { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 7px 0 0; color: #4e5c64; font: 12px/1.4 var(--font-mono); text-align: center; }
.voice-seat-quality::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; background: #8c9ba3; }
.voice-seat-quality.is-good { color: #15785a; }
.voice-seat-quality.is-good::before { background: #2da77d; }
.voice-seat-quality.is-fair { color: #886218; }
.voice-seat-quality.is-fair::before { background: #d29b2e; }
.voice-seat-quality.is-poor { color: #a12b27; }
.voice-seat-quality.is-poor::before { background: #cc4a42; }
.voice-quality-note { margin: 0; padding: 0 20px 15px; color: #687781; font-size: 12px; }
.voice-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-top: 24px; }
.voice-status { color: #4c5960; font-size: 15px; }
.voice-status.is-error { color: #a62926; }
.voice-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.voice-controls[hidden], .voice-actions > a[hidden], .voice-controls button[hidden] { display: none; }
.voice-controls button { min-height: 44px; }
.voice-controls button:disabled { opacity: .55; cursor: wait; }
.voice-log-panel { margin-top: 24px; border: 1px solid #111; background: #f8fafb; }
.voice-log-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #b6c4cb; }
.voice-log-head h2 { margin: 0; color: #111; font: 700 16px/1.4 var(--font-heading); }
.voice-log-head h2 span { margin-left: 7px; color: var(--link-ink); font: 700 11px/1.4 var(--font-mono); letter-spacing: .08em; }
.voice-log-head > span { color: #687781; font: 12px/1.4 var(--font-mono); white-space: nowrap; }
.voice-log-list { display: grid; gap: 0; margin: 0; padding: 4px 18px; list-style: none; overflow: visible; }
.voice-log-entry { display: grid; grid-template-columns: 68px 58px minmax(0, 1fr); align-items: baseline; gap: 12px; min-width: 0; padding: 7px 0; border-bottom: 1px solid #e1e8eb; color: #3d4e58; font-size: 13px; overflow-wrap: anywhere; }
.voice-log-entry:last-child { border-bottom: 0; }
.voice-log-time { color: #76858d; font: 12px/1.5 var(--font-mono); }
.voice-log-tag { color: var(--link-ink); font: 700 12px/1.5 var(--font-mono); white-space: nowrap; }
.voice-log-entry.is-ok .voice-log-tag { color: #137456; }
.voice-log-entry.is-warning .voice-log-tag { color: #8a5e0b; }
.voice-log-entry.is-error .voice-log-tag { color: #ad312b; }
.voice-log-entry.is-error .voice-log-message { color: #8b2926; }
@media (max-width: 719px) {
  .voice-shell { padding-top: 34px; padding-bottom: 54px; }
  .voice-heading { padding-bottom: 22px; }
  .voice-heading > p:last-child { font-size: 16px; }
  .voice-panel-head { padding: 12px 14px; }
  .voice-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 10px; }
  .voice-seat { padding: 12px 9px; }
  .voice-seat-avatar { width: min(100%, 96px); }
  .voice-seat-name { font-size: 14px; }
  .voice-quality-note { padding: 0 10px 12px; }
  .voice-actions { align-items: stretch; }
  .voice-controls { width: 100%; }
  .voice-controls button, .voice-actions > a { flex: 1 1 100%; }
  .voice-log-head { padding: 11px 12px; }
  .voice-log-list { padding-inline: 12px; }
  .voice-log-entry { grid-template-columns: 56px 50px minmax(0, 1fr); gap: 6px; font-size: 12px; }
  .voice-log-time, .voice-log-tag { font-size: 11px; }
}

/* Private group chat below the voice seats. */
.chat-panel { margin-top: 54px; border: 1px solid #111; background: #fff; }
.chat-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 24px 28px; border-bottom: 1px solid #111; }
.chat-heading h2 { margin: 3px 0 0; font: 700 clamp(27px, 3vw, 38px)/1.2 var(--font-heading); }
.chat-heading > p { margin: 0; color: #61707a; font-size: 14px; }
.chat-history { padding: 18px 28px 0; background: #f7fafb; }
.chat-older { display: block; margin: 0 auto 18px; padding: 6px 14px; border: 1px solid #a8bdc9; color: var(--link-ink); background: #fff; cursor: pointer; }
.chat-older[hidden] { display: none; }
.chat-messages { min-height: 180px; max-height: min(58vh, 600px); overflow-y: auto; overscroll-behavior: contain; }
.chat-message { display: flex; gap: 11px; max-width: min(82%, 660px); margin: 0 0 22px; }
.chat-message.is-self { margin-left: auto; flex-direction: row-reverse; }
.chat-avatar { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #253038; object-fit: cover; background: #fff; }
.chat-message-content { min-width: 0; }
.chat-message.is-self .chat-message-content { text-align: right; }
.chat-message-meta { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; color: #55626c; font-size: 12px; }
.chat-message.is-self .chat-message-meta { justify-content: flex-end; }
.chat-message-meta strong { color: #222; font-size: 13px; }
.chat-bubble { display: inline-block; max-width: 100%; padding: 11px 14px; border: 1px solid #bdc9d0; background: #fff; text-align: left; overflow-wrap: anywhere; }
.chat-message.is-self .chat-bubble { border-color: #9ed4ec; background: #e4f5fc; }
.chat-message.is-recalled .chat-bubble { color: #78848c; border-style: dashed; background: transparent; font-size: 13px; }
.chat-bubble p { margin: 0; white-space: pre-wrap; line-height: 1.65; }
.chat-attachment { display: block; max-width: 100%; margin-top: 7px; color: var(--link-ink); font-size: 14px; overflow-wrap: anywhere; }
.chat-attachment:first-child { margin-top: 0; }
.chat-attachment.is-image img { display: block; max-width: min(100%, 360px); max-height: 330px; width: auto; height: auto; object-fit: contain; }
.chat-recall { display: block; margin-top: 5px; padding: 2px 0; border: 0; color: #61707a; background: none; font-size: 12px; cursor: pointer; }
.chat-message.is-self .chat-recall { margin-left: auto; }
.chat-recall:hover { color: #a62926; text-decoration: underline; }
.chat-status { min-height: 24px; margin: 0; padding: 0 28px; color: #61707a; font-size: 13px; }
.chat-status.is-error { color: #a62926; }
.chat-login { margin: 0 28px 24px; }
.chat-form { padding: 20px 28px 24px; border-top: 1px solid #cbd4d8; }
.chat-form[hidden], .chat-login[hidden], .chat-file-preview[hidden] { display: none; }
.chat-form > label { display: block; margin-bottom: 9px; font-weight: 700; }
.chat-form textarea { display: block; width: 100%; min-height: 84px; padding: 11px 13px; border: 1px solid #8c9ba3; background: #fff; color: #111; font: 16px/1.5 var(--font-heading); resize: vertical; }
.chat-file-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: #40525c; font-size: 13px; overflow-wrap: anywhere; }
.chat-file-preview button { flex: 0 0 auto; border: 0; color: #a62926; background: none; cursor: pointer; }
.chat-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.chat-form-actions > span { margin-right: auto; color: #61707a; font-size: 12px; }
.chat-attach { min-height: 41px; padding: 0 13px; border: 1px solid #111; background: #fff; color: #111; cursor: pointer; }
.chat-attach:hover { background: #e4f5fc; }
.chat-form-actions .dl-button { min-width: 100px; }
.chat-form-actions button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 719px) {
  .chat-panel { margin-top: 36px; }
  .chat-heading { display: block; padding: 20px 16px; }
  .chat-heading > p { margin-top: 8px; }
  .chat-history { padding: 16px 12px 0; }
  .chat-messages { max-height: 54vh; }
  .chat-message { max-width: 94%; gap: 7px; }
  .chat-avatar { flex-basis: 34px; width: 34px; height: 34px; }
  .chat-bubble { padding: 9px 11px; }
  .chat-status { padding-inline: 16px; }
  .chat-form { padding: 16px; }
  .chat-form-actions > span { order: 3; flex-basis: 100%; }
  .chat-form-actions .dl-button { margin-left: auto; }
}
