/* Per-view rules that do not generalise — spec §5 */

/* Auth (§5.1, §5.2, welcome §5.16) */
.auth { max-width: 420px; margin: var(--s10) auto 0; display: flex; flex-direction: column; gap: var(--s4); }
@media (max-width: 719px) { .auth { margin-top: var(--s6); } }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.auth-logo img { height: 72px; width: auto; max-width: 260px; object-fit: contain; }
.auth-logo .appname { font: 900 15px/20px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.auth .card { gap: var(--s4); }
.auth-foot { font: var(--t-sm); color: var(--text-2); text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.steps { display: flex; justify-content: center; gap: 8px; }
.steps i { width: 8px; height: 8px; border-radius: 50%; background: var(--n300); display: block; }
.steps i.on { background: var(--brand-600); }

/* Verification cards (Home "Needs your action" and the #/verify list, §5.4) */
.verify-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.verify-card .vc-title { font: var(--t-body-strong); }
.verify-card .vc-sub { font: var(--t-sm); color: var(--text-3); }
.verify-card .vc-note { font: var(--t-body); color: var(--text-2); font-style: italic; overflow-wrap: anywhere; }
.verify-card .vc-actions { display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 719px) { .verify-card .vc-actions .btn { flex: 1; height: 48px; } }

/* Tasks list (§5.5) */
.tasks-controls { display: flex; flex-direction: column; gap: var(--s3); }
@media (max-width: 719px) { .tasks-sticky { position: sticky; top: calc(var(--header-h-phone) + var(--safe-top) + 3px); z-index: 6; background: var(--bg); padding: var(--s2) 0; margin-top: calc(-1 * var(--s2)); } }
.task-groups { display: flex; flex-direction: column; gap: var(--s5); }
.task-group { display: flex; flex-direction: column; gap: var(--s2); }
.finished-toggle { align-self: flex-start; }

/* Task form (§5.6) */
.taskform { display: flex; flex-direction: column; gap: var(--s5); }
.summary-card .sum-line { display: flex; gap: 8px; align-items: flex-start; font: var(--t-sm); color: var(--text-2); }
.summary-card .sum-line .i { color: var(--text-3); flex: 0 0 auto; margin-top: 1px; }
.footnote { font: var(--t-caption); color: var(--text-3); }
.checklist-builder { display: flex; flex-direction: column; gap: var(--s2); }
.checklist-builder .ck-row { display: flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--border); }
.checklist-builder .ck-row:last-child { border-bottom: 0; }
.checklist-builder .ck-row .ck-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.checklist-builder .ck-row .i.handle { color: var(--n400); }
.for-you { font: var(--t-body); color: var(--text-2); }

/* Task detail (§5.7 - §5.10) */
.task-head { gap: var(--s3); }
.task-head .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.task-head h1 { overflow-wrap: anywhere; }
@media (min-width: 1024px) { .task-head h1 { font-size: 26px; line-height: 34px; } }
.task-head .due-line { font: var(--t-body); color: var(--text-2); }
.task-head .state-line { font: var(--t-sm); color: var(--text-2); }
.task-head .people-line { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font: var(--t-sm); color: var(--text-2); }
.task-head .people-line .lbl { color: var(--text-3); }
.task-head .desc { font: var(--t-body); color: var(--text); max-width: 68ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-head .desc.collapsed { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.task-head .head-actions { display: flex; justify-content: flex-end; gap: var(--s2); flex-wrap: wrap; }
@media (max-width: 719px) { .task-head .head-actions { display: none; } }
.task-detail-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 44px; }
.member-row { display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 8px var(--s2); border-radius: var(--r-md); }
.member-row.you { background: var(--brand-50); }
.member-row .mr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member-row .mr-name { font: var(--t-body-strong); display: flex; gap: 8px; align-items: center; }
.member-row .mr-dept, .member-row .mr-note { font: var(--t-sm); color: var(--text-3); overflow-wrap: anywhere; }
.proof-groups { display: flex; flex-direction: column; gap: var(--s3); }
.sent-back { border-left: 4px solid var(--danger-600); background: var(--danger-50); color: var(--danger-text); border-radius: var(--r-md); padding: 10px 12px; font: var(--t-body); overflow-wrap: anywhere; }
.verify-panel { border-left: 4px solid var(--success-700); }
.verify-panel .vp-note { font: var(--t-body); color: var(--text-2); font-style: italic; overflow-wrap: anywhere; }

/* Team (§5.11) */
.team-groups { display: flex; flex-direction: column; gap: var(--s5); }
.person-row .counters { font: var(--t-sm); color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.person-row .counters .over { color: var(--danger-600); font-weight: 700; }

/* Alerts (§5.12) */
.alert-groups { display: flex; flex-direction: column; gap: var(--s4); }
.pinned-verify { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: 0 var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text); font: var(--t-body-strong); }
.pinned-verify .kind-tile { width: 36px; height: 36px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; background: var(--review-100); color: var(--review-700); }
.pinned-verify .chev { margin-left: auto; color: var(--n400); }

/* Settings (§5.13) */
.settings-layout { display: grid; gap: var(--s4); grid-template-columns: 1fr; align-items: start; }
.settings-rail { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--s2); }
.settings-rail a { display: flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-full); font: var(--t-label); color: var(--text); }
.settings-rail a:hover { background: var(--n50); text-decoration: none; }
.settings-rail a[aria-current="page"] { background: var(--n800); color: #fff; border-color: var(--n800); }
.settings-rail .rail-desc { display: none; }
@media (min-width: 1024px) {
  .settings-rail { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .settings-rail a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 44px; padding: 10px 12px; border: 0; border-radius: var(--r-md); font: var(--t-body-strong); }
  .settings-rail a[aria-current="page"] { background: var(--brand-50); color: var(--text); font-weight: 700; }
  .settings-rail .rail-desc { display: block; font: var(--t-caption); color: var(--text-3); font-weight: 400; }
}
.settings-content { max-width: 720px; display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
@media (min-width: 1024px) { .settings-layout { grid-template-columns: 220px 1fr; } .settings-rail { position: sticky; top: calc(var(--header-h) + var(--s6)); } }
.settings-list a.row-item { background: var(--surface); }
.logo-preview { height: 64px; max-width: 220px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px; background: var(--surface); }
.saved-flag { font: var(--t-sm); color: var(--success-700); display: inline-flex; align-items: center; gap: 4px; }
.preview-frame { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.preview-frame iframe { width: 100%; height: 60vh; border: 0; }

/* Me (§5.14) */
.me-head { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.me-head .me-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.me-head .me-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font: var(--t-sm); color: var(--text-2); }
.device-row { display: flex; align-items: center; gap: var(--s3); min-height: 44px; font: var(--t-body); color: var(--text-2); flex-wrap: wrap; }
.version { font: var(--t-caption); color: var(--text-3); text-align: center; }

/* get-app.html */
.getapp { max-width: 560px; margin: 0 auto; padding: var(--s8) var(--s5) var(--s12); display: flex; flex-direction: column; gap: var(--s4); }
.getapp .getapp-logo { height: 64px; margin: 0 auto; }
.getapp h1 { text-align: center; }
.getapp .sub { text-align: center; color: var(--text-2); }
.getapp .card.android { border-top: 4px solid var(--brand-600); }
.getapp ol { padding-left: 18px; list-style: decimal; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.getapp code { background: var(--n100); padding: 2px 6px; border-radius: 4px; }
.getapp .muted { color: var(--text-3); font: var(--t-sm); }
.getapp .foot { text-align: center; }

/* Me: get-the-app row is a normal row inside a card, not a centred tile */
.card.get-app-row { display: flex; flex-direction: row; align-items: center; gap: var(--s3); text-align: left; padding: var(--s4); }
.card.get-app-row .row-main { flex: 1; min-width: 0; }
.card.get-app-row .chev { flex: 0 0 auto; }
