:root {
  color-scheme: light;
  --paper: #faf9f6;
  --surface: #fff;
  --ink: #25282c;
  --muted: #62676e;
  --line: #d9d9d5;
  --soft: #f0efeb;
  --link: #215ba3;
  --focus: #8bb5ed;
  --error: #a53025;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden], .hidden { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -.035em; margin-bottom: 12px; }
h2 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 14px; }
h3 { font-size: 1rem; }
p { margin-bottom: 16px; }
code, pre, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.site-shell { max-width: 1180px; padding: 0 32px; margin: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; background: var(--surface); padding: 10px 16px; }
.skip-link:focus { top: 10px; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ink); }
.brand { color: var(--ink); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 1.2rem; font-weight: 700; letter-spacing: -.06em; text-decoration: none; }
.nav-links { display: flex; gap: 26px; font-size: .9rem; }
.nav-links a { text-decoration: none; padding: 10px 0; }
.nav-links a:hover, .nav-links [aria-current="page"] { text-decoration: underline; }
main { min-height: 65vh; padding: 36px 0 56px; }
.page-intro { margin-bottom: 24px; }
.page-intro p, .guide > p { color: var(--muted); }
.directory-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.directory-heading h1 { margin-bottom: 8px; }
.count { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.search-bar { position: relative; max-width: 640px; margin: 18px 0 16px; }
.search-bar input { padding-right: 50px; }
.search-shortcut { position: absolute; right: 12px; top: 9px; color: var(--muted); font: .85rem ui-monospace, Consolas, monospace; border: 1px solid var(--line); border-radius: 2px; padding: 0 6px; pointer-events: none; }
.search-bar input:not(:placeholder-shown) + .search-shortcut { display: none; }
.directory-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 24px; margin: 18px 0 16px; }
.directory-controls .search-bar { flex: 1 1 300px; margin: 0; }
.browse-control { display: flex; align-items: center; gap: 10px; font-size: .83rem; }
.browse-control label { white-space: nowrap; color: var(--muted); }
.browse-control select { width: auto; }
.browse-context { font-size: .85rem; overflow-wrap: anywhere; }
.browse-context a { margin-left: 8px; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 20px; }
.filter { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 7px 10px; font-size: .85rem; }
.filter[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 650; }
.filter:hover { color: var(--link); background: var(--soft); }
.list-heading, .tool-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 185px; column-gap: 24px; align-items: start; }
.list-heading { padding: 8px 12px; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: .75rem; }
.tool-list { list-style: none; margin: 0; padding: 0; }
.tool-list li { border-bottom: 1px solid var(--line); }
.tool-row { color: var(--ink); padding: 17px 12px; text-decoration: none; }
.tool-row:hover { background: var(--soft); }
.tool-row h2 { margin: 0 0 4px; color: var(--link); font-size: 1rem; font-weight: 650; }
.tool-row:hover h2 { text-decoration: underline; }
.tool-row p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.tool-category, .tool-provider { font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; padding-top: 2px; }
.tool-category { color: var(--muted); }
.directory-groups > li { padding: 20px 0 0; border-bottom: 0; }
.group-heading { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; }
.group-heading h2 { margin: 0; font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
.group-heading a { color: var(--ink); }
.group-provider { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.group-tools { list-style: none; padding: 0; margin: 12px 0 16px; border-top: 1px solid var(--line); }
.empty-state, .notice { padding: 24px 0; }
.empty-state p { color: var(--muted); }
.button, .small-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .87rem; font-weight: 600; }
.button:hover, .small-button:hover { border-color: var(--ink); background: var(--soft); }
.button.primary { border-color: var(--ink); background: var(--ink); color: white; }
.button.primary:hover { background: #41464c; }
.small-button { min-height: 34px; padding: 6px 10px; font-size: .8rem; }
.back-link { display: inline-block; font-size: .85rem; margin-bottom: 20px; }
.detail-heading { max-width: 850px; margin-bottom: 28px; }
.detail-heading p { color: var(--muted); font-size: .93rem; line-height: 1.65; }
.eyebrow { color: var(--muted); font-size: .8rem; margin-bottom: 8px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.tool-workspace, .tool-details { min-width: 0; }
.section-title { border-top: 1px solid var(--ink); padding-top: 13px; }
.field { display: block; margin-bottom: 18px; min-width: 0; }
.field-label, .detail-label { display: block; font-size: .83rem; font-weight: 600; margin-bottom: 6px; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #b9bdc1; border-radius: 3px; background: var(--surface); color: var(--ink); }
input[type="search"] { appearance: auto; }
textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--link); }
.field-help { display: block; color: var(--muted); font-size: .78rem; margin: 6px 0 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.result-panel { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.result-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.result-top h2 { margin: 0; font-size: .85rem; }
.result-top span { color: var(--muted); }
.result-content { padding: 16px 14px; min-height: 92px; max-height: 480px; overflow: auto; font-size: .85rem; color: var(--muted); }
.result-content pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font-size: .78rem; line-height: 1.65; }
.result-content img { max-width: min(100%, 320px); height: auto; display: block; }
.place-summary { margin: 0 0 12px; font-size: .8rem; }
.place-table-scroll { overflow: auto; max-width: 100%; margin-bottom: 12px; }
.place-table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: .8rem; }
.place-table th, .place-table td { padding: 9px 12px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.place-table th { font-size: .75rem; white-space: nowrap; }
.place-table td { min-width: 85px; }
.place-table td:first-child { min-width: 130px; }
.place-context { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.raw-response { border-top: 1px solid var(--line); padding-top: 12px; font-size: .8rem; }
.raw-response summary { color: var(--link); }
.raw-response pre { padding-top: 12px; }
.compatibility-feature { border-top: 1px solid var(--line); padding: 14px 0; color: var(--ink); }
.compatibility-feature h3 { margin-bottom: 6px; font-size: .93rem; overflow-wrap: anywhere; }
.feature-key { display: block; font-size: .77rem; margin-bottom: 12px; overflow-wrap: anywhere; }
.compatibility-note { font-size: .78rem; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.baseline-status { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.compatibility-table td:first-child { width: 135px; }
.compatibility-table td p { font-size: .77rem; margin: 5px 0 0; overflow-wrap: anywhere; }
.support-statement + .support-statement { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.compatibility-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0; }
.compatibility-feature a { font-size: .8rem; }
.related-tools { font-size: .83rem; margin-bottom: 24px; }
.related-tools h3 { font-size: .83rem; margin-bottom: 8px; }
.related-tools ul { margin: 0; padding-left: 18px; }
.related-tools li + li { margin-top: 6px; }
.error, .result-content.error { color: var(--error); }
.privacy-note { color: var(--muted); font-size: .78rem; line-height: 1.6; margin: 14px 0 0; }
.status-note { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.tool-feedback { border-bottom: 1px solid var(--line); padding: 20px 0; }
.tool-feedback h2 { font-size: .9rem; margin-bottom: 12px; }
.tool-feedback [aria-pressed="true"] { border-color: var(--link); color: var(--link); background: #edf3fb; }
.doc-table { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 10px 16px; margin: 0 0 24px; font-size: .83rem; }
.doc-table dt { color: var(--muted); }
.doc-table dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.request-block { margin: 20px 0; }
.code-block { display: block; background: var(--soft); color: var(--ink); margin: 8px 0; padding: 11px 12px; max-width: 100%; max-height: 190px; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; font: .77rem/1.65 ui-monospace, "Cascadia Code", Consolas, monospace; border: 1px solid var(--line); border-radius: 2px; }
.provider-site { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.provider-site a { min-width: 0; }
.text-button { padding: 0; border: 0; background: none; color: var(--muted); font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--link); }
.request-block .actions { margin-top: 8px; }
.report-box { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; font-size: .85rem; }
.report-box summary { color: var(--link); }
.report-box form { padding-top: 16px; }
.form-feedback { font-size: .85rem; line-height: 1.6; margin: 14px 0; overflow-wrap: anywhere; }
.form-feedback:empty { display: none; }
.guide { max-width: 780px; }
.guide section { margin-top: 28px; }
.guide section > h2 { padding-top: 14px; border-top: 1px solid var(--line); }
.guide p { font-size: .93rem; line-height: 1.7; }
.guide-links { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px 24px; font-size: .87rem; }
.guide-links dd { margin: 0; color: var(--muted); }
.guide code { overflow-wrap: anywhere; }
.add-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-section { border: 0; padding: 0; margin: 0; min-width: 0; }
.input-row { border: 1px solid var(--line); padding: 14px; margin: 14px 0; min-width: 0; background: var(--surface); }
.input-row legend { font-size: .8rem; font-weight: 650; padding: 0 5px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; font-size: .83rem; margin-right: 16px; }
.checkbox-label input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.input-row .actions { justify-content: space-between; }
.submission-status { padding: 20px; border: 1px solid var(--line); background: var(--surface); margin-top: 24px; }
#tool-json { min-height: 360px; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: white; padding: 10px 16px; border-radius: 3px; font-size: .85rem; z-index: 30; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); min-height: 80px; padding: 20px 0; color: var(--muted); font-size: .8rem; }
footer nav { display: flex; gap: 24px; }

@media (max-width: 850px) {
  .list-heading, .tool-row { grid-template-columns: minmax(0, 1fr) 100px 140px; gap: 18px; }
  .detail-layout { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .site-shell { padding: 0 18px; }
  .topbar { min-height: 64px; gap: 16px; }
  .nav-links { gap: 20px; }
  main { padding-top: 26px; }
  h1 { font-size: 1.6rem; }
  .page-intro { margin-bottom: 18px; }
  .list-heading { display: none; }
  .tool-list { border-top: 1px solid var(--ink); }
  .tool-row { grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; padding: 15px 0; }
  .tool-copy { grid-column: 1 / -1; }
  .tool-category, .tool-provider { font-size: .78rem; padding: 0; }
  .tool-provider { text-align: right; }
  .filters { gap: 2px 3px; }
  .filter { padding: 7px 8px; min-height: 36px; }
  .search-shortcut { display: none; }
  .add-columns { grid-template-columns: 1fr; gap: 0; }
  .guide-links { grid-template-columns: 1fr; gap: 6px; }
  .guide-links dd { margin-bottom: 12px; }
  .detail-heading { margin-bottom: 24px; }
  .doc-table { grid-template-columns: 76px minmax(0, 1fr); gap: 10px 12px; }
  .button, .small-button { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
