:root {
  color-scheme: light;
  --ink:var(--ui-ink);--sub:var(--ui-muted);--coral:var(--ui-accent-bright);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  color:var(--ink);background:#fff;font-synthesis:none;-webkit-text-size-adjust:100%;
}
*,*::before,*::after {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:84px}
body {margin:0;font-size:16px;line-height:1.5}
body,h1,h2,h3,p,figure {margin:0}
a {color:inherit;text-decoration:none}
button {font:inherit;color:inherit;cursor:pointer}
img {display:block;max-width:100%}
a:focus-visible,button:focus-visible,.viewer-content:focus-visible {outline:3px solid #c0193c;outline-offset:3px}
.skip {position:fixed;top:8px;left:15px;z-index:100;color:var(--ink);background:white;transform:translateY(-160%);padding:11px 17px;border-radius:9px}
.skip:focus {transform:none}
.site-bar {
  position:fixed;top:16px;left:16px;right:16px;z-index:20;
  min-height:64px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;
  padding:8px 12px 8px 20px;background:rgba(255,255,255,.78);
  border:1px solid rgba(92,51,52,.11);border-radius:17px;
  box-shadow:0 3px 18px rgba(81,50,49,.035);
  backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)
}
.site-bar.raised {background:rgba(255,255,255,.92);box-shadow:0 6px 26px rgba(81,50,49,.07)}
.brand {display:inline-flex;align-items:center;gap:9px;width:fit-content;font-family:Inter,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;line-height:1.12;white-space:nowrap}
.brand b {font-weight:740;letter-spacing:-.04em;font-size:1.05rem}
.brand img {width:36px;height:36px;border-radius:10px}
.top-links {display:flex;align-items:center;gap:clamp(13px,1.55vw,28px);font-size:.9rem;color:var(--sub)}
.top-links a,.sign-link {min-height:40px;display:inline-flex;align-items:center;padding:0 3px}
.top-links a:hover,.sign-link:hover {color:var(--ui-accent-ink)}
.site-footer a:hover {color:var(--ui-accent-ink)}.site-footer a:focus-visible{outline-color:var(--ui-focus)}
.top-access {display:flex;align-items:center;justify-content:flex-end;gap:17px;font-size:.9rem;white-space:nowrap}
.register-link {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:33px;padding:6px 13px;border-radius:9px;background:var(--ui-accent);color:white;font-size:.85rem;font-weight:650;box-shadow:0 4px 12px #f3485633;transition:background-color .15s}
.register-link:hover {background:var(--ui-accent-hover)}
.register-link svg {width:15px;height:15px;flex:none}
.site-footer {position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(118deg,#f7e4e2 0%,#faeae7 58%,#fff4ee 100%);color:var(--ui-heading);border-top:1px solid #e5c7c6}
.footer-inner {max-width:1280px;padding:54px 32px 22px;margin:0 auto;position:relative}
.footer-top {position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:32px;min-height:171px}
.footer-name {margin-bottom:9px;color:var(--ui-heading)}.footer-name img {width:32px;height:32px}.footer-name b {font-size:1.1rem}
.footer-intro,.footer-copy {font-size:.84rem}.footer-copy {line-height:1.85;margin-top:20px;color:var(--sub)}
.footer-tiles {display:flex;align-items:flex-start;gap:24px;text-align:center}
.footer-tiles a {display:block}.footer-media {width:138px;height:138px;border-radius:10px;border:1px solid #e5ceca;background:white;padding:5px;overflow:hidden;display:grid;place-items:center}
.footer-media img {width:100%;height:100%;min-height:0;object-fit:contain}.footer-media.poster img {object-fit:cover;object-position:50% 0}
.footer-tiles span:last-child {display:block;font-size:.8rem;margin-top:6px}
.footer-watermark {position:absolute;z-index:-1;bottom:28px;left:50%;transform:translateX(-50%);font:800 clamp(84px,12vw,165px)/.9 "Helvetica Neue",Arial,sans-serif;letter-spacing:-.078em;color:rgba(144,58,67,.07);user-select:none;white-space:nowrap}
.footer-legal {position:relative;border-top:1px solid #dfc6c3;margin-top:16px;padding-top:17px;display:flex;flex-wrap:wrap;gap:8px 24px;color:var(--sub);font-size:.75rem}
#viewer {width:min(870px,calc(100% - 32px));max-width:100%;max-height:90vh;max-height:90svh;margin:auto;padding:0;border:0;border-radius:17px;background:var(--ui-surface);color:var(--ink);box-shadow:0 20px 100px #2e171b46;overflow:hidden}
#viewer[open] {display:flex;flex-direction:column}
#viewer::backdrop {background:rgba(36,27,28,.71)}
body:has(#viewer[open]) {overflow:hidden}
.viewer-header {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 21px;border-bottom:1px solid var(--ui-border);flex:none}
.viewer-header h2 {font-size:1.2rem}.close,.viewer-options button {border:1px solid var(--ui-border);background:white;border-radius:8px;min-height:44px;padding:6px 14px;font-size:.9rem}
.close:hover,.viewer-options button:hover {border-color:#e67982}
.viewer-options {display:flex;gap:8px;padding:8px 18px;flex:none}
.viewer-options[hidden],.viewer-content [hidden] {display:none}.viewer-options [aria-pressed=true] {color:var(--ui-selected-ink);background:var(--ui-selected-soft);border-color:var(--ui-accent-line)}
.viewer-content {overflow:auto;overscroll-behavior:contain;min-height:0;background:var(--ui-canvas);text-align:center;padding:8px}
.viewer-content img {margin:auto;width:auto;height:auto;max-width:100%;max-height:65svh;object-fit:contain}.viewer-content[data-long] img {width:100%;height:auto;max-height:none}.viewer-content[data-size=mobile] img {max-width:min(100%,400px)}
.viewer-play {position:relative;display:block;max-width:100%;margin:auto;padding:0;border:0;background:transparent;border-radius:6px;overflow:hidden}
.viewer-content video {display:block;max-width:100%;max-height:65svh;margin:auto;background:#19191b}
.viewer-error {padding:12px;color:var(--ink)}.viewer-error a {color:var(--ui-accent);text-decoration:underline}

#viewer:has([data-size=contact]) {width:min(392px,calc(100% - 24px))}
.viewer-content[data-size=contact] {padding:14px;background:#fff}
.viewer-content[data-size=contact] img {max-height:52svh;width:auto;-webkit-touch-callout:default}
.viewer-save {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;margin:8px auto 0;border-radius:8px;background:var(--ui-selected-soft);color:var(--ui-selected-ink);font-size:.9rem;font-weight:600}

@media(max-width:820px){
 .top-links{display:none}.site-bar{grid-template-columns:1fr auto}
}
@media(max-width:690px){
 html{scroll-padding-top:71px}.site-bar{top:8px;left:8px;right:8px;min-height:54px;padding:6px 8px 6px 12px;border-radius:14px;gap:8px}
 .brand img{width:32px;height:32px;border-radius:9px}.brand b{font-size:1rem}
 .top-access{gap:10px}.sign-link{min-width:44px;justify-content:center}
 .register-link{min-height:34px;position:relative}.register-link::after{content:"";position:absolute;inset:-5px 0}
 .footer-inner {padding:34px 18px 22px}.footer-top{display:block}.footer-copy{margin-top:15px}.footer-tiles{margin-top:22px;gap:18px}.footer-media{width:clamp(110px,32vw,135px);height:clamp(110px,32vw,135px)}.footer-watermark{font-size:14vw;bottom:29px;left:auto;right:4px;transform:none}
 #viewer{width:calc(100% - 16px);max-height:94svh;border-radius:11px}.viewer-header{padding:8px 12px}.viewer-options{padding:6px 8px}.viewer-content{padding:3px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important}}
