/*
 * The signed-in Agenteer web app — iOS Mail's layout (on top of agenteer-ios.css,
 * which supplies the iOS colours, type and controls). compact = iPhone Mail
 * (push navigation); split = iPad Mail (sidebar | list | detail).
 */
.task-page { overflow: hidden; }
/* The landing page's HTML (put in #app at deploy, for crawlers): hidden while a signed-in browser's app loads. */
.is-signed-in-hint .task-prerender { display: none; }
.task { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: var(--ag-groupedBg); }

/* ---- panes ------------------------------------------------------------------ */
.task-pane { display: flex; flex-direction: column; min-width: 0; height: 100%; background: var(--ag-cellBg); }
.task-sidebar { background: var(--ag-groupedBg); }
.task-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.task-scroll::-webkit-scrollbar { display: none; }
.task-pane .ag-navigationBar { position: relative; flex: none; }
.task-pane .ag-navigationBar.ag-large { background: inherit; }
.task-pane .ag-toolbar { position: relative; bottom: auto; flex: none; padding: 0 8px; padding-bottom: env(safe-area-inset-bottom); }

/* compact (iPhone): one screen at a time with the iOS push transition */
.task.is-compact .task-pane {
  position: absolute; inset: 0; transition: transform .38s cubic-bezier(.2, .9, .3, 1), filter .38s;
  box-shadow: -1px 0 0 var(--ag-separator);
}
.task.is-compact .task-pane.is-active { transform: translateX(0); z-index: 2; }
.task.is-compact .task-pane.is-under { transform: translateX(-30%); z-index: 1; filter: brightness(.92); pointer-events: none; }
.task.is-compact .task-pane.is-ahead { transform: translateX(100%); z-index: 3; pointer-events: none; visibility: hidden; transition: transform .38s cubic-bezier(.2, .9, .3, 1), visibility 0s .38s; }

/* split (iPad): three columns */
.task.is-split { display: flex; }
.task.is-split .task-sidebar { flex: 0 0 320px; box-shadow: .5px 0 0 var(--ag-separator); z-index: 2; }
.task.is-split .task-list { flex: 0 0 375px; box-shadow: .5px 0 0 var(--ag-separator); z-index: 1; }
.task.is-split .task-detail { flex: 1; }
/* The list's << / >> (top-left of its bar) closes / opens the Taskboxes panel: it slides out
   to the left and the request takes the room. */
.task.is-split .task-sidebar { transition: margin-left .3s cubic-bezier(.2, .9, .3, 1), visibility 0s; }
.task.is-split.is-sidebar-hidden .task-sidebar { margin-left: -320px; visibility: hidden; transition: margin-left .3s cubic-bezier(.2, .9, .3, 1), visibility 0s .3s; }
.task-sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -8px; border: none; background: none; color: var(--ag-blue); }
.task-sidebar-toggle .ag-symbol { width: 22px; height: 22px; }
.task-sidebar-toggle:active { opacity: .4; }
/* The Taskboxes sidebar (split, and the one that slides over in regular) looks like the
   phone's Taskboxes: a card with dividers. The chosen Taskbox is a blue row in the card (no
   dividers beside it). */
.task.is-split .task-sidebar .task-taskbox.is-selected,
.task.is-regular .task-sidebar .task-taskbox.is-selected { background: var(--ag-blue); color: #fff; }
.task.is-split .task-sidebar .task-taskbox.is-selected .task-taskbox-icon,
.task.is-split .task-sidebar .task-taskbox.is-selected .task-count,
.task.is-regular .task-sidebar .task-taskbox.is-selected .task-taskbox-icon,
.task.is-regular .task-sidebar .task-taskbox.is-selected .task-count { color: #fff; }
.task-sidebar .task-taskbox.is-selected::before,
.task-sidebar .task-taskbox.is-selected + .ag-row::before { display: none; }

/* ---- navigation ------------------------------------------------------------- */
.task-back { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 8px 0 0; border: none; background: none; color: var(--ag-blue); }
.task-back .ag-symbol { font-size: 24px; margin-left: -2px; }
.task-back .ag-symbol svg { width: 1em; height: 1em; }
.task-icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; border: none; background: none; color: var(--ag-blue); }
.task-icon-button .ag-symbol { font-size: 22px; }
.task-icon-button .ag-symbol svg { width: 1em; height: 1em; }
.task-icon-button:disabled { color: var(--ag-tertiaryLabel); cursor: default; }
.task-icon-button:active:not(:disabled) { opacity: .3; }
.task-search { padding: 0 16px 10px; }
.task-status { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; line-height: 15px; color: var(--ag-label); text-align: center; letter-spacing: 0; }
.task-status-sub { font-size: 11px; line-height: 13px; color: var(--ag-secondaryLabel); }
.task-status:has(.task-filter-label) { flex-direction: row; gap: 3px; }
.task-filter-criteria { border: none; background: none; padding: 0; color: var(--ag-blue); font-size: 12px; font-weight: 600; }
.task-toolbar-spacer { min-width: 44px; }
.task-toolbar .ag-barButtonItem:disabled { color: var(--ag-tertiaryLabel); cursor: default; }
.task-refresh { display: flex; align-items: center; justify-content: center; overflow: hidden; transition: height .25s; }
.task-refresh.is-refreshing { transition: none; }

/* ---- Taskboxes ---------------------------------------------------------------- */
.task-taskbox { cursor: pointer; gap: 12px; }
.task-taskbox:active { background: var(--ag-fill); }
.task-taskbox-icon { flex: none !important; width: 28px; font-size: 22px; color: var(--ag-blue); }
.task-taskbox-icon svg { width: 1em; height: 1em; }
.task-taskbox-name { flex: 1; }
.task-count { flex: none !important; color: var(--ag-secondaryLabel); font-variant-numeric: tabular-nums; }
.task .task-chevron { flex: none !important; color: var(--ag-tertiaryLabel); font-size: 14px; margin-left: 2px; }
.task-chevron svg { width: 1em; height: 1em; }

/* ---- request list (Mail's message list) ------------------------------------- */
.task-rows { list-style: none; margin: 0; padding: 0; background: var(--ag-cellBg); }
.task-row { position: relative; overflow: hidden; cursor: pointer; touch-action: pan-y; }
.task-row-content {
  position: relative; z-index: 1; display: flex; padding: 9px 16px 10px 0; background: var(--ag-cellBg);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1); user-select: none; -webkit-user-select: none;
}
.task-row-content.is-dragging { transition: none; }
.task-row + .task-row::before { content: ''; position: absolute; z-index: 2; top: 0; left: 30px; right: 0; border-top: .5px solid var(--ag-separator); }
.task-row-content:active { background: var(--ag-fill); }
.task-row.is-selected .task-row-content { background: var(--ag-blue); color: #fff; }
.task-row.is-editing.is-selected .task-row-content { background: color-mix(in srgb, var(--ag-blue) 12%, var(--ag-cellBg)); color: inherit; }
.task-row.is-editing.is-selected .task-summary, .task-row.is-editing.is-selected .task-time { color: var(--ag-secondaryLabel); }
/* swipe actions, revealed behind the row */
.task-row-actions { position: absolute; z-index: 0; top: 0; bottom: 0; display: flex; overflow: hidden; }
.task-row-leading { left: 0; } .task-row-trailing { right: 0; justify-content: flex-end; }
.task-action {
  flex: 1 1 74px; min-width: 0; border: none; padding: 0; color: #fff; overflow: hidden; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 15px; letter-spacing: -.24px;
}
.task-action .ag-symbol { font-size: 20px; } .task-action .ag-symbol svg { width: 1em; height: 1em; }
.task-action-read { background: var(--ag-blue); }
.task-action-more { background: #8e8e93; } .task-action-flag { background: #ff9500; } .task-action-trash { background: var(--ag-red); }
.task-select { display: inline-flex; color: var(--ag-tertiaryLabel); font-size: 22px; margin-top: 8px; }
.task-select.is-on { color: var(--ag-blue); }
.task-select svg { width: 1em; height: 1em; }
.task-row.is-editing .task-gutter { flex-basis: 44px; padding-top: 0; }
.task-row.is-selected::before, .task-row.is-selected + .task-row::before { border-color: transparent; }
.task-row.is-selected .task-summary, .task-row.is-selected .task-time,
.task-row.is-selected .task-chevron, .task-row.is-selected .task-thread-count { color: rgba(255, 255, 255, .85); }
.task-gutter { flex: 0 0 30px; display: flex; justify-content: center; padding-top: 6px; }
.task-unread { width: 10px; height: 10px; border-radius: 50%; background: var(--ag-blue); }
.task-row.is-selected .task-unread { background: #fff; }
.task-row.is-selected .task-replied { color: #fff; }
.task-replied { font-size: 12px; color: var(--ag-secondaryLabel); }
.task-replied svg { width: 1em; height: 1em; }
.task-row-body { flex: 1; min-width: 0; }
.task-row-top { display: flex; align-items: baseline; gap: 8px; }
.task-sender { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row-meta { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ag-secondaryLabel); font-size: 15px; letter-spacing: -.24px; }
.task-thread-count { font-size: 15px; color: var(--ag-secondaryLabel); }
.task-row-subject { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 20px; letter-spacing: -.24px; }
.task-subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-flag { flex: none; color: #ff9500; font-size: 13px; }
.task-flag svg { width: 1em; height: 1em; }
.task-summary {
  font-size: 15px; line-height: 20px; letter-spacing: -.24px; color: var(--ag-secondaryLabel);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.task-empty { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; color: var(--ag-secondaryLabel); font-size: 17px; }

/* ---- request view (Mail's message view) ------------------------------------- */
.task-message { padding: 12px 16px 16px; }
.task-message + .task-message { border-top: .5px solid var(--ag-separator); }
.task-message.is-collapsed { cursor: pointer; padding-bottom: 12px; }
.task-message.is-collapsed .task-summary { -webkit-line-clamp: 1; }
.task-header { display: flex; gap: 12px; align-items: flex-start; }
.task-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(#a6abb6, #858994); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 0;
}
.task-header-text { flex: 1; min-width: 0; }
.task-header-top { display: flex; align-items: baseline; gap: 8px; }
.task-from { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-date { flex: none; font-size: 15px; color: var(--ag-secondaryLabel); letter-spacing: -.24px; }
.task-to { font-size: 15px; line-height: 20px; color: var(--ag-secondaryLabel); letter-spacing: -.24px; }
.task-header-subject { margin: 14px 0 0; padding-bottom: 12px; border-bottom: .5px solid var(--ag-separator); font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: .38px; }
.task-body { padding-top: 14px; }

/* The request's own Morph screen sits inside the message: no page chrome of its own. */
.task-body .ag-screen { max-width: none; min-height: 0; background: none; padding: 0; --ag-margin: 0px; }
.task-body .ag-screen > header.ag-navigationBar:has(> h1:only-child) { display: none; }
.task-body .ag-screen > .ag-label:first-child, .task-body .ag-screen > header + .ag-label { margin-top: 0; }
.task-body .ag-list-insetGrouped ul { background: var(--ag-groupedBg); }
.task-body .ag-list-header { padding-left: 16px; }
.task-body .ag-screen > .ag-button + .ag-button { margin-left: 16px !important; }

/* ---- Compose: a page sheet (iPhone) / form sheet (iPad) ------------------- */
.task-sheet-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .25); }
.task-sheet {
  width: 100%; height: calc(100% - 48px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--ag-groupedBg); border-radius: 10px 10px 0 0; animation: task-sheet-up .38s cubic-bezier(.2, .9, .3, 1);
}
.task.is-split .task-sheet-backdrop { align-items: center; }
.task.is-split .task-sheet { width: 540px; height: 620px; border-radius: 13px; }
@keyframes task-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.task-sheet-nav { flex: none; height: 56px; padding: 0 8px; }
.task-sheet-title { font-weight: 600; }
.task-sheet-body { flex: 1; overflow-y: auto; }
.task-sheet-to { display: flex; align-items: center; gap: 6px; padding: 11px 20px; margin-bottom: 16px; background: var(--ag-cellBg); box-shadow: 0 -.5px 0 var(--ag-separator), 0 .5px 0 var(--ag-separator); }
.task-sheet-to-label { color: var(--ag-secondaryLabel); }
.task-sheet-recipient { border: none; background: none; padding: 0; color: var(--ag-blue); }
.task-sheet-agent, .task-sheet-action { cursor: pointer; gap: 12px; }
.task-sheet-agent:active, .task-sheet-action:active { background: var(--ag-fill); }
.task-sheet-action-text { flex: 1; }
.task-sheet-action-desc { font-size: 15px; line-height: 20px; color: var(--ag-secondaryLabel); letter-spacing: -.24px; }
.task-avatar-small { width: 28px; height: 28px; font-size: 12px; flex: none !important; }
.task-sheet .task-chevron, .task-sheet-agent > .task-avatar { flex: none !important; }

/* ---- regular (iPad portrait): list | request; the Agents list slides over ------ */
.task.is-regular { display: flex; }
.task.is-regular .task-list { flex: 0 0 375px; box-shadow: .5px 0 0 var(--ag-separator); }
.task.is-regular .task-detail { flex: 1; }
.task.is-regular .task-sidebar {
  position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: 320px;
  transform: translateX(-100%); transition: transform .35s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 0 30px rgba(0, 0, 0, .18);
}
.task.is-regular .task-sidebar.is-active { transform: translateX(0); }
.task-sidebar-scrim { position: absolute; inset: 0; z-index: 4; background: rgba(0, 0, 0, .1); }

/* ---- thread messages: headers expand / collapse; the sender opens the Agent card -- */
.task-header { cursor: pointer; }
.task-from { border: none; background: none; padding: 0; text-align: left; color: inherit; font: inherit; font-weight: 600; }
.task-message.is-open .task-from { cursor: pointer; }
.task-message.is-open .task-from:active { opacity: .5; }

/* ---- the Agent card (Mail's contact card) ---------------------------------------- */
.task-card-head { display: flex; flex-direction: column; align-items: center; padding: 8px 16px 20px; }
.task-avatar-large { width: 84px; height: 84px; font-size: 34px; margin-bottom: 10px; }
.task-agent-name { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: .36px; text-align: center; }
.task-agent-kind { font-size: 15px; color: var(--ag-secondaryLabel); }
.task-card-row { gap: 12px; justify-content: space-between; }
.task-card-label { flex: none !important; }
.task-card-value { flex: 1; min-width: 0; text-align: right; color: var(--ag-secondaryLabel); overflow-wrap: anywhere; font-size: 15px; letter-spacing: -.24px; }
.task-mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; letter-spacing: 0; }
.task-card-verified { flex: none !important; display: inline-flex; align-items: center; gap: 6px; color: var(--ag-green); font-weight: 600; }
.task-card-verified .ag-symbol svg { width: 1.1em; height: 1.1em; }

/* ---- account button (Apple's in-app account pattern) --------------------------- */
.task-largeTitleRow { display: flex; align-items: center; justify-content: space-between; padding-right: var(--ag-margin); }
.task-largeTitleRow .ag-navLargeTitle { padding-right: 8px; }
.task-account {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: none; padding: 0; margin-top: -4px;
  background: linear-gradient(#a6abb6, #858994); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0;
}
.task-account:active { opacity: .6; }

/* ---- Account & Settings sheet (iOS Settings style) -------------------------------- */
/* Behind Settings' cards, pinstripes after iOS 6's grouped lists (groupTableViewBackgroundColor),
   lightened so the guide text reads well: a lighter 2px stripe every 7px. The headers, notes and
   intros a little darker than iOS's secondary label. Light mode only — iOS 6 had no dark mode. */
.task-sheet.task-settings { background: repeating-linear-gradient(90deg, #eef0f3 0 5px, #f6f7f9 5px 7px); }
.task-settings .task-settings-footer:not(.task-pair-error), .task-settings .ag-list-header, .task-settings .task-settings-intro { color: rgba(60, 60, 67, .78); }
/* The Taskboxes panel (the phone's screen and the sidebar) the same: its pinned title bar
   striped too — vertical stripes line up whatever the scroll — and its credit darker. */
.task-sidebar, .task-sidebar .ag-navigationBar { background: repeating-linear-gradient(90deg, #eef0f3 0 5px, #f6f7f9 5px 7px); }
.task-sidebar .task-brand-by { color: rgba(60, 60, 67, .78); }
@media (prefers-color-scheme: dark) {
  .task-sheet.task-settings { background: var(--ag-groupedBg); }
  .task-sidebar, .task-sidebar .ag-navigationBar { background: var(--ag-groupedBg); }
  .task-sidebar .task-brand-by { color: var(--ag-secondaryLabel); }
  .task-settings .task-settings-footer:not(.task-pair-error), .task-settings .ag-list-header, .task-settings .task-settings-intro { color: var(--ag-secondaryLabel); }
}
.task-settings .task-sheet-body { padding-bottom: 24px; }
.task-settings-section { margin-bottom: 0; }
.task-settings-section + .task-settings-section { margin-top: 22px; }
.task-settings .ag-list-header { padding-top: 8px; }
.task-settings-row, .task-settings-profile, .task-settings-agent, .task-settings-pair { cursor: pointer; gap: 12px; }
.task-settings-row:active, .task-settings-profile:active, .task-settings-agent:active, .task-settings-pair:active,
.task-settings-signout:active, .task-card-unpair:active { background: var(--ag-fill); }
.task-settings-icon {
  flex: none !important; width: 29px; height: 29px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 17px;
}
.task-settings-icon svg { width: 1em; height: 1em; }
.task-settings-label { flex: 1; }
.task-settings-value { flex: none !important; color: var(--ag-secondaryLabel); }
.task-settings-profilecard { padding-top: 10px; padding-bottom: 10px; }
.task-avatar-medium { width: 58px; height: 58px; font-size: 22px; flex: none !important; }
.task-settings-profiletext { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.task-settings-username { font-size: 20px; line-height: 25px; letter-spacing: .38px; }
.task-settings-action { color: var(--ag-blue); }
.task-usage-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 32px); margin: 8px 16px; padding: 12px 14px;
  border: 0; border-radius: 12px; background: rgba(255, 149, 0, .14); color: var(--ag-label); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.task-usage-banner.is-full { background: rgba(255, 59, 48, .14); }
.task-usage-banner-action { flex: none; color: var(--ag-blue); font-weight: 600; }
.task-settings-action[aria-busy="true"] { display: flex; align-items: center; justify-content: space-between; }
.task-plan-option.is-waiting { opacity: .45; pointer-events: none; }
.task-plan-option .ag-activityIndicator, .task-settings-action .ag-activityIndicator { flex: none; }
/* Opening Stripe from a link (the Pricing page): a progress panel (HUD) with an activity indicator (HIG); taps wait. */
.task-billing-opening { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.task-billing-hud { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 150px; padding: 22px 20px 18px; border-radius: 14px;
  background: rgba(30, 30, 30, .82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; font-size: 15px; }
.task-billing-hud p { margin: 0; }
.task-billing-hud .ag-activityIndicator { width: 28px; height: 28px; transform: scale(1.4); }
.task-billing-hud .ag-activityIndicator i { background: #fff; }
.task-plan-option .task-settings-value { white-space: nowrap; }
.task-settings-sub { font-size: 13px; line-height: 18px; color: var(--ag-secondaryLabel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-settings-check { flex: none !important; color: var(--ag-blue); font-size: 17px; }
.task-settings-check svg { width: 1em; height: 1em; }
.task-settings-footer { margin: 6px 0 0; padding: 0 calc(var(--ag-margin) + 16px); font-size: 13px; line-height: 18px; letter-spacing: -.08px; color: var(--ag-secondaryLabel); }
.task-settings-note { margin-top: 22px; }
.task-settings-intro { margin: 4px var(--ag-margin) 18px; font-size: 15px; line-height: 20px; color: var(--ag-secondaryLabel); }
.task-settings-pair { color: var(--ag-blue); }
.task-settings-plus { flex: none !important; font-size: 18px; } .task-settings-plus svg { width: 1em; height: 1em; }
.task-settings-signout, .task-card-unpair { justify-content: center; color: var(--ag-red); cursor: pointer; }
.task-settings-actions { display: flex; justify-content: center; margin-top: 18px; }
.task-pair-code { text-align: left !important; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; }
.task-pair-code::placeholder { text-transform: none; }
.task-pair-error { color: var(--ag-red); }
.task-settings .ag-row > .ag-field { width: 100%; }

/* swipe action colours (Archive is Mail's purple) */
.task-action-archive { background: #5856d6; }

/* action sheets layer above sheets and cards */
.task .ag-alertBackdrop { z-index: 40; }

/* ---- signed out (the landing page comes later) ----------------------------------- */
.task-signed-out { display: flex; align-items: center; justify-content: center; height: 100%; background: var(--ag-groupedBg); text-align: center; }
.task-signed-out-inner p { color: var(--ag-secondaryLabel); margin: 8px 0 22px; }
.task-back { white-space: nowrap; }
.task-back span { overflow: hidden; text-overflow: ellipsis; }
.task-sheet .task-back { max-width: 40vw; }
.task.is-split .task-sheet .task-back, .task.is-regular .task-sheet .task-back { max-width: 190px; }

/* ---- Sign in (docs/contracts/identity.md): app icon, large title, inset-grouped form ---- */
.task-auth { display: flex; justify-content: center; flex: 1; width: 100%; height: 100%; box-sizing: border-box; overflow-y: auto; background: var(--ag-groupedBg);
  padding: max(48px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom)); }
.task-auth-inner { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: stretch; }
.task-auth-icon { align-self: center; width: 64px; height: 64px; border-radius: 14px; }
.task-auth-home-icon { align-self: center; display: flex; border-radius: 14px; }
.task-auth-home { align-self: center; margin-top: auto; padding-top: 28px; text-decoration: none; }
.task-auth-title { text-align: center; margin: 14px var(--ag-margin) 22px; }
.task-auth-form { display: flex; flex-direction: column; }
.task-auth-section { margin-bottom: 0; }
.task-auth-field { width: 100%; border: 0; background: transparent; font: inherit; font-size: 17px; padding: 0; min-height: 44px; color: var(--ag-label); }
.task-auth-field:focus { outline: none; }
.task-auth-error { margin: 10px calc(var(--ag-margin) + 16px) 0; font-size: 13px; line-height: 18px; color: var(--ag-red); }
.task-auth-submit { margin: 22px var(--ag-margin) 8px; min-height: 50px; font-size: 17px; font-weight: 600; border-radius: 12px; }
.task-auth-link { align-self: center; margin-top: 6px; }
.task-auth-alt { text-align: center; margin: 18px var(--ag-margin) 0; font-size: 15px; color: var(--ag-secondaryLabel); }
.task-auth-inline { display: inline; margin: 0; padding: 0; min-height: 0; font-size: 15px; }
.task-auth-intro { margin: 0 calc(var(--ag-margin) + 16px) 14px; font-size: 15px; line-height: 20px; color: var(--ag-secondaryLabel); text-align: center; }
.task-auth-sent { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 calc(var(--ag-margin) + 16px) 18px; text-align: center;
  font-size: 15px; line-height: 20px; color: var(--ag-secondaryLabel); }
.task-auth-sent-icon { width: 44px; height: 44px; color: var(--ag-tint); }

/* A browser without the Profile key (identity.md, flow 2): its requests are locked. */
.task-locked { display: flex; gap: 12px; align-items: flex-start; margin: 4px var(--ag-margin) 20px; padding: 12px 16px;
  border-radius: 10px; background: var(--ag-cellBg); font-size: 13px; line-height: 18px; color: var(--ag-secondaryLabel); }
.task-locked p { margin: 0; }
.task-locked strong { color: var(--ag-label); font-weight: 600; }
.task-locked-icon { flex: none; width: 22px; height: 22px; color: var(--ag-tint); }

/* Settings → Profiles: Name & Appearance (colour swatches, symbol choices — as Focus / Safari Profiles) */
.task-profile-name { width: 100%; border: 0; background: transparent; font: inherit; font-size: 17px; min-height: 44px; padding: 0; color: var(--ag-label); }
.task-profile-name:focus { outline: none; }
.task-profile-colors, .task-profile-symbols { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.task-profile-color { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; }
.task-profile-color .ag-symbol { width: 16px; height: 16px; }
.task-profile-color[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ag-cellBg), 0 0 0 4px var(--ag-separatorOpaque, #c6c6c8); }
.task-profile-symbol { width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ag-fill, rgba(120, 120, 128, .12)); color: var(--ag-secondaryLabel); cursor: pointer; }
.task-profile-symbol .ag-symbol { width: 20px; height: 20px; }
.task-profile-symbol[aria-pressed="true"] { color: #fff; }

/* Device linking: the code a new browser shows; the button on the locked notice */
.task-link-code-display { margin: 8px var(--ag-margin) 18px; padding: 18px; border-radius: 12px; background: var(--ag-cellBg); text-align: center;
  font: 600 28px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: var(--ag-label); user-select: all; }
.task-link-waiting { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ag-secondaryLabel); font-size: 15px; margin-bottom: 8px; }
.task-locked { flex-wrap: wrap; }
.task-locked p { flex: 1 1 200px; }
.task-locked-setup { margin-left: 34px; min-height: 36px; padding: 0 14px; font-size: 15px; }
.task-settings-actions + .task-settings-section { margin-top: 22px; }
.task-link-done { gap: 10px; align-items: flex-start; padding-top: 11px; padding-bottom: 11px; }
.task-link-done .ag-symbol { flex: none; margin-top: 1px; }

/* The landing page a signed-out visitor sees (blank for now; Sign In at the top right) */
/* ---- the landing page (landing.mjs): Apple-calm type and space on terminal.shop's horizontal
   stripes — equal light and darker 3px bands, a visible texture (in the site's neutral grey,
   where terminal.shop's are warm); product first — the prompt, then the live demo. ---- */
.task-landing {
  flex: 1; width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; color: #1d1d1f; /* never sideways (no wobble on phones) */
  background: repeating-linear-gradient(180deg, #f5f5f7 0 3px, #ececef 3px 6px);
}
.task-landing-bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; height: 52px;
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  background: rgba(245, 245, 247, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 rgba(0, 0, 0, .1);
}
.task-landing-logo { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.task-landing-logo .task-brand-mark { width: 28px; height: 28px; }
.task-landing-name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.task-landing-nav { flex: 1; display: flex; justify-content: center; gap: 28px; }
.task-landing-navlink { white-space: nowrap; border: none; background: none; padding: 0; font: inherit; font-size: 15px; color: #424245; cursor: pointer; text-decoration: none; }
.task-landing-navlink:hover { color: #1d1d1f; }
/* The phone menu (as legal.css's): a <details> — the icon, and a panel under the bar. */
.task-landing-bar .site-menu { display: none; position: relative; }
.task-landing-bar .site-menu summary { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: -8px; cursor: pointer; list-style: none; color: #1d1d1f; }
.task-landing-bar .site-menu summary::-webkit-details-marker { display: none; }
.site-menu-icon, .site-menu-icon::before, .site-menu-icon::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; }
.site-menu-icon { position: relative; }
.site-menu-icon::before, .site-menu-icon::after { content: ''; position: absolute; left: 0; }
.site-menu-icon::before { top: -6px; }
.site-menu-icon::after { top: 6px; }
.site-menu[open] .site-menu-icon { background: transparent; }
.site-menu[open] .site-menu-icon::before { top: 0; transform: rotate(45deg); }
.site-menu[open] .site-menu-icon::after { top: 0; transform: rotate(-45deg); }
.site-menu-panel { position: absolute; top: 44px; left: -8px; z-index: 10; display: flex; flex-direction: column; min-width: 220px; padding: 6px 0; border-radius: 14px;
  background: rgba(250, 250, 252, .96); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 12px 32px rgba(0, 0, 0, .14); }
.site-menu-panel > a, .site-menu-panel > button { padding: 11px 18px; border: 0; background: none; text-align: left; font: inherit; font-size: 17px; color: #1d1d1f; text-decoration: none; cursor: pointer; }
.site-menu-panel > :not(:first-child) { border-top: .5px solid rgba(0, 0, 0, .1); } /* (beats the items' border reset) */
.task-landing-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.task-landing-signin { font-size: 15px; font-weight: 400; }
.task-landing .task-landing-getstarted { border-radius: 980px; padding: 7px 16px; font-size: 15px; }
.task-landing-main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.task-landing-hero { text-align: center; padding: 40px 0 8px; }
.task-landing-hero h1 { margin: 0; font-size: clamp(42px, 8vw, 84px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; }
.task-landing-desktop-break { display: none; } /* a line break on the desktop only */
@media (min-width: 700px) { .task-landing-desktop-break { display: inline; } }
.task-landing-phone-break { display: none; } /* a line break on a phone only */
.task-landing-sub { max-width: 660px; margin: 22px auto 28px; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; color: #6e6e73; letter-spacing: -.01em; }
/* the copy: a section's small heading over its heading, its paragraphs, its strong line, its calls to action */
.task-landing-eyebrow { margin: 0 0 12px; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #d97757; }
.task-landing-prose { max-width: 680px; margin: 0 auto; text-align: center; }
.task-landing-prose p { margin: 0 0 14px; font-size: 19px; line-height: 1.5; color: #424245; }
.task-landing-punch { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 21px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.task-landing-prose + .task-landing-punch { margin-top: 14px; }
.task-landing-punch + .task-landing-prose { margin-top: 14px; }
.task-landing-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 32px auto 0; }
.task-landing .task-landing-cta { border-radius: 980px; padding: 12px 26px; font-size: 17px; text-decoration: none; }
.task-landing .task-landing-cta.ag-plain { box-shadow: inset 0 0 0 1px currentColor; }
.task-landing-fineprint { margin: 14px auto 0; text-align: center; font-size: 14px; color: #3a3a3c; } /* dark grey, as the phone's caption: easy to read */
.task-landing-needs { list-style: none; max-width: 680px; margin: 10px auto 24px; padding: 0; text-align: center; }
.task-landing-needs li { padding: 6px 0; font-size: 19px; font-weight: 500; }
.task-landing-needs li + li { border-top: .5px solid rgba(0, 0, 0, .1); }
.task-landing-card-lead { margin: 0 0 8px; font-weight: 600; }
.task-landing .task-landing-card p.task-landing-card-lead { color: inherit; }
.task-landing-step p + p { margin-top: 10px; }
.task-landing-riz { margin: 96px 0 12px; text-align: center; font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.02em; }
.task-landing-riz + .task-landing-section-sub { margin-top: 0; }
.task-landing-team { max-width: 640px; margin: 88px auto 0; padding: 32px 28px; border-radius: 22px; text-align: center; background: rgba(255, 255, 255, .78); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .07), 0 4px 18px rgba(0, 0, 0, .04); }
.task-landing-team h3 { margin: 0 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.task-landing-team p { margin: 0 0 8px; font-size: 17px; line-height: 1.47; color: #6e6e73; }
.task-landing-team .task-landing-cta { display: inline-block; margin-top: 12px; }
.task-landing-prompt { max-width: 700px; margin: 24px auto 0; scroll-margin-top: 76px; } /* a chip brings it to the top, clear of the pinned bar */
.task-landing-prompt form {
  display: flex; align-items: flex-start; gap: 12px; padding: 18px 14px 14px 22px; text-align: left; background: #fff; border-radius: 20px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .04), 0 16px 40px rgba(0, 0, 0, .08);
}
.task-landing-caret { font: 600 17px/26px ui-monospace, 'SF Mono', Menlo, monospace; color: #d97757; }
.task-landing-prompt textarea {
  flex: 1; min-height: 52px; border: 0; padding: 0; resize: none; background: transparent; color: inherit; outline: none;
  font: 17px/26px ui-monospace, 'SF Mono', Menlo, monospace;
}
.task-landing-send { flex: none; align-self: flex-end; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #1d1d1f; color: #fff; cursor: pointer; }
.task-landing-send .ag-symbol { width: 18px; height: 18px; }
.task-landing-send.is-busy { cursor: default; }
.task-landing-send .ag-activityIndicator i { background: currentColor; } /* light on the dark button (dark on light in dark mode) */
.task-landing-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; max-width: 700px; }
.task-landing-chip { border: .5px solid rgba(0, 0, 0, .14); border-radius: 980px; padding: 8px 14px; white-space: nowrap; background: rgba(255, 255, 255, .7); font-size: 15px; color: #1d1d1f; cursor: pointer; }
.task-landing-chip:hover { background: #fff; }
.task-landing-chip.is-selected { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
.task-landing-notice { max-width: 700px; margin: 14px auto 0; text-align: center; font-size: 15px; color: #6e6e73; } /* centred under the prompt box */
.task-landing-notice.is-error { color: #d70015; font-weight: 500; }
.task-landing-notice.is-working { color: #1d1d1f; font-weight: 600; }
.task-landing-demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; margin: 56px auto 0; }
.task-landing-session { border-radius: 16px; overflow: hidden; background: #1d1d1f; color: #f5f5f7; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); font: 13.5px/1.65 ui-monospace, 'SF Mono', Menlo, monospace; }
.task-landing-session-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #2c2c2e; }
.task-landing-session-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.task-landing-session-bar span:nth-child(2) { background: #febc2e; }
.task-landing-session-bar span:nth-child(3) { background: #28c840; }
.task-landing-session-bar em { margin-left: auto; font-style: normal; font-size: 12px; color: #8e8e93; }
.task-landing-session-body { padding: 18px 20px 20px; min-height: 250px; }
.task-landing-line { white-space: pre-wrap; }
.task-landing-line + .task-landing-line { margin-top: 6px; }
.task-landing-line.is-user { color: #fff; }
.task-landing-line.is-user .task-landing-caret { font-size: inherit; line-height: inherit; }
.task-landing-line.is-tool b { color: #7cc4ff; font-weight: 600; }
.task-landing-line.is-result { color: #a1a1a6; }
.task-landing-line.is-hint { margin-top: 18px; color: #8e8e93; }
.task-landing-line.is-working { color: #8e8e93; animation: task-landing-working 1.2s ease-in-out infinite; }
@keyframes task-landing-working { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .task-landing-line.is-working { animation: none; } }
.task-landing-arrow::after { content: '↓'; }
.task-landing-again { margin-top: 14px; padding: 0; font: inherit; color: #7cc4ff; }
.task-landing-phone {
  box-sizing: border-box; width: 352px; max-width: 100%; margin: 0 auto; border: 11px solid #1d1d1f; border-radius: 50px; overflow: hidden;
  background: var(--ag-groupedBg); box-shadow: 0 0 0 1px #3a3a3c, 0 30px 70px rgba(0, 0, 0, .22);
}
.task-landing-phone-screen { height: 640px; overflow-y: auto; color: var(--ag-label); } /* no top padding: a pinned title must cover the top edge */
.task-landing-phone-from { display: flex; flex-direction: column; gap: 1px; padding: 30px 18px 4px; font-size: 13px; color: var(--ag-secondaryLabel); }
.task-landing-phone-from b { font-size: 15px; color: var(--ag-label); }
.task-landing-phone-caption { margin: 14px auto 0; max-width: 352px; text-align: center; font-size: 13px; line-height: 18px; color: #3a3a3c; }
.task-landing-phone-error { padding: 24px; text-align: center; color: var(--ag-secondaryLabel); }
.task-landing-section { margin: 140px 0 0; scroll-margin-top: 76px; } /* clear of the pinned bar when jumped to */
.task-landing-section > h2, .task-landing-closing > h2 { margin: 0 0 44px; text-align: center; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.task-landing-section-sub { margin: -28px 0 36px; text-align: center; font-size: 19px; color: #6e6e73; }
.task-landing-section-sub a { color: #0066cc; }
.task-landing-steps, .task-landing-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
.task-landing-step, .task-landing-card { padding: 28px; border-radius: 22px; background: rgba(255, 255, 255, .78); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .07), 0 4px 18px rgba(0, 0, 0, .04); }
.task-landing-step-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #1d1d1f; color: #fff; font-size: 15px; font-weight: 600; }
.task-landing-step h3, .task-landing-card h3 { margin: 16px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.task-landing-card h3 { margin-top: 0; }
.task-landing-step p, .task-landing-card p { margin: 0; font-size: 17px; line-height: 1.47; color: #6e6e73; }
.task-landing-card-more { display: inline-block; margin-top: 10px; font-size: 15px; color: #0066cc; text-decoration: none; }
.task-landing-card-more:hover { text-decoration: underline; }
.task-landing-commands { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 780px; margin: 0 auto; }
.task-landing-command-group h4 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.task-landing-command { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 10px 10px 10px 18px; border-radius: 12px; background: #1d1d1f; color: #f5f5f7; }
.task-landing-command code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 14px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; }
.task-landing-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; padding: 6px 11px; background: rgba(255, 255, 255, .12); color: #f5f5f7; font-size: 13px; cursor: pointer; }
.task-landing-copy .ag-symbol { width: 14px; height: 14px; }
.task-landing-closing { display: flex; flex-direction: column; align-items: center; margin: 150px 0 0; padding-bottom: 24px; }
.task-landing-closing > h2 { margin-bottom: 28px; max-width: 820px; } /* (headings scoped: the phone's request, in See it in action, has its own) */
.task-landing-signin-link { margin-top: 12px; font-size: 15px; }
/* The site's footer (as legal.css): link groups on a grid, then the brand and the copyright. */
.task-landing-footer { max-width: 980px; margin: 0 auto; padding: 40px 24px 56px; font-size: 13px; color: #86868b; }
.task-landing-footer-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 24px; padding-bottom: 20px; border-bottom: .5px solid rgba(0, 0, 0, .14); }
.task-landing-footer-title { margin: 0 0 8px; font-weight: 600; color: #1d1d1f; }
.task-landing-footer ul { list-style: none; margin: 0; padding: 0; }
.task-landing-footer li + li { margin-top: 6px; }
.task-landing-footer a { color: inherit; text-decoration: none; white-space: nowrap; }
.task-landing-footer a:hover { color: #1d1d1f; text-decoration: underline; }
.task-landing-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-top: 16px; }
.task-landing-footer .task-brand-footer { flex-direction: row; gap: 6px; }
.task-landing-footer .task-brand-footer .task-brand-mark { width: 22px; height: 22px; margin: 0; }
.task-landing-footer .task-brand-footer .task-brand-name, .task-landing-footer .task-brand-footer .task-brand-by { font-size: 13px; }
@media (min-width: 640px) {
  .task-landing-steps, .task-landing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .task-landing-steps, .task-landing-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task-landing-cards.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-landing-demo { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; }
  .task-landing-arrow::after { content: '→'; }
  .task-landing-chips { flex-wrap: nowrap; } /* the example chips on one line */
}
@media (max-width: 899px) { /* the menu takes over: five links and the buttons need the room */
  .task-landing-nav { display: none; }
  .task-landing-bar .site-menu { display: block; }
  .task-landing-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .task-landing-signin { display: none; }
}
@media (max-width: 699px) {
  .task-landing-phone-break { display: inline; }
  .task-landing-bar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .task-landing-main { padding: 0 16px; }
  .task-landing-hero { padding-top: 24px; }
  .task-landing-demo { margin-top: 48px; }
  .task-landing-section { margin-top: 96px; }
  .task-landing-session { font-size: 12.5px; }
  .task-landing-prose p, .task-landing-needs li { font-size: 17px; }
  .task-landing-punch { font-size: 19px; }
}
@media (prefers-color-scheme: dark) {
  .task-landing-footer-title, .task-landing-footer a:hover { color: #f5f5f7; }
  .task-landing-footer-groups { border-bottom-color: rgba(255, 255, 255, .16); }
  .task-landing { color: #f5f5f7; background: repeating-linear-gradient(180deg, #000000 0 3px, #111113 3px 6px); }
  .task-landing-bar { background: rgba(0, 0, 0, .72); box-shadow: 0 .5px 0 rgba(255, 255, 255, .12); }
  .task-landing-navlink { color: #a1a1a6; }
  .task-landing-bar .site-menu summary { color: #f5f5f7; }
  .site-menu-panel { background: rgba(44, 44, 46, .96); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .12), 0 12px 32px rgba(0, 0, 0, .5); }
  .site-menu-panel > a, .site-menu-panel > button { color: #f5f5f7; }
  .site-menu-panel > :not(:first-child) { border-top-color: rgba(255, 255, 255, .12); }
  .task-landing-navlink:hover { color: #f5f5f7; }
  .task-landing-notice.is-error { color: #ff6961; }
  .task-landing-notice.is-working { color: #f5f5f7; }
  .task-landing-sub, .task-landing-notice:not(.is-error):not(.is-working), .task-landing-section-sub, .task-landing-step p, .task-landing-card p { color: #a1a1a6; }
  .task-landing-prompt form { background: #1c1c1e; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .12), 0 16px 40px rgba(0, 0, 0, .5); }
  .task-landing-send { background: #f5f5f7; color: #000; }
  .task-landing-card-more, .task-landing-section-sub a { color: #2997ff; }
  .task-landing-chip { background: rgba(28, 28, 30, .7); border-color: rgba(255, 255, 255, .14); color: #f5f5f7; }
  .task-landing-chip:hover { background: #2c2c2e; }
  .task-landing-chip.is-selected { background: #f5f5f7; border-color: #f5f5f7; color: #1d1d1f; }
  .task-landing-session, .task-landing-command { background: #1c1c1e; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .1); }
  .task-landing-step, .task-landing-card { background: rgba(28, 28, 30, .82); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .08); }
  .task-landing-step-n { background: #f5f5f7; color: #000; }
  .task-landing-phone { border-color: #2c2c2e; box-shadow: 0 0 0 1px #48484a, 0 30px 70px rgba(0, 0, 0, .6); }
  .task-landing-phone-caption { color: #a1a1a6; }
  .task-landing-prose p { color: #d1d1d6; }
  .task-landing-fineprint { color: #d1d1d6; }
  .task-landing-team p { color: #a1a1a6; }
  .task-landing-eyebrow { color: #e8957a; }
  .task-landing-needs li + li { border-top-color: rgba(255, 255, 255, .14); }
  .task-landing-team { background: rgba(28, 28, 30, .82); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .08); }
}

/* Branding — Taskriz by Appeggio, with the mark: the landing page, About, and a quiet credit under Taskboxes */
.task-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.task-brand-mark { border-radius: 22.5%; box-shadow: 0 0 0 .5px var(--ag-separator); background: #fff; }
.task-brand-name { font-weight: 700; color: var(--ag-label); }
.task-brand-by { color: var(--ag-secondaryLabel); }
.task-brand-about { margin: 8px 0 22px; gap: 2px; }
.task-brand-about .task-brand-mark { margin-bottom: 10px; }
.task-brand-about .task-brand-name { font-size: 22px; line-height: 28px; }
.task-brand-about .task-brand-by { font-size: 15px; }
.task-brand-credit { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px var(--ag-margin);
  font-size: 13px; line-height: 18px; color: var(--ag-secondaryLabel); }
.task-brand-credit .task-brand-mark { border-radius: 4px; }

/* An answered request (single reply): "You replied …", what was sent, and the interface disabled */
.task-replied-banner, .task-last-replied { margin: 6px var(--ag-margin) 10px; font-size: 13px; line-height: 18px; color: var(--ag-secondaryLabel); }
.task-replied-banner { padding: 8px 12px; border-radius: 10px; background: var(--ag-groupedBg); color: var(--ag-label); font-weight: 500; }
.task-your-reply { margin-top: 0; }
.task-body.is-replied { opacity: .45; filter: grayscale(.4); pointer-events: none; user-select: none; }

/* Trash: said plainly — requests there are deleted permanently after 30 days */
.task-trash-note { margin: 4px var(--ag-margin) 8px; font-size: 13px; line-height: 18px; color: var(--ag-secondaryLabel); }
.task-trash-banner { margin: 6px var(--ag-margin) 10px; padding: 8px 12px; border-radius: 10px; background: var(--ag-groupedBg);
  font-size: 13px; line-height: 18px; color: var(--ag-label); }
.task-destructive { color: var(--ag-red) !important; }

/* Busy buttons: the spinner beside a present-tense label ("Pairing…") */
button.is-busy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; opacity: 1; }
.ag-filled.is-busy .ag-activityIndicator i { background: currentColor; } /* white on a filled button */

/* An action sheet with a title and a message (e.g. Unpair): the title stands out */
.ag-alertText .task-sheet-title { font-weight: 600; color: var(--ag-label); }

/* The Allow page (MCP sign-in): an app asking to use Taskriz — a permission prompt, HIG style. */
.task-authorize-title { margin: 18px var(--ag-margin) 4px; font-size: 22px; line-height: 28px; font-weight: 700; text-align: center; }
.task-authorize .task-settings-intro { text-align: center; }
.task-authorize-actions { flex-direction: column; align-items: stretch; gap: 8px; margin: 18px var(--ag-margin) 0; }
.task-authorize-actions .ag-button { width: 100%; }
/* Connected Apps: name + Profile · dates, with Disconnect at the trailing edge. */
.task-app-row { gap: 12px; }
.task-app-row .task-settings-profiletext { flex: 1; min-width: 0; }
.ag-row.task-app-row > .ag-button.ag-plain.task-app-disconnect { flex: none; color: var(--ag-red); text-align: right; }

/* The invitation page (signed out): the sign-in page's layout. Its title is a sentence, so the
   Title 1 size rather than Large Title; the actions stack, the destructive one red. */
.task-invite .task-invite-title { font-size: 28px; line-height: 34px; }
.task-invite-actions { display: flex; flex-direction: column; align-items: stretch; }
.task-invite-actions .task-auth-submit { margin-top: 8px; }
.task-invite-actions .task-auth-link { margin-top: 10px; font-size: 17px; }
.ag-button.ag-plain.task-invite-decline { color: var(--ag-red); }

/* A request's attachments (Mail): icon, name over size, a chevron; the whole row downloads. */
.task-attachments { margin-top: 18px; }
.task-attachment { gap: 12px; cursor: pointer; }
.task-attachment-icon { width: 28px; height: 28px; color: var(--ag-tint); flex: none; }
.task-attachment-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.task-attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-attachment-size { font-size: 13px; color: var(--ag-secondaryLabel); }
/* In the request view the attachments line up with the request's content (already inset),
   on the same grouped fill as its other cells. */
.task-attachments.ag-list-insetGrouped > ul { margin: 0; background: var(--ag-tertiaryFill); }
.task-attachments.ag-list-insetGrouped > .ag-list-header { padding-left: 16px; }
/* Taskboxes: the + stands over the account avatar below it — its vertical stroke on the stem
   of the avatar's letter (the avatar's centre, an inset + 18px from the edge, less the ~1.5px a
   J's stem sits right of centre), not at the nav bar's 8px edge. */
.task-sidebar .task-nav .ag-trailing [aria-label="Pair an Agent"] { margin-right: calc(var(--ag-margin) - 13.5px); }

/* The phone number pages (Settings → Notifications → SMS): action rows as iOS Settings
   (Change in blue, Remove in red), the country list with flags, and its search field. */
.task-link-text { color: var(--ag-tint); }
.task-destructive-text { color: var(--ag-red); }
.task-phone-add { color: var(--ag-tint); }
.task-country-flag { font-size: 22px; line-height: 1; margin-right: 12px; flex: none; }
.task-country-searchbar { margin: 4px var(--ag-margin) 12px; }
.task-country-searchbar .ag-textField { width: 100%; box-sizing: border-box; padding: 8px 12px; border-radius: 10px; background: var(--ag-tertiaryFill); border: 0; font-size: 17px; }
.task-phone-number, .task-phone-code { width: 100%; border: 0; background: transparent; font-size: 17px; min-height: 24px; }
.task-phone-code { letter-spacing: 4px; }
/* the demo phone while the runtime loads (runtime-loader.mjs) */
.task-landing-phone-loading { display: flex; align-items: center; justify-content: center; }
