/* The free tools on the /tools/ pages (public/tools-widget.js). Sits on top of trade.css
   and reuses its colours. Waiting screens follow the approved progress tiles pattern:
   tiles 4-up (2 on phones), three states carried by the ICON only, one live line under. */
.tw-form { display: grid; gap: 8px; margin-top: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 10px; max-width: 600px; }
.tw-form .tw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tw-form label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: rgba(244,239,230,.75); margin: 0 0 4px 4px; }
.tw-form input { width: 100%; box-sizing: border-box; border: 0; border-radius: 11px; padding: 13px 14px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.tw-form button { border: 0; border-radius: 11px; background: var(--lime); color: var(--forest); font: inherit; font-weight: 800; font-size: 16px; padding: 14px 18px; cursor: pointer; }
.tw-form button[disabled] { opacity: .7; cursor: progress; }
.tw-form .tw-opt { font-weight: 500; opacity: .7; }
@media (max-width: 640px) { .tw-form .tw-row { grid-template-columns: 1fr; } }

.tw-out { scroll-margin-top: 16px; }
.tw-out:empty { display: none; }
.tw-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin: 32px 0 8px; box-shadow: 0 18px 40px -28px rgba(11,42,29,.35); }
.tw-panel h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; margin: 6px 0 6px; }
.tw-panel h2 em { font-style: italic; font-weight: 500; color: var(--green); }
.tw-sub { color: #5b6b61; margin: 0 0 18px; line-height: 1.55; }
.tw-live { min-height: 1.5em; margin: 16px 0 0; font-weight: 600; color: var(--green); text-align: center; }
.tw-msg { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 14px; padding: 14px 16px; margin: 24px 0 0; line-height: 1.5; }

/* progress tiles */
.tw-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tw-tiles.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .tw-tiles, .tw-tiles.six { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.tw-tile { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fffdf7; padding: 18px 12px 14px; text-align: center; min-height: 8.2rem;
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s, border-color .3s; }
.tw-tile.in { opacity: 1; transform: none; }
.tw-ic { position: relative; width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 10px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; }
.tw-ic svg { width: 26px; height: 26px; }
.tw-lab { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.tw-val { font-size: 13.5px; line-height: 1.35; color: #5b6b61; margin-top: 4px; min-height: 1.35em; }
.tw-val b { color: var(--ink); }
.tw-tile:not(.on):not(.done) .tw-ic { background: #e9e6dc !important; color: #9a978d !important; }
.tw-tile.on:not(.done) { border-color: color-mix(in srgb, var(--lime) 60%, var(--line)); }
.tw-tile.on:not(.done) .tw-ic::before { content: ""; position: absolute; inset: -5px; border-radius: 20px;
  background: conic-gradient(from 0deg, transparent 0deg, var(--lime) 60deg, transparent 140deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: twspin 1.15s linear infinite; }
.tw-tile.on:not(.done)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(198,239,58,.18) 50%, transparent 70%); animation: twsweep 1.8s ease-in-out infinite; }
.tw-tile.on:not(.done) .tw-ic { animation: twbreathe 1.5s ease-in-out infinite; }
.tw-tile.done.good { border-color: color-mix(in srgb, var(--green2) 55%, var(--line)); }
.tw-tile.done.bad { border-color: color-mix(in srgb, var(--rust, #b0562b) 45%, var(--line)); }
.tw-tile.done .tw-ic::after { position: absolute; right: -7px; bottom: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; box-shadow: 0 0 0 3px #fffdf7; animation: twpop .45s cubic-bezier(.2,1.6,.4,1); }
.tw-tile.done.good .tw-ic::after { content: "\2713"; background: var(--green2); color: #fff; }
.tw-tile.done.bad .tw-ic::after { content: "\2715"; background: var(--rust, #b0562b); color: #fff; }
.tw-tile.done.na .tw-ic { opacity: .45; }
@keyframes twspin { to { transform: rotate(360deg); } }
@keyframes twsweep { 0% { transform: translateX(-110%); } 60%, 100% { transform: translateX(110%); } }
@keyframes twpop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes twbreathe { 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
  .tw-tile { transition: none; opacity: 1; transform: none; }
  .tw-tile.on:not(.done) .tw-ic, .tw-tile.on:not(.done) .tw-ic::before, .tw-tile.on:not(.done)::after, .tw-tile.done .tw-ic::after { animation: none; }
}
.ic-google { background: #4285f4; } .ic-maps { background: #34a853; } .ic-chatgpt { background: #10a37f; }
.ic-gemini { background: #7b5cf0; } .ic-claude { background: #d97757; } .ic-perplexity { background: #1f8a9e; }
.ic-phone { background: #2b6cb0; } .ic-desk { background: #7c4d8f; }

/* speed dials */
.tw-dials { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .tw-dials { grid-template-columns: 1fr; } }
.tw-dial { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fffdf7; }
.tw-dial-top { display: flex; align-items: center; gap: 16px; }
.tw-ring { --p: 0; --c: var(--green2); width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(closest-side, #fffdf7 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), #ebe6d8 0); }
.tw-ring b { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.tw-ring.slow { --c: var(--rust, #b0562b); } .tw-ring.ok { --c: #e3b341; }
.tw-dial h3 { margin: 0; font-size: 18px; } .tw-dial p { margin: 4px 0 0; color: #5b6b61; font-size: 14px; line-height: 1.45; }
.tw-metrics { list-style: none; padding: 0; margin: 14px 0 0; }
.tw-metrics li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #f0ebdd; font-size: 14.5px; }
.tw-metrics li span:last-child { font-weight: 700; white-space: nowrap; }
.tw-metrics .bad { color: var(--rust, #b0562b); } .tw-metrics .good { color: var(--green); }

/* lists, rivals, readiness, CTA */
.tw-h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 26px 0 10px; }
.tw-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tw-list li { display: flex; gap: 10px; align-items: flex-start; background: #fffdf7; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; line-height: 1.45; font-size: 15px; }
.tw-list li i { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; }
.tw-list li i.good { background: #e7f5ea; color: var(--green); } .tw-list li i.bad { background: #fbe9e1; color: var(--rust, #b0562b); } .tw-list li i.mid { background: #fdf3d8; color: #9a7413; }
.tw-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); background: #eef8e6; border: 1px dashed var(--green2); border-radius: 999px; padding: 6px 13px; margin-top: 10px; text-decoration: none; font-size: 14px; }
.tw-note { font-size: 13.5px; color: #5b6b61; line-height: 1.5; margin: 10px 0 0; }
.tw-cta { margin-top: 26px; background: var(--forest); color: #f4efe6; border-radius: 18px; padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.tw-cta b { font-family: var(--serif); font-size: 21px; color: #fbf8f0; display: block; margin-bottom: 4px; }
.tw-cta p { margin: 0; color: rgba(244,239,230,.82); font-size: 14.5px; line-height: 1.5; }
.tw-cta a { background: var(--lime); color: var(--forest); font-weight: 800; border-radius: 12px; padding: 13px 18px; text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) { .tw-cta { grid-template-columns: 1fr; } .tw-cta a { text-align: center; } }

/* review QR */
.tw-matches { display: grid; gap: 10px; }
.tw-match { text-align: left; display: block; width: 100%; border: 1px solid var(--line); background: #fffdf7; border-radius: 14px; padding: 14px 16px; font: inherit; cursor: pointer; }
.tw-match:hover { border-color: var(--green2); }
.tw-match b { display: block; font-size: 16px; } .tw-match span { color: #5b6b61; font-size: 14px; }
.tw-qrgrid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .tw-qrgrid { grid-template-columns: 1fr; } }
.tw-qrbox { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; }
.tw-qrbox svg, .tw-qrbox img { width: 100%; height: auto; display: block; }
.tw-link { display: flex; gap: 8px; margin: 10px 0; }
.tw-link input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 14px; background: #fffdf7; }
.tw-btn { border: 0; border-radius: 10px; background: var(--green); color: #fff; font: inherit; font-weight: 700; padding: 11px 15px; cursor: pointer; white-space: nowrap; }
.tw-btn.lime { background: var(--lime); color: var(--forest); } .tw-btn.ghost { background: transparent; color: var(--green); border: 1px solid var(--green2); }
.tw-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tw-poster { width: 100%; max-width: 360px; border-radius: 12px; border: 1px solid var(--line); display: block; margin-top: 8px; }
.tw-send { display: flex; gap: 8px; margin-top: 8px; }
.tw-send input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 15px; }
@media (max-width: 480px) { .tw-send, .tw-link { flex-direction: column; } .tw-panel { padding: 20px 16px; } .tw-panel h2 { font-size: 25px; } }

/* ===================== result screens v2 (Ajay Design Skills, 13 Oct 2026) ===================== */
.tr-panel { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px; margin: 32px 0 8px; box-shadow: 0 20px 50px rgba(19,36,26,.08); }
.tr-ey { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.tr-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid #efe9da; }
.tr-head h2 { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.05; letter-spacing: -.02em; margin: 10px 0 10px; }
.tr-head h2 em { font-style: italic; font-weight: 500; color: var(--green); }
.tr-head p { margin: 0; color: #5a6a60; font-size: 16px; line-height: 1.55; max-width: 34rem; }
.tr-score { text-align: center; background: var(--cream, #f6f1e4); border-radius: 22px; padding: 18px 26px; min-width: 190px; }
.tr-score b { display: block; font-family: var(--serif); font-size: 64px; font-weight: 600; line-height: 1; color: var(--ink); }
.tr-score b small { font-size: 26px; color: #5a6a60; font-weight: 500; }
.tr-score span { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: #5a6a60; }
.tr-rings { display: flex; gap: 18px; align-items: flex-end; }
.tr-ringbox { text-align: center; } .tr-ringbox span { display: block; margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5a6a60; }
.tr-ring { position: relative; display: grid; place-items: center; margin: 0 auto; }
.tr-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.tr-ring .trk { fill: none; stroke: #eef1ec; stroke-width: 9; }
.tr-ring .arc { fill: none; stroke: var(--green2); stroke-width: 9; stroke-linecap: round; }
.tr-ring.ok .arc { stroke: #e3b341; } .tr-ring.slow .arc { stroke: var(--rust, #c1552b); }
.tr-ring b { position: relative; font-family: var(--serif); font-weight: 600; font-size: 34px; }
.tr-ringbox.big .tr-ring b { font-size: 48px; }
.tr-ring b small { font-size: 16px; color: #5a6a60; }
.tr-sec { padding: 28px 0 4px; }
.tr-sec h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; margin: 8px 0 16px; }
.tr-sec h3 em { font-style: normal; } .tr-sec h3 em.good { color: var(--green); } .tr-sec h3 em.mid { color: #a77a0c; } .tr-sec h3 em.bad { color: var(--rust, #c1552b); }
.tr-strip { margin-top: 20px; background: #f4fbf5; border: 1px solid #d6ecd9; border-radius: 14px; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; }
.tr-small { font-size: 13px; color: #5a6a60; line-height: 1.5; margin: 12px 0 0; } .tr-small.center { text-align: center; }

/* the wait track */
.tr-track { position: relative; height: 150px; margin: 6px 0 0; }
.tr-zone { position: absolute; top: 62px; height: 22px; }
.tr-zone.ok { left: 0; background: #57b77e; border-radius: 999px 0 0 999px; } .tr-zone.warn { background: #e3b341; } .tr-zone.bad { background: #e08a64; border-radius: 0 999px 999px 0; }
.tr-zone span { position: absolute; top: 30px; left: 6px; font-size: 12px; font-weight: 700; color: #5a6a60; white-space: nowrap; }
.tr-zone.bad span { left: auto; right: 6px; }
.tr-pin { position: absolute; top: 0; transform: translateX(-50%); text-align: center; z-index: 2; }
.tr-pin b { display: inline-block; background: var(--forest, #0b2a1d); color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 600; border-radius: 12px; padding: 4px 10px; }
.tr-pin span { display: block; font-size: 11.5px; font-weight: 800; color: var(--ink); white-space: nowrap; margin-top: 2px; }
.tr-pin::after { content: ""; display: block; width: 3px; height: 14px; margin: 0 auto; background: var(--forest, #0b2a1d); }
.tr-pin.small { top: 98px; } .tr-pin.small b { font-size: 14px; background: #fff; color: var(--ink); border: 2px solid var(--forest, #0b2a1d); padding: 2px 8px; }
.tr-pin.small::after { position: absolute; top: -14px; left: 50%; margin-left: -1.5px; }
.tr-ticks { position: absolute; top: 90px; left: 0; right: 0; height: 12px; display: none; }

/* checks and fixes */
.tr-checks { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.tr-checks.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.tr-check { display: flex; gap: 10px; align-items: center; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.tr-check i { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; color: #fff; }
.tr-check.good { background: #e7f5ea; } .tr-check.good i { background: var(--green); }
.tr-check.bad { background: #fdecea; } .tr-check.bad i { background: #b03030; }
.tr-fixes { display: grid; gap: 10px; }
.tr-fix { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fffdf7; }
.tr-fix > b { flex: none; width: 34px; height: 34px; border-radius: 11px; background: #fff6e0; color: #8a6a00; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; }
.tr-fix.lead { border: 2px solid var(--lime); background: #fbfee9; } .tr-fix.lead > b { background: var(--lime); color: var(--forest); }
.tr-fix p { margin: 4px 0 0; line-height: 1.5; font-size: 15px; }
.tr-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--forest); color: var(--lime); border-radius: 999px; padding: 2px 9px; }

/* AI chat cards */
.tr-q { margin-top: 22px; background: var(--forest, #0b2a1d); color: #f4efe6; border-radius: 20px 20px 20px 6px; padding: 16px 20px; }
.tr-q-l { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.tr-q p { margin: 6px 0; font-family: var(--serif); font-size: 21px; line-height: 1.35; color: #fbf8f0; }
.tr-q-t { font-size: 12.5px; color: rgba(244,239,230,.7); }
.tr-chats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.tr-chat { border: 1px solid var(--line); border-radius: 20px; padding: 14px; background: #fffdf7; display: flex; flex-direction: column; gap: 10px; }
.tr-chat.good { border: 2px solid var(--green2); background: #f6fbf6; } .tr-chat.bad { border-color: #f0d2c6; }
.tr-chat-h { display: flex; align-items: center; gap: 8px; } .tr-chat-h b { font-size: 15px; flex: 1; }
.tr-glyph { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.tr-glyph svg { width: 60%; height: 60%; }
.tr-pill { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; white-space: nowrap; font-style: normal; }
.tr-pill.good { background: #e7f5ea; color: #1d7a4d; } .tr-pill.bad { background: #fdecea; color: #b03030; } .tr-pill.mid { background: #fff6e0; color: #8a6a00; } .tr-pill.na { background: #f3f1ec; color: #5a6a60; }
.tr-answer { background: #fff; border-radius: 4px 14px 14px 14px; border: 1px solid #efe9da; padding: 10px; display: grid; gap: 6px; }
.tr-li { font-size: 12.5px; color: #8a948d; background: #f6f4ee; border-radius: 8px; padding: 6px 8px; }
.tr-li.me { background: var(--lime); color: var(--forest); font-weight: 800; display: flex; gap: 6px; align-items: center; }
.tr-li.me b { background: var(--forest); color: var(--lime); border-radius: 6px; padding: 0 6px; }
.tr-li.miss { background: #fdecea; color: #b03030; font-weight: 700; }
.tr-chat-v { margin: 0; font-weight: 800; font-size: 14px; } .tr-chat-v.good { color: var(--green); } .tr-chat-v.bad { color: #b03030; }
.tr-chat-na { margin: 0; font-size: 13px; color: #5a6a60; line-height: 1.45; }
.tr-srcs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 11px; color: #5a6a60; }
.tr-srcs span { font-weight: 700; margin-right: 2px; } .tr-srcs em { font-style: normal; background: #f3f1ec; border-radius: 999px; padding: 2px 7px; }

/* rivals */
.tr-rivals { display: grid; gap: 10px; }
.tr-rival { display: grid; grid-template-columns: minmax(0, 220px) minmax(0,1fr) auto; gap: 14px; align-items: center; }
.tr-rn { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-bar { height: 14px; background: #f3efe3; border-radius: 999px; overflow: hidden; } .tr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e08a64, var(--rust, #c1552b)); border-radius: 999px; }
.tr-rc { font-size: 13px; font-weight: 700; color: #5a6a60; white-space: nowrap; }
.tr-more { position: relative; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--green2); border-radius: 14px; padding: 14px; text-decoration: none; overflow: hidden; background: #f7fbef; }
.tr-more .tr-blur { position: absolute; left: 16px; right: 16px; filter: blur(5px); color: #6b7a70; font-weight: 700; text-align: left; opacity: .7; }
.tr-more b { position: relative; background: var(--lime); color: var(--forest); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.tr-more.slim { padding: 10px; margin-top: 8px; }

/* readiness */
.tr-ready { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 24px; align-items: center; }

/* rank board */
.tr-board { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 12px; margin-top: 24px; }
.tr-cell { border-radius: 22px; padding: 18px; background: #fffdf7; border: 1px solid var(--line); }
.tr-cell.good { background: #f2faf3; border: 2px solid #9fd5ae; } .tr-cell.mid { background: #fffaee; border: 2px solid #f0d58a; } .tr-cell.bad { background: #fdf3ef; border: 2px solid #f0c3b2; }
.tr-cell-h { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.tr-num { font-family: var(--serif); font-weight: 600; font-size: 58px; line-height: 1; margin: 14px 0 10px; }
.tr-num small { font-size: 24px; color: #5a6a60; font-weight: 500; }
.tr-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-mini-e { position: relative; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px; }
.tr-mini-e em { font-style: normal; font-size: 12.5px; font-weight: 700; }
.tr-mini-e i { position: absolute; left: 22px; top: -4px; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; font-weight: 900; font-style: normal; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 2px #fff; }
.tr-mini-e.good i { background: var(--green); } .tr-mini-e.bad i { background: #b03030; } .tr-mini-e.na i { background: #9a978d; }
.tr-mocks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.tr-cap { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5a6a60; margin-bottom: 8px; }
.tr-mock { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 12px; box-shadow: 0 14px 34px rgba(19,36,26,.08); }
.tr-mock-h { padding: 4px 4px 10px; }
.tr-gq { display: flex; align-items: center; gap: 8px; border: 1px solid #e3e3e3; border-radius: 999px; padding: 5px 12px 5px 5px; font-size: 13.5px; font-weight: 600; }
.tr-sr { display: flex; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 10px; }
.tr-sr b { width: 22px; font-size: 12px; color: #9a978d; text-align: right; }
.tr-sr span { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tr-sr u { display: block; height: 7px; width: 55%; background: #c9d6f2; border-radius: 4px; }
.tr-sr i { display: block; height: 6px; width: 85%; background: #eee; border-radius: 4px; }
.tr-sr em { font-style: normal; font-size: 13px; font-weight: 800; color: #1a0dab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sr em.riv { color: #5a6a60; font-weight: 700; }
.tr-sr.me { background: var(--lime); } .tr-sr.me b { color: var(--forest); font-weight: 900; } .tr-sr.me em { color: var(--forest); }
.tr-sr.me i { background: rgba(11,42,29,.18); }
.tr-sr.out { margin-top: 8px; background: #fdecea; } .tr-sr.out span { flex-direction: row; display: block; font-size: 13px; }
.tr-map { position: relative; height: 130px; border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.tr-map svg { width: 100%; height: 100%; display: block; }
.tr-mpin { position: absolute; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; background: #c1552b; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; box-shadow: 0 6px 12px rgba(0,0,0,.2); }
.tr-mpin.me { background: var(--forest); outline: 4px solid var(--lime); }
.tr-place { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.tr-place b { width: 26px; height: 26px; border-radius: 8px; background: #f3efe3; display: grid; place-items: center; font-size: 13px; flex: none; }
.tr-place span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tr-place strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-place span em { font-style: normal; font-size: 12.5px; color: #5a6a60; }
.tr-place.me { background: #fbfee9; outline: 2px solid var(--lime); } .tr-place.me b { background: var(--forest); color: var(--lime); }

/* QR */
.tr-qr { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 34px; align-items: center; margin-top: 26px; }
.tr-scene { position: relative; background: radial-gradient(120% 80% at 80% 0%, rgba(198,239,58,.35), transparent 60%), linear-gradient(160deg, #efe6cf, #e2d5b5); border-radius: 24px; padding: 34px 24px 46px; min-height: 380px; display: grid; place-items: center; overflow: hidden; }
.tr-poster { width: 70%; max-width: 280px; border-radius: 10px; transform: rotate(-3deg); box-shadow: 0 30px 50px rgba(60,40,10,.35); }
.tr-qrcard { position: absolute; right: 18px; bottom: 18px; width: 120px; background: #fff; border-radius: 16px; padding: 10px; transform: rotate(4deg); box-shadow: 0 20px 34px rgba(60,40,10,.3); text-align: center; }
.tr-qrcard svg { width: 100%; height: auto; display: block; } .tr-qrcard span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.tr-steps { display: grid; gap: 12px; }
.tr-step { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fffdf7; }
.tr-step > b { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--forest); color: var(--lime); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; }
.tr-step > div { flex: 1; min-width: 0; }
.tr-step h4 { margin: 2px 0 2px; font-size: 16.5px; } .tr-step p { margin: 0 0 10px; color: #5a6a60; font-size: 14px; line-height: 1.45; }
.tr-link { display: flex; gap: 8px; } .tr-link input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; font: inherit; font-size: 14px; background: #fff; }
.tr-btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; font: inherit; font-weight: 800; font-size: 14.5px; padding: 12px 16px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tr-btn.lime { background: var(--lime); color: var(--forest); } .tr-btn.dark { background: var(--forest); color: #fff; }
.tr-btn.ghost { background: transparent; color: var(--green); border: 1.5px solid #bfdcc6; }
.tr-sent { margin: 8px 0 0; font-size: 13.5px; border-radius: 10px; padding: 0; }
.tr-sent.good, .tr-sent.bad, .tr-sent.wait { padding: 9px 12px; } .tr-sent.good { background: #e7f5ea; color: #1d7a4d; } .tr-sent.bad { background: #fdecea; color: #b03030; } .tr-sent.wait { background: #f3f1ec; color: #5a6a60; }

/* closing panel */
.tr-close { margin-top: 30px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; align-items: center; border: 2px dashed #d9d0b8; border-radius: 22px; padding: 20px 22px; background: #fffdf5; }
.tr-close-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--lime); display: grid; place-items: center; font-size: 24px; }
.tr-close-t b { font-family: var(--serif); font-size: 22px; font-weight: 600; } .tr-close-t p { margin: 4px 0 0; color: #5a6a60; font-size: 14.5px; line-height: 1.5; }
.tr-close-b { display: flex; flex-direction: column; gap: 6px; } .tr-close-b .tr-btn.ghost { padding: 8px 12px; font-size: 13px; border: 0; }

@media (max-width: 900px) {
  .tr-chats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tr-checks { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tr-board { grid-template-columns: 1fr 1fr; } .tr-cell.wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tr-panel { padding: 20px 16px; border-radius: 22px; }
  .tr-head { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .tr-head h2 { font-size: 32px; }
  .tr-rings { justify-content: center; }
  .tr-score { min-width: 0; }
  .tr-chats, .tr-checks.two, .tr-mocks, .tr-qr { grid-template-columns: minmax(0,1fr); }
  .tr-rival { grid-template-columns: minmax(0,1fr) auto; } .tr-rival .tr-bar { grid-column: 1 / -1; grid-row: 2; }
  .tr-ready { grid-template-columns: minmax(0,1fr); justify-items: center; }
  .tr-close { grid-template-columns: minmax(0,1fr); text-align: center; } .tr-close-ic { margin: 0 auto; }
  .tr-num { font-size: 46px; }
  .tr-zone span { font-size: 11px; }
  .tr-scene { min-height: 300px; }
}

/* lead magnet, impact, upsell */
.tr-lead { margin-top: 24px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0, 360px); gap: 22px; align-items: center; background: radial-gradient(90% 120% at 100% 0%, rgba(198,239,58,.22), transparent 55%), linear-gradient(150deg, #0f3a28, #0b2a1d); color: #f4efe6; border-radius: 22px; padding: 24px; }
.tr-lead.done { display: block; background: none; padding: 0; color: inherit; }
.tr-ey.lime { color: var(--lime); }
.tr-lead-l b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; color: #fbf8f0; margin: 6px 0 10px; }
.tr-lead-l ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tr-lead-l li { padding-left: 26px; position: relative; font-size: 14.5px; color: rgba(244,239,230,.88); }
.tr-lead-l li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 6px; background: var(--lime); color: var(--forest); font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.tr-lead-f { display: grid; gap: 8px; }
.tr-lead-f input { border: 0; border-radius: 11px; padding: 13px 14px; font: inherit; font-size: 15px; }
.tr-lead-f .tr-btn { width: 100%; padding: 14px; font-size: 15.5px; }
.tr-lead-n { margin: 0; font-size: 12px; color: rgba(244,239,230,.65); }
.tr-impact { margin-top: 20px; border-radius: 20px; padding: 20px; background: #fdf1ec; border: 1px solid #f3cdbd; }
.tr-impact.mid { background: #fff8e6; border-color: #f0dca0; }
.tr-impact .tr-ey { color: #b8452a; } .tr-impact.mid .tr-ey { color: #946c00; }
.tr-impact > b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 6px 0 14px; }
.tr-impact-g { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.tr-imp { background: #fff; border-radius: 16px; padding: 14px; }
.tr-imp strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.05; color: #b8452a; }
.tr-impact.mid .tr-imp strong { color: #946c00; }
.tr-imp span { display: block; font-size: 13.5px; line-height: 1.45; margin-top: 6px; }
.tr-imp em { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: #8a948d; margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }
.tr-up { margin-top: 14px; border: 2px solid var(--lime); border-radius: 22px; padding: 22px; background: #fbfee9; }
.tr-up-h { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 6px 0 4px; } .tr-up-h em { font-style: italic; font-weight: 500; color: var(--green); }
.tr-up p { margin: 0 0 14px; color: #5a6a60; }
.tr-up-g { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.tr-plan { position: relative; display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-decoration: none; color: var(--ink); transition: transform .15s; }
.tr-plan:hover { transform: translateY(-2px); } .tr-plan.pick { border: 2px solid var(--green2); }
.tr-plan b { font-size: 17px; } .tr-plan span { font-size: 13px; color: #5a6a60; }
.tr-plan strong { font-family: var(--serif); font-size: 32px; font-weight: 600; margin-top: 6px; } .tr-plan strong small { font-family: Inter, sans-serif; font-size: 13px; color: #5a6a60; font-weight: 600; }
.tr-plan em { font-style: normal; font-size: 13px; color: #5a6a60; }
.tr-pop { position: absolute; top: -11px; left: 14px; background: var(--green); color: #fff !important; font-size: 10.5px !important; font-weight: 800; border-radius: 999px; padding: 3px 9px; }
.tr-up-n { margin: 12px 0 0 !important; font-size: 13px; font-weight: 700; color: var(--green) !important; }
@media (max-width: 760px) {
  .tr-lead { grid-template-columns: minmax(0,1fr); padding: 20px; }
  .tr-impact-g, .tr-up-g { grid-template-columns: minmax(0,1fr); }
}
.ic-photos { background: #c8962a; } .ic-fit { background: #1d7a4d; }
.tr-logo { display: inline-grid; place-items: center; height: 54px; min-width: 54px; max-width: 180px; padding: 6px 10px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 18px rgba(19,36,26,.06); }
.tr-logo img { max-height: 40px; max-width: 160px; display: block; object-fit: contain; }
/* a quiet touch of their own brand colour, so the result feels like theirs */
.tr-panel.branded { position: relative; overflow: hidden; }
.tr-panel.branded::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--brand); }
.tr-panel.branded::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent); pointer-events: none; }
.tr-panel.branded .tr-logo { border: 2px solid color-mix(in srgb, var(--brand) 55%, #fff); }
.tr-panel.branded .tr-head-l > .tr-ey { color: color-mix(in srgb, var(--brand) 80%, #13241a); }
.tr-panel.branded > * { position: relative; z-index: 1; }
/* Google Ads audit */
.tw-drop { display: flex; gap: 12px; align-items: center; border: 2px dashed rgba(255,255,255,.35); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: rgba(244,239,230,.9); font-size: 14px; line-height: 1.4; }
.tw-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tw-drop b { color: #fff; } .tw-drop.ok { border-color: var(--lime); background: rgba(198,239,58,.1); }
.tw-drop-i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: var(--forest); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.tw-how { color: rgba(244,239,230,.85); font-size: 13.5px; } .tw-how summary { cursor: pointer; font-weight: 700; color: var(--lime); }
.tw-how ol { margin: 8px 0; padding-left: 20px; line-height: 1.6; } .tw-how p { margin: 0; font-size: 12.5px; opacity: .8; }
.ad-split { margin-bottom: 18px; }
.ad-bar { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: #2f9e68; }
.ad-bar i.w { background: #c1552b; } .ad-bar i.n { background: #e3b341; }
.ad-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 13.5px; font-weight: 700; }
.ad-key i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.ad-key i.w { background: #c1552b; } .ad-key i.n { background: #e3b341; } .ad-key i.o { background: #2f9e68; }
.ad-junk { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ad-j { background: #fdf1ec; border-radius: 16px; padding: 14px; }
.ad-j strong { display: block; font-family: var(--serif); font-size: 28px; color: #b8452a; } .ad-j b { display: block; font-size: 14px; margin-top: 4px; } .ad-j span { display: block; font-size: 12.5px; color: #5a6a60; margin-top: 3px; }
.ad-h { font-size: 15px; margin: 18px 0 10px; }
.ad-negs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ad-negs em { font-style: normal; font-family: Menlo, Consolas, monospace; font-size: 13px; background: #f3f1ec; border-radius: 8px; padding: 5px 9px; }
.ad-negs a { font-weight: 800; font-size: 13.5px; color: var(--green); margin-left: 4px; }
.tr-checks.three { grid-template-columns: repeat(3, minmax(0,1fr)); } @media (max-width: 640px) { .tr-checks.three { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.tr-tips { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: rgba(244,239,230,.88); cursor: pointer; line-height: 1.4; } .tr-tips input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--lime); flex: none; }
/* page match */
.ft-snip .ft-g { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 14px 34px rgba(19,36,26,.06); }
.ft-snip.good .ft-g { border: 2px solid var(--lime); }
.ft-url { display: block; font-size: 12.5px; color: #4d5156; } .ft-t { display: block; color: #1a0dab; font-size: 18px; font-weight: 500; margin: 4px 0; line-height: 1.3; font-family: Arial, sans-serif; }
.ft-g p { margin: 0; font-size: 13.5px; color: #4d5156; line-height: 1.5; font-family: Arial, sans-serif; }
.ft-g mark { background: #fff4a8; color: inherit; font-weight: 700; padding: 0 1px; } .ft-g i { color: #b03030; font-style: normal; }
.tr-fix p strong { font-size: 15px; }
.tw-gads { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; border: 0; border-radius: 12px; background: #fff; color: var(--ink); padding: 12px 14px; font: inherit; font-size: 14.5px; cursor: pointer; }
.tw-gads b { display: block; font-size: 15.5px; } .tw-gads:hover { box-shadow: 0 0 0 3px var(--lime); }
.tw-gads-i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #4285f4; color: #fff; font-weight: 900; display: grid; place-items: center; }
.tw-or { margin: 0; text-align: center; font-size: 12px; font-weight: 700; color: rgba(244,239,230,.6); text-transform: uppercase; letter-spacing: .1em; }
.tw-filter { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; margin: 0 0 12px; } .tw-filter:focus { outline: none; border-color: var(--green2); }
/* connected audit: KPIs and tables */
.ad-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.ad-kpis > div { background: var(--cream, #f6f1e4); border-radius: 16px; padding: 14px; }
.ad-kpis strong { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.ad-kpis span { display: block; font-size: 12.5px; color: #5a6a60; margin-top: 4px; }
.ad-kpis .bad strong { color: #b8452a; }
.ad-tbl { display: grid; gap: 6px; }
.ad-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 160px) 80px 80px 110px; gap: 12px; align-items: center; background: #fffdf7; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ad-row.kw { grid-template-columns: minmax(0, 1fr) 80px 80px 110px; } .ad-row.win { grid-template-columns: minmax(0, 1fr) 80px 110px; background: #f4fbf5; border-color: #cfe9d6; }
.ad-k { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; } .ad-k b { overflow: hidden; text-overflow: ellipsis; }
.ad-n { text-align: right; font-weight: 700; white-space: nowrap; } .ad-n.bad { color: #b8452a; } .ad-n.good { color: var(--green); }
.ad-bar1 { height: 10px; background: #efe9da; border-radius: 999px; overflow: hidden; } .ad-bar1 i { display: block; height: 100%; background: var(--green2); border-radius: 999px; }
@media (max-width: 760px) {
  .ad-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ad-row, .ad-row.kw, .ad-row.win { grid-template-columns: minmax(0,1fr) auto; } .ad-row .ad-bar1 { grid-column: 1 / -1; } .ad-row .ad-n { text-align: left; }
}
.tr-strip.warn { background: #fff8e6; border-color: #f0dca0; }
