/* Should I text them? (should-i-text-them.js): five chip groups on one screen, live verdict */
.tool .st-form { display: flex; flex-direction: column; gap: 18px; }
.tool .st-group { display: flex; flex-direction: column; gap: 10px; }
.tool .st-label { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 24px; font-weight: 900; color: rgb(var(--ink)); }
.tool .st-num { flex: none; width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--surface); color: rgb(var(--ink) / .5); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .1); transition: background-color .2s ease, color .2s ease; }
.tool .st-group.is-done .st-num { background: rgb(var(--accent)); color: #fff; box-shadow: none; }
.tool .st-group.is-wait .tool-chips { opacity: .5; }
.tool .st-group .tool-chips button { min-height: 44px; font-size: 15px; }
.tool .st-when { font-size: 14px; line-height: 20px; font-weight: 700; color: rgb(var(--ink) / .5); }

.tool .st-bar {
  position: sticky; bottom: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 18px;
  border-radius: 22px; background: rgb(var(--ink)); box-shadow: 0 10px 30px rgb(var(--ink) / .25); text-align: center;
}
.tool .st-bar p { font-size: 16px; line-height: 22px; font-weight: 800; color: var(--surface); }
.tool .st-bar b { font-size: 19px; font-weight: 950; }
.tool .st-bar[data-tone="good"] b { color: #7EE2AE; }
.tool .st-bar[data-tone="mid"] b { color: #FFC965; }
.tool .st-bar[data-tone="low"] b { color: #FF9BB5; }

.tool .st-result { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 80px; }
.tool .st-result:focus { outline: none; }
.tool .st-card { position: relative; overflow: hidden; padding-top: 26px; }
.tool .st-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: rgb(var(--accent)); }
.tool .st-card[data-tone="good"]::before { background: #1F9D62; }
.tool .st-card[data-tone="mid"]::before { background: #D98A00; }
.tool .st-card[data-tone="low"]::before { background: #D0335E; }
.tool .st-verdict { font-size: 36px; line-height: 42px; font-weight: 950; letter-spacing: -.02em; color: rgb(var(--ink)); text-wrap: balance; }
.tool .st-why { font-size: 17px; line-height: 26px; font-weight: 650; color: rgb(var(--ink) / .75); text-wrap: pretty; }
.tool .st-section { display: flex; flex-direction: column; gap: 10px; }
.tool .st-tools { justify-content: center; }
.tool .st-saved-card { gap: 10px; }
.tool .st-saved-b { align-self: flex-start; border-radius: 20px 20px 20px 6px; }
@media (min-width: 600px) { .tool .st-verdict { font-size: 40px; line-height: 46px; } }
@media (prefers-color-scheme: dark) {
  .tool .st-bar { background: var(--surface-2); box-shadow: 0 10px 30px rgb(0 0 0 / .5), inset 0 0 0 1px rgb(var(--ink) / .1); }
  .tool .st-bar p { color: rgb(var(--ink)); }
  .tool .st-card[data-tone="good"]::before { background: #5BD69A; }
  .tool .st-card[data-tone="mid"]::before { background: #F2B13A; }
  .tool .st-card[data-tone="low"]::before { background: #FF6F93; }
}
.tool .st-bar { transition: background-color .2s ease, box-shadow .2s ease; }
.tool .st-form { padding-bottom: 72px; }
.tool .st-bar { margin-top: -78px; transition: opacity .2s ease, transform .25s var(--ease-out); }
.tool .st-bar.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.tool .st-result { scroll-margin-top: 96px; }
.tool .st-group[data-key="ago"] .tool-chips { display: grid; grid-template-columns: repeat(3, 1fr); }
.tool .st-group[data-key="ago"] .tool-chips button { padding: 0 8px; }
.tool .st-tag { align-self: flex-start; padding: 4px 12px; border-radius: 14px; font-size: 14px; line-height: 20px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: rgb(var(--ink) / .07); color: rgb(var(--ink)); }
.tool .st-card[data-tone="good"] .st-tag { background: rgb(31 157 98 / .14); color: #157A4B; }
.tool .st-card[data-tone="mid"] .st-tag { background: rgb(217 138 0 / .16); color: #8F5A00; }
.tool .st-card[data-tone="low"] .st-tag { background: rgb(208 51 94 / .12); color: #A8244A; }
.tool .st-by { font-size: 13px; line-height: 18px; font-weight: 800; color: rgb(var(--ink) / .5); }
.tool .st-dont-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tool .u8-bubble.is-dont { background: rgb(var(--ink) / .08); color: rgb(var(--ink) / .55); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgb(208 51 94 / .7); }
@media (max-width: 380px) { .tool .st-group[data-key="ago"] .tool-chips { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-color-scheme: dark) {
  .tool .st-card[data-tone="good"] .st-tag { color: #7EE2AE; }
  .tool .st-card[data-tone="mid"] .st-tag { color: #FFC965; }
  .tool .st-card[data-tone="low"] .st-tag { color: #FF9BB5; }
  .tool .st-by { color: rgb(var(--ink) / .6); }
}

/* Round 3 */
.tool.is-complete .st-bar { display: none; }
.tool.is-complete .st-form { padding-bottom: 0; }
.tool:not(.is-complete) > .tool-cta { display: none; }
.tool .st-who { display: flex; align-items: center; gap: 12px; }
.tool .st-who .tool-label { flex: none; }
.tool .st-who .u8-seg { flex: 1; max-width: 260px; }
@media (max-width: 430px) { .tool .st-group[data-key="ago"] .tool-chips { grid-template-columns: repeat(2, 1fr); } }
.tool .st-tip > summary { cursor: pointer; font-size: 14px; font-weight: 800; color: var(--link); min-height: 40px; display: flex; align-items: center; }
.tool .st-tip > p { margin-top: 4px; }
.tool .st-saved { scroll-margin-top: 92px; }
.tool .st-tag { font-size: 18px; line-height: 24px; padding: 6px 14px; border-radius: 16px; }
.tool .st-label { flex-wrap: wrap; }
.tool .st-wait { flex-basis: 100%; margin: -6px 0 0 34px; font-size: 13px; font-weight: 750; color: rgb(var(--ink) / .45); }

/* Round 7: optional pace row */
.tool .st-opt .st-label { font-size: 16px; }
.tool .st-optl { padding: 2px 8px; border-radius: 10px; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: rgb(var(--ink) / .07); color: rgb(var(--ink) / .55); }
