/* First FaceTime / Video Date Kit. Tokens only, so dark mode works. */
.tool.fd { gap: 16px; }
.tool .fd-panel { gap: 14px; }
.tool .fd-h { font-size: 13px; line-height: 18px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--ink) / .5); }

/* Camera frame: mirrored preview with an eye line and a face oval */
.tool .fd-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: rgb(var(--ink) / .08); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .06); }
.tool .fd-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; transition: opacity .4s ease; }
.tool .fd-frame.is-live .fd-video { opacity: 1; }
.tool .fd-camempty { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 24px; text-align: center; }
.tool .fd-frame.is-live .fd-camempty { display: none; }
.tool .fd-cam-title { font-size: 20px; line-height: 26px; font-weight: 900; color: rgb(var(--ink)); }
.tool .fd-cam-sub { font-size: 15px; line-height: 22px; font-weight: 650; color: rgb(var(--ink) / .6); max-width: 340px; margin: 0 auto; }
.tool .fd-guide { position: absolute; inset: 0; pointer-events: none; }
.tool .fd-eyeline { position: absolute; left: 12%; right: 12%; top: 38%; border-top: 2px dashed rgb(255 255 255 / .7); }
.tool .fd-eyeline::after { content: 'eyes here'; position: absolute; right: 0; top: -22px; font-size: 12px; font-weight: 800; color: rgb(255 255 255 / .85); text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.tool .fd-oval { position: absolute; left: 50%; top: 52%; width: 38%; height: 70%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgb(255 255 255 / .45); }
.tool .fd-frame:not(.is-live) .fd-guide { display: none; }
.tool .fd-meter { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tool .fd-light { display: inline-flex; min-height: 28px; align-items: center; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 850; background: rgb(var(--ink) / .08); color: rgb(var(--ink)); }
.tool .fd-light.is-ok { background: rgb(47 182 115 / .18); color: #1E8A55; }
.tool .fd-light.is-meh { background: rgb(245 166 35 / .2); color: #A0620A; }
.tool .fd-light.is-bad { background: rgb(224 52 126 / .16); color: #B0245F; }
.tool .fd-tip { font-size: 15px; line-height: 22px; font-weight: 700; color: rgb(var(--ink) / .75); }

.tool .fd-checks { display: flex; flex-direction: column; gap: 8px; }
.tool .fd-checks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--surface); }
.tool .fd-checks input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: rgb(var(--accent)); }
.tool .fd-checks label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.tool .fd-checks b { font-size: 16px; line-height: 22px; font-weight: 850; color: rgb(var(--ink)); }
.tool .fd-checks span { font-size: 14px; line-height: 20px; font-weight: 600; color: rgb(var(--ink) / .6); }

/* On the call */
.tool .fd-shared { 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: 750; }
.tool .fd-callrow { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 24px; background: var(--surface); }
.tool .fd-callrow .ck-timer { flex-direction: row; justify-content: flex-start; gap: 16px; }
.tool .fd-callrow .ck-ring { flex: none; margin: 0; }
.tool .fd-callrow .ck-ring-time { font-size: 22px; line-height: 26px; }
.tool .fd-callrow .ck-timer-ctl { width: auto; flex: 1; justify-content: flex-start; gap: 6px; }
.tool .fd-callrow .ck-timer-ctl .ck-play { flex: 0 0 auto; height: 44px; padding: 0 18px; }
.tool .fd-callrow .ck-mini { min-width: 0; padding: 0 12px; }
.tool .fd-callside { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool .fd-callnote { margin: 0; }
.tool .fd-nudge { padding: 14px 16px; border-radius: 18px; background: rgb(var(--accent) / .14); font-size: 16px; line-height: 24px; font-weight: 650; color: rgb(var(--ink)); animation: card-in .45s var(--ease-out) both; }
.tool .fd-nudge b { font-weight: 900; }
.tool .fd-topiccard { min-height: 168px; display: flex; flex-direction: column; justify-content: center; gap: 10px; place-items: initial; text-align: left; }
.tool .fd-cardtop { display: flex; justify-content: space-between; gap: 8px; }
.tool .fd-cat { font-size: 12px; line-height: 16px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.tool .fd-num { font-size: 13px; font-weight: 750; color: rgb(var(--ink) / .45); font-variant-numeric: tabular-nums; }
.tool .fd-topic { font-size: 24px; line-height: 32px; font-weight: 850; color: rgb(var(--ink)); text-wrap: balance; outline: 0; }
.tool .fd-silence {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 88px; border-radius: 28px; color: #fff;
  background: var(--ramp); box-shadow: 0 10px 28px rgb(121 35 192 / .32); transition: transform .2s var(--ease-out); -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.tool .fd-silence span { font-size: 14px; font-weight: 750; opacity: .85; }
.tool .fd-silence b { font-size: 22px; line-height: 28px; font-weight: 900; }
.tool .fd-silence:active { transform: scale(.97); }
.tool .fd-silence:focus-visible { outline: 3px solid rgb(var(--accent) / .5); outline-offset: 3px; }
.tool .fd-row2 { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.tool .fd-row2 .ck-mini:disabled { opacity: .35; }

/* Play */
.tool .fd-how { font-size: 15px; line-height: 22px; font-weight: 650; color: rgb(var(--ink) / .7); }
.tool .fd-gamecard { min-height: 180px; }
.tool .fd-tt { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: 100%; }
.tool .fd-tt span { padding: 18px 8px; border-radius: 18px; background: var(--surface-2); font-size: 22px; line-height: 28px; font-weight: 900; }
.tool .fd-tt em { font-style: normal; font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--ink) / .4); }
.tool .fd-2t { display: flex; flex-direction: column; gap: 8px; }
.tool .fd-gtimer { padding: 12px; border-radius: 20px; background: var(--surface); }

@media (prefers-color-scheme: dark) {
  .tool .fd-light.is-ok { color: #6FE0A6; } .tool .fd-light.is-meh { color: #FFC66B; } .tool .fd-light.is-bad { color: #FF8DBE; }
  .tool .fd-topiccard, .tool .fd-gamecard { background: var(--surface-2); }
}
@media (max-width: 599px) {
  .tool .fd-callrow { padding: 14px; }
  .tool .fd-callside .tool-chips button { padding: 0 12px; }
  .tool .fd-topic { font-size: 22px; line-height: 30px; }
  .tool .fd-tt span { font-size: 19px; line-height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .tool .fd-video { transition: none; } .tool .fd-nudge { animation: none; } }

/* Round 1 fixes */
.tool .fd-frame { aspect-ratio: 3 / 4; max-height: 62vh; margin: 0 auto; width: 100%; }
@media (min-width: 600px) { .tool .fd-frame { aspect-ratio: 4 / 3; max-height: none; } }
.tool .fd-frame.is-true .fd-video { transform: none; }
.tool .fd-meterrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; flex-wrap: wrap; }
.tool .fd-camtools { display: flex; gap: 6px; }
.tool .fd-camtools .ck-mini { min-height: 36px; font-size: 13px; }
.tool .fd-camtools .ck-mini[aria-pressed="true"] { color: var(--link); box-shadow: inset 0 0 0 1.5px rgb(var(--accent) / .5); }
.tool .fd-scale { position: relative; display: grid; grid-template-columns: 1fr 1.2fr 1fr; width: 100%; height: 22px; border-radius: 11px; overflow: visible; background: linear-gradient(90deg, rgb(var(--ink) / .14), rgb(47 182 115 / .25) 40%, rgb(47 182 115 / .25) 75%, rgb(245 166 35 / .25)); }
.tool .fd-scale span:not(.fd-scale-mark) { font-size: 11px; line-height: 22px; font-weight: 800; text-align: center; color: rgb(var(--ink) / .55); }
.tool .fd-scale-mark { position: absolute; top: -4px; width: 4px; height: 30px; margin-left: -2px; border-radius: 2px; background: rgb(var(--ink)); transition: left .5s var(--ease-out); left: 0; }
.tool .fd-tilt { font-size: 14px; color: rgb(var(--ink) / .65); }
.tool .fd-more { border-radius: 16px; background: var(--surface); }
.tool .fd-more summary { min-height: 48px; padding: 12px 16px; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.tool .fd-more summary::-webkit-details-marker { display: none; }
.tool .fd-asks { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
.tool .fd-asks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.tool .fd-asks li span { flex: 1; font-size: 15px; line-height: 21px; font-weight: 650; }
.tool .fd-whorow { display: flex; flex-direction: column; gap: 8px; }
.tool .fd-seg { flex-wrap: nowrap; gap: 6px; }
.tool .fd-seg button { flex: 1 1 0; min-width: 0; padding: 0 6px; white-space: nowrap; }
.tool .fd-cardtop { align-items: baseline; }
.tool .fd-num { font-size: 22px; font-weight: 900; color: rgb(var(--ink) / .25); }
.tool .fd-tt { grid-template-columns: 1fr; gap: 8px; }
.tool .fd-tt span { padding: 22px 12px; }
.tool .fd-tt em { text-align: center; }
@media (min-width: 600px) { .tool .fd-tt { grid-template-columns: 1fr auto 1fr; } }
@media (prefers-color-scheme: dark) { .tool .fd-row2 .ck-mini { color: rgb(var(--ink) / .85); } }
/* Screen light: pure white on purpose (it is a light source), in both color schemes. */
.tool.fd-ring { position: fixed; inset: 0; z-index: 1000; margin: 0; border-radius: 0; background: rgb(255 255 255); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; }
.tool.fd-ring[hidden] { display: none !important; }
.tool.fd-ring .fd-ringvideo { width: 46%; max-width: 240px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; transform: scaleX(-1); }
.tool.fd-ring .btn { width: auto; flex: none; background: rgb(18 6 31); color: rgb(255 255 255); }

/* Round 2 */
.tool .fd-camslot { margin-top: 10px; display: flex; justify-content: center; }
.tool .fd-camslot .btn { width: auto; flex: none; padding: 0 28px; }
.tool .fd-frame:not(.is-live) { aspect-ratio: auto; min-height: 220px; }
.tool .fd-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.tool .fd-scale { background: linear-gradient(90deg, rgb(var(--ink) / .12) 0 21%, rgb(47 182 115 / .35) 21% 84%, rgb(245 166 35 / .3) 84%); }
.tool .fd-scale span:not(.fd-scale-mark) { font-size: 12px; }
.tool .fd-callrow .ck-timer-ctl .ck-play { background: var(--surface-2); color: rgb(var(--ink)); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .1); }
.tool .fd-gtimer .ck-timer-ctl .ck-play { background: var(--surface-2); color: rgb(var(--ink)); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .1); }
.tool .fd-num { font-size: 28px; line-height: 32px; color: rgb(var(--ink) / .5); font-variant-numeric: tabular-nums; }
.tool .fd-roulette { width: 100%; }
.tool .fd-roulette .tool-icon { width: 20px; height: 20px; }
.tool .fd-tt span { background: transparent; padding: 6px 8px; font-size: 26px; line-height: 32px; }
.tool .fd-seg { flex-wrap: wrap; }
.tool .fd-seg button { flex: 1 1 auto; }
.tool .fd-phonetip { margin: 0; }
.tool .fd-frame:not(.is-live) .fd-video { display: none; }
.tool .fd-camempty { z-index: 1; }
@media (max-width: 599px) { .tool .fd-callrow .ck-timer { gap: 12px; } .tool .fd-callrow .ck-timer-ctl { gap: 4px; } .tool .fd-callrow .ck-timer-ctl .ck-play { padding: 0 14px; font-size: 15px; } .tool .fd-callrow .ck-mini { padding: 0 9px; font-size: 13px; white-space: nowrap; } }
/* Round 3 */
.tool .fd-frame:not(.is-live) { background: var(--surface); box-shadow: none; }
.tool .fd-oval { width: 58%; height: 64%; }
@media (min-width: 600px) { .tool .fd-oval { width: 34%; height: 72%; } }
.tool .fd-eyeline::after { right: 50%; transform: translateX(50%); top: -28px; padding: 2px 10px; border-radius: 10px; background: rgb(0 0 0 / .45); text-shadow: none; }
.tool .fd-mic { display: flex; align-items: center; gap: 10px; }
.tool .fd-mic-label { font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--ink) / .5); }
.tool .fd-mic-bar { flex: 1; height: 8px; border-radius: 4px; background: rgb(var(--ink) / .1); overflow: hidden; }
.tool .fd-mic-fill { display: block; height: 100%; background: #2FB673; transform-origin: left; transform: scaleX(0); }
.tool .fd-mic-tip { font-size: 13px; font-weight: 750; color: rgb(var(--ink) / .65); min-width: 110px; text-align: right; }
.tool .fd-one { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px rgb(var(--accent) / .4); }
.tool .fd-one > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tool .fd-one b { font-size: 15px; font-weight: 900; }
.tool .fd-one span { font-size: 14px; line-height: 20px; font-weight: 600; color: rgb(var(--ink) / .65); }
.tool .fd-phones { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px 12px; }
.tool .fd-phones .fd-phonetip { grid-column: 1 / -1; }
.tool .fd-go { width: 64px; min-height: 44px; padding: 0 10px; text-align: center; }
.tool .fd-flags { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 14px 32px; list-style: disc; }
.tool .fd-flags li { font-size: 14px; line-height: 20px; font-weight: 600; }
@media (max-width: 599px) { .tool .fd-phones { grid-template-columns: 1fr; } .tool .fd-one { flex-direction: column; align-items: stretch; } }
/* Round 4 */
.tool .fd-should summary { font-weight: 850; }
.tool .fd-mirror { flex-wrap: nowrap; }
.tool .fd-mirror button { min-height: 36px; font-size: 13px; }
.tool .fd-camtools { flex-wrap: wrap; }
.tool .ck-mini.is-suggest { color: var(--link); box-shadow: inset 0 0 0 2px rgb(var(--accent) / .6); }
.tool .fd-onebtns { display: flex; gap: 6px; flex-wrap: wrap; }
.tool .fd-numwrap { display: inline-flex; align-items: center; }
.tool button.fd-num { background: transparent; padding: 0 4px; border-radius: 8px; }
.tool button.fd-num:focus-visible { outline: 2px solid rgb(var(--accent)); }
.tool .fd-go { width: 72px; min-height: 36px; }
.tool .fd-callside .tool-chips { flex-wrap: nowrap; }
.tool .fd-callside .tool-chips button { flex: 1 1 0; padding: 0 6px; white-space: nowrap; }
.tool .fd-callside { flex-wrap: nowrap; }
.tool .fd-ttrow { display: flex; align-items: center; gap: 8px; }
.tool .fd-ttrow .fd-cd { flex: 0 0 auto; width: auto; height: 48px; min-width: 120px; font-variant-numeric: tabular-nums; }
.tool .fd-matches { margin-left: auto; font-size: 15px; font-weight: 850; color: var(--link); }
@media (max-width: 599px) { .tool .fd-callside { flex-direction: column; align-items: stretch; gap: 8px; } }
.tool .fd-onemore .fd-one { margin: 0 12px 12px; box-shadow: none; background: var(--surface-2); flex-direction: column; align-items: stretch; }
.tool .fd-onemore summary { color: var(--link); }
.tool .fd-num { font-size: 18px; line-height: 24px; }
