:root { --ink:#172c45; --muted:#63758b; --green:#0867cf; --lime:#e5f0ff; --paper:#f5f8fc; --line:#d8e3f0; --coral:#dd6c4b; --white:#fff; }
* { box-sizing:border-box; letter-spacing:0; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:'Noto Sans SC','Microsoft YaHei',sans-serif; font-size:14px; }
a { color:inherit; text-decoration:none; }
button,input,textarea,select { font:inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible { outline:3px solid var(--coral); outline-offset:4px; }
svg { width:20px; height:20px; flex-shrink:0; stroke-width:1.7; }
.site-header { height:92px; padding:0 5%; display:flex; align-items:center; justify-content:space-between; background:#fff; border-bottom:1px solid var(--line); gap:24px; }
.brand { display:flex; align-items:center; gap:12px; font-size:23px; font-weight:800; line-height:1.25; white-space:nowrap; }
.brand small { display:block; font-size:9px; font-weight:500; margin-top:5px; }
.brand-mark { background:var(--green); color:var(--lime); width:45px; height:45px; display:grid; place-items:center; border-radius:6px; }
.brand-mark svg { width:30px; height:30px; }
.brand-mark:has(img) { background:#fff; }
.brand-mark img { width:45px; height:45px; object-fit:contain; border-radius:50%; }
.site-header nav { display:flex; align-items:center; gap:35px; }
.site-header nav a { display:flex; align-items:center; gap:8px; color:var(--muted); padding:15px 0; }
.site-header nav a:hover,.site-header nav a.active { color:var(--green); }
.local-indicator { display:flex; align-items:center; gap:7px; font-size:11px; color:var(--muted); }
.local-indicator>span { background:#6b9259; width:6px; height:6px; border-radius:50%; }
.page-shell { max-width:1240px; padding:34px 40px 50px; margin:0 auto; }
.page-heading,.section-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:25px; }
.eyebrow { display:block; font-size:10px; font-weight:700; color:var(--green); margin-bottom:9px; }
h1 { font-family:'Noto Serif SC','STSong',serif; font-size:31px; line-height:1.4; font-weight:700; margin:0; overflow-wrap:anywhere; }
h2 { font-size:20px; font-weight:700; margin:0; }
h3 { font-size:18px; line-height:1.55; font-weight:700; }
.text-link { display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:12px; border:0; background:transparent; padding:0; }
.text-link:hover { color:var(--green); }
.featured { position:relative; height:350px; overflow:hidden; background:#30483c; margin-bottom:25px; }
.featured-image { width:100%; height:100%; object-fit:cover; object-position:center 53%; }
.featured::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(8,30,20,.78),rgba(8,30,20,.35) 50%,transparent 80%); }
.featured-content { position:absolute; inset:0; padding:35px 42px; z-index:1; color:#fff; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.featured h2 { font-family:'Noto Serif SC','STSong',serif; font-size:32px; max-width:75%; margin:14px 0 12px; line-height:1.5; }
.featured p { margin:0; max-width:75%; color:#f0f4ed; }
.pill { display:inline-block; font-size:10px; padding:5px 9px; border:1px solid rgba(255,255,255,.45); border-radius:3px; }
.featured-meta { display:flex; gap:23px; margin:18px 0 23px; font-size:11px; }
.featured-meta span { display:flex; align-items:center; gap:6px; }
.featured-meta svg { width:15px; height:15px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:12px 21px; border:1px solid transparent; border-radius:4px; background:var(--green); color:#fff; font-weight:600; min-height:44px; cursor:pointer; line-height:1.5; }
.button:hover { filter:brightness(.96); color:#fff; }
.button.lime { background:var(--lime); color:var(--ink); font-size:12px; }
.button.secondary { border:1px solid var(--line); background:#fff; color:var(--ink); }
.button:disabled { background:#e0e5df; color:#7b847b; cursor:not-allowed; }
.quick-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin:0 0 38px; }
.quick-links>a { display:flex; gap:16px; align-items:center; padding:22px 18px; border-right:1px solid var(--line); }
.quick-links>a:last-child { border-right:0; }
.quick-links>a>svg:first-child { color:var(--green); width:25px; height:25px; }
.quick-links>a>svg:last-child { margin-left:auto; color:#8c968c; width:17px; }
.quick-links span { display:block; font-weight:700; }
.quick-links small { display:block; margin-top:5px; font-size:10px; font-weight:400; color:var(--muted); }
.section-heading { margin-bottom:20px; }
.section-heading h2 { display:flex; align-items:center; gap:12px; }
.section-heading h2>span { font-family:Georgia,serif; font-size:16px; font-weight:400; color:var(--muted); }
.muted { color:var(--muted); font-size:12px; }
.filter-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:23px; }
.filter-tabs a { color:var(--muted); font-size:12px; padding:8px 13px; border-bottom:2px solid transparent; }
.filter-tabs a.selected { color:var(--green); border-bottom-color:var(--green); font-weight:700; }
.content-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.content-card { background:#fff; border:1px solid var(--line); border-radius:6px; overflow:hidden; min-width:0; }
.card-image { display:block; position:relative; aspect-ratio:1.8; background:#dfe5df; overflow:hidden; }
.card-image img { width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.content-card:hover .card-image img { transform:scale(1.025); }
.image-tag { position:absolute; top:12px; left:12px; font-size:10px; background:#fff; padding:5px 8px; border-radius:3px; }
.card-body { padding:19px 20px 16px; }
.card-topline { display:flex; justify-content:space-between; align-items:center; min-height:19px; }
.category-label { font-size:10px; color:var(--green); font-weight:600; }
.demo-badge { font-size:10px; color:#986047; border:1px solid #e8d7c7; background:#fff8f1; padding:2px 6px; border-radius:2px; white-space:nowrap; }
.card-body h3 { margin:12px 0 9px; font-size:16px; overflow-wrap:anywhere; }
.card-body p { color:var(--muted); font-size:11px; line-height:1.9; min-height:42px; margin-bottom:18px; }
.card-bottom { display:flex; justify-content:space-between; align-items:center; border-top:1px solid #eef0ec; padding-top:12px; color:var(--muted); font-size:10px; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; background:#f1f4ee; border:1px solid transparent; border-radius:4px; color:var(--green); cursor:pointer; }
.site-footer { border-top:1px solid var(--line); padding:25px 5%; display:flex; justify-content:space-between; gap:15px; color:var(--muted); font-size:10px; }
.site-icp { padding:0 20px 24px; text-align:center; color:var(--muted); font-size:12px; }
.empty-state { padding:60px 20px; text-align:center; color:var(--muted); }
.empty-state svg { width:40px; height:40px; margin-bottom:16px; }
.notice,.success-message { padding:15px 18px; background:#edf0e8; border-left:3px solid #afbd9d; color:#526047; font-size:12px; line-height:1.9; margin-bottom:24px; }
.success-message { border-color:#3c815b; background:#e9f6ec; }
.back-link { display:inline-flex; align-items:center; gap:8px; margin-bottom:24px; font-size:12px; color:var(--muted); }
.detail-shell { max-width:980px; }
.detail-cover { height:340px; position:relative; margin-bottom:30px; overflow:hidden; background:#dfe5df; }
.detail-cover>img { width:100%; height:100%; object-fit:cover; }
.detail-cover.group-cover { background:#fff; }
.detail-cover.group-cover>img { object-fit:contain; }
.detail-cover>.pill { position:absolute; left:20px; bottom:20px; color:#fff; background:var(--green); }
.detail-header { display:flex; align-items:flex-start; gap:20px; justify-content:space-between; margin-bottom:24px; }
.detail-header h1 { font-size:28px; }
.lead-copy { margin-top:15px; color:var(--muted); line-height:1.9; font-size:14px; }
.detail-facts { display:flex; flex-wrap:wrap; gap:25px 50px; padding:22px 0; border-block:1px solid var(--line); margin-bottom:30px; }
.detail-facts span { display:block; color:var(--muted); font-size:11px; margin-bottom:9px; }
.detail-facts strong { font-size:14px; }
.detail-description { margin-bottom:30px; }
.detail-description h2 { font-size:18px; margin-bottom:17px; }
.detail-description p { white-space:pre-wrap; line-height:2.2; color:#59655d; }
.preserve-lines { white-space:pre-wrap; }
.detail-cover.race-detail-cover { height:auto; }
.detail-cover.race-detail-cover>img { height:auto; object-fit:contain; display:block; }
.detail-cover.race-detail-cover>.pill { display:none; }
.detail-photo-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin:20px 0; }
.detail-photo-grid img { width:100%; height:180px; object-fit:contain; background:#fff; border:1px solid #d8e3f0; border-radius:8px; }
.action-strip,.contact-line { display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.contact-line { border-top:1px solid var(--line); margin-top:24px; padding-top:20px; }
.admin-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-block:1px solid var(--line); padding:23px 0; margin-bottom:30px; }
.admin-stats>div { padding:0 24px; border-right:1px solid var(--line); }
.admin-stats>div:first-child { padding-left:0; }
.admin-stats>div:last-child { border:0; }
.admin-stats span { display:block; color:var(--muted); font-size:12px; }
.admin-stats strong { display:block; font-size:29px; margin-top:10px; font-family:Georgia,serif; }
.table-scroll { overflow-x:auto; }
.content-table { width:100%; border-collapse:collapse; }
.content-table th { color:var(--muted); font-weight:500; font-size:11px; text-align:left; padding:15px; background:#edf0eb; }
.content-table td { padding:20px 15px; border-bottom:1px solid var(--line); font-size:12px; }
.content-table td:first-child { width:50%; }
.content-table strong { display:block; font-size:13px; margin-bottom:7px; }
.content-table small { display:block; font-size:10px; color:var(--muted); max-width:400px; line-height:1.8; }
.status-dot { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.status-dot::before { content:''; display:block; width:5px; height:5px; background:#b7c0b6; border-radius:50%; }
.status-dot.published::before { background:#488f5e; }
.editor-shell { max-width:900px; }
.auth-shell { max-width:480px; }
.auth-shell .editor-form>.button { margin-top:25px; }
.inline-form { display:inline-block; margin-left:12px; }
.editor-form section { padding:25px 0; border-bottom:1px solid var(--line); }
.editor-form section h2 { font-size:17px; margin-bottom:22px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.form-grid>label { display:flex; flex-direction:column; gap:9px; font-size:12px; font-weight:500; }
.form-grid>.full { grid-column:1/-1; }
.form-grid input:not([type=checkbox]),.form-grid textarea,.form-grid select { width:100%; padding:11px 12px; border:1px solid #ccd5cb; border-radius:4px; background:white; outline:0; color:var(--ink); font-size:13px; }
.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus { border-color:var(--green); box-shadow:0 0 0 3px #23573d15; }
.form-grid small { font-size:10px; color:var(--muted); font-weight:400; line-height:1.9; }
.checkbox-fields { display:flex; gap:24px; align-items:center; padding-top:23px; flex-wrap:wrap; }
.checkbox-fields label { display:flex; gap:8px; align-items:center; font-size:12px; }
.checkbox-fields input { accent-color:var(--green); width:16px; height:16px; }
.editor-form section>p { margin-top:20px; line-height:1.8; }
.editor-actions { display:flex; justify-content:flex-end; gap:12px; margin:25px 0; }
.validation-errors:not(:empty) { padding:15px 20px; color:#a33e2e; background:#fff0e9; margin:20px 0; }
.validation-summary-valid { display:none; }
.delete-form { border-top:1px solid var(--line); padding-top:25px; }
.copy-occurrence-form { padding:0 0 25px; }
.activity-create-links { display:flex; flex-wrap:wrap; gap:20px; margin:20px 0 28px; }
.distance-editor { padding:0; margin:0; border:0; min-width:0; }
.weekday-options { border:0; padding:0; margin:0 0 16px; display:flex; flex-wrap:wrap; gap:12px; }
.weekday-options legend { font-size:12px; margin-bottom:10px; }
.weekday-options label { display:flex; align-items:center; gap:5px; }
.weekday-options input { width:16px; height:16px; }
#weekly-schedule-fields>label { margin-bottom:14px; }
.calendar-year-form { display:flex; align-items:end; gap:12px; margin:30px 0 20px; }
.calendar-year-form label { max-width:150px; }
.holiday-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0; }
@media(max-width:600px) { .holiday-row { grid-template-columns:repeat(2,minmax(0,1fr)); } .holiday-row>label:first-child { grid-column:1/-1; } }
.distance-editor legend { font-size:12px; margin-bottom:12px; float:none; }
.distance-row { display:grid; grid-template-columns:minmax(0,150px) minmax(0,170px) 40px; align-items:end; gap:12px; margin-bottom:10px; font-size:13px; }
.distance-row label { min-width:0; }
.distance-row .icon-button { flex-shrink:0; }
.distance-editor>.button { margin:5px 0 10px; }
.distance-editor>small { display:block; color:var(--muted); font-size:11px; line-height:1.8; }
.activity-period { display:flex; width:260px; max-width:100%; background:#e8ede6; padding:3px; border-radius:4px; margin:22px 0 30px; }
.activity-period a { flex:1; text-align:center; padding:10px; font-size:12px; color:var(--muted); }
.activity-period .selected { background:#fff; color:var(--green); border-radius:3px; font-weight:600; }
.activity-series-section { padding-bottom:30px; margin-bottom:28px; border-bottom:1px solid var(--line); }
.series-pending { color:var(--muted); font-size:12px; padding:16px 0; }
.activity-status { font-size:10px; color:var(--green); }
.activity-status.cancelled { color:#b3513b; }
.distance-tags { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0; }
.distance-tags span { border:1px solid var(--line); border-radius:3px; padding:4px 7px; font-size:11px; color:var(--green); }
.cancelled-notice { background:#fff0e9; border-color:#dd6c4b; color:#a34e36; }
.group-upload-preview { display:block; width:180px; height:180px; object-fit:contain; background:#fff; border:1px solid var(--line); }
.join-shell { max-width:640px; }
.join-open { color:var(--green); font-size:11px; margin-top:30px; }
.join-group-name { margin:12px 0 20px; font-size:23px; overflow-wrap:anywhere; }
.join-qr-frame { width:100%; max-width:320px; height:300px; padding:14px; background:#fff; border:1px solid var(--line); border-radius:4px; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; }
.join-qr-frame img { display:block; width:100%; height:100%; object-fit:contain; }
.join-qr-frame img[hidden] { display:none; }
.join-qr-button { display:flex; max-width:320px; margin:0 auto; background:var(--lime); color:var(--ink); }
.join-description { white-space:pre-wrap; line-height:2; color:var(--muted); font-size:13px; margin:26px 0; overflow-wrap:anywhere; }
.join-contact { margin-top:26px; padding:20px 0; border-top:1px solid var(--line); }
.join-contact summary { font-size:13px; color:var(--muted); cursor:pointer; padding:6px 0; }
.join-contact-value { font-size:17px; color:var(--green); margin:20px 0; overflow-wrap:anywhere; }
.join-contact .muted { margin-top:18px; }
.danger { color:#b3513b; }
.web-admin { --green:#0867cf; --lime:#e7f1ff; background:#f5f8fc; }
.web-admin h1, .web-admin h2, .web-admin .eyebrow { color:#075bbb; }
.web-admin .button { background:#0867cf; color:#fff; border:1px solid #0867cf; border-radius:8px; }
.web-admin .button.secondary { background:#fff; color:#0867cf; border-color:#d8e3f0; }
.web-admin .button:disabled { opacity:.55; cursor:wait; }
.admin-nav { display:flex; flex-wrap:wrap; gap:8px 24px; align-items:center; max-width:1160px; margin:auto; padding:15px 30px; border-bottom:1px solid #d8e3f0; }
.admin-nav a, .admin-nav button { font-size:13px; color:#315476; padding:6px 0; }
.admin-nav a:hover { color:#0867cf; }
.workspace-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:28px; }
.settings-card { display:block; padding:20px; background:#fff; border:1px solid #d8e3f0; border-radius:12px; }
.settings-card strong { display:block; color:#172c45; font-size:16px; }
.settings-card small { display:block; color:#63758b; margin-top:9px; line-height:1.8; }
.web-admin .admin-stats { margin:20px 0; }
.admin-list-tools { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin:28px 0 18px; }
.admin-list-tools form { margin:0; }
.admin-list-tools select { min-width:180px; background:#fff; font-size:17px; font-weight:600; padding:12px; border:1px solid #d8e3f0; border-radius:8px; color:#172c45; }
.admin-content-list, .history-list { display:grid; gap:14px; }
.admin-content-card { display:flex; gap:18px; align-items:center; padding:20px; border:1px solid #d8e3f0; border-radius:12px; background:#fff; }
.admin-card-image { width:100px; height:78px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.admin-card-copy, .admin-content-card>div:first-of-type { flex:1; min-width:0; }
.admin-content-card strong { display:block; color:#172c45; overflow-wrap:anywhere; line-height:1.7; }
.admin-content-card p { margin:6px 0; font-size:12px; color:#63758b; line-height:1.7; }
.admin-content-card small { display:block; color:#63758b; font-size:11px; margin:5px 0; }
.admin-content-card .button { white-space:nowrap; flex-shrink:0; }
.status-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.status-badge { padding:3px 8px; background:#edf2f8; color:#63758b; font-size:11px; border-radius:4px; }
.status-badge.published { background:#e7f5ee; color:#29775c; }
.month-divider { display:flex; gap:14px; align-items:center; margin:22px 0 3px; font-size:18px; font-weight:600; }
.month-divider span { height:1px; background:#d8e3f0; flex:1; }
.button-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.pager { justify-content:center; margin:28px 0; color:#63758b; font-size:13px; }
.image-picker { display:grid; gap:12px; }
.field-label { font-weight:600; }
.image-picker-preview { display:block; width:100%; max-width:480px; height:200px; object-fit:contain; background:#edf2f8; border:1px solid #d8e3f0; border-radius:8px; }
.image-picker-preview[hidden] { display:none; }
.upload-button { position:relative; cursor:pointer; width:fit-content; margin:0!important; font-size:13px; }
.upload-button input[type=file] { position:absolute; opacity:0; width:1px; height:1px; padding:0; overflow:hidden; }
.upload-button:focus-within { outline:3px solid #9cc7ff; outline-offset:3px; }
.field-error { font-size:12px; color:#a54b32; line-height:1.8; }
.gallery-editor { display:flex; flex-wrap:wrap; gap:14px; margin:15px 0; }
.gallery-card { width:180px; padding:10px; border:1px solid #d8e3f0; border-radius:8px; background:#fff; cursor:grab; }
.gallery-card img { width:158px; height:110px; object-fit:cover; border-radius:4px; }
.gallery-card .button-row { gap:12px; margin-top:8px; }
.gallery-card button { font-size:11px; }
.inline-check { display:flex; align-items:center; gap:10px; margin:18px 0; font-size:13px; line-height:1.8; }
.inline-check input { width:auto; }
.web-admin .distance-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px; grid-template-areas:'distance elevation delete' 'track track track'; padding:15px 0; border-bottom:1px solid #d8e3f0; }
.distance-row>label:first-child { grid-area:distance; }.distance-row>label:nth-child(2) { grid-area:elevation; }.distance-row>[data-remove-distance] { grid-area:delete; }
.track-control { grid-area:track; display:flex; gap:12px; align-items:center; flex-wrap:wrap; font-size:12px; }
.admin-map { height:360px; width:100%; border:1px solid #d8e3f0; border-radius:8px; margin-top:15px; }
.admin-map[hidden] { display:none; }
.admin-map .leaflet-control-attribution { font-size:10px; }
.web-admin dialog { width:min(900px,calc(100vw - 36px)); border:1px solid #d8e3f0; border-radius:12px; padding:20px; }
.web-admin dialog::backdrop { background:rgba(20,40,60,.5); }
.web-admin .editor-actions { position:sticky; bottom:12px; z-index:850; display:flex; gap:12px; background:rgba(255,255,255,.97); padding:15px; border:1px solid #d8e3f0; border-radius:10px; box-shadow:0 4px 18px #172c4510; margin:25px 0 12px; }
.web-admin .editor-actions .button { flex:1; text-align:center; justify-content:center; }
.back-to-top { position:fixed;bottom:calc(24px + env(safe-area-inset-bottom));right:18px;z-index:860;box-sizing:border-box;width:44px;min-width:44px;max-width:44px;height:48px;min-height:48px;margin:0;padding:3px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;color:#63758b;border:1px solid #d8e3f0;border-radius:10px;font-size:10px;line-height:1.3;box-shadow:0 3px 12px #172c4514; }
.back-to-top .top-arrow { font-size:16px;line-height:20px; }
.back-to-top.above-dock { bottom:calc(150px + env(safe-area-inset-bottom)); }
.back-to-top[hidden] { display:none; }
.order-card { margin-bottom:12px; cursor:grab; }.drag-handle { color:#63758b; font-size:20px; }.dragging { opacity:.45; }
.history-filter { margin:25px 0; align-items:flex-end; }.history-filter label { display:grid; gap:8px; min-width:160px; font-size:13px; }.history-filter select { padding:12px; border:1px solid #d8e3f0; border-radius:8px; background:#fff; }
.history-delete { margin-top:36px; padding:20px; border:1px solid #efcece; border-radius:10px; background:#fff; }
.web-admin .danger-button { background:#ad3d35; border-color:#ad3d35; }
@media(max-width:600px) { .workspace-shortcuts{grid-template-columns:1fr}.admin-nav{padding:12px 20px;gap:8px 18px}.admin-content-card{padding:14px;gap:12px}.admin-card-image{width:62px;height:62px}.admin-content-card p{display:none}.admin-content-card .button{padding:9px 10px;font-size:12px}.admin-content-card strong{font-size:14px}.web-admin .editor-actions{bottom:6px;padding:10px}.back-to-top{right:18px}.gallery-card{width:145px}.gallery-card img{width:123px;height:90px}.admin-map{height:300px}.order-card{flex-wrap:wrap} }
.toast-message { position:fixed; bottom:30px; left:50%; transform:translateX(-50%); max-width:calc(100% - 40px); padding:12px 20px; background:var(--ink); color:white; border-radius:4px; font-size:12px; z-index:20; }
.broken-image { opacity:.3; }
.buy-admin [hidden] { display:none!important; }
.buy-admin .filter-tabs { flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.buy-admin .buy-config-product,.buy-admin .buy-record-card { background:white;border:1px solid var(--line);border-radius:12px;padding:22px;margin:20px 0;overflow-wrap:anywhere; }
.buy-admin .buy-config-field { border-top:1px solid var(--line);padding:18px 0;margin:15px 0;display:grid;gap:12px; }
.buy-admin .buy-config-field>label { display:grid;gap:8px; }
.buy-admin input:not([type=checkbox]):not([type=hidden]),.buy-admin select,.buy-admin textarea { width:100%;box-sizing:border-box;border:1px solid #d2dff0;border-radius:7px;padding:11px;background:white;color:#172c45;font:inherit;min-width:0; }
.buy-admin label.checkbox-fields { display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;padding-top:0; }
.buy-admin .buy-option { display:flex;align-items:center;gap:10px;min-width:0; }
.buy-admin .buy-option>input { flex:1;min-width:0; }
.buy-admin .buy-option label { display:flex;align-items:center;gap:6px; }
.buy-admin input[type=checkbox] { width:18px;height:18px; }
.buy-admin .buy-summary-row { display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--line); }
.buy-admin dialog { width:min(680px,calc(100% - 28px));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:24px; }
.buy-admin dialog::backdrop { background:#172c4580; }
.buy-admin dialog label { display:grid;gap:8px;margin:12px 0; }
.buy-admin .buy-record-card p { white-space:pre-wrap; }
.buy-admin .validation-summary-errors:not([hidden]) { padding:16px;background:#fff0ed;margin:15px 0; }
.buy-admin [aria-busy=true] { cursor:progress; }
@media(max-width:600px) { .buy-admin .buy-config-product,.buy-admin .buy-record-card{padding:15px}.buy-admin .button-row{flex-wrap:wrap}.buy-admin .filter-tabs{display:flex}.buy-admin .button{white-space:normal}.buy-admin dialog{padding:16px} }
@media(min-width:768px) { .content-card { animation:reveal .35s ease both; }.content-card:nth-child(2) { animation-delay:.05s; }.content-card:nth-child(3) { animation-delay:.1s; } }
@keyframes reveal { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:900px) { .site-header { padding:0 25px; }.local-indicator { display:none; }.content-grid { gap:16px; grid-template-columns:repeat(2,minmax(0,1fr)); }.featured h2 { max-width:90%; }.site-header nav { gap:25px; } }
@media(max-width:600px) { .site-header { height:auto; min-height:80px; padding:16px 20px; gap:15px; flex-wrap:wrap; }.brand { font-size:21px; }.brand-mark { width:39px; height:39px; }.site-header nav { width:100%; justify-content:space-between; gap:10px; border-top:1px solid var(--line); padding-top:6px; }.site-header nav a { padding:10px 0 2px; font-size:12px; gap:6px; }.site-header nav svg { width:17px; height:17px; }.page-shell { padding:25px 20px 35px; }h1 { font-size:27px; }.featured { height:360px; }.featured-content { padding:26px 24px; justify-content:flex-end; }.featured::after { background:linear-gradient(0deg,rgba(8,30,20,.85),rgba(8,30,20,.05)); }.featured h2 { font-size:26px; max-width:100%; }.featured p { max-width:100%; font-size:12px; }.featured-meta { flex-direction:column; gap:8px; margin:15px 0 20px; }.featured-image { object-position:64% center; }.quick-links { margin-bottom:28px; }.quick-links>a { padding:17px 5px; flex-direction:column; gap:8px; text-align:center; }.quick-links>a>svg:last-child { display:none; }.quick-links small { font-size:9px; }.quick-links span { font-size:12px; }.section-heading .muted { display:none; }.filter-tabs { gap:0; }.filter-tabs a { padding:8px 10px; font-size:11px; }.content-grid { grid-template-columns:minmax(0,1fr); gap:20px; }.card-image { aspect-ratio:2; }.card-body h3 { font-size:17px; }.card-body p { min-height:0; font-size:12px; }.site-footer { flex-direction:column; padding:22px 20px; }.detail-cover { height:235px; }.detail-header h1 { font-size:25px; }.detail-header { flex-direction:column; gap:5px; }.detail-facts { gap:20px; }.admin-stats>div { padding:0 12px; }.admin-stats span { font-size:10px; }.admin-stats strong { font-size:25px; }.content-table { min-width:650px; }.form-grid { grid-template-columns:minmax(0,1fr); }.checkbox-fields { padding-top:0; }.page-heading>.button { font-size:12px; padding:10px 13px; }.page-heading { gap:12px; }.page-heading h1 { font-size:26px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }

.buy-admin .admin-stats { grid-template-columns:repeat(auto-fit,minmax(100px,1fr)); gap:12px; }
.buy-admin .admin-stats > div { padding:0 12px; }
