/* brews screens (webApp/.../web/brews/): Brews journal, Dial-ins, history, brew detail, onboarding.
   Uses the tokens and components in app.css. */

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

/* Dial-ins */
/* A zero-minimum grid track, so the scrolling chip row can't widen the page on a phone. */
.dialins-filter { margin: -6px 0 14px; display: grid; grid-template-columns: minmax(0, 1fr); }
.dialins-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. */
.dialin-card, .dialin-card > *, .dialin-featured > .grow, .brews-day, .history-open > .grow { min-width: 0; }
.dialin-featured .title, .dialin-featured .sub { overflow-wrap: anywhere; }
@media (min-width: 1100px) { .dialins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dialin-card { display: grid; gap: 12px; align-content: start; }
.dialin-coffee { align-items: flex-start; }
.dialin-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); }
.dialin-name:hover { color: var(--caramel-text); }
.coffee-badge { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--caramel-wash); color: var(--caramel-text); font-family: var(--display); font-weight: 800; font-size: 18px; }
.dialin-featured { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; }
.dialin-featured:hover { border-color: var(--caramel); }
.dialin-featured .title { font-weight: 800; }
.dialin-featured .sub { color: var(--ink-3); font-size: 13px; }
.dialin-tried { color: var(--terracotta) !important; font-weight: 600; }
.dialin-setting { display: grid; justify-items: end; text-align: right; }
.dialin-setting .big-num { font-size: 40px; }
.dialin-setting .unit { margin: 2px 0 0; }
.dialin-others { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.dialin-others > .item { padding: 10px 14px; }
.dialin-others .num { color: var(--caramel-text); }
.dialin-pin svg { width: 16px; height: 16px; color: var(--sage); }
.dialin-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 (sour is orange) 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(--caramel); 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(--sage); }
.trend-chart .dot.sour { fill: var(--terracotta); }
.trend-chart .dot.bitter { fill: var(--ink-2); }
.trend-chart .dot.none { fill: var(--caramel); }
.trend-chart .pinned { fill: none; stroke: var(--sage); 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(--caramel); border-radius: 0; }
.dot-balanced { background: var(--sage); }
.dot-sour { background: var(--terracotta); }
.dot-bitter { background: var(--ink-2); }
.dot-pinned { background: none; border: 2px solid var(--sage); }
.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(--caramel-text); }
.history-note { color: var(--ink-2); font-size: 17px; }
.history-actions { display: flex; gap: 6px; }
.icon-btn.pinned { background: var(--sage-wash); color: var(--sage); border-color: transparent; }

/* Brew 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(--caramel-text); }
.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(--caramel-wash); color: var(--caramel-text); font-family: var(--mono); font-weight: 700; }
.onboarding-step.done .step-num { background: var(--sage-wash); color: var(--sage); }
.step-num svg { width: 18px; height: 18px; }
.onboarding-sync svg { width: 24px; height: 24px; color: var(--caramel-text); }
