.tools-page {
  min-width: 0;
}
.tools-page .toolbox-nav > summary {
  color: var(--navy);
  font-weight: 600;
}
.tools-main {
  width: min(1364px, calc(100% - 96px));
  margin: 0 auto;
  padding: 39px 0 56px;
}
.tools-heading {
  margin-bottom: 28px;
}
.tools-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.25;
}
.tools-heading p {
  margin: 7px 0 0;
  color: #536477;
  font-size: 14px;
}
.tools-layout {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.tools-categories {
  position: sticky;
  top: 96px;
  max-height: calc(100dvh - 116px);
  overflow: auto;
  padding: 8px;
  border: 1px solid #e1e8ee;
  border-radius: 10px;
  background: #fff;
}
.tools-categories ul, .tools-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tools-categories a {
  display: block;
  padding: 8px 11px;
  border-radius: 6px;
  color: #44576b;
  font-size: 14px;
  line-height: 1.4;
}
.tools-category {
  margin: 0 0 17px;
  padding: 20px;
  border: 1px solid #e1e8ee;
  border-radius: 10px;
  background: #fff;
  scroll-margin-top: 12px;
}
.tools-category h2 {
  margin: 0 0 14px;
  padding-inline-start: 10px;
  border-inline-start: 3px solid var(--orange);
  color: var(--navy);
  font-size: 17px;
  line-height: 1.35;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 8px;
}
.tools-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid #e8edf2;
  border-radius: 6px;
  background: #f7f9fb;
  color: #263c53;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.tools-grid a:hover, .tools-categories a:hover {
  color: #884220;
  background: #fff2e8;
}
.tools-grid a:focus-visible, .tools-categories a:focus-visible {
  outline: 2px solid #b05222;
  outline-offset: 1px;
}
.tool-arrow {
  flex: none;
  color: #60788f;
}
.tool-entry-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
@media (max-width: 1000px) {
  .tools-main { width: calc(100% - 64px); }
  .tools-page .top-nav { gap: 14px; }
  .tools-page .header-inner { gap: 18px; }
}
@media (max-width: 810px) {
  .tools-page .top-nav > a:not(:first-child) { display: none; }
  .tools-main { width: calc(100% - 32px); padding-top: 26px; }
  .tools-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tools-categories { position: static; max-height: none; }
  .tools-categories ul { display: flex; flex-wrap: wrap; gap: 2px; }
  .tools-page .toolbox-panel { position: fixed; top: 70px; right: 12px; }
}
@media (max-width: 500px) {
  .tools-heading { margin-bottom: 16px; }
  .tools-page .header-inner { width: calc(100% - 24px); gap: 8px; }
  .tools-page .header-logo, .tools-page .header-logo img { width: 100px; }
  .tools-page .top-nav > a { display: none; }
  .tools-page .studio-button.login-entry { padding: 8px; font-size: 13px; }
  .tools-category { padding: 14px; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
