.ace-arc-scope--tools {
  --bg: #fffdf8;
  --panel: #fffaf2;
  --text: #11100d;
  --muted: #6e6a61;
  --line: rgba(17, 16, 13, 0.22);
  --line-strong: rgba(17, 16, 13, 0.48);
  --accent: #ff7518;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "DM Sans", Arial, sans-serif;
}

[data-theme="dark"] .ace-arc-scope--tools, .ace-arc-scope--tools[data-theme="dark"] {
  --bg: #0d0d0c;
  --panel: #151411;
  --text: #f8f2e9;
  --muted: #aca59b;
  --line: rgba(248, 242, 233, 0.18);
  --line-strong: rgba(248, 242, 233, 0.44);
}

.ace-arc-scope--tools * { box-sizing: border-box; border-radius: 0 !important; }
.ace-arc-scope--tools { background: var(--bg); color: var(--text); font-family: var(--font-sans); }
.ace-arc-scope--tools { margin: 0; min-width: 320px; background: var(--bg); }
.ace-arc-scope--tools button, .ace-arc-scope--tools a { font: inherit; }
.ace-arc-scope--tools button { color: inherit; }

.ace-arc-scope--tools .tools-page { width: min(100%, 1500px); min-height: 100vh; margin: 0 auto; padding: 0 32px 38px; }
.ace-arc-scope--tools .tools-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 88px; border-bottom: 1px solid var(--line); }
.ace-arc-scope--tools .tools-logo { display: inline-flex; width: 134px; min-height: 46px; align-items: center; }
.ace-arc-scope--tools .tools-logo img { display: block; width: 100%; max-height: 50px; object-fit: contain; object-position: left center; }
.ace-arc-scope--tools .tools-header-actions, .ace-arc-scope--tools .tools-nav { display: flex; align-items: center; }
.ace-arc-scope--tools .tools-header-actions { gap: 22px; }
.ace-arc-scope--tools .tools-nav { gap: clamp(18px, 3vw, 40px); }
.ace-arc-scope--tools .tools-nav a { color: var(--text); font-size: 12px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.ace-arc-scope--tools .tools-nav a:hover, .ace-arc-scope--tools .tools-nav a:focus-visible { color: var(--accent); }
.ace-arc-scope--tools .theme-toggle { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.ace-arc-scope--tools .theme-toggle:hover, .ace-arc-scope--tools .theme-toggle:focus-visible { border-color: var(--accent); color: var(--accent); }

.ace-arc-scope--tools .tools-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(360px, 0.75fr) minmax(190px, 0.35fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  padding: clamp(50px, 7vw, 84px) 0 34px;
}
.ace-arc-scope--tools .section-number, .ace-arc-scope--tools .eyebrow { color: var(--accent); font-weight: 800; }
.ace-arc-scope--tools .section-number { margin: 0 0 14px; font-size: 20px; }
.ace-arc-scope--tools .eyebrow { display: inline-flex; gap: 14px; align-items: center; margin: 0 0 28px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.ace-arc-scope--tools .eyebrow::after { width: 42px; height: 1px; background: var(--accent); content: ""; }
.ace-arc-scope--tools .hero-copy h1 { margin: 0; font-family: var(--font-serif); font-size: clamp(54px, 6vw, 98px); font-weight: 500; line-height: 1.03; letter-spacing: 0.06em; text-transform: uppercase; }
.ace-arc-scope--tools .hero-copy p:last-child { max-width: 640px; margin: 24px 0 0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.58; }
.ace-arc-scope--tools .hero-sketch { min-height: 250px; opacity: 0.55; }
.ace-arc-scope--tools .line-house { position: relative; width: 100%; height: 260px; border-bottom: 1px solid var(--line-strong); }
.ace-arc-scope--tools .line-house span { position: absolute; display: block; border: 1px solid var(--line-strong); }
.ace-arc-scope--tools .line-house span:nth-child(1) { left: 12%; bottom: 0; width: 68%; height: 122px; }
.ace-arc-scope--tools .line-house span:nth-child(2) { left: 25%; bottom: 122px; width: 42%; height: 70px; }
.ace-arc-scope--tools .line-house span:nth-child(3) { left: 12%; bottom: 122px; width: 68%; height: 1px; transform: skewY(-14deg); }
.ace-arc-scope--tools .line-house span:nth-child(4), .ace-arc-scope--tools .line-house span:nth-child(5) { bottom: 0; width: 1px; height: 230px; opacity: 0.5; }
.ace-arc-scope--tools .line-house span:nth-child(4) { left: 34%; }
.ace-arc-scope--tools .line-house span:nth-child(5) { left: 58%; }
.ace-arc-scope--tools .hero-note { display: grid; grid-template-columns: 1px 1fr; gap: 24px; align-items: center; min-height: 220px; }
.ace-arc-scope--tools .hero-note span { position: relative; width: 1px; height: 100%; background: var(--line-strong); }
.ace-arc-scope--tools .hero-note span::after { position: absolute; top: 66%; left: -4px; width: 8px; height: 8px; background: var(--accent); content: ""; }
.ace-arc-scope--tools .hero-note p { margin: 0; font-size: 17px; line-height: 1.6; }

.ace-arc-scope--tools .tool-board { border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.ace-arc-scope--tools .tool-row {
  display: grid;
  grid-template-columns: 72px minmax(300px, 0.95fr) minmax(180px, 0.42fr) minmax(300px, 0.78fr) minmax(220px, 0.58fr);
  border-bottom: 1px solid var(--line-strong);
}
.ace-arc-scope--tools .tool-row > * { border-right: 1px solid var(--line-strong); }
.ace-arc-scope--tools .tool-index { display: grid; place-items: center; font-family: var(--font-serif); font-size: 36px; }
.ace-arc-scope--tools .tool-title { display: grid; grid-template-columns: 86px 1fr; gap: 34px; align-items: center; padding: 34px 30px; }
.ace-arc-scope--tools .tool-icon { display: grid; width: 86px; height: 86px; place-items: center; border: 1px solid var(--line-strong); font-size: 34px; }
.ace-arc-scope--tools .tool-title h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.ace-arc-scope--tools .tool-title p, .ace-arc-scope--tools .tool-list p, .ace-arc-scope--tools .tool-product p { margin: 0; line-height: 1.55; }
.ace-arc-scope--tools .tool-list, .ace-arc-scope--tools .tool-product { padding: 34px 26px; }
.ace-arc-scope--tools .tool-list span, .ace-arc-scope--tools .tool-product span { display: block; margin-bottom: 14px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ace-arc-scope--tools .tool-product { align-self: stretch; background: rgba(255, 117, 24, 0.035); }
.ace-arc-scope--tools .tool-product h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.ace-arc-scope--tools .tool-product p { color: var(--muted); font-size: 14px; }
.ace-arc-scope--tools .tool-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: transparent; color: var(--text); padding: 34px; font-weight: 800; letter-spacing: 0.02em; text-align: left; text-decoration: none; text-transform: uppercase; }
.ace-arc-scope--tools .tool-action i, .ace-arc-scope--tools .tool-footer a i { color: var(--accent); font-size: 22px; }
.ace-arc-scope--tools .tool-action:hover, .ace-arc-scope--tools .tool-action:focus-visible, .ace-arc-scope--tools .tool-footer a:hover { color: var(--accent); }
.ace-arc-scope--tools .tool-footer { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; border-bottom: 1px solid var(--line-strong); }
.ace-arc-scope--tools .tool-footer > * { min-height: 76px; border-right: 1px solid var(--line-strong); padding: 20px 26px; }
.ace-arc-scope--tools .tool-footer i { color: var(--accent); }
.ace-arc-scope--tools .tool-footer p { margin: 0; line-height: 1.45; }
.ace-arc-scope--tools .tool-footer a { display: inline-flex; gap: 18px; align-items: center; color: var(--text); font-weight: 700; text-decoration: none; }

@media (max-width: 1180px) {
  .ace-arc-scope--tools .tools-hero { grid-template-columns: 1fr; }
  .ace-arc-scope--tools .hero-sketch { display: none; }
  .ace-arc-scope--tools .tool-row { grid-template-columns: 70px minmax(0, 1.1fr) minmax(180px, 0.5fr); }
  .ace-arc-scope--tools .tool-product, .ace-arc-scope--tools .tool-action { grid-column: 2 / -1; }
  .ace-arc-scope--tools .tool-action { border-top: 1px solid var(--line-strong); }
}

@media (max-width: 760px) {
  .ace-arc-scope--tools .tools-page { padding: 0 18px 30px; }
  .ace-arc-scope--tools .tools-header { display: grid; gap: 18px; padding: 18px 0; }
  .ace-arc-scope--tools .tools-header-actions, .ace-arc-scope--tools .tools-nav { flex-wrap: wrap; justify-content: flex-start; }
  .ace-arc-scope--tools .tools-nav { gap: 12px 18px; }
  .ace-arc-scope--tools .tools-nav a { font-size: 11px; }
  .ace-arc-scope--tools .hero-copy h1 { font-size: clamp(44px, 13vw, 68px); letter-spacing: 0.035em; }
  .ace-arc-scope--tools .tool-row, .ace-arc-scope--tools .tool-footer { grid-template-columns: 1fr; }
  .ace-arc-scope--tools .tool-row > *, .ace-arc-scope--tools .tool-footer > * { border-right: 0; }
  .ace-arc-scope--tools .tool-index { min-height: 58px; place-items: center start; border-bottom: 1px solid var(--line-strong); padding-left: 18px; }
  .ace-arc-scope--tools .tool-title { grid-template-columns: 72px 1fr; gap: 18px; padding: 22px 18px; }
  .ace-arc-scope--tools .tool-icon { width: 72px; height: 72px; font-size: 28px; }
  .ace-arc-scope--tools .tool-list, .ace-arc-scope--tools .tool-product, .ace-arc-scope--tools .tool-action { grid-column: auto; padding: 20px 18px; border-top: 1px solid var(--line-strong); }
  .ace-arc-scope--tools .tool-footer a { justify-content: space-between; }
}
