/* Dating Rules Calculator (dating-rules.js). Tokens only. */
.tool .dr-memo { padding: 12px 16px; border-radius: 18px; background: rgb(var(--accent) / .1); font-size: 15px; line-height: 21px; font-weight: 700; }
.tool .dr-in { display: grid; gap: 12px; }
.tool .dr-example { display: inline-block; margin-left: 8px; white-space: nowrap; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 850; background: rgb(var(--u7-mid) / .18); color: rgb(var(--ink) / .75); vertical-align: 1px; }
.tool .dr-hero { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.tool .dr-day { font-size: 48px; line-height: 52px; font-weight: 950; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: rgb(var(--ink)); }
.tool .dr-day-sub { font-size: 16px; line-height: 22px; font-weight: 700; color: rgb(var(--ink) / .6); }
.tool .dr-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tool a.dr-chip { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); text-decoration: none; color: rgb(var(--ink)); transition: transform .2s var(--ease-out), background-color .15s ease; }
.tool a.dr-chip:active { transform: scale(.97); }
@media (hover: hover) { .tool a.dr-chip:hover { background: rgb(var(--accent) / .16); } }
.tool .dr-chip b { font-size: 13px; line-height: 18px; font-weight: 850; color: var(--link); }
.tool .dr-chip span { font-size: 15px; line-height: 20px; font-weight: 800; }
.tool .dr-tl, .tool .dr-rules { display: flex; flex-direction: column; gap: 10px; }
.tool .dr-line { display: grid; }
.tool .dr-line li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; }
.tool .dr-line li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 40px; bottom: -12px; width: 2px; background: rgb(var(--ink) / .12); }
.tool .dr-line li.is-past:not(:last-child)::after { background: rgb(var(--accent) / .45); }
.tool .dr-dot { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 2px rgb(var(--ink) / .15); }
.tool .dr-dot .tool-icon { width: 16px; height: 16px; stroke-width: 3; }
.tool .is-past .dr-dot { background: rgb(var(--accent)); color: #fff; box-shadow: none; }
.tool .is-next .dr-dot { box-shadow: inset 0 0 0 2px rgb(var(--accent)), 0 0 0 4px rgb(var(--accent) / .18); }
.tool .is-today .dr-dot { background: rgb(var(--ink)); box-shadow: 0 0 0 4px rgb(var(--ink) / .15); }
.tool .is-today .dr-dot::after { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--bg); }
.tool .dr-li-t { flex: 1; display: flex; flex-direction: column; font-size: 16px; line-height: 21px; }
.tool .dr-li-t b { font-weight: 850; }
.tool .dr-li-t small, .tool .dr-li-d small { font-size: 13px; line-height: 18px; font-weight: 650; color: rgb(var(--ink) / .5); }
.tool .dr-li-d { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 15px; line-height: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tool .is-past .dr-li-t, .tool .is-past .dr-li-d { opacity: .6; }
.tool .is-today .dr-li-t b { color: rgb(var(--ink)); font-weight: 950; }
.tool .dr-cards { display: grid; gap: 8px; }
.tool .dr-card { border-radius: 20px; background: var(--surface); scroll-margin-top: 96px; }
.tool .dr-card summary { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px 10px 16px; cursor: pointer; list-style: none; border-radius: 20px; }
.tool .dr-card summary::-webkit-details-marker { display: none; }
.tool .dr-card summary .tool-icon { flex: none; width: 20px; height: 20px; opacity: .45; transition: transform .2s var(--ease-out); }
.tool .dr-card[open] summary .tool-icon { transform: rotate(90deg); }
.tool .dr-card-name { flex: none; font-size: 17px; font-weight: 900; color: rgb(var(--ink)); }
.tool .dr-card-where { flex: 1; text-align: right; font-size: 14px; line-height: 19px; font-weight: 750; color: var(--link); }
.tool .dr-card-body { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px; }
.tool .dr-card-body > p { font-size: 16px; line-height: 24px; font-weight: 600; color: rgb(var(--ink) / .82); }
.tool .dr-card-body > p.dr-note { font-size: 14px; line-height: 20px; font-weight: 700; color: rgb(var(--ink) / .55); padding-left: 12px; border-left: 3px solid rgb(var(--u7-mid) / .6); }
.tool .dr-qs { display: flex; flex-direction: column; gap: 8px; }
.tool .dr-qs-t { font-size: 13px; line-height: 18px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--ink) / .5); }
.tool .dr-qs .u7-say { background: var(--surface-2); box-shadow: none; }
.tool .dr-extra { display: flex; flex-direction: column; gap: 10px; }
.tool .dr-rhythm { display: grid; gap: 6px; }
.tool .dr-rhythm li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: 15px; line-height: 20px; font-weight: 650; }
.tool .dr-rhythm b { font-weight: 850; text-align: right; }
.tool .dr-idea { padding: 10px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08); font-size: 15px; line-height: 21px; font-weight: 700; }
.tool .dr-last input { background: var(--surface-2); }
@media (min-width: 600px) { .tool .dr-in { align-items: start; } .tool .dr-sum { grid-template-columns: repeat(4, 1fr); } .tool .dr-line { max-width: 560px; } }
@media (max-width: 599px) { .tool .dr-day { font-size: 44px; line-height: 48px; } }

.tool .dr-banner { padding: 12px 16px; border-radius: 18px; background: rgb(var(--u7-mid) / .16); font-size: 15px; line-height: 21px; font-weight: 650; color: rgb(var(--ink) / .85); }
.tool .dr-banner b { font-weight: 900; }
.tool .dr-in { grid-template-columns: 1fr 1fr; }
.tool .dr-in > * { min-width: 0; }
.tool .dr-in .u7-step, .tool .dr-far { grid-column: 1 / -1; }
.tool .dr-in input[type="date"] { min-width: 0; }
.tool .dr-far .tool-chips button { flex: 1; }
.tool .dr-hero.is-example .dr-day, .tool .dr-hero.is-example .dr-day-sub { opacity: .5; }
.tool .dr-hook { padding: 12px 14px; border-radius: 14px; background: rgb(var(--accent) / .1); font-size: 15px; line-height: 21px; font-weight: 700; }
.tool .dr-qs .u7-say.is-compact { background: var(--surface-2); box-shadow: none; }
@media (min-width: 600px) { .tool .dr-in .u7-step, .tool .dr-far { grid-column: auto; } }
.tool .dr-hero > .tool-chips button { flex: 1; background: var(--surface-2); box-shadow: none; }
.tool .dr-hero > .tool-chips button[aria-pressed="true"] { background: rgb(var(--ink)); }
.tool .dr-start { margin-top: 4px; }
.tool .dr-start input { background: var(--surface-2); box-shadow: none; }
.tool .dr-daywrap { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.tool .dr-ex { padding: 2px 10px; border-radius: 10px; font-size: 13px; font-weight: 850; background: rgb(var(--u7-mid) / .18); color: rgb(var(--ink) / .8); }
.tool .dr-chip { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); color: rgb(var(--ink)); }
.tool span.dr-chip b { font-size: 13px; line-height: 18px; font-weight: 850; color: var(--link); }
.tool span.dr-chip span { font-size: 15px; line-height: 20px; font-weight: 800; }
.tool .dr-hook-slot { font-size: 15px; line-height: 21px; font-weight: 700; color: rgb(var(--ink) / .8); }
.tool .dr-hook-slot:empty { display: none; }
.tool .dr-normal { font-size: 15px; line-height: 21px; font-weight: 750; color: rgb(var(--u7-good)); }
.tool .dr-far { display: flex; flex-direction: column; gap: 6px; }
.tool .dr-in .u7-step { grid-column: 1 / -1; }
@media (min-width: 600px) { .tool .dr-in .u7-step { grid-column: 1 / -1; } }
@media (max-width: 599px) { .tool .dr-in { grid-template-columns: 1fr; } }
.tool .dr-card-name { flex: 0 1 auto; }
.tool .dr-card-where { min-width: 8em; }
.tool .dr-chip strong { font-size: 20px; line-height: 26px; font-weight: 950; letter-spacing: -.01em; color: rgb(var(--ink)); }
.tool a.dr-chip span, .tool span.dr-chip span { font-size: 13px; line-height: 17px; font-weight: 700; color: rgb(var(--ink) / .6); }
.tool .dr-sum.is-3 { grid-template-columns: repeat(3, 1fr); }
.tool .dr-honest { font-size: 13px; line-height: 18px; font-weight: 700; color: rgb(var(--ink) / .5); }
.tool .dr-normal { color: rgb(var(--ink)); font-weight: 850; }
.tool .dr-hook-slot { padding: 10px 12px; border-radius: 14px; background: rgb(var(--u7-mid) / .14); }
.tool .dr-hero > .tool-chips button { min-height: 40px; }
.tool .dr-far .tool-chips button { min-height: 40px; }
.tool .dr-chip b i { display: block; font-style: normal; font-size: 11px; line-height: 15px; font-weight: 700; color: rgb(var(--ink) / .5); letter-spacing: 0; }
.tool .dr-far .tool-chips { flex-wrap: nowrap; }
.tool .dr-far .tool-chips button { flex: 1 1 0; }
.tool .dr-honest a { color: var(--link); font-weight: 850; }
.tool .dr-line li.dr-more { min-height: 44px; padding-left: 40px; }
.tool .dr-line li.dr-more::after { display: none; }
.tool .dr-more button { min-height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; font-weight: 850; background: var(--surface-2); color: var(--link); }
.tool .dr-line li[hidden] { display: none; }
@media (min-width: 600px) { .tool .dr-line { max-width: none; } }
.tool .dr-hero .dr-far { align-self: stretch; }
