/* Dry texter quiz (dry-texter-quiz.js): replies as chat bubbles */
.tool .dt-screen { display: flex; flex-direction: column; }
.tool .dt-q { min-height: 560px; }
.tool .dt-screen > .dt-in { animation: u8-in .35s var(--ease-out) both; }
.tool .dt-intro, .tool .dt-q, .tool .dt-result { display: flex; flex-direction: column; gap: 14px; }
.tool .dt-result:focus { outline: none; }
.tool .dt-field { display: flex; flex-direction: column; gap: 6px; }
.tool .dt-preview { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .05); }
.tool .dt-preview .is-ghost { opacity: .45; text-decoration: line-through; text-decoration-thickness: 2px; }

/* Bubbles */
.tool .dt-in-b, .tool .dt-out-b { max-width: 82%; padding: 9px 15px; font-size: 16px; line-height: 22px; font-weight: 650; text-wrap: pretty; }
.tool .dt-in-b { align-self: flex-start; border-radius: 20px 20px 20px 6px; background: rgb(var(--ink) / .08); color: rgb(var(--ink)); }
.tool .dt-out-b { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--ramp, rgb(var(--accent))); color: #fff; }
.tool .dt-thread { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .05); }
.tool .dt-ctx { font-size: 14px; line-height: 20px; font-weight: 750; color: rgb(var(--ink) / .5); }
.tool .dt-prompt { font-size: 20px; line-height: 28px; font-weight: 900; color: rgb(var(--ink)); }
.tool .dt-replies { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tool .dt-reply {
  display: flex; align-items: flex-start; gap: 10px; max-width: 92%; min-height: 48px; padding: 11px 16px 11px 10px; text-align: left;
  border-radius: 22px 22px 6px 22px; background: var(--surface); color: rgb(var(--ink)); font-size: 16px; line-height: 22px; font-weight: 650;
  box-shadow: inset 0 0 0 1.5px rgb(var(--accent) / .3); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s var(--ease-out);
}
.tool .dt-reply:active { transform: scale(.97); }
.tool .dt-reply:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.tool .dt-reply[aria-checked="true"] { box-shadow: inset 0 0 0 2px rgb(var(--accent)); }
.tool .dt-reply.is-sent { background: var(--ramp, rgb(var(--accent))); color: #fff; box-shadow: none; transform: translateY(-4px); }
.tool .dt-reply.is-sent .dt-key { background: rgb(255 255 255 / .25); color: #fff; }
.tool .dt-key { flex: none; width: 22px; height: 22px; margin-top: 0; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--surface-2); color: rgb(var(--ink) / .5); }
@media (hover: hover) { .tool .dt-reply:hover { box-shadow: inset 0 0 0 2px rgb(var(--accent) / .6); } }
@media (hover: none) { .tool .dt-key { display: none; } .tool .dt-reply { padding-left: 16px; } }

/* Progress */
.tool .dt-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.tool .dt-count { font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .5); font-variant-numeric: tabular-nums; }
.tool .dt-head .u8-ghost { margin-left: auto; }
.tool .dt-dots { display: flex; gap: 4px; }
.tool .dt-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgb(var(--ink) / .12); transition: width .3s var(--ease-out), background-color .2s ease; }
.tool .dt-dots .is-done { background: rgb(var(--accent) / .6); }
.tool .dt-dots .is-now { width: 22px; background: rgb(var(--accent)); }

/* Checks (test them) */
.tool .dt-checks { display: grid; gap: 10px; }
.tool .dt-check { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--surface); }
.tool .dt-check p { font-size: 16px; line-height: 23px; font-weight: 750; color: rgb(var(--ink)); }
.tool .dt-check .u8-thumb { background: rgb(var(--ink)); box-shadow: none; }
.tool .dt-check .u8-seg button[aria-checked="true"] { color: var(--surface); }

/* Result */
.tool .dt-card { text-align: center; align-items: center; padding: 28px 20px 22px; background: var(--surface); position: relative; overflow: hidden; }
.tool .dt-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--ramp, rgb(var(--accent))); }
.tool .dt-style { font-size: 34px; line-height: 40px; font-weight: 950; letter-spacing: -.02em; color: rgb(var(--ink)); text-wrap: balance; }
.tool .dt-line { font-size: 18px; line-height: 26px; font-weight: 750; color: var(--link); margin-top: -8px; }
.tool .dt-dry { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.tool .dt-dry-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .6); }
.tool .dt-dry-head b { color: rgb(var(--ink)); font-variant-numeric: tabular-nums; }
.tool .dt-desc { margin: 0; max-width: 480px; text-wrap: pretty; }
.tool .dt-verdict { gap: 8px; }
.tool .dt-verdict-h { font-size: 26px; line-height: 32px; font-weight: 950; letter-spacing: -.01em; color: rgb(var(--ink)); }
.tool .dt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool .dt-box { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 20px; background: var(--surface); }
.tool .dt-box p:last-child { font-size: 15px; line-height: 22px; font-weight: 600; }
.tool .dt-section { display: flex; flex-direction: column; gap: 10px; }
.tool .dt-tips li { font-size: 15px; line-height: 22px; }
.tool .dt-mix { display: grid; gap: 8px; }
.tool .dt-mix li { display: grid; grid-template-columns: 120px 1fr 52px; align-items: center; gap: 10px; font-size: 14px; font-weight: 750; }
.tool .dt-mix b { text-align: right; font-variant-numeric: tabular-nums; color: rgb(var(--ink) / .6); font-size: 13px; }

/* Combo card */
.tool .dt-combo { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: 24px; text-align: center; background: var(--ramp, rgb(var(--accent))); color: #fff; animation: u8-in .5s var(--ease-out) both; }
.tool .dt-combo .u8-eyebrow { color: rgb(255 255 255 / .8); }
.tool .dt-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.tool .dt-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-radius: 18px; background: rgb(255 255 255 / .16); }
.tool .dt-side span, .tool .dt-side small { font-size: 13px; line-height: 18px; font-weight: 750; color: rgb(255 255 255 / .8); }
.tool .dt-side b { font-size: 16px; line-height: 21px; font-weight: 900; color: #fff; }
.tool .dt-plus { font-size: 24px; font-weight: 900; color: rgb(255 255 255 / .8); }
.tool .dt-combo-name { font-size: 28px; line-height: 34px; font-weight: 950; letter-spacing: -.01em; color: #fff; }
.tool .dt-combo-tip { font-size: 16px; line-height: 24px; font-weight: 650; color: rgb(255 255 255 / .92); max-width: 460px; margin: 0 auto; }

@media (max-width: 599px) {
  .tool .dt-two { grid-template-columns: 1fr; }
  .tool .dt-mix li { grid-template-columns: 104px 1fr 48px; }
  .tool .dt-style { font-size: 30px; line-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .tool .dt-screen > .dt-in, .tool .dt-combo { animation: none; } .tool .dt-reply.is-sent { transform: none; } }
@media (prefers-color-scheme: dark) {
  .tool .dt-in-b { background: rgb(var(--ink) / .14); }
  .tool .dt-check .u8-seg button[aria-checked="true"] { color: #12061F; }
}

/* Round 2: style looks, partner hero, rewrites, focus mode */
.tool.dt-focus > .tool-cta { display: none; }
.tool .dt-glyph { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool .dt-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 28px; background: var(--st, rgb(var(--accent))); color: #fff; margin-bottom: -4px; }
.tool .dt-badge .dt-glyph { width: 28px; height: 28px; }
.tool .dt-card::before { background: var(--st, rgb(var(--accent))); }
.tool .dt-line { color: var(--st, var(--link)); }
.tool .dt-meter > span { background: var(--st, var(--ramp)); }
.tool .dt-ticks { display: flex; justify-content: space-between; font-size: 11px; line-height: 14px; font-weight: 800; color: rgb(var(--ink) / .45); text-transform: uppercase; letter-spacing: .03em; }
.tool .dt-ticks span:last-child { text-align: right; }
.tool .dt-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.tool .dt-hero > .dt-glyph { width: 48px; height: 48px; padding: 10px; border-radius: 24px; background: var(--st); color: #fff; }
.tool .dt-hero-h { font-size: 26px; line-height: 32px; font-weight: 950; letter-spacing: -.01em; color: rgb(var(--ink)); text-wrap: balance; }
.tool .dt-hero .tool-sub { margin: 0; }
.tool .dt-side .dt-glyph { width: 22px; height: 22px; margin: 0 auto 2px; color: #fff; }
.tool .dt-verdict { position: relative; overflow: hidden; padding-top: 26px; }
.tool .dt-verdict::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: rgb(var(--accent)); }
.tool .dt-verdict[data-tone="good"]::before { background: #1F9D62; }
.tool .dt-verdict[data-tone="mid"]::before { background: #D98A00; }
.tool .dt-verdict[data-tone="low"]::before { background: #D0335E; }
.tool .dt-verdict .tool-sub { margin: 0; }
.tool .dt-why { display: grid; gap: 6px; }
.tool .dt-why li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; line-height: 21px; font-weight: 650; color: rgb(var(--ink) / .75); }
.tool .dt-why b { flex: none; min-width: 78px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; color: rgb(var(--ink) / .5); }
.tool .dt-why .is-2 b { color: #1F9D62; }
.tool .dt-why .is-0 b { color: #D0335E; }
.tool .dt-diffs, .tool .dt-rewrites { display: grid; gap: 10px; }
.tool .dt-diffs li, .tool .dt-rewrites li { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 20px; background: var(--surface); }
.tool .dt-diffs b { font-weight: 900; }
.tool .dt-rw { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.tool .dt-rw-l { flex: none; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: rgb(var(--ink) / .45); }
.tool .dt-rewrites .is-ghost { background: rgb(var(--ink) / .1); color: rgb(var(--ink) / .7); text-decoration: line-through; text-decoration-color: rgb(var(--ink) / .3); }
.tool .dt-mix li { grid-template-columns: 136px 1fr 48px; }
.tool .dt-mix .tool-meter > span { background: var(--st); }
.tool .dt-again { justify-content: center; }
@media (max-width: 599px) { .tool .dt-mix li { grid-template-columns: 124px 1fr 44px; font-size: 13px; } .tool .dt-hero-h { font-size: 24px; line-height: 30px; } }
@media (prefers-color-scheme: dark) {
  .tool .dt-ticks { color: rgb(var(--ink) / .6); }
  .tool .dt-why .is-2 b { color: #5BD69A; }
  .tool .dt-why .is-0 b { color: #FF6F93; }
  .tool .dt-verdict[data-tone="good"]::before { background: #5BD69A; }
  .tool .dt-rewrites .is-ghost { background: rgb(var(--ink) / .14); }
  .tool .dt-diffs li, .tool .dt-rewrites li, .tool .dt-box, .tool .dt-check, .tool .dt-thread, .tool .dt-preview { background: var(--surface-2); }
}

/* Round 3: mode switch, media bubbles, card for screenshots, share row */
.tool .dt-modes { padding: 5px; border-radius: 20px; }
.tool .dt-modes .u8-thumb { top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n)); border-radius: 15px; }
.tool .dt-modes button { min-height: 52px; font-size: 15px; line-height: 19px; padding: 0 8px; text-wrap: balance; }
.tool .dt-mode-card { display: flex; flex-direction: column; gap: 12px; }
.tool .dt-mode-card > .u8-ghost { align-self: center; color: var(--link); }
.tool .dt-mini { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 21px; font-weight: 700; color: rgb(var(--ink) / .6); }
.tool .dt-mini b { color: var(--st); font-size: 17px; font-weight: 850; }
.tool .dt-hero .tool-actions { width: 100%; }
.tool .dt-hero .dt-badge { margin-bottom: 0; }
.tool .dt-reply { min-width: 58%; }
.tool .dt-media { display: flex; flex-direction: column; gap: 6px; }
.tool .dt-media-box { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgb(var(--ink) / .06); font-size: 14px; line-height: 19px; font-weight: 700; color: rgb(var(--ink) / .65); }
.tool .dt-media-box i { font-style: normal; }
.tool .dt-media-box .dt-glyph { flex: none; width: 20px; height: 20px; color: rgb(var(--ink) / .5); }
.tool .dt-reply.is-sent .dt-media-box { background: rgb(255 255 255 / .2); color: #fff; }
.tool .dt-reply.is-sent .dt-media-box .dt-glyph { color: #fff; }
.tool .dt-typing { display: flex; flex-direction: column; gap: 8px; padding: 40px 16px; min-height: 240px; }
.tool .dt-dots3 { display: inline-flex; gap: 5px; padding: 14px 16px; }
.tool .dt-dots3 i { width: 8px; height: 8px; border-radius: 4px; background: rgb(var(--ink) / .45); animation: dt-blink 1s infinite ease-in-out both; }
.tool .dt-dots3 i:nth-child(2) { animation-delay: .15s; } .tool .dt-dots3 i:nth-child(3) { animation-delay: .3s; }
@keyframes dt-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.tool .dt-badge { width: 72px; height: 72px; border-radius: 36px; }
.tool .dt-badge .dt-glyph { width: 36px; height: 36px; }
.tool .dt-dry-head { align-items: baseline; }
.tool .dt-dry-n { font-size: 44px; line-height: 48px; font-weight: 950; letter-spacing: -.02em; color: var(--st, rgb(var(--ink))); }
.tool .dt-ticks span:nth-child(2) { color: rgb(var(--ink)); }
.tool .dt-split { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.tool .dt-split-bar { display: flex; gap: 3px; height: 10px; border-radius: 5px; overflow: hidden; background: rgb(var(--ink) / .08); }
.tool .dt-split-bar span { min-width: 0; }
.tool .dt-url { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .02em; color: rgb(var(--ink) / .35); }
.tool .dt-share { display: flex; flex-direction: column; gap: 10px; }
.tool .dt-img-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.tool .dt-thumb { width: 27px; height: 48px; border-radius: 4px; box-shadow: 0 0 0 1px rgb(var(--ink) / .12); object-fit: cover; }
.tool .dt-rw-copy { justify-content: flex-end; margin-top: -4px; }
@media (prefers-reduced-motion: reduce) { .tool .dt-dots3 i { animation: none; } }
@media (prefers-color-scheme: dark) {
  .tool .btn-secondary { box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / .3); }
  .tool[data-tool="dry-texter-quiz"] input[type="text"] { box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / .3); }
  .tool .dt-url { color: rgb(var(--ink) / .5); }
  .tool .dt-media-box { background: rgb(var(--ink) / .1); color: rgb(var(--ink) / .8); }
}

/* Round 4 */
.tool .dt-dry-n { color: var(--dc, rgb(var(--ink))); }
.tool .dt-meter > span { background: var(--dc, var(--ramp)); }
.tool .dt-split-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; line-height: 18px; font-weight: 750; color: rgb(var(--ink) / .6); }
.tool .dt-split-key b { color: rgb(var(--ink)); font-weight: 850; }
.tool .dt-split-key span { display: inline-flex; align-items: center; gap: 6px; }
.tool .dt-split-key i { width: 8px; height: 8px; border-radius: 4px; }
.tool .dt-result { scroll-margin-top: 92px; }
@media (min-width: 600px) { .tool .dt-q { min-height: 470px; } }

/* Round 5 */
.tool .dt-pair.is-same { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; width: 100%; }
.tool .dt-split-out .dt-split { max-width: none; }
.tool .dt-modes button { font-size: 14px; }
.tool .dt-hint { font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .55); margin-top: -8px; }

/* Round 7: hidden sender style, story preview */
.tool .dt-mystery { font-size: 34px; font-weight: 950; background: rgb(var(--ink) / .12); color: rgb(var(--ink) / .7); }
.tool .dt-hero .dt-mini b { color: rgb(var(--ink)); }
.tool .dt-dlg { margin: auto; padding: 0; border: 0; border-radius: 28px; background: var(--surface); color: rgb(var(--ink)); box-shadow: var(--shadow); max-width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.tool .dt-dlg::backdrop { background: rgb(0 0 0 / .6); }
.tool .dt-dlg-in { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.tool .dt-dlg-img { display: block; width: auto; height: min(62dvh, 600px); max-width: 100%; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 16px; object-fit: contain; }
.tool .dt-dlg .tool-actions { justify-content: center; }
.tool .dt-dlg .tool-note { text-align: center; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .tool .dt-dlg[open] { animation: u8-in .25s var(--ease-out) both; } }
