/* Sleep time / kitchen measures / goal timeline calculators (phone first) */
.ct-card { padding: 18px; }
.ct-note { margin-top: 18px; }
.ct-note h2 { font-size: 1.15rem; }
.ct-row { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 10px; }
.ct-cap { display: block; color: var(--muted); font-size: .86rem; margin-bottom: 4px; }
.ct-fld { display: block; margin-bottom: 10px; }
.ct-row .ct-fld { margin-bottom: 0; }
.ct-fld select, .ct-fld input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.ct-fld select:focus, .ct-fld input:focus { outline: 3px solid var(--brand-100); border-color: var(--brand-600); }
.ct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ct-tab { min-height: 52px; padding: 8px 10px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.3; cursor: pointer; }
.ct-tab[aria-pressed="true"] { border-color: var(--brand-600); background: var(--brand-50); }
.ct-tile { position: relative; display: block; padding: 12px 14px; min-height: 84px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.ct-tile:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.ct-val { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.ct-tile input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; border: 0; padding: 0; cursor: pointer; font-size: 16px; }
.ct-now { margin: 4px 0 6px; }
.ct-h { font-size: 1.05rem; margin: 20px 0 10px; line-height: 1.4; }
.ct-opts { display: grid; gap: 10px; }
.ct-opt { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); border-left: 6px solid var(--line); }
.ct-opt.is-best { border-left-color: var(--brand-600); background: var(--brand-50); }
.ct-opt:not(.is-best):not(.is-low) { border-left-color: var(--leaf); }
.ct-opt.is-low { border-left-color: var(--gold); }
.ct-opt-t small { display: block; color: var(--muted); font-size: .84rem; }
.ct-opt-t strong { font-size: 1.6rem; line-height: 1.3; }
.ct-opt-m b { display: block; }
.ct-opt-m span { color: var(--muted); font-size: .88rem; }
.ct-small { color: var(--muted); font-size: .88rem; margin: 12px 2px 0; }
.ct-links { display: grid; gap: 8px; margin-top: 16px; }
.ct-links .btn { min-height: 48px; }
.ct-pre { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ct-pre .fx-chip { min-height: 44px; }
.ct-units { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ct-unit { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-weight: 700; cursor: pointer; }
.ct-unit[aria-pressed="true"] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.ct-res { padding: 18px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; margin-top: 14px; }
.ct-res small { display: block; color: rgba(255,255,255,.78); font-size: .9rem; }
.ct-res strong { display: block; font-size: 2rem; line-height: 1.3; color: var(--gold); margin: 2px 0; }
.ct-res span { color: rgba(255,255,255,.9); }
.ct-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ct-mini { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); line-height: 1.5; }
.ct-mini small { display: block; color: var(--muted); font-size: .82rem; }
.ct-mini b { display: block; font-size: 1.02rem; }
.ct-mini span { color: var(--muted); font-size: .86rem; }
.ct-warn { margin-top: 14px; padding: 16px; border-radius: var(--radius-sm); border: 2px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.ct-warn strong { display: block; color: var(--danger); margin-bottom: 4px; }
.ct-warn p { margin: 0; }
.ct-notes { margin: 14px 0 0; padding-left: 1.2em; color: var(--text-2); }
.ct-notes li { margin-bottom: 6px; }
.ct-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ct-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ct-table th, .ct-table td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ct-table thead th { color: var(--muted); font-size: .84rem; font-weight: 700; }
.ct-table thead th small { display: block; font-weight: 400; }
.ct-table tbody th { font-weight: 700; white-space: nowrap; }
@media (min-width: 720px) {
  .ct-card { padding: 26px; }
  .ct-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ct-opts { grid-template-columns: repeat(3, 1fr); }
  .ct-opt { align-content: start; }
  .ct-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
