.apple-page {
  margin: 0; min-height: 100vh; min-height: 100svh; background: #f4f6f7; color: #183344;
  font: 16px/1.48 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
.apple-page * { box-sizing: border-box; }
.apple-page [hidden] { display: none !important; }
.apple-page main { max-width: 680px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(44px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.apple-page header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.apple-page header img { width: 46px; height: 46px; border-radius: 10px; }
.apple-page header a { margin-left: auto; padding: 10px 0 10px 12px; font-size: .93rem; }
.apple-page h1 { font-size: clamp(1.8rem, 5vw, 2.55rem); line-height: 1.06; margin: 0 0 12px; letter-spacing: -.035em; }
.apple-page h2 { font-size: 1.15rem; margin: 0 0 10px; }
.apple-page h3 { font-size: 1rem; margin: 16px 0 4px; }
.apple-page p, .apple-page ol { margin: 8px 0 12px; }
.apple-page ol { padding-left: 24px; }
.apple-page li + li { margin-top: 8px; }
.apple-page section, .apple-page article { background: white; border: 1px solid #d9e1e5; border-radius: 13px; padding: 20px; margin-top: 16px; overflow-wrap: anywhere; }
.apple-page fieldset { border: 0; padding: 0; margin: 0; }
.apple-page a { color: #16557a; text-underline-offset: .18em; }
.apple-page label { display: block; font-weight: 600; margin: 14px 0 5px; }
.apple-page input, .apple-page select { width: 100%; color: #183344; border: 1px solid #7f949f; background: white; font: inherit; border-radius: 8px; padding: 11px; }
.apple-page button { margin: 12px 7px 0 0; border: 0; border-radius: 8px; font: inherit; font-weight: 650; padding: 11px 14px; background: #173d56; color: white; cursor: pointer; }
.apple-page button.quiet { background: #e9f0f3; color: #173d56; }
.apple-page button:disabled { background: #d6e1e7; color: #486172; cursor: wait; }
.apple-page :focus-visible { outline: 3px solid #216d97; outline-offset: 3px; }
.apple-page .detail { margin: 4px 0; white-space: pre-line; }
.apple-page .muted { font-size: .92rem; color: #455e6c; }
.apple-page .entry { border-top: 1px solid #e3e9eb; padding: 9px 0; }
.apple-page .entry strong { display: block; }
.apple-page .entry img { max-width: 100%; max-height: 320px; display: block; margin-top: 8px; border-radius: 6px; object-fit: contain; }
.apple-page .status { padding: 10px 12px; border-left: 3px solid #35765e; background: #e6f1eb; }
.apple-page .status.error { border-color: #954d35; background: #fff0e8; }
.apple-page .status:empty { display: none; }
.apple-page details { margin-top: 13px; }
.apple-page summary { cursor: pointer; color: #16557a; padding: 8px 0; }
@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top); }
  .bottom-nav { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}
#offline-lock { position: fixed; bottom: max(14px,env(safe-area-inset-bottom)); right: 16px; z-index: 21; background: #183d48; color: white; border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
@media(max-width:1100px) { #offline-lock { bottom: calc(62px + env(safe-area-inset-bottom)); } }
@media print { #offline-lock { display:none; } }
