:root {
  --paper: #fdfdfb; --gray-50: #f4f3f0; --gray-100: #eeede9; --gray-200: #e1e0dc;
  --gray-500: #696e75; --gray-600: #555b63; --gray-800: #343a40; --gray-900: #25292e; --gray-950: #17191d;
  --background: var(--gray-50); --surface: var(--paper); --ink: var(--gray-900); --muted: var(--gray-600);
  --line: var(--gray-200); --soft: var(--gray-100); --accent: var(--gray-800);
  --button-bg: var(--gray-800); --button-text: var(--paper); --button-hover: var(--gray-900);
  --side-bg: var(--gray-950); --side-ink: #e7e9ec; --side-muted: #a5abb4; --side-active: var(--gray-800);
  --danger: #914c44; --heading: 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --body: 'Avenir Next', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --card-radius: 12px; --input-radius: 6px; --section-gap: 36px;
  color-scheme: light;
}
.dark {
  --background: #13161a; --surface: #22262c; --ink: #e7e9ec; --muted: #a5abb4; --line: #363c44;
  --soft: #363c44; --accent: #d2d6db; --button-bg: #e7e9ec; --button-text: #25292e; --button-hover: #fdfdfb;
  --danger: #d7a29b; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #93969b var(--background); scrollbar-width: thin; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--muted); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
input, textarea { caret-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--line); color: var(--ink); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { border: 2px solid var(--background); border-radius: 8px; background: #93969b; }
::-webkit-scrollbar-track { background: var(--background); }
h1, h2 { font-family: var(--heading); font-weight: 700; letter-spacing: -.025em; line-height: 1.3; text-wrap: balance; }
h1 { margin: 0; font-size: 34px; }
h2 { margin: 0; font-size: 25px; }
h3 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 650; }
p { margin: 10px 0 0; }
.icon { flex: none; width: 18px; height: 18px; vertical-align: middle; }
.quiet, .field-hint { color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 250px; z-index: 100; background: var(--surface); padding: 12px 18px; }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; display: flex; flex-direction: column; background: var(--side-bg); color: var(--side-ink); z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 18px; border-bottom: 1px solid #343a40; }
.brand img { flex: none; object-fit: contain; filter: brightness(0) invert(1); }
.brand strong { font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.brand strong span { display: block; }
.side-caption { padding: 22px 20px 8px; color: var(--side-muted); font-size: 12px; }
.sidebar nav { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 18px; scrollbar-color: #555b63 transparent; }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; margin: 3px 0; border-radius: 6px; font-size: 13px; }
.side-link span { flex: 1; }
.side-link small { font-variant-numeric: tabular-nums; color: var(--side-muted); font-size: 11px; }
.side-link:hover, .side-link.selected { background: var(--side-active); color: #fdfdfb; }
.side-link.selected small { color: #d2d6db; }
.sidebar :is(a, button):focus-visible { outline-color: #d2d6db; }
.side-footer { padding: 12px 20px 18px; border-top: 1px solid #343a40; }
.side-footer a { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 12px; color: var(--side-muted); }
.side-footer a:hover { color: #fdfdfb; }
.page { margin-left: 224px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; padding: 13px 32px; border-bottom: 1px solid var(--line); background: var(--surface); z-index: 20; }
.top-search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 460px; background: var(--background); border: 1px solid var(--line); border-radius: var(--input-radius); padding: 0 12px; }
.top-search input { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--ink); height: 40px; outline: none; }
.top-search button { border: 0; background: transparent; padding: 8px 0 8px 10px; font-size: 13px; min-width: 42px; }
.top-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.top-actions { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.admin-entry { display: flex; gap: 6px; align-items: center; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.icon-button:hover { background: var(--soft); }
.mobile-brand, .menu-toggle { display: none; }
main { flex: 1; width: 100%; max-width: 1490px; margin: 0 auto; padding: 36px 32px 56px; min-width: 0; }
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 10px 0 34px; }
.intro h1 { font-size: 38px; max-width: 18em; }
.intro p { font-size: 14px; color: var(--muted); line-height: 1.85; margin-top: 16px; }
.intro p span { font-variant-numeric: tabular-nums; }
.hero-search > label { display: block; font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.hero-search > div { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.hero-search .icon { margin-left: 6px; color: var(--muted); }
.hero-search input { flex: 1; width: 0; border: 0; height: 40px; background: transparent; color: var(--ink); outline: none; font-size: 13px; }
.hero-search > div:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-search .button { padding: 11px 14px; white-space: nowrap; }
.hero-search .button .icon { margin: 0; color: inherit; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; transition: background .16s, color .16s; }
.button:hover { background: var(--soft); }
.button.primary { background: var(--button-bg); color: var(--button-text); border-color: transparent; }
.button.primary:hover { background: var(--button-hover); }
.button.danger { color: var(--danger); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button.compact { min-height: 38px; padding: 8px 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading > a { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.featured-section { margin: 0 0 var(--section-gap); }
.featured-section h2 { font-family: var(--body); font-size: 17px; }
.featured-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; background: var(--surface); }
.tool-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); transition: border-color .18s; }
.tool-card:hover { border-color: var(--muted); }
.tool-card-link { display: block; padding: 22px 20px 17px; height: 100%; }
.tool-card-heading { display: flex; align-items: center; gap: 12px; }
.tool-card-heading > div:nth-child(2) { flex: 1; min-width: 0; }
.tool-card-heading > .icon { width: 16px; color: var(--muted); }
.tool-card h3 { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.tool-icon img { width: 34px; height: 34px; object-fit: contain; }
.letter-icon { font-size: 16px; font-weight: 700; color: var(--ink); }
.tool-category, .official-mark { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.tool-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 16px 0 22px; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tool-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tool-card-meta > span:last-child { display: flex; align-items: center; white-space: nowrap; }
.tool-card-meta .icon { width: 12px; height: 12px; }
.featured-card { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.featured-card:last-child { border: 0; }
.featured-card .tool-card-link { padding: 18px 15px; }
.featured-card .tool-icon { background: transparent; width: 32px; height: 32px; }
.featured-card .tool-icon img { width: 30px; height: 30px; }
.dark [data-superapi-featured] img[src="/custom/superapi-logo.png"], .dark .auth-logo, .dark .about-heading > img, .dark .mobile-brand img, .dark .detail-identity img[src="/custom/superapi-logo.png"] { filter: invert(1); }
.featured-card h3 { font-size: 13px; }
.featured-card p { font-size: 12px; margin: 12px 0 14px; min-height: 40px; }
.featured-card .tool-card-meta { font-size: 10px; }
.catalog-heading h1 { font-size: 30px; }
.catalog-heading p { color: var(--muted); font-size: 12px; margin-top: 7px; font-variant-numeric: tabular-nums; }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.sort-form select { border: 1px solid var(--line); border-radius: 6px; padding: 8px 28px 8px 12px; background: var(--surface); color: var(--ink); min-height: 38px; }
.heat-note { font-size: 12px; color: var(--muted); margin: -7px 0 20px; }
.heat-note summary { width: max-content; min-height: 30px; cursor: pointer; text-decoration: underline; }
.heat-note p { max-width: 68ch; margin: 6px 0 14px; }
.tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; font-variant-numeric: tabular-nums; }
.pagination a { display: grid; min-width: 40px; min-height: 40px; padding: 8px 12px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; }
.pagination a:hover { background: var(--soft); }
.pagination a[aria-current] { background: var(--button-bg); color: var(--button-text); border-color: var(--button-bg); }
.skills-pagination { align-items: center; justify-content: flex-end; }
.skills-pagination span { min-height: 40px; display: grid; place-items: center; padding: 8px; font-size: 13px; }
.skills-pager-top { margin: -8px 0 24px; }
.skills-pager-top .pagination { margin-top: 0; }
.sync-progress { padding: 18px 0; border-block: 1px solid var(--line); margin: 20px 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding: 22px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer a { text-decoration: underline; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 28px; }
.breadcrumbs .icon { width: 13px; height: 13px; }
.breadcrumbs span { overflow-wrap: anywhere; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.detail-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.detail-identity h1 { overflow-wrap: anywhere; font-size: 34px; }
.detail-identity p { color: var(--muted); font-size: 14px; max-width: 70ch; }
.tool-icon.large { width: 72px; height: 72px; border-radius: 12px; }
.tool-icon.large img { width: 56px; height: 56px; }
.tool-icon.large .letter-icon { font-size: 24px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.bookmark[aria-pressed=true] { background: var(--soft); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 28px; align-items: start; }
.reading-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; min-width: 0; }
.reading-panel > h2 { margin-bottom: 26px; }
.article-content { font-size: 15px; line-height: 1.95; max-width: 74ch; overflow-wrap: anywhere; }
.article-content :is(p,ul,ol,blockquote) { margin: 16px 0; }
.article-content :is(h2,h3,h4) { margin-top: 34px; margin-bottom: 12px; }
.article-content h2 { font-size: 23px; }
.article-content a { text-decoration: underline; text-decoration-color: var(--line); }
.article-content img { display: block; width: auto; max-width: 100%; height: auto; margin: 24px 0; border-radius: 6px; }
.article-content iframe { width: 100%; height: 400px; max-width: 100%; border: 1px solid var(--line); }
.article-content video, .article-content audio { max-width: 100%; margin: 20px 0; }
.article-content table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.article-content :is(td,th) { border: 1px solid var(--line); padding: 8px 12px; }
.article-content pre { overflow-x: auto; background: var(--soft); padding: 16px; border-radius: 6px; }
.article-content blockquote { padding: 16px 20px; background: var(--soft); }
.detail-aside { border-top: 1px solid var(--line); }
.detail-aside section { padding: 23px 0; border-bottom: 1px solid var(--line); }
.detail-aside h2 { font-family: var(--body); font-size: 15px; margin-bottom: 16px; }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; font-size: 12px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.source-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.source-list li { font-size: 12px; padding: 8px 0; overflow-wrap: anywhere; }
.source-list a { display: flex; gap: 8px; align-items: start; justify-content: space-between; }
.source-list .icon { width: 13px; height: 13px; margin-top: 3px; }
.download-list { list-style: none; margin: 12px 0 0; padding: 0; }
.download-list li { margin: 10px 0; }
.download-list .button { width: 100%; justify-content: space-between; font-size: 12px; }
.software-downloads { scroll-margin-top: 150px; }
.related-section { margin-top: 40px; }
.legacy-article { max-width: 940px; margin: 0 auto; }
.legacy-article h1 { font-size: 34px; overflow-wrap: anywhere; }
.article-credit { color: var(--muted); font-size: 12px; margin: 16px 0 30px; }
.about-heading { text-align: center; padding: 22px 0 38px; }
.about-heading h1 { margin-top: 18px; }
.about-heading p { color: var(--muted); }
.about-copy { max-width: 820px; margin: 0 auto; line-height: 1.9; }
.about-copy h2 { margin: 34px 0 14px; }
.about-copy h2:first-child { margin-top: 0; }
.about-copy a { text-decoration: underline; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 72px 24px; }
.empty-state p { color: var(--muted); margin: 16px 0 24px; }
.sidebar-scrim { position: fixed; inset: 0; border: 0; background: rgb(0 0 0 / .45); z-index: 25; }
.toast { position: fixed; bottom: 24px; right: 24px; max-width: calc(100vw - 48px); background: var(--button-bg); color: var(--button-text); padding: 12px 18px; border-radius: 6px; z-index: 60; font-size: 13px; }
.auth-panel { max-width: 440px; margin: 36px auto; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.auth-panel h1 { font-size: 28px; margin-top: 20px; }
.auth-panel > p { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.auth-panel label, .form-grid > label { display: flex; flex-direction: column; font-size: 13px; gap: 8px; font-weight: 600; }
.auth-panel label { margin: 18px 0 8px; }
input:not([type=checkbox]), select, textarea { min-width: 0; max-width: 100%; }
.auth-panel input, .form-grid :is(input:not([type=checkbox]),select,textarea), .admin-toolbar input { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--background); color: var(--ink); border: 1px solid var(--line); border-radius: var(--input-radius); }
textarea { resize: vertical; }
.auth-panel .button { width: 100%; margin-top: 24px; }
.auth-logo { object-fit: contain; }
.account-entry, .header-favorites { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; white-space: nowrap; }
.account-logout { border: 0; background: transparent; font-size: 12px; min-height: 44px; padding: 4px; color: var(--muted); }
.visitor-login fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.visitor-login .agreement-label { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 12px; font-weight: 400; line-height: 1.8; }
.visitor-login input[type=checkbox] { width: 17px; min-height: 17px; height: 17px; flex: none; margin: 4px 0 0; accent-color: var(--accent); }
.agreement-label a, .auth-links a, .skills-source a { text-decoration: underline; }
.auth-links { display: flex; justify-content: space-between; gap: 18px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.verification-copy { font-size: 13px; color: var(--muted); }
.favorites-section .tool-card-link { height: auto; }
.favorite-remove { width: calc(100% - 40px); margin: 0 20px 18px; }
.skills-heading { padding: 4px 0 32px; }
.skills-heading > p { max-width: 70ch; color: var(--muted); }
.skills-source { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 24px; }
.skills-source .icon { width: 13px; height: 13px; }
.skills-catalog .section-heading > p { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.skill-content p { white-space: pre-wrap; overflow-wrap: anywhere; }
.skill-card .tool-category { overflow-wrap: anywhere; }
.install-command { background: var(--background); border: 1px solid var(--line); border-radius: 6px; padding: 14px; margin-block: 18px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-aside .source-link { font-size: 13px; }
.form-error { background: var(--soft); color: var(--danger); padding: 12px 16px; border-radius: 6px; font-size: 13px; margin: 18px 0; }
.admin-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.admin-tabs button { border: 0; background: transparent; min-height: 48px; padding: 10px 0; font-size: 14px; color: var(--muted); }
.admin-tabs button[aria-current] { border-bottom: 2px solid var(--accent); color: var(--ink); font-weight: 600; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.admin-toolbar form { display: flex; gap: 10px; max-width: 440px; flex: 1; }
.table-wrap { max-width: 100%; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-top: 20px; }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.table-scroll-hint { display: none; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.admin-table th { padding: 14px 16px; text-align: left; color: var(--muted); font-weight: 500; background: var(--soft); }
.admin-table td { padding: 15px 16px; border-top: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.admin-table td:first-child { min-width: 220px; max-width: 340px; white-space: normal; overflow-wrap: anywhere; }
.admin-table .row-name { font-size: 13px; font-weight: 600; }
.admin-table .row-url { font-size: 11px; margin-top: 3px; color: var(--muted); }
.admin-table button { min-height: 34px; }
.admin-pager { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 18px 0; font-size: 12px; }
.editor-panel { margin-top: 28px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 100px; }
.admin-toolbar .button, #admin-logout { flex: none; white-space: nowrap; }
.editor-panel h2 { font-size: 23px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field-hint { font-weight: 400; }
.form-grid .checkbox-label { display: flex; flex-direction: row; align-items: center; gap: 10px; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
#brand-editor > .button, #category-editor > .button { margin-top: 24px; }
@media (min-width: 1500px) { .tool-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1220px) {
  .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .featured-card:nth-child(2) { border-right: 0; }
  .featured-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .hero-search { max-width: 700px; }
  .detail-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease-out; }
  .nav-open .sidebar { transform: translateX(0); }
  .page { margin-left: 0; }
  .menu-toggle { display: inline-grid; }
  .mobile-brand { display: flex; gap: 9px; align-items: center; min-width: 0; }
  .mobile-brand span { font-size: 13px; font-weight: 600; }
  .mobile-brand > span > span { display: block; }
  .mobile-brand img { flex: none; }
  .top-search { display: flex; order: 3; flex-basis: 100%; max-width: none; }
  .topbar { gap: 12px; padding: 12px 20px; flex-wrap: wrap; }
  .top-actions { margin-left: auto; gap: 12px; }
  .header-about { display: none; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 230px; gap: 20px; }
  main { padding-inline: 24px; }
}
@media (max-width: 640px) {
  .topbar { padding: 12px 14px; min-height: 64px; }
  .topbar .icon-button { width: 44px; height: 44px; }
  .top-actions { gap: 10px; }
  .account-entry, .header-favorites { gap: 5px; font-size: 12px; }
  .header-favorites span { display: none; }
  .header-favorites { justify-content: center; width: 34px; }
  .account-entry .icon { display: none; }
  .account-entry[data-authenticated=true] { width: 34px; justify-content: center; }
  .account-entry[data-authenticated=true] span { display: none; }
  .account-entry[data-authenticated=true] .icon { display: block; }
  .side-link, .side-footer a, .admin-entry { min-height: 44px; }
  .button { min-height: 44px; }
  .top-actions .admin-entry { font-size: 11px; }
  .top-actions .admin-entry .icon { display: none; }
  .mobile-brand span { font-size: 11px; max-width: 72px; line-height: 1.4; }
  .mobile-brand img { width: 24px; height: 24px; }
  main { padding: 28px 16px 38px; }
  h1 { font-size: 29px; } h2 { font-size: 24px; }
  .intro { padding: 0 0 30px; gap: 24px; }
  .intro h1 { font-size: 30px; }
  .intro p { font-size: 13px; margin-top: 12px; }
  .hero-search input { font-size: 16px; }
  .hero-search .button { padding-inline: 12px; font-size: 12px; }
  .hero-search .button .icon { display: none; }
  .featured-grid { grid-template-columns: minmax(0,1fr); }
  .featured-card { border: 0; border-bottom: 1px solid var(--line) !important; }
  .featured-card:last-child { border-bottom: 0 !important; }
  .featured-card .tool-card-link { padding: 18px; }
  .featured-card h3 { font-size: 14px; }
  .featured-card p { min-height: 0; margin-block: 10px; }
  .featured-card .tool-card-meta { font-size: 11px; }
  .section-heading { gap: 12px; }
  .section-heading > a { font-size: 11px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .catalog-heading h1 { font-size: 28px; }
  .sort-form { align-self: flex-end; }
  .tool-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .tool-card-link { padding: 21px 19px 18px; }
  .tool-card p { margin: 15px 0 20px; }
  .tool-card-meta { font-size: 12px; }
  .site-footer { padding: 22px 16px; flex-direction: column; align-items: start; }
  .breadcrumbs { margin-bottom: 24px; }
  .detail-identity { align-items: start; gap: 15px; }
  .detail-identity h1 { font-size: 29px; }
  .detail-identity p { font-size: 13px; }
  .tool-icon.large { width: 56px; height: 56px; }
  .tool-icon.large img { width: 44px; height: 44px; }
  .detail-actions { width: 100%; }
  .detail-actions .button { flex: 1; min-height: 44px; }
  .detail-layout { grid-template-columns: minmax(0,1fr); }
  .reading-panel { padding: 24px 20px; }
  .article-content { font-size: 15px; }
  .article-content iframe { height: 260px; }
  .detail-aside { margin-top: 12px; }
  .about-heading { padding: 6px 0 28px; }
  .about-heading h1 { font-size: 28px; }
  .legacy-article h1 { font-size: 29px; }
  .auth-panel { padding: 26px 22px; margin: 10px auto 20px; }
  .auth-panel input, .form-grid :is(input,select,textarea), .admin-toolbar input { font-size: 16px; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-toolbar > .button { align-self: flex-end; }
  .admin-tabs { gap: 24px; }
  .table-scroll-hint { display: block; color: var(--muted); font-size: 12px; margin-top: 14px; }
  .admin-table :is(th,td):last-child:not([colspan]) { position: sticky; right: 0; background: var(--surface); border-left: 1px solid var(--line); }
  .admin-table th:last-child { background: var(--soft); }
  .editor-panel { padding: 22px 18px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .admin-page .section-heading h1 { font-size: 28px; }
  .skip-link { left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
