.tool-page { --tool-accent: #933564; --tool-ink: #242429; --tool-muted: #64646e; color: var(--tool-ink); }
.tool-page .page-blobs-wrap { display: none; }
.tool-container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.tool-hero { padding: 70px 0 36px; }
.tool-page .tool-breadcrumb {
  position: static; inset: auto; display: flex; flex-wrap: wrap; justify-content: flex-start;
  gap: 8px; width: auto; max-width: none; height: auto; padding: 0; margin: 0 0 28px;
  border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none;
  transform: none; z-index: auto; font-size: 12px; color: var(--tool-muted);
}
.tool-breadcrumb a { color: inherit; text-decoration: none; }
.tool-breadcrumb a:hover { text-decoration: underline; }
.tool-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 11px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: #933564; }
.tool-kicker svg { width: 18px; height: 18px; }
body .tool-page h1 { font-size: clamp(32px, 4.4vw, 57px); line-height: 1.1; font-weight: 550; letter-spacing: -2px; max-width: 920px; margin: 0 0 20px; }
.tool-page h1 span { color: #933564; }
.tool-intro { max-width: 690px; font-size: 17px; line-height: 1.75; color: var(--tool-muted); margin: 0; }
.tool-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; padding-bottom: 68px; }
.tool-controls { border: 1px solid #dedee5; border-radius: 20px; background: #fff; padding: 30px; min-width: 0; }
.tool-controls fieldset { padding: 0 0 26px; margin: 0 0 26px; border: 0; border-bottom: 1px solid #ededf1; min-width: 0; }
.tool-controls fieldset:last-of-type { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
.tool-controls legend { display: flex; gap: 10px; align-items: center; float: left; width: 100%; margin-bottom: 20px; font-size: 16px; font-weight: 550; }
.tool-controls legend + * { clear: both; }
.tool-step { display: inline-grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; font-size: 11px; border-radius: 50%; background: #f8eaf1; color: #87345d; }
.tool-field { margin-bottom: 18px; }
.tool-field:last-child { margin-bottom: 0; }
.tool-page label, .tool-field-label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 550; line-height: 1.5; }
.tool-page label small { color: var(--tool-muted); font-weight: 400; font-size: 11px; }
.tool-page input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), .tool-page textarea, .tool-page select {
  display: block; width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid #9999a4;
  border-radius: 9px; background: #fff; color: var(--tool-ink); font: inherit; font-size: 14px; line-height: 1.5;
}
.tool-page input::placeholder { color: #73737e; }
.tool-page input[type="file"] { padding: 8px !important; font-size: 12px !important; cursor: pointer; }
.tool-page input[type="file"]::file-selector-button { border: 0; background: #f8eaf1; color: #87345d; border-radius: 5px; padding: 7px 9px; margin-right: 9px; font: inherit; cursor: pointer; }
.tool-help { font-size: 12px; line-height: 1.65; color: var(--tool-muted); margin: 7px 0 0; }
.tool-help a, .tool-copy a, .tool-faq a { color: #933564; text-decoration: underline; text-underline-offset: 3px; }
.tool-error { color: #ae2441; font-size: 12px; line-height: 1.55; margin: 6px 0 0; }
.tool-error:empty { display: none; }
.tool-page [aria-invalid="true"] { border-color: #ae2441 !important; }
.tool-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-options label { position: relative; display: flex; align-items: center; gap: 7px; margin: 0; padding: 10px 12px; border: 1px solid #c2c2cc; border-radius: 9px; font-size: 12px; cursor: pointer; min-height: 43px; }
.tool-options label:has(input:checked) { border-color: #933564; background: #fcf0f6; color: #87345d; }
.tool-options input { accent-color: #933564; width: 14px; height: 14px; margin: 0; }
.tool-swatch { width: 13px; height: 13px; border: 1px solid #b0a8b1; border-radius: 50%; }
.tool-swatch-white { background: #fff; }
.tool-swatch-pink { background: #efcfde; }
.tool-swatch-dark { background: #25252b; }
.tool-swatch-sage { background: #e2ebe5; }
.tool-swatch-sky { background: #e5eff7; }
.tool-swatch-sand { background: #f4ecdf; }
.tool-custom-color { margin-top: 20px; }
.tool-color-input { display: flex; gap: 12px; align-items: center; }
.tool-page .tool-color-input input[type="color"] {
  width: 64px !important; height: 48px !important; min-height: 48px !important;
  padding: 4px !important; border-radius: 9px; cursor: pointer; flex: 0 0 64px;
}
.tool-color-input output { font-size: 13px; color: #52525c; }
.tool-rgb-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tool-rgb-fields label { font-size: 12px; color: #52525c; margin: 0; }
.tool-rgb-fields input { margin-top: 4px; text-align: center; }
.tool-preview { position: sticky; top: 108px; min-width: 0; }
.tool-preview-shell { border: 1px solid #e2e0e8; border-radius: 20px; overflow: hidden; background: #f3f2f6; }
.tool-preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 22px; background: #faf9fc; border-bottom: 1px solid #e2e0e8; font-size: 12px; }
.tool-preview-bar strong { font-weight: 550; }
.tool-preview-bar span { font-size: 11px; color: var(--tool-muted); }
.tool-canvas-wrap { display: grid; place-items: center; padding: 28px; min-height: 370px; background-image: radial-gradient(#d6d1de 1px, transparent 1px); background-size: 18px 18px; }
.tool-canvas-wrap canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 460px; box-shadow: 0 8px 24px #28213116; background: #fff; }
.tool-preview-note { padding: 13px 20px; margin: 0; border-top: 1px solid #e2e0e8; font-size: 11px; line-height: 1.6; text-align: center; color: #66616e; background: #faf9fc; }
.tool-downloads { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tool-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 12px 18px; border: 1px solid #933564; border-radius: 9px; background: #933564;
  color: #fff; font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.tool-button svg { width: 17px; height: 17px; flex-shrink: 0; }
.tool-button:hover { background: #77254f; border-color: #77254f; color: #fff; }
.tool-button-secondary { background: #fff; color: #35313c; border-color: #b5aebf; }
.tool-button-secondary:hover { color: #77254f; background: #faf0f5; border-color: #933564; }
.tool-button:disabled { background: #e8e5ed; color: #6c6676; border-color: #d2cbdc; cursor: not-allowed; }
.tool-text-button { border: 0; border-radius: 4px; background: none; color: #933564; padding: 6px 0; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tool-status { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #5b4c70; }
.tool-status:empty { display: none; }
.tool-message { padding-top: 24px; margin-top: 24px; border-top: 1px solid #e2e0e8; }
body .tool-message h2 { font-size: 18px; letter-spacing: -.3px; margin: 0 0 6px; }
.tool-message textarea { resize: vertical; min-height: 180px; margin-top: 12px; font-size: 13px; }
.tool-message .tool-downloads { margin-top: 10px; }
.tool-message .tool-options { margin-top: 14px; }
.tool-layout-row { display: flex; align-items: center; gap: 14px; }
.tool-layout-row > span { font-size: 13px; color: #52525c; }
.tool-layout-toggle { display: grid; place-items: center; width: 74px; height: 58px; border: 1px solid #bfa4b2; border-radius: 10px; background: #f9f1f5; color: #933564; cursor: pointer; }
.tool-layout-toggle:hover { background: #f2e4ec; }
.tool-layout-toggle svg { stroke: currentColor; stroke-width: 2; }
.tool-preview-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid #e2e0e8; background: #faf9fc; }
.tool-photo-select, .tool-zoom-controls { display: inline-flex; align-items: center; gap: 5px; }
.tool-photo-select button, .tool-zoom-controls button { min-width: 37px; min-height: 37px; padding: 7px 10px; border: 1px solid #c7c3cc; border-radius: 8px; background: #fff; color: #3f3540; font: inherit; font-size: 12px; cursor: pointer; }
.tool-zoom-controls button { font-size: 20px; line-height: 1; }
.tool-zoom-controls button:disabled { opacity: .45; cursor: not-allowed; }
.tool-photo-select button[aria-pressed="true"] { border-color: #933564; background: #f8eaf1; color: #933564; font-weight: 600; }
.tool-zoom-controls output { display: inline-block; min-width: 42px; text-align: center; font-size: 11px; color: #52525c; }
#comparison-canvas { cursor: grab; touch-action: none; }
#comparison-canvas.is-dragging { cursor: grabbing; }
.tool-page input[type="checkbox"] { accent-color: #933564; width: 17px; height: 17px; }
.tool-check { display: flex !important; align-items: center; gap: 8px; margin-top: 14px !important; }
.tool-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-copy-section { background: #f8f7fa; border-block: 1px solid #e8e6ed; padding: 66px 0; }
.tool-copy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.tool-kicker-spacer { visibility: hidden; }
body .tool-page h2 { font-size: 29px; line-height: 1.2; letter-spacing: -.8px; font-weight: 550; }
body .tool-page .tool-copy h2 { margin-bottom: 24px; }
body .tool-page .tool-message h2 { font-size: 20px; letter-spacing: -.3px; }
.tool-message .tool-field-label { margin-top: 14px; }
.tool-copy p + p { margin-top: 14px; }
.tool-jump { display: none; }
.tool-copy p, .tool-copy li { font-size: 14px; line-height: 1.8; color: #64646e; }
.tool-copy ol { padding-left: 22px; margin: 18px 0 0; }
.tool-copy li { margin-bottom: 14px; padding-left: 6px; }
.tool-copy strong { color: #35313c; font-weight: 550; }
.tool-faq { max-width: 820px; padding-block: 66px; margin-inline: auto; }
.tool-faq h2 { margin-bottom: 25px; }
.tool-faq details { border-bottom: 1px solid #dddde5; }
.tool-faq summary { cursor: pointer; font-size: 15px; font-weight: 500; padding: 20px 25px 20px 0; }
.tool-faq details p { color: #64646e; font-size: 14px; line-height: 1.8; padding-bottom: 20px; margin: 0; }
.tool-related { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 34px; border: 1px solid #e2dce9; border-radius: 18px; background: #faf5f8; margin-bottom: 70px; }
body .tool-related h2 { font-size: 23px; margin: 0 0 8px; }
.tool-related p { font-size: 14px; line-height: 1.7; color: #64646e; margin: 0; max-width: 620px; }
.tool-related-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tool-related-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 16px; border: 1px solid #d6d0dd; border-radius: 40px; background: #fff; color: #35313c; font-size: 13px; font-weight: 550; line-height: 1.3; text-decoration: none; transition: border-color .25s, color .25s, background .25s, transform .25s; }
.tool-related-links a svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .25s; }
.tool-related-links a:hover { border-color: #933564; color: #6e1c44; background: #edd0df; transform: translateY(-2px); }
.tool-related-links a:hover svg { transform: translateX(3px); }
.tool-noscript { padding: 22px; border: 1px solid #a97529; background: #fff9ef; border-radius: 12px; margin-bottom: 22px; font-size: 14px; }
.tool-page :is(input, textarea, select, button, summary, a):focus-visible { outline: 2px solid #933564; outline-offset: 4px; }
.tool-page [hidden] { display: none !important; }
@media (max-width: 1000px) {
  .tool-workspace { gap: 20px; }
  .tool-controls { padding: 24px; }
  .tool-copy-grid { gap: 40px; }
}
@media (max-width: 850px) {
  .tool-hero { padding-top: 38px; }
  .tool-workspace { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .tool-preview { position: static; }
  .tool-jump { display: inline-block; color: #933564; font-size: 13px; margin: 0 0 16px; text-underline-offset: 3px; }
  .tool-copy-grid { grid-template-columns: 1fr; gap: 24px; }
  .tool-kicker-spacer { display: none; }
  .tool-related { grid-template-columns: 1fr; }
  .tool-related > .tool-button { justify-self: start; }
}
@media (max-width: 580px) {
  .tool-container { width: calc(100% - 40px); }
  body .tool-page h1 { font-size: 34px; letter-spacing: -1.1px; overflow-wrap: anywhere; }
  .tool-intro { font-size: 15px; }
  .tool-controls { padding: 20px; border-radius: 15px; }
  .tool-options label { padding: 9px; }
  .tool-canvas-wrap { padding: 20px; min-height: 300px; }
  .tool-canvas-wrap canvas { max-height: 420px; }
  .tool-preview-bar { padding: 15px; }
  .tool-two-fields { grid-template-columns: 1fr; gap: 0; }
  .tool-downloads > .tool-button { flex: 1 1 auto; }
  .tool-copy-section, .tool-faq { padding-block: 45px; }
  body .tool-page h2 { font-size: 25px; }
  body .tool-message h2 { font-size: 18px; }
  .tool-related { padding: 24px; margin-bottom: 45px; }
  body .tool-related h2 { font-size: 23px; }
  .tool-page input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), .tool-page select, .tool-page textarea { font-size: 16px; }
}
