* { box-sizing: border-box; }
:root { --ink: #21372c; --muted: #56695c; --green: #26583f; --paper: #fffef9; --base: #f1f3eb; --line: #d8dfd1; --wash: #e8efdf; --bronze: #734c15; --sand: #f4e7ce; font-size: 16px; }
html.large { font-size: 19px; }
body { margin: 0; color: var(--ink); background: var(--base); font: 1.05rem/1.55 "PingFang SC","Microsoft YaHei UI","Noto Sans CJK SC",system-ui,sans-serif; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.wrap { max-width: 640px; padding: 0 16px; margin: auto; }
.brand { background: var(--paper); border-bottom: 1px solid var(--line); }
.brand-line, .brand-line>span, .account, .viewer-bar, .eyebrow { display: flex; align-items: center; gap: 10px; }
.brand-line, .account, .viewer-bar { justify-content: space-between; }
.brand-line { min-height: 52px; }
.brand-line>span { color: var(--green); font-weight: 730; letter-spacing: .04em; }
.weave { width: 21px; height: 21px; border-radius: 4px; background-color: var(--green); background-image: repeating-linear-gradient(90deg,transparent 0 4px,#fff8 4px 5px),repeating-linear-gradient(0deg,transparent 0 4px,#fff8 4px 5px); }
.account { border-bottom: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
h1,h2,h3,p,dl,dd,ol { margin: 0; }
h1 { font-size: 1.55rem; line-height: 1.32; letter-spacing: -.025em; }
h2 { font-size: 1.12rem; line-height: 1.45; }
button, input, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button { min-height: 44px; cursor: pointer; border: 0; background: transparent; color: var(--green); font-weight: 650; }
button:disabled { opacity: .54; cursor: default; }
a { color: var(--green); text-underline-offset: .18em; }
button:focus-visible, a:focus-visible, input:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 3px solid #527e53; outline-offset: 2px; }
.panel { margin: 10px 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.login { max-width: 440px; margin: 28px auto; padding: 24px; }
.kicker { color: var(--muted); font-size: .84rem; font-weight: 620; letter-spacing: .05em; margin-bottom: 5px; }
.sub, #hero-meta, .row small, .file small, .event-meta, #image-info, dt { color: var(--muted); font-size: .88rem; }
.login .sub, #confirm-number, #confirm-next { margin-top: 7px; }
form label { display: block; margin: 18px 0 5px; font-weight: 630; }
input:not([type=checkbox]),textarea { width: 100%; border: 1px solid #b9c7b5; border-radius: 8px; padding: 10px 12px; background: white; color: #203728; font-size: max(16px,1rem); }
.check { display: flex; align-items: center; min-height: 44px; gap: 9px; margin: 9px 0; font-size: .9rem; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.primary,.secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; border-radius: 9px; padding: 9px 14px; }
.primary { background: var(--green); color: white; }
.secondary { background: var(--paper); border: 1px solid #adbdac; }
.full, .login .primary { width: 100%; }
#notice:not(:empty) { margin: 12px 0; padding: 10px 14px; color: var(--ink); background: var(--wash); border-radius: 9px; }
.page-title { padding: 22px 2px 6px; }
.tabs { display: flex; align-items: stretch; gap: 8px; border-bottom: 1px solid var(--line); margin: 8px 0 12px; }
.tabs button { padding: 4px; flex: 1; font-size: .94rem; border-bottom: 3px solid transparent; color: var(--muted); }
.tabs button[aria-pressed=true] { border-color: var(--green); color: var(--green); }
.row { display: block; padding: 14px 16px; text-decoration: none; }
.row small, .row strong, .file small, .file strong { display: block; }
.back { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 0; }
.hero h1 { font-size: 1.38rem; margin: 7px 0 2px; }
.eyebrow { flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.stamp { color: var(--bronze); background: var(--sand); padding: 1px 8px; border-radius: 5px; }
.hero .sub { margin-top: 7px; }
.facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; margin-top: 12px; }
dd, .long-text, .event-note { white-space: pre-wrap; }
.requirements>div, details, .file, .event { border-top: 1px solid var(--line); padding: 11px 0; }
.requirements { margin-top: 9px; }
summary { min-height: 44px; cursor: pointer; padding-top: 8px; font-weight: 630; }
.photo { position: relative; display: block; width: 100%; min-height: 52px; overflow: hidden; border-radius: 9px; background: var(--wash); padding: 0; }
.photo img { display: block; width: 100%; height: 174px; object-fit: cover; }
.photo span { position: absolute; bottom: 6px; right: 6px; color: white; background: #21372ce8; padding: 2px 6px; font-size: .76rem; border-radius: 5px; }
.thumb .photo, .thumb .photo img { width: 82px; height: 82px; }
#hero-file:empty { display: none; }
#album { margin-top: 10px; }
.file strong { font-size: .94rem; margin-top: 5px; }
#events { list-style: none; padding: 0; margin-top: 10px; }
.dock { position: sticky; bottom: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: 12px 14px max(12px,env(safe-area-inset-bottom)); margin-top: 12px; font-size: .94rem; }
.actions { display: flex; align-items: stretch; gap: 10px; margin: 7px 0 0; }
.actions>* { flex: 1; }
#problem a { align-self: center; text-align: center; }
dialog { width: min(94%,480px); max-height: 90vh; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(17,34,25,.72); }
dialog:not([open]) { display: none; }
#confirm-error:not(:empty) { color: #8b3729; margin: 6px 0; }
.doc-number { font-weight: 650; }
#viewport { max-height: 62vh; overflow: auto; overscroll-behavior: contain; background: var(--base); border-radius: 7px; }
#full-image { display: block; width: 100%; max-width: none; height: auto; }
#viewport.enlarged #full-image { width: 200%; }
@media(max-width:380px) { .wrap { padding: 0 11px; } .panel { padding: 13px; } .thumb .photo,.thumb .photo img { width: 64px; height: 70px; } }
@media(min-width:650px) { .wrap { padding: 0 24px; } .panel { padding: 21px; } .login { margin-top: 45px; } }
