/* Chief of Staff: the pages' one stylesheet (app/web/pages.py). Readable on
   an iPhone, full screen in Chief, the Home Screen web app, and in any
   browser on the Mac. Light and dark follow the device. */

:root {
  color-scheme: light dark;
  --text: #1c1c1e;
  --quiet: #636366;
  --line: #d1d1d6;
  --panel: #f2f2f7;
  --page: #ffffff;
  --accent: #0a66d6;
  --accent-text: #ffffff;
  --danger: #c4231b;
  /* The dashboard's (S12) */
  --flag: #c95608;
  --ok: #1d7a35;
  --tint: #e6effb;
  --sheet: #ffffff;
  --chip: #f2f2f7;
  --seg-on: #ffffff;
  --bar: rgba(255, 255, 255, 0.92);
  --scrim: rgba(0, 0, 0, 0.32);
  --shadow: 0 8px 24px rgba(16, 38, 60, 0.2);
  --badge: #d93025;
  --badge-text: #ffffff;
  --tabbar-h: 3.4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f7;
    --quiet: #a1a1a6;
    --line: #3a3a3c;
    --panel: #1c1c1e;
    --page: #000000;
    --accent: #3d8bfd;
    --accent-text: #000000;
    --danger: #ff6961;
    --flag: #ff9f0a;
    --ok: #32d74b;
    --tint: #0f2645;
    --sheet: #1c1c1e;
    --chip: #3a3a3c;
    --seg-on: #48484a;
    --bar: rgba(22, 22, 24, 0.9);
    --scrim: rgba(0, 0, 0, 0.55);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    --badge: #ff453a;
    --badge-text: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

/* Hidden means hidden, even for a button or a tag, which set display below. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Clear the notch and the home indicator when the page fills the screen. */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

main {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
}

label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  /* 16px or more keeps Safari from zooming in on focus. */
  font-size: max(1rem, 16px);
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--page);
  color: var(--text);
}

textarea {
  display: block;
  resize: vertical;
}

button,
.button {
  display: block;
  width: 100%;
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

button.quiet,
.button.quiet {
  background: var(--panel);
  color: var(--text);
}

button.danger {
  background: var(--panel);
  color: var(--danger);
}

.status {
  min-height: 1.5em;
  margin-top: 1rem;
  color: var(--danger);
}

.aside {
  margin-top: 2rem;
  text-align: center;
}

.note {
  color: var(--quiet);
  font-size: 0.9rem;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.list li {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--line);
}

.list li:first-child {
  border-top: 0;
}

/* A helper's "Switch off," or a Claude's "Disconnect," inside its row. */
.list button {
  margin-top: 0.6rem;
  padding: 0.6rem 1rem;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.meta {
  display: block;
  color: var(--quiet);
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.45rem;
  border-radius: 6px;
  background: var(--panel);
  color: var(--quiet);
  font-size: 0.8rem;
  font-weight: 600;
}

.code {
  padding: 0.9rem;
  border-radius: 12px;
  background: var(--panel);
  font: 600 1.1rem/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
  text-align: center;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

.warn {
  color: var(--danger);
}

/* ─── The dashboard (S12) ────────────────────────────────────────────────
   From the mockup Jeff approved on Nov 10 (docs/mockup/dashboard.html). Its
   pages put everything in .app, above the tab bar, so the rules that differ
   from the sign-in and account pages' above are scoped to it. */

.app h1 {
  margin: 0;
  text-wrap: balance;
}

.app h3 {
  margin: 1.25rem 0 0.4rem;
}

/* A row carries its own padding; an .item, which isn't tappable, has its own. */
.app .list li:not(.item) {
  padding: 0;
}

.app .tag {
  margin-left: 0;
}

/* Where the mockup had a margin inline: the strict CSP allows none. */
.note.tight {
  margin: 0.4rem 0 0;
}

.note.after {
  margin: 0.6rem 0 0;
}

.card .sugg.alone {
  margin: 0;
}

.card .sugg.alone li:first-child {
  border-top: 0;
  padding-top: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* One column, phone width, clear of the tab bar and the + button. */
.app {
  max-width: 30rem;
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  padding-block: 1rem calc(var(--tabbar-h) + 7rem);
}

/* A tab's title, with a quiet line under it. */
.top {
  margin-bottom: 0.25rem;
}

.top .sub {
  margin: 0.15rem 0 0;
  color: var(--quiet);
}

.task-top h1 {
  font-size: 1.45rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 0.5rem -0.35rem;
  padding: 0.2rem 0.35rem 0.2rem 0;
  color: var(--accent);
  text-decoration: none;
}

.back svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* Sections: a heading with a count or a date on the right. */
.sec {
  margin-top: 1.15rem;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.5rem;
}

.sec-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.sec-head .count {
  color: var(--quiet);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.sec.alert .sec-head h2 {
  color: var(--danger);
}

.none {
  margin: 0;
  color: var(--quiet);
}

.foot {
  margin: 1.75rem 0 0;
  color: var(--quiet);
  font-size: 0.9rem;
}

/* A row in a list: a task, a block, a category, a record. */
.row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.8rem;
  color: inherit;
  text-decoration: none;
}

a.row:active,
summary.row:active {
  background: var(--panel);
}

.row .main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.row .title {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.row .next {
  font-size: 0.8rem;
}

.row .sub {
  color: var(--quiet);
  font-size: 0.8rem;
}

.row .chev {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  color: var(--quiet);
  opacity: 0.6;
}

.over {
  color: var(--danger);
  font-weight: 600;
}

.now {
  color: var(--accent);
  font-weight: 600;
}

.unfiled {
  color: var(--flag);
  font-weight: 600;
}

/* The flag: orange, after the title. */
.flag {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.35em;
  vertical-align: -0.05em;
  fill: none;
  stroke: var(--flag);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flag .cloth {
  fill: var(--flag);
}

/* A work block, or a date on the Wedding tab: a tinted chip on the left. */
.chip-time {
  flex: none;
  width: 4.4rem;
  padding: 0.2rem 0.25rem;
  border-radius: 8px;
  background: var(--tint);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Cards: one decision each, on Decide. */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  min-width: 0;
}

.kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card .q {
  margin: 0;
}

.card .cardtitle {
  display: block;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

a.cardtitle {
  color: var(--accent);
}

.card .meta {
  margin-top: 0.3rem;
}

.tasklink {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  text-decoration: none;
}

.gmail {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.card details {
  margin-top: 0.4rem;
}

.card summary {
  color: var(--accent);
  font-size: 0.95rem;
  cursor: pointer;
}

.pre {
  white-space: pre-wrap;
  margin: 0.35rem 0 0;
}

/* Buttons in a row: S13's choices. */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.choices button {
  width: auto;
  margin: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

/* A task page's Done and Drop: two wide buttons at the bottom. */
.task-actions {
  margin-top: 1.75rem;
}

.task-actions button {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.choices.small button {
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.answer {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.answer input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.7rem;
}

.answer button {
  width: auto;
  margin: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

/* What went wrong with a tap, right under its buttons (cos.js). */
.tap-status .status {
  min-height: 0;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.tap-status button {
  width: auto;
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

/* The sync's suggestions on a capture. */
.sugg {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.sugg li {
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.sugg .choices {
  margin-top: 0.4rem;
}

/* A segmented control: Decide's three parts. */
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  margin: 1rem 0 0;
  padding: 2px;
  border-radius: 10px;
  background: var(--panel);
}

.seg button {
  width: auto;
  margin: 0;
  padding: 0.4rem 0.3rem;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
}

.seg button[aria-pressed="true"] {
  background: var(--seg-on);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

/* Search on Tasks. */
.search {
  position: relative;
  margin-top: 1rem;
}

.search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  transform: translateY(-50%);
  color: var(--quiet);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.search input {
  padding-left: 2.3rem;
  background: var(--panel);
  border-color: transparent;
}

/* A task's page: its facts, as label and value. */
.facts {
  margin: 1rem 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.facts > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--line);
}

.facts > div:first-child {
  border-top: 0;
}

.facts dt {
  color: var(--quiet);
}

.facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.textblock {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.notes .meta {
  margin-bottom: 0.1rem;
}

.from-cal {
  display: inline-block;
  margin-left: 0.3rem;
}

/* A non-tappable row in More's lists. */
.item {
  padding: 0.45rem 0.8rem;
}

.item strong {
  font-weight: 600;
}

/* A work block's Remove, under its time on a task's page (Nov 23). */
.item .choices {
  margin-top: 0.4rem;
}

.tag.ok {
  color: var(--ok);
}

.tag.warn {
  color: var(--flag);
}

.tag.bad {
  color: var(--danger);
}

.tag.pin {
  color: var(--accent);
}

/* Vendors open in place to show payments and appointments. */
details.vendor > summary {
  list-style: none;
  cursor: pointer;
}

details.vendor > summary::-webkit-details-marker {
  display: none;
}

details.vendor[open] > summary .chev {
  transform: rotate(90deg);
}

.vendor-body {
  padding: 0 0.9rem 0.8rem;
}

.vendor-body h3 {
  margin: 0.4rem 0 0.25rem;
  font-size: 0.85rem;
  color: var(--quiet);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vendor-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vendor-body li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  font-size: 0.95rem;
}

.vendor-body li span:last-child {
  color: var(--quiet);
  text-align: right;
}

.paid {
  color: var(--ok) !important;
}

/* The lines of the sync's lists, on Settings: text, not a value on the right. */
.vendor-body .lines li span:last-child {
  color: inherit;
  text-align: left;
}

details.more > summary {
  margin-top: 1rem;
  color: var(--accent);
  cursor: pointer;
}

details.more[open] > summary {
  margin-bottom: 0.5rem;
}

/* The hours, on About me: a day to a row, each opening its sheet (S13 part 2). */
.hours-grid {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.hours-head,
.hours-row {
  display: grid;
  grid-template-columns: 2.6rem 1fr 1fr 0.9rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.8rem;
}

.hours-head {
  color: var(--quiet);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hours-row {
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: left;
}

.hours-row:active {
  background: var(--panel);
}

.hours-row .day {
  font-weight: 600;
}

.hours-row .off {
  color: var(--quiet);
}

/* "Until go-live" on Today, which S14 removes. */
.golive {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--quiet);
  font-size: 0.92rem;
}

.golive strong {
  display: block;
  color: var(--text);
}

/* What a tab says when it has nothing. */
.empty {
  padding: 2rem 0.5rem 0.5rem;
  text-align: center;
}

.empty svg {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--quiet);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty .big {
  margin: 0.5rem 0 0.25rem;
  font-weight: 600;
}

/* ─── The tab bar ─────────────────────────────────────────────────────── */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  border-top: 1px solid var(--line);
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.tabbar .tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  max-width: 30rem;
  height: var(--tabbar-h);
  margin: 0 auto;
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  color: var(--quiet);
  font-size: 0.66rem;
  font-weight: 600;
  text-decoration: none;
}

.tab svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab svg .fill,
.empty svg .fill {
  fill: currentColor;
  stroke: none;
}

.tab[aria-current="page"] {
  color: var(--accent);
}

.badge {
  position: absolute;
  top: 0.25rem;
  left: calc(50% + 0.35rem);
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 0.6rem;
  background: var(--badge);
  color: var(--badge-text);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

/* Quick add: the round + on every tab, above the tab bar. */
.fab {
  position: fixed;
  z-index: 21;
  right: max(1.25rem, calc((100vw - 30rem) / 2 + 1.25rem), env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.fab svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* ─── The sheet: quick add ─────────────────────────────────────────────── */
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
}

.sheet {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 88%;
  overflow: auto;
  padding: 0.5rem max(1.25rem, env(safe-area-inset-right, 0px)) calc(1.25rem + env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
  border-radius: 16px 16px 0 0;
  background: var(--sheet);
  box-shadow: var(--shadow);
}

.sheet h2 {
  margin: 0.75rem 0 0.75rem;
}

.grabber {
  width: 2.4rem;
  height: 0.3rem;
  margin: 0 auto;
  border-radius: 0.15rem;
  background: var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips button {
  width: auto;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font-size: 0.9rem;
}

.sheet button.quiet {
  background: var(--chip);
}

.chips button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-text);
}

.chips-label {
  margin: 1rem 0 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* The sheet a button opens: what it's about, then what it asks. */
.sheet .about {
  margin: -0.25rem 0 0.25rem;
  color: var(--quiet);
}

.sheet .status {
  min-height: 0;
  margin: 0.75rem 0 0;
}

.sheet .status:empty {
  margin: 0;
}

.sheet button[data-close] {
  margin-top: 0.6rem;
}

/* A block's start and end, side by side. */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* "Never from this sender again": the box, then its words. */
label.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
}

label.check input {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  margin: 0;
}

/* For screen readers only. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 5.25rem + env(safe-area-inset-bottom, 0px));
  width: max-content; /* its text's width, not half the screen's */
  max-width: min(26rem, calc(100vw - 2.5rem));
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  background: var(--text);
  color: var(--page);
  font-size: 0.92rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

/* ─── More's editors (S13 part 2) ─────────────────────────────────────────── */

/* A row that opens the sheet: a button that looks like a link row. */
.app .list button.row {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 0;
  background: none;
  color: inherit;
  font-weight: 400;
  text-align: left;
}

.app .list button.row:active {
  background: var(--panel);
}

/* A long sheet starts at its heading, which takes focus without a ring. */
.sheet h2:focus {
  outline: none;
}

/* A day's hours for work blocks, then for work: None, or Starts and Ends. */
.span-edit {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.span-edit legend {
  padding: 0;
  font-weight: 600;
}

.span-edit label.check {
  margin: 0.5rem 0 0;
}

.span-edit .pair label {
  margin-top: 0.6rem;
}

input:disabled {
  opacity: 0.45;
}

/* A day's stretches for work blocks, each with its own Remove (Nov 23). */
.stretch + .stretch {
  margin-top: 0.75rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
}

.sheet .stretch button[data-unstretch],
.sheet #act-stretch-add {
  margin-top: 0.6rem;
  padding: 0.55rem 1rem;
  font-weight: 400;
}

#act-blocks-none {
  margin: 0.5rem 0 0;
}

/* Categories: Add and Reorder over the list, and Reorder's bar in their place. */
.cat-tools .choices,
.reorder-bar .choices {
  margin: 0.6rem 0 1rem;
}

.reorder-bar .note.tight {
  margin: 0.6rem 0 0;
}

.cat-about {
  margin: 0 0 0.25rem;
  color: var(--quiet);
  font-size: 0.92rem;
}

.moves {
  display: none;
  gap: 0.4rem;
}

.reordering .moves {
  display: flex;
}

.reordering .chev {
  display: none;
}

.reordering summary.row:active {
  background: none;
}

.app .list .moves button {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: var(--chip);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}
