:root {
  color-scheme: light dark;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #f4f6f8;
  --surface: #fff;
  --soft: #f7f8fa;
  --ink: #182333;
  --muted: #647083;
  --border: #e0e6ed;
  --accent: #5165be;
  --shadow: 0 4px 20px #18233305;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
main { width: min(1180px, calc(100% - 64px)); margin: 36px auto 28px; }
p, h1, h2, h3, dl, dd { margin: 0; }
a { color: inherit; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -.7px; }
.brand-symbol { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--surface); background: var(--ink); font-size: 24px; line-height: 1; }
.brand-label { margin-left: 8px; padding-left: 18px; border-left: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 450; letter-spacing: 0; }
.browser-badge { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.browser-badge > span { color: #c57b44; font-size: 19px; }
.page-intro { padding: 28px 0 25px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
h1 { margin: 5px 0 7px; font-size: clamp(26px, 3vw, 34px); font-weight: 650; letter-spacing: -1.2px; line-height: 1.2; }
.page-intro > p:last-child { color: var(--muted); }
#extensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.extension-card { display: flex; min-width: 0; flex-direction: column; padding: 23px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.theme-reading { --accent: #b25836; --tile: #fcf0e9; }
.theme-planning { --accent: #3967c6; --tile: #edf2fd; }
.theme-time { --accent: #39786b; --tile: #eaf5ef; }
.theme-default { --accent: #7154ad; --tile: #f3edfa; }
.extension-heading { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.app-mark { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 12px; background: var(--tile); color: var(--accent); font-size: 24px; font-weight: 600; }
.app-identity { min-width: 0; }
.app-category { margin-bottom: 3px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.extension-card h2 { font-size: 17px; font-weight: 650; letter-spacing: -.45px; line-height: 1.3; overflow-wrap: anywhere; }
.extension-summary { min-height: 63px; margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.release-meta { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.version { padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--soft); color: var(--ink); font-weight: 600; }
.package-size::before { margin-right: 9px; color: var(--border); content: "/"; }
a.install { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; margin-top: 18px; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: white; font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
a.install:hover { background: color-mix(in srgb, var(--accent) 90%, black); transform: translateY(-1px); }
a.install > span { font-size: 17px; font-weight: 450; }
.package-details { display: grid; gap: 10px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--border); }
.detail-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.package-details dt { color: var(--muted); font-size: 10px; }
.package-details dd { min-width: 0; }
.package-details code { display: block; color: var(--muted); font: 10.5px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.unavailable { min-height: 43px; margin-top: 18px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); font-size: 12px; }
.catalog-message, .loading, .error { grid-column: 1 / -1; padding: 32px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--muted); }
.error { color: #ad483f; }
button.retry { margin-left: 10px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--soft); color: var(--ink); font: inherit; cursor: pointer; }
.installation-guide { display: flex; align-items: center; gap: 30px; margin-top: 22px; padding: 21px 24px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.guide-heading { flex: 0 0 155px; }
.guide-heading h2 { font-size: 14px; font-weight: 650; letter-spacing: -.2px; }
.guide-heading p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.installation-guide ol { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.installation-guide li { display: flex; gap: 12px; align-items: baseline; }
.step-number { color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.installation-guide h3 { font-size: 12px; font-weight: 600; }
.installation-guide li p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 17px; color: var(--muted); font-size: 10.5px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (prefers-color-scheme: dark) {
  :root { --page: #101721; --surface: #18212e; --soft: #202b3a; --ink: #e8edf5; --muted: #9ba9bc; --border: #2c3849; --shadow: none; }
  .theme-reading { --tile: #342820; }
  .theme-planning { --tile: #202e48; }
  .theme-time { --tile: #1b342e; }
  .theme-default { --tile: #302541; }
  .app-category, .app-mark { color: color-mix(in srgb, var(--accent) 70%, white); }
  .error { color: #e39e96; }
}
@media (max-width: 1050px) {
  main { width: calc(100% - 40px); margin-top: 24px; }
  #extensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .installation-guide { flex-direction: column; align-items: stretch; gap: 15px; }
  .guide-heading { flex-basis: auto; }
}
@media (max-width: 680px) {
  main { width: calc(100% - 32px); margin-top: 20px; }
  .brand-label { display: none; }
  .browser-badge { font-size: 10px; }
  #extensions { grid-template-columns: minmax(0, 1fr); }
  .extension-summary { min-height: 0; }
  .installation-guide ol { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .site-footer { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { a.install { transition: none; } }
