:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --rail: #fff;
  --surface: #fff;
  --surface-hover: #fcfbff;
  --line: #dfe4ee;
  --text: #172139;
  --muted: #526079;
  --accent: #5744c9;
  --accent-hover: #4534ad;
  --accent-soft: #efedff;
  --accent-line: #c5bdf7;
  --on-accent: #fff;
  --shadow: 0 1px 2px #2433590a, 0 8px 24px #24335908;
  --rail-size: 248px;
  font-family: "Inter", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { flex: none; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 20; top: 10px; left: 12px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--rail-size); background: var(--rail); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 1.45rem; line-height: 1; letter-spacing: -.06em; font-weight: 750; }
.brand > span:last-child span { color: var(--accent); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--on-accent); background: var(--accent); }
.sidebar > .brand { margin: 21px 23px 22px; }
.sidebar nav { padding: 0 14px 20px; overflow: auto; scrollbar-width: thin; scrollbar-color: #c5cddd transparent; }
.nav-label { margin: 0 10px 8px; color: var(--muted); text-transform: uppercase; font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 10px; border-radius: 9px; font-size: .91rem; font-weight: 650; }
.nav-link svg { color: #6775a0; }
.nav-link.active, .nav-children a.active { background: var(--accent-soft); color: var(--accent); }
.nav-link:hover, .nav-children a:hover { background: #f3f4fa; color: var(--text); }
.nav-group { margin-top: 12px; }
.nav-children { border-left: 1px solid var(--line); margin-left: 18px; padding: 2px 0 2px 10px; }
.nav-children a { display: block; padding: 5px 10px; border-radius: 7px; font-size: .875rem; color: var(--muted); line-height: 1.3; }
.page { margin-left: var(--rail-size); min-height: 100vh; display: flex; flex-direction: column; }
.admin .page { margin-left: 0; }
.topbar { min-height: 68px; padding: 12px clamp(20px, 4vw, 54px); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.topbar-name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .94rem; color: #37455e; }
.topbar-actions, .detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.mobile-menu { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 7px 14px; border: 1px solid transparent; border-radius: 9px; font-size: .875rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-quiet { background: var(--surface); border-color: var(--line); color: var(--text); }
.button-quiet:hover { background: var(--surface-hover); border-color: var(--accent-line); }
.button-danger { border-color: #efbbbd; color: #a3213c; background: #fff1f2; }
.button-danger:hover { background: #ffe2e5; }
#compare-count:empty { display: none; }
#compare-count { color: var(--accent); }
.content { width: min(100%, 1450px); padding: 30px clamp(20px, 4vw, 54px) 64px; margin: 0 auto; flex: 1; container-type: inline-size; }
.admin .content { max-width: 1120px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; padding: clamp(12px, 1.4vw, 18px) clamp(12px, 2.5vw, 34px); border: 1px solid #dddff4; border-radius: 19px; background: linear-gradient(105deg, #f7f5ff 5%, #eeedff 58%, #e7f3ff); }
.hero-body { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: .85rem; font-weight: 750; letter-spacing: .045em; }
.hero h1, .page-heading h1, .detail-panel h1 { font-weight: 750; letter-spacing: -.055em; line-height: 1.03; }
.hero h1 { font-size: clamp(1.125rem, 5.2cqi, 2.125rem); margin: 5px 0; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-body > p:last-child { color: var(--muted); max-width: 76ch; font-size: .9rem; }
.hero-art { --orbit-size: clamp(64px, 8vw, 96px); position: absolute; inset: 0 0 0 auto; width: 46%; background-image: radial-gradient(#5e55bb26 1px, transparent 1px), radial-gradient(ellipse at center, #9dc3ef55, transparent 68%); background-size: 15px 15px, 100% 100%; mask-image: linear-gradient(to right, transparent, black 24%); }
.orbit, .orbit-axis, .orbit-core { position: absolute; top: 50%; left: 55%; translate: -50% -50%; }
.orbit { border: 1px solid #6e63bb52; border-radius: 50%; }
.orbit-outer { width: var(--orbit-size); aspect-ratio: 1; border-style: dashed; border-color: #6e63bb42; }
.orbit-middle { width: calc(var(--orbit-size) * .79); aspect-ratio: 1; }
.orbit-inner { width: calc(var(--orbit-size) * .56); aspect-ratio: 1; box-shadow: 0 0 22px #9084ec35, inset 0 0 28px #a69ded45; }
.orbit-axis { width: calc(var(--orbit-size) * .95); aspect-ratio: 19 / 7; border: 1px solid #6654cd73; border-radius: 50%; rotate: -33deg; }
.orbit-core { color: #5947cb; filter: drop-shadow(0 0 16px #b1b6fd); }
.orbit-core svg { width: calc(var(--orbit-size) * .25); height: auto; }
.hero-art i { position: absolute; top: 50%; left: 55%; width: 5px; height: 5px; border-radius: 50%; background: #6754d4; box-shadow: 0 0 9px #a7a0ef; }
.hero-art i:nth-of-type(1) { translate: calc(var(--orbit-size) * .32) calc(var(--orbit-size) * -.24); }
.hero-art i:nth-of-type(2) { translate: calc(var(--orbit-size) * -.36) calc(var(--orbit-size) * .14); width: 4px; height: 4px; }
.hero-art i:nth-of-type(3) { translate: calc(var(--orbit-size) * -.15) calc(var(--orbit-size) * -.24); width: 4px; height: 4px; }
.search-form { display: flex; gap: 10px; margin: 23px 0 20px; }
.search-box, .select-wrap { position: relative; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.search-box { flex: 1; padding: 0 13px; }
.search-box:focus-within, .select-wrap:focus-within { border-color: var(--accent); }
.search-box input, .select-wrap select { min-width: 0; width: 100%; min-height: 46px; border: 0; background: transparent; color: var(--text); }
.search-box input:focus, .select-wrap select:focus { outline: none; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.select-wrap { min-width: 130px; }
.select-wrap select { padding: 0 34px 0 12px; appearance: none; cursor: pointer; }
.select-wrap option { color: var(--text); background: var(--surface); }
.select-wrap svg { position: absolute; right: 11px; pointer-events: none; }
.search-form .button { padding-inline: 20px; }
.search-form .select-wrap select { font-size: .875rem; }
.area-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 33px; }
.area-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.area-card:hover, .resource-card:hover { border-color: var(--accent-line); background: var(--surface-hover); }
.area-icon, .resource-mark { flex: none; width: 41px; height: 41px; display: grid; place-items: center; border-radius: 10px; }
.area-development, .color-0, .color-3 { background: #e9eeff; color: #4554b2; }
.area-creation, .color-1, .color-4 { background: #f2eaff; color: #743cad; }
.area-productivity, .color-2, .color-5 { background: #e3f5f3; color: #12756c; }
.area-card strong, .area-card small { display: block; }
.area-card strong { font-size: .94rem; }
.area-card small { color: var(--muted); font-size: .82rem; line-height: 1.35; margin-top: 2px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { font-size: 1.55rem; line-height: 1.25; letter-spacing: -.045em; }
.section-heading p, .page-heading p { color: var(--muted); margin-top: 4px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.resource-card { display: flex; min-width: 0; flex-direction: column; min-height: 214px; background: var(--surface); padding: 16px; border: 1px solid var(--line); border-radius: 13px; }
.card-top { display: flex; align-items: center; gap: 8px; min-height: 41px; }
.compare-toggle { display: grid; place-items: center; margin-left: auto; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; }
.compare-toggle:hover, [data-compare][aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.placement { color: #5042ad; background: var(--accent-soft); padding: 3px 7px; font-size: .78rem; font-weight: 650; border-radius: 5px; }
.placement.sponsored { background: #fff2d8; color: #84521c; }
.resource-card h3 { font-size: 1.16rem; letter-spacing: -.025em; line-height: 1.35; margin: 13px 0 5px; overflow-wrap: anywhere; }
.resource-card h3 a:hover, .queue h2 a:hover, .comparison a:hover { color: var(--accent); }
.resource-card p { font-size: .91rem; color: var(--muted); margin-bottom: 15px; overflow-wrap: anywhere; }
.card-tags, .chip-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.card-tags { margin-top: auto; }
.chip-links { margin: 0 0 25px; }
.pill { display: inline-flex; align-items: center; width: fit-content; min-height: 27px; padding: 3px 8px; border: 1px solid var(--line); background: #f4f6fa; color: #44526e; border-radius: 6px; font-size: .8125rem; line-height: 1.25; overflow-wrap: anywhere; }
a.pill:hover { color: var(--accent); border-color: var(--accent-line); }
.type-pill { background: transparent; color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; color: var(--muted); }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); margin-bottom: 16px; font-size: .875rem; }
.crumb a:hover { color: var(--accent); }
.crumb [aria-current] { color: var(--text); overflow-wrap: anywhere; }
.page-heading { margin-bottom: 26px; }
.page-heading h1, .detail-panel h1 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); margin: 5px 0 8px; overflow-wrap: anywhere; }
.panel, .empty { border: 1px solid var(--line); padding: clamp(18px, 3vw, 31px); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.empty { display: grid; justify-items: start; gap: 9px; }
.empty p { color: var(--muted); }
.empty .button { margin-top: 5px; }
.form-panel { max-width: 620px; display: grid; gap: 17px; }
.form-panel.wide { max-width: 800px; }
.form-panel > .button { width: fit-content; }
.field { min-width: 0; display: grid; gap: 6px; font-size: .91rem; color: var(--text); font-weight: 600; }
.field input, .field textarea, .field .select-wrap { padding: 10px 12px; width: 100%; color: var(--text); min-height: 45px; background: var(--surface); border: 1px solid #cbd4e3; border-radius: 8px; font-weight: 400; }
.field .select-wrap { padding: 0; }
.field textarea { resize: vertical; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.notice { padding: 10px 13px; border-radius: 8px; background: #e4f6ef; color: #175c49; margin: 0 0 12px; }
.form-panel .notice { margin: 0; }
.notice-error { background: #fdecef; color: #a3213c; }
.detail-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 20px; row-gap: 15px; margin-bottom: 20px; padding-top: clamp(24px, 3.5vw, 38px); }
.detail-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #6654db, #8c80e6 54%, #83b5df); }
.detail-mark { width: 64px; height: 64px; border-radius: 15px; }
.detail-title, .detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.detail-title { gap: 9px 12px; }
.detail-title h1 { margin: 0; font-size: clamp(1.85rem, 3.6vw, 3.1rem); }
.detail-description { color: var(--muted); max-width: 64ch; margin-top: 9px; overflow-wrap: anywhere; }
.detail-tags { margin-top: 13px; }
.category-pill { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 650; }
.integration-pill { background: var(--accent-soft); color: var(--accent); }
.detail-top-actions { display: grid; grid-template-columns: 1fr 1fr; justify-self: end; gap: 7px; }
.detail-top-actions .button { padding-inline: 10px; }
.detail-top-actions .button-primary { grid-column: 1 / -1; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr); gap: 20px; align-items: start; }
.detail-main, .detail-side { min-width: 0; display: grid; gap: 16px; }
.detail-layout h2 { margin: 0 0 14px; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.detail-overview p { color: #34435d; line-height: 1.7; overflow-wrap: anywhere; }
.detail-overview p + p { margin-top: 12px; }
.developer-panel h2 { display: flex; align-items: center; gap: 9px; }
.developer-panel h2 svg { color: var(--accent); }
.developer-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 14px; margin: 0; }
.developer-facts div { padding: 11px 13px; background: var(--bg); border-radius: 8px; }
.developer-facts dt { color: var(--muted); font-size: .875rem; font-weight: 650; }
.developer-facts dd { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 0; overflow-wrap: anywhere; }
.developer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.developer-facts + .developer-links { margin-top: 15px; }
.developer-links a, .developer-facts a:not(.pill) { color: var(--accent); font-size: .9375rem; font-weight: 650; }
.developer-links a:hover, .developer-facts a:not(.pill):hover { text-decoration: underline; }
.developer-fields, .developer-choices { min-width: 0; }
.developer-fields { display: grid; gap: 12px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.developer-fields > legend { padding-inline: 5px; font-weight: 700; }
.developer-choices { border: 0; margin: 0; padding: 0; }
.developer-choices legend { padding: 0; font-size: .91rem; font-weight: 600; }
.developer-choices div { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 5px; }
.developer-choices label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .875rem; }
.developer-choices input { margin: 0; accent-color: var(--accent); }
.detail-list ul, .detail-related ul { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; align-items: flex-start; gap: 9px; color: #34435d; overflow-wrap: anywhere; }
.detail-list li + li { margin-top: 10px; }
.list-check { flex: none; display: grid; place-items: center; width: 21px; height: 21px; margin-top: 2px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); }
.detail-meta dl { margin: 0; }
.detail-meta dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.detail-meta dl > div:last-child { padding-bottom: 0; }
.detail-meta dt { color: var(--muted); }
.detail-meta dd { margin: 0; text-align: end; font-weight: 650; overflow-wrap: anywhere; }
.detail-pricing > * { display: block; }
.detail-pricing > * + * { margin-top: 3px; }
.detail-meta a, .detail-related svg { color: var(--accent); }
.detail-meta a:hover { text-decoration: underline; }
.detail-related h2 { display: flex; align-items: center; gap: 7px; }
.detail-related a { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8f9fd; font-size: .875rem; font-weight: 650; }
.detail-related li + li { margin-top: 7px; }
.detail-related a:hover { border-color: var(--accent-line); color: var(--accent); }
.comparison-wrap { overflow-x: auto; padding: 0; margin-bottom: 14px; }
.comparison { border-collapse: collapse; width: 100%; text-align: left; }
.comparison th, .comparison td { vertical-align: top; border-top: 1px solid var(--line); padding: 13px 16px; min-width: 155px; overflow-wrap: anywhere; }
.comparison thead th { border-top: none; }
.comparison tbody th { color: var(--muted); min-width: 105px; }
.token-created, .mcp-connection { margin-bottom: 16px; }
.token-created input, .mcp-connection code { font-family: ui-monospace, monospace; }
.mcp-connection { margin-top: 16px; }
.mcp-connection dl { margin: 8px 0 0; display: grid; gap: 8px; }
.mcp-connection dl > div { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.mcp-connection dt { color: var(--muted); min-width: 116px; }
.mcp-connection dd { margin: 0; overflow-wrap: anywhere; }
.admin-token-list > h2 { margin-bottom: 8px; }
.queue { padding-block: 0; }
.queue article { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 15px; }
.queue article + article { border-top: 1px solid var(--line); }
.queue h2, .queue h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
.queue article p { overflow-wrap: anywhere; }
.queue article p, .queue time { font-size: .875rem; color: var(--muted); }
footer { display: flex; align-items: center; justify-content: space-between; padding: 17px clamp(20px, 4vw, 54px); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; gap: 12px; }
footer span { display: flex; align-items: center; gap: 7px; }
footer a:hover { color: var(--accent); }
@media (max-width: 1120px) {
  :root { --rail-size: 217px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-card { align-items: flex-start; }
  .area-card small { display: none; }
}
@media (max-width: 850px) {
  .sidebar { position: static; width: auto; border: 0; z-index: auto; }
  .sidebar > .brand, .sidebar nav { display: none; }
  .sidebar.open { position: absolute; z-index: 4; top: 63px; left: 0; right: 0; border-bottom: 1px solid var(--line); }
  .sidebar.open nav { display: block; max-height: calc(100dvh - 64px); padding-top: 12px; }
  .sidebar.open .nav-children { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { min-height: 64px; padding-block: 10px; }
  .page { margin-left: 0; }
  .mobile-menu { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; width: 36px; height: 36px; background: var(--surface); color: var(--text); }
}
@media (max-width: 570px) {
  .content { padding-top: 21px; }
  .topbar { padding-inline: 12px; }
  .topbar-name { font-size: .8rem; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .button { min-height: 36px; padding-inline: 7px; font-size: .8rem; }
  .topbar-actions .button svg, .desktop-only { display: none; }
  .hero-art { opacity: .36; }
  .search-form { flex-wrap: wrap; }
  .search-box { flex: 1 0 100%; }
  .search-form .select-wrap { flex: 1; min-width: 0; }
  .search-form .button { padding-inline: 12px; }
  .area-strip { grid-template-columns: 1fr; gap: 7px; margin-bottom: 24px; }
  .area-card { align-items: center; padding: 8px 12px; }
  .area-card small { display: block; }
  .area-icon { width: 35px; height: 35px; }
  .card-grid, .field-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 0; }
  .section-heading { align-items: flex-start; }
}
@media (max-width: 365px) {
  .search-form .button { flex-basis: 100%; }
}
@container (max-width: 690px) {
  .detail-layout { grid-template-columns: 1fr; gap: 16px; }
}
@container (max-width: 540px) {
  .detail-panel { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
  .detail-mark { width: 46px; height: 46px; border-radius: 12px; }
  .detail-mark svg { width: 25px; height: 25px; }
  .detail-top-actions { grid-column: 1 / -1; display: flex; justify-self: start; }
}

.admin-console {
  --bg: #f5f6fa;
  --text: #141b2d;
  --line: #e1e4ee;
  --muted: #58637b;
  --accent: #5140ce;
  --accent-soft: #eeebff;
  --rail-size: clamp(218px, 19vw, 276px);
}
.admin-console .page { margin-left: var(--rail-size); min-width: 0; }
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-size);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 18px;
  overflow-y: auto;
  background: var(--rail);
  border-right: 1px solid var(--line);
}
.admin-brand { display: flex; align-items: center; gap: 11px; width: fit-content; padding-inline: 8px; }
.admin-brand-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #101525;
  color: #fff;
}
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand small { color: var(--muted); font-size: .8rem; }
.admin-navigation { display: grid; gap: 22px; }
.admin-nav-group .nav-link + .nav-link { margin-top: 3px; }
.admin-nav-group .nav-link svg { color: var(--muted); }
.admin-nav-group .nav-link.active svg { color: inherit; }
.admin-sidebar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.admin-sidebar-actions .button { font-size: .8rem; padding-inline: 10px; }

.admin-console .content { max-width: 1500px; padding: clamp(48px, 7vw, 86px) clamp(24px, 3.3vw, 52px) 56px; }
.admin-console .page-heading h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.admin-console .page-heading .eyebrow { color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .16em; }
.admin-tools-panel { padding: 0; }
.admin-tools-search.search-form { margin: 0; padding: 16px; align-items: stretch; }
.admin-tools-search .button { flex-basis: auto; }
.admin-tools-search .search-box { min-width: 0; }
.admin-table-wrap { overflow-x: auto; border-radius: 0 0 13px 13px; }
.admin-table { width: 100%; min-width: 740px; border-collapse: collapse; text-align: left; font-size: .875rem; }
.admin-table thead { background: var(--bg); color: var(--muted); }
.admin-table th, .admin-table td { padding: 15px 14px; border-top: 1px solid var(--line); }
.admin-table thead th { font-weight: 650; white-space: nowrap; }
.admin-table th:first-child { width: 32%; }
.admin-table th:last-child { text-align: right; }
.admin-tool { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.admin-tool-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dceaf0;
  border-radius: 12px;
  background: #e8f5fa;
  color: #166887;
}
.admin-table tr:nth-child(even) .admin-tool-mark { color: var(--accent); background: var(--accent-soft); border-color: #e5e0ff; }
.admin-tool a { font-size: .96rem; }
.admin-tool a:hover { color: var(--accent); text-decoration: underline; }
.admin-tool code { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
.admin-status { display: inline-block; padding: 3px 8px; border: 1px solid #a0e8cd; border-radius: 7px; background: #e9fbf4; color: #05664a; font-weight: 650; white-space: nowrap; }
.admin-row-actions { display: flex; justify-content: flex-end; gap: 7px; }
.admin-row-actions .button { min-height: 34px; padding-inline: 9px; color: var(--muted); }
.admin-row-actions .admin-delete:hover { color: #a3213c; border-color: #efbbbd; background: #fff1f2; }
.admin-tools-empty { border-top: 1px solid var(--line); padding: 32px 16px; text-align: center; }
.admin-tools-empty h2 { font-size: 1rem; }

@media (max-width: 850px) {
  .admin-console .page { margin-left: 0; }
  .admin-sidebar { position: static; width: auto; gap: 14px; padding: 16px clamp(20px, 4vw, 34px); border: 0; border-bottom: 1px solid var(--line); }
  .admin-brand { padding: 0; }
  .admin-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-console .content { padding-top: 34px; }
}
@media (max-width: 400px) {
  .admin-nav-group .nav-link { gap: 6px; padding-inline: 6px; font-size: .8rem; }
  .admin-tools-search.search-form { padding: 12px; }
}

.admin-tag-panel { margin-top: 16px; }
.admin-tag-list { border-top: 1px solid var(--line); padding-inline: 16px; }
.admin-tag-rename { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-tag-rename input {
  min-height: 40px;
  width: min(180px, 100%);
  padding: 7px 9px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.tag-help { color: var(--muted); font-size: .875rem; }
.tag-help a { color: var(--accent); text-decoration: underline; }
.admin-tag-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 6px 12px;
  max-height: 180px;
  margin-top: 7px;
  padding: 5px;
  overflow: auto;
}
.admin-tag-options label { display: flex; align-items: baseline; gap: 6px; overflow-wrap: anywhere; }

.related-tools { margin-top: 20px; }
.related-tools h2 { margin-bottom: 14px; font-size: 1.2rem; }
.related-tools ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.related-tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow-wrap: anywhere;
}
.related-tool:hover { background: var(--surface-hover); border-color: var(--accent-line); }
.related-tool-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: .85rem;
  font-weight: 750;
}
.related-tool h3 { font-size: 1rem; }
.related-tool p { color: var(--muted); font-size: .9rem; }
