/* steeps screens (webApp/.../web/steeps/): Steeps (home), the Sessions journal, history, session detail, onboarding.
   Uses the tokens and components in app.css. */

/* Sessions journal */
.sessions-days { gap: 4px; }
.sessions-day .section-title { margin-top: 18px; }
.session-row { align-items: flex-start; }
.session-time { min-width: 46px; padding-top: 2px; font-size: 13px; color: var(--ink-3); }
.session-steep { align-self: center; text-align: right; min-width: 52px; }
.session-steep .num { font-size: 22px; color: var(--primary); }
.session-recipe { display: flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; }
.session-recipe svg { width: 15px; height: 15px; }
.session-chips { gap: 6px; margin-top: 2px; }

/* Steeps */
/* A zero-minimum grid track, so the scrolling chip row can't widen the page on a phone. */
.steeps-filter { margin: -6px 0 14px; display: grid; grid-template-columns: minmax(0, 1fr); }
.steeps-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
/* Grid and flex children default to their content's width; let long names wrap instead. */
.steep-card, .steep-card > *, .steep-open > .grow, .sessions-day, .history-open > .grow { min-width: 0; }
.steep-open .title, .steep-open .sub { overflow-wrap: anywhere; }
@media (min-width: 1100px) { .steeps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steep-card { display: grid; gap: 12px; align-content: start; }
.steep-tea { align-items: flex-start; }
.steep-name { border: 0; background: none; padding: 0; font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 24px; line-height: 1.05; text-transform: uppercase; text-align: left; cursor: pointer; color: var(--ink); }
.steep-name:hover { color: var(--primary); }
.tea-badge { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-wash); color: var(--primary); font-family: var(--display); font-weight: 800; font-size: 18px; }
.steep-featured { display: grid; gap: 10px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card-2); }
.steep-featured:hover { border-color: var(--primary); }
.steep-open { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.steep-open .title { font-weight: 800; }
.steep-open .sub { color: var(--ink-3); font-size: 13px; }
.steep-tried { color: var(--accent) !important; font-weight: 600; }
.steep-number { display: grid; justify-items: end; text-align: right; }
.steep-number .big-num { font-size: 40px; }
.steep-number .unit { margin: 2px 0 0; }
.steep-others { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.steep-others > .item { padding: 10px 14px; }
.steep-others .num { color: var(--primary); }
.steep-pin svg { width: 16px; height: 16px; color: var(--pin); }
.steep-empty { display: grid; gap: 10px; justify-items: start; }

/* History */
.history-hero, .detail-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.history-setting { align-items: baseline; gap: 2px; margin: 4px 0; }
.history-setting .big-num { font-size: 48px; }
.trend-card { display: grid; gap: 10px; }
.trend-metrics { gap: 6px; }
.choice.small { padding: 4px 10px; font-size: 13px; }
.trend-chart { min-height: 210px; }
.trend-chart svg { display: block; max-width: 100%; overflow: visible; }
.trend-chart .grid { stroke: var(--line); stroke-width: 1; }
.trend-chart .axis { fill: var(--ink-3); font: 500 11px var(--mono); }
/* The setting line in ink, so the taste dots (weak is clay) read clearly on it. */
.trend-chart .setting { fill: none; stroke: var(--ink-2); stroke-width: 2.5; stroke-linejoin: round; }
.trend-chart .metric { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .8; }
.trend-chart .dot { stroke: var(--card); stroke-width: 2; }
.trend-chart .dot.balanced { fill: var(--primary); }
.trend-chart .dot.weak { fill: var(--accent); }
.trend-chart .dot.bitter { fill: var(--ink-2); }
.trend-chart .dot.none { fill: var(--ink-3); }
.trend-chart .pinned { fill: none; stroke: var(--pin); stroke-width: 2; }
.trend-empty { padding: 18px 0; }
.trend-legend { gap: 12px; color: var(--ink-3); }
.legend { gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.legend-setting { width: 16px; height: 3px; border-radius: 2px; background: var(--ink-2); }
.legend-metric { width: 16px; height: 0; border-top: 2px dashed var(--ink-3); border-radius: 0; }
.dot-balanced { background: var(--primary); }
.dot-weak { background: var(--accent); }
.dot-bitter { background: var(--ink-2); }
.dot-pinned { background: none; border: 2px solid var(--pin); }
.history-row { align-items: flex-start; cursor: default; }
.history-row:hover { background: none; }
.history-open { display: flex; gap: 12px; flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; }
.history-open:hover .num { text-decoration: underline; }
.history-num { min-width: 56px; }
.history-num .num { font-size: 24px; color: var(--primary); }
.history-note { color: var(--ink-2); font-size: 17px; }
.history-actions { display: flex; gap: 6px; }
.icon-btn.pinned { background: var(--pin-wash); color: var(--pin); border-color: transparent; }

/* Session detail */
.detail-actions { margin: -6px 0 14px; gap: 8px; }
.detail-numbers { margin-bottom: 14px; }
.detail-value { font-size: 22px; }
.detail-recipe { gap: 12px; margin-bottom: 14px; }
.detail-recipe svg { width: 22px; height: 22px; color: var(--primary); }
.detail-recipe a { font-weight: 700; text-decoration: none; }
.detail-notes { margin: 0; font-size: 17px; }
.detail-fixes { margin-top: 14px; }
.detail-fixes:empty { display: none; }

/* Onboarding */
.onboarding-hero { margin-bottom: 14px; }
.onboarding-hero p { margin: 6px 0 0; font-size: 17px; }
.onboarding-kicker { font-size: 26px; }
.onboarding-steps { margin-bottom: 14px; }
.onboarding-step { gap: 14px; }
.onboarding-step.done { opacity: .75; }
.step-num { flex: none; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--primary-wash); color: var(--primary); font-family: var(--mono); font-weight: 700; }
.onboarding-step.done .step-num { background: var(--pin-wash); color: var(--pin); }
.step-num svg { width: 18px; height: 18px; }
.onboarding-sync svg { width: 24px; height: 24px; color: var(--primary); }

.steep-actions { gap: 8px; }
.steep-age { margin-top: 4px; }
.session-steep .unit { display: block; margin: 0; font-size: 10px; }
.session-steep { display: grid; justify-items: end; }

/* Steep chips: the run of steeps in a session or a plan. */
.steep-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.steep-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 700 13px var(--mono); color: var(--ink-2); }
.steep-chip-n { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--primary-wash); color: var(--primary); font-size: 11px; }
.steep-chip.rinse { padding: 4px 10px; background: var(--accent-wash); color: var(--accent); border-color: transparent; font-family: inherit; }
.steep-chip.current { border-color: var(--primary); background: var(--primary-wash); color: var(--ink); }
.steep-chip.current .steep-chip-n { background: var(--primary); color: var(--on-primary); }
.steep-chip.done { opacity: .7; }
.steep-chip.done .steep-chip-n { background: var(--pin-wash); color: var(--pin); }
