.tools-body {
    background: radial-gradient(ellipse at 90% 0%, #f8e5ec, transparent 40rem), #fbf7f2;
}
.tool-page { padding-block: clamp(18px, 3vw, 36px) clamp(40px, 7vw, 84px); }
.tool-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: clamp(24px, 5vw, 70px);
    padding: clamp(24px, 5.5vw, 68px);
    border-radius: 26px;
    color: #fff8f4;
    background: radial-gradient(ellipse at 100% 0%, #65405e, transparent 62%),
        linear-gradient(120deg, #23182b, #3b233a);
    box-shadow: 0 18px 35px -22px #472540;
}
.tool-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, #ffe8f13a 1px, transparent 1.5px) 0 0 / 18px 18px;
    mask-image: linear-gradient(110deg, transparent 38%, #000);
    content: "";
    pointer-events: none;
}
.tool-index, .preview-head, .tool-number, .tool-output > span:first-child {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.tool-index { display: inline-flex; align-items: center; gap: 8px; color: #f4ccdd; }
.tool-index i { width: 7px; height: 7px; border-radius: 50%; background: #ffbe99; box-shadow: 0 0 12px #ffbe99aa; }
.tool-intro h1 {
    margin: 14px 0;
    font-size: clamp(2.55rem, 5.25vw, 4.4rem);
    line-height: .99;
    letter-spacing: -.072em;
}
.tool-intro h1 em { color: #ffd0ac; font-family: Georgia, serif; font-weight: 400; }
.tool-intro p { max-width: 42ch; margin: 0; color: #ead9e8; font-size: clamp(.95rem, 1.4vw, 1.07rem); }
.tool-hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tool-hero-links a, .tool-actions button, #copy-shots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: .83rem;
    font-weight: 750;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.tool-hero-links a:first-child { color: #302037; background: #ffe2cb; }
.tool-hero-links a + a { color: #fff4fa; border-color: #e4bad880; background: #fff1fa12; }
.tool-hero-links a:hover, .tool-actions button:hover:not(:disabled), #copy-shots:hover { transform: translateY(-2px); }
.tool-preview {
    min-width: 0;
    padding: clamp(13px, 2.5vw, 22px);
    border: 1px solid #efd4e947;
    border-radius: 18px;
    background: #24172cde;
    box-shadow: 0 20px 48px #1a0d2570;
}
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #f2d6e7; }
.preview-head span:last-child { color: #e3c5e2; border: 1px solid #d0a2ce61; border-radius: 6px; padding: 2px 5px; }
.preview-metric {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(115deg, #5a3854, #452d52);
}
.tool-preview small { display: block; color: #edd8e7; font-size: .68rem; font-weight: 700; letter-spacing: .075em; }
.preview-metric strong { display: block; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.06em; white-space: nowrap; }
.preview-metric strong span { color: #f0dbe8; font-size: .69rem; letter-spacing: 0; }
.preview-metric svg { width: min(36%, 116px); height: auto; flex-shrink: 0; }
.preview-timeline { margin-top: 13px; }
.preview-timeline div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 5px; }
.preview-timeline div span { padding: 5px 2px; border-radius: 6px; text-align: center; color: #33233b; background: #f2cbe8; font-size: .69rem; font-weight: 700; }
.preview-timeline div span:nth-child(2) { background: #e5d6ff; }
.preview-timeline div span:nth-child(3) { background: #ffddc2; }

.tool-section { margin-top: clamp(26px, 4.2vw, 52px); }
.tool-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 13px; }
.tool-section-head h2 { margin: 3px 0 0; font-size: clamp(1.36rem, 3vw, 2.05rem); line-height: 1.1; letter-spacing: -.045em; }
.tool-workbench { display: grid; gap: 12px; }
.tool-related { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.tool-related .tool-launch { flex: 0 1 26rem; }
.tool-related .tool-guide { margin-top: 0; }
.tool-workbench { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.tool-launch {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 11px 12px;
    border: 1px solid #e6d9df;
    border-radius: 14px;
    background: #fffdfa;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tool-launch:hover { transform: translateY(-2px); border-color: #b87e9f; box-shadow: 0 8px 22px -13px #5b324a; }
.launch-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 11px; }
.launch-icon svg { width: 22px; height: 22px; }
.download-launch .launch-icon { color: #614497; background: #eae1fc; }
.launch-copy strong, .launch-copy small { display: block; }
.launch-copy strong { font-size: .94rem; line-height: 1.25; }
.launch-copy small { margin-top: 3px; color: #685d6c; font-size: .75rem; line-height: 1.25; }
.launch-arrow { color: #79536d; font-size: 1rem; }
.tool-private { color: #54415b; background: #eee4f0; padding: 4px 9px; border-radius: 20px; font-size: .71rem; font-weight: 700; }
.tool-panel {
    padding: clamp(14px, 2.5vw, 24px);
    border: 1px solid #e6d9df;
    border-top: 3px solid #b75376;
    border-radius: 16px;
    background: #fffdfa;
    box-shadow: 0 7px 25px -22px #482643;
    scroll-margin-top: 22px;
}
#hook-planner { border-top-color: #7e62a8; }
.tool-panel h3 { margin: 4px 0; font-size: clamp(1.22rem, 2.5vw, 1.65rem); line-height: 1.15; letter-spacing: -.035em; }
.tool-panel p { margin: 0; color: #685d6c; font-size: .88rem; }
.tool-number { color: #8c3557; }
#hook-planner .tool-number { color: #634891; }
.tool-panel form { display: grid; gap: 9px; margin-top: 15px; }
.tool-panel label { display: grid; gap: 4px; font-size: .81rem; font-weight: 700; }
.tool-panel input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #d5c4ce;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}
.tool-panel input::placeholder { color: #786d7c; }
.tool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tool-panel .shot-field { grid-template-columns: 47px minmax(0, 1fr); align-items: end; }
.shot-field input { display: block; margin-top: 4px; }
.shot-time { align-self: end; margin-bottom: 10px; color: #604682; background: #efe6f7; padding: 3px 2px; border-radius: 5px; text-align: center; font-size: .72rem; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.tool-actions button, #copy-shots { cursor: pointer; }
.tool-actions button:disabled { cursor: default; opacity: .55; }
.tool-submit { background: #38253f; color: #fff; }
.tool-example { background: #f6eef4; color: #512e53; }
.tool-guide { display: inline-block; padding-block: 9px; margin-top: 7px; color: #803d65; font-size: .83rem; font-weight: 750; text-underline-offset: .2em; }
.tool-output { padding: 10px 12px; border: 1px solid #ead8e8; border-radius: 11px; background: #fbf2f7; color: #592c53; }
.tool-output[hidden], #copy-shots[hidden] { display: none; }
.tool-output output { display: block; font-size: .97rem; overflow-wrap: anywhere; }
.tool-output output strong { font-size: 1.65rem; line-height: 1.15; }
#shot-list { margin: 5px 0 8px; padding-left: 21px; overflow-wrap: anywhere; font-size: .88rem; }
#copy-status { display: block; font-size: .78rem; }
#copy-status:not(:empty) { margin-top: 4px; }
.tool-page :is(a, button, input):focus-visible { outline: 2px solid #9b4fa1; outline-offset: 3px; }
.tool-hero a:focus-visible { outline-color: #ffd3a8; }

@media (max-width: 760px) {
    .tool-launch { min-height: 64px; }
    .tool-hero { gap: 18px; }

}
@media (max-width: 580px) {
    .tool-hero, .tool-workbench { grid-template-columns: minmax(0, 1fr); }
    .tool-hero { border-radius: 18px; padding: 18px; }
    .tool-preview { border-radius: 12px; }
    .tool-intro h1 { margin-block: 10px; }
    .tool-hero-links { gap: 6px; margin-top: 14px; }
    .tool-hero-links a { padding-inline: 10px; }
    .preview-metric { align-items: center; margin-top: 8px; padding: 8px; }
    .preview-metric svg { max-height: 34px; }
    .preview-timeline { margin-top: 8px; }
    .tool-section-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .tool-page :is(a, button) { transition: none; }
    .tool-page :is(a, button):hover { transform: none; }
}
