/* ==========================================================================
   /bulk-edit-youtube-descriptions: page-only sections of the YouTube Bulk Editor
   page (landing-pages/bulk-edit-youtube-descriptions-6.php). Loads after the shared
   kit (css/the25-landing6.css); everything is scoped under .l6-page--yttool.
   Behaviour: js/the25-site6-yttool.js (the free channel check).
   ========================================================================== */

.l6-page--yttool {
    --yt-del: #b42318;
    --yt-del-soft: #fdecec;
    --yt-ins: #0b7a4f;
    --yt-ins-soft: #e4f6ee;
}

/* ---- Shared bits --------------------------------------------------------- */

.l6-page--yttool .yt-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--l6-blue);
    color: #fff;
    font-family: var(--l6-text);
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.l6-page--yttool .yt-btn:hover {
    background: var(--l6-blue-deep);
    color: #fff;
}

.l6-page--yttool .yt-btn .s6-ico {
    width: 18px;
    height: 18px;
    transition: transform 160ms ease;
}

.l6-page--yttool .yt-btn:hover .s6-ico {
    transform: translateX(4px);
}

.l6-page--yttool .yt-btn[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.l6-page--yttool .yt-btn--lg {
    min-height: 58px;
    padding: 0 28px;
    font-size: 1.04rem;
}

.l6-page--yttool del,
.l6-page--yttool ins {
    padding: 1px 5px;
    border-radius: 5px;
}

.l6-page--yttool del {
    background: var(--yt-del-soft);
    color: var(--yt-del);
    text-decoration-thickness: 1.5px;
}

.l6-page--yttool ins {
    background: var(--yt-ins-soft);
    color: var(--yt-ins);
    text-decoration: none;
}

/* ---- Hero: copy + check form ---------------------------------------------- */

.l6-page--yttool .yt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px !important;
    color: #fff;
    font-weight: 700;
}

.l6-page--yttool .l6-display b {
    color: var(--l6-sky);
    font-weight: inherit;
}

/* The card stays put when the form grows (an error under it). */
.l6-page--yttool .l6-hero-grid {
    align-items: start;
}

.l6-page--yttool .l6-head {
    max-width: 52rem;
}

.l6-page--yttool .yt-check {
    max-width: 600px;
    margin-top: 32px;
}

.l6-page--yttool .yt-check label {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
}

.l6-page--yttool .yt-check-row {
    display: flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    transition: border-color 160ms ease, background-color 160ms ease;
}

.l6-page--yttool .yt-check-row:focus-within {
    border-color: var(--l6-mint);
    background: rgba(255, 255, 255, 0.12);
}

/* !important: the25-public.css gives every text input a forced border and focus ring. */
.l6-page--yttool .yt-check input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 52px;
    padding: 0 14px;
    border: 0 !important;
    border-radius: 10px;
    box-shadow: none !important;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    color: #fff;
    font-family: var(--l6-text);
    font-size: 1rem;
}

.l6-page--yttool .yt-check input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.l6-page--yttool .yt-check input:hover,
.l6-page--yttool .yt-check input:focus,
.l6-page--yttool .yt-check input:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
}

.l6-page--yttool .yt-check-note {
    margin-top: 12px !important;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.86rem;
    line-height: 1.55;
}

.l6-page--yttool .yt-check-note a {
    color: var(--l6-link-on-dark);
}

.l6-page--yttool .yt-check-error {
    margin-top: 12px !important;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 107, 112, 0.14);
    color: #ffd2d4;
    font-size: 0.92rem;
}

/* The way in without the check: sign up, and what is free */
.l6-page--yttool .yt-join {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    max-width: 600px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.l6-page--yttool .yt-join p {
    flex: 1 1 240px;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.86rem;
    line-height: 1.55;
}

/* Field names in the review demo's description ("Monitor:") */
.l6-page--yttool .yt-k {
    color: var(--l6-ink);
    font-weight: 700;
}

/* ---- Check result ---------------------------------------------------------- */

.l6-page--yttool .yt-result-sec {
    padding: clamp(40px, 5vw, 64px) 0;
    background: var(--l6-haze);
    scroll-margin-top: 72px;   /* the sticky site header */
}

.l6-page--yttool .yt-result {
    max-width: 920px;
    margin-inline: auto;
    padding: clamp(24px, 3.5vw, 40px);
    border: 1px solid var(--l6-line);
    border-radius: 24px;
    background: var(--l6-paper);
}

.l6-page--yttool .yt-result-who {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.l6-page--yttool .yt-result-who img {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--l6-haze);
}

.l6-page--yttool .yt-result-who b {
    display: block;
    color: var(--l6-ink);
    font-size: 1.08rem;
    line-height: 1.3;
}

.l6-page--yttool .yt-result-who small {
    color: var(--l6-muted);
    font-size: 0.88rem;
}

.l6-page--yttool .yt-result h2 {
    margin: 0 0 8px;
    color: var(--l6-ink);
    font-family: var(--l6-display);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
}

/* Focus moves here after a check so screen readers read the answer; it is not a control. */
.l6-page--yttool .yt-result h2:focus {
    outline: none;
}

.l6-page--yttool .yt-result-sub {
    color: var(--l6-muted);
}

.l6-page--yttool .yt-result-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.l6-page--yttool .yt-result-counts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--l6-haze);
    color: var(--l6-body);
    font-size: 0.9rem;
}

.l6-page--yttool .yt-result-counts b {
    color: var(--l6-ink);
}

.l6-page--yttool .yt-result-counts .is-change {
    background: #e8f1ff;
}

.l6-page--yttool .yt-result-counts .is-change b {
    color: var(--l6-blue-deep);
}

.l6-page--yttool .yt-result-counts .is-broken {
    background: var(--yt-del-soft);
}

.l6-page--yttool .yt-result-counts .is-broken b {
    color: var(--yt-del);
}

.l6-page--yttool .yt-result h2.is-broken {
    color: var(--yt-del);
}

.l6-page--yttool .yt-result-plus {
    margin: 0 0 6px !important;
    color: var(--l6-ink);
    font-weight: 700;
}

.l6-page--yttool .yt-result-top li.is-broken .yt-result-url {
    color: var(--yt-del);
    text-decoration: line-through;
}

.l6-page--yttool .yt-result-top li.is-broken .yt-result-kind {
    color: var(--yt-del);
    font-weight: 700;
}

.l6-page--yttool .yt-result h3 {
    margin: 30px 0 12px;
    color: var(--l6-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.l6-page--yttool .yt-result-top {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--l6-line);
    list-style: none;
}

.l6-page--yttool .yt-result-top li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--l6-line);
}

.l6-page--yttool .yt-result-url {
    overflow: hidden;
    color: var(--l6-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l6-page--yttool .yt-result-kind {
    grid-column: 1;
    color: var(--l6-muted);
    font-size: 0.86rem;
}

.l6-page--yttool .yt-result-n {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--l6-body);
    font-size: 0.88rem;
    white-space: nowrap;
}

.l6-page--yttool .yt-result-cta {
    margin-top: 28px;
}

.l6-page--yttool .yt-result-early {
    max-width: 36em;
    margin-top: 12px !important;
    color: var(--l6-muted);
    font-size: 0.92rem;
}

/* ==========================================================================
   The tool on the page: drawings of /user/youtube screens ([data-ytui]).
   The markup is the last frame of each scene. js/the25-site6-yttool.js adds
   .is-armed (first frame) and then .s1, .s2, ... as the scene plays; without it,
   or with reduced motion, the finished screen shows.
   ========================================================================== */

.l6-page--yttool .ytui {
    --ui-ink: var(--l6-ink);
    --ui-body: var(--l6-body);
    --ui-muted: var(--l6-muted);
    --ui-line: #dce3ec;
    --ui-line-soft: #e9eef4;
    --ui-soft: #f4f7fb;
    --ui-accent: var(--l6-blue);
    --ui-accent-soft: #e8f1ff;
    --ui-accent-text: var(--l6-blue-deep);
    --ui-bolt-soft: #fff3d1;
    --ui-bolt-text: #7a5200;
    --ui-bolt-line: #f0d48a;
    --ui-crit: #e5484d;
    --ui-crit-soft: #fdecec;
    --ui-crit-text: #b42318;
    --ui-good-soft: #e4f6ee;
    --ui-good-text: #0b7a4f;
    width: 100%;
    max-width: 660px;
    justify-self: center;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(13, 27, 46, 0.04), 0 24px 60px rgba(13, 27, 46, 0.14);
    color: var(--ui-body);
    font-family: var(--l6-text);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.l6-page--yttool .ytui--hero {
    justify-self: end;
    margin-top: 8px;
    box-shadow: 0 30px 80px rgba(3, 10, 30, 0.5);
}

.l6-page--yttool .ytui-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--ui-line);
    background: var(--ui-soft);
}

.l6-page--yttool .ytui-dots {
    display: inline-flex;
    gap: 6px;
}

.l6-page--yttool .ytui-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9e0ea;
}

.l6-page--yttool .ytui-url {
    flex: 1;
    max-width: 280px;
    margin: 0 auto;
    padding: 3px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--ui-muted);
    font: 500 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-align: center;
}

.l6-page--yttool .ytui-body {
    display: grid;
    gap: 12px;
    padding: 16px 18px 18px;
}

.l6-page--yttool .ytui-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.l6-page--yttool .ytui-head img {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.l6-page--yttool .ytui-head b {
    display: block;
    color: var(--ui-ink);
    font-size: 15px;
    line-height: 1.25;
}

.l6-page--yttool .ytui-head small {
    color: var(--ui-muted);
    font-size: 12.5px;
}

.l6-page--yttool .ytui-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ui-good-soft);
    color: var(--ui-good-text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.l6-page--yttool .ytui-pill .s6-ico {
    width: 14px;
    height: 14px;
}

.l6-page--yttool .ytui-tabs {
    display: flex;
    gap: 2px;
    overflow: hidden;
    border-bottom: 1px solid var(--ui-line);
}

.l6-page--yttool .ytui-tabs span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -1px;
    padding: 8px 10px;
    border-bottom: 2px solid transparent;
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.l6-page--yttool .ytui-tabs .is-on {
    border-bottom-color: var(--ui-ink);
    color: var(--ui-ink);
}

.l6-page--yttool .ytui-tabs i {
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ui-accent);
    color: #fff;
    font: 700 11px/1.6 var(--l6-text);
    font-style: normal;
}

.l6-page--yttool .ytui-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.l6-page--yttool .ytui-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--ui-line);
    border-radius: 999px;
    color: var(--ui-body);
    font-size: 12.5px;
    font-weight: 700;
}

.l6-page--yttool .ytui-chips b {
    font: 500 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    opacity: 0.8;
}

.l6-page--yttool .ytui-chips .is-on {
    border-color: var(--ui-ink);
    background: var(--ui-ink);
    color: #fff;
}

.l6-page--yttool .ytui-chips .is-crit {
    border-color: transparent;
    background: var(--ui-crit-soft);
    color: var(--ui-crit-text);
}

.l6-page--yttool .ytui-rows {
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
}

.l6-page--yttool .ytui-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 11px 12px;
    border-top: 1px solid var(--ui-line-soft);
}

.l6-page--yttool .ytui-row:first-child {
    border-top: 0;
}

.l6-page--yttool .ytui-box {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 1.5px solid var(--ui-line);
    border-radius: 4px;
    background: #fff;
    color: #fff;
}

.l6-page--yttool .ytui-box .s6-ico {
    width: 12px;
    height: 12px;
    stroke-width: 3;
}

.l6-page--yttool .ytui-box.is-on,
.l6-page--yttool .ytui-tick {
    border-color: var(--ui-accent);
    background: var(--ui-accent);
}

.l6-page--yttool .ytui-box.is-none {
    visibility: hidden;
}

.l6-page--yttool .ytui-main {
    min-width: 0;
}

.l6-page--yttool .ytui-url-t {
    display: block;
    color: var(--ui-ink);
    font: 500 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

.l6-page--yttool .ytui-row--broken .ytui-url-t {
    color: var(--ui-crit-text);
    text-decoration: line-through;
}

.l6-page--yttool .ytui-dest {
    color: var(--ui-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.l6-page--yttool .ytui-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.l6-page--yttool .ytui-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

.l6-page--yttool .ytui-badge img {
    width: 14px;
    height: 14px;
}

.l6-page--yttool .ytui-badge--bolt {
    background: var(--ui-bolt-soft);
    color: var(--ui-bolt-text);
    box-shadow: inset 0 0 0 1px var(--ui-bolt-line);
}

.l6-page--yttool .ytui-badge--accent {
    background: var(--ui-accent-soft);
    color: var(--ui-accent-text);
}

.l6-page--yttool .ytui-badge--soft {
    background: var(--ui-soft);
    color: var(--ui-ink);
    box-shadow: inset 0 0 0 1px var(--ui-line);
}

.l6-page--yttool .ytui-badge--crit {
    background: var(--ui-crit-soft);
    color: var(--ui-crit-text);
    white-space: normal;
}

.l6-page--yttool .ytui-badge--good {
    background: var(--ui-good-soft);
    color: var(--ui-good-text);
}

.l6-page--yttool .ytui-to {
    color: var(--ui-muted);
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.l6-page--yttool .ytui-to code {
    padding: 0;
    background: none;
    color: var(--ui-accent-text);
    font: 600 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* "Kept as is" and "→ link" share one place; the scene swaps them. */
.l6-page--yttool .ytui-flip,
.l6-page--yttool .ytui-flip2 {
    display: grid;
    justify-items: end;
}

.l6-page--yttool .ytui-flip > span,
.l6-page--yttool .ytui-flip2 > span {
    grid-area: 1 / 1;
    transition: opacity 0.3s ease;
}

.l6-page--yttool .ytui-flip .ytui-kept,
.l6-page--yttool .ytui-flip2 .ytui-kept {
    opacity: 0;
}

.l6-page--yttool .ytui-kept {
    color: var(--ui-muted);
    font-size: 12px;
}

.l6-page--yttool .ytui-field {
    display: grid;
    gap: 3px;
    margin-top: 8px;
}

.l6-page--yttool .ytui-field small {
    color: var(--ui-muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.l6-page--yttool .ytui-input {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--ui-line);
    border-radius: 7px;
    background: #fff;
    color: var(--ui-ink);
    font: 500 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.l6-page--yttool .ytui-ph {
    color: #9aa6b6;
}

.l6-page--yttool .ytui-caret {
    display: none;
    width: 1.5px;
    height: 15px;
    margin-left: 1px;
    background: var(--ui-ink);
    animation: ytui-blink 1s steps(1) infinite;
}

.l6-page--yttool .ytui.is-typing .ytui-caret {
    display: inline-block;
}

@keyframes ytui-blink {
    50% { opacity: 0; }
}

.l6-page--yttool .ytui-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ui-body);
    font-size: 13px;
}

.l6-page--yttool .ytui-foot b {
    color: var(--ui-ink);
    font-variant-numeric: tabular-nums;
}

.l6-page--yttool .ytui-btn {
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--ui-accent);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.l6-page--yttool .ytui-domain {
    color: var(--ui-muted);
}

.l6-page--yttool .ytui-notice {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--ui-crit-soft);
    color: var(--ui-crit-text);
    font-size: 12.5px;
    box-shadow: inset 0 0 0 1px var(--ui-crit);
}

.l6-page--yttool .ytui-rule {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
}

.l6-page--yttool .ytui-rule .ytui-field {
    margin-top: 0;
}

.l6-page--yttool .ytui-opts {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 16px;
}

.l6-page--yttool .ytui-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ui-ink);
    font-size: 12.5px;
}

.l6-page--yttool .ytui-opt i {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--ui-line);
    border-radius: 4px;
}

.l6-page--yttool .ytui-opt.is-on i {
    border-color: var(--ui-accent);
    background: var(--ui-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.75l4.5 4.5L19 7.25'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.l6-page--yttool .ytui-found {
    margin: 0 !important;
    color: var(--ui-ink);
    font-size: 13px;
    font-weight: 700;
}

.l6-page--yttool .ytui-matches {
    display: grid;
    gap: 8px;
}

.l6-page--yttool .ytui-match {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--ui-line);
    border-radius: 10px;
}

.l6-page--yttool .ytui-match img,
.l6-page--yttool .ytui-diff-h img,
.l6-page--yttool .ytui-vids img {
    flex: none;
    border-radius: 6px;
    object-fit: cover;
}

.l6-page--yttool .ytui-match b {
    display: block;
    color: var(--ui-ink);
    font-size: 13px;
}

.l6-page--yttool .ytui-match span {
    font-size: 12.5px;
}

.l6-page--yttool .ytui-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.l6-page--yttool .ytui-stats span {
    padding: 8px 10px;
    border: 1px solid var(--ui-line);
    border-radius: 10px;
    color: var(--ui-muted);
    font-size: 11.5px;
}

.l6-page--yttool .ytui-stats b {
    display: block;
    color: var(--ui-ink);
    font-family: var(--l6-display);
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.l6-page--yttool .ytui-diff {
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
}

.l6-page--yttool .ytui-diff-h {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--ui-line);
    background: var(--ui-soft);
}

.l6-page--yttool .ytui-diff-h b {
    color: var(--ui-ink);
    font-size: 13px;
}

.l6-page--yttool .ytui-diff-h small {
    margin-left: auto;
    color: var(--ui-muted);
    font-size: 12px;
    white-space: nowrap;
}

.l6-page--yttool .ytui-diff-b {
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.6;
}

.l6-page--yttool .ytui-diff-b p {
    margin: 0 0 4px !important;
    overflow-wrap: anywhere;
}

.l6-page--yttool .ytui-progress {
    display: grid;
    gap: 6px;
}

.l6-page--yttool .ytui-progress-t {
    color: var(--ui-ink);
    font-size: 13px;
}

.l6-page--yttool .ytui-meter {
    display: block;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: var(--ui-soft);
}

.l6-page--yttool .ytui-meter i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--ui-accent);
}

.l6-page--yttool .ytui-batch {
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
}

.l6-page--yttool .ytui-batch-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}

.l6-page--yttool .ytui-batch-top > div {
    flex: 1 1 180px;
}

.l6-page--yttool .ytui-batch-top b {
    display: block;
    color: var(--ui-ink);
    font-size: 13.5px;
}

.l6-page--yttool .ytui-batch-top small {
    color: var(--ui-muted);
    font-size: 12px;
}

.l6-page--yttool .ytui-undo {
    margin-left: auto;
    padding: 5px 10px;
    border: 1px solid var(--ui-line);
    border-radius: 8px;
    color: var(--ui-ink);
    font-size: 12px;
    font-weight: 700;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.l6-page--yttool .ytui-vids {
    display: grid;
    margin: 0;
    padding: 0 12px 6px;
    list-style: none;
}

.l6-page--yttool .ytui-vids li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid var(--ui-line-soft);
    font-size: 12.5px;
}

.l6-page--yttool .ytui-vids span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--ui-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l6-page--yttool .ytui-vids i {
    display: inline-flex;
    color: var(--ui-good-text);
}

.l6-page--yttool .ytui-vids .s6-ico {
    stroke-width: 2.5;
}

.l6-page--yttool .ytui-vids .s6-ico {
    width: 18px;
    height: 18px;
}

/* ---- The scenes: first frame (.is-armed) and the steps (.s1, .s2, ...) ------ */

.l6-page--yttool .ytui.is-armed .ytui-in {
    opacity: 0;
    transform: translateY(8px);
}

.l6-page--yttool .ytui.is-armed .ytui-in,
.l6-page--yttool .ytui.is-armed .ytui-at1,
.l6-page--yttool .ytui.is-armed .ytui-at2,
.l6-page--yttool .ytui.is-armed .ytui-at3 {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.l6-page--yttool .ytui.is-armed.s1 .ytui-in {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 140ms);
}

.l6-page--yttool .ytui.is-armed .ytui-at1,
.l6-page--yttool .ytui.is-armed .ytui-at2,
.l6-page--yttool .ytui.is-armed .ytui-at3 {
    opacity: 0;
}

.l6-page--yttool .ytui.is-armed.s1 .ytui-at1,
.l6-page--yttool .ytui.is-armed.s2 .ytui-at2,
.l6-page--yttool .ytui.is-armed.s3 .ytui-at3 {
    opacity: 1;
}

/* Shown dimmed until step 3 (the find & replace results while the rule is typed) */
.l6-page--yttool .ytui.is-armed .ytui-dim3 {
    opacity: 0.22;
    filter: grayscale(1);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.l6-page--yttool .ytui.is-armed.s3 .ytui-dim3 {
    opacity: 1;
    filter: none;
}

/* links: each box ticks, then its link appears */
.l6-page--yttool .ytui.is-armed .ytui-tick {
    border-color: var(--ui-line);
    background: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.l6-page--yttool .ytui.is-armed .ytui-tick .s6-ico {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.l6-page--yttool .ytui.is-armed.s1 .ytui-tick {
    border-color: var(--ui-accent);
    background: var(--ui-accent);
    transition-delay: calc(var(--i, 0) * 700ms);
}

.l6-page--yttool .ytui.is-armed.s1 .ytui-tick .s6-ico {
    opacity: 1;
    transition-delay: calc(var(--i, 0) * 700ms);
}

.l6-page--yttool .ytui.is-armed .ytui-flip .ytui-kept,
.l6-page--yttool .ytui.is-armed .ytui-flip2 .ytui-kept {
    opacity: 1;
}

.l6-page--yttool .ytui.is-armed .ytui-flip .ytui-new,
.l6-page--yttool .ytui.is-armed .ytui-flip2 .ytui-new {
    opacity: 0;
}

.l6-page--yttool .ytui.is-armed.s1 .ytui-flip > span,
.l6-page--yttool .ytui.is-armed.s3 .ytui-flip2 > span {
    transition-delay: calc(var(--i, 0) * 700ms + 250ms);
}

.l6-page--yttool .ytui.is-armed.s1 .ytui-flip .ytui-kept,
.l6-page--yttool .ytui.is-armed.s3 .ytui-flip2 .ytui-kept {
    opacity: 0;
}

.l6-page--yttool .ytui.is-armed.s1 .ytui-flip .ytui-new,
.l6-page--yttool .ytui.is-armed.s3 .ytui-flip2 .ytui-new {
    opacity: 1;
}

/* review: the new text appears line by line */
.l6-page--yttool .ytui.is-armed .ytui-hl ins {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.l6-page--yttool .ytui.is-armed.s2 .ytui-hl ins {
    opacity: 1;
    transition-delay: calc(var(--i, 0) * 260ms);
}

/* save: the bar fills, then the save shows in the history and Undo lights up */
.l6-page--yttool .ytui.is-armed .ytui-meter i {
    width: 0;
}

.l6-page--yttool .ytui.is-armed.s1 .ytui-meter i {
    width: 100%;
    transition: width 1.2s cubic-bezier(0.3, 0.6, 0.4, 1);
}

.l6-page--yttool .ytui.is-armed.s3 .ytui-undo {
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 4px var(--ui-accent-soft);
}

/* ---- The tour around the screens ------------------------------------------- */

.l6-page--yttool .yt-tour .l6-split,
.l6-page--yttool .yt-tour .l6-split--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.l6-page--yttool .yt-tour-copy > p {
    max-width: 34em;
    font-size: 1.06rem;
}

.l6-page--yttool .yt-tour-cta {
    padding: clamp(40px, 5vw, 64px) 0;
    text-align: center;
}

.l6-page--yttool .yt-tour-cta p {
    max-width: 40em;
    margin: 14px auto 0 !important;
    color: var(--l6-muted);
    font-size: 0.92rem;
}

.l6-page--yttool .yt-final-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.l6-page--yttool .yt-final-box .yt-btn--line,
.l6-page--yttool .yt-join .yt-btn--line {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.l6-page--yttool .yt-final-box .yt-btn--line:hover,
.l6-page--yttool .yt-join .yt-btn--line:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.l6-page--yttool .yt-kicker .s6-ico {
    width: 22px;
    height: 22px;
    color: var(--l6-sky);
}

/* ---- Safe by design: rule list --------------------------------------------- */

.l6-page--yttool .yt-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.l6-page--yttool .yt-rules li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.l6-page--yttool .yt-rules .s6-ico {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 12px;
    background: #e8f1ff;
    color: var(--l6-blue-deep);
}

.l6-page--yttool .yt-rules h3 {
    margin: 6px 0 6px;
    color: var(--l6-ink);
    font-size: 1.08rem;
    font-weight: 700;
}

.l6-page--yttool .yt-rules p {
    margin: 0;
    font-size: 0.96rem;
}

/* ---- Switching from Geniuslink / URLgenius ---------------------------------- */

.l6-page--yttool .yt-switch {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

.l6-page--yttool .yt-switch-copy > p {
    max-width: 34em;
    font-size: 1.06rem;
}

.l6-page--yttool .yt-ticks {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.l6-page--yttool .yt-ticks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--l6-ink);
}

.l6-page--yttool .yt-ticks .s6-ico {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--l6-go);
}

.l6-page--yttool .yt-switch-art {
    display: grid;
    gap: 10px;
    padding-top: 28px;   /* level with the heading, not the eyebrow */
}

.l6-page--yttool .yt-hop-cap {
    margin: 0 !important;
    color: var(--yt-del);
    font-size: 0.86rem;
    font-weight: 700;
}

.l6-page--yttool .yt-hop-cap--new {
    margin-top: 14px !important;
    color: var(--yt-ins);
}

.l6-page--yttool .yt-hop {
    display: flex;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--l6-line);
    border-radius: 20px;
    background: var(--l6-paper);
}

.l6-page--yttool .yt-hop-node {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--l6-haze);
    color: var(--l6-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.l6-page--yttool .yt-hop-node--old {
    background: var(--yt-del-soft);
    color: var(--yt-del);
}

.l6-page--yttool .yt-hop-node--app {
    background: var(--yt-ins-soft);
    color: var(--yt-ins);
}

.l6-page--yttool .yt-hop-line {
    position: relative;
    flex: 1 1 auto;
    min-width: 22px;
    height: 2px;
    margin-right: 6px;
    background: var(--yt-ins);
    color: var(--yt-ins);
}

/* Arrowhead */
.l6-page--yttool .yt-hop-line::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -6px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
}

.l6-page--yttool .yt-hop-line--old {
    background: repeating-linear-gradient(90deg, var(--yt-del) 0 6px, transparent 6px 11px);
    color: var(--yt-del);
}

/* ---- Closing CTA and legal line --------------------------------------------- */

.l6-page--yttool .yt-final-box {
    padding: clamp(36px, 5vw, 64px);
    border-radius: 28px;
    background: var(--l6-blue);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.l6-page--yttool .yt-final-box .l6-h2 {
    color: #fff;
}

.l6-page--yttool .yt-final-box p {
    max-width: 34em;
    margin: 0 auto 26px;
    font-size: 1.08rem;
    text-wrap: balance;
}

.l6-page--yttool .yt-final-box .yt-btn {
    background: #fff;
    color: var(--l6-blue-deep);
}

.l6-page--yttool .yt-final-box .yt-btn:hover {
    background: #eaf2ff;
    color: var(--l6-blue-deep);
}

.l6-page--yttool .yt-legal {
    width: min(100% - 48px, 920px);
    margin: 0 auto !important;
    padding: 0 0 clamp(48px, 6vw, 80px);
    color: var(--l6-muted);
    font-size: 0.84rem;
    line-height: 1.6;
    text-align: center;
    text-wrap: balance;
}

.l6-page--yttool .yt-legal a {
    white-space: nowrap;
}

/* ---- How it works: four steps in one row, then two by two ------------------- */

.l6-page--yttool .l6-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---- Breakpoints ------------------------------------------------------------ */

@media (max-width: 1180px) {
    .l6-page--yttool .l6-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .l6-page--yttool .yt-rules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .l6-page--yttool .ytui--hero,
    .l6-page--yttool .yt-tour .ytui {
        justify-self: start;
        max-width: 760px;
    }

    .l6-page--yttool .yt-tour .l6-split,
    .l6-page--yttool .yt-tour .l6-split--flip {
        grid-template-columns: minmax(0, 1fr);
    }

    .l6-page--yttool .yt-switch {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .l6-page--yttool .l6-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .l6-page--yttool .yt-check-row {
        flex-direction: column;
    }

    .l6-page--yttool .yt-check .yt-btn {
        width: 100%;
    }

    /* The tool's screens on a phone: one column, the new link under the old one */
    .l6-page--yttool .ytui-body {
        padding: 12px;
    }

    .l6-page--yttool .ytui-pill {
        display: none;
    }

    .l6-page--yttool .ytui-tabs {
        -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
        mask-image: linear-gradient(90deg, #000 82%, transparent);
    }

    .l6-page--yttool .ytui-tabs span {
        padding: 8px 7px;
        font-size: 12px;
    }

    .l6-page--yttool .ytui-wide {
        display: none;
    }

    .l6-page--yttool .ytui-row {
        grid-template-columns: 16px minmax(0, 1fr);
        gap: 4px 10px;
    }

    .l6-page--yttool .ytui-to {
        grid-column: 2;
        text-align: left;
        white-space: normal;
    }

    .l6-page--yttool .ytui-flip,
    .l6-page--yttool .ytui-flip2 {
        justify-items: start;
    }

    .l6-page--yttool .ytui-rule {
        grid-template-columns: minmax(0, 1fr);
    }

    .l6-page--yttool .ytui-stats b {
        font-size: 18px;
    }

    .l6-page--yttool .yt-final-btns .yt-btn {
        width: 100%;
    }

    .l6-page--yttool .yt-rules {
        grid-template-columns: minmax(0, 1fr);
    }

    .l6-page--yttool .yt-hop {
        flex-direction: column;
        align-items: flex-start;
    }

    .l6-page--yttool .yt-hop-line {
        flex: none;
        width: 2px;
        height: 22px;
        min-width: 0;
        margin: 0 0 6px 20px;
    }

    .l6-page--yttool .yt-hop-line::after {
        top: auto;
        right: auto;
        bottom: -6px;
        left: -4px;
        border-top: 7px solid currentColor;
        border-right: 5px solid transparent;
        border-bottom: 0;
        border-left: 5px solid transparent;
    }

    .l6-page--yttool .yt-hop-line--old {
        background: repeating-linear-gradient(180deg, var(--yt-del) 0 5px, transparent 5px 9px);
    }

    .l6-page--yttool .yt-result-top li {
        grid-template-columns: minmax(0, 1fr);
    }

    .l6-page--yttool .yt-result-n {
        grid-column: 1;
        grid-row: auto;
    }

    .l6-page--yttool .yt-result-cta .yt-btn {
        width: 100%;
    }

    .l6-page--yttool .yt-legal {
        width: calc(100% - 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .l6-page--yttool .yt-btn .s6-ico {
        transition: none;
    }

    .l6-page--yttool .ytui-caret {
        animation: none;
    }
}
