/*
 * 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; }
.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; }
.task.is-split .task-sidebar .ag-list-insetGrouped ul { background: none; margin: 0 12px; }
.task.is-split .task-sidebar .ag-row + .ag-row::before { display: none; }
.task.is-split .task-sidebar .task-taskbox { border-radius: 10px; }
.task.is-split .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 { color: #fff; }

/* ---- 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); }
.task.is-regular .task-sidebar .ag-list-insetGrouped ul { background: none; margin: 0 12px; }
.task.is-regular .task-sidebar .ag-row + .ag-row::before { display: none; }

/* ---- 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) -------------------------------- */
.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-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%; 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-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) */
.task-landing { display: flex; flex-direction: column; flex: 1; width: 100%; height: 100%; background: var(--ag-groupedBg); }
.task-landing-bar { display: flex; justify-content: flex-end; align-items: center; min-height: 44px;
  padding: max(8px, env(safe-area-inset-top)) max(var(--ag-margin), env(safe-area-inset-right)) 8px var(--ag-margin); }
.task-landing-signin { font-size: 17px; font-weight: 600; }
.task-landing-content { flex: 1; }

/* 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-hero { margin-top: 18vh; gap: 4px; }
.task-brand-hero .task-brand-mark { margin-bottom: 14px; }
.task-brand-hero .task-brand-name { font-size: 34px; line-height: 41px; letter-spacing: .37px; }
.task-brand-hero .task-brand-by { font-size: 17px; }
.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; }
