:root {
  color-scheme: light;
  --paper:#fff; --white:#fff; --ink:#252722; --muted:#62645b;
  --accent:#a8392d; --accent-deep:#842b22; --border:#e8e2d8; --rose:#f7e6e1;
  --gold:#f5ecd9; --sage:#e8eee4; --green:#315e4c;
  --body:"Inter","Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;
  --display:"Playfair Display","Songti SC","Noto Serif CJK SC","SimSun",serif;
}
html { scrollbar-gutter:stable }
* { box-sizing:border-box }
body { margin:0; color:var(--ink); background:var(--paper); font:15px/1.65 var(--body) }
a { color:inherit; text-decoration:none }
button,input,textarea,select { font:inherit }
button { cursor:pointer }
img { max-width:100%; display:block }
h1,h2,h3,p { margin:0 }
h1,h2,h3 { line-height:1.28 }
:focus-visible { outline:3px solid #d26350; outline-offset:4px }
[hidden] { display:none !important }
.skip { position:fixed; z-index:9; top:12px; left:12px; padding:10px 16px; background:white; transform:translateY(-150%) }
.skip:focus { transform:none }
.frame { width:min(1280px,calc(100% - 96px)); margin-inline:auto }
.site-header { background:var(--white); border-bottom:1px solid var(--border); position:relative; z-index:2 }
.header-inner { min-height:79px; display:flex; align-items:center; justify-content:space-between; gap:24px }
.brand { display:inline-flex; align-items:center; gap:11px; flex:none; min-height:44px }
.mark { width:43px; height:43px; object-fit:contain; background:white }
.brand-name { display:grid; line-height:1.3; gap:3px; white-space:nowrap }
.brand-name b { font-size:17px; letter-spacing:.025em }
.brand-name small { font:600 9px/1.2 var(--body); letter-spacing:.155em; color:var(--muted) }
.header-inner nav { display:flex; align-items:center; gap:clamp(14px,2.3vw,37px); align-self:stretch }
.header-inner nav a { font-size:14px; font-weight:600; white-space:nowrap; display:inline-flex; justify-content:center; align-items:center; position:relative; min-height:44px }
.header-inner nav a.active { color:var(--accent) }
.header-inner nav a.active::after { content:""; position:absolute; width:18px; height:2px; border-radius:2px; bottom:18px; background:currentColor }
.header-inner nav a:hover { color:var(--accent) }
.header-inner nav .join-link { min-height:40px; padding:0 14px; border:1px solid #e7c9c1; border-radius:8px; color:var(--accent); gap:7px; margin-left:4px }
.nav-toggle { display:none; border:1px solid var(--border); background:white; border-radius:9px; min-width:44px; min-height:44px; color:var(--ink) }
.home-body {
  --accent:#b82037; --accent-deep:#901327;
  --border:#efd8dc; --rose:#fbe8eb;
}
.site-header { background:#9b192c; color:white; border:0 }
.site-header .frame,.home { width:min(1580px,92%) }
.site-header .header-inner { min-height:clamp(76px,8.3vw,128px); gap:16px }
.site-header .mark { width:clamp(50px,6vw,92px); height:auto }
.site-header .brand-name b { font:650 clamp(16px,1.55vw,24px)/1.4 var(--display) }
.site-header nav { flex:1; max-width:1040px; justify-content:space-between; gap:12px; margin-left:clamp(12px,3vw,55px) }
.site-header nav a { font:500 clamp(15px,1.45vw,23px)/1.3 var(--display); letter-spacing:.04em }
.site-header nav a:hover,.site-header nav a.active { color:white; text-decoration:underline; text-underline-offset:7px }
.site-header nav a.active::after { display:none }
.site-header .nav-toggle { color:white; background:transparent; border-color:#ffffff80 }
.book-feature { display:grid; grid-template-columns:19.5% 18% 1fr; grid-template-rows:1fr auto 4%; margin:clamp(30px,4.5vw,74px) 0 clamp(58px,7vw,110px); align-items:end; font-family:var(--display) }
.feature-photo { grid-area:1/2/4/4; width:100%; height:auto; aspect-ratio:1.53; object-fit:cover }
.feature-story { grid-area:2/1/3/3; z-index:1; background:white; padding:clamp(22px,2vw,34px) clamp(20px,3.1vw,50px); color:#201c1b }
.feature-label,.feature-link { color:#9b192c; font-size:clamp(15px,1.4vw,22px); letter-spacing:.08em }
.feature-label::after { content:""; display:block; width:30px; height:2px; background:currentColor; margin:15px 0 18px }
.feature-story h1 { font-size:clamp(30px,3.15vw,54px); font-weight:500; letter-spacing:.055em; line-height:1.39 }
.feature-intro { font-size:clamp(15px,1.25vw,21px); margin:14px 0 18px; line-height:1.7 }
.feature-link { display:inline-flex; align-items:center; min-height:44px; gap:16px }
.feature-link:hover { text-decoration:underline; text-underline-offset:5px }
.button,.text-link { display:inline-flex; gap:10px; align-items:center; justify-content:center; min-height:44px; font-weight:700; font-size:14px; width:fit-content }
.button { padding:10px 17px; border:1px solid transparent; border-radius:8px; line-height:1.25; transition:background-color .16s,color .16s,border-color .16s }
.primary { color:white; background:var(--accent) }
.primary:hover { background:var(--accent-deep) }
.subtle { background:var(--white); color:var(--ink); border-color:var(--border) }
.home-showcase {
  padding:30px clamp(22px,8%,103px) 23px; border-radius:30px; background:#fff; color:var(--ink); text-align:center;
}
.home-showcase h2 { font-size:clamp(26px,3.2vw,40px) }
.home-showcase > p { margin:5px 0 19px; color:var(--muted) }
.showcase-track { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 32px) / 3); gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:4px; padding:4px 4px 10px; scrollbar-color:#a96674 #f8edf0 }
.showcase-card { display:flex; flex-direction:column; overflow:hidden; scroll-snap-align:start; text-align:left; border-radius:16px; background:#fff9f6; color:#391721; outline-offset:-3px }
.showcase-card .cover { aspect-ratio:26 / 11 }
.showcase-card:hover strong { text-decoration:underline; text-underline-offset:4px }
.showcase-caption { padding:15px; overflow-wrap:anywhere; line-height:1.3 }
.showcase-caption small { display:block; font-size:13px; color:#8a3546; margin-bottom:6px }
.showcase-caption strong { font-size:clamp(16px,1.6vw,22px) }
.showcase-card.text-card { justify-content:center }
.showcase-summary { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; font-size:15px; line-height:1.6; margin-top:10px; color:#634952 }
.showcase-footer { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 18px; margin-top:8px }
.showcase-footer .text-link { color:var(--accent-deep) }
.showcase-controls { display:flex; gap:7px }
.showcase-controls button { display:grid; place-items:center; width:44px; height:44px; border:1px solid #a96674; border-radius:50%; color:var(--accent-deep); background:transparent }
.showcase-controls button:hover { background:#f8edf0 }
.home .news-band { padding:0 clamp(18px,5%,60px); margin-bottom:32px }
.home-contact { padding:0 clamp(18px,5%,60px) 40px }
.home-contact h2 { font:700 clamp(24px,3vw,36px)/1.3 var(--display); margin-bottom:15px }
.home .join-card { background:#fff; border:1px solid var(--border) }
.content-section { margin-top:52px }
.section-title { display:flex; justify-content:space-between; align-items:end; gap:14px; margin-bottom:19px }
.eyebrow { display:inline-flex; align-items:center; gap:7px; color:var(--accent); font-size:11px; font-weight:800; line-height:1.3; letter-spacing:.17em }
.section-title h2,.page-hero h1,.detail h1,.message-page h1 { font-family:var(--display); font-weight:900; letter-spacing:.02em }
.section-title h2 { font-size:36px; margin:4px 0 0 }
.text-link { color:var(--accent); white-space:nowrap }
.text-link:hover { text-decoration:underline; text-underline-offset:4px }
.card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px }
.listing-card { overflow:hidden; background:var(--white); border:1px solid var(--border); border-radius:14px }
.cover-link { display:block; overflow:hidden }
.cover { display:block; width:100%; aspect-ratio:1.72; object-fit:cover; background:#eae4da }
.cover-link .cover { transition:transform .24s }
.cover-link:hover .cover { transform:scale(1.035) }
.no-photo { display:grid !important; place-items:center; background:var(--rose); color:var(--accent) }
.card-body { padding:17px 19px 12px; display:grid; gap:9px }
.card-meta { display:flex; gap:8px; align-items:center; flex-wrap:wrap; color:var(--muted); font-size:13px }
.tag { display:inline-flex; align-items:center; border-radius:99px; padding:2px 9px; background:var(--rose); color:var(--accent-deep); font-size:12px; font-weight:700; width:fit-content; white-space:nowrap }
.tag.neutral { background:#f1eee7; color:#5d5c53 }
.tag.green { background:var(--sage); color:var(--green) }
.card-body h3 { font-size:20px; overflow-wrap:anywhere }
.card-body h3 a:hover { color:var(--accent) }
.card-body p { color:var(--muted); overflow-wrap:anywhere }
.card-link { font-size:13px; min-height:38px }
.news-band { display:grid; grid-template-columns:1.6fr 1fr; gap:28px; margin-bottom:55px }
.news-list { border-top:1px solid var(--border) }
.news-list>a { display:flex; justify-content:space-between; align-items:center; min-height:62px; gap:16px; border-bottom:1px solid var(--border) }
.news-list>a:hover { color:var(--accent) }
.news-list>a>span { display:flex; gap:12px; align-items:center }
.join-card { padding:28px; border-radius:15px; background:#f1e8dc; color:var(--accent-deep) }
.join-card h2 { font-size:22px; margin:7px 0 }
.join-card p { color:var(--muted) }
.site-footer { border-top:1px solid var(--border); background:#fff }
.footer-main { min-height:91px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px }
.footer-main nav { display:flex; flex-wrap:wrap; gap:18px; color:#575950; font-size:13px }
.footer-main nav a { display:inline-flex; align-items:center; gap:5px; min-height:44px }
.footer-main nav a:hover { color:var(--accent) }
.footer-bottom { border-top:1px solid #ddd7cc; padding:13px 0 19px; color:var(--muted); font-size:12px }
.inner-page { min-height:70vh; padding:35px 0 64px }
.page-hero { display:flex; justify-content:space-between; align-items:center; gap:32px; background:#fff; border:1px solid #ebe0d4; border-radius:17px; padding:36px 42px; margin-bottom:27px }
.page-hero h1,.detail h1,.message-page h1 { font-size:clamp(34px,5vw,58px); margin:6px 0 9px }
.page-hero p,.lead { font-size:16px; color:var(--muted) }
.page-icon { display:grid; place-items:center; width:108px; height:108px; border:1px solid #d7ae9e; border-radius:50%; color:var(--accent); flex:none }
.filters { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 19px }
.filters a { display:inline-flex; align-items:center; padding:7px 15px; border:1px solid var(--border); border-radius:99px; min-height:44px; background:var(--white); font-size:14px; font-weight:600 }
.filters a:hover { border-color:#d7ae9e }
.filters a.selected { background:var(--accent); color:white; border-color:var(--accent) }
.product-card .cover { aspect-ratio:1.35; object-position:50% 49% }
.product-card .card-body { padding-bottom:20px }
.price-stock { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:12px }
.price-stock strong { color:var(--accent); font-size:25px }
.price-stock span { color:var(--muted); font-size:14px }
.page-note { display:flex; align-items:center; flex-wrap:wrap; gap:6px; background:var(--gold); padding:12px 15px; border-radius:9px; color:#664a20; margin-top:22px }
.page-note a { text-decoration:underline; text-underline-offset:3px }
.back-link { margin-bottom:12px }
.detail,.info-panel { background:var(--white); border:1px solid var(--border); border-radius:15px; padding:28px; overflow-wrap:anywhere }
.detail { width:min(100%,880px); margin:auto; padding:0; overflow:hidden }
.detail-body { padding:34px; display:grid; gap:12px }
.detail-body h1 { margin:0 }
.detail-body .cover { border-radius:11px; margin-top:8px }
.detail-body .button { margin-top:8px }
.product-detail { width:100%; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) }
.product-detail>.cover { aspect-ratio:1.15; min-height:100% }
.product-detail .detail-body { align-content:center }
.prose { white-space:normal; font-size:16px; line-height:1.9 }
.prose p+p { margin-top:12px }
.prose h3 { margin:19px 0 6px; font-size:18px; line-height:1.5; color:var(--accent-deep) }
.prose h3:first-child { margin-top:0 }
.prose ul,.prose ol { padding-left:1.5em; margin:8px 0 14px }
.prose li+li { margin-top:6px }
.prose .article-meta { color:var(--muted); font-size:14px; line-height:1.65 }
.prose .article-figure { margin:18px 0 }
.prose .article-picture { display:block; max-width:100%; height:auto; margin-inline:auto; border-radius:8px }
.prose .article-figure figcaption { text-align:center; color:var(--muted); font-size:14px }
.info-panel + .info-panel { margin-top:18px }
.info-panel h2 { margin-bottom:10px }
.info-panel .button { margin-top:13px }
.info-image { width:auto; max-height:400px; margin-top:16px; border-radius:10px }
.borrow-layout { display:grid; grid-template-columns:1.25fr 1fr; gap:24px; align-items:start }
.borrow-layout>section>h2 { margin-bottom:14px }
.equipment-list { display:grid; gap:12px }
.equipment-card { display:flex; gap:16px; align-items:center; padding:13px; border:1px solid var(--border); background:var(--white); border-radius:13px }
.equipment-card img,.equipment-card .cover { width:141px; aspect-ratio:1; border-radius:8px; flex:none }
.equipment-card h3 { font-size:19px; margin:5px 0 4px }
.equipment-card p,.muted { font-size:14px; color:var(--muted) }
form { display:grid; gap:12px }
label { display:grid; gap:5px; font-size:14px; font-weight:700 }
input,select,textarea { min-width:0; width:100%; min-height:43px; background:white; color:var(--ink); border:1px solid #cec8bc; border-radius:7px; padding:8px 10px; font-size:16px }
input[type=file] { background:#f6f3ed }
textarea { resize:vertical }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px }
.form-row.three-fields { grid-template-columns:repeat(3,1fr) }
.empty { min-height:150px; display:grid; place-items:center; align-content:center; gap:8px; border:1px dashed #d9d1c5; border-radius:12px; color:var(--muted); background:var(--white) }
.message-page { max-width:730px; margin:24px auto; text-align:center; padding:40px 25px }
.message-page>svg { color:var(--accent) }
.admin-body { background:#fff }
.access { min-height:100vh; display:grid; place-items:center; padding:24px; background:#fff }
.access-panel { width:min(100%,470px); display:grid; gap:20px; background:white; border:1px solid var(--border); border-radius:19px; padding:31px; box-shadow:0 12px 36px #49301d12 }
.access-title h1 { margin:5px 0 8px; font-size:clamp(26px,5vw,36px); font-family:var(--display) }
.access-title p { color:var(--muted) }
.notice { padding:10px 13px; margin-bottom:12px; color:var(--green); background:var(--sage); border:1px solid #d4e4d5; border-radius:8px }
.notice.error { color:var(--accent-deep); background:var(--rose); border-color:#eabdb3 }
.admin-layout { display:grid; grid-template-columns:232px minmax(0,1fr); min-height:100vh }
.admin-sidebar { display:flex; flex-direction:column; align-self:start; min-height:100vh; padding:20px 14px; border-right:1px solid var(--border); background:var(--white); position:sticky; top:0 }
.admin-sidebar .brand { margin-bottom:25px }
.admin-sidebar .brand-name b { font-size:14px }
.admin-sidebar .mark { width:39px; height:39px }
.admin-sidebar nav { display:grid; gap:4px }
.admin-sidebar nav>a { display:flex; align-items:center; gap:11px; border-radius:8px; min-height:44px; padding:7px 10px; color:#56594e; font-weight:600 }
.admin-sidebar nav>a:hover,.admin-sidebar nav>a[aria-current] { background:var(--rose); color:var(--accent-deep) }
.site-link { margin-top:20px }
.admin-content { padding:32px min(4vw,52px); min-width:0 }
.admin-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:23px }
.admin-header h1 { font:900 clamp(28px,4vw,46px)/1.2 var(--display); margin-top:5px }
.admin-user { display:flex; gap:12px; align-items:center; text-align:right }
.admin-user small { display:block; color:var(--muted) }
.admin-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin-bottom:18px }
.admin-stats>a { display:grid; gap:4px; background:var(--white); border:1px solid var(--border); border-radius:12px; padding:16px; color:var(--accent) }
.admin-stats>a>span { color:var(--muted); font-size:14px }
.admin-stats>a>b { font-size:25px; color:var(--ink) }
.admin-panel { background:var(--white); border:1px solid var(--border); border-radius:12px; padding:17px; margin-bottom:14px }
.admin-panel-title { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:13px }
.admin-panel h2 { font-size:19px }
.admin-panel>.filters { margin-top:8px }
.admin-panel.editor form { margin-top:12px }
.admin-layout:has(.article-editor) { display:block }
.admin-layout:has(.article-editor) .admin-sidebar,
.admin-content:has(.article-editor) > .admin-header { display:none }
.admin-content:has(.article-editor) { min-height:100vh; padding:0; background:#fcfbf9 }
.admin-content:has(.article-editor) > .notice { width:min(100% - 32px,760px); margin:12px auto 0 }
.article-editor { --editor-width:760px; min-height:100vh }
.article-editor form { gap:0 }
.article-workspace-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; position:sticky; top:0; z-index:5; padding:0 clamp(16px,4vw,54px); min-height:60px; background:#fcfbf9f7; border-bottom:1px solid #eeebe6 }
.article-location { display:flex; align-items:center; gap:14px }
.article-workspace-bar .text-link { gap:8px; min-height:44px; color:var(--ink) }
.article-state { color:#6e665d; font-size:12px; padding-left:12px; border-left:1px solid var(--border); white-space:nowrap }
.article-settings { position:relative }
.article-settings summary { list-style:none; display:flex; align-items:center; gap:6px; min-height:40px; cursor:pointer; color:#554d45; font-size:13px; white-space:nowrap }
.article-settings summary::-webkit-details-marker { display:none }
.article-settings[open] summary { color:var(--accent-deep) }
.article-settings-fields { position:absolute; right:0; top:46px; z-index:6; width:min(370px,calc(100vw - 32px)); display:grid; gap:12px; padding:18px; background:var(--white); border:1px solid #ebe6de; border-radius:12px; box-shadow:0 12px 34px #34261918; max-height:calc(100vh - 90px); overflow:auto }
.article-settings-fields input:not([type="file"],[type="checkbox"]),.article-settings-fields textarea { border:0; border-bottom:1px solid var(--border); border-radius:4px }
.article-cover-settings,.article-image-tools { display:flex; align-items:center; gap:9px; flex-wrap:wrap }
.article-paper { width:min(100%,calc(var(--editor-width) + 88px)); min-width:0; margin-inline:auto; min-height:calc(100dvh - 138px); padding:clamp(36px,8vh,90px) clamp(24px,5vw,44px) 42px }
.article-paper[data-dragging] { background:#f9f2ec; outline:1px dashed #c48175; outline-offset:-8px }
.article-paper .article-title { border:0; border-radius:0; background:transparent; padding:0 0 17px; font-family:var(--display); font-weight:800; font-size:clamp(28px,5vw,51px); line-height:1.2 }
.article-paper :is(.article-title,textarea):focus { outline:none; background:#fcfaf7 }
.article-paper :is(.article-title,textarea)::placeholder { color:#77746b }
.article-composer { display:grid; gap:12px }
.article-canvas { display:grid; gap:14px; min-width:0 }
.article-block { position:relative; min-width:0; padding-bottom:10px; border-bottom:1px dashed #e8e3da }
.article-block:last-child { padding-bottom:0; border-bottom:0 }
.article-block[data-drop]::after { content:""; position:absolute; inset-inline:-4px; height:3px; background:var(--accent); border-radius:5px; pointer-events:none }
.article-block[data-drop="before"]::after { top:-5px }
.article-block[data-drop="after"]::after { bottom:-5px }
.article-block img[hidden] { display:none }
.article-block img:not([hidden]) { display:block; max-width:100%; max-height:430px; width:auto; height:auto; margin:10px auto; object-fit:contain; border-radius:7px }
.article-block textarea { display:block; field-sizing:content; width:100%; min-height:50px; padding:10px 0; line-height:1.95; border:0; background:transparent; resize:vertical; font-size:17px }
.article-block:only-child textarea { min-height:clamp(172px,26vh,330px) }
.article-block textarea.heading { min-height:48px; font-size:20px; font-weight:700 }
.article-image-tools { padding:8px }
.article-image-tools input:not([type="file"]) { flex:1; min-width:120px; border:0; background:transparent; border-bottom:1px solid var(--border) }
.composer-actions { display:flex; align-items:center; gap:4px; color:var(--muted); border-top:1px solid #eae5de; border-bottom:1px solid #eae5de; padding:5px 0 }
.block-tools { display:flex; gap:2px; align-items:center; justify-content:flex-end; min-height:34px; opacity:0 }
.article-block:is(:hover,:focus-within) .block-tools,.article-paper[data-dragging] .block-tools { opacity:1 }
@media (hover:none) { .article-block .block-tools { opacity:1 } }
.block-grip { display:grid; margin-right:auto; place-items:center; width:30px; height:30px; border:1px solid #eee9e1; border-radius:6px; background:#faf9f6; cursor:grab; color:var(--muted); user-select:none }
.block-grip:hover,.block-grip:focus-visible { border-color:#e4d8ce; background:#f5eee8; color:var(--accent-deep) }
.block-grip:active { cursor:grabbing }
.article-tool,.article-file { position:relative; display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:6px; background:transparent; color:#625c54; font-size:19px; line-height:1 }
.article-file input { position:absolute; inset:0; width:100%; height:100%; min-height:0; opacity:0; cursor:pointer; padding:0 }
.article-tool:hover,.article-file:hover,.article-file:focus-within { background:var(--rose); color:var(--accent-deep) }
.article-file:focus-within { outline:2px solid var(--accent) }
.article-drop-zone { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:76px; margin-top:8px; color:#625c54; font-size:13px; background:transparent; border:0; border-top:1px dashed #dcd5ca }
.article-drop-zone span { font-size:19px }
.article-drop-zone:hover,.article-paper[data-dragging] .article-drop-zone { color:var(--accent-deep); background:var(--rose); border-color:#c48175 }
[data-composer-status]:empty,[data-publish-status]:empty { display:none }
.article-publishing { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px 12px; position:sticky; bottom:0; z-index:4; padding:9px clamp(16px,4vw,54px); background:#fcfbf9fa; border-top:1px solid #eeebe6 }
.article-publishing .form-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.article-publishing > .form-actions { order:1 }
.article-publishing > details { position:relative; margin-right:auto }
.article-publishing > details > .form-actions { position:absolute; bottom:100%; left:0; width:min(315px,calc(100vw - 32px)); margin-bottom:8px; padding:14px; background:var(--white); border:1px solid var(--border); border-radius:9px; box-shadow:0 9px 25px #34261916 }
.article-publishing [data-publish-status] { order:2; flex-basis:100%; text-align:right }
.article-editor > .inline-delete { width:min(calc(100% - 32px),var(--editor-width)); margin:0 auto; border:none }
.article-publishing summary { display:flex; gap:7px; align-items:center; cursor:pointer; width:fit-content; color:#554d45; font-size:13px; min-height:40px; list-style:none }
.article-publishing summary::-webkit-details-marker { display:none }
.article-publishing > .form-actions .subtle { border-color:transparent; background:transparent }
.article-publishing > .form-actions .subtle:hover { background:#eee9e2 }
.article-publishing details .form-actions { margin-top:8px; align-items:end }
.article-filters { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin:0 0 14px }
.article-pagination { display:flex; align-items:center; justify-content:end; flex-wrap:wrap; gap:14px; margin-top:12px; color:var(--muted) }
.preview-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px clamp(12px,3vw,30px); border-bottom:1px solid var(--border); background:var(--white) }
.preview-controls label { display:flex; align-items:center; gap:8px }
.preview-controls input { width:auto; min-height:0 }
.article-preview:has(.preview-controls input:checked) .inner-page { width:min(calc(100% - 16px),390px) }
.article-preview:has(.preview-controls input:checked) .detail-body { padding:18px }
.article-preview:has(.preview-controls input:checked) .detail h1 { font-size:28px }
.editor { max-width:800px }
.editor-cover { display:flex; gap:12px; align-items:center }
.tiny-cover { width:90px; height:64px; object-fit:cover; border-radius:6px }
.inline-label { display:flex; align-items:center; gap:8px; min-height:44px }
.inline-label input { width:16px; min-height:auto; accent-color:var(--accent) }
.table-wrap { width:100%; overflow:auto }
table { border-collapse:collapse; width:100%; font-size:14px; overflow-wrap:anywhere; min-width:490px }
td,th { padding:9px 10px; text-align:left; vertical-align:middle; border-bottom:1px solid var(--border) }
th { white-space:nowrap; background:#f6f3eb; color:#585750 }
td:last-child { min-width:100px }
td form { display:inline }
td a,.plain-button { display:inline-flex; align-items:center; margin-right:8px; min-height:41px; font-size:14px; color:var(--accent); background:none; border:0; padding:0 }
td a:hover,.plain-button:hover { text-decoration:underline }
.inline-delete { display:flex; justify-content:flex-end; border-top:1px solid var(--border); margin-top:20px }
@media(max-width:1100px) {
  .frame { width:calc(100% - 52px) }
  .header-inner nav { gap:17px }
}
@media(max-width:855px) {
  .header-inner { min-height:67px }
  .nav-toggle { display:grid; place-items:center }
  .header-inner nav { display:none; position:absolute; top:100%; left:0; right:0; padding:9px 26px 14px; border-bottom:1px solid var(--border); background:var(--white); grid-template-columns:repeat(4,1fr); gap:7px }
  .header-inner nav.open { display:grid }
  .header-inner nav a.active::after { bottom:3px }
  .header-inner nav .join-link { margin-left:0 }
  .card-grid { gap:12px }
  .card-body { padding-inline:12px }
  .admin-layout { grid-template-columns:1fr }
  .admin-sidebar { position:static; min-height:auto; border-right:0; border-bottom:1px solid var(--border) }
  .admin-sidebar nav { display:flex; flex-wrap:wrap }
  .admin-sidebar .brand { margin-bottom:9px }
  .site-link { margin-top:5px }
}
@media(max-width:580px) {
  .frame { width:calc(100% - 30px) }
  .header-inner nav { padding-inline:15px; grid-template-columns:repeat(2,1fr) }
  .header-inner nav a { justify-content:flex-start; padding-left:10px }
  .header-inner nav a.active::after { bottom:9px; left:10px; width:12px }
  .content-section { margin-top:32px }
  .section-title h2 { font-size:28px }
  .section-title { margin-bottom:12px }
  .card-grid { grid-template-columns:1fr }
  .card-grid:has(.product-card) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px }
  .product-card .card-body { padding:10px }
  .product-card .card-body h3 { font-size:16px }
  .product-card .price-stock { gap:0 8px }
  .product-card .price-stock strong { font-size:20px }
  .product-card .price-stock span { font-size:12px }
  .news-band,.borrow-layout,.product-detail { grid-template-columns:1fr }
  .news-band { margin-bottom:32px }
  .footer-main { display:grid; padding:15px 0 4px }
  .footer-main nav { gap:0 14px }
  .page-hero { padding:23px 18px; margin-bottom:16px; gap:10px }
  .page-icon { width:60px; height:60px }
  .page-icon svg { width:35px; height:35px }
  .page-hero p,.lead { font-size:14px }
  .inner-page { padding:17px 0 35px }
  .detail-body,.info-panel { padding:19px }
  .equipment-card img,.equipment-card .cover { width:94px }
  .form-row.three-fields { grid-template-columns:1fr }
  .access-panel { padding:20px }
  .admin-content { padding:17px 12px }
  .admin-sidebar { padding:12px }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition:none !important }
}


.loans { --accent:#a4112d; --border:#edd2d8; color:#391921; padding-top:36px }
.loans h1,.borrow-form h2 { font-family:var(--display); color:#78142a; border-left:5px solid var(--accent); padding-left:16px; line-height:1.1 }
.loans h1 { font-size:clamp(32px,4vw,52px); margin:0 0 23px }
.loan-tabs { display:flex; border-bottom:2px solid var(--accent); gap:5px; margin-bottom:24px }
.loan-tabs a { display:grid; place-items:center; min-height:46px; padding:0 32px; color:#80172c; font-weight:700; border:1px solid var(--border); border-bottom:0; border-radius:8px 8px 0 0 }
.loan-tabs a[aria-current] { color:white; background:var(--accent); border-color:var(--accent) }
.loans .borrow-layout { grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr); gap:22px }
.loan-list,.borrow-form { border:1px solid var(--border); border-radius:12px; min-width:0 }
.loan-list { padding:8px }
.loan-list ul { display:grid; grid-template-columns:minmax(0,1fr); margin:0; padding:0; list-style:none }
.loan-list li { min-width:0 }
.loan-row { display:grid; grid-template-columns:56px minmax(0,1fr) auto; align-items:center; gap:18px; padding:17px 20px; color:#7c172b; border-bottom:1px solid #f0dce0; min-height:75px }
.loan-list li:last-child .loan-row { border:0 }
.loan-row[aria-current] { background:#fcebf0; border-radius:8px; border-color:transparent }
a.loan-row:hover { background:#fff3f6 }
.loan-row strong { font-size:clamp(17px,1.6vw,22px); font-family:var(--display); overflow-wrap:anywhere }
.loan-row>span { font-size:16px; font-weight:600 }
.loan-row.unavailable { color:#685e61 }
.loan-img { width:46px; height:42px; object-fit:cover; border-radius:5px }
.borrow-form { padding:22px; scroll-margin-top:14px }
.borrow-form h2 { font-size:28px; margin-bottom:18px }
.loan-selection { display:flex; flex-wrap:wrap; align-items:baseline; gap:14px; background:#fcebf0; color:#79172a; padding:11px 15px; border-radius:6px }
.borrow-form form { gap:13px }
.borrow-form label { grid-template-columns:88px minmax(0,1fr); align-items:baseline; font-weight:550 }
.borrow-form input,.borrow-form textarea { border-color:var(--border) }
.borrow-form .button { width:100%; margin-top:4px }
@media(max-width:760px) {
  .loans .borrow-layout { grid-template-columns:1fr; gap:18px }
  .loan-tabs a { flex:1; padding-inline:6px }
  .loan-row { min-height:64px; padding:12px 13px; grid-template-columns:35px minmax(0,1fr) auto; gap:12px }
  .loan-row svg,.loan-img { width:29px; height:29px }
  .borrow-form { padding:17px }
}

.contact-panel { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:24px 44px }
.contact-panel .prose a { color:var(--accent); text-decoration:underline; text-underline-offset:4px }
.contact-panel figure { margin:0; text-align:center }
.contact-panel figure img { width:224px; height:auto; margin:0 auto }
.contact-panel figcaption { color:var(--muted); font-size:13px }
@media(max-width:580px) { .contact-panel { grid-template-columns:1fr } }

@media(max-width:855px) {
  .site-header .header-inner { min-height:70px }
  .site-header nav { margin-left:0; max-width:none; background:#9b192c; gap:6px }
  .site-header nav a { font-size:16px }
}
@media(max-width:660px) {
  .showcase-track { grid-auto-columns:88% }
  .book-feature { display:flex; flex-direction:column; align-items:stretch; margin:25px 0 44px }
  .feature-photo { align-self:flex-end; width:94%; aspect-ratio:1.35 }
  .feature-story { align-self:flex-start; width:min(92%,420px); margin-top:-36px; padding:20px 18px 8px }
  .feature-label::after { margin:9px 0 12px }
  .feature-story h1 { font-size:clamp(29px,7.2vw,39px) }
  .feature-intro { margin:10px 0 }
}

.inbox { position:relative }
.inbox summary { list-style:none; cursor:pointer; position:relative; display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--border); border-radius:8px; background:white; color:var(--ink) }
.inbox summary::-webkit-details-marker { display:none }
.inbox summary b { position:absolute; top:4px; right:4px; min-width:16px; height:16px; padding:0 4px; border-radius:99px; background:var(--accent); color:white; font-size:10px; line-height:16px; text-align:center }
.inbox-panel { position:absolute; right:0; top:48px; z-index:8; width:min(340px,calc(100vw - 24px)); display:grid; background:white; border:1px solid var(--border); border-radius:12px; box-shadow:0 12px 32px #49301d18; overflow:hidden }
.inbox-panel a { display:grid; gap:2px; padding:12px 14px; border-bottom:1px solid var(--border); text-align:left }
.inbox-panel a:last-child { border-bottom:0 }
.inbox-panel a.unread { background:var(--rose) }
.inbox-panel strong { font-size:14px }
.inbox-panel span,.inbox-panel p { color:var(--muted); font-size:13px; font-weight:500 }
.inbox-panel p { padding:16px }
.inbox-banner { display:grid; gap:8px; margin-bottom:14px }
.inbox-banner a { display:grid; gap:2px; padding:12px 14px; border:1px solid #eabdb3; border-radius:10px; background:var(--rose); color:var(--accent-deep) }
.inbox-banner span { font-weight:500 }
.duty-page { display:grid; gap:14px }
.duty-hero { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:flex-start }
.duty-hero > div { flex:1; min-width:min(100%,220px) }
.duty-hero h2 { font:800 clamp(26px,3vw,36px)/1.25 var(--display); margin:4px 0 }
.duty-hero p { color:var(--muted) }
.duty-note { white-space:pre-wrap; color:var(--ink) !important; margin-top:8px }
.duty-wait { color:var(--muted) }
.duty-progress { display:grid; gap:8px }
.duty-progress b { font-size:28px; margin-right:8px }
.duty-bar { height:8px; border-radius:99px; background:#f1eee7; overflow:hidden }
.duty-bar i { display:block; height:100%; background:var(--accent) }
.duty-form { max-width:720px; gap:12px }
.duty-q { border:1px solid var(--border); border-radius:12px; padding:14px 16px; background:white }
.duty-q h3 { display:flex; flex-wrap:wrap; gap:8px; align-items:baseline; margin-bottom:8px; font-size:16px }
.duty-q h3 span { color:var(--accent); font-variant-numeric:tabular-nums }
.duty-q h3 small { color:var(--muted); font-weight:600 }
.duty-options { display:grid; gap:4px }
.duty-options label,.duty-adjust .duty-options label { display:flex; align-items:center; gap:8px; min-height:36px; font-weight:600 }
.duty-options input { width:18px; height:18px; min-height:0; flex:none; accent-color:var(--accent) }
.duty-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 16px }
.duty-answer { display:grid; gap:6px }
.duty-answer header { display:flex; justify-content:space-between; gap:8px; align-items:center }
.duty-answer header span,.duty-answer small { color:var(--muted); font-weight:600 }
.duty-answer ul,.duty-loads { display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none }
.duty-answer li,.duty-loads li { padding:2px 8px; border-radius:99px; background:#f6f3eb; font-size:13px }
.duty-loads { margin-top:12px }
.duty-loads li { display:flex; gap:8px }
.duty-remark { white-space:pre-wrap }
.duty-mine { margin-bottom:10px; font-weight:700 }
.roster { width:100%; min-width:760px; table-layout:fixed; font-size:13px }
.roster td,.roster th { min-width:0; padding:8px 6px }
.roster thead th:first-child,.roster tbody th { position:sticky; left:0; z-index:1; background:#f6f3eb }
.roster tbody th { background:white }
.roster td span { display:block }
.roster td small { display:block; color:var(--accent-deep) }
.roster .me { color:var(--accent-deep); font-weight:800 }
.roster td i { display:inline-block; margin-left:4px; font-style:normal; color:var(--green); font-size:12px }
.roster-short { background:#fdf3f0 }
.roster-off { color:var(--muted); background:#faf9f6 }
.duty-tools { display:grid; gap:12px }
.duty-tools form { align-items:end }
.duty-adjust { margin-top:8px }
@media(max-width:580px) {
  .duty-grid { grid-template-columns:1fr }
  .duty-hero h2 { font-size:26px }
}
.presence { display:grid; gap:0; margin:0; padding:0; list-style:none }
.presence li { display:grid; grid-template-columns:10px minmax(0,1fr); gap:4px 10px; align-items:center; padding:10px 0; border-bottom:1px solid var(--border) }
.presence li:last-child { border-bottom:0 }
.presence i { width:8px; height:8px; border-radius:99px; background:#c8c4bb; grid-row:span 2 }
.presence i.on { background:var(--green); box-shadow:0 0 0 3px var(--sage) }
.presence strong { margin-right:8px }
.presence span { color:var(--muted); font-size:13px }
.activity-feed ul { display:grid; gap:10px; margin:0; padding:0; list-style:none }
.activity-feed li { display:grid; grid-template-columns:6.5em minmax(0,1fr); gap:8px; align-items:baseline }
.activity-feed time,.activity-feed li span { color:var(--muted); font-size:13px }
.account-pass { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:14px }
.import-notes { margin:8px 0 0; padding-left:18px; color:var(--muted) }
.admin-panel-title .form-actions { display:flex; flex-wrap:wrap; gap:8px; margin:0 }
