:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #18243c;
  background: #f6f8fc;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #8dabff;
  outline-offset: 3px;
}
header {
  height: 88px;
  background: white;
  border-bottom: 1px solid #e3e8f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -1.5px;
  color: #18243c;
}
.brandmark {
  background: #315efb;
  color: white;
  border-radius: 10px;
  width: 37px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
}
.brandtag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.7px;
  margin-left: 18px;
  padding-left: 25px;
  border-left: 1px solid #dce2ed;
  color: #738096;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 26px;
}
.local-pill {
  font-size: 13px;
  background: #edf7f3;
  border: 1px solid #d8ede3;
  color: #287258;
  padding: 8px 12px;
  border-radius: 6px;
}
.text-button {
  border: 0;
  background: none;
  color: #5d6980;
  font-size: 14px;
  padding: 8px;
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: calc(100vh - 88px);
}
aside {
  background: white;
  border-right: 1px solid #e3e8f1;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #8993a6;
}
.blue {
  color: #315efb;
}
aside .eyebrow {
  padding: 0 13px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  border-radius: 7px;
  color: #626e82;
  font-size: 14px;
  margin: 3px 0;
}
.nav.active {
  background: #edf2ff;
  color: #315efb;
  font-weight: 600;
}
.count {
  margin-left: auto;
  font-size: 11px;
  background: #dfe7ff;
  padding: 2px 6px;
  border-radius: 4px;
}
.nav-heading {
  margin: 32px 0 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 40px 12px 0;
}
.sidebar-bottom strong {
  font-size: 13px;
}
.sidebar-bottom p {
  font-size: 12px;
  line-height: 1.7;
  color: #7e889a;
}
.sidebar-bottom > span {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #8795ac;
}
.shield {
  color: #315efb;
  font-size: 27px;
  margin-bottom: 14px;
}
main {
  max-width: 1470px;
  width: 100%;
  padding: 46px 54px 0;
  margin: auto;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}
h1 {
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1.17;
  margin: 15px 0;
}
h1 span {
  color: #315efb;
}
.intro p {
  color: #748097;
  line-height: 1.75;
  font-size: 15px;
  margin: 0;
}
.privacy-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: #eef3ff;
  border: 1px solid #dce6fc;
  padding: 24px;
  border-radius: 12px;
  max-width: 355px;
}
.privacy-icon {
  font-size: 32px;
  color: #315efb;
}
.privacy-card strong {
  font-size: 14px;
}
.privacy-card p {
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0;
}
.privacy-card small {
  font-size: 10px;
  color: #627499;
}
.privacy-card b {
  margin: 0 6px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0;
}
.section-heading > span {
  font-size: 12px;
  color: #8a94a5;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tool-card {
  position: relative;
  text-align: left;
  background: white;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  padding: 24px 21px;
  min-height: 198px;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
  color: inherit;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: #a0b5f5;
  box-shadow: 0 9px 25px #23315a09;
}
.tool-icon {
  width: 42px;
  height: 42px;
  background: var(--tint);
  color: var(--ink);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 22px;
}
.tool-card h3 {
  font-size: 15px;
  margin: 0 0 9px;
  font-weight: 650;
}
.tool-card p {
  font-size: 12px;
  color: #8390a5;
  line-height: 1.65;
  margin: 0;
  max-width: 170px;
}
.card-arrow {
  position: absolute;
  right: 18px;
  top: 27px;
  color: #b0bbcc;
  font-size: 17px;
}
.bottom-note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 45px;
  padding: 23px 26px;
  border: 1px solid #e0e6f0;
  border-radius: 9px;
}
.bottom-note > span {
  color: #687c9c;
  font-size: 25px;
}
.bottom-note strong {
  font-size: 13px;
}
.bottom-note p {
  font-size: 12px;
  color: #8a94a6;
  margin: 6px 0 0;
}
.bottom-note button {
  margin-left: auto;
  white-space: nowrap;
}
footer {
  border-top: 1px solid #e1e6ef;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: #919cad;
}
footer b {
  padding: 0 8px;
  color: #ccd3df;
}
footer a {
  color: #73829a;
  text-decoration: none;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
#workspace > p {
  color: #78859a;
  line-height: 1.6;
}
.dropzone {
  border: 1.5px dashed #a8bbec;
  border-radius: 12px;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 30px;
  gap: 12px;
  margin: 24px 0;
}
.dropzone.dragover {
  background: #dce6ff;
}
.dropzone span,
.dropzone small {
  color: #73839e;
  font-size: 13px;
}
.upload-icon {
  font-size: 30px;
  color: #315efb;
}
.primary {
  border: 0;
  border-radius: 7px;
  background: #315efb;
  color: white;
  padding: 12px 21px;
  font-size: 14px;
  font-weight: 600;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #e0e6f0;
  padding: 12px;
  border-radius: 7px;
  margin-bottom: 8px;
}
.file-row span {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.file-row button,
.page-buttons button {
  border: 1px solid #dce2ed;
  background: white;
  border-radius: 5px;
  padding: 6px 10px;
  color: #526581;
}
#options {
  margin: 20px 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  color: #61708a;
}
input,
select {
  border: 1px solid #d0d9e8;
  border-radius: 6px;
  padding: 10px;
  background: white;
  color: #233650;
  max-width: 100%;
}
#options > p {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7890;
  margin: 0;
}
.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.page-item {
  width: 185px;
  background: white;
  padding: 12px;
  border: 1px solid #dce2ed;
  border-radius: 8px;
}
.page-item canvas {
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 8px #0002;
}
.thumb-slot {
  width: 141px;
  aspect-ratio: 8.5 / 11;
  max-width: 100%;
  border-radius: 2px;
  background: linear-gradient(100deg, #f1f4f9 40%, #e6ebf3 50%, #f1f4f9 60%) 0 0 / 200% 100%;
  animation: thumb-shimmer 1.4s linear infinite;
}
.thumb-slot.landscape {
  aspect-ratio: 11 / 8.5;
}
@keyframes thumb-shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thumb-slot {
    animation: none;
  }
}
.page-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  gap: 4px;
}
.page-buttons button {
  padding: 4px 7px;
}
.page-label {
  font-size: 12px;
  margin: 10px 0;
}
.edit-page {
  width: min(100%, 650px);
  box-sizing: border-box;
}
.edit-page canvas {
  touch-action: none;
  cursor: crosshair;
  width: 100%;
}
#status {
  font-size: 14px;
  color: #516582;
  margin: 20px 0;
  white-space: pre-wrap;
}
#status.error {
  color: #aa3542;
}
#results {
  margin: 20px 0;
}
#results a {
  color: #315efb;
  font-size: 14px;
  display: inline-block;
  padding: 12px;
  border: 1px solid #c7d5ff;
  border-radius: 6px;
  background: white;
}
dialog {
  border: 1px solid #d9e2f0;
  border-radius: 16px;
  padding: 36px;
  max-width: 580px;
  color: #263750;
}
dialog::backdrop {
  background: #15244080;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-top: 16px;
}
dialog p {
  font-size: 15px;
  line-height: 1.7;
  color: #64728a;
}
.close {
  float: right;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #72839d;
}
#signature,
.sig-preview {
  border: 1px dashed #a8bbec;
  background: white;
  touch-action: none;
  width: 440px;
  max-width: 100%;
  aspect-ratio: 440 / 130;
  border-radius: 8px;
  display: block;
}
.sig-preview {
  border-style: solid;
  border-color: #e0e6f0;
}
.sign-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  width: 100%;
}
.sig-draw,
.sig-type {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
}
.sig-type {
  flex-direction: column;
  align-items: start;
}
.sig-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.sig-draw {
  flex-direction: column;
  align-items: start;
  gap: 4px;
}
.tabs {
  display: flex;
  width: 100%;
  gap: 4px;
  border-bottom: 1px solid #e0e6f0;
}
.tabs button {
  border: 0;
  background: none;
  padding: 8px 14px;
  font-size: 14px;
  color: #61708a;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button[aria-selected="true"] {
  color: #315efb;
  border-bottom-color: #315efb;
  font-weight: 600;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.ghost {
  border: 1px solid #d0d9e8;
  background: white;
  color: #33476a;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}
.ghost:hover {
  border-color: #a8bbec;
}
label.check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.edit-scroll {
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  border-radius: 8px;
}
.edit-page {
  max-width: none;
}
.preview-page {
  width: min(100%, 650px);
}
.preview-page canvas {
  width: 100%;
}
.grip {
  flex: 0 0 auto !important;
  color: #a3b0c5;
  cursor: grab;
  user-select: none;
}
.file-row[draggable="true"],
.page-item[draggable="true"] {
  cursor: grab;
}
.dragging {
  opacity: 0.45;
}
.file-row.drop-before {
  box-shadow: 0 -3px 0 #315efb;
}
.file-row.drop-after {
  box-shadow: 0 3px 0 #315efb;
}
.page-item.drop-before {
  box-shadow: -4px 0 0 #315efb;
}
.page-item.drop-after {
  box-shadow: 4px 0 0 #315efb;
}
button:hover {
  filter: brightness(0.98);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-top: 60px;
  }
  .tool-card {
    min-height: 220px;
  }
}
@media (max-width: 1200px) {
  main {
    padding: 35px 30px 0;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-card {
    max-width: 290px;
    padding: 17px;
  }
  h1 {
    font-size: 36px;
  }
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 1fr;
  }
  aside {
    display: none;
  }
  .brandtag {
    display: none;
  }
  .intro {
    align-items: flex-start;
  }
  .privacy-card {
    display: none;
  }
  header {
    height: 74px;
    padding: 0 22px;
  }
  .header-right {
    gap: 8px;
  }
  .header-right .text-button {
    display: none;
  }
  main {
    padding: 28px 22px 0;
  }
  .intro {
    margin-bottom: 30px;
  }
  h1 {
    font-size: 34px;
  }
  .tool-card {
    padding: 20px;
    min-height: 185px;
  }
  .section-heading > span {
    display: none;
  }
  .bottom-note {
    padding: 20px;
  }
  .bottom-note button {
    display: none;
  }
  footer {
    flex-direction: column;
    line-height: 1.6;
  }
  .cards {
    gap: 12px;
  }
}
@media (max-width: 390px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.output-settings {
  margin: 26px 0 20px;
  padding: 22px;
  background: #fff;
  border: 1px solid #dce2ed;
  border-radius: 10px;
}
.output-settings h3 {
  font-size: 17px;
  margin: 0 0 18px;
}
.output-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.output-fields label {
  flex: 1;
  min-width: min(100%, 240px);
}
.output-settings p {
  font-size: 14px;
  color: #6b7890;
  line-height: 1.6;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.output-settings #namePreview {
  color: #315efb;
}
#results {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
#results a {
  overflow-wrap: anywhere;
  max-width: 100%;
}
/* ---------- Chunk 3: new tools ---------- */
#options p.warn,
.find-panel p.warn {
  color: #9a5b12;
  background: #fff6e8;
  border: 1px solid #f3dfbd;
  border-radius: 6px;
  padding: 8px 12px;
}
#options p.muted,
.find-panel p.muted {
  color: #7d889b;
  font-size: 13px;
}
.find-panel {
  width: 100%;
  border: 1px solid #dce2ed;
  border-radius: 8px;
  background: white;
}
.find-panel summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  color: #233650;
  font-size: 14px;
}
.find-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 14px 14px;
}
.find-body p {
  margin: 0;
  font-size: 14px;
  color: #516582;
}
.find-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
label.wide input {
  width: min(100%, 520px);
}
.find-list {
  list-style: none;
  margin: 0;
  padding: 6px 10px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #e6ebf3;
  border-radius: 6px;
  background: #fbfcfe;
}
.find-list li {
  padding: 3px 0;
}
.find-list label {
  color: #33476a;
  font-size: 13px;
}
.find-list span {
  overflow-wrap: anywhere;
}
.primary.small {
  padding: 8px 14px;
}
.clean-report {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
label.clean-row {
  align-items: start;
  background: white;
  border: 1px solid #e0e6f0;
  border-radius: 7px;
  padding: 10px 12px;
  gap: 10px;
}
label.clean-row input {
  margin-top: 3px;
}
label.clean-row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
label.clean-row strong {
  color: #233650;
  font-weight: 600;
}
label.clean-row small {
  color: #7d889b;
  overflow-wrap: anywhere;
}
label.clean-row.found small {
  color: #9a5b12;
}
.blank-item .page-label {
  margin: 8px 0 6px;
}
.blank-item.remove {
  border-color: #e6a5a9;
  background: #fff5f5;
}
.blank-item.remove canvas {
  opacity: 0.55;
  outline: 2px dashed #d56c70;
  outline-offset: 2px;
}
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: #61708a;
}
.chain span {
  margin-right: 4px;
}
.chip {
  border: 1px solid #d6deec;
  background: white;
  color: #33476a;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
}
.chip:hover {
  border-color: #a8bbec;
  color: #315efb;
}
.chain {
  width: 100%;
}
/* ---------- Chunk 4: tool directory + tool pages ---------- */
.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid #e0e6f0;
  font-size: 13px;
}
.tool-links a {
  color: #5d6980;
  text-decoration: none;
}
.tool-links a:hover,
.tool-links a[aria-current="page"] {
  color: #315efb;
  text-decoration: underline;
}
.seo-content {
  margin: 56px 0 0;
  max-width: 760px;
  color: #3a4a64;
  font-size: 15px;
  line-height: 1.7;
}
.seo-content h2 {
  font-size: 20px;
  margin: 32px 0 10px;
  color: #172a4c;
}
.seo-content ol {
  padding-left: 22px;
}
.seo-content li {
  margin: 4px 0;
}
.seo-content details {
  border: 1px solid #e0e6f0;
  border-radius: 8px;
  background: white;
  padding: 10px 14px;
  margin: 8px 0;
}
.seo-content summary {
  cursor: pointer;
  font-weight: 600;
  color: #233650;
}
.seo-content details p {
  margin: 8px 0 2px;
}
