/* Focus home. One calm column read top to bottom:
   1. Needs you (what the agent is waiting on you for), 2. Today (up to five), 3. Waiting on others.
   Uses the Orbit 30 tokens; #3B9EFF only for primary actions. Loaded inside #view-today so it applies last. */
body.orbit-v27 #view-today.focus-home { max-width: 760px; margin: 0 auto; padding-top: 8px; padding-bottom: 120px; }

/* Header: date, greeting, one sentence of direction. */
body.orbit-v27 .focus-home .home-head { margin: 8px 0 36px; }
body.orbit-v27 .focus-home .home-date { margin: 0 0 6px; color: var(--o-muted); font-size: 15px; font-weight: 500; }
body.orbit-v27 .focus-home .home-head h1 { margin: 0; font-size: clamp(30px, 4vw, 38px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; color: var(--o-ink); }
body.orbit-v27 .focus-home .home-lead { margin: 12px 0 0; font-size: 19px; line-height: 1.45; color: var(--o-ink-2); max-width: 36em; }
body.orbit-v27 .focus-home .home-lead:empty { display: none; }

/* Sections */
body.orbit-v27 .focus-home .home-section { margin: 0 0 40px; }
body.orbit-v27 .focus-home .home-section-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
body.orbit-v27 .focus-home .home-section-head h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; color: var(--o-ink); }
body.orbit-v27 .focus-home .home-count { color: var(--o-muted); font-size: 16px; font-variant-numeric: tabular-nums; }
body.orbit-v27 .focus-home .home-count:empty { display: none; }
body.orbit-v27 .focus-home .home-text-button { margin-left: auto; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--o-accent-ink); font-size: 15px; font-weight: 550; cursor: pointer; box-shadow: none; }
body.orbit-v27 .focus-home .home-text-button:hover { background: var(--o-accent-soft); }
body.orbit-v27 .focus-home .home-rest .home-text-button { margin-left: 4px; padding: 4px 8px; min-height: 32px; }

/* 1. Needs you: the only cards on the page. */
body.orbit-v27 .focus-home .home-needs-list { display: grid; gap: 12px; }
body.orbit-v27 .focus-home .home-need { position: relative; display: grid; gap: 6px; padding: 18px 20px 18px 22px; border: 1px solid var(--o-line-strong); border-radius: 14px; background: var(--o-raise); }
body.orbit-v27 .focus-home .home-need::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--o-line-strong); }
body.orbit-v27 .focus-home .home-need.is-needs::before { background: var(--o-accent); }
body.orbit-v27 .focus-home .home-need.is-done::before { background: var(--o-p3); }
body.orbit-v27 .focus-home .home-need.is-ready::before { background: var(--o-accent-ink); }
body.orbit-v27 .focus-home .home-need.is-failed::before { background: var(--o-p2); }
body.orbit-v27 .focus-home .home-need-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: var(--o-muted); font-size: 14px; }
body.orbit-v27 .focus-home .home-need-kind { font-weight: 600; color: var(--o-ink-2); }
body.orbit-v27 .focus-home .home-need.is-needs .home-need-kind { color: var(--o-accent-ink); }
body.orbit-v27 .focus-home .home-need.is-done .home-need-kind { color: var(--o-p3); }
body.orbit-v27 .focus-home .home-need h3 { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--o-ink); }
body.orbit-v27 .focus-home .home-need-line { margin: 0; font-size: 16px; line-height: 1.5; color: var(--o-ink-2); }
body.orbit-v27 .focus-home .home-need.is-needs .home-need-line { padding-left: 12px; border-left: 2px solid var(--o-line-strong); }
body.orbit-v27 .focus-home .home-need-note { margin: 0; font-size: 14px; color: var(--o-muted); }
body.orbit-v27 .focus-home .home-need-action { justify-self: start; margin-top: 8px; min-height: 40px; padding: 8px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; border: 1px solid var(--o-line-strong); background: var(--o-raise-2); color: var(--o-ink); cursor: pointer; }
body.orbit-v27 .focus-home .home-need-action.primary, body.orbit-v27 .focus-home .home-empty .primary { background: var(--o-accent); border-color: var(--o-accent); color: #fff; }
body.orbit-v27 .focus-home .home-quiet-line { margin: 12px 0 0; font-size: 15px; color: var(--o-muted); }
body.orbit-v27 .focus-home .home-quiet-line:empty, body.orbit-v27 .focus-home .home-quiet-line[hidden] { display: none; }
body.orbit-v27 .focus-home .home-empty { padding: 18px 20px; border: 1px dashed var(--o-line-strong); border-radius: 14px; color: var(--o-muted); font-size: 16px; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.orbit-v27 .focus-home .home-empty p { margin: 0; }
body.orbit-v27 .focus-home .home-empty.is-calm { border-style: solid; border-color: var(--o-line); padding: 14px 18px; font-size: 16px; }
body.orbit-v27 .focus-home .home-empty .primary { min-height: 40px; padding: 8px 18px; border-radius: 10px; font-weight: 600; }
body.orbit-v27 .focus-home .home-more { justify-self: start; min-height: 40px; padding: 8px 2px; border: 0; background: none; color: var(--o-accent-ink); font-size: 15px; font-weight: 550; cursor: pointer; box-shadow: none; }

/* 2. Today: rows, not cards. Bigger titles; options tucked away. */
body.orbit-v27 .focus-home .home-today-list { border-top: 1px solid var(--o-line); }
body.orbit-v27 .focus-home .home-today-list > .empty.home-empty { border: 0; padding: 18px 2px; }
body.orbit-v27 .focus-home .focus-item.task-row { padding-top: 14px; padding-bottom: 12px; }
body.orbit-v27 .focus-home .focus-item.task-row .task-list-title, body.orbit-v27 .focus-home .focus-item.task-row h3 { font-size: 18px; line-height: 1.4; }
body.orbit-v27 .focus-home .focus-item.task-row .task-list-description { font-size: 15px; }
body.orbit-v27 .focus-home .focus-item.task-row > .focus-card-details > summary { color: var(--o-faint); font-size: 13px; min-height: 30px; padding: 4px 0; }
body.orbit-v27 .focus-home .focus-card-details .focus-actions button { font-size: 14px; }

body.orbit-v27 .focus-home .home-suggest { margin-top: 20px; }
body.orbit-v27 .focus-home .home-suggest h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--o-muted); }
body.orbit-v27 .focus-home .home-suggest-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 52px; border-bottom: 1px solid var(--o-line); }
body.orbit-v27 .focus-home .home-suggest-add { width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 50%; border: 1.5px dashed var(--o-line-strong); background: transparent; color: var(--o-accent-ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none; }
body.orbit-v27 .focus-home .home-suggest-add:hover { border-style: solid; border-color: var(--o-accent); background: var(--o-accent-soft); }
body.orbit-v27 .focus-home .home-suggest-title { min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--o-ink-2); font-size: 17px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; box-shadow: none; }
body.orbit-v27 .focus-home .home-suggest-why { color: var(--o-muted); font-size: 14px; white-space: nowrap; }

/* 3. Waiting on others: compact two-line rows. */
body.orbit-v27 .focus-home .home-waiting-list { display: grid; border-top: 1px solid var(--o-line); }
body.orbit-v27 .focus-home .home-waiting-row { display: grid; gap: 2px; width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--o-line); border-radius: 0; background: none; text-align: left; cursor: pointer; box-shadow: none; }
body.orbit-v27 .focus-home .home-waiting-row:hover .home-waiting-title { color: var(--o-ink); }
body.orbit-v27 .focus-home .home-waiting-title { font-size: 17px; line-height: 1.4; color: var(--o-ink-2); }
body.orbit-v27 .focus-home .home-waiting-who { font-size: 14px; color: var(--o-muted); }

body.orbit-v27 .focus-home .home-rest { margin: 0; font-size: 15px; color: var(--o-muted); }
body.orbit-v27 .focus-home .home-rest:empty { display: none; }

@media (max-width: 760px) {
  body.orbit-v27 #view-today.focus-home { padding-left: 16px; padding-right: 16px; }
  body.orbit-v27 .focus-home .home-head { margin-bottom: 28px; }
  body.orbit-v27 .focus-home .home-lead { font-size: 17px; }
  body.orbit-v27 .focus-home .home-need { padding: 16px 16px 16px 18px; }
  body.orbit-v27 .focus-home .home-suggest-why { display: none; }
  body.orbit-v27 .focus-home .home-suggest-row { grid-template-columns: 36px minmax(0, 1fr); }
}

/* Row options stay one tap away without a line of small text under every task. */
body.orbit-v27 .focus-home .focus-item.task-row > .focus-card-details > summary { font-size: 0; list-style: none; width: 44px; min-height: 28px; padding: 0; }
body.orbit-v27 .focus-home .focus-item.task-row > .focus-card-details > summary::-webkit-details-marker { display: none; }
body.orbit-v27 .focus-home .focus-item.task-row > .focus-card-details > summary::after { content: "•••"; font-size: 12px; letter-spacing: 2px; color: var(--o-faint); }
body.orbit-v27 .focus-home .focus-item.task-row > .focus-card-details[open] > summary::after { color: var(--o-ink-2); }
