/* The public site and member pages share typography, navigation and the mesh background. */
.workspace {
  --wash: color-mix(in srgb, var(--paper) 90%, transparent);
  --tint: color-mix(in srgb, var(--ink) 5%, var(--paper));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.workspace main { flex: 1; min-width: 0; padding-bottom: clamp(3rem, 6vw, 5rem); }
.workspace h1, .workspace h2, .workspace h3 { overflow-wrap: anywhere; }
.workspace h1 { font-size: clamp(2.1rem, 4.8vw, 3.8rem); line-height: 1.2; letter-spacing: .035em; }
.workspace small, .muted, .below, .count { color: var(--muted); }
.workspace small, .count { font-size: .875rem; }
.workspace button, .workspace input, .workspace select, .workspace textarea { color: inherit; font: inherit; }
.workspace label { display: grid; gap: .35rem; min-width: 0; font-size: .94rem; font-weight: 500; }
.workspace input, .workspace textarea, .workspace select {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--underline);
  border-radius: .2rem;
  background: var(--paper);
  font-weight: 400;
}
.workspace textarea { resize: vertical; }
.workspace input, .workspace select, .workspace button { min-height: 44px; }
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .5rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 2rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.workspace .primary { color: var(--paper); background: var(--ink); }
.workspace .secondary { color: var(--ink); background: var(--paper); }
.workspace .primary:hover { color: var(--ink); background: var(--paper); }
.workspace .secondary:hover { color: var(--paper); background: var(--ink); }
.quiet { padding: .3rem 0; border: 0; background: transparent; cursor: pointer; }
.quiet:hover { text-decoration: underline; }
.account-nav, .line, .board-header, .section-intro, .controls, .filters, .actions, .tabs, .weeks, .excel-export {
  display: flex;
  align-items: center;
}
.account-nav { gap: .5rem 1.25rem; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: .875rem; }
.account-nav a, .back, .edit-link, .weeks a { display: inline-flex; min-height: 44px; align-items: center; }
.identity { padding-right: 1rem; border-right: 1px solid var(--line); color: var(--muted); overflow-wrap: anywhere; }
.board-header, .line, .section-intro, .controls { justify-content: space-between; gap: 1rem; }
.board-header { padding-block: clamp(1.4rem, 3.5vw, 3rem) .6rem; flex-wrap: wrap; align-items: end; }
.board-header h1, .access-intro h1 { margin: .55rem 0 .8rem; }
.excel-export, .filters { gap: .7rem; align-items: end; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.excel-export label, .filters label { font-size: .875rem; }
.access {
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(0,1fr);
  grid-template-areas: "intro art" "note art" "form art";
  align-content: center;
  column-gap: clamp(2rem, 8vw, 6rem);
  min-height: min(67vh, 43rem);
  padding-block: clamp(2.75rem, 6vw, 5.5rem) 2rem;
}
.access-intro { grid-area: intro; align-self: end; }
.access-note { grid-area: note; overflow-wrap: anywhere; }
.access-form { grid-area: form; max-width: 27rem; border-top: 1px solid var(--ink); padding-top: 1.3rem; margin-top: 1.35rem; }
.access-art { grid-area: art; width: min(100%, 26rem); height: auto; align-self: center; justify-self: end; mix-blend-mode: var(--art-blend); }
@media (prefers-color-scheme: dark) { .access-art { filter: invert(1); } }
.stack { display: grid; gap: 1rem; }
.stack small { margin-top: -.75rem; }
.access-form button { justify-self: start; min-width: 8rem; margin-top: .3rem; }
.below { margin-top: 1rem; font-size: .9rem; }
.tabs { gap: 1.7rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .65rem .1rem; min-height: 44px; border-bottom: 2px solid transparent; text-decoration: none; color: var(--muted); }
.tabs a:hover, .tabs [aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.controls { padding-block: 1rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); border-bottom: 1px solid var(--line); align-items: end; flex-wrap: wrap; }
.filters select { max-width: 18rem; }
.weeks { flex-wrap: wrap; gap: 1.1rem; font-size: .9rem; }
.section-intro { margin-bottom: 1.2rem; }
.section-intro .muted { margin-top: .4rem; font: .88rem/1.6 var(--mono); }
.goals { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.75rem; }
.goal { border-top: 1px solid var(--ink); padding-block: .75rem 1.25rem; }
.goal h2, .entries h2, .member-section > h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.goal .copy { margin-top: .45rem; }
.copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.edit-link { font-size: .875rem; white-space: nowrap; }
.entries { margin-top: 1.8rem; }
.count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.daily { border-collapse: collapse; table-layout: fixed; width: 100%; margin-top: .8rem; background: var(--wash); }
.daily td, .daily th { padding: .7rem .65rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.daily thead th { border-block: 1px solid var(--ink); background: var(--tint); font-size: .875rem; }
.daily tbody tr > * { border-bottom: 1px solid var(--line); }
.daily tbody th time { font: 500 .94rem/1.5 var(--mono); }
.daily th small { display: block; font-weight: 400; }
.daily th:first-child, .daily .record-action { width: 6.3rem; }
.daily .current-day th { box-shadow: inset 2px 0 var(--ink); }
.daily .empty-day { color: var(--muted); font-size: .9rem; }
.daily .empty-day, .daily .record-action { vertical-align: middle; }
.read-mode { white-space: nowrap; font-size: .875rem; border: 1px solid var(--underline); border-radius: 2rem; padding: .1rem .75rem; }
.team-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--ink); margin: 0 0 2rem; background: var(--wash); }
.team-totals div { padding: 1rem; }
.team-totals dt, .member-progress dt { font-size: .875rem; color: var(--muted); }
.team-totals dd { display: flex; align-items: baseline; gap: .45rem; margin: .2rem 0 0; font-size: .875rem; }
.team-totals strong { font: 500 clamp(1.8rem,3vw,2.45rem)/1.3 var(--mono); }
.member-section > h2 { margin-bottom: .7rem; }
.team-list { list-style: none; margin: 0; padding: 0; }
.team-list li { padding: .8rem 0 1.2rem; border-top: 1px solid var(--line); }
.member-line { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; }
.member-line h3 { font-size: 1.12rem; }
.member-line h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.member-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem 2rem; margin: .25rem 0; }
.member-progress dd { margin: .25rem 0 0; }
.member-progress time { margin-left: .3rem; font-family: var(--mono); }
.editor { width: min(100%, 44rem); margin: clamp(1.6rem,4vw,3rem) auto; }
.back { margin-bottom: .55rem; font-size: .9rem; }
.editor > p { margin-top: .55rem; }
.editor .stack { border-top: 1px solid var(--ink); padding-top: 1.4rem; margin-top: 1.35rem; }
.actions { gap: 1.35rem; flex-wrap: wrap; }
.invite-section { margin-top: 2rem; }
.invite-section h2 { font-size: 1.3rem; margin-bottom: .65rem; }
.admin-roster { margin: 0; padding: 0; list-style: none; }
.admin-roster li { border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding-block: .55rem; }
.admin-roster li > :first-child { flex: 1; min-width: min(12rem,100%); overflow-wrap: anywhere; }
.admin-roster code { color: var(--muted); font-family: var(--mono); }
.notice { border-left: 2px solid var(--ink); background: var(--tint); padding: .8rem 1rem; margin-block: .7rem; }
.notice p, .notice label { margin-top: .4rem; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }

@media (max-width: 52rem) {
  .daily, .daily tbody, .daily tr, .daily tbody th, .daily tbody td { display: block; width: auto; }
  .daily { background: transparent; }
  .daily thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .daily tbody tr { padding: .8rem 0; border-top: 1px solid var(--line); }
  .daily tbody tr > *:is(th,td) { padding: .22rem 0; border: 0; }
  .daily tbody th small { display: inline; margin-left: .6rem; }
  .daily .current-day th { box-shadow: none; }
  .daily td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .875rem; }
}
@media (max-width: 42rem) {
  .access { grid-template-columns: minmax(0,1fr) minmax(3rem,5rem); grid-template-areas: "intro art" "note note" "form form"; align-content: start; min-height: auto; column-gap: .65rem; padding: 2.1rem 0 1rem; }
  .access-art { align-self: start; }
  .access-form { max-width: 100%; }
  .board-header { align-items: start; }
  .goals { grid-template-columns: 1fr; gap: .6rem; }
  .filters { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .filters select { width: 100%; }
  .filters input[type=date] { padding-inline: .3rem; }
  .team-totals div { padding: .7rem .45rem; }
  .member-progress { grid-template-columns: 1fr; }
}
