:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --ink: #172026;
  --muted: #66737d;
  --line: #dde4e1;
  --panel: #ffffff;
  --accent: #0f7b6c;
  --accent-2: #b7791f;
  --accent-3: #2f6f9f;
  --danger: #b42318;
  --ok: #047857;
  --shadow: 0 8px 24px rgba(26, 35, 32, .06);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, #f4faf8 360px),
    var(--bg);
  color: var(--ink);
}

.directory-page {
  background: #fafafa;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: flex;
  height: 64px;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--ink);
  font-weight: 800;
}

.tool-topbar {
  align-items: center;
  gap: 18px;
}

.tool-brand {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.brand-logo {
  flex: 0 0 auto;
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.brand-text {
  align-items: baseline;
  display: inline-flex;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

.brand-text strong {
  color: #172026;
  font-family: "Georgia", "Songti SC", "SimSun", serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text em {
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .02em;
}

.tool-current-title {
  border-left: 1px solid var(--line);
  color: #27343c;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.15;
  margin-left: 4px;
  max-width: 360px;
  overflow: hidden;
  padding-left: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-top-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  min-width: 0;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.top-breadcrumb {
  align-items: center;
  color: #77858d;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 10px;
}

.top-breadcrumb a:hover,
.top-breadcrumb strong {
  color: #172026;
}

.feedback-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  color: #27343c;
  display: inline-flex;
  gap: 7px;
  font-size: 14px;
  font-weight: 760;
  min-height: 36px;
  padding: 0 8px;
}

.feedback-icon {
  display: block;
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.feedback-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feedback-trigger:hover {
  color: var(--accent);
}

.language-select {
  position: relative;
}

.language-select select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #66737d 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #66737d 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #26343e;
  font-size: 14px;
  min-height: 42px;
  min-width: 118px;
  padding: 0 38px 0 16px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.tool-link,
button,
select,
input,
textarea {
  border-radius: 6px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.workspace {
  display: grid;
  gap: 22px;
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 28px auto;
  max-width: 1520px;
  padding: 0 24px;
  scroll-margin-top: 84px;
}

.tool-workspace {
  display: block;
  max-width: 1440px;
}

.tool-page-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 28px auto 0;
  max-width: 1440px;
  padding: 0 24px;
}

.tool-page-head h1 {
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
}

.tool-family-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px auto 0;
  max-width: 1440px;
  padding: 0 24px;
}

.tool-family-nav span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 760;
  margin-right: 4px;
}

.tool-family-nav a {
  background: #fff;
  border: 1px solid #dfe7e3;
  border-radius: 999px;
  color: #34444c;
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  padding: 8px 10px;
}

.tool-family-nav a:hover,
.tool-family-nav a.active {
  background: #eef8f5;
  border-color: var(--accent);
  color: #075e58;
}

.breadcrumb {
  color: #a0a8ad;
  font-size: 13px;
  margin: 0;
}

.breadcrumb a {
  color: #6f7a82;
}

.breadcrumb span {
  margin: 0 8px;
}

.directory-hero {
  background: linear-gradient(180deg, #eef8f5 0, #f7fbfa 100%);
  border-bottom: 1px solid var(--line);
  margin: 0 0 22px;
  padding: 46px 24px 34px;
  text-align: center;
}

.directory-hero h1 {
  color: #162027;
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
}

.directory-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 14px auto 24px;
  max-width: 820px;
}

.directory-search {
  display: block;
  margin: 0 auto;
  max-width: 680px;
  position: relative;
}

.directory-search::before {
  color: #8a969d;
  content: "⌕";
  font-size: 22px;
  left: 18px;
  line-height: 1;
  position: absolute;
  top: 13px;
}

.directory-search input {
  background: #fff;
  border: 1px solid #d8dfdc;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(32, 47, 43, .08);
  font-size: 15px;
  height: 52px;
  padding: 0 18px 0 48px;
  width: 100%;
}

.latest-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px auto 0;
}

.latest-tools span {
  color: var(--muted);
  font-size: 13px;
}

.latest-tools a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #33424b;
  font-size: 13px;
  padding: 7px 11px;
}

.latest-tools a:hover {
  border-color: var(--accent);
  color: #075e58;
}

.intent-section,
.workflow-section {
  margin: 0 auto 22px;
  max-width: 1440px;
  padding: 0 24px;
}

.section-title-row {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
}

.section-title-row h2 {
  color: #172026;
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
}

.section-title-row > span {
  align-items: center;
  background: #edf5f2;
  border: 1px solid #d4e5df;
  border-radius: 999px;
  color: #0f6f63;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  height: 26px;
  justify-content: center;
  min-width: 34px;
  padding: 0 9px;
}

.intent-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intent-card {
  background: #fff;
  border: 1px solid #e0e7e4;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 128px;
  padding: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.intent-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(25, 44, 39, .07);
  transform: translateY(-1px);
}

.intent-card strong {
  color: #172026;
  font-size: 15px;
  line-height: 1.25;
}

.intent-card span {
  color: var(--muted);
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.intent-card small,
.related-card small {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.intent-card em,
.related-card em {
  background: #eef8f5;
  border: 1px solid #d4e5df;
  border-radius: 999px;
  color: #0d7065;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  line-height: 1;
  padding: 5px 7px;
}

.workflow-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-card {
  background: linear-gradient(180deg, #ffffff 0, #f8fbfa 100%);
  border: 1px solid #e0e7e4;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 15px;
}

.workflow-card h3 {
  color: #172026;
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}

.workflow-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.workflow-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workflow-card a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #31424b;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
}

.workflow-card a:hover {
  border-color: var(--accent);
  color: #075e58;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 38px auto 0;
  max-width: 1440px;
  padding: 34px 24px 42px;
  text-align: center;
}

.site-footer p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
}

.site-footer a {
  color: var(--accent);
  font-size: 15px;
  font-weight: 760;
}

.site-footer a:hover {
  color: #075e58;
  text-decoration: underline;
}

.friend-links {
  display: grid;
  gap: 10px;
  width: min(820px, 100%);
  margin: 10px auto 0;
  color: var(--muted);
}

.friend-links strong {
  color: var(--text);
  font-size: 0.9rem;
}

.friend-links nav {
  gap: 8px;
  justify-content: center;
}

.friend-links a {
  font-size: 0.86rem;
}

.site-footer small {
  color: #8b969d;
  font-size: 13px;
}

.info-page {
  background:
    linear-gradient(180deg, #ffffff 0, #f4faf8 360px),
    var(--bg);
}

.info-page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 35, 32, .05);
  margin: 42px auto 0;
  max-width: 980px;
  padding: 34px;
}

.info-page-card h1 {
  font-size: 32px;
  line-height: 1.15;
}

.info-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 14px 0 28px;
}

.info-page-card section {
  border-top: 1px solid #edf1ef;
  padding: 22px 0 0;
}

.info-page-card section + section {
  margin-top: 22px;
}

.info-page-card h2 {
  color: #172026;
  font-size: 19px;
  margin: 0 0 9px;
}

.info-page-card section p {
  color: #52616b;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.path-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-card {
  background: #f8fbfa;
  border: 1px solid #e0e7e4;
  border-radius: 8px;
  padding: 16px;
}

.path-card h3 {
  color: #172026;
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.path-card ol {
  color: #53616a;
  display: grid;
  font-size: 14px;
  gap: 8px;
  line-height: 1.55;
  margin: 0;
  padding-left: 20px;
}

.comparison-table-wrap {
  border: 1px solid #e0e7e4;
  border-radius: 8px;
  overflow-x: auto;
}

.comparison-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid #e0e7e4;
  color: #33424b;
  font-size: 14px;
  line-height: 1.55;
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #f3f8f6;
  color: #172026;
  font-size: 13px;
  font-weight: 850;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.directory-shell {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 220px minmax(0, 1fr);
  margin: 0 auto 48px;
  max-width: 1440px;
  padding: 0 24px;
}

.directory-sidebar {
  background: #fff;
  border: 1px solid #e4e8e6;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 18px;
  position: sticky;
  top: 84px;
}

.directory-sidebar h2 {
  color: #27343c;
  font-size: 18px;
  margin: 0 0 8px;
}

.directory-sidebar nav {
  display: grid;
  gap: 7px;
}

.directory-sidebar nav a {
  align-items: center;
  border-radius: 6px;
  color: #52616b;
  display: flex;
  font-size: 15px;
  justify-content: space-between;
  min-height: 40px;
  padding: 9px 11px;
}

.directory-sidebar nav a:hover {
  background: #eef8f5;
  color: #075e58;
}

.directory-sidebar nav strong {
  color: #84949c;
  font-size: 13px;
}

.directory-wrap {
  display: grid;
  gap: 22px;
}

.directory-section {
  background: #fff;
  border: 1px solid #e5e9e7;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.directory-section-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.directory-section-head h2 {
  font-size: 18px;
  margin: 0;
}

.directory-section-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.directory-section-head span {
  align-items: center;
  background: #edf5f2;
  border: 1px solid #d4e5df;
  border-radius: 999px;
  color: #0f6f63;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  min-width: 30px;
  padding: 0 8px;
}

.directory-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.directory-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e6e3;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 10px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.directory-card[hidden],
.directory-section[hidden] {
  display: none !important;
}

.directory-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(22, 32, 39, .06);
  transform: translateY(-1px);
}

.directory-icon {
  align-items: center;
  background: #e8f5f1;
  border-radius: 5px;
  color: #0f766e;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 11px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.directory-card.developer .directory-icon {
  background: #eef4fb;
  color: #2f6f9f;
}

.directory-card.media .directory-icon {
  background: #eef7f5;
  color: #0b766b;
}

.directory-card.image .directory-icon {
  background: #eaf3f8;
  color: #2f6f9f;
}

.directory-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.directory-copy strong {
  color: #1f2d35;
  font-size: 14px;
  line-height: 1.25;
}

.directory-copy small {
  color: var(--muted);
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.directory-copy em {
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.tool-tile-hub {
  margin: 26px auto 0;
  max-width: 1320px;
  padding: 0 24px;
}

.hub-intro {
  margin: 0 0 16px;
}

.hub-intro h2 {
  font-size: 26px;
  margin: 0;
}

.tool-category-grid {
  display: grid;
  gap: 14px;
}

.tool-category {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.category-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
}

.category-head h2 {
  color: #26343e;
  font-size: 15px;
  font-weight: 850;
  margin: 0;
}

.category-head span {
  align-items: center;
  background: #edf5f2;
  border: 1px solid #d4e5df;
  border-radius: 999px;
  color: #0f6f63;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  min-width: 30px;
  padding: 0 8px;
}

.tool-tile-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

.tool-tile {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe6e3;
  border-radius: 10px;
  color: #26343e;
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 760;
  height: 58px;
  justify-content: flex-start;
  line-height: 1.2;
  min-width: 0;
  padding: 0 12px;
  text-align: left;
}

.tool-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tool-mark {
  align-items: center;
  background: #e8f5f1;
  border-radius: 999px;
  color: #0f6f63;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  width: 34px;
}

.tool-tile.data .tool-mark {
  background: #eef7f5;
  color: #0f766e;
}

.tool-tile.developer .tool-mark {
  background: #eef4fb;
  color: #2f6f9f;
}

.tool-tile.media .tool-mark {
  background: #eef7f5;
  color: #0b766b;
}

.tool-tile.image .tool-mark {
  background: #f4f1ec;
  color: #835b28;
}

.tool-tile:hover,
.tool-tile.active {
  background: #f7fbfa;
  border-color: #0f766e;
  color: #075e58;
  transform: translateY(-1px);
}

.tool-tile.active .tool-mark,
.tool-tile:hover .tool-mark {
  background: #0f766e;
  color: #ffffff;
}

.sidebar {
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
  position: sticky;
  top: 88px;
}

.side-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  padding: 2px 4px 6px;
  text-transform: uppercase;
}

.tool-list {
  display: grid;
  gap: 14px;
}

.tool-group {
  display: grid;
  gap: 3px;
}

.group-title {
  align-items: center;
  color: #4b5964;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 850;
  justify-content: space-between;
  letter-spacing: 0;
  list-style: none;
  min-height: 32px;
  padding: 4px 3px 7px;
}

.group-title::-webkit-details-marker {
  display: none;
}

.fold-icon {
  align-items: center;
  background: #f8fafb;
  border: 1px solid #aebbc4;
  border-radius: 4px;
  color: #30414d;
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  justify-content: center;
  margin-left: 8px;
  order: 3;
  width: 22px;
}

.fold-icon::before {
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  content: "";
  height: 0;
  width: 0;
}

.tool-group[open] .fold-icon::before {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  border-bottom: 0;
}

.group-title span:nth-child(2) {
  flex: 1;
  order: 1;
}

.group-title span:last-child {
  color: #7d8a94;
  letter-spacing: 0;
  order: 2;
}

.tool-link {
  color: #34414b;
  display: block;
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  padding: 8px 9px 8px 10px;
  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-link[hidden],
.tool-group[hidden] {
  display: none !important;
}

.tool-link:hover,
.tool-link.active {
  background: #eef7f6;
  color: #075e58;
}

.tool-link.active::before {
  background: var(--accent);
  border-radius: 999px;
  bottom: 8px;
  content: "";
  left: 3px;
  position: absolute;
  top: 8px;
  width: 3px;
}

.tool-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(31, 45, 53, .04);
  min-height: 650px;
  padding: 22px;
}

.tool-workspace .tool-panel {
  min-height: 0;
}

.tool-heading {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: 19px;
  margin: 0 0 14px;
}

.tool-heading p:not(.eyebrow) {
  color: var(--muted);
  margin: 10px 0 0;
}

.tool-select-label {
  color: var(--muted);
  display: grid;
  flex: 0 0 230px;
  font-size: 12px;
  gap: 6px;
}

select,
input,
textarea,
button {
  font: inherit;
}

select,
input,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

select,
input {
  min-height: 40px;
  padding: 0 10px;
}

textarea {
  line-height: 1.5;
  min-height: 330px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

button {
  background: #24313b;
  border: 1px solid #24313b;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0 13px;
}

button.secondary {
  background: #fff;
  border-color: var(--line);
  color: #26343e;
}

button.accent {
  background: var(--accent);
  border-color: var(--accent);
}

.button-link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #26343e;
  display: inline-flex;
  font-weight: 700;
  min-height: 40px;
  padding: 0 13px;
}

.accent-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tool-mount {
  margin-top: 24px;
}

.text-grid,
.image-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.control-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0;
}

.control-row label {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
}

.panel-lite {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.status {
  border-left: 3px solid var(--accent-3);
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  min-height: 26px;
  padding: 4px 0 4px 10px;
}

.status.error {
  border-left-color: var(--danger);
  color: var(--danger);
}

.status.ok {
  border-left-color: var(--ok);
  color: var(--ok);
}

.preview {
  align-items: center;
  background:
    linear-gradient(45deg, #edf1f3 25%, transparent 25%),
    linear-gradient(-45deg, #edf1f3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf1f3 75%),
    linear-gradient(-45deg, transparent 75%, #edf1f3 75%);
  background-color: #fff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
  min-height: 330px;
  overflow: hidden;
}

.preview img,
.preview canvas {
  max-height: 310px;
  max-width: 100%;
}

.dropzone {
  align-items: center;
  border: 1px dashed #9aa8b2;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 120px;
  padding: 18px;
  text-align: center;
}

.dropzone.dragging {
  background: #e7f4f2;
  border-color: var(--accent);
  color: #075e58;
}

.metrics {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 6px;
  margin-top: 12px;
}

.result-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.result-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 8px;
}

.result-item span {
  color: var(--muted);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-item button {
  min-height: 32px;
}

.tool-info-card,
.related-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 22px auto 0;
  max-width: 1440px;
  overflow: hidden;
}

.info-tabs {
  background: #f5f5f4;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2px;
  padding: 6px;
}

.info-tabs a {
  border-radius: 5px;
  color: #5b6870;
  font-size: 14px;
  padding: 8px 12px;
}

.info-tabs a:first-child,
.info-tabs a:hover {
  background: #fff;
  color: #162027;
}

.info-content {
  display: grid;
  gap: 26px;
  padding: 28px 32px;
}

.info-content section + section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.info-content p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.related-section {
  border: 0;
  background: transparent;
  overflow: visible;
}

.related-section h2,
.guide-link-section h2 {
  margin: 0 0 14px;
}

.related {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
}

.related-card strong {
  color: #1f2d35;
  font-size: 15px;
}

.related-card span {
  color: var(--muted);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guide-link-section {
  margin: 22px auto 48px;
  max-width: 1440px;
}

.guide-link-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-link-card {
  background: #f8fbfa;
  border: 1px solid #dbe7e3;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 16px;
}

.guide-link-card strong {
  color: #172026;
  font-size: 15px;
}

.guide-link-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.feature-list,
.seo-list {
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.45;
  margin: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.seo-list {
  padding-left: 20px;
}

.seo-list li::marker {
  color: var(--accent);
  font-weight: 800;
}

.tool-example-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-example-grid article {
  background: #f8fbfa;
  border: 1px solid #e0e7e4;
  border-radius: 8px;
  min-width: 0;
  padding: 14px;
}

.tool-example-grid h3 {
  color: #172026;
  font-size: 14px;
  line-height: 1.3;
  margin: 0 0 9px;
}

.tool-example-grid pre {
  background: #ffffff;
  border: 1px solid #e0e7e4;
  border-radius: 8px;
  color: #27343c;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  overflow-x: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.tool-caution {
  background: #f3f8f6;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  color: #33424b;
  margin: 12px 0 0;
  padding: 11px 13px;
}

details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

details:first-of-type {
  border-top: 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  color: var(--muted);
  margin: 8px 0 0;
}

.feedback-modal[hidden] {
  display: none !important;
}

.feedback-modal {
  inset: 0;
  position: fixed;
  z-index: 50;
}

.feedback-backdrop {
  background: transparent;
  inset: 0;
  position: absolute;
}

.feedback-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(23, 32, 38, .16);
  left: var(--feedback-left, auto);
  max-width: 560px;
  padding: 24px;
  position: absolute;
  top: var(--feedback-top, 76px);
  width: var(--feedback-width, min(calc(100vw - 24px), 560px));
}

.feedback-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.feedback-head h2 {
  margin: 0;
}

.feedback-close {
  background: #fff;
  border-color: var(--line);
  color: #52616b;
  font-size: 20px;
  min-height: 34px;
  padding: 0 10px;
}

.feedback-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.feedback-form {
  display: grid;
  gap: 18px;
}

.feedback-form label {
  color: #172026;
  display: grid;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
}

.feedback-form label em {
  color: var(--danger);
  font-style: normal;
}

.feedback-form input,
.feedback-form textarea {
  border-radius: 8px;
  font-size: 15px;
  min-height: 56px;
  padding: 0 14px;
}

.feedback-form textarea {
  min-height: 180px;
  padding: 14px;
}

.feedback-submit {
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 8px;
  font-size: 16px;
  min-height: 56px;
  width: 100%;
}

.feedback-submit:disabled {
  cursor: wait;
  opacity: .72;
}

@media (max-width: 880px) {
  .workspace,
  .text-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .directory-shell,
  .directory-grid,
  .intent-grid,
  .workflow-grid,
  .path-grid,
  .tool-example-grid,
  .guide-link-grid,
  .related {
    grid-template-columns: 1fr;
  }

  .directory-sidebar {
    position: static;
  }

  .tool-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    order: 2;
    position: static;
  }

  .tool-panel {
    order: 1;
  }

  .tool-heading {
    display: grid;
  }

  .tool-select-label {
    flex-basis: auto;
  }

  .result-item {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 16px;
  }

  .tool-topbar {
    align-items: stretch;
    height: auto;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .tool-top-actions,
  .topbar-actions {
    align-items: flex-start;
    display: grid;
  }

  .tool-brand {
    align-items: center;
    display: flex;
  }

  .tool-current-title {
    max-width: calc(100vw - 210px);
  }

  .tool-top-actions {
    justify-content: stretch;
  }

  .tool-page-head {
    align-items: stretch;
    display: grid;
    gap: 14px;
  }

  .tool-family-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tool-family-nav a,
  .tool-family-nav span {
    white-space: nowrap;
  }

  .info-tabs {
    overflow-x: auto;
  }

  .info-content {
    padding: 22px 18px;
  }
}

@media (min-width: 881px) and (max-width: 1180px) {
  .directory-grid,
  .intent-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



