.tool-tap-and-hold-image-maker-body {
  --tah-ink: #13233a;
  --tah-blue: #165dff;
  --tah-blue-dark: #0e46c4;
  --tah-cyan: #08a8b7;
  --tah-soft: #f4f7fb;
  --tah-border: #dce4ef;
  --tah-shadow: 0 18px 50px rgba(19, 35, 58, .09);
}

.tool-tap-and-hold-image-maker-body .tool-card {
  padding: 0;
  overflow: hidden;
  border-color: #d6e0ec;
  box-shadow: var(--tah-shadow);
}

.tah-app { color: var(--tah-ink); }
.tah-app *, .tah-app *::before, .tah-app *::after { box-sizing: border-box; }
.tah-app button, .tah-app input, .tah-app select { font: inherit; }
.tah-app button { touch-action: manipulation; }
.tah-kicker, .tah-step { margin: 0 0 4px; color: var(--tah-blue-dark); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.tah-intro {
  display: grid;
  gap: 18px;
  padding: 22px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(34, 211, 238, .24), transparent 34%),
    linear-gradient(135deg, #101e35 0%, #123870 58%, #087f91 130%);
}
.tah-intro h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 5vw, 2.25rem); line-height: 1.18; }
.tah-intro p:not(.tah-kicker) { max-width: 760px; margin: 10px 0 0; color: #dcecff; }
.tah-intro .tah-kicker { color: #7ee8f2; }
.tah-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tah-trust li { display: grid; gap: 1px; padding: 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); }
.tah-trust strong { font-size: 1.2rem; }
.tah-trust span { color: #dcecff; font-size: .76rem; }

.tah-examples { padding: 20px 14px; border-bottom: 1px solid var(--tah-border); background: #fff; }
.tah-section-heading, .tah-panel-heading, .tah-preview-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.tah-section-heading h3, .tah-panel-heading h3, .tah-preview-heading h3 { margin: 0; font-size: 1.15rem; }
.tah-section-heading > p, .tah-panel-heading p:not(.tah-step) { margin: 4px 0 0; color: #607086; font-size: .88rem; }
.tah-example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.tah-example { min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--tah-border); border-radius: 12px; color: var(--tah-ink); background: #fff; text-align: left; cursor: pointer; }
.tah-example:focus-visible, .tah-app button:focus-visible, .tah-app input:focus-visible, .tah-app select:focus-visible { outline: 3px solid #9cc1ff; outline-offset: 2px; }
.tah-example img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.tah-example span { display: grid; gap: 1px; padding: 8px; }
.tah-example strong { overflow: hidden; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.tah-example small { color: #68778b; font-size: .68rem; }

.tah-workspace { display: grid; background: var(--tah-soft); }
.tah-editor { display: grid; gap: 12px; padding: 14px; }
.tah-panel { padding: 16px 14px; border: 1px solid var(--tah-border); border-radius: 14px; background: #fff; }
.tah-help { width: 34px; height: 34px; border: 1px solid var(--tah-border); border-radius: 50%; color: var(--tah-blue-dark); background: #eef4ff; font-weight: 900; cursor: pointer; }
.tah-callout { margin-top: 12px; padding: 11px 12px; border-left: 4px solid var(--tah-cyan); border-radius: 8px; background: #ecfeff; }
.tah-callout p { margin: 0; color: #174856; font-size: .86rem; }

.tah-mode-tabs, .tah-preset-grid { display: grid; gap: 8px; margin-top: 14px; }
.tah-mode-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tah-mode-tabs button, .tah-preset-grid button { display: grid; gap: 2px; min-height: 68px; padding: 11px; border: 1px solid var(--tah-border); border-radius: 12px; color: var(--tah-ink); background: #fff; text-align: left; cursor: pointer; }
.tah-mode-tabs button span, .tah-preset-grid button span { color: #68778b; font-size: .75rem; }
.tah-mode-tabs button.is-active, .tah-preset-grid button.is-active { border-color: var(--tah-blue); background: #eef4ff; box-shadow: inset 0 0 0 1px var(--tah-blue); }

.tah-upload-grid { display: grid; gap: 10px; margin-top: 14px; }
.tah-dropzone { position: relative; display: grid; justify-items: center; gap: 4px; min-height: 142px; padding: 20px 12px; border: 2px dashed #aab9cb; border-radius: 14px; background: #f8fbff; text-align: center; cursor: pointer; }
.tah-dropzone.is-dragging { border-color: var(--tah-blue); background: #edf4ff; }
.tah-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tah-dropzone small { color: #66758a; }
.tah-upload-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--tah-blue); font-size: 1.4rem; font-weight: 500; }
.tah-inline-actions, .tah-export-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tah-message { min-height: 20px; margin-top: 10px; color: #057a55; font-size: .85rem; font-weight: 700; }
.tah-message.is-error { color: #b42318; }

.tah-fields { display: grid; gap: 12px; margin-top: 14px; }
.tah-fields label, .tah-mask-toolbar label { display: grid; gap: 6px; min-width: 0; color: #314158; font-size: .82rem; font-weight: 780; }
.tah-fields select, .tah-fields input[type="text"] { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #b9c5d4; border-radius: 10px; color: var(--tah-ink); background: #fff; }
.tah-fields input[type="range"], .tah-mask-toolbar input[type="range"] { width: 100%; accent-color: var(--tah-blue); }
.tah-fields output, .tah-mask-toolbar output { justify-self: end; margin-top: -22px; color: var(--tah-blue-dark); font-variant-numeric: tabular-nums; }
.tah-check { grid-template-columns: auto 1fr; align-items: center; min-height: 44px; padding: 9px 11px; border: 1px solid var(--tah-border); border-radius: 10px; }
.tah-check input { width: 19px; height: 19px; accent-color: var(--tah-blue); }
.tah-inline-preview { display: grid; place-items: center; margin-top: 14px; overflow: hidden; border: 1px solid var(--tah-border); border-radius: 12px; background: #e9eef5; }
.tah-inline-preview canvas { display: block; width: 100%; max-height: 340px; object-fit: contain; }

.tah-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tah-mask-editor { margin-top: 14px; }
.tah-mask-toolbar { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--tah-border); border-radius: 12px 12px 0 0; background: #f8fafc; }
.tah-segmented { display: grid; grid-template-columns: 1fr 1fr; }
.tah-segmented button { min-height: 38px; border: 1px solid #bcc8d7; color: #43526a; background: #fff; cursor: pointer; }
.tah-segmented button:first-child { border-radius: 9px 0 0 9px; }
.tah-segmented button:last-child { border-radius: 0 9px 9px 0; }
.tah-segmented button.is-active { color: #fff; border-color: var(--tah-blue); background: var(--tah-blue); }
.tah-mask-canvas-wrap { position: relative; overflow: hidden; border: 1px solid var(--tah-border); border-top: 0; border-radius: 0 0 12px 12px; background: #0d1728; }
.tah-mask-canvas-wrap canvas { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; touch-action: none; cursor: crosshair; }
.tah-small-note { margin: 8px 0 0; color: #66758a; font-size: .78rem; }

.tah-export-actions .button { flex: 1 1 145px; min-height: 46px; }
.tah-preview-panel { padding: 16px 14px 20px; border-top: 1px solid var(--tah-border); background: #fff; }
.tah-live-badge { padding: 5px 8px; border-radius: 999px; color: #047857; background: #d1fae5; font-size: .7rem; font-weight: 820; }
.tah-hold-card { margin-top: 14px; }
.tah-hold-card button { position: relative; display: block; width: 100%; min-height: 260px; padding: 0; overflow: hidden; border: 1px solid var(--tah-border); border-radius: 14px; background: #fff; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: none; }
.tah-hold-card button.is-holding { background: #05070b; }
.tah-hold-card canvas { display: block; width: 100%; max-height: 520px; object-fit: contain; pointer-events: none; }
.tah-hold-card button > span { position: absolute; left: 50%; bottom: 12px; display: grid; min-width: 155px; padding: 8px 12px; border-radius: 999px; color: #fff; background: rgba(12, 23, 40, .86); transform: translateX(-50%); pointer-events: none; }
.tah-hold-card button small { color: #dce6f3; font-size: .68rem; }
.tah-dual-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.tah-dual-preview figure { margin: 0; overflow: hidden; border: 1px solid var(--tah-border); border-radius: 12px; }
.tah-dual-preview figure.is-light { background: #fff; }
.tah-dual-preview figure.is-dark { color: #fff; background: #05070b; }
.tah-dual-preview canvas { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.tah-dual-preview figcaption { display: grid; gap: 1px; padding: 7px 8px; border-top: 1px solid rgba(140,155,175,.3); font-size: .72rem; }
.tah-dual-preview figcaption span { color: #768399; font-size: .65rem; }
.tah-dual-preview .is-dark figcaption span { color: #aeb9ca; }
.tah-readiness { display: grid; grid-template-columns: 82px 1fr; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid var(--tah-border); border-radius: 12px; background: #f8fafc; }
.tah-score { display: grid; place-items: center; align-content: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, var(--tah-blue), var(--tah-cyan)); text-align: center; }
.tah-score strong { font-size: 1.55rem; line-height: 1; }
.tah-score span { margin-top: 3px; font-size: .6rem; }
.tah-readiness ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.tah-readiness li { display: flex; gap: 7px; align-items: flex-start; color: #5d6c80; font-size: .72rem; }
.tah-readiness li span { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #b4c0cf; }
.tah-readiness li.is-good span { background: #10b981; }
.tah-readiness li.is-warn span { background: #f59e0b; }
.tah-preview-note { margin: 10px 0 0; color: #68778b; font-size: .76rem; }

@media (min-width: 620px) {
  .tah-intro { grid-template-columns: 1.4fr .8fr; align-items: center; padding: 28px 24px; }
  .tah-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tah-examples, .tah-editor, .tah-preview-panel { padding-left: 20px; padding-right: 20px; }
  .tah-upload-grid, .tah-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tah-preset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tah-mask-toolbar { grid-template-columns: 170px minmax(160px, 1fr) auto; align-items: end; }
}

@media (min-width: 1020px) {
  .tah-workspace { grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr); align-items: start; }
  .tah-editor { padding: 20px; }
  .tah-preview-panel { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; border-top: 0; border-left: 1px solid var(--tah-border); }
}

@media (max-width: 420px) {
  .tah-mode-tabs button { min-height: 74px; padding: 9px; }
  .tah-preset-grid button { min-height: 62px; padding: 9px; }
  .tah-example-grid { gap: 6px; }
  .tah-example span { padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .tah-app * { scroll-behavior: auto !important; transition: none !important; }
}

/* Keep the long-form guide simple; only the FAQ and related-tool blocks stay card-like. */
.tool-tap-and-hold-image-maker-body .content-grid { grid-template-columns: 1fr; max-width: 900px; margin-right: auto; margin-left: auto; }
.tool-tap-and-hold-image-maker-body .guide-section:not(.faq-section):not(.author-box) { padding: 4px 0 18px; border: 0; border-bottom: 1px solid var(--tah-border); border-radius: 0; box-shadow: none; }
.tool-tap-and-hold-image-maker-body .guide-section h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.tool-tap-and-hold-image-maker-body .guide-section p { max-width: 78ch; }
