/* Tonight's FaceTime Picker. Tokens only, so dark mode works. */
.tool.ft { gap: 16px; }
.tool .ft-panel { gap: 14px; }

/* Filters: three native pickers (Who, Time, Mood) and one row of one-tap setup chips */
.tool .ft-filters { display: flex; flex-direction: column; gap: 8px; }
.tool .ft-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tool .ft-filters[data-tab="talk"] .ft-picks { grid-template-columns: 1fr; }
.tool .ft-filters[data-tab="plan"] .ft-picks { grid-template-columns: 1fr; }
.tool .ft-setup { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent); }
.tool .ft-setup::-webkit-scrollbar { display: none; }
.tool .ft-chip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .7); background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08); transition: background-color .2s ease, color .2s ease, transform .2s var(--ease-out); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.tool .ft-chip:active { transform: scale(.95); }
.tool .ft-chip[aria-pressed="true"] { background: rgb(var(--ink)); color: var(--bg); box-shadow: none; }
.tool .ft-pick { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 52px; padding: 6px 30px 6px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08); cursor: pointer; transition: box-shadow .2s ease; }
.tool .ft-pick::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: solid rgb(var(--ink) / .45); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.tool .ft-pick.is-set { box-shadow: inset 0 0 0 2px rgb(var(--accent) / .55); }
.tool .ft-pick:focus-within { box-shadow: inset 0 0 0 2px rgb(var(--accent)); }
.tool .ft-pick-label { font-size: 11px; line-height: 14px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--ink) / .45); }
.tool .ft-pick select.ft-select { appearance: none; -webkit-appearance: none; min-height: 0; height: 22px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 16px; line-height: 22px; font-weight: 800; color: rgb(var(--ink)); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool .ft-pick select.ft-select:focus-visible { box-shadow: none; }
.tool .ft-pick select.ft-select::before { content: none; }
.tool .ft-pick select.ft-select { position: static; }
.tool .ft-pick select.ft-select:focus { outline: 0; }

/* The dealt card */
.tool .ft-count { font-size: 13px; line-height: 18px; font-weight: 700; color: rgb(var(--ink) / .45); text-align: right; font-variant-numeric: tabular-nums; }
.tool .ft-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 12px; padding: 24px; min-height: 340px; place-items: initial; touch-action: pan-y; text-wrap: pretty; box-shadow: var(--shadow), inset 0 0 0 1px rgb(var(--ink) / .06); }
.tool .ft-cardtop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tool .ft-cardtop .ft-count { text-align: right; flex: none; }
.tool .ft-eyebrow { font-size: 12px; line-height: 16px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin: 0; }
.tool .ft-title { font-size: 26px; line-height: 32px; font-weight: 900; letter-spacing: -.015em; color: rgb(var(--ink)); text-wrap: balance; outline: 0; }
.tool .ft-card .ck-pills { justify-content: flex-start; }
.tool .ft-steps { counter-reset: ft; display: flex; flex-direction: column; gap: 8px; }
.tool .ft-steps li { counter-increment: ft; position: relative; padding-left: 34px; font-size: 16px; line-height: 24px; font-weight: 650; color: rgb(var(--ink) / .85); }
.tool .ft-steps li::before {
  content: counter(ft); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: var(--link); background: rgb(var(--accent) / .12);
}
.tool .ft-first { font-size: 15px; line-height: 22px; font-weight: 600; color: rgb(var(--ink) / .7); padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.tool .ft-first b { font-weight: 850; color: rgb(var(--ink)); }
.tool .ft-cupie:empty { display: none; }
.tool .ft-cupie { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--link); }
.tool .ft-clear { width: auto; height: 44px; margin-top: 4px; }

/* Action row: back, next (wide), then save, timer and a labelled Send */
.tool .ft-tools { display: flex; gap: 6px; flex: none; }
.tool .ft-send { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 16px 0 12px; border-radius: 24px; font-size: 15px; font-weight: 850; color: var(--link); background: var(--surface); box-shadow: inset 0 0 0 1.5px rgb(var(--accent) / .45); transition: transform .2s var(--ease-out), background-color .2s ease; -webkit-tap-highlight-color: transparent; }
.tool .ft-send:active { transform: scale(.95); }
.tool .ft-send .tool-icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .tool .ft-send:hover { background: var(--surface-2); } }
.tool .ft-actions { display: flex; align-items: center; gap: 6px; }
.tool .ft-actions .ft-next { flex: 1 1 auto; width: auto; min-width: 0; }
.tool .ft-icon {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 24px;
  background: var(--surface); color: rgb(var(--ink) / .7); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08);
  transition: transform .2s var(--ease-out), color .2s ease, background-color .2s ease; -webkit-tap-highlight-color: transparent;
}
.tool .ft-icon:active { transform: scale(.92); }
.tool .ft-icon:disabled { opacity: .35; }
.tool .ft-icon[aria-pressed="true"] { color: #E0347E; }
.tool .ft-icon[aria-pressed="true"] .tool-icon path { fill: currentColor; }
.tool .ft-icon[aria-expanded="true"] { color: var(--link); box-shadow: inset 0 0 0 2px rgb(var(--accent) / .5); }
@media (hover: hover) and (pointer: fine) { .tool .ft-icon:hover { background: var(--surface-2); color: rgb(var(--ink)); } }
.tool .ft-timer { padding: 16px; border-radius: 24px; background: var(--surface); }
.tool .ft-meta { text-align: center; }

.tool .ft-more { border-radius: 16px; background: var(--surface); }
.tool .ft-more summary { min-height: 48px; padding: 12px 16px; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.tool .ft-more summary::-webkit-details-marker { display: none; }
.tool .ft-more > ul { padding: 0 8px 8px; }
.tool .ft-favs li { padding: 0; background: var(--surface-2); }
.tool .ft-favlink { width: 100%; min-height: 44px; padding: 10px 14px; text-align: left; font-size: 15px; font-weight: 750; color: rgb(var(--ink)); background: transparent; border-radius: 16px; }

/* Talk: question of the day */
.tool .ft-qotd { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--accent) / .25); }
.tool .ft-qotd > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tool .ft-qotd-q { font-size: 17px; line-height: 24px; font-weight: 850; color: rgb(var(--ink)); }
.tool .ft-qotd-next { font-size: 13px; line-height: 18px; font-weight: 650; color: rgb(var(--ink) / .5); }
.tool .ft-deck .deck-actions { flex-direction: row-reverse; }
.tool .ft-deck .deck-actions .btn { width: auto; }
.tool .ft-deck { display: flex; flex-direction: column; gap: 14px; }

/* Plan a call */
.tool .ft-planhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool .ft-planhead .tool-sub.ft-plansub { margin: 2px 0 0; }
.tool .ft-wait { padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px rgb(var(--accent) / .45); font-size: 15px; line-height: 22px; font-weight: 800; color: rgb(var(--ink)); font-variant-numeric: tabular-nums; }
.tool .ft-runcard { min-height: 0; }
.tool .ft-runrow { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 24px; background: var(--surface); }
.tool .ft-runrow .ck-timer { flex: none; gap: 8px; }
.tool .ft-runrow .ck-timer-ctl .ck-play { flex: 0 0 auto; height: 40px; padding: 0 14px; font-size: 14px; }
.tool .ft-runrow .ck-timer-ctl .ck-mini { min-width: 0; padding: 0 10px; }
.tool .ft-runbtns { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.tool .ft-done { display: flex; flex-direction: column; gap: 12px; text-align: center; place-items: initial; }
.tool .ft-plan { display: flex; flex-direction: column; gap: 8px; }
.tool .ft-plan li { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 12px; border-radius: 18px; background: var(--surface); }
.tool .ft-plan li.is-new { animation: card-in .35s var(--ease-out) both; }
.tool .ft-plan-n { flex: none; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; font-size: 14px; font-weight: 900; color: var(--bg); background: rgb(var(--ink)); }
.tool .ft-plan-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tool .ft-plan-kind { font-size: 12px; line-height: 16px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.tool .ft-plan-name { font-size: 16px; line-height: 22px; font-weight: 800; color: rgb(var(--ink)); }
.tool .ft-plan .ft-icon { box-shadow: none; background: transparent; }
.tool .ft-runbody { display: flex; flex-direction: column; gap: 12px; }
.tool .btn.is-ready { animation: ft-nudge 1.2s var(--ease-out) 2; }
@keyframes ft-nudge { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.04); } }

@media (min-width: 600px) {
  .tool .ft-card { padding: 32px; min-height: 320px; }
  .tool .ft-title { font-size: 30px; line-height: 36px; }
}
@media (max-width: 599px) {
  .tool .ft-pick { min-height: 48px; padding-left: 12px; }
  .tool .ft-pick select.ft-select { font-size: 16px; }
  .tool .ft-runrow { flex-direction: column; align-items: stretch; }
  .tool .ft-planhead .ck-mini { flex: none; }
  .tool .ft-card { padding: 18px 18px 20px; min-height: 0; gap: 10px; }
  .tool .ft-title { font-size: 24px; line-height: 30px; }
  .tool .ft-send { padding: 0 12px 0 10px; height: 44px; }
  .tool .ft-tools { gap: 4px; }
  .tool .ft-actions { flex-direction: row; }
  .tool .ft-actions .btn { width: auto; }
  .tool .ft-qotd { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .tool .btn.is-ready, .tool .ft-plan li.is-new { animation: none; } }
.tool .ft-actions .btn { padding: 0 16px; white-space: nowrap; }
@media (max-width: 599px) { .tool .ft-icon { width: 44px; height: 44px; } .tool .ft-actions { gap: 4px; } }
@media (prefers-color-scheme: dark) {
  .tool .ft-card { background: var(--surface-2); box-shadow: 0 8px 32px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(var(--ink) / .1); }
  .tool .ft-first { background: rgb(var(--ink) / .06); }
}
/* The action bar floats at the bottom of the screen while the card is long, so Next is always one thumb away. */
.tool .ft-actions { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 2; padding: 6px; margin: 0 -6px; border-radius: 30px; background: rgb(var(--accent) / .08); background: color-mix(in srgb, var(--bg) 78%, transparent); box-shadow: 0 6px 24px rgb(var(--ink) / .08); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tool .ft-actions { background: var(--bg); } }

/* Round 2 polish */
.tool .ft-icon:disabled { visibility: hidden; }
.tool .ft-follow { margin-top: 10px; font-size: 14px; line-height: 20px; font-weight: 700; color: rgb(var(--ink) / .5); }
.tool .ft-deck .deck-actions .btn-secondary { flex: none; padding: 0 20px; }
@media (min-width: 600px) {
  .tool .ft-deck .deck-filters .tool-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .tool .ft-setup { margin: 0; padding: 2px 0; -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; }
}
@media (max-width: 599px) {
  .tool .ft-deck .deck-filters .tool-chips { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); }
}
.tool .ft-picks { grid-template-columns: 1.15fr 1fr 1fr; }
.tool .ft-pick { padding-right: 26px; }
.tool .ft-pick::after { right: 12px; }
@media (prefers-color-scheme: dark) { .tool .ft-deck .deck-card { background: var(--surface-2); box-shadow: 0 8px 32px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(var(--ink) / .1); } }

/* Round 3 */
.tool .ft-open { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; margin-bottom: 6px; border-radius: 20px; font-size: 14px; font-weight: 850; text-decoration: none; color: var(--link); background: rgb(var(--accent) / .1); }
.tool .ft-cupie { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tool .ft-together { flex: 1 1 auto; display: flex; gap: 6px; align-items: stretch; }
.tool .ft-together .btn { flex: 1 1 auto; }
.tool .ft-atsel { flex: none; width: auto; min-height: 56px; padding: 0 12px; border-radius: 28px; font-size: 15px; font-weight: 800; }
.tool .ft-lenchips { display: flex; }
@media (max-width: 599px) {
  .tool .ft-actions [aria-label="Previous idea"] { display: none; }
  .tool .ft-actions .ft-next { flex: 1 1 auto; }
  .tool .ft-setup { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .tool .ft-chip { min-height: 38px; padding: 0 12px; }
  .tool .ft-deck .deck-card { min-height: 176px; }
  .tool .ft-planbar { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 2; padding: 6px; margin: 0 -6px; border-radius: 30px; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 6px 24px rgb(var(--ink) / .08); }
  .tool .ft-planbar .btn { height: 48px; }
  .tool .ft-atsel { min-height: 48px; }
}
.tool .ft-seg { flex-wrap: nowrap; gap: 6px; }
.tool .ft-seg button { flex: 1 1 0; min-width: 0; padding: 0 6px; white-space: nowrap; }

/* Round 4 */
.tool .ft-sum { display: none; }
.tool .ft-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tool .ft-titlerow .ft-open { margin: 0; flex: none; }
.tool .ft-actions [aria-label="Previous idea"]:disabled { display: none; }
@media (min-width: 600px) { .tool .ft-actions { position: static; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; margin: 0; } }
@media (max-width: 599px) {
  .tool .ft-actions [aria-label="Previous idea"]:not(:disabled) { display: grid; }
  .tool .ft-sum { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08); text-align: left; }
  .tool .ft-sum::after { content: ''; margin-left: auto; width: 7px; height: 7px; border: solid rgb(var(--ink) / .45); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--ease-out); }
  .tool .ft-filters.is-open .ft-sum::after { transform: rotate(225deg); }
  .tool .ft-sum-label { font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--ink) / .45); }
  .tool .ft-sum-val { font-size: 15px; font-weight: 800; color: rgb(var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tool .ft-filters:not(.is-open) .ft-picks { display: none; }
  .tool .ft-filters[data-tab="talk"] .ft-sum, .tool .ft-filters[data-tab="plan"] .ft-sum { display: none; }
  .tool .ft-filters[data-tab="talk"] .ft-picks, .tool .ft-filters[data-tab="plan"] .ft-picks { display: grid; }
  .tool .ft-panel { padding-bottom: 8px; }
}
