:root {
  color-scheme: light;
  font: 100%/1.5 "DM Sans", system-ui, sans-serif;
  color: #172538;
  background: #f5f7fb;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #2546a4; }
:focus-visible { outline: 3px solid #4766dc; outline-offset: 4px; }
.site-header {
  background: #fff;
  border-bottom: 1px solid #e1e7f0;
}
.site-header nav, main { width: min(1152px, calc(100% - 48px)); margin-inline: auto; }
.site-header nav { display: flex; align-items: baseline; gap: 16px; padding-block: 18px; }
.brand { color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.breadcrumb { color: #506078; border-left: 1px solid #d9e1ee; padding-left: 16px; font-size: .9rem; }
main { padding-block: 36px 64px; }
.intro {
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid #e0e7fb;
  border-radius: 24px;
  background: linear-gradient(115deg, #fefeff 12%, #ecefff 75%, #e7ebff);
}
h1 { margin: 0; font-size: clamp(2.35rem, 6vw, 4.35rem); line-height: 1.02; letter-spacing: -.058em; }
.intro p { color: #485873; margin: 16px 0 0; max-width: 55ch; font-size: clamp(1rem, 2vw, 1.15rem); }
.tool-group { margin-top: 34px; }
h2 { margin: 0 0 14px; letter-spacing: -.025em; font-size: 1.28rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); gap: 14px; }
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #dee5ef;
  border-radius: 16px;
  padding: 18px;
  gap: 5px;
  min-height: 150px;
  box-shadow: 0 2px 5px #182a4610;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.tile:hover { border-color: #8c9cdb; box-shadow: 0 8px 20px #263c6a18; transform: translateY(-2px); }
.tool-icon { display: block; width: 46px; height: 46px; margin-bottom: 7px; }
.description { color: #4c5b72; font-size: .925rem; }
.tool-status { color: #5a526f; font-size: .875rem; padding-top: 5px; margin-top: auto; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 650; }
.tool-intro { padding: 26px; }
.tool-intro h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
form {
  margin-top: 20px;
  max-width: 680px;
  background: white;
  border: 1px solid #dee5ef;
  border-radius: 16px;
  padding: clamp(18px, 4vw, 28px);
}
label { display: block; margin-bottom: 16px; font-weight: 650; }
input, select, textarea {
  display: block;
  margin-top: 6px;
  width: 100%;
  padding: 10px;
  border: 1px solid #a9b5ca;
  border-radius: 8px;
  background: #fcfdff;
  color: inherit;
  font: inherit;
}
input[type=file] { border-style: dashed; padding: 15px 10px; }
button, .download {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: #304ca6;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
button:disabled { opacity: .65; cursor: wait; }
li { margin-block: 6px; overflow-wrap: anywhere; }
li button { padding: 3px 8px; background: #eff2fc; color: #304ca6; font-size: .875rem; }
[role=status]:empty, [hidden] { display: none; }
@media (max-width: 480px) {
  .site-header nav, main { width: calc(100% - 32px); }
  main { padding-top: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .tile { padding: 12px; }
  .tool-icon { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
}
