:root {
  color-scheme: light;
  --bg: #f1f7fa;
  --panel: #fff;
  --text: #1f2937;
  --muted: #64748b;
  --line: #d1e2eb;
  --blue: #477ca8;
  --soft: #f3f8fb;
  --shadow: 0 8px 24px rgba(50, 120, 200, .11);
  --theme-glow: #1268bd24;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Microsoft YaHei", Arial, sans-serif; transition: background-color .22s, color .22s; }
body.settings-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.page-shell { min-height: 100vh; }

.site-header {
  position: sticky; top: 0; z-index: 20; min-height: 76px;
  padding: 12px max(18px, calc((100% - 1100px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 6px 24px var(--theme-glow); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; color: var(--blue); font-size: 23px; font-weight: 700; }
.brand-mark { margin-right: 7px; font-size: 25px; line-height: 1; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.brand-mark.small { font-size: 19px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.icon-button { display: grid; place-items: center; flex: 0 0 42px; width: 42px; min-width: 42px; height: 42px; padding: 0; overflow: visible; border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line)); border-radius: 13px; background: linear-gradient(145deg, var(--panel), color-mix(in srgb, var(--blue) 7%, var(--panel))); color: var(--blue); box-shadow: 0 5px 15px color-mix(in srgb, var(--blue) 8%, transparent); cursor: pointer; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.icon-button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 46%, var(--line)); background: color-mix(in srgb, var(--blue) 10%, var(--panel)); color: var(--blue); box-shadow: 0 10px 24px color-mix(in srgb, var(--blue) 18%, transparent); }
.icon-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 22%, transparent); outline-offset: 2px; }
.theme-icon-button svg, .notification-icon-button svg, .settings-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s, opacity .2s; }
.theme-icon-button .theme-moon { display: none; }
.theme-icon-button[data-mode="dark"] .theme-sun { display: none; }
.theme-icon-button[data-mode="dark"] .theme-moon { display: block; }
.theme-icon-button:hover svg { transform: scale(1.08) rotate(8deg); }
.settings-icon-button { color: var(--blue); }
.settings-icon-button:hover svg { transform: scale(1.08); }
.notification-icon-button { position: relative; }
.notification-icon-button:hover svg { transform: rotate(-8deg) scale(1.06); }
.notification-icon-button i { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border: 2px solid var(--panel); border-radius: 50%; background: #ef5b73; }

main { max-width: 1100px; margin: auto; padding: 24px; }
.home-carousel { position: relative; height: clamp(190px, 31vw, 350px); margin: 0 0 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--soft); box-shadow: var(--shadow); }
.carousel-slides, .carousel-slide { position: absolute; inset: 0; }
.carousel-slide { display: block; visibility: hidden; opacity: 0; color: #fff; pointer-events: none; transition: opacity .45s; }
.carousel-slide.active { visibility: visible; opacity: 1; pointer-events: auto; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-slide::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(5, 12, 22, .72)); }
.carousel-caption { position: absolute; z-index: 2; right: 70px; bottom: clamp(18px, 4vw, 35px); left: clamp(18px, 4vw, 42px); text-shadow: 0 2px 8px rgba(0, 0, 0, .75); }
.carousel-caption strong, .carousel-caption span { display: block; }
.carousel-caption strong { font-size: clamp(20px, 3.3vw, 34px); }
.carousel-caption span { margin-top: 7px; font-size: clamp(12px, 1.6vw, 15px); }
.carousel-control { position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(8, 17, 29, .42); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transform: translateY(-50%); backdrop-filter: blur(5px); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots { position: absolute; z-index: 3; bottom: 10px; left: 50%; display: flex; gap: 7px; transform: translateX(-50%); }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s, background .2s; }
.carousel-dots button.active { width: 23px; background: #fff; }
.no-animations .carousel-slide { transition: none; }
.collection { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.page-intro { margin: 6px 0 22px; padding: 8px 2px; }
.eyebrow, .section-kicker { margin: 0; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.page-intro h1 { margin: 7px 0 6px; font-size: 26px; line-height: 1.25; }
.page-intro > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.collection { margin-bottom: 18px; padding: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .about h2 { margin: 5px 0 0; color: var(--text); font-size: 24px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; }
.collection-tools { display: grid; grid-template-columns: minmax(230px, 1fr) auto; gap: 18px; margin-bottom: 20px; padding: 14px; border-radius: 14px; background: var(--soft); }
.search-box { position: relative; display: flex; align-items: center; gap: 8px; }
.search-box input { width: 100%; height: 42px; padding: 0 42px 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: var(--panel); color: var(--text); }
.search-box input:focus { border-color: color-mix(in srgb, var(--blue) 58%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 11%, transparent); }
.search-box > span { display: none; }
kbd { position: absolute; right: 11px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--soft); font-size: 10px; }
.filter-list { display: flex; align-items: center; gap: 6px; }
.filter { padding: 9px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.filter:hover, .filter.active { background: var(--blue); color: #fff; }

.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.site-card { position: relative; display: flex; min-height: 235px; padding: 18px; flex-direction: column; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.site-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-link { position: absolute; inset: 0; z-index: 3; }
.card-top, .card-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.site-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(145deg, var(--panel), var(--soft)); color: var(--blue); box-shadow: 0 7px 16px rgba(84, 111, 171, .13); font-size: 23px; font-weight: 700; }
.card-tag { padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 12%, var(--panel)); color: var(--blue); font-size: 10px; font-weight: 700; }
.muted-tag { color: var(--muted); background: var(--soft); }
.card-copy { position: relative; z-index: 2; margin-top: 24px; }
.card-number { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.card-copy h3, .add-card h3 { margin: 7px 0; font-size: 19px; }
.card-copy p, .add-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--blue); font-size: 12px; font-weight: 700; }
.arrow { font-size: 18px; }
.placeholder-card { background: var(--soft); }
.add-card { align-items: center; justify-content: center; text-align: center; border-style: dashed; }
.add-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 15px; background: var(--soft); color: var(--blue); font-size: 26px; }
.site-card[hidden] { display: none; }
.empty-state { padding: 35px; color: var(--muted); text-align: center; }

.support-section { margin: 24px 0 18px; }
.support-heading { margin-bottom: 14px; padding: 0 2px; }
.support-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; }
.support-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.support-card-head { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 13px; }
.support-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--blue); font-size: 17px; font-weight: 800; }
.support-card-head h3 { margin: 0 0 4px; font-size: 17px; }
.support-card-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.contact-list div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.contact-list span, .contact-list strong { display: block; overflow-wrap: anywhere; }
.contact-list span { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.contact-list strong { font-size: 13px; }
.changelog-head { grid-template-columns: 46px minmax(0, 1fr) auto; }
.log-list { display: grid; gap: 9px; max-height: 264px; margin-top: 18px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.log-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.log-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.log-version { min-width: 62px; color: var(--blue); font-size: 12px; font-weight: 800; }
.log-version time { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }
.log-content { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--text); font-size: 12px; line-height: 1.5; }
.log-content li::before { content: "·"; margin-right: 6px; color: var(--blue); font-weight: 800; }
.log-loading, .log-empty, .log-error { padding: 28px 14px; border-radius: 12px; background: var(--soft); color: var(--muted); text-align: center; font-size: 13px; }
.log-error { color: #a84b4b; }

.site-footer { max-width: 1100px; margin: 0 auto; padding: 20px 24px 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-brand { display: flex; align-items: center; color: var(--blue); }
.site-footer > span { justify-self: end; }

body.dark { color-scheme: dark; --text: #e5e7eb; --muted: #aab4c0; --shadow: 0 8px 24px rgba(0, 0, 0, .25); }
body.large-text { font-size: 17px; }
body.compact-layout .site-card { min-height: 205px; padding: 15px; }
body.no-animations *, body.no-animations *::before, body.no-animations *::after { transition: none !important; scroll-behavior: auto !important; }

.settings-page { max-width: 940px; }
.settings-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 4px 0 22px; }
.settings-page-header h1 { margin: 6px 0 7px; font-size: 26px; }
.settings-page-header p { margin: 0; color: var(--muted); line-height: 1.7; }
.back-link { padding: 9px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--blue); font-size: 13px; font-weight: 700; }
.settings-section { margin-bottom: 24px; }
.settings-section-title { margin-bottom: 12px; }
.settings-section-title h2 { margin: 5px 0 0; font-size: 21px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-card { padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.settings-card h3 { margin: 0 0 15px; color: var(--blue); font-size: 18px; }
.guide-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: guide; }
.guide-list li { position: relative; padding-left: 34px; counter-increment: guide; }
.guide-list li::before { content: counter(guide, decimal-leading-zero); position: absolute; left: 0; color: var(--blue); font-size: 12px; font-weight: 800; }
.guide-list strong, .guide-list span { display: block; }
.guide-list span { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.faq-list details { padding: 11px 12px; border-radius: 11px; background: var(--soft); }
.faq-list details + details { margin-top: 9px; }
.faq-list summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.faq-list p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.settings-panel { padding: 0; overflow: hidden; }
.setting-row { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(300px, 1.5fr); gap: 28px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-copy h3 { margin: 0 0 5px; color: var(--text); font-size: 16px; }
.setting-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.segmented label, .color-options label { cursor: pointer; }
.segmented input, .color-options input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; justify-content: center; padding: 10px 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); font-size: 13px; font-weight: 700; }
.segmented input:checked + span { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 14%, transparent); }
.color-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.color-options label { display: flex; align-items: center; flex-direction: column; gap: 6px; padding: 8px 3px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); font-size: 11px; }
.color-options label:has(input:checked) { border-color: var(--blue); background: var(--soft); color: var(--text); }
.color-options span { width: 29px; height: 29px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.settings-controls { display: grid; }
.select-row, .switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 49px; border-bottom: 1px solid var(--line); font-size: 13px; }
.select-row:last-child, .switch-row:last-child { border-bottom: 0; }
.select-row select { min-width: 135px; padding: 8px 28px 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); }
.switch-row input { width: 42px; height: 23px; accent-color: var(--blue); }
.settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.settings-button { padding: 9px 14px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.settings-button.secondary { border: 1px solid var(--line); background: var(--soft); color: var(--blue); }
.settings-status { min-height: 20px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.sync-note { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); color: var(--muted); font-size: 13px; line-height: 1.65; }
.settings-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.settings-modal[hidden] { display: none; }
.settings-modal.show { opacity: 1; visibility: visible; }
.settings-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(8, 15, 25, .52); backdrop-filter: blur(6px); cursor: default; }
.settings-dialog { position: relative; width: min(820px, 100%); max-height: min(760px, 88vh); overflow: auto; scrollbar-width: none; -ms-overflow-style: none; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 28px 80px rgba(0,0,0,.28); transform: translateY(12px); transition: transform .18s; }
.settings-dialog::-webkit-scrollbar { display: none; width: 0; height: 0; }
.settings-modal.show .settings-dialog { transform: none; }
.settings-dialog-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.settings-dialog-head h2 { margin: 5px 0 0; font-size: 22px; }
.settings-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 22px; cursor: pointer; }
.settings-dialog-footer { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--panel); }
.settings-dialog-footer > span { margin-right: auto; color: var(--muted); font-size: 12px; }
.settings-reset, .settings-done { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--blue); font-weight: 700; cursor: pointer; }
.settings-done { border-color: var(--blue); background: var(--blue); color: #fff; }

.notification-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.notification-modal[hidden] { display: none; }
.notification-modal.show { opacity: 1; visibility: visible; }
.notification-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(8,15,25,.52); backdrop-filter: blur(7px); }
.notification-dialog { position: relative; width: min(900px, 100%); max-height: min(760px, 86vh); overflow: hidden; border: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line)); border-radius: 22px; background: var(--panel); box-shadow: 0 28px 80px rgba(0,0,0,.3); transform: translateY(14px) scale(.985); transition: transform .2s; }
.notification-modal.show .notification-dialog { transform: none; }
.notification-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px 28px; border-bottom: 1px solid color-mix(in srgb, var(--blue) 14%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 10%, var(--panel)), var(--panel)); }
.notification-title-group { display: flex; align-items: center; gap: 14px; }
.notification-heading-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: #fff; box-shadow: 0 9px 22px color-mix(in srgb, var(--blue) 24%, transparent); }
.notification-heading-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notification-dialog-head .eyebrow { margin: 0 0 3px; font-size: 9px; letter-spacing: 1.4px; }
.notification-dialog-head h2 { margin: 0; font-size: 23px; }
.notification-dialog-head #notificationSummary { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.notification-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--muted); font: 400 25px/1 Arial,sans-serif; cursor: pointer; transition: transform .18s, background .18s, color .18s; }
.notification-close:hover { transform: rotate(6deg); background: color-mix(in srgb, #f04462 11%, var(--panel)); color: #d8324f; }
.notification-list { display: grid; gap: 12px; max-height: min(620px, calc(86vh - 118px)); padding: 22px 26px 26px; overflow-y: auto; scrollbar-width: none; background: color-mix(in srgb, var(--soft) 58%, var(--panel)); }
.notification-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.notification-item { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: start; gap: 14px; padding: 17px 18px; border: 1px solid color-mix(in srgb, var(--blue) 12%, var(--line)); border-radius: 15px; background: var(--panel); box-shadow: 0 5px 16px rgba(20,45,70,.055); }
.notification-index { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 11%, var(--panel)); color: var(--blue); font-size: 11px; font-weight: 900; }
.notification-item-copy { min-width: 0; }
.notification-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.notification-item-head strong { font-size: 14px; }
.notification-item-head span { padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 9px; font-weight: 800; }
.notification-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.notification-warning { border-color: color-mix(in srgb, #e5a100 32%, var(--line)); }
.notification-warning .notification-index { background: color-mix(in srgb, #e5a100 16%, var(--panel)); color: #a66e00; }
.notification-empty { padding: 54px 20px; border: 1px dashed var(--line); border-radius: 14px; background: var(--panel); color: var(--muted); text-align: center; }
.notification-error { color: #a84b4b; }

@media (max-width: 900px) {
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .collection-tools { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header { min-height: 0; padding: 12px 14px; gap: 10px; }
  .brand { font-size: 19px; }
  .brand-mark { font-size: 21px; }
  .brand-copy small { font-size: 9px; }
  main { padding: 14px; }
  .home-carousel { height: 210px; margin-bottom: 17px; border-radius: 16px; }
  .carousel-control { width: 35px; height: 35px; font-size: 25px; }
  .carousel-caption { right: 50px; }
  .page-intro { margin: 3px 2px 17px; padding: 5px 0; }
  .page-intro h1 { font-size: 24px; }
  .collection { padding: 17px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .filter-list { overflow-x: auto; }
  .site-grid { grid-template-columns: 1fr; }
  .site-card { min-height: 225px; }
  .contact-list { grid-template-columns: 1fr; }
  .settings-page-header { flex-direction: column; }
  .help-grid { grid-template-columns: 1fr; }
  .setting-row { grid-template-columns: 1fr; gap: 13px; padding: 18px; }
  .color-options { grid-template-columns: repeat(3, 1fr); }
  .segmented { grid-template-columns: 1fr; }
  .settings-modal { padding: 10px; }
  .settings-dialog { max-height: 92vh; border-radius: 16px; }
  .settings-dialog-footer { flex-wrap: wrap; padding: 12px 16px; }
  .settings-dialog-footer > span { width: 100%; margin: 0; }
  .notification-modal { padding: 10px; }
  .notification-dialog { max-height: 92vh; border-radius: 17px; }
  .notification-dialog-head { padding: 19px; }
  .notification-list { max-height: calc(92vh - 104px); padding: 13px; }
  .notification-item { grid-template-columns: 35px minmax(0,1fr); gap: 10px; padding: 14px; }
  .notification-index { width: 33px; height: 33px; }
  .site-footer { grid-template-columns: 1fr; padding-inline: 16px; }
  .site-footer > span { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
