/* ============================================================================
   ASK / DO TABS on a section card (js/ask-do.js; Peter, 29 Oct 2026). The tabs sit on top of the card like the Tax
   month tabs: the picked tab IS the card (its colour, read from the card into --ado-bg) with soft joins "nice and loose
   like the graph"; the other tab is plain words on the page. The Do rows are the page's own Ask pills
   (.ask-suggests--sentences .ask-suggest), so their shape, colour and hover come from ask-box.css and dashboard.css.
   ============================================================================ */
.ado-tabs { display: flex; position: relative; margin: 0 0 -1px; }
.ado-tabs[hidden] { display: none; }
/* tabs written into the page (data-ado-static) look right before ask-do.js runs: the section card's colour and gap
   (section-canvas.css #e1f0f4, Home #FFE000); the script then reads the card's real colour into --ado-bg */
.ado-tabs[data-ado-static] { --ado-bg: #e1f0f4; margin-top: 20px; }
.ado-tabs--home[data-ado-static] { --ado-bg: #FFE000; margin-top: 0; }
.ado-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: var(--text-base); color: var(--color-text-muted);
  background: transparent; border: 0; border-radius: 24px 24px 0 0; padding: 12px 28px 14px; cursor: pointer;
}
.ado-tab:hover { color: var(--color-text); }   /* provisional */
.ado-tab.is-on { background: var(--ado-bg); color: var(--color-text); font-weight: var(--weight-medium); }
/* the soft joins: the picked tab flows into the card with a curve each side, like a browser tab */
.ado-tab.is-on::before, .ado-tab.is-on::after { content: ""; position: absolute; bottom: 0; width: 24px; height: 24px; pointer-events: none; }
.ado-tab.is-on::before { left: -24px; background: radial-gradient(circle at 0 0, transparent 23.5px, var(--ado-bg) 24px); }
.ado-tab.is-on::after { right: -24px; background: radial-gradient(circle at 100% 0, transparent 23.5px, var(--ado-bg) 24px); }
.ado-tab:first-child.is-on::before { display: none; }
.ado-tab .status-pill[hidden] { display: none; }
/* the card meets its tab: no top margin, and the corner under the first tab is square */
.ado-card { margin-top: 0 !important; }
.ado-card--first { border-top-left-radius: 0 !important; }
.ado-card--do { display: block !important; }
.ado-hide { display: none !important; }
.ado-needs-moved { display: none !important; }
.ado-fullrow { grid-column: 1 / -1 !important; }

/* ---- the Do list ---- */
.ado-panel { margin-top: 24px; }
.ado-panel[hidden], .ado-panel [hidden] { display: none !important; }
.ado-head { margin: 20px 0 10px; font-weight: var(--weight-medium); }
.ado-panel .ask-suggests.ado-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: none; margin: 0 0 8px; }
/* every task shows (4 Nov 2026): the Ask pills' 480px fold cap (ask-box.css .ask-suggests) hid the last tasks of a long
   list, and every task under a row that grew down (Link Bullet to Revenue's signing) */
.ado-panel .ask-suggests.ado-row { max-height: none; overflow: visible; }
.ado-panel .ask-suggests.ado-row .ask-suggest { position: relative; width: 100%; max-width: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; white-space: normal; overflow: visible; }
.ado-panel .ado-pt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }   /* ONE LINE, cut with ... (Peter, 6 Nov 2026: "keep all tasks to one line, when they wrap it looks awful"). Replaced: words wrap, never cut */
.ado-panel .ask-suggest .status-pill { flex: none; }
/* OVERDUE IS JUST THE RED DOT (Peter, 6 Nov 2026: "Reduce the busyness"; approved on Signal card 107, 7 Nov 2026; ask-do.js): no word, no dashed
   border, the pill's own red dot (status-pill.css), 8px, in the pill's place, the row's 8px gap before the ... menu */
.ado-panel .ask-suggest .status-pill.ado-dot { padding: 0; border: 0; background: none; gap: 0; min-height: calc(1lh + 6px); }   /* the pill's height (its line, 2px padding and 1px border each side), so the row keeps today's height */
.ado-panel .ask-suggest .status-pill.ado-dot::before { width: 8px; height: 8px; }
.ado-panel .ask-suggest.is-asked { opacity: .7; }
.ado-panel .ask-suggests.ado-fold { display: flex; margin: 20px 0 8px; }
.ado-panel .ask-suggests.ado-fold .ask-suggest { width: auto; }
.ado-empty { margin: 8px 0 0; font-size: var(--text-base); color: var(--color-text-muted); }
/* the more dots: in the pill's row at its right end, shown when you point at a task (always on a phone) */
.ado-more { flex: none; align-self: center; margin: 0 0 0 auto; display: flex; opacity: 0; color: var(--color-text-muted); cursor: pointer; border-radius: 50%; padding: 2px; line-height: 0; }
.ask-suggest:hover .ado-more, .ask-suggest:focus-within .ado-more, .ado-more:focus-visible { opacity: 1; }
@media (hover: none) { .ado-more { opacity: 1; } }
@media (max-width: 900px) { .ado-panel .ask-suggests.ado-row { grid-template-columns: minmax(0, 1fr); } }   /* minmax: a one-line task is cut, never wider than the phone */
@media (max-width: 600px) { .ado-tab { padding: 10px 20px 12px; } }

/* the row menu: the invoice list's row menu (invoice-home-settings.html .inv-rowmenu; CLAUDE.md "Row kebab menu") */
.ado-menu.inv-rowmenu { position: absolute; z-index: 40; background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(12, 12, 13, 0.14); padding: 12px; width: max-content; min-width: 200px; max-width: 320px; }
.ado-menu .inv-rowmenu__acts { display: flex; flex-direction: column; gap: 1px; }
.ado-menu .inv-rowmenu__act { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; padding: 9px 8px; border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-size: var(--text-sm); color: var(--color-text); }
.ado-menu .inv-rowmenu__act:hover, .ado-menu .inv-rowmenu__act:focus-visible { background: var(--color-bg-subtle); }
.ado-menu .inv-rowmenu__act svg { width: 16px; height: 16px; flex: none; color: var(--color-text-muted); }
.ado-menu .ado-menu__danger, .ado-menu .ado-menu__danger svg { color: var(--color-danger); }
.ado-menu__hr { border: 0; border-top: var(--border-width) solid var(--color-border); margin: 6px 0; }
@media (prefers-reduced-motion: reduce) { .ado-tab { transition: none; } }

/* Signal card 78 (Peter approved 30 Oct 2026). Do rows get a smaller corner so a two-line task is not a fat pill; the more dots are full ink and always shown, so they read on Home's yellow. */
.ado-panel .ask-suggests.ado-row .ask-suggest { border-radius: var(--radius-md); }
.ado-panel .ask-suggest .ado-more { color: var(--color-text); opacity: 1; }
/* CLEARER AND EASIER TO PRESS (Peter, 6 Nov 2026: "these need to be clearer and easier to click"): solid dots at 20px in a 36px round target that darkens under the pointer. Negative margin keeps the row its one-line height. */
.ado-panel .ask-suggest .ado-more { width: 36px; height: 36px; margin: -8px -10px -8px auto; padding: 0; align-items: center; justify-content: center; transition: background-color .2s ease; }
.ado-panel .ask-suggest .ado-more:hover, .ado-panel .ask-suggest .ado-more:focus-visible { background: rgba(0, 0, 0, 0.1); }
/* TO-DOS READ AS LIVE WORK (Peter, 6 Nov 2026, option A: "something about them just doesn't look important, like they're
   inactive"): white rows with black words, the white sub card on a coloured card (CLAUDE.md SECTION COLOURS), not the
   card's darker tint and 62% ink, which the app uses for things that are done. The doubled class outranks dashboard.css's
   tint on a card. Done and for-later rows keep their .7 fade, so they still sit back. */
.ado-panel .ask-suggests.ado-row .ask-suggest.ask-suggest { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }
.ado-panel .ask-suggests.ado-row .ask-suggest.ask-suggest > span { color: var(--color-text); }
.ado-panel .ask-suggests.ado-row .ask-suggest.ask-suggest:hover { background: var(--color-surface); box-shadow: var(--shadow-dropdown), var(--shadow-sm); }
.ado-panel .ask-suggest .ado-more:hover, .ado-panel .ask-suggest .ado-more:focus-visible { background: var(--color-bg-subtle); }

/* ROOMIER ROWS (Peter, 7 Nov 2026, option A via the MOBILE chat: "more room, keep the white rows"): each Do row at least
   48px tall (over the 44px tap size; it was about 38px) and 12px between rows (it was 8px). Words, white, shadow and the
   ... menu as they are. Card 108: LIVE for everyone (Peter, 9 Nov 2026: "There are no customers on this platform yet so don't hide anything cause i'll forget"); still waiting for his Approve or Not this on its Signal card. */
.ado-panel .ask-suggests.ado-row { gap: 12px; margin-bottom: 12px; }
.ado-panel .ask-suggests.ado-row .ask-suggest { min-height: 48px; }

/* NO SHADOW (Peter, 7 Nov 2026, via the MOBILE chat, on a phone screenshot of the white rows: "No shadow"): the Do rows
   lose their resting and hover shadow; white rows, black words, the dot and the ... menu stay. Gated behind ?try=do-flat
   Card 109: LIVE for everyone (Peter, 9 Nov 2026: "There are no customers on this platform yet so don't hide anything cause i'll forget"); still waiting for his Approve or Not this on its Signal card. */
.ado-panel .ask-suggests.ado-row .ask-suggest.ask-suggest,
.ado-panel .ask-suggests.ado-row .ask-suggest.ask-suggest:hover { box-shadow: none; }

/* HOME IS ONE PAGE (Peter, 14 Nov 2026: "keep the style of the pills on the homepage with the burger functionality, so you
   can snooze them"; ask-do.js onePage). No tabs on Home: the to-dos sit under the chart where Explore more was, as Home's
   own Ask pills (ask-box.css and dashboard.css give the shape, the tint and the hover), in a row that wraps. Each keeps
   its red dot and its ... menu. The words are full ink, so a to-do reads as live work (Peter, 6 Nov); "See all" and
   "What can I ask?" (.ado-plain) keep the quieter pill ink. The list leaves with the chart while Bullet answers. */
.ado-panel.ado-panel--inline { margin-top: 0; }
.ado-panel.ado-panel--inline .ask-suggests.ado-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.ado-panel.ado-panel--inline .ask-suggests.ado-row .ask-suggest.ask-suggest { width: auto; max-width: 100%; min-height: 0; border-radius: var(--radius-full); background: rgba(0, 0, 0, 0.075); }
.ado-panel.ado-panel--inline .ask-suggests.ado-row .ask-suggest.ask-suggest:hover { background: rgba(0, 0, 0, 0.12); }
.ado-panel.ado-panel--inline .ask-suggests.ado-row .ask-suggest.ado-plain,
.ado-panel.ado-panel--inline .ask-suggests.ado-row .ask-suggest.ado-plain > span { color: rgba(17, 17, 17, 0.62); }
.ado-panel.ado-panel--inline .ask-suggests.ado-row .ask-suggest.ado-plain:hover,
.ado-panel.ado-panel--inline .ask-suggests.ado-row .ask-suggest.ado-plain:hover > span { color: var(--color-text); }
.ado-panel.ado-panel--inline .ask-suggest .ado-more { width: 28px; height: 28px; margin: -4px -8px -4px 0; }
.ado-panel.ado-panel--inline .ask-suggest .ado-more:hover, .ado-panel.ado-panel--inline .ask-suggest .ado-more:focus-visible { background: rgba(0, 0, 0, 0.1); }
.ado-panel.ado-panel--inline .ask-suggests.ado-row > .sigrow { flex: 1 0 100%; }
.ado-panel.ado-panel--inline .ask-suggests.ado-fold { margin: 12px 0 8px; }
.dash-sec:has(.ask-box.is-answering) .ado-panel--inline { display: none; }
