/* Live J01 shell follows the approved walkthrough without its fictional state. */
:root {
  --bg: hsl(216.774194 56.36363636% 78.43137255%);
  --surface: #fff;
  --soft: #f7f8fa;
  --ink: #202630;
  --muted: #566170;
  --line: #7f8895;
  --accent: hsl(215 62% 35%);
  --tint: hsl(215 55% 95%);
  --due-near: #8a4500;
  --due-passed: #b42318;
  color-scheme: light;
}
/* Signed-out default follows the OS. These match applyPersonalAppearance at
   hue 215; signed-in inline properties on :root still override them. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(220 20% 15%);
    --surface: hsl(220 18% 18%);
    --soft: hsl(220 20% 12%);
    --ink: hsl(220 20% 96%);
    --muted: hsl(220 12% 75%);
    --line: hsl(220 14% 48%);
    --accent: hsl(215 90% 78%);
    --tint: hsl(215 35% 26%);
    --due-near: #ffb366;
    --due-passed: #ff8c86;
    color-scheme: dark;
  }
}
/* Future-safe: stops any animation, transition or smooth scroll when asked. */
@media (prefers-reduced-motion: reduce) {
  html, *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 system-ui, sans-serif;
}
main {
  max-width: 100rem;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}
h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
p { max-width: 75ch; }
a { color: var(--accent); }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button, input, select, textarea {
  max-width: 100%;
  min-height: 2.65rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
}
button { cursor: pointer; border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .6; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.live-skip-link {
  position: absolute;
  z-index: 10;
  top: -5rem;
  left: 1rem;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--surface);
}
.live-skip-link:focus { top: 1rem; }
form { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
form label { display: grid; gap: .3rem; min-width: min(100%, 13rem); }
form textarea { min-height: 5rem; }
#status, [role="status"] { overflow-wrap: anywhere; }
.live-setup-guide { margin-block: 1.25rem; }
.live-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  gap: 18px;
  align-items: start;
}
.live-setup-panel {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.live-setup-panel h2 { margin-top: 0; }
#live-settings-grid,
#live-settings-grid.settings-detail { grid-template-columns: minmax(0, 1fr); gap: 0; }
#live-settings-grid > .live-setup-panel {
  border: 0;
  padding: 0;
  background: transparent;
}
.live-settings-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 0 20px; }
.live-settings-nav button { min-height: 42px; padding: 7px 11px; color: var(--accent); border-radius: 8px; }
.live-settings-nav button[aria-current="page"] { background: var(--tint); font-weight: 650; }
/* Section headings remain accessible, but the approved pages display the card titles instead. */
#live-settings-section [data-settings-panel] > h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#live-settings-navigation-status:empty { display: none; }
.live-settings-overview-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.live-settings-connection-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 1rem; }
.live-settings-connection-cards summary { cursor: pointer; color: var(--accent); }
.live-settings-connection-cards details p { margin-block: .75rem 0; }
.live-email-accounts {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
}
.live-email-accounts h4 { margin-block: 0 .5rem; }
#live-email-accounts-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
#live-email-accounts-list li {
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--soft);
}
.live-category-row,
.live-category-email-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .6rem;
}
.live-category-email-choice label { display: grid; gap: .3rem; min-width: min(100%, 16rem); }
#live-email-accounts-list input,
.live-category-email-choice select { width: 100%; max-width: 28rem; }
#live-email-accounts-list button,
.live-category-email-choice button { min-height: 42px; }
.live-categories-results { width: 100%; max-width: 64rem; margin-block-start: 1rem; }
.live-categories-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 20px;
}
#live-categories-status { margin: 0; }
#live-categories-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.live-category-row { align-items: center; }
.live-category-row > .live-category-email-choice { margin-inline-start: auto; justify-content: flex-end; }
.live-category-row > form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.live-category-column-headings,
.live-category-row:has(> .live-category-edit-form) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px 42px 42px;
  gap: .6rem;
  align-items: center;
  width: 100%;
}
.live-category-row > .live-category-edit-form {
  display: grid;
  grid-column: 1 / 5;
  grid-template-columns: subgrid;
  min-width: 0;
}
.live-category-column-headings { margin-block-end: .5rem; }
.live-category-edit-form > input,
.live-category-edit-form > select { width: 100%; min-width: 0; }
.live-category-edit-form > button,
.live-category-row:has(> .live-category-edit-form) > button {
  min-height: 42px;
  width: 42px;
  padding-inline: 0;
}
.live-category-email-choice { min-width: 0; align-items: center; }
.live-category-email-choice select { min-width: 12rem; }
.live-category-email-choice label { min-width: 0; }
#live-email-add-account { margin-block: .75rem; }
#live-email-add-account > summary,
#live-email-other-webmail > summary { cursor: pointer; color: var(--accent); }
#live-email-add-account > p { margin-block: .75rem; }
#live-email-provider-actions { margin-block: .75rem; }
#live-email-other-webmail { margin-block: .75rem; }
#live-email-other-guidance { font-size: .9rem; }
.live-settings-overview-card { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--soft); }
.live-settings-overview-card h4 { margin: 0 0 .5rem; }
.live-settings-overview-card p { margin: 0 0 .75rem; }
.live-settings-overview-card button { color: var(--accent); }
#live-settings-section h2[id], #live-settings-section h3[id] { scroll-margin-top: 1rem; }
.live-setup-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.live-setup-guide ol { padding-left: 1.5rem; }
.live-setup-guide li { margin-block: .4rem; }
.live-setup-extra {
  margin-block: .75rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
}
.live-setup-extra summary { cursor: pointer; }
.live-content > section,
#signup-section, #login-section, #pending-section {
  margin-block: 1.25rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--soft);
}
.live-content > section > section {
  margin-block: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
}
#site-access .live-content { max-width: 1240px; }
.live-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  gap: 18px;
  align-items: start;
}
.live-access-primary,
.live-access-checklist {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.live-access-checklist h2 { margin-top: 0; }
.live-access-checklist ol { padding-left: 1.5rem; }
.live-access-checklist li { margin-block: .4rem; }
#site-scope { color: var(--muted); }
#site-access #status { margin-top: 1rem; }
.live-shell {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: 100vh;
  border-top: 1px solid var(--line);
}
.live-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: start;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.live-sidebar small { margin-top: auto; color: var(--muted); }
.live-site-footer {
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.live-site-footer a { display: inline-block; padding: .5rem; }
.live-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.live-mark { padding: .3rem .6rem; border-radius: .55rem; background: var(--tint); color: var(--accent); }
.live-workspace { min-width: 0; background: var(--bg); }
.live-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 77px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.live-topbar h1 { margin: 0; font-size: 1.35rem; }
.live-topbar-spacer { flex: 1; }
.live-top-category { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.live-top-category select { max-width: min(16rem, 35vw); }
.live-icon-button { width: 42px; padding: 0; font-size: 20px; }
/* Signed in, the workspace menu is a dropdown under the top-right hamburger
   at every width; there is no left-hand column. */
#live-menu-button { display: inline-block; }
#account-section .live-shell { display: block; }
#account-section .live-topbar { position: relative; }
#account-section .live-sidebar {
  display: none;
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  right: 14px;
  gap: 20px;
  width: min(280px, calc(100vw - 28px));
  height: auto;
  max-height: calc(100dvh - 96px);
  overflow: auto;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 25px #10182355;
}
#account-section .live-shell.menu-open .live-sidebar { display: flex; }
.live-icon-button svg { display: block; width: 1.4rem; height: 1.4rem; margin: auto; }
.live-mark svg { display: block; width: 1em; height: 1em; }
/* Sign out sits at the bottom of the hamburger menu. */
.live-sidebar-account { padding-top: 14px; border-top: 1px solid var(--line); }
.live-sidebar-account button { width: 100%; }
/* Why the last request was refused and what to do next. */
.live-request-notice {
  width: calc(100% - 28px);
  max-width: 1184px;
  margin: 16px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--due-near);
  border-radius: 8px;
  background: var(--surface);
}
.live-content { max-width: 1240px; margin: auto; padding: 28px; }
.live-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 18px;
}
.live-breadcrumb, .live-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.live-breadcrumb p { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.live-category { color: var(--muted); }
.live-primary { background: var(--accent); border-color: var(--accent); color: var(--surface); font-weight: 600; }
.live-content > #live-setup-guide,
.live-content > #live-settings-section,
.live-content > #live-home-section {
  padding: 0;
  border: 0;
  background: transparent;
}
.live-home-grid {
  display: grid;
  grid-template-columns: minmax(450px, 1fr) minmax(0px, 530px);
  gap: 18px;
  align-items: start;
}
/* On Home the task card reaches down to the footer, leaving the same margin
   below it as the page's left padding; the open list fills the extra height
   and scrolls. A window too short for that grows the page as before. */
#account-section .live-workspace:has(> #account-content > #live-home-section:not([hidden])) { display: flex; flex-direction: column; min-height: 100vh; }
#account-content:has(> #live-home-section:not([hidden])) { display: flex; flex-direction: column; flex: 1 0 auto; width: 100%; margin-block: 0; padding-bottom: 28px; }
#account-content > #live-home-section:not([hidden]), #live-legacy-home, #live-personal-home-grid { display: flex; flex-direction: column; flex: 1 0 auto; }
#account-content > #live-home-section:not([hidden]) { margin-block: 0; }
/* The gap above the task card equals the page's side padding. */
#account-content:has(> #live-home-section:not([hidden])) > .live-page-head { margin-bottom: 28px; }
#live-personal-home-grid { display: grid; }
#live-personal-home-grid > .live-home-main { display: flex; flex-direction: column; align-self: stretch; }
.live-home-main > .live-home-panel:not([hidden]), #live-home-tab-slot:has(> .live-home-panel:not([hidden])), #live-home-tab-slot > .live-home-panel:not([hidden]) { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; }
.live-home-main .live-home-list-scroll { flex: 1 1 0; min-height: 8rem; max-height: none; }
.live-home-side { display: grid; gap: 18px; min-width: 0; }
.live-home-side[hidden] { display: none; }
.live-home-side .live-home-panel > h2 { margin-top: 0; }
/* In tab mode the tab names the panel, so its own heading is not repeated. */
#live-home-tab-slot .live-home-panel > h2 { display: none; }
.live-home-card {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
/* Add stays in view: the list scrolls, and on a window too short even for
   that the action row sticks to the bottom of the viewport inside the card. */
.live-home-actions { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 4px -20px -18px; padding: 12px 20px 18px; border-radius: 0 0 12px 12px; background: var(--surface); }
/* The page navigator shares the Add row: centred on the list, Add on the right.
   Only the open tab's navigator shows. */
.live-home-actions > .live-home-pager { grid-column: 2; grid-row: 1; margin-top: 0; }
.live-home-actions > #live-add-task { grid-column: 3; grid-row: 1; justify-self: end; }
.live-home-card:has(#live-home-focus-panel[hidden]) #live-home-focus-pager,
.live-home-card:has(#live-home-followups-panel[hidden]) #live-home-waiting-pager { display: none; }
#live-top-add-task, #live-add-task { min-height: 2.35rem; padding-block: .35rem; }
.live-home-tab-header {
  position: relative;
  /* Above the lists' sticky sort rows, so the search popup covers them. */
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.live-home-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
}
/* Search and Status sit on the Home heading row, their right edge on the
   task panel's right edge; above the lists' sticky rows so the popup covers
   them. Other views share the heading row, so there they are not shown. */
.live-home-header-tools {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
/* An action row with nothing shown takes no gap, so the tools reach the edge. */
.live-page-actions:not(:has(> :not([hidden]))) { display: none; }
/* Search, Category and Status show only on Home (the Task Summary). */
#account-content:has(> #live-home-section[hidden]) > .live-page-head > .live-home-header-tools,
#account-content:has(#live-legacy-home[hidden], #live-personal-home-grid[hidden]) > .live-page-head > .live-home-header-tools { display: none; }
#live-category-filter-label[hidden], #live-project-filter-label[hidden] { display: none; }
/* The page title lives in the top bar; the breadcrumb row shows nothing. */
.live-breadcrumb:not(:has(> :not([hidden]))) { display: none; }
/* The Home icon sits just left of the page title in the top bar. */
.live-topbar > #live-nav-home { margin-right: -4px; }
/* The title takes focus on navigation for screen readers; it draws no outline. */
#live-page-title:focus, #live-page-title:focus-visible { outline: none; }
#live-category-filter, #live-project-filter {
  min-height: 2.35rem;
  padding-block: .35rem;
  border-color: var(--accent);
  color: var(--accent);
}
@media (min-width: 901px) {
  #account-content:has(> #live-home-section:not([hidden])) > .live-page-head {
    display: grid;
    grid-template-columns: minmax(450px, 1fr) minmax(0px, 530px);
    align-items: center;
    column-gap: 18px;
  }
  #account-content:has(> #live-home-section:not([hidden])) > .live-page-head > * { grid-row: 1; }
  #account-content:has(> #live-home-section:not([hidden])) > .live-page-head > .live-breadcrumb { grid-column: 1; }
  #account-content:has(> #live-home-section:not([hidden])) > .live-page-head > .live-home-header-tools { grid-column: 1; justify-self: end; }
  #account-content:has(> #live-home-section:not([hidden])) > .live-page-head > .live-page-actions { grid-column: 2; justify-self: end; }
}
.live-home-search-toggle, #live-home-status-filter {
  min-height: 2.35rem;
  padding-block: .35rem;
  border-color: var(--accent);
  color: var(--accent);
}
.live-home-search-toggle { display: inline-grid; place-items: center; padding-inline: .5rem; }
.live-home-search-toggle[aria-expanded="true"] { background: var(--tint); }
.live-home-search-popup {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  width: min(22rem, calc(100vw - 2.5rem));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgb(32 38 48 / 18%);
}
.live-home-search-popup label { display: block; margin-bottom: .35rem; font-weight: 600; }
.live-home-search-fields { display: flex; gap: 6px; }
.live-home-search-fields input { flex: 1; min-width: 0; min-height: 2.35rem; padding-block: .35rem; }
.live-home-search-fields button { min-height: 2.35rem; padding-block: .35rem; }
.live-home-search-popup p { margin: .4rem 0 0; color: var(--due-passed); font-size: .85rem; }
/* Tabs are 40% of a standard button's 2.65rem height, so more cards fit.
   Half the card's 18px top padding moves inside the tab as highlight, so
   the tab text stays where it was. */
.live-home-main { padding-top: 9px; }
.live-home-tabs button {
  min-width: 8.5rem;
  height: calc(1.06rem + 9px);
  min-height: calc(1.06rem + 9px);
  padding-block: 9px 0;
  line-height: 1.06rem;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  white-space: nowrap;
  text-align: center;
  font-weight: 600;
}
.live-home-tabs button[aria-selected="true"] {
  color: var(--accent);
  background: var(--tint);
  box-shadow: inset 0 -3px var(--accent);
}
/* Retire the unapproved general account-task page; retain Home-selected overview. */
.live-shell.account-overview-only #live-nav-tasks,
.live-shell.account-overview-only #live-open-tasks,
.live-shell.account-overview-only #live-settings-open-tasks,
.live-shell.account-overview-only #live-top-add-task,
#supabase-tasks-section.account-overview-only > :not(#account-task-preview),
#account-task-preview.account-overview-only > :not(#account-task-overview),
#account-task-preview.account-overview-focused > :not(#account-task-overview) {
  display: none !important;
}
/* Keep the legacy-task wrapper visible so its selected overview or editor can render. */
#supabase-tasks-section.task-overview-focused > :not(#live-legacy-tasks),
#supabase-tasks-section.task-edit-focused > :not(#live-legacy-tasks),
#supabase-tasks-section.task-overview-focused > #live-legacy-tasks > :not(#supabase-task-detail-section),
#supabase-tasks-section.task-edit-focused > #live-legacy-tasks > :not(#supabase-task-edit-section):not(#supabase-task-status) {
  display: none !important;
}
#supabase-tasks-section > .live-task-capture {
  margin-block: 1.25rem;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.live-task-capture h3 { margin-top: 0; }
.live-task-capture form { display: grid; gap: .75rem; align-items: start; }
.live-task-capture form label { min-width: 0; }
.live-task-capture form input,
.live-task-capture form textarea { width: 100%; }
.live-task-capture form button { justify-self: start; }
#supabase-task-timing,
#supabase-task-edit-timing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: .75rem;
  margin: .25rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
#supabase-task-timing legend,
#supabase-task-edit-timing legend { font-weight: 700; }
#supabase-task-timing label,
#supabase-task-edit-timing label { min-width: 0; }
#supabase-task-timing input,
#supabase-task-edit-timing input { width: 100%; }
#supabase-task-timing p,
#supabase-task-edit-timing p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}
.live-navigation { display: grid; gap: .4rem; }
.live-navigation button {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 600;
}
.live-navigation button .live-nav-count {
  margin-left: .5rem;
  min-width: 1.4rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.live-navigation button .live-nav-count[hidden] { display: none; }
.live-navigation button[aria-current="page"] {
  background: var(--tint);
  color: var(--accent);
}
.live-documents { display: grid; gap: .75rem; }
.live-documents > p { margin: 0; color: var(--muted); }
#live-documents-panel { display: grid; gap: .75rem; justify-items: start; }
#live-documents-panel .account-document-links-scroll { justify-self: stretch; }
#live-documents-panel caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.live-inbox { display: grid; gap: .75rem; }
.live-inbox > p { margin: 0; color: var(--muted); }
#live-inbox-panel { display: grid; gap: .75rem; justify-items: start; }
.pending-decision-list {
  display: grid;
  gap: .75rem;
  justify-self: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pending-decision-list > li {
  display: grid;
  gap: .25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.pending-decision-list p { margin: 0; overflow-wrap: anywhere; }
.pending-decision-list time { color: var(--muted); }
/* A row is a grid, which would stretch its button across the row. */
.pending-decision-list button { justify-self: start; }
.live-activity { display: grid; gap: .75rem; }
.live-activity > p { margin: 0; color: var(--muted); }
#live-activity-panel { display: grid; gap: .75rem; justify-items: start; }
.account-activity-list {
  display: grid;
  gap: .75rem;
  justify-self: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-activity-list > li {
  display: grid;
  gap: .25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.account-activity-list p { margin: 0; overflow-wrap: anywhere; }
.account-activity-list time { color: var(--muted); }
.account-activity-list ul { margin: 0; padding-left: 1.25rem; overflow-wrap: anywhere; }
.live-projects { display: grid; gap: .75rem; }
.live-projects > p { margin: 0; color: var(--muted); }
#live-projects-panel, .account-projects-list { display: grid; gap: .75rem; }
#live-projects-panel form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
#live-projects-panel > button { justify-self: start; }
.account-project {
  display: grid;
  gap: .5rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
}
.account-project h2 { margin: 0; font-size: 1.125rem; }
.account-project h2 .account-project-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  min-height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}
.account-project h2 .account-project-toggle::before {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s;
}
.account-project h2 .account-project-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.account-project-body { display: grid; gap: .5rem; }
.account-project-body[hidden] { display: none; }
.account-project p { margin: 0; }
.account-project ul { display: grid; margin: 0; padding: 0; list-style: none; }
.account-project li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .5rem;
  align-items: center;
  min-height: 2rem;
  padding: .125rem 0;
  border-bottom: 1px solid var(--line);
}
.account-project li:last-child { border-bottom: 0; }
.account-project li span { overflow-wrap: anywhere; }
.account-project li small { color: var(--muted); white-space: nowrap; }
.account-project li > .account-project-remove {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  min-height: 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}
.account-project li > .account-project-remove:hover { border-color: #b42318; color: #b42318; }
@media (max-width: 500px) {
  .account-project li { grid-template-columns: minmax(0, 1fr) auto; }
  .account-project li small { grid-column: 1; grid-row: 2; white-space: normal; }
  .account-project li > .account-project-remove { grid-column: 2; grid-row: 1 / span 2; }
}
.live-navigation-unavailable {
  display: grid;
  gap: .15rem;
  padding: .65rem .75rem;
  color: var(--muted);
  font-weight: 600;
}
.live-navigation-unavailable small {
  font-size: .75rem;
  font-weight: 400;
}
#live-home-tasks, #live-home-waiting, #live-home-today, #supabase-tasks-list {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-wrap: anywhere;
}
#live-home-tasks li, #live-home-waiting li, #live-home-today li, #supabase-tasks-list li {
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
}
/* Home cards: half the standard space above the title and below the
   category/due line. */
#live-home-tasks li, #live-home-waiting li, #live-home-today li { padding-block: .35rem; }
#supabase-tasks-list button { margin: .2rem; }
.live-task-detail {
  margin-block: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.live-task-detail-header { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .5rem; }
.live-task-detail h3 { margin: .5rem 0; }
.live-task-detail-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.live-task-detail-actions button { display: inline-grid; place-items: center; width: 2.65rem; min-width: 2.65rem; padding: .45rem; }
.live-task-detail-actions svg { display: block; width: 1.4rem; height: 1.4rem; }
#account-task-edit-title-label { flex: 1 1 16rem; min-width: 0; margin: 0; font-size: 28px; line-height: 1.25; font-weight: 600; }
#account-task-edit-title-label input { display: block; width: 100%; margin: 0; font: inherit; }
#account-task-edit-form .live-task-requirement { border: 0; border-radius: 0; padding: 0; background: transparent; }
#account-task-edit-delegate .account-task-new-delegate { margin-left: 10px; margin-right: 10px; }
#account-task-edit-form { display: grid; gap: .7rem; padding: .25rem .35rem .6rem; }
#account-task-edit-form[hidden] { display: none; }
#account-task-overview-heading { font-size: 28px; line-height: 1.25; margin: 0; flex: 1 1 16rem; min-width: 0; }
#account-task-tabs > button, #account-task-tabs > span { padding-block: .15rem; }
/* Let the compact tab padding determine height, not the global form-control minimum. */
#account-task-tabs > button { min-height: 0; }
#account-task-tabs button[aria-pressed="true"] { background: var(--tint); color: var(--accent); font-weight: 700; }
#account-task-activity-panel[hidden],
#account-task-overview-panel[hidden], #account-task-documents-panel[hidden],
.live-task-detail-sections[hidden] { display: none; }
#account-task-overview { position: relative; }
#account-task-edit-form .live-task-requirement label { display: block; font-weight: 600; margin-bottom: .4rem; }
#account-task-edit-description { display: block; width: 100%; min-height: 6rem; resize: vertical; font: inherit; }
#account-task-overview .live-task-facts { row-gap: .75rem; align-items: center; }
#account-task-overview .live-task-facts dd { text-align: left; }
#account-task-edit-form .live-task-facts select {
  min-width: min(100%, 14rem);
  min-height: 0;
  padding-block: .25rem;
  font: inherit;
}
#account-task-edit-form .live-task-facts input[type="checkbox"] {
  display: block;
  width: .875rem;
  height: .875rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}
#account-task-edit-form .account-task-edit-checkbox {
  display: flex;
  align-items: center;
  min-height: 2.65rem;
}
.account-task-edit-deadline-fields {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 9rem);
  align-items: center;
  gap: .5rem;
  width: min(100%, 21.5rem);
}
#account-task-edit-form .account-task-edit-deadline-fields input { width: 100%; min-width: 0; }
.account-task-edit-actions { display: flex; justify-content: flex-end; gap: .5rem; }
#supabase-task-detail-back svg { filter: drop-shadow(0 .12rem .05rem var(--line)); }
.live-task-overview-content { display: grid; gap: .4rem; padding: .25rem .35rem .6rem; }
.live-task-detail-sections { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .35rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; font-size: .78rem; }
.live-task-detail-sections strong, .live-task-detail-sections span, .live-task-detail-sections button { border-radius: .4rem; padding: .3rem .45rem; }
.live-task-detail-sections strong { background: var(--tint); color: var(--accent); }
.live-task-detail-sections span { color: var(--muted); background: var(--soft); }
.live-task-detail-sections button { margin: 0; font: inherit; }
.live-task-overview-content p { margin: 0; overflow-wrap: anywhere; }
.live-task-requirement {
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
}
.live-task-requirement h4 { margin: 0 0 .4rem; }
.live-task-facts {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: .4rem .75rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.live-task-facts dt { color: var(--muted); font-weight: 600; }
.live-task-facts dd { margin: 0; }
.live-task-scope { color: var(--muted); font-size: .85rem; }
@media (max-width: 42rem) {
  .live-task-facts { grid-template-columns: 1fr; }
  .live-task-facts dd { margin-bottom: .4rem; }
  #account-task-overview .live-task-facts {
    grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr);
  }
  #account-task-overview .live-task-facts dd { margin-bottom: 0; }
  .account-task-edit-deadline-fields { grid-template-columns: minmax(0, 1fr); }
}
/* Shared task row from the developed walkthrough, fed by confirmed live data. */
#live-home-tasks .row, #live-home-waiting .row, #live-home-today .row, #supabase-tasks-list .row { display: grid; gap: .35rem; }
/* Home cards: a title line then a category/due line, half the usual gap apart. */
#live-home-tasks .row, #live-home-waiting .row, #live-home-today .row { gap: .175rem; }
#live-home-tasks .row-title, #live-home-waiting .row-title, #live-home-today .row-title, #supabase-tasks-list .row-title { display: flex; justify-content: space-between; gap: .75rem; font-weight: 650; }
#live-home-tasks .row-title, #live-home-waiting .row-title, #live-home-today .row-title { align-items: flex-start; }
#live-home-summary { margin-block-end: .25rem; }
/* Ten rows a page; the list scrolls rather than pushing Add out of view. */
.live-home-list-scroll { max-height: max(8rem, calc(100dvh - 24rem)); overflow-y: auto; scrollbar-gutter: stable; padding-inline-end: 12px; }
/* The count sits on the sort buttons' line: it overlaps the top of the list's
   sticky sort row, drawn above it, and lets clicks through to the buttons. */
#live-home-focus-panel:has(> .live-home-list-scroll > .live-home-sort-row:not([hidden])):has(> #live-home-error[hidden]):has(> #live-home-priority-status[hidden]) > #live-home-summary,
#live-home-followups-panel:has(> .live-home-list-scroll > .live-home-sort-row:not([hidden])):has(> #live-home-waiting-error[hidden]) > #live-home-waiting-summary {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 2rem;
  margin-block: 0 -2rem;
  padding-inline-end: calc(4rem + 10px + .7rem + 1px + 12px + 1rem);
  pointer-events: none;
}
/* The sort buttons sit over the rows' I and U buttons: the same size and gap,
   inset by the row's padding and border, and kept in view as the list scrolls. */
.live-home-sort-row { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 10px; padding: 0 calc(.7rem + 1px) .3rem; background: var(--surface); }
.live-home-sort-row[hidden] { display: none; }
.live-home-sort-row button { position: relative; display: grid; place-items: center; width: 2rem; min-width: 2rem; height: 2rem; min-height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: .25rem; background: var(--surface); color: var(--ink); font-weight: 700; }
.live-home-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem; margin-top: .75rem; }
.live-home-pager[hidden] { display: none; }
.live-home-pager button { min-width: 2.2rem; min-height: 2.2rem; padding: .2rem .5rem; }
.live-home-pager button[aria-current="page"] { border-color: var(--accent); background: var(--tint); color: var(--accent); font-weight: 700; opacity: 1; }
.live-home-pager span { color: var(--muted); }
.live-home-sort-icon { display: block; width: 1.1rem; height: 1.1rem; background: currentColor; -webkit-mask: url("/sort-5a24f35dc12bd66e.png") center / contain no-repeat; mask: url("/sort-5a24f35dc12bd66e.png") center / contain no-repeat; }
.live-home-sort-row button[data-sort-direction="asc"]::after, .live-home-sort-row button[data-sort-direction="desc"]::after { position: absolute; right: -.15rem; bottom: -.2rem; padding: 0 .1rem; background: var(--surface); font-size: .7rem; line-height: 1; }
.live-home-sort-row button[data-sort-direction="asc"]::after { content: "↑"; }
.live-home-sort-row button[data-sort-direction="desc"]::after { content: "↓"; }
.live-home-sort-row button[data-sort-primary="true"] { border-color: var(--accent); color: var(--accent); }
#live-home-tasks .row-title > .actions, #live-home-waiting .row-title > .actions, #live-home-today .row-title > .actions { display: flex; flex: none; gap: 10px; }
.live-home-task-link { color: var(--ink); text-decoration: none; }
.live-home-task-link:hover { text-decoration: underline; }
.live-home-priority-toggle {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 1px solid #172027;
  border-radius: .25rem;
  color: #172027;
  font-size: .85rem;
  font-weight: 750;
}
.live-home-priority-toggle.priority-high { background: rgb(240 135 135 / 50%); }
.live-home-priority-toggle.priority-low { background: rgb(144 240 135 / 50%); }
.live-home-priority-toggle:disabled { opacity: .6; }
.live-due-date { font-weight: 700; }
.live-due-date-near { color: var(--due-near); }
.live-due-date-passed { color: var(--due-passed); }
#live-home-tasks .row-meta, #live-home-waiting .row-meta, #live-home-today .row-meta, #supabase-tasks-list .row-meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; color: var(--muted); font-size: .8rem; }
/* Home cards: category and due date sit under the title in a light weight,
   the due date on the right under the I and U buttons. */
#live-home-tasks .live-due-date, #live-home-waiting .live-due-date, #live-home-today .live-due-date { margin-left: auto; text-align: right; }
/* Home cards are a two-column grid: the title over the category on the left,
   the I and U buttons on the right spanning both lines. The category/due line
   is pushed to the bottom, so the due date sits just left of I, bottom-aligned
   with it, and the category shares that bottom line under the title. */
#live-home-tasks .row, #live-home-waiting .row, #live-home-today .row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
#live-home-tasks .row-title, #live-home-waiting .row-title, #live-home-today .row-title { display: contents; }
#live-home-tasks .row-title > :first-child, #live-home-waiting .row-title > :first-child, #live-home-today .row-title > :first-child { grid-column: 1; grid-row: 1; }
#live-home-tasks .row-title > .actions, #live-home-waiting .row-title > .actions, #live-home-today .row-title > .actions { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
#live-home-tasks .row-meta, #live-home-waiting .row-meta, #live-home-today .row-meta { grid-column: 1; grid-row: 2; align-self: end; align-items: flex-end; line-height: 1.25; }
#live-home-tasks .row-meta, #live-home-waiting .row-meta, #live-home-today .row-meta, #live-home-tasks .row-meta .live-due-date, #live-home-waiting .row-meta .live-due-date, #live-home-today .row-meta .live-due-date { font-weight: 300; }
.live-home-status-filter { width: auto; }
.live-home-search-active { display: flex; align-items: center; gap: .3rem; margin: -.4rem 0 .6rem; color: var(--muted); font-size: .8rem; }
.live-home-search-active q { color: var(--ink); }
.live-home-search-clear { display: inline-grid; place-items: center; width: 1.5rem; min-width: 1.5rem; height: 1.5rem; min-height: 1.5rem; padding: 0; border-color: var(--line); border-radius: 50%; color: var(--muted); line-height: 1; }
#live-home-tasks .row-controls, #live-home-waiting .row-controls, #live-home-today .row-controls, #supabase-tasks-list .row-controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.task-filter {
  display: inline-grid;
  gap: .3rem;
  margin: .75rem 0 0 .75rem;
  font-weight: 600;
}
#supabase-filter-summary { color: var(--muted); }
.live-unsaved-dialog {
  width: min(30rem, calc(100% - 2rem));
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1rem 3rem #10182355;
}
.live-unsaved-dialog::backdrop { background: #10182388; }
.live-unsaved-dialog h2 { margin-top: 0; }
.live-authenticator-dialog form { display: grid; gap: 10px; }
.live-authenticator-dialog img { max-width: 100%; height: auto; justify-self: center; }
.live-authenticator-dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.live-authenticator-dialog button { margin-top: 10px; }
#live-settings-device-backup-form:not([hidden]) {
  display: grid;
  gap: .65rem;
  margin-block: 1rem;
}
#live-settings-device-backup-form input { max-width: 100%; }
/* A backup passphrase is not the site password: the field is a text input, so
   password managers leave it alone, and this rule keeps what is typed hidden.
   passphrase-field.mjs falls back to a password input where it has no effect. */
.passphrase-field { -webkit-text-security: disc; }
#live-settings-device-backup-form button { justify-self: start; }
.live-unsaved-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
#live-discard-signout { border-color: var(--accent); color: var(--accent); font-weight: 700; }
@media (max-width: 900px) {
  .live-home-grid, .live-setup-grid, .live-access-grid { grid-template-columns: 1fr; }
  /* Four equal tabs share the card: names may wrap rather than overflow. */
  .live-home-tabs { flex: 1 1 100%; }
  /* A label that wraps on a narrow screen grows its tab rather than spilling. */
  .live-home-tabs button { min-width: 0; height: auto; white-space: normal; }
}
@media (max-width: 1100px) {
  .live-shell { display: block; }
  #site-access .live-sidebar { display: flex; position: static; width: auto; min-height: 0; height: auto; box-shadow: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  #site-access .live-sidebar small { display: none; }
  .live-topbar { position: relative; padding: 10px 14px; flex-wrap: wrap; }
  .live-content { padding: 18px 14px; }
  #account-content:has(> #live-home-section:not([hidden])) { padding-bottom: 14px; }
  #account-content:has(> #live-home-section:not([hidden])) > .live-page-head { margin-bottom: 14px; }
}
#account-document-links-preview,
#account-document-link-form {
  margin-block-start: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
}
#account-document-links-preview { margin-block-start: calc(1rem + 10px); }
#account-document-links-preview h4,
#account-document-link-form h4 { margin-block-start: 0; }
.account-document-links-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 2.65rem;
  margin-block: 0 .25rem;
}
.account-document-links-summary p { margin: 0; }
#account-document-links-load,
#live-categories-refresh {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  min-width: 2.65rem;
  height: 2.65rem;
  padding: .45rem;
}
#account-document-links-load svg,
#live-categories-refresh svg { display: block; width: 1.4rem; height: 1.4rem; }
.account-document-links-scroll { max-width: 100%; overflow-x: auto; }
.account-document-links-grid,
.account-documents-grid {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  text-align: left;
}
.account-document-links-grid th,
.account-document-links-grid td,
.account-documents-grid th,
.account-documents-grid td {
  padding: .7rem .6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.account-document-links-grid th,
.account-documents-grid th { background: var(--soft); }
.account-document-links-grid td:first-child,
.account-documents-grid td:first-child { font-weight: 600; }
/* One task's links: four columns at fixed shares of the table. */
.account-document-links-grid { table-layout: fixed; }
.account-document-links-grid th:nth-child(1) { width: 32%; }
.account-document-links-grid th:nth-child(2) { width: 18%; }
.account-document-links-grid th:nth-child(3) { width: 16%; }
.account-document-links-grid th:nth-child(4) { width: 34%; }
.account-document-links-grid td:nth-child(3) { white-space: nowrap; }
.account-document-links-grid a { word-break: break-all; }
/* The Documents view: columns take the room their content needs, so no column
   is left without any. Fixed shares here once hid the Link column entirely. */
.account-documents-grid td:nth-child(3),
.account-documents-grid td:nth-child(4),
.account-documents-grid button { white-space: nowrap; }
#account-document-link-form { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
#account-document-link-form label { display: grid; gap: .25rem; min-width: 0; }
#account-document-link-form button { justify-self: start; }
#account-document-link-form input[type="url"],
#account-document-link-form input[name="sourceLabel"] { width: 100%; max-width: 100%; }

@media (max-width: 42rem) {
  .live-settings-overview-cards, .live-settings-connection-cards { grid-template-columns: 1fr; }
  #signup-form, #login-form { display: grid; }
  #signup-form label, #login-form label,
  #signup-form button, #login-form button { width: 100%; }
  #site-access .live-content,
  .live-access-primary,
  #signup-section,
  #login-section { padding-inline: 8px; }
}
/* Connections: compact services, full-width mail rows and 10px control clearance. */
#live-settings-connections-section { --connection-gap: 10px; }
#live-approved-settings-connections { margin-block: 10px; }
#live-email-accounts, #live-deadline-connection { width: 100%; padding: 10px; }
#live-deadline-preferences-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#live-deadline-connection label { display: flex; align-items: flex-start; gap: 10px; flex-basis: 100%; margin: 0; }
#live-deadline-connection input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 0; }
#live-deadline-connection button { margin: 0; min-height: 44px; }
#live-deadline-email-setup, #live-deadline-sms-setup { margin-top: 10px; }
#live-deadline-connection label + button { margin-top: 10px; }
#live-email-accounts-list { list-style: none; padding: 0; }
#live-email-accounts-list .email-account-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 2fr) repeat(3, 44px);
  align-items: center; gap: 10px; padding: 10px; margin-block: 10px;
}
.email-account-name-form { display: contents; }
.email-account-name { grid-column: 1; grid-row: 1; min-width: 0; }
.email-account-name input { width: 100%; min-width: 0; }
.email-account-address { grid-column: 2; grid-row: 1; overflow-wrap: anywhere; min-width: 0; }
.email-save { grid-column: 3; grid-row: 1; }
.email-connection { grid-column: 4; grid-row: 1; }
.email-ai { grid-column: 5; grid-row: 1; }
.email-account-detail { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--muted); }
.email-icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 9px; margin: 0; background: var(--surface); }
.control-icon, .control-icon svg { display: block; width: 24px; height: 24px; }
.email-icon-button.is-allowed { color: #18733b; }
.email-icon-button.is-disconnected { color: #b42318; }
.email-icon-button.is-denied { color: #000; background: #fff; }
#live-settings-connections-section .live-setup-actions { gap: 10px; margin-block: 10px; }
@media (max-width: 650px) {
  #live-email-accounts-list .email-account-row { grid-template-columns: repeat(3, 44px) minmax(0, 1fr); }
  .email-account-name { grid-column: 1 / -1; }
  .email-account-address { grid-column: 1 / -1; grid-row: 2; }
  .email-save { grid-column: 1; grid-row: 3; }
  .email-connection { grid-column: 2; grid-row: 3; }
  .email-ai { grid-column: 3; grid-row: 3; }
}
/* Shared delegation/signature editor. Frame follows the selected accent hue. */
.message-editor-modal {
  position: relative;
  width: min(46rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border: 8px solid var(--accent);
  border-color: hsl(from var(--accent) h s 20%);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface);
  color: var(--ink);
}
.message-editor-modal::backdrop { background: rgb(0 0 0 / 45%); }
.message-editor-modal h2 { padding-right: 3rem; }
.message-editor-close { position: absolute; top: .6rem; right: .6rem; }
.message-editor-field { display: grid; gap: .3rem; margin: 10px; min-width: 0; }
.message-editor-field input { width: 100%; min-width: 0; }
.message-editor-toolbar { display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem; background: var(--soft); }
.message-editor-toolbar button, .message-editor-close, .message-editor-send {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
}
.message-editor-body {
  min-height: 14rem; max-height: 45dvh; overflow: auto;
  padding: 1rem; border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.message-editor-send { margin-top: .75rem; }
@media (max-width: 350px) {
  #site-access .live-content { padding-inline: 4px; }
  .live-access-primary,
  #signup-section,
  #login-section { padding-inline: 0; }
}

.live-chase-error:not(:empty) { color: var(--danger, #b00020); }
.live-task-chase { display: grid; gap: .25rem; }
.live-task-chase label { display: flex; gap: .5rem; align-items: center; }

/* Presentation-only makeover: spacing, hierarchy and readable line lengths.
   Additive and scoped; no control, copy or behaviour is changed here. */
.live-content > section > h2 { margin-block: 0 .75rem; }
.live-content > section > h3 { margin-block: 1.25rem .5rem; }
.live-content p, .live-setup-panel p, .live-access-primary p { line-height: 1.6; }
.live-page-head h2 { margin-block-end: .25rem; }
.live-page-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.live-home-card h3, .live-home-card h4 { margin-block: 0 .35rem; }
.live-primary { font-weight: 650; }
.live-documents ul, .live-documents ol { padding-left: 1.25rem; }
.live-documents li { margin-block: .5rem; }
.live-documents a { text-underline-offset: .2em; }
.live-setup-panel h2, .live-access-checklist h2 { font-size: 1.2rem; }
.live-setup-actions { margin-block-start: 1rem; }
#login-section h2, #signup-section h2, #pending-section h2 { margin-block-start: 0; }
#login-section form, #signup-section form { gap: 1rem; }
.live-site-footer { font-size: .9rem; color: var(--muted); }
@media (max-width: 40rem) {
  .live-page-actions, .live-setup-actions { gap: .5rem; }
}

/* Task controls: the saved state needs no note. */
#live-settings-preferences-note:empty { display: none; }

/* Categories on a narrow screen: each row is a card, the name on top and the
   sender with its Save, Sig and Delete buttons in one aligned row below. */
@media (max-width: 40rem) {
  .live-category-column-headings { display: none; }
  .live-category-row:has(> .live-category-edit-form) {
    grid-template-columns: minmax(0, 1fr) repeat(3, 42px);
    grid-template-rows: auto auto;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: .6rem;
    background: var(--soft);
  }
  .live-category-row > .live-category-edit-form { grid-column: 1 / -1; grid-row: 1 / 3; grid-template-rows: subgrid; }
  .live-category-edit-form > input { grid-column: 1 / -1; grid-row: 1; }
  .live-category-edit-form > select { grid-column: 1; grid-row: 2; }
  .live-category-edit-form > button { grid-column: 2; grid-row: 2; justify-self: stretch; }
  .live-category-edit-form > button:last-child { grid-column: 3; }
  .live-category-row:has(> .live-category-edit-form) > button { grid-column: 4; grid-row: 2; }
}

/* Chase schedule: a default card, then before and after the deadline side by
   side. Every reminder is one row of equal height: checkbox and name on the
   left, its timing on the right. Labels opt out of the generic form-label grid
   and its 13rem minimum so a row never wraps on a wide card. */
.live-chase-schedule { display: grid; gap: 16px; max-width: 64rem; padding: 0; border: 0; background: transparent; }
.live-chase-card { display: grid; align-content: start; gap: 0; min-width: 0; margin: 0; padding: 16px 18px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.live-chase-default { padding-bottom: 16px; }
.live-chase-card > legend { float: left; width: 100%; margin: 0; padding: 0 0 .6rem; font-weight: 650; font-size: 1rem; border-bottom: 1px solid var(--line); }
.live-chase-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 16px; align-items: stretch; }
.live-chase-schedule label.live-chase-toggle,
.live-chase-schedule label.live-chase-days { display: flex; align-items: center; gap: .75rem; min-width: 0; margin: 0; }
.live-chase-schedule .live-chase-toggle { font-weight: 600; }
.live-chase-toggle input[type="checkbox"] { width: 1.2rem; height: 1.2rem; min-height: 0; flex: 0 0 1.2rem; margin: 0; padding: 0; accent-color: var(--accent); }
.live-chase-default .live-chase-toggle { align-items: flex-start; }
.live-chase-default .live-chase-toggle input[type="checkbox"] { margin-top: .15rem; }
.live-chase-default .live-chase-toggle span { display: grid; gap: .2rem; }
.live-chase-default strong { font-size: 1rem; }
.live-chase-default small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.live-chase-schedule .live-chase-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1rem; min-height: 3.5rem; padding-block: .45rem; border-top: 1px solid var(--line); }
.live-chase-card > legend + .live-chase-slot { border-top: 0; }
.live-chase-schedule label.live-chase-slot { display: flex; }
.live-chase-schedule label.live-chase-slot > span { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; }
.live-chase-slot small { padding: .15rem .55rem; border-radius: 999px; background: var(--soft); color: var(--muted); font-weight: 500; font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-chase-schedule .live-chase-days { justify-self: end; gap: .5rem; color: var(--muted); font-weight: 400; white-space: nowrap; }
.live-chase-days input[type="number"] { width: 4rem; min-height: 2.3rem; margin: 0; padding-block: .3rem; text-align: center; font-variant-numeric: tabular-nums; }
.live-chase-error:not(:empty) { grid-column: 1 / -1; padding-bottom: .3rem; font-size: .85rem; }
.live-chase-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 12px 16px; border-radius: 12px; background: var(--soft); }
.live-chase-footer p { flex: 1 1 24rem; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.live-chase-footer button { min-width: 8rem; }

/* Connections: Check Access and Replace authenticator side by side; one
   service panel at a time, chosen by the large buttons. */
.live-connections-access { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 10px; }
.live-connections-access button { margin: 0; }
#live-settings-connections-section > [data-connection-panel].connection-unselected { display: none; }
.live-email-steps { display: grid; gap: 10px; margin: .75rem 0; padding: 0; list-style: none; counter-reset: email-step; }
.live-email-steps > li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .75rem; row-gap: .15rem; align-items: start; counter-increment: email-step; }
.live-email-steps > li::before { content: counter(email-step); grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tint); color: var(--accent); font-weight: 700; }
.live-email-steps > li > span { color: var(--muted); }
/* Each step holds its own controls (connect buttons, the sender list), all in
   the text column beside the step number. */
.live-email-steps > li > * { grid-column: 2; min-width: 0; }
.live-email-steps #live-email-add-account { margin-block: .5rem 0; }
.live-email-steps #live-email-add-account > p { margin-block: .4rem 0; }
.live-email-steps #live-email-provider-actions { margin-block: 0 .25rem; }
.live-email-steps #live-email-accounts-status:empty { display: none; }
.live-email-steps #live-email-accounts-list { margin-block: .5rem 0; }
.live-email-steps > li > button { justify-self: start; margin-top: .35rem; min-height: 2.35rem; padding-block: .3rem; }
#live-email-google-help, #live-email-microsoft-help { margin: .25rem 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 40rem) {
  #live-email-provider-actions button { flex: 1 1 100%; }
  /* On a phone the connect buttons and the sender rows use the full width
     under the step number rather than its narrower text column. */
  .live-email-steps > li > #live-email-add-account,
  .live-email-steps > li > #live-email-accounts-list { grid-column: 1 / -1; }
}

/* Retention: one card per setting, side by side when there is room. */
.live-retention-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 16px; align-items: start; }
.live-retention-card { display: grid; gap: .75rem; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.live-retention-card h4 { margin: 0; font-size: 1.05rem; }
.live-retention-card p { margin: 0; }
.live-retention-card > p:not([role="status"]) { color: var(--muted); }
.live-retention-card [role="status"]:empty { display: none; }
.live-retention-card form { display: grid; gap: .75rem; align-items: start; }
.live-retention-card form label { min-width: 0; }
.live-retention-card input[type="number"] { width: min(100%, 10rem); }
.live-retention-card .live-setup-actions { margin: 0; gap: .5rem; }
.live-retention-card > button { justify-self: start; }
.live-retention-check { display: flex; align-items: center; gap: .6rem; }
form .live-retention-check { display: flex; }
.live-retention-check input[type="checkbox"] { width: 1.2rem; height: 1.2rem; min-height: 0; flex: 0 0 1.2rem; margin: 0; padding: 0; accent-color: var(--accent); }

/* Public entry only. The signed-in workspace keeps its personal appearance. */
body:has(#site-access:not([hidden])) {
  --entry-canvas: #111214;
  --entry-panel: #1b1d20;
  --entry-soft: #25272b;
  --entry-ink: #f8f6f0;
  --entry-muted: #c0beb7;
  --entry-border: #36383d;
  --entry-field: #777981;
  --entry-accent: #ffcf74;
  --entry-action: #ffb442;
  --entry-action-hover: #ffca6f;
  --entry-on-action: #201401;
  --entry-hero: #171612;
  --entry-max: 92rem;
  --entry-gutter: clamp(1rem, 3vw, 3rem);
  background: var(--entry-canvas);
  color-scheme: dark;
}

body:has(#site-access:not([hidden])) .live-skip-link {
  background: var(--entry-panel);
  color: var(--entry-accent);
  outline-color: var(--entry-accent);
}

body:has(#site-access:not([hidden])) > main {
  max-width: none;
  min-height: calc(100vh - 4.5rem);
  background: transparent;
}

#site-access {
  position: relative;
  display: block;
  min-height: 0;
  border: 0;
  color: var(--entry-ink);
}

#site-access a { color: var(--entry-accent); text-underline-offset: .2em; }
#site-access :focus-visible { outline-color: var(--entry-accent); }
#site-access .live-workspace { background: transparent; }

#site-access .live-sidebar {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto max(var(--entry-gutter), calc((100% - var(--entry-max)) / 2 + var(--entry-gutter)));
  display: flex;
  justify-content: center;
  height: 5rem;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

#site-access .live-sidebar small { display: none; }
#site-access .live-brand { gap: .7rem; font-size: 1.125rem; letter-spacing: -.045em; }
#site-access .live-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: .55rem;
  border-radius: .8rem;
  background: var(--entry-action);
  color: var(--entry-on-action);
}

#site-access .live-mark svg { width: 100%; height: 100%; }
#site-access .live-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  max-width: var(--entry-max);
  min-height: 5rem;
  margin: 0 auto;
  padding: .75rem var(--entry-gutter);
  border: 0;
  background: transparent;
}

#site-access .live-topbar h1 {
  grid-column: 2;
  color: var(--entry-muted);
  font-size: .875rem;
  font-weight: 650;
  text-align: center;
}

#site-access .live-topbar a {
  display: inline-flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  gap: .7rem;
  min-height: 2.75rem;
  padding: .55rem 1rem;
  border: 1px solid var(--entry-border);
  border-radius: 2rem;
  background: var(--entry-panel);
  font-weight: 700;
  text-decoration: none;
}

#site-access .live-topbar a::after {
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
  content: "";
}

#site-access .live-topbar a:hover { border-color: var(--entry-accent); }
#site-access .live-content {
  max-width: var(--entry-max);
  margin-inline: auto;
  padding: 0 var(--entry-gutter) 2.5rem;
}

#site-access .live-access-grid { display: block; }
#site-access .live-access-primary {
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  padding: 0;
  border: 0;
  background: transparent;
}

#site-access #public-overview {
  position: relative;
  isolation: isolate;
  align-self: stretch;
  overflow: hidden;
  padding: clamp(1.6rem, 3.5vw, 3.65rem);
  border: 1px solid #7c4d2780;
  border-radius: 1.75rem;
  background:
    radial-gradient(ellipse at 13% 88%, #833c12 0, transparent 60%),
    radial-gradient(ellipse at 98% 8%, #583719 0, transparent 55%),
    var(--entry-hero);
  color: var(--entry-ink);
}

#public-overview::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(#ffd08755 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(140deg, transparent 16%, #000 78%);
  content: "";
}

#public-overview-heading {
  max-width: 17ch;
  margin: 0 0 1.15rem;
  font-size: clamp(2.45rem, 3.75vw, 4.5rem);
  font-weight: 750;
  line-height: .99;
  letter-spacing: -.07em;
  text-wrap: pretty;
}

#public-overview-heading .live-entry-emphasis { color: var(--entry-accent); }

#site-access #public-overview > p {
  max-width: 34ch;
  margin: 0;
  color: #e9ded1;
  font-size: clamp(.975rem, 1.22vw, 1.15rem);
  line-height: 1.55;
}

.live-entry-diagram {
  position: relative;
  min-height: 13.8rem;
  margin-top: 2.6rem;
  isolation: isolate;
}

.live-entry-route {
  position: absolute;
  z-index: -1;
  inset: 1.65rem 10% 2.2rem 9%;
  border: 1px dashed #ffcb7cbf;
  border-radius: 56% 42% 54% 43%;
  transform: rotate(-24deg);
  box-shadow: 0 0 0 1.3rem #ffbc5e16, 0 0 0 2.7rem #ffbc5e0f;
}

.live-entry-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .52rem;
  padding: .52rem .75rem .52rem .54rem;
  border: 1px solid #ffcb7c60;
  border-radius: .85rem;
  background: #241b14;
  color: #fcf1df;
  font-size: .83rem;
  font-weight: 650;
  box-shadow: 0 .8rem 1.7rem #120900a6;
}

.live-entry-node--tasks { top: 3%; left: 0; transform: rotate(-8deg); }
.live-entry-node--projects { top: 38%; right: 0; transform: rotate(8deg); }
.live-entry-node--deadlines { bottom: 5%; left: 9%; transform: rotate(-5deg); }
.live-entry-node i {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: .52rem;
  background: #ffcc63;
  color: #3b2108;
}

.live-entry-node i::after { display: block; content: ""; }
.live-entry-node--tasks i::after {
  width: .55rem;
  height: .3rem;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}

.live-entry-node--projects i { background: #ffa860; }
.live-entry-node--projects i::after {
  width: .7rem;
  height: .54rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: 2px -2px 0 -1px #ffa860, 3px -3px 0 -1px currentColor;
}

.live-entry-node--deadlines i { background: #ffe29b; }
.live-entry-node--deadlines i::after {
  width: .72rem;
  height: .72rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center 24% / 1px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 63% center / 3px 1px no-repeat;
}

.live-entry-auth { container-type: inline-size; min-width: 0; padding-block: .6rem; }
#signin-entry {
  max-width: 22ch;
  margin: 0 0 .55rem;
  font-size: clamp(1.85rem, 3.2vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

#site-access #site-scope {
  max-width: 60ch;
  margin: 0;
  color: var(--entry-muted);
  font-size: .975rem;
}

#site-access #status {
  margin: 1.05rem 0 .65rem;
  color: var(--entry-muted);
  font-size: .875rem;
}

.live-entry-actions { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; margin-block: .3rem 1.15rem; }
.live-entry-actions a { display: inline-flex; align-items: center; min-height: 1.75rem; font-weight: 650; }
.live-entry-actions .live-entry-register { display: none; }
.live-entry-forms { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1rem; }
.live-entry-forms:not(:has(> section:not([hidden]))) { display: none; }
#signup-section { scroll-margin-block-start: .75rem; }

#site-access :is(#login-section, #signup-section, #signin-unavailable, #pending-section, #email-recovery-section, #recovery-section) {
  min-width: 0;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--entry-border);
  border-radius: 1.25rem;
  background: var(--entry-panel);
  box-shadow: 0 .6rem 1.8rem #0003;
}

#site-access #signin-unavailable { margin-top: 1rem; }
#site-access :is(#signup-section, #pending-section, #email-recovery-section, #recovery-section) > h2,
#site-access #login-section > h2 {
  margin: 0 0 1rem;
  font-size: 1.48rem;
  line-height: 1.1;
  letter-spacing: -.035em;
}

#site-access :is(#login-form, #signup-form) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .9rem;
}

#site-access :is(#login-form, #signup-form) label { min-width: 0; font-weight: 650; }
#site-access input:not([type="hidden"]) {
  min-height: 2.85rem;
  border: 1px solid var(--entry-field);
  border-radius: .65rem;
  background: var(--entry-soft);
  font-size: 1rem;
}

#site-access input[type="checkbox"] { min-height: 0; accent-color: var(--entry-action); }
#site-access :is(#login-form, #signup-form) input:not([type="hidden"]) { width: 100%; }
#site-access .live-entry-password-note { margin: -.55rem 0 0; color: var(--entry-muted); font-size: .81rem; }
#site-access :is(#login-captcha, #signup-captcha) {
  display: flex;
  justify-content: safe center;
  min-width: 0;
  overflow-x: auto;
}

#site-access :is(#login-captcha, #signup-captcha) > div {
  flex: none;
  overflow: hidden;
  border-radius: .75rem;
}

#site-access :is(#login-captcha, #signup-captcha):empty { margin-block-start: -.9rem; }

#site-access button {
  min-height: 2.75rem;
  border-color: var(--entry-field);
  border-radius: .7rem;
  background: var(--entry-panel);
  color: var(--entry-accent);
  font-weight: 650;
  white-space: normal;
}

#site-access button:not(:disabled):hover { border-color: var(--entry-accent); background: var(--entry-soft); }
#site-access :is(#signup-form, #verify-form, #recovery-ack-form) button[type="submit"] {
  border-color: var(--entry-action);
  background: var(--entry-action);
  color: var(--entry-on-action);
}

#site-access :is(#signup-form, #verify-form, #recovery-ack-form) button[type="submit"]:not(:disabled):hover {
  border-color: var(--entry-action-hover);
  background: var(--entry-action-hover);
}

#site-access #login-form button[type="submit"] {
  border-color: var(--entry-action);
  color: #ffd085;
}

#site-access #login-form button[type="submit"]:not(:disabled):hover {
  border-color: var(--entry-action-hover);
}

#site-access :is(#login-form, #signup-form) button[type="submit"] { width: 100%; }
.live-entry-provider-buttons {
  display: grid;
  justify-items: center;
  gap: .5rem;
  margin-top: 1.05rem;
}

.live-entry-provider-buttons:not(:has(> button:not([hidden]))),
.live-entry-provider-note:not(:has(> span:not([hidden]))) { display: none; }

#site-access :is(#google-button, #microsoft-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 18.4375rem);
  min-height: 2.75rem;
  padding: 0 .35rem;
  border: 1px solid #747775;
  border-radius: .32rem;
  background: #fff;
  color: #1f1f1f;
}

#site-access :is(#google-button, #microsoft-button):not(:disabled):hover {
  border-color: #747775;
  background: #fff;
  filter: brightness(.94);
}

#site-access :is(#google-button, #microsoft-button) img {
  display: block;
  max-width: 100%;
  height: auto;
  /* Trim the artwork's original border so both buttons have one shared outline. */
  clip-path: inset(2px);
}

#site-access .live-entry-provider-note {
  margin: .65rem 0 .8rem;
  color: var(--entry-muted);
  font-size: .81rem;
  line-height: 1.48;
}

#site-access #email-recovery-progress { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--entry-border); }
#site-access #email-recovery-progress > p { margin: 0 0 .35rem; color: var(--entry-muted); font-size: .85rem; }
#site-access #email-recovery-progress > button {
  min-height: 2rem;
  padding: .34rem .08rem;
  border-color: transparent;
  font-size: .835rem;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .18em;
}

#site-access #restart-signin { margin-bottom: .6rem; }
#site-access #verify-form { margin-block: .85rem; }
.live-entry-guidance {
  display: grid;
  gap: 1.25rem 2.5rem;
  margin-top: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.15rem, 2.6vw, 2rem);
  border: 1px solid var(--entry-border);
  border-radius: 1.25rem;
  background: var(--entry-panel);
  color: var(--entry-muted);
  overflow-wrap: anywhere;
}

#site-access .live-access-checklist { padding: 0; border: 0; background: transparent; }
.live-entry-guidance h2 { margin: 0 0 .6rem; color: var(--entry-ink); font-size: 1.12rem; letter-spacing: -.02em; }
.live-entry-guidance p { margin: .55rem 0; }
.live-entry-guidance ol { margin-block: .5rem; }
body:has(#site-access:not([hidden])) .live-site-footer {
  border-color: var(--entry-border);
  background: var(--entry-panel);
  color: var(--entry-muted);
}

body:has(#site-access:not([hidden])) .live-site-footer a { color: var(--entry-accent); text-underline-offset: .2em; }

@media (min-width: 40rem) {
  .live-entry-guidance { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 40rem) and (max-width: 67.99rem) {
  #site-access #public-overview { display: grid; grid-template-columns: 57% 1fr; gap: 0 1rem; }
  #site-access #public-overview > p { grid-column: 1; }
  .live-entry-diagram { grid-area: 1 / 2 / 3 / 3; min-height: 9rem; margin-top: 0; }
}

@container (min-width: 44rem) {
  .live-entry-forms:has(> #login-section:not([hidden]) + #signup-section:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (width < 44rem) {
  .live-entry-auth:has(#login-section:not([hidden]) + #signup-section:not([hidden])) .live-entry-register {
    display: inline-flex;
  }
}

@media (min-width: 68rem) {
  #site-access .live-access-primary { grid-template-columns: minmax(0, 1fr) minmax(44rem, 1.8fr); }
  #site-access #public-overview { min-height: 34rem; }
}

@media (max-width: 39.99rem) {
  #site-access .live-topbar h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #site-access .live-topbar:has(h1:focus-visible) { outline: 3px solid var(--entry-accent); outline-offset: -3px; }
  #public-overview-heading { font-size: clamp(2.12rem, 7vw, 2.95rem); }
  .live-entry-diagram { display: none; }
}

@media (max-width: 23rem) {
  body:has(#site-access:not([hidden])) { --entry-gutter: .3rem; }
  #site-access .live-topbar { padding-inline: .65rem; }
  #site-access .live-sidebar { left: .65rem; }
  .live-entry-auth > :is(h2, p, .live-entry-actions) { margin-inline: .45rem; }
  #site-access :is(#login-section, #signup-section) { padding-inline: .25rem; }
  #site-access :is(#login-captcha, #signup-captcha) { margin-inline: -.55rem; }
  #site-access :is(#login-section, #signup-section) h2 { padding-inline: .35rem; }
  #site-access :is(#login-form, #signup-form) :is(label, button),
  #site-access :is(.live-entry-password-note, .live-entry-provider-buttons, .live-entry-provider-note, #email-recovery-progress) { margin-inline: .35rem; }
  #site-access :is(#login-form, #signup-form) :is(label, button[type="submit"]) { width: auto; }
}
