/* SCF Tasks.

   In three seconds a viewer must understand how far through today the store team is and what is
   still open, and the element that carries it is the team figure, a 72px numeral standing above a
   strip that runs edge to edge.

   The organising idea is that every task is one cell. A person's strip is their list in miniature,
   the team strip is every person's strip laid end to end, and the status control on every row is
   that same cell at a larger size. Delete the cell and the page loses both its summary and its
   status control, so the page stops working.

   Composition: the team figure and its strip dominate the first screen, person sheets are
   subordinate with your own pinned first, and the strip is the edge that breaks its container. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Several elements here are shown and hidden through the hidden attribute while their own rule sets a
   display value. Without this the attribute is ignored and the element stays on screen. */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The page column. It widens once there is room for two sheets side by side. */
#app {
  --gutter: 16px;
  --col: 720px;
  --bleed: -16px;
  min-height: 100dvh;
  padding: var(--safe-t) var(--gutter) 0;
}

@media (min-width: 720px) {
  #app {
    --gutter: 24px;
    --bleed: -24px;
  }
}

@media (min-width: 1080px) {
  #app {
    --col: 1040px;
  }
}

.top,
#past-banner,
#main {
  max-width: var(--col);
  margin-inline: auto;
}

/* top bar */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
}

.wordmark {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.me-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 44vw;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 120ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 120ms var(--ease), background-color 180ms var(--ease);
}

.me-chip::after,
.text-btn::after {
  content: "";
  position: absolute;
  inset: -6px -4px;
}

.me-chip,
.text-btn {
  position: relative;
}

.me-chip:active,
.text-btn:active {
  transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
  .me-chip:hover {
    background: var(--paper-2);
    border-color: var(--rule-2);
  }

  .text-btn:hover {
    background: var(--accent-soft);
  }
}

/* past banner */

#past-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 10px 10px 10px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper-2);
}

#past-banner-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.pill-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 120ms var(--ease), background-color 180ms var(--ease);
}

.pill-btn:active {
  transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
  .pill-btn:hover {
    background: var(--accent-deep);
  }
}

/* team block */

#main {
  padding-bottom: calc(104px + var(--safe-b));
}

#team-block {
  padding: 8px 0 24px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 16px;
}

#team-count {
  font-family: var(--f-display);
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

#team-of {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* The strip breaks the column on purpose. */
#team-strip {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-inline: var(--bleed);
  padding: 0 8px;
  min-height: 12px;
}

.strip-group {
  flex: 1 1 0;
  min-width: 0;
}

.strip-cells {
  display: flex;
  gap: 2px;
}

#team-strip .cell {
  height: 12px;
}

.strip-name {
  display: block;
  margin-top: 6px;
  font-family: var(--f-display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-void {
  flex: 1 1 0;
  height: 12px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-cell);
  opacity: .4;
}

#team-copy {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* a cell */

.cell {
  display: block;
  flex: 1 1 0;
  min-width: 2px;
  border-radius: var(--r-cell);
  background: transparent;
  border: 1px solid var(--rule-2);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.cell[data-status="doing"] {
  background: repeating-linear-gradient(45deg, var(--accent) 0 3px, transparent 3px 6px);
  border-color: var(--accent-deep);
}

.cell[data-status="done"] {
  background: var(--accent);
  border-color: var(--accent);
}

/* sheets */

#sheets {
  display: grid;
  gap: 16px;
}

/* On a wide screen the figure has to hold a much larger canvas, so it grows with it. */
@media (min-width: 720px) {
  #team-count {
    font-size: clamp(72px, 8.6vw, 132px);
  }

  #team-of {
    font-size: clamp(22px, 2.3vw, 34px);
  }

  #team-block {
    padding: 16px 0 32px;
  }
}

@media (min-width: 1080px) {
  #sheets {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
}

.sheet {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 var(--lip), var(--shadow-sheet);
  padding: 16px 16px 4px;
}

.sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sheet-eyebrow {
  flex: 1 0 100%;
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.sheet-name {
  margin: 0;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sheet-count {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The person strip sits on the sheet's top edge and doubles as the rule under the heading. */
.sheet-strip {
  position: relative;
  display: flex;
  gap: 2px;
  margin: 12px 0 4px;
  overflow: hidden;
  border-radius: var(--r-cell);
}

.sheet-strip .cell {
  height: 8px;
}

#team-strip::after,
.sheet-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, var(--sheen) 45%, transparent 90%);
  transform: translateX(-70%);
  opacity: 0;
}

#team-strip.is-sheen::after,
.sheet-strip.is-sheen::after {
  transform: translateX(130%);
  opacity: 1;
  transition: transform .65s var(--ease), opacity .65s var(--ease);
}

/* rows */

.row {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color 400ms var(--ease);
}

.sheet .row:last-child {
  border-bottom: 0;
}

.row.is-hit {
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 8px var(--accent-soft);
}

.row.is-new .row-main,
.row.is-new .row-status {
  opacity: 0;
  transform: translateY(6px);
}

.row .row-main,
.row .row-status {
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.row-cat {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.row-title {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 160ms var(--ease);
}

p.row-title {
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  button.row-title:hover {
    color: var(--accent-text);
  }
}

.row-note {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-2);
  transition: transform 120ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}

/* The thumb target reaches past the pill so a 40px pill is still a 48px target. */
.row-status::after {
  content: "";
  position: absolute;
  inset: -4px -8px;
}

.row-status .cell {
  flex: 0 0 auto;
  width: 18px;
  height: 12px;
}

.row-status span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.row-status:active {
  transform: scale(.97);
}

.row-status[disabled] {
  opacity: .45;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .row-status:hover {
    background: var(--accent-soft);
    border-color: var(--accent-deep);
  }
}

/* The same mark on a day nobody can change: the cell and the word stay, the press goes, and the
   dashed border says it is a label rather than a control. */
.row-status.is-static {
  background: transparent;
  border-style: dashed;
  border-color: var(--rule-2);
  cursor: default;
}

.row-status.is-static::after {
  content: none;
}

.row-empty {
  padding: 10px 0 14px;
  font-size: 13.5px;
  color: var(--muted);
}

/* skeleton */

.skeleton {
  height: 132px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--rule);
  animation: pulse 1.6s var(--ease) infinite;
}

.skeleton:nth-child(2) {
  animation-delay: .12s;
}

.skeleton:nth-child(3) {
  animation-delay: .24s;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

/* add pill */

/* The pill floats over the list, so the list has to stop being read underneath it. */
#app:has(#add-btn:not([hidden]))::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(96px + var(--safe-b));
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to top, var(--ground) 42%, transparent);
}

#add-btn {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: var(--shadow-pill);
  transition: transform 140ms var(--ease), background-color 180ms var(--ease);
}

#add-btn:active {
  transform: translateX(-50%) scale(.97);
}

@media (hover: hover) and (pointer: fine) {
  #add-btn:hover {
    background: var(--accent-deep);
  }
}

/* sheets */

dialog.sheet-dlg {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

dialog.sheet-dlg[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overscroll-behavior: contain;
}

dialog.sheet-dlg::backdrop {
  background: rgba(21, 40, 61, .32);
  opacity: 1;
  transition: opacity 200ms var(--ease);
}

@media (prefers-color-scheme: dark) {
  dialog.sheet-dlg::backdrop {
    background: rgba(5, 10, 16, .6);
  }
}

@starting-style {
  dialog.sheet-dlg[open]::backdrop {
    opacity: 0;
  }
}

dialog.sheet-dlg.is-closing::backdrop {
  opacity: 0;
}

.dlg {
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 16px calc(20px + var(--safe-b));
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: inset 0 1px 0 var(--lip), 0 -18px 44px -28px rgba(21, 40, 61, .45);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}

dialog.sheet-dlg[open] .dlg {
  transform: none;
  opacity: 1;
}

@starting-style {
  dialog.sheet-dlg[open] .dlg {
    transform: translateY(100%);
    opacity: 0;
  }
}

dialog.sheet-dlg.is-closing .dlg {
  transform: translateY(100%);
  opacity: 0;
  transition-duration: 200ms;
}

/* The card is only where focus is parked when a sheet opens, so it never draws a ring of its own. */
.dlg:focus,
.dlg:focus-visible {
  outline: none;
}

.dlg-grip {
  width: 36px;
  height: 4px;
  margin: 4px auto 12px;
  border-radius: 999px;
  background: var(--rule-2);
}

@media (min-width: 720px) {
  dialog.sheet-dlg[open] {
    align-items: center;
  }

  .dlg {
    width: min(520px, 100% - 32px);
    max-height: 88dvh;
    padding: 24px 24px 20px;
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    transform: scale(.96);
  }

  dialog.sheet-dlg[open] .dlg {
    transform: none;
  }

  @starting-style {
    dialog.sheet-dlg[open] .dlg {
      transform: scale(.96);
      opacity: 0;
    }
  }

  dialog.sheet-dlg.is-closing .dlg {
    transform: scale(.96);
  }

  .dlg-grip {
    display: none;
  }
}

.dlg-title {
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

.dlg-sub {
  margin: 0 0 20px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
}

.dlg-foot {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

/* fields */

.field {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

textarea.input {
  resize: vertical;
  min-height: 62px;
}

.input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.input:focus-visible {
  outline-offset: 1px;
  border-color: var(--rule-2);
  background: var(--paper);
}

.input[disabled] {
  opacity: .45;
  pointer-events: none;
}

.field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.field-row .input {
  flex: 1 1 auto;
}

.field-err {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bad);
  min-height: 0;
}

.field-err:empty {
  display: none;
}

.field.is-bad .input {
  border-color: var(--bad);
}

/* chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 120ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.chip:active {
  transform: scale(.97);
}

.chip:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: var(--accent-ink);
  font-weight: 600;
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .chip:hover {
    border-color: var(--rule-2);
    background: var(--accent-soft);
  }

  .chip:has(input:checked):hover {
    background: var(--accent-deep);
  }
}

/* buttons */

.dlg-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dlg-confirm {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.confirm-text {
  margin-right: auto;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: none;
  transition: transform 120ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.btn:active {
  transform: scale(.97);
}

.btn[disabled] {
  opacity: .45;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-plain {
  background: none;
  color: var(--muted);
}

.btn-danger-plain {
  margin-right: auto;
  background: none;
  color: var(--bad);
}

.btn-danger {
  background: var(--bad);
  color: var(--bad-soft);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-deep);
  }

  .btn-plain:hover {
    background: var(--paper-2);
    color: var(--ink-2);
  }

  .btn-danger-plain:hover {
    background: var(--bad-soft);
  }

  .btn-danger:hover {
    filter: brightness(.94);
  }
}

/* The label and the busy word stack, so the button never changes width while it saves. */
.btn-busy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.btn[aria-busy="true"] .btn-label {
  opacity: 0;
}

.btn[aria-busy="true"] .btn-busy {
  opacity: 1;
}

.btn[aria-busy="true"] {
  pointer-events: none;
}

/* days list */

#days-list {
  margin-bottom: 8px;
}

.day-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  text-align: left;
  transition: background-color 180ms var(--ease);
}

.day-row:last-of-type {
  border-bottom: 0;
}

.day-label {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.day-count {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.day-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.day-strip .cell {
  height: 8px;
}

.day-row[aria-current="true"] .day-label {
  color: var(--accent-text);
}

@media (hover: hover) and (pointer: fine) {
  .day-row:hover {
    background: var(--accent-soft);
  }
}

.list-empty {
  padding: 12px 0 20px;
  font-size: 13.5px;
  color: var(--muted);
}

/* who and team rows */

.who-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  text-align: left;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 180ms var(--ease);
}

.who-row:last-of-type {
  border-bottom: 0;
}

.who-row[aria-current="true"] {
  color: var(--accent-text);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .who-row:hover {
    background: var(--accent-soft);
  }
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--rule);
}

.team-row:last-of-type {
  border-bottom: 0;
}

.team-row-name {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.team-row.is-hidden .team-row-name {
  color: var(--ghost);
}

#team-list {
  margin-bottom: 20px;
}

/* toast */

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(76px + var(--safe-b));
  z-index: 30;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--shadow-sheet);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

#toast.is-up {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-duration: 220ms;
}

#toast:empty {
  display: none;
}

/* reduced motion */

@media (prefers-reduced-motion: reduce) {
  .me-chip,
  .text-btn,
  .pill-btn,
  .row-status,
  .chip,
  .btn,
  #add-btn {
    transition-property: background-color, border-color, color;
  }

  .me-chip:active,
  .text-btn:active,
  .pill-btn:active,
  .row-status:active,
  .chip:active,
  .btn:active {
    transform: none;
  }

  #add-btn:active {
    transform: translateX(-50%);
  }

  .dlg,
  dialog.sheet-dlg[open] .dlg,
  dialog.sheet-dlg.is-closing .dlg {
    transform: none;
    transition-property: opacity;
  }

  .row.is-new .row-main,
  .row.is-new .row-status {
    transform: none;
  }

  .row .row-main,
  .row .row-status {
    transition-property: opacity;
  }

  #team-strip.is-sheen::after,
.sheet-strip.is-sheen::after {
    transition: none;
    opacity: 0;
  }

  .skeleton {
    animation: none;
    opacity: .6;
  }

  #toast {
    transform: translate(-50%, 0);
    transition-property: opacity;
  }

  #toast.is-up {
    transform: translate(-50%, 0);
  }
}
