:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans", sans-serif;
  color: #202020;
  background: #f7f7f7;
  font-synthesis: none;
  line-height: 1.5;
  letter-spacing: 0;
  --page-gutter: 40px;
  --site-line: #e4e4e4;
  --site-muted: #6a6a6a;
  --site-accent: #fdeab3;
  --site-accent-hover: #f9dfa0;
  --site-accent-soft: #fff8e5;
  --site-accent-border: #e6c674;
  --site-focus: #b38100;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; min-width: 320px; }
body { overflow: hidden; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--site-focus); outline-offset: 4px; }
.site-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; overflow: hidden; }
.page-width { width: min(calc(100% - var(--page-gutter) * 2), 1312px); margin-inline: auto; }
.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--site-line); padding-top: env(safe-area-inset-top, 0px); }
.site-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-brand { display: flex; align-items: center; gap: 24px; min-width: 0; }
.site-header-title { min-width: 0; color: var(--site-muted); font-size: 12px; overflow-wrap: anywhere; }
.site-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.wordmark { display: inline-flex; flex-shrink: 0; align-items: center; }
.wordmark img { width: 126px; height: auto; display: block; }
.glass-panel { border: 1px solid var(--floating-border, #e4e4e4); background: #fff; box-shadow: var(--floating-shadow, 0 6px 22px #0000000f); }
.language-menu { position: relative; z-index: 6; }
.language-trigger { display: flex; align-items: center; justify-content: center; gap: 9px; width: 76px; height: 34px; padding: 7px 12px; border-radius: 999px; background: #fff; color: #202020; font-size: 12px; font-weight: 550; box-shadow: var(--floating-shadow, 0 2px 8px #00000008); }
.language-trigger:disabled { opacity: .45; cursor: not-allowed; }
.language-trigger:hover { background: #f7f7f7; }
.language-trigger img { opacity: .65; }
.language-trigger[aria-expanded="true"] img { transform: rotate(180deg); }
.language-options { position: absolute; z-index: 10; right: 0; top: calc(100% + 8px); width: 224px; max-width: calc(100vw - 40px); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow: auto; padding: 6px; border-radius: 8px; }
.language-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; color: #202020; font-size: 13px; text-align: left; }
.language-option img { visibility: hidden; flex-shrink: 0; }
.language-option[aria-selected="true"] { background: #fdeab366; }
.language-option[aria-selected="true"] img { visibility: visible; }
.language-option:hover, .language-option:focus-visible { background: #f3f3f3; outline: none; }
.site-footer { width: 100%; margin: 0; background: transparent; padding-bottom: env(safe-area-inset-bottom, 0px); color: var(--site-muted); font-size: 11px; }
.site-footer-inner { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer button { min-height: 36px; border: 0; padding: 6px 0; color: inherit; background: transparent; font-size: inherit; text-decoration: none; }
.site-footer button:hover { text-decoration: underline; text-underline-offset: 4px; }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; border: 1px solid var(--site-line); border-radius: 8px; padding: 28px; background: #fff; color: #202020; }
dialog::backdrop { background: #11111175; }
dialog h2 { margin: 0; font-size: 20px; }
dialog p { margin: 18px 0 24px; color: var(--site-muted); font-size: 14px; line-height: 1.8; }
.site-dialog-close { min-height: 42px; padding: 9px 20px; border: 0; border-radius: 5px; background: var(--site-accent); color: #202020; font-size: 13px; font-weight: 600; }
.privacy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  :root { --page-gutter: 20px; }
  .site-header-inner { min-height: 64px; }
  .wordmark img { width: 108px; }
  .site-footer-inner { min-height: 42px; }
}
@media (max-height: 500px) {
  .site-header-inner { min-height: 54px; }
  .site-footer-inner { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .glass-panel { background: Canvas; border-color: CanvasText; } .language-option[aria-selected="true"] { outline: 1px solid Highlight; } }
