.tool-header {
  border-bottom: 1px solid #243247;
  background: #101928;
}

.tool-header-inner {
  width: min(1360px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 10px 0;
}

.tool-home {
  color: #edf4ff;
  font-size: 17px;
  font-weight: 750;
  text-decoration: none;
}

.tool-nav {
  display: flex;
  gap: 5px;
}

.tool-nav a {
  padding: 8px 12px;
  border-radius: 7px;
  color: #a0aec3;
  text-decoration: none;
  font-size: 14px;
}

.tool-nav a:hover,
.tool-nav a[aria-current="page"] {
  background: #213552;
  color: #ddebff;
}

.tool-links {
  display: flex;
  gap: 12px;
  margin-inline-start: auto;
}

.tool-links a {
  color: #a0aec3;
  font-size: 12px;
  text-decoration: none;
}

.tool-header a:focus-visible {
  outline: 2px solid #75adff;
  outline-offset: 3px;
}

.ocr-page .workspace,
.cutout-page .shell {
  width: min(1360px, calc(100% - 32px));
}

.ocr-page .workspace {
  margin-top: 24px;
}

.cutout-page .shell {
  padding-top: 24px;
}

.cutout-page .topbar {
  margin-bottom: 18px;
}

.cutout-page .topbar h1 {
  font-size: clamp(26px, 3.3vw, 38px);
  line-height: 1.18;
  letter-spacing: 0;
}

@media (max-width: 480px) {
  .tool-header-inner {
    column-gap: 12px;
  }

  .tool-nav a {
    padding-inline: 8px;
  }

  .ocr-page .workspace,
  .cutout-page .shell {
    width: calc(100% - 24px);
  }
}
