/* First date prep checklist. Tokens only (dark mode via tools.css). */
.tool.fdc { gap: 12px; }

/* Date ticket */
.tool .fdc-ticket { position: relative; padding: 20px; border-radius: 28px; background: rgb(var(--ink)); color: var(--bg); box-shadow: var(--shadow); overflow: hidden; }
.tool .fdc-ticket::after { content: ''; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--accent) / .55), transparent); pointer-events: none; }
.tool .fdc-t-top { display: flex; gap: 16px; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.tool .fdc-t-text { min-width: 0; }
.tool .fdc-ticket p { color: inherit; }
.tool .fdc-t-kicker { font-size: 12px; line-height: 16px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.tool .fdc-t-title { font-size: 24px; line-height: 30px; font-weight: 950; letter-spacing: -.02em; margin-top: 2px; overflow-wrap: anywhere; }
.tool .fdc-t-when { font-size: 15px; line-height: 22px; font-weight: 700; opacity: .8; overflow-wrap: anywhere; }
.tool .fdc-ticket .fdk-ring-bg { stroke: currentColor; opacity: .18; }
.tool .fdc-ticket .fdk-ring-label { color: inherit; }
.tool .fdc-ticket .fdk-ring.is-done .fdk-ring-fg { stroke: #3DDC97; }
.tool .fdc-t-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed currentColor; border-top-color: rgb(127 127 127 / .5); }
.tool .fdc-t-left { font-size: 15px; line-height: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.tool .fdc-t-len { font-size: 14px; line-height: 20px; font-weight: 700; opacity: .7; flex: 1 1 auto; }
.tool .fdc-edit { margin-left: auto; min-height: 36px; padding: 0 16px; border-radius: 18px; font-size: 14px; font-weight: 850; color: inherit; background: rgb(127 127 127 / .22); transition: transform .16s ease-out, background-color .2s ease; }
.tool .fdc-edit:active { transform: scale(.96); }
.tool .fdc-edit:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }

.tool .fdc-editor { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.tool .fdc-field { display: flex; flex-direction: column; gap: 6px; }

/* Phases */
.tool .fdc-phases { display: flex; flex-direction: column; gap: 8px; }
.tool .fdc-phase { border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .06); overflow: hidden; }
.tool .fdc-phase.is-now { box-shadow: inset 0 0 0 2px rgb(var(--accent) / .55), var(--shadow); }
.tool .fdc-head { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 20px; text-align: left; background: none; color: rgb(var(--ink)); -webkit-tap-highlight-color: transparent; }
.tool .fdc-head:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: -4px; border-radius: 24px; }
.tool .fdc-ph { font-size: 17px; font-weight: 900; }
.tool .fdc-now { font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; background: rgb(var(--accent)); color: #fff; }
.tool .fdc-count { margin-left: auto; font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .5); font-variant-numeric: tabular-nums; }
.tool .fdc-phase.is-complete .fdc-count { color: #1F9D63; }
.tool .fdc-chev { display: grid; place-items: center; width: 24px; height: 24px; color: rgb(var(--ink) / .4); transition: transform .25s var(--ease-out); }
.tool .fdc-chev .tool-icon { width: 20px; height: 20px; }
.tool .fdc-head[aria-expanded="true"] .fdc-chev { transform: rotate(90deg); }
.tool .fdc-items { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.tool .fdc-item { border-radius: 18px; padding: 2px; }
.tool .fdc-row { position: relative; }
.tool .fdc-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tool .fdc-row label { display: flex; gap: 12px; align-items: flex-start; padding: 8px; border-radius: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease; }
@media (hover: hover) and (pointer: fine) { .tool .fdc-row label:hover { background: rgb(var(--accent) / .06); } }
.tool .fdc-row input:focus-visible + label { box-shadow: inset 0 0 0 2px rgb(var(--accent)); }
.tool .fdc-box { flex: none; width: 26px; height: 26px; border-radius: 9px; margin-top: -1px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgb(var(--ink) / .22); color: #fff; transition: background-color .18s ease, box-shadow .18s ease, transform .16s ease-out; }
.tool .fdc-box .tool-icon { width: 18px; height: 18px; stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .25s var(--ease-out); }
.tool .fdc-row label:active .fdc-box { transform: scale(.9); }
.tool .fdc-row input:checked + label .fdc-box { background: rgb(var(--accent)); box-shadow: none; }
.tool .fdc-row input:checked + label .fdc-box .tool-icon { stroke-dashoffset: 0; }
.tool .fdc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool .fdc-txt b { font-size: 16px; line-height: 24px; font-weight: 800; color: rgb(var(--ink)); transition: color .2s ease; }
.tool .fdc-txt small { font-size: 14px; line-height: 20px; font-weight: 600; color: rgb(var(--ink) / .58); }
.tool .fdc-item.is-done .fdc-txt b { color: rgb(var(--ink) / .5); text-decoration: line-through; text-decoration-color: rgb(var(--ink) / .3); }

/* Widgets inside items */
.tool .fdc-widget { margin: 2px 4px 10px 46px; display: flex; flex-direction: column; gap: 10px; }
.tool .fdc-wnote, .tool .fdc-verdict { font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .6); }
.tool .fdc-verdict { color: rgb(var(--ink) / .85); font-weight: 750; }
.tool .fdc-qs { display: flex; flex-direction: column; gap: 6px; }
.tool .fdc-qs li { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; border-radius: 16px; background: var(--surface-2); font-size: 15px; line-height: 21px; font-weight: 700; }
.tool .fdc-qs li > span:nth-child(2) { flex: 1; min-width: 0; }
.tool .fdc-qs li.is-new { animation: card-in .35s var(--ease-out) both; }
.tool .fdc-qn { flex: none; width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: rgb(var(--accent) / .18); color: var(--link); }
.tool .fdc-swap { flex: none; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; color: rgb(var(--ink) / .55); background: none; transition: transform .16s ease-out, color .15s ease; }
.tool .fdc-swap:active { transform: scale(.9) rotate(-20deg); }
.tool .fdc-swap .tool-icon { width: 20px; height: 20px; }
.tool .fdc-swap:focus-visible, .tool .fdc-mini:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 1px; }
.tool .fdc-mini { align-self: flex-start; min-height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; font-weight: 800; color: var(--link); background: rgb(var(--accent) / .1); transition: transform .16s ease-out; }
.tool .fdc-mini:active { transform: scale(.96); }
.tool .fdc-exits { flex-direction: column; align-items: stretch; }
.tool .fdc-exits button { height: auto; min-height: 44px; padding: 10px 14px; border-radius: 16px; text-align: left; font-size: 14px; line-height: 20px; }
.tool .fdc-widget .fdk-sheet { box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08); padding: 12px; }

/* Breathing orb */
.tool .fdc-breathe { flex-direction: row; align-items: center; gap: 16px; }
.tool .fdc-orb-wrap { flex: none; width: 88px; height: 88px; display: grid; place-items: center; }
.tool .fdc-orb { width: 60px; height: 60px; border-radius: 50%; background: var(--ramp); box-shadow: 0 0 0 10px rgb(var(--accent) / .12); transform: scale(.62); transition-property: transform; transition-timing-function: cubic-bezier(.45, 0, .55, 1); }
.tool .fdc-breath-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tool .fdc-say { font-size: 16px; line-height: 22px; font-weight: 800; color: rgb(var(--ink)); }
.tool .fdc-breath-left { font-size: 13px; font-weight: 700; color: rgb(var(--ink) / .5); font-variant-numeric: tabular-nums; min-height: 18px; }
.tool .fdc-breathe .tool-actions { flex-direction: row; }
.tool .fdc-breathe .tool-actions .btn { width: auto; }

.tool .fdc-alldone { padding: 14px 16px; border-radius: 18px; background: rgb(31 157 99 / .12); color: rgb(var(--ink)); font-weight: 800; text-align: center; }
.tool .fdc-foot { display: flex; justify-content: center; }
.tool .fdc-foot .fdc-mini { align-self: center; }

@media (max-width: 599px) {
  .tool .fdc-widget { margin-left: 4px; }
  .tool .fdc-t-title { font-size: 22px; line-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool .fdc-orb { transition: none; }
  .tool .fdc-qs li.is-new { animation: none; }
  .tool .fdc-box .tool-icon, .tool .fdc-chev { transition: none; }
}
/* Round 2: type row, calm panel, folded widgets, dark ticket */
.tool .fdc-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; overscroll-behavior-x: contain; }
.tool .fdc-types::-webkit-scrollbar { display: none; }
.tool .fdc-types button { flex: none; }
.tool .fdc-t-btns { margin-left: auto; display: flex; gap: 6px; }
.tool .fdc-t-btns .fdc-edit { margin-left: 0; }
.tool .fdc-calm { padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.tool .fdc-calm .fdc-widget { margin: 0; }
.tool .fdc-wwrap { margin: -2px 4px 6px 46px; }
.tool .fdc-wtoggle { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px 0 14px; border-radius: 18px; font-size: 14px; font-weight: 800; color: var(--link); background: rgb(var(--accent) / .1); transition: transform .16s ease-out; }
.tool .fdc-wtoggle:active { transform: scale(.96); }
.tool .fdc-wtoggle .fdc-chev { width: 18px; height: 18px; color: inherit; }
.tool .fdc-wtoggle[aria-expanded="true"] .fdc-chev { transform: rotate(90deg); }
.tool .fdc-wtoggle:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.tool .fdc-wbody { padding-top: 10px; }
.tool .fdc-wbody .fdc-widget { margin: 0; }
.tool .fdc-tips { display: flex; flex-direction: column; gap: 6px; }
.tool .fdc-tips li { padding: 8px 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; line-height: 20px; font-weight: 700; }
.tool .fdc-good { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 599px) { .tool .fdc-wwrap { margin-left: 4px; } }
@media (prefers-color-scheme: dark) {
  .tool .fdc-ticket { background: var(--surface-2); color: rgb(var(--ink)); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .1), var(--shadow); }
}
/* Round 3: all date types visible, context chips, quick help row, past phases */
.tool .fdc-types { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.tool .fdc-types button { min-height: 38px; padding: 0 14px; }
.tool .fdc-ctx { gap: 6px; }
.tool .fdc-ctx button { min-height: 34px; font-size: 13px; padding: 0 12px; background: transparent; box-shadow: inset 0 0 0 1px rgb(var(--ink) / .14); }
.tool .fdc-quickrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tool .fdc-quick { min-height: 48px; padding: 6px 8px; border-radius: 18px; font-size: 14px; line-height: 18px; font-weight: 850; color: var(--link); background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--accent) / .25); transition: transform .16s ease-out, background-color .2s ease, color .2s ease; }
.tool .fdc-quick:active { transform: scale(.96); }
.tool .fdc-quick[aria-expanded="true"] { background: rgb(var(--accent)); color: #fff; box-shadow: none; }
.tool .fdc-quick:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.tool .fdc-sheet-h { font-size: 13px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; color: rgb(var(--ink) / .5); }
.tool .fdc-calm .fdc-widget .fdc-widget { margin: 0; }
.tool .fdc-phase.is-past:not(.is-complete) .fdc-ph { color: rgb(var(--ink) / .45); }
.tool .fdc-phase.is-past .fdc-count { opacity: .5; }
.tool .fdc-quick { font-size: 14px; line-height: 18px; white-space: nowrap; }
.tool .fdc-unsafe { padding: 10px 12px; border-radius: 14px; background: rgb(217 58 58 / .08); color: rgb(var(--ink) / .8); }
.tool .fdc-morewrap { padding: 6px 4px; }
/* Round 6: day and time in the first view, context chips visible, phase ring, sub-groups, quiet done state, full-width breathing, copy lines */
.tool .fdc-whenrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool .fdc-days { flex-wrap: nowrap; gap: 6px; }
.tool .fdc-days button { min-height: 44px; padding: 0 14px; }
.tool .fdc-timewrap { flex: 1 1 110px; min-width: 110px; }
.tool input.fdc-timein { min-height: 44px; padding: 8px 12px; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tool .fdc-ctxrow { display: flex; flex-direction: column; gap: 6px; }
.tool .fdc-ctxlabel { font-size: 13px; line-height: 18px; font-weight: 800; color: rgb(var(--ink) / .6); }
.tool .fdc-ctx button { min-height: 44px; }
.tool .fdc-ctxrow .fdc-wnote:empty { display: none; }
.tool .fdc-ringwrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.tool .fdc-ringcap { font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .7; max-width: 84px; text-align: center; }
.tool .fdc-sub { margin-top: 6px; padding: 6px 4px 0; font-size: 12px; line-height: 16px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--ink) / .5); background: none; box-shadow: none; }
.tool .fdc-sub:first-child { margin-top: 0; padding-top: 0; }
.tool .fdc-item.is-done .fdc-txt b { text-decoration: none; color: rgb(var(--ink) / .45); }
.tool .fdc-item.is-done .fdc-txt small { display: none; }
.tool .fdc-more { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border-radius: 14px; font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .6); background: transparent; box-shadow: inset 0 0 0 1px rgb(var(--ink) / .1); }
.tool .fdc-more .fdc-chev { transform: rotate(90deg); }
.tool .fdc-more .tool-icon { width: 16px; height: 16px; }
.tool .fdc-breathe { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 20px 16px; }
.tool .fdc-breathe .fdc-orb-wrap { width: 180px; height: 180px; }
.tool .fdc-breathe .fdc-orb { width: 140px; height: 140px; box-shadow: 0 0 0 18px rgb(var(--accent) / .12); }
.tool .fdc-breathe .fdc-breath-text { align-items: center; }
.tool .fdc-breathe .fdc-say { font-size: 22px; line-height: 30px; font-weight: 900; text-wrap: balance; max-width: 22ch; }
.tool .fdc-breathe .fdc-breath-left { font-size: 15px; }
.tool .fdc-breathe .fdc-breath-go { width: 100%; max-width: 360px; min-height: 52px; }
.tool .fdc-lines { display: flex; flex-direction: column; gap: 6px; }
.tool .fdc-copyline { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border-radius: 14px; text-align: left; font-size: 15px; line-height: 21px; font-weight: 650; color: rgb(var(--ink) / .9); background: var(--surface-2); transition: transform .16s ease-out, background-color .2s ease; }
.tool .fdc-copyline:active { transform: scale(.98); }
.tool .fdc-copyline:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.tool .fdc-copyline > span:first-child { flex: 1; }
.tool .fdc-copytag { flex: none; font-size: 12px; font-weight: 850; color: var(--link); }
.tool .fdc-copyline.is-copied .fdc-copytag { color: #1F9D63; }
.tool .fdc-drafts { display: flex; flex-direction: column; gap: 8px; }
.tool .fdc-drafts:empty { display: none; }
.tool a.fdc-gamebtn { align-self: flex-start; min-height: 48px; }
@media (prefers-color-scheme: dark) { .tool .fdc-copyline.is-copied .fdc-copytag { color: #3DDC97; } }
.tool .fdc-quickrow { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
