/* Home (#/ask, public/views/ask.js): the ask box, Needs you, Do next and Recent. Tokens and base classes come from
   app.css. The lists are .card.td-block cards with .todo rows and today.css's .td-dot tones, so they read exactly like
   Dashboard's, on a phone too. Every class here is ask-… */

.ask-hello{font:800 24px/1.25 var(--font-h);color:var(--ink);letter-spacing:-.015em;margin:2px 0 14px}
.ask-date{font:600 14px var(--font-h);color:var(--slate);letter-spacing:0;white-space:nowrap}
.ask-date-s{display:none}

/* the ask box: a card whose textarea grows to 160 px, and a Send pill */
.ask-compose{display:flex;align-items:flex-end;gap:10px;padding:8px 8px 8px 16px;border-radius:var(--r);box-shadow:var(--shadow);transition:border-color .12s,box-shadow .12s}
.ask-compose:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px var(--ice)}
.ask-ico{flex:none;color:var(--blue);font-size:16px;line-height:42px}
.ask-compose textarea{flex:1;min-width:0;min-height:42px;max-height:160px;resize:none;border:0;outline:0;background:transparent;padding:10px 0;font:400 15px/1.45 var(--font-b);color:var(--ink);overflow-y:auto}
.ask-send{flex:none;border-radius:999px;min-height:42px;padding:8px 20px}

/* three suggestion chips (the chat panel's .sugg look) and one hint line */
.ask-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 8px}
.ask-chips .sugg{display:inline-flex;align-items:center;max-width:100%;min-height:36px;padding:7px 14px;border:1px solid var(--blue-100);background:#fff;color:var(--blue-press);border-radius:18px;font:600 13px var(--font-b);text-align:left;cursor:pointer}
.ask-chips .sugg:hover{background:var(--ice)}
.ask-hint{color:var(--slate);font-size:12.5px;margin:0 0 18px}

/* Needs you, then Do next and Recent. The approve badge scrolls Needs you into view: it stops clear of the sticky top bar */
.ask-needs{margin-bottom:14px;scroll-margin-top:72px}
.ask-prog{margin:4px 0 6px}
.ask-foot{display:inline-block;margin:6px 0;font:600 12.5px var(--font-h)}
.ask-convs{display:flex;flex-direction:column;gap:2px;margin:6px 0 2px}
.ask-convs .chat-conv{padding:9px 6px}
.ask-convs .chat-conv:hover{background:var(--ice)}

/* Do next and Recent side by side when #view is at least 900 px wide and the chat panel is closed; stacked otherwise */
body[data-view='ask'] #view{container:ask-view / inline-size}
.ask-lists{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
@container ask-view (min-width:900px){
  body:not(.chat-open) .ask-lists{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
  body[data-view='ask'] .view{padding-left:16px;padding-right:16px}
  .ask-hello{font-size:21px;margin-bottom:12px}
  .ask-date-l{display:none}
  .ask-date-s{display:inline}
  .ask-compose{padding:6px 6px 6px 14px}
  .ask-compose textarea{font-size:16px}          /* under 16 px, iOS Safari zooms the page when the box takes focus */
  .ask-send{padding:8px 16px}
  .ask-needs{margin-bottom:10px}
  .ask-lists{gap:10px}
}
