.page-footer {
  display: block;
  padding-top: 8px;
  font-size: 11px;
  letter-spacing: 0;
}
.footer-meta a, .footer-links button {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.records-guide {
  margin: 20px 0 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.9;
}
.records-guide h3 { margin: 0 0 9px; font-size: 14px; }
.records-guide h4 { margin: 15px 0 5px; font-size: 12px; }
.records-guide ol { margin: 0; padding-left: 22px; }
.records-guide li + li { margin-top: 5px; }
.records-guide-intro, .records-guide-note, .records-guide-warning { overflow-wrap: anywhere; }
.records-guide-note { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.records-guide-warning { margin-top: 10px; padding: 10px 12px; border-radius: 7px; background: var(--soft-green); }
.backup-actions { flex-wrap: wrap; }
@media (max-width: 700px) {
  .footer-meta { flex-direction: column; }
  .records-guide { padding: 14px; }
}

:root {
  --notice-surface: linear-gradient(110deg, #dce7ed, #eeebe3);
  --notice-border: #bfced7;
  --notice-emphasis: #3f657b;
  --notice-label-bg: #d3e1e8;
}
:root[data-theme="dark"] {
  --notice-surface: linear-gradient(110deg, #293640, #2d3133);
  --notice-border: #51636f;
  --notice-emphasis: #b7cbd7;
  --notice-label-bg: #324652;
}
h1, h2, h3, h4, .word-title, .dictionary-word, .det-display-word,
.mock-card h3, .exam-prompt, .reading-passage, .model-prose {
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: normal;
}
.deck-icon { background: var(--soft-green) !important; }
.sidebar { overflow-y: auto; }
.sidebar-label { margin-top: 34px; }
.sidebar-bottom { padding-top: 28px; }
.quiet-note { padding: 16px; }
.quiet-note > span svg { margin-bottom: 9px; }
.quiet-dots { margin-top: 12px; }
.welcome-notice, .statement-banner {
  padding: 22px 25px;
  border: 1px solid var(--notice-border);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background: var(--notice-surface);
  color: var(--ink);
  line-height: 1.8;
}
.welcome-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.welcome-notice-copy { min-width: 0; }
.welcome-notice-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--notice-label-bg);
  color: var(--notice-emphasis);
  font-size: 11px;
  font-weight: 600;
}
.welcome-notice-label svg { width: 14px; height: 14px; }
.welcome-notice h2, .statement-banner h2 { margin: 10px 0 3px; font-size: 22px; font-weight: 600; }
.welcome-motto { margin: 2px 0 7px; color: var(--notice-emphasis); font-size: 15px; font-weight: 500; }
.welcome-access { font-size: 13px; font-weight: 500; }
.welcome-records { margin-top: 3px; color: var(--muted); font-size: 12px; }
.welcome-notice-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.welcome-notice-actions .button { min-height: 38px; justify-content: center; font-size: 12px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.footer-links button { padding: 0; font-size: inherit; }
.statement-banner > p:last-child { margin-top: 5px; font-size: 13px; }
.notice-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.notice-info-card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.notice-info-card h2 { font-size: 17px; margin-bottom: 10px; }
.notice-info-card > p { margin-bottom: 20px; font-size: 13px; line-height: 1.9; }
.notice-source-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.notice-source-links > a:not(.button) { display: inline-flex; gap: 6px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.notice-source-links svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .navigation { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .sidebar { overflow: visible; }
  .welcome-notice { grid-template-columns: minmax(0, 1fr); gap: 15px; margin-bottom: 24px; padding: 18px; }
  .welcome-notice h2, .statement-banner h2 { font-size: 19px; }
  .welcome-notice-actions { flex-direction: row; flex-wrap: wrap; }
  .welcome-access { font-size: 12px; }
  .welcome-records { font-size: 11px; }
  .notice-info-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .notice-info-card, .statement-banner { padding: 20px; }
  .footer-links { gap: 9px 15px; }
}
