* { box-sizing: border-box; }
:root { color-scheme: light; --ink:#2d2332; --muted:#6f6374; --paper:#f7f4f8; --white:#fff; --line:#e8dfe9; --plum:#603a66; --soil:#f1e9f2; --mint:#e6f2ec; font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif; }
body { margin:0; background:var(--paper); color:var(--ink); line-height:1.55; }
a { color:var(--plum); text-decoration:none; }
a:hover { text-decoration:underline; }
h1,h2,p,figure { margin:0; }
h1 { font-size:clamp(1.6rem,5.5vw,3rem); line-height:1.17; margin-bottom:.55em; letter-spacing:-.035em; }
h2 { font-size:1.2rem; margin-bottom:.65rem; }
p + p { margin-top:.45rem; }
small,.small { font-size:.81rem; }
.muted { color:var(--muted); }
.wrap { overflow-wrap:anywhere; white-space:pre-wrap; }
.monospace,.box-number { font-family:ui-monospace,Consolas,monospace; overflow-wrap:anywhere; }
.site-head { background:var(--white); border-bottom:1px solid var(--line); }
.head-inner { max-width:1000px; margin:auto; padding:14px clamp(16px,4vw,32px); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.identity { display:flex; align-items:center; gap:10px; color:var(--ink); }
.identity strong,.identity small { display:block; }
.identity small { font-size:.62rem; font-weight:650; letter-spacing:.08em; color:var(--muted); }
.head-link { font-size:.86rem; white-space:nowrap; }
.mark { display:grid; grid-template-columns:repeat(3,1fr); gap:3px; padding:7px; width:38px; height:34px; background:var(--plum); border-radius:10px; }
.mark i,.tile-motif i { background:#eee1ed; border-radius:2px; }
.mark i:nth-child(3n),.tile-motif i:nth-child(3n) { background:#ecc4bc; }
.mark i:nth-child(5),.tile-motif i:nth-child(5) { background:#cadfd3; }
.mark.large { width:48px; height:39px; }
main { max-width:1000px; margin:auto; padding:26px clamp(14px,4vw,32px) 110px; }
.hero { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:24px; background:#eee4ef; border:1px solid #e8dbe9; border-radius:22px; padding:clamp(20px,5vw,44px); overflow:hidden; }
.hero h1 { margin-bottom:.35em; }
.eyebrow { font-size:.76rem; letter-spacing:.1em; font-weight:700; color:var(--plum); margin-bottom:.65rem; }
.hero-body > p:not(.eyebrow) { color:var(--muted); margin-bottom:1rem; }
.tile-motif { display:grid; gap:10px; grid-template-columns:repeat(3,minmax(0,52px)); transform:rotate(-8deg); }
.tile-motif i { width:clamp(28px,5vw,54px); aspect-ratio:1; border-radius:14px; border:1px solid #ded1e1; background:#fbf6fb; }
.tile-motif i:nth-child(2) { background:#dfc9e2; }
.search { display:grid; gap:8px; grid-template-columns:minmax(0,1fr) auto; align-items:start; }
.search .filters { grid-column:1/-1; }
.filters[open] { background:#f9f4fa; padding:12px; border-radius:12px; }
.filters .form-row { margin:10px 0; }
input:not([type=checkbox]):not([type=radio]),textarea,select { width:100%; min-width:0; max-width:100%; font:inherit; font-size:16px; padding:10px 11px; border:1px solid #d9cadb; background:#fff; color:var(--ink); border-radius:9px; min-height:44px; }
input[type=file] { font-size:.85rem!important; }
button,.button { display:inline-flex; align-items:center; justify-content:center; width:fit-content; min-height:44px; padding:8px 14px; border-radius:10px; border:1px solid transparent; font:inherit; font-weight:650; color:white; background:var(--plum); cursor:pointer; text-align:center; }
button.secondary,.button.secondary { background:#f4edf5; color:var(--plum); border-color:var(--line); }
button:disabled { opacity:.6; cursor:wait; }
:focus-visible { outline:2px solid #9d59a2; outline-offset:3px; }
.bottom-nav { display:flex; justify-content:center; position:fixed; left:0; right:0; bottom:0; padding:5px 10px max(5px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:#fff; z-index:2; }
.bottom-nav a { display:grid; gap:0; width:min(130px,25%); justify-items:center; color:var(--muted); padding:5px; border-radius:10px; font-size:.8rem; }
.bottom-nav span { font-size:1.12rem; line-height:1.2; }
.bottom-nav .active { background:var(--soil); color:var(--plum); font-weight:700; }
.section-head,.line,.actions,.tabs { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.section-head { justify-content:space-between; margin:22px 0 12px; }
.tabs a { display:block; padding:8px 10px; border-radius:8px; }
.tabs .active { background:var(--soil); font-weight:700; }
.board-row,.panel,.empty { background:var(--white); border:1px solid var(--line); border-radius:16px; }
.board-row { display:grid; grid-template-columns:clamp(66px,14vw,124px) minmax(0,1fr); gap:14px; margin:10px 0; padding:13px; }
.board-cover { display:grid; place-items:center; background:var(--soil); border-radius:11px; overflow:hidden; min-height:90px; }
.board-cover img { width:100%; height:100%; max-height:150px; object-fit:cover; }
.board-title { display:grid; align-items:center; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.board-title .gallery figure { width:72px; }
.board-summary { min-width:0; }
.board-summary .box-number { font-size:1.18rem; font-weight:750; }
.slot-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:6px 0; }
.slot-summary span { background:#f5eff6; padding:3px 4px; border-radius:5px; font-size:.71rem; overflow-wrap:anywhere; }
.slot-summary .known { background:var(--mint); }
.empty,.panel { padding:clamp(14px,3.4vw,25px); margin:13px 0; }
.empty { text-align:center; padding:36px 16px; }
.empty p { color:var(--muted); }
.panel.narrow { max-width:490px; margin:24px auto; }
.back { display:inline-block; margin-bottom:13px; }
.message { padding:10px 13px; background:var(--mint); border-radius:9px; margin-bottom:12px; }
.message.warning { background:#fbe7eb; }
.form-status { color:#773448; }
.form-status:empty,[data-share-result]:empty { display:none; }
.stack { display:grid; gap:12px; margin-top:14px; }
.stack label,.version label { display:block; font-weight:600; }
.stack label.check { display:flex; gap:7px; align-items:center; }
.stack label > input:not([type=radio]):not([type=checkbox]),.stack label > select,.stack label > textarea { display:block; margin-top:4px; font-weight:400; }
.form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
fieldset { min-inline-size:0; margin:0; padding:0; border:0; }
.form-section { display:grid; gap:9px; padding:10px; border:1px solid var(--line); border-radius:10px; }
.form-section > legend,.chooser > legend { padding:0 4px; font-weight:700; }
.chooser { margin:5px 0; }
.style-buttons { display:flex; flex-wrap:wrap; gap:5px; }
.style-buttons label { position:relative; }
.style-buttons input { position:absolute; opacity:0; }
.style-buttons span { display:inline-flex; align-items:center; min-height:36px; padding:3px 8px; border:1px solid var(--line); border-radius:8px; font-size:.85rem; cursor:pointer; }
.style-buttons input:checked + span { background:var(--soil); color:var(--plum); border-color:#a883ad; }
.style-buttons input:focus-visible + span { outline:2px solid var(--plum); }
.stats,.metric-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:10px 0 14px; }
.stats > span,.metric-grid > div { display:grid; padding:9px; border-radius:10px; background:#f6f1f7; text-align:center; font-size:.8rem; color:var(--muted); }
.stats b,.metric-grid strong { color:var(--ink); font-size:1.22rem; }
.flag { display:inline-block; align-self:start; background:#f5edf5; color:var(--plum); border-radius:20px; padding:1px 7px; font-size:.72rem; }
.flag.conflict { background:#fbe8eb; color:#8d3855; }
.version { display:flex; align-items:end; gap:6px; margin:10px 0; }
.version label { flex:1; }
.six-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.cell { min-width:0; border:1px solid var(--line); border-radius:11px; background:#fcf9fc; overflow:hidden; }
.cell-body { display:grid; gap:4px; padding:9px; color:var(--ink); overflow-wrap:anywhere; }
.cell-index,.cell-body small,.cell-evidence { color:var(--muted); font-size:.73rem; }
.cell-body strong { line-height:1.25; }
.cell-evidence,.cell .gallery { padding:0 9px 7px; }
.cell .gallery img { max-height:76px; }
.event { border-top:1px solid var(--line); padding:10px 0; }
.event p { overflow-wrap:anywhere; }
.facts { margin:5px 0; }
.facts div { display:flex; gap:7px; }
.facts dt { color:var(--muted); }
.facts dd { margin:0; overflow-wrap:anywhere; }
blockquote { background:#f6f1f7; margin:8px 0; padding:7px 12px; border-left:3px solid #c8accc; white-space:pre-wrap; overflow-wrap:anywhere; }
.gallery { display:flex; flex-wrap:wrap; gap:7px; margin:6px 0; }
.gallery:empty { display:none; }
.gallery figure { width:min(122px,45%); }
.gallery img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; border-radius:7px; background:#f3edf2; }
.gallery figcaption { color:var(--muted); font-size:.69rem; }
#photo-viewer { border:0; border-radius:13px; background:#241f26; color:white; width:min(95vw,900px); padding:12px; }
#photo-viewer::backdrop { background:#120f15b8; }
#photo-viewer img { width:100%; max-height:72vh; object-fit:contain; }
#photo-viewer a { color:#f4d9f2; }
.viewer-top,.viewer-actions,.pagination { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.viewer-top { margin-bottom:6px; }
.viewer-actions { margin-top:7px; }
.entry { border-top:1px solid var(--line); padding:8px 0; justify-content:space-between; }
.pagination { justify-content:center; padding:14px; }
summary { cursor:pointer; color:var(--plum); }
details { margin-top:6px; }
[hidden] { display:none!important; }
@media(max-width:570px) { .hero { grid-template-columns:minmax(0,1fr); } .tile-motif { display:none; } .board-row { gap:8px; padding:8px; } .cell-body { padding:7px; } .facts div { flex-wrap:wrap; } }
@media(max-width:360px) { .form-row { grid-template-columns:minmax(0,1fr); } .cell-body { padding:5px; } }

.slot-summary .summary-cell { display:block; min-width:0; color:inherit; padding:6px; background:#f8f3f8; border-radius:7px; overflow-wrap:anywhere; }
.ocr-cell-facts { display:grid; gap:2px; }
.slot-summary .ocr-cell-facts, .slot-summary .ocr-cell-facts small { background:none; padding:0; }
.ocr-cell-facts small { display:block; }
.ocr-cell-facts .ocr-extra { color:#70458e; }
.ocr-cell-facts .ocr-show, .ocr-show { color:#176346; }
.ocr-cell-facts .unknown { color:#817984; }
