.stern-body { --ink:#193e54; --gold:#8a692c; --line:#d5d9d4; color:var(--ink); background:#faf9f6; margin:0; font:1.04rem/1.55 system-ui,-apple-system,sans-serif; }
.stern-body *, .stern-body *::before, .stern-body *::after { box-sizing:border-box; }
.stern-body [hidden] { display:none !important; }
.stern-body a { color:var(--ink); text-underline-offset:.18em; }
.stern-body :focus-visible { outline:3px solid #986d1f; outline-offset:3px; }
.stern-header { background:#fff; border-top:5px solid var(--ink); border-bottom:1px solid var(--line); padding:.75rem max(1rem,calc((100% - 62rem)/2)); }
.stern-header a { display:inline-flex; align-items:center; gap:.7rem; font-weight:700; text-decoration:none; white-space:nowrap; }
.stern-header img { border-radius:9px; }
.stern-main { max-width:50rem; margin:0 auto; padding:1.2rem clamp(1rem,4vw,2rem) 4rem; }
.stern-back { font-size:.95rem; margin-bottom:1.8rem; }
.stern-body h1,.stern-body h2,.stern-feature strong { font-family:Georgia,'Times New Roman',serif; font-weight:500; line-height:1.15; }
.stern-body h1 { font-size:clamp(2.4rem,7vw,3.8rem); margin:.35em 0; }
.stern-body h2 { font-size:clamp(1.55rem,4.2vw,2.1rem); margin:0 0 .45rem; }
.stern-intro { font-size:1.2rem; }
.stern-feature { display:flex; justify-content:space-between; align-items:center; gap:1rem; text-decoration:none; background:#edf2f2; border-left:4px solid var(--gold); border-radius:4px; padding:1.2rem 1.4rem; margin:1.75rem 0; }
.stern-feature strong { display:block; font-size:1.7rem; }
.stern-feature small { display:block; margin-top:.3rem; font-size:.97rem; }
.stern-feature > span:last-child { font-size:1.5rem; }
.stern-material,.stern-gallery,.stern-panel,.stern-upload { margin:1.25rem 0; }
.stern-material,.stern-gallery { padding-top:1.3rem; border-top:1px solid var(--line); }
.stern-material ul { padding-left:1.2rem; }
.stern-material li { padding:.35rem 0; }
.stern-upload,.stern-panel { padding:clamp(1rem,3vw,1.65rem); background:#fff; border:1px solid var(--line); border-top:3px solid var(--gold); border-radius:6px; }
.stern-upload p,.stern-panel p { margin:.5em 0 1em; }
.stern-picker { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.65rem; }
.stern-body button,.stern-body input { font:inherit; }
.stern-body button { cursor:pointer; }
.stern-pick,.stern-primary,.stern-secondary { border:1px solid #abc0c8; border-radius:7px; color:var(--ink); background:#eff5f5; font-weight:650 !important; min-height:48px; padding:.55rem .95rem; }
.stern-pick { min-height:64px; display:flex; align-items:center; justify-content:center; gap:.65rem; }
.stern-symbol { font-size:1.55rem; }
.stern-primary { border-color:var(--ink); background:var(--ink); color:#fff; min-width:10rem; }
.stern-body button:disabled { opacity:.62; cursor:default; }
.stern-secondary { display:inline-flex; align-items:center; font-size:.95rem; text-decoration:none; background:white; }
.stern-preview { list-style:none; padding:0; margin:.8rem 0; }
.stern-preview li { display:flex; align-items:center; gap:.55rem; padding:.45rem 0; border-top:1px solid var(--line); }
.stern-preview img { width:3.75rem; height:3.75rem; object-fit:cover; border-radius:4px; }
.stern-preview button,.stern-text { margin-left:auto; border:0; padding:.6rem; color:var(--ink); background:transparent; text-decoration:underline; font-size:.9rem !important; }
.stern-status:empty { display:none; }
.stern-upload .stern-status { margin:.8rem 0 0; font-weight:600; }
.stern-login { display:grid; gap:.65rem; justify-items:start; }
.stern-login input:not([type=checkbox]),.stern-upload [type=password] { font-size:1.1rem; max-width:100%; min-height:46px; padding:.4rem .65rem; border:1px solid #78909c; border-radius:5px; }
.stern-note { color:#415b68; font-size:.95rem; }
.stern-gallery-head,.stern-pages { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:.65rem; margin-bottom:1rem; }
.stern-gallery h2 small { font:1rem system-ui; }
.stern-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,8.5rem),1fr)); gap:.8rem; }
.stern-grid figure { margin:0; min-width:0; }
.stern-grid img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:6px; background:#e9ece9; }
.stern-grid figcaption a { display:inline-flex; align-items:center; min-height:44px; font-size:.9rem; }
.stern-pages { margin-top:1rem; }
.stern-signout { margin:1.25rem 0; }
.stern-edit-row { display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;margin:.5rem 0; }

.stern-showcode { display:inline-flex; align-items:center; gap:.45rem; min-height:44px; }

.stern-private-docs {background:#fff;border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:6px;padding:1.1rem 1.3rem;overflow-wrap:anywhere}
.stern-private-docs a {display:inline-block;padding:.35rem 0;font-weight:650}

.stern-audio{margin:12px 0;padding:12px 0;border-top:1px solid #dfcda6}.stern-audio audio{display:block;width:100%;margin-top:8px}
