/* Relationship check-in (relationship-check-in-questions.js). Builds on the u10 engine styles. */
.tool .ci-tabs { position: relative; }
.tool .ci-pane[hidden] { display: none; }
.tool .ci-screen { display: flex; flex-direction: column; min-height: 520px; }
.tool .ci-screen > .is-new { animation: card-in .35s var(--ease-out) both; }
.tool .ci-setup, .tool .ci-live, .tool .ci-done { display: flex; flex-direction: column; gap: 16px; }

/* Agenda */
.tool .ci-agenda-wrap { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.tool .ci-agenda-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.tool .ci-agenda-head b { font-size: 17px; font-weight: 900; color: rgb(var(--ink)); }
.tool .ci-agenda-head span { font-weight: 800; color: rgb(var(--ink) / .55); font-variant-numeric: tabular-nums; }
.tool .ci-agenda { display: grid; gap: 4px; counter-reset: none; }
.tool .ci-agenda li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--u10-line); }
.tool .ci-agenda li:first-child { border-top: 0; }
.tool .ci-agenda-n { flex: none; width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--link); font-size: 13px; font-weight: 900; margin-top: 1px; }
.tool .ci-agenda-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool .ci-agenda-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; line-height: 20px; }
.tool .ci-agenda-top b { font-weight: 850; color: rgb(var(--ink)); }
.tool .ci-agenda-top span { font-weight: 750; color: rgb(var(--ink) / .5); white-space: nowrap; }
.tool .ci-agenda-q { font-size: 15px; line-height: 22px; font-weight: 650; color: rgb(var(--ink) / .75); }
.tool .ci-agenda-q.is-new { animation: card-in .3s var(--ease-out) both; }
.tool .ci-icon { flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; border-radius: 22px; display: grid; place-items: center; color: rgb(var(--ink) / .5); background: transparent; transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.tool .ci-icon:hover { background: rgb(var(--ink) / .06); color: rgb(var(--ink)); }
.tool .ci-icon:active { transform: scale(.92); }
.tool .ci-icon .tool-icon { width: 20px; height: 20px; }
.tool .ci-icon:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }

/* Live step */
.tool .ci-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.tool .ci-steps li { height: 6px; border-radius: 3px; background: rgb(var(--ink) / .1); padding: 0; }
.tool .ci-steps li.is-done { background: rgb(var(--accent)); }
.tool .ci-steps li.is-now { background: rgb(var(--accent) / .45); }
.tool .ci-how { font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .6); }
.tool .ci-card {
  min-height: 150px; display: grid; place-items: center; text-align: center; padding: 24px; border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow); font-size: 23px; line-height: 31px; font-weight: 850; letter-spacing: -.01em; color: rgb(var(--ink)); text-wrap: balance;
}
.tool .ci-card.is-new { animation: card-in .3s var(--ease-out) both; }
.tool .ci-turns { text-align: center; font-size: 14px; font-weight: 750; color: rgb(var(--ink) / .55); margin-top: -6px; }
.tool .ci-timer { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tool .ci-ring { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.tool .ci-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tool .ci-track { fill: none; stroke: rgb(var(--ink) / .08); stroke-width: 8; }
.tool .ci-arc { fill: none; stroke: rgb(var(--accent)); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear; }
.tool .ci-clock { position: relative; font-size: 40px; line-height: 46px; font-weight: 950; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: rgb(var(--ink)); }
.tool .ci-ring.is-over .ci-clock { color: var(--link); }
.tool .ci-ring.is-over .ci-track { stroke: rgb(var(--accent) / .35); }
.tool .ci-timer-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.tool .ci-sound { margin: 0; }
.tool .ci-sound[aria-pressed="false"] { color: rgb(var(--ink) / .4); }
.tool.ci-is-live > .tool-cta { display: none; }
.tool .ci-basis { font-size: 13px; line-height: 19px; font-weight: 650; color: rgb(var(--ink) / .6); }
.tool .ci-streak { align-self: center; padding: 6px 14px; border-radius: 16px; background: rgb(var(--accent) / .14); color: var(--link); font-size: 15px; font-weight: 800; }
.tool .ci-streak b { font-weight: 950; }
.tool .ci-warm { display: flex; flex-direction: column; gap: 10px; }
.tool .ci-trend-box { display: grid; grid-template-columns: 20px 1fr; gap: 6px; }
.tool .ci-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; font-weight: 750; color: rgb(var(--ink) / .5); padding: 2px 0; }
.tool .ci-x { display: flex; justify-content: space-between; padding-left: 26px; font-size: 12px; font-weight: 750; color: rgb(var(--ink) / .5); }
.tool .u10-chip[aria-pressed="true"] { background: rgb(var(--accent) / .14); color: rgb(var(--ink)); }
.tool .u10-chip[hidden] { display: none; }

/* Sliders */
.tool .ci-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool .ci-slider { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--u10-line); }
.tool .ci-slider-top { display: flex; justify-content: space-between; align-items: baseline; }
.tool .ci-slider-top b { font-weight: 850; color: rgb(var(--ink)); }
.tool .ci-val { font-size: 24px; font-weight: 950; color: var(--link); font-variant-numeric: tabular-nums; }
.tool .ci-slider-ends { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: rgb(var(--ink) / .5); }
.tool .ci-slider input[type="range"] { width: 100%; height: 32px; accent-color: rgb(var(--accent)); }

/* Done */
.tool .ci-done { align-items: stretch; }
.tool .ci-done .u10-badge { align-self: center; }
.tool .ci-done .u10-headline { text-align: center; }
.tool .ci-done > .tool-sub { text-align: center; margin: -8px 0 0; }
.tool .ci-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool .ci-score { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--u10-line); }
.tool .ci-score span { font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .65); }
.tool .ci-score b { font-size: 30px; line-height: 36px; font-weight: 950; font-variant-numeric: tabular-nums; color: var(--u10-a); }
.tool .ci-score.is-b b { color: var(--u10-b); }
.tool .ci-score small { font-size: 12px; font-weight: 750; color: rgb(var(--ink) / .5); }
.tool .ci-trend-wrap { padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--u10-line); display: flex; flex-direction: column; gap: 8px; }
.tool .ci-trend-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool .ci-trend { width: 100%; height: 90px; overflow: visible; }
.tool .ci-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke: var(--u10-a); }
.tool .ci-line.b { stroke: var(--u10-b); }
.tool .ci-note { padding: 14px 16px; border-radius: 18px; background: rgb(var(--accent) / .1); display: flex; flex-direction: column; gap: 4px; }
.tool .ci-note p:last-child { font-size: 17px; font-weight: 800; color: rgb(var(--ink)); }
.tool .ci-remind { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--u10-line); }

@media (max-width: 599px) {
  .tool .ci-card { font-size: 20px; line-height: 28px; min-height: 140px; padding: 20px; }
  .tool .ci-sliders { grid-template-columns: 1fr; }
  .tool .ci-clock { font-size: 36px; line-height: 42px; }
  .tool .ci-ring { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool .ci-screen > .is-new, .tool .ci-card.is-new, .tool .ci-agenda-q.is-new { animation: none; }
  .tool .ci-arc { transition: none; }
}

/* Round 2 */
.tool .ci-tabs[hidden] { display: none; }
.tool .ci-agenda-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.tool .ci-agenda-foot .tool-note { flex: 1 1 180px; }
.tool .ci-agenda-foot .u10-chip { flex: none; }
.tool .ci-slider input.is-unset { opacity: .55; }
.tool .ci-val { min-width: 40px; text-align: right; }

/* Round 3: two-line length segments, slider */
.tool .ci-setup .u10-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 52px; }
.tool .ci-setup .u10-seg button b { font-size: 14px; line-height: 18px; font-weight: 850; }
.tool .ci-setup .u10-seg button small { font-size: 12px; line-height: 16px; font-weight: 700; color: rgb(var(--ink) / .6); }
.tool .ci-slider input.is-unset::-webkit-slider-thumb { opacity: .45; }
.tool .ci-slider input.is-unset::-moz-range-thumb { opacity: .45; }
.tool .ci-slider input.is-unset { opacity: 1; }
.tool .ci-personal { border-radius: 18px; background: var(--surface); }
.tool .ci-personal summary { min-height: 48px; display: flex; align-items: center; padding: 12px 16px; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.tool .ci-personal summary::-webkit-details-marker { display: none; }
.tool .ci-personal summary::after { content: '+'; margin-left: auto; font-size: 20px; color: rgb(var(--ink) / .5); }
.tool .ci-personal[open] summary::after { content: '\2212'; }
.tool .ci-personal > div { padding: 0 16px 16px; }

/* Round 7: two-line tabs, desktop columns, health card, slider with the number on the thumb, chart grid */
.tool .ci-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 52px; }
.tool .ci-tabs button b { font-size: 14px; line-height: 18px; font-weight: 850; }
.tool .ci-tabs button small { font-size: 12px; line-height: 16px; font-weight: 700; color: rgb(var(--ink) / .6); }
.tool .ci-setup-main, .tool .ci-setup-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 860px) {
  .tool .ci-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 20px; align-items: start; }
  .tool .ci-setup .tool-sub { font-size: 15px; line-height: 22px; }
}
.tool .ci-icon.is-blank { visibility: hidden; }
.tool .ci-health-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--u10-line); color: rgb(var(--ink)); transition: transform .16s var(--ease-out), background-color .15s ease; }
.tool .ci-health-card b { font-size: 16px; line-height: 22px; font-weight: 900; }
.tool .ci-health-card span { grid-column: 1; font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .7); }
.tool .ci-health-card .tool-icon { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--link); }
.tool .ci-health-card:hover { background: var(--surface-2); }
.tool .ci-health-card:active { transform: scale(.98); }
.tool .ci-health-card:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.tool .ci-sound { gap: 6px; }
.tool .ci-sound[aria-pressed="false"] { color: rgb(var(--ink) / .6); }
.tool .ci-range { position: relative; display: block; height: 48px; }
.tool .ci-slider input[type="range"] { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; }
.tool .ci-slider input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: rgb(var(--ink) / .12); }
.tool .ci-slider input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: rgb(var(--ink) / .12); }
.tool .ci-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; margin-top: -18px; border-radius: 22px; background: rgb(var(--accent)); box-shadow: 0 2px 8px rgb(var(--accent) / .4); border: 0; }
.tool .ci-slider input[type="range"]::-moz-range-thumb { width: 44px; height: 44px; border-radius: 22px; background: rgb(var(--accent)); border: 0; }
.tool .ci-slider input.is-unset::-webkit-slider-thumb { opacity: 0; }
.tool .ci-slider input.is-unset::-moz-range-thumb { opacity: 0; }
.tool .ci-slider input[type="range"]:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; border-radius: 24px; }
.tool .ci-thumb { position: absolute; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 22px; display: grid; place-items: center; font-size: 18px; font-weight: 950; color: #fff; pointer-events: none; font-variant-numeric: tabular-nums; }
.tool .ci-thumb[hidden], .tool .ci-unset-hint[hidden] { display: none; }
.tool .ci-unset-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2px 10px; border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 800; color: rgb(var(--ink) / .65); pointer-events: none; }
.tool .ci-val { font-size: 18px; min-width: 0; }
.tool .ci-val.is-unset { font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .55); }
.tool .ci-hide { align-self: center; }
.tool .ci-hide[aria-pressed="true"] { color: var(--link); }
.tool .ci-y { justify-content: space-between; }
.tool .ci-grid { stroke: rgb(var(--ink) / .1); stroke-width: 1; stroke-dasharray: 3 4; }
.tool .ci-dot { fill: var(--surface); stroke: var(--u10-a); stroke-width: 2.5; }
.tool .ci-dot.b { stroke: var(--u10-b); }
.tool .ci-drop { padding: 12px 14px; border-radius: 16px; background: rgb(232 137 12 / .12); font-size: 15px; line-height: 22px; font-weight: 650; color: rgb(var(--ink)); }
.tool .ci-drop b { font-weight: 850; }
.tool .ci-done > .u10-link { align-self: center; }
