:root {
  --paper: #faf8fb;
  --ink: #42364a;
  --muted: #82768a;
  --plum: #71537f;
  --plum-dark: #533760;
  --lilac: #eee6f3;
  --border: #e9e1ed;
  --green: #52705f;
  --pink: #f3e6ed;
  --white: #fff;
  --radius: 18px;
  font-family: "Trebuchet MS", Calibri, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b38fc5;
  outline-offset: 3px;
}
a {
  color: var(--plum);
  text-decoration: none;
}
a:hover {
  color: var(--plum-dark);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(30px, 3.4vw, 43px);
  line-height: 1.18;
  letter-spacing: -1.1px;
  margin-bottom: 13px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.45px;
  margin-bottom: 5px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}
p {
  margin-bottom: 14px;
}
small {
  font-size: 11px;
}
.muted,
.section-heading p {
  color: var(--muted);
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.topbar {
  height: 100px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 65px;
  padding: 0 max(32px, calc((100vw - 1280px) / 2));
  background: #fffdfef2;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  white-space: nowrap;
  font:
    27px Georgia,
    serif;
  letter-spacing: -1px;
}
.brand-mark {
  font-size: 43px;
  color: var(--plum);
  transform: rotate(-18deg);
}
.brand small {
  display: block;
  font:
    10px "Trebuchet MS",
    sans-serif;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 4px;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
}
.nav-home {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 13px;
  color: var(--plum);
}
.nav-home:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: #9d7bae;
}
.text-button {
  background: none;
  border: 0;
  padding: 7px 0;
  color: var(--plum);
  font-weight: 500;
}
.text-button:hover {
  color: var(--plum-dark);
  text-decoration: underline;
}
.local-badge {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.local-badge i {
  width: 6px;
  height: 6px;
  background: #8eaa91;
  border-radius: 50%;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 32px 30px;
  min-height: calc(100vh - 190px);
}
.welcome {
  display: flex;
  align-items: center;
  position: relative;
  padding: 46px 0 28px;
  gap: 24px;
  overflow: hidden;
}
.welcome > div:first-child {
  flex: 1;
  z-index: 1;
}
.hello {
  font-size: 12px;
  color: var(--plum);
  margin-bottom: 10px;
}
.welcome p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.welcome button {
  z-index: 1;
}
.botanical {
  position: absolute;
  font-size: 200px;
  line-height: 1;
  right: 120px;
  top: 1px;
  color: #e6dcec;
  transform: rotate(-25deg);
  pointer-events: none;
  opacity: 0.65;
}
.primary,
.secondary {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 19px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.primary {
  background: var(--plum);
  color: #fff;
  box-shadow: 0 3px 5px #71537f10;
}
.primary:hover {
  background: var(--plum-dark);
}
.secondary {
  border-color: #dcd0e3;
  background: #fff;
  color: var(--plum);
}
.secondary:hover {
  background: var(--lilac);
}
.small {
  padding: 8px 14px;
  font-size: 12px;
}
.full {
  width: 100%;
  margin-top: 16px;
}
.overview {
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--border);
  padding: 2px 0 28px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
}
.overview strong {
  color: var(--plum);
  font-size: 21px;
  font-weight: 400;
  margin-right: 7px;
}
.overview > span:not(:first-child):not(:last-child) {
  border-left: 1px solid var(--border);
  padding-left: 30px;
}
.overview-note {
  margin-left: auto;
  font:
    italic 15px Georgia,
    serif;
  color: #9c8ba6;
}
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.activity {
  padding: 24px 27px 18px;
  margin-bottom: 34px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading p {
  font-size: 12px;
  margin: 0;
}
.activity h2 {
  font-size: 23px;
}
.activity .text-button {
  font-size: 12px;
}
.calendar-scroll {
  overflow-x: auto;
  padding-bottom: 5px;
}
.calendar {
  position: relative;
  padding: 27px 0 0 30px;
  min-width: 660px;
}
.month-labels {
  position: absolute;
  left: 30px;
  right: 0;
  top: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  color: var(--muted);
  font-size: 10px;
}
.weekday-labels {
  position: absolute;
  left: 0;
  top: 44px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}
.heatmap {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
}
.day {
  aspect-ratio: 1;
  min-width: 0;
  border: 0;
  border-radius: 3px;
  padding: 0;
}
.day:hover {
  outline: 2px solid var(--plum);
  outline-offset: 1px;
}
.day.selected {
  outline: 2px solid var(--plum);
  outline-offset: 1px;
}
.level-0 {
  background: #f0ebf3;
}
.level-1 {
  background: #dfcce8;
}
.level-2 {
  background: #bd9bcf;
}
.level-3 {
  background: #956cad;
}
.level-4 {
  background: #69447e;
}
.calendar-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
}
.legend {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.day-detail {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.day-detail p {
  margin-bottom: 7px;
}
.day-detail a {
  text-decoration: underline;
}
.day-detail .section-heading {
  margin-bottom: 8px;
}
.projects-section > .section-heading {
  margin-bottom: 20px;
}
.section-heading h2 span {
  font:
    11px "Trebuchet MS",
    sans-serif;
  margin-left: 8px;
  color: var(--muted);
  background: var(--lilac);
  border-radius: 20px;
  padding: 4px 9px;
  vertical-align: middle;
}
.sort-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
select {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 9px 30px 9px 11px;
  border-radius: 7px;
  font-size: 12px;
  max-width: 100%;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  margin-bottom: 17px;
  align-items: center;
}
.filter-tabs {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.filter-tabs button,
.detail-tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 11px;
}
.filter-tabs button.selected {
  background: #eae0f0;
  color: var(--plum-dark);
}
.searches {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}
.search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 10px;
  gap: 7px;
  max-width: 230px;
}
.search span {
  font-size: 22px;
  color: var(--muted);
}
.search input {
  border: 0;
  background: none;
  width: 100%;
  min-width: 80px;
  padding: 8px 0;
  font-size: 12px;
}
.list-labels {
  display: grid;
  grid-template-columns: minmax(230px, 2fr) 95px 150px 145px 140px;
  padding: 7px 40px 10px 21px;
  gap: 20px;
  color: #9b8ea2;
  font-size: 10px;
}
.project-list {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
  overflow: hidden;
}
.project-row {
  display: grid;
  grid-template-columns: 54px minmax(150px, 2fr) 95px 150px 145px 120px 10px;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  color: var(--ink);
  border-bottom: 1px solid #f0eaf3;
  min-height: 91px;
}
.project-row:last-child {
  border-bottom: 0;
}
.project-row:hover {
  background: #fcf9fd;
}
.garment {
  width: 54px;
  height: 57px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ede7f4;
  color: #a491b6;
}
.garment svg {
  width: 40px;
  height: 40px;
}
.garment.has-photo {
  overflow: hidden;
}
.garment.has-photo > svg {
  display: none;
}
.garment.has-photo > a,
.garment.has-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.garment.has-photo img {
  object-fit: cover;
}
.garment.large.has-photo {
  width: 125px;
  height: 135px;
}
.danger {
  color: #9a3545;
  border-color: #dec0c6;
}
.primary.danger {
  background: #9a3545;
  color: white;
}
.primary.danger:hover {
  background: #7e2635;
}
.project-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}
[hidden] {
  display: none !important;
}
#main .dashboard-header h1 input:not(:focus) {
  border-color: transparent;
  background: transparent;
}
.project-dashboard .inline-field input,
.project-dashboard .inline-field select {
  border: 1px solid transparent;
  border-bottom-color: #e8dfed;
  background: transparent;
}
.project-dashboard .inline-field input:hover,
.project-dashboard .inline-field select:hover {
  background: #f4eff7;
}
.project-dashboard .inline-field input:focus,
.project-dashboard .inline-field select:focus {
  background: white;
  border-color: var(--plum);
}
.project-dashboard .inline-field.needs-value input {
  background: #fbf8f1;
}
.dashboard-state #detail-save-status {
  flex-basis: 100%;
  text-align: right;
}
.dashboard-main {
  grid-column: 1;
  grid-row: 1;
}
.dashboard-reference {
  grid-column: 2;
  grid-row: 1;
}
.dashboard-main,
.dashboard-reference {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.dashboard-header.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 20px;
  margin-bottom: 0;
}
.dashboard-header .project-heading {
  min-width: 0;
  flex: 1;
}
.dashboard-header h1 {
  margin: 0;
}
.dashboard-header h1 input {
  width: 100%;
  font: inherit;
  letter-spacing: inherit;
  padding: 3px 0;
  border-color: transparent;
  background: transparent;
}
.dashboard-state {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  max-width: 460px;
}
#detail-save-status {
  color: var(--muted);
  font-size: 12px;
}
#detail-save-status.save-error {
  color: #9a3545;
}
.dashboard-panel {
  padding: 20px;
  min-width: 0;
}
.dashboard-panel h2 {
  font-size: 21px;
  margin: 0 0 12px;
}
.dashboard-panel .section-heading {
  gap: 12px;
  margin-bottom: 12px;
}
.dashboard-panel .section-heading h2 {
  margin-bottom: 0;
}
.dashboard-panel .section-heading p {
  display: none;
}
.setup-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.inline-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  min-width: 0;
}
.inline-field > span {
  color: var(--muted);
  font-size: 12px;
}
.inline-field input,
.inline-field select {
  width: 100%;
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid transparent;
  border-bottom-color: var(--line, #e8dfed);
  background: transparent;
  border-radius: 5px;
  font-size: 14px;
}
.inline-field input:hover,
.inline-field select:hover,
.dashboard-header h1 input:hover {
  background: #f4eff7;
}
.inline-field input:focus,
.inline-field select:focus,
.dashboard-header h1 input:focus {
  background: white;
  border-color: var(--plum);
}
.inline-field.needs-value input {
  background: #fbf8f1;
}
.setup-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.supply-toggles {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.supply-toggles label {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  margin: 0;
  font-size: 13px;
}
.supply-toggles input {
  width: auto;
}
.setup-footer > span,
.setup-hint {
  font-size: 12px;
}
.setup-hint {
  margin: 12px 0 0;
  color: var(--muted);
}
.dashboard-panel .yarn-card {
  padding: 14px;
  margin-bottom: 12px;
}
.dashboard-panel .yarn-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.dashboard-panel .yarn-card label {
  font-size: 12px;
  gap: 3px;
}
.dashboard-panel .yarn-card input {
  padding: 7px 8px;
  font-size: 13px;
}
.dashboard-panel .yarn-card .fields {
  gap: 10px;
}
.dashboard-panel .yarn-card p {
  font-size: 12px;
  margin: 8px 0;
}
.dashboard-panel .estimate {
  padding: 10px;
  font-size: 13px;
}
.dashboard-panel #yarn-form .form-actions {
  margin-top: 8px;
  font-size: 12px;
}
.dashboard-panel textarea {
  width: 100%;
  min-height: 85px;
  resize: vertical;
  font-size: 14px;
}
.project-dashboard .dashboard-reference .garment.large {
  width: 100%;
  height: 200px;
  margin: 0;
}
.dashboard-reference .garment.large img {
  object-fit: contain;
}
.photo-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.photo-controls .secondary {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  height: 36px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 7px;
  margin: 0;
  white-space: nowrap;
}
.dashboard-reference .upload {
  min-height: 90px;
  padding: 14px;
  margin: 0;
}
.dashboard-reference .upload > span {
  display: none;
}
.dashboard-reference .upload strong {
  font-size: 13px;
}
.dashboard-reference .upload small {
  font-size: 11px;
}
.dashboard-reference .pattern-file {
  padding: 10px;
  word-break: break-word;
}
.dashboard-reference .pattern-file strong {
  font-size: 13px;
}
.worklog-panel .empty {
  padding: 15px;
}
.project-dashboard > .worklog-panel {
  grid-column: 1;
}
@media (max-width: 700px) {
  .project-dashboard > .worklog-panel {
    grid-row: 3;
  }
}
.worklog-panel .journal-entry {
  padding: 14px 0;
}
.deleted-projects > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #e8dfed;
}
@media (max-width: 1050px) {
  .project-dashboard {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 14px;
  }
  .setup-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .project-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-header.project-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .dashboard-header h1 {
    font-size: 30px;
  }
  .dashboard-state {
    justify-content: flex-start;
    max-width: none;
  }
  .dashboard-panel {
    padding: 16px;
  }
  .dashboard-panel .fields.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-reference {
    grid-column: 1;
    grid-row: 1;
  }
  .dashboard-main {
    grid-row: 2;
  }
}
.product-website {
  color: var(--plum);
  font-size: 0.85rem;
  text-underline-offset: 0.2em;
}

.product-website:hover {
  text-decoration-thickness: 2px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.photo-upload {
  position: relative;
  cursor: pointer;
}
.photo-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.photo-upload:focus-within {
  outline: 3px solid #b38fc5;
  outline-offset: 3px;
}
.photo-upload:has(input:disabled) {
  opacity: 0.5;
}
@media (max-width: 650px) {
  .garment.large.has-photo {
    width: 80px;
    height: 90px;
  }
  .project-actions {
    margin-left: auto;
    gap: 10px;
  }
  .project-actions > .text-button {
    font-size: 11px;
  }
}
.garment.top {
  background: #f3e8ee;
  color: #be9dab;
}
.garment.slippers,
.garment.hat {
  background: #eaf0e8;
  color: #9eac98;
}
.garment.vest {
  background: #f2ece1;
  color: #b2a28b;
}
.project-name {
  min-width: 0;
}
.project-name h3 {
  font-size: 13px;
  margin: 0 0 5px;
  line-height: 1.4;
}
.project-name p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}
.project-name p span {
  color: #a497ac;
}
.row-priority {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.priority {
  font-size: 11px;
  color: #a481b6;
  letter-spacing: 2px;
}
.row-priority small {
  color: #9b8ca4;
  font-size: 9px;
}
.row-supplies {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.supply {
  font-size: 10px;
  color: #9b8da3;
  background: #f8f5f9;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
}
.supply.owned {
  color: #62806b;
  background: #edf4ed;
}
.row-plan {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}
.row-plan strong {
  font-weight: 500;
  color: var(--plum);
}
.row-plan small {
  color: #9b8da3;
  font-size: 10px;
}
.status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 10px;
  white-space: nowrap;
  background: #f4eff7;
  color: #8f769c;
}
.status.active {
  background: #eae0f3;
  color: #74568d;
}
.status.completed {
  background: #e9f1e9;
  color: #58715b;
}
.status.paused {
  background: #f5eee2;
  color: #988361;
}
.row-status progress {
  width: 90%;
  height: 4px;
  margin-top: 10px;
}
.chevron {
  font-size: 21px;
  color: #b5a6bf;
}
.gentle-note {
  text-align: center;
  color: #a18aad;
  font-size: 11px;
  padding: 26px 0 3px;
  font-style: italic;
}
footer {
  max-width: 1216px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 23px 0 30px;
  font:
    italic 11px Georgia,
    serif;
  color: #a08ca8;
  display: flex;
  justify-content: space-between;
}
footer span {
  font:
    10px "Trebuchet MS",
    sans-serif;
}
.back {
  display: inline-block;
  margin: 28px 0;
  color: var(--muted);
  font-size: 12px;
}
.project-header {
  display: flex;
  gap: 23px;
  align-items: center;
  margin-bottom: 30px;
}
.garment.large {
  width: 95px;
  height: 105px;
  flex-shrink: 0;
}
.garment.large svg {
  width: 72px;
  height: 72px;
}
.project-heading {
  flex: 1;
  min-width: 0;
}
.project-heading h1 {
  font-size: 35px;
  overflow-wrap: anywhere;
}
.project-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.detail-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.project-sidebar {
  padding: 24px;
}
.project-sidebar h2 {
  font-size: 23px;
}
.project-sidebar dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  font-size: 11px;
  margin: 22px 0;
}
.project-sidebar dt {
  color: var(--muted);
}
.project-sidebar dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 22px 0 8px;
}
.progress-label strong {
  color: var(--plum);
  font-weight: 400;
}
progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  background: var(--lilac);
  border-radius: 5px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--lilac);
}
progress::-webkit-progress-value {
  background: #ae8ac1;
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: #ae8ac1;
}
.small-note,
.source-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 0;
}
.source-note {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.finished-note {
  font:
    italic 20px Georgia,
    serif;
  text-align: center;
  color: var(--plum);
  margin: 25px 0 0;
}
.detail-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 0;
  gap: 7px;
  overflow: auto;
}
.detail-tabs button {
  padding: 13px 8px 16px;
  border-radius: 0;
  white-space: nowrap;
}
.detail-tabs .selected {
  color: var(--plum);
  border-bottom: 2px solid #a37db7;
}
.tab-content {
  padding: 28px;
}
.empty {
  text-align: center;
  padding: 45px 25px;
  color: var(--muted);
}
.empty h3 {
  font:
    23px Georgia,
    serif;
  color: var(--ink);
}
.empty p {
  max-width: 420px;
  margin: 10px auto 20px;
  font-size: 13px;
  line-height: 1.8;
}
.empty-icon {
  font-size: 35px;
  color: #b393c1;
  display: block;
  margin-bottom: 12px;
}
.journal-entry {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  font-size: 13px;
}
.journal-date {
  color: var(--plum);
  font-size: 12px;
}
.journal-date span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.learning {
  background: #f6f1f8;
  border-radius: 9px;
  padding: 13px;
  color: #7b6387;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.learning strong {
  font-size: 10px;
  font-weight: 500;
}
.learning p {
  margin: 6px 0 0;
}
.upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #cab6d5;
  border-radius: 12px;
  background: #fcf9fd;
  padding: 30px;
  margin: 20px 0;
  cursor: pointer;
  text-align: center;
}
.upload:hover {
  background: #f1eaf6;
}
.upload span {
  font-size: 28px;
  color: #b093c1;
}
.upload strong {
  color: var(--plum);
  font-weight: 400;
}
.upload small {
  color: var(--muted);
}
.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.upload:focus-within {
  outline: 3px solid #b38fc5;
}
.pattern-file {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 9px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.pattern-file strong {
  font-size: 13px;
  font-weight: 500;
}
.pattern-file small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.pdf-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 48px;
  background: var(--pink);
  color: #a1768e;
  border-radius: 5px;
  font-size: 10px;
}
.yarn-card {
  padding: 20px;
  background: #fcfafd;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
}
.yarn-card h3 {
  margin-bottom: 20px;
  color: var(--plum);
}
.yarn-card h3 span {
  font-weight: 400;
  font-size: 12px;
  margin-left: 8px;
}
.yarn-card .muted {
  font-size: 11px;
}
.yarn-card summary {
  color: var(--plum);
  font-size: 12px;
  cursor: pointer;
  margin: 15px 0;
}
.estimate {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #eee6f4;
  color: var(--plum);
  padding: 14px;
  border-radius: 7px;
  font-size: 12px;
}
.estimate strong {
  font-weight: 500;
}
label {
  display: block;
  font-size: 12px;
  color: #786581;
}
input:not([type="checkbox"]):not([type="file"]),
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dfd4e5;
  border-radius: 7px;
  background: #fff;
  padding: 10px 11px;
  color: var(--ink);
  margin-top: 6px;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input::placeholder,
textarea::placeholder {
  color: #b2a4bb;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 18px;
  margin: 17px 0;
}
.fields.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fields label select {
  width: 100%;
  display: block;
  margin-top: 6px;
  padding: 10px 11px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
}
.form-actions > .muted {
  font-size: 10px;
  flex: 1;
}
.form-hint {
  font-size: 11px;
  color: var(--muted);
  background: #f8f4fa;
  padding: 12px;
  border-radius: 7px;
}
.ownership-fields {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  display: flex;
  gap: 22px;
}
.ownership-fields legend {
  color: var(--plum);
  font-size: 12px;
  padding: 0 5px;
}
.ownership-fields label {
  display: flex;
  gap: 7px;
  align-items: center;
}
input[type="checkbox"] {
  accent-color: var(--plum);
  width: 16px;
  height: 16px;
}
.form-error {
  color: #ae4965;
  font-size: 12px;
  margin: 15px 0;
}
.form-error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 27px;
  max-width: min(630px, calc(100vw - 28px));
  max-height: 90dvh;
  width: 630px;
  color: var(--ink);
  box-shadow: 0 25px 90px #3e23462b;
}
dialog::backdrop {
  background: #392d465e;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.modal-heading h2 {
  margin: 0;
  font-size: 27px;
}
.icon-button {
  border: 0;
  background: #f5f0f8;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 23px;
  line-height: 1;
  color: #93799e;
  flex-shrink: 0;
}
#log-form > label {
  margin-top: 15px;
}
#log-form > label select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
#guide {
  width: 470px;
  padding: 26px 32px 30px;
}
#guide h2 {
  font-size: 29px;
}
#guide > p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.guide-count {
  font-size: 11px;
  color: var(--muted);
}
.guide-flower {
  font:
    70px Georgia,
    serif;
  color: #b296c2;
  height: 95px;
  display: flex;
  align-items: center;
}
.guide-dots {
  display: flex;
  gap: 5px;
  margin-top: 22px;
}
.guide-dots i {
  height: 5px;
  width: 5px;
  background: #e8ddec;
  border-radius: 10px;
}
.guide-dots i.selected {
  width: 19px;
  background: #a381b7;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #594364;
  color: #fff;
  font-size: 13px;
  padding: 13px 23px;
  box-shadow: 0 5px 25px #48345129;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  max-width: calc(100vw - 30px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading {
  text-align: center;
  padding: 100px;
  color: var(--muted);
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 10000;
  background: #fff;
  padding: 10px;
}
.search input {
  margin: 0 !important;
  padding: 8px 0 !important;
  border: 0 !important;
  background: none !important;
}
@media (min-width: 1400px) {
  .heatmap {
    gap: 5px;
  }
}
@media (max-width: 1150px) {
  .project-row {
    grid-template-columns: 48px minmax(150px, 2fr) 80px 125px 120px 100px 8px;
    gap: 12px;
  }
  .list-labels {
    grid-template-columns: minmax(210px, 2fr) 80px 125px 120px 120px;
    gap: 12px;
  }
  .searches {
    justify-content: flex-start;
    flex: initial;
  }
  .topbar {
    gap: 40px;
  }
  .fields.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .local-badge {
    display: none;
  }
  .topbar {
    justify-content: space-between;
    padding: 0 24px;
    height: 85px;
  }
  .topbar nav {
    gap: 20px;
  }
  main {
    padding: 0 24px 20px;
  }
  .welcome {
    padding-top: 35px;
  }
  .welcome p:last-child {
    max-width: 330px;
  }
  .overview {
    gap: 18px;
  }
  .overview > span:not(:first-child):not(:last-child) {
    padding-left: 18px;
  }
  .overview-note {
    display: none;
  }
  .row-plan {
    display: none;
  }
  .project-row {
    grid-template-columns: 48px minmax(150px, 2fr) 75px 125px 110px 8px;
  }
  .list-labels {
    display: none;
  }
  .filters {
    margin-bottom: 20px;
  }
  .detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }
  .project-sidebar {
    padding: 19px;
  }
  .tab-content {
    padding: 20px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .detail-tabs {
    padding-left: 12px;
    gap: 2px;
  }
  .detail-tabs button {
    font-size: 10px;
  }
  .journal-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .journal-date span {
    display: inline;
    margin-left: 15px;
  }
  footer {
    margin: 0 24px;
  }
  .estimate {
    flex-direction: column;
  }
  .project-header h1 {
    font-size: 30px;
  }
}
@media (max-width: 650px) {
  .brand {
    font-size: 24px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-mark {
    font-size: 36px;
  }
  .topbar {
    padding: 0 18px;
    gap: 15px;
    height: 80px;
  }
  .topbar nav {
    gap: 15px;
  }
  .topbar nav > * {
    font-size: 11px;
  }
  main {
    padding: 0 17px 20px;
  }
  .welcome {
    padding-top: 29px;
    flex-wrap: wrap;
    gap: 20px;
  }
  .welcome > div:first-child {
    flex-basis: 100%;
  }
  h1 {
    font-size: 33px;
    max-width: 340px;
  }
  .welcome p:last-child {
    font-size: 12px;
  }
  .welcome button {
    padding: 9px 15px;
  }
  .botanical {
    right: 0;
    top: 5px;
    font-size: 160px;
  }
  .overview {
    font-size: 10px;
    gap: 13px;
    padding: 5px 0 23px;
    margin-bottom: 22px;
  }
  .overview strong {
    font-size: 18px;
    margin-right: 4px;
  }
  .overview > span:not(:first-child):not(:last-child) {
    padding-left: 13px;
  }
  .activity {
    padding: 20px 16px 15px;
    margin-bottom: 28px;
    border-radius: 13px;
  }
  .activity h2 {
    font-size: 21px;
  }
  .activity .section-heading {
    gap: 12px;
  }
  .activity .section-heading p {
    font-size: 10px;
    max-width: 205px;
  }
  .activity .text-button {
    font-size: 11px;
    white-space: nowrap;
  }
  .calendar-footer {
    font-size: 9px;
    gap: 12px;
  }
  .calendar-footer > span {
    max-width: 145px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .projects-section > .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .section-heading h2 span {
    font-size: 10px;
  }
  .filter-tabs {
    gap: 3px;
  }
  .filter-tabs button {
    font-size: 10px;
    padding: 8px;
  }
  .searches {
    width: 100%;
  }
  .search {
    flex: 1;
    max-width: none;
  }
  .searches select {
    width: 135px;
    font-size: 11px;
  }
  .project-row {
    grid-template-columns: 43px minmax(0, 1fr) 65px;
    gap: 11px;
    padding: 15px 13px;
    min-height: 105px;
  }
  .garment {
    width: 43px;
    height: 49px;
  }
  .garment svg {
    width: 34px;
    height: 34px;
  }
  .project-name h3 {
    font-size: 12px;
  }
  .project-name p {
    font-size: 9px;
  }
  .row-priority {
    align-self: center;
    grid-column: 3;
    grid-row: 1;
  }
  .priority {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .row-status {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: -6px;
  }
  .row-status progress {
    width: 50px;
    margin: 0;
  }
  .row-supplies {
    grid-column: 2/4;
    grid-row: 3;
    gap: 5px;
    margin-top: -4px;
  }
  .chevron {
    display: none;
  }
  .supply,
  .status {
    font-size: 9px;
  }
  .row-priority small {
    font-size: 8px;
  }
  .project-name p span {
    display: none;
  }
  .project-list {
    border-radius: 12px;
  }
  .gentle-note {
    font-size: 10px;
    padding: 23px 10px 0;
    line-height: 1.8;
  }
  footer {
    margin: 0 17px;
    gap: 10px;
    flex-direction: column;
    font-size: 10px;
  }
  .project-header {
    gap: 13px;
    flex-wrap: wrap;
  }
  .project-heading h1 {
    font-size: 28px;
  }
  .project-header > .secondary {
    margin-left: auto;
  }
  .garment.large {
    width: 65px;
    height: 80px;
  }
  .garment.large svg {
    width: 54px;
    height: 54px;
  }
  .project-heading {
    flex-basis: calc(100% - 80px);
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .project-sidebar dl {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    font-size: 10px;
  }
  .project-sidebar dd {
    text-align: left;
  }
  .project-sidebar .full {
    width: auto;
    margin-right: 10px;
    font-size: 11px;
  }
  .project-sidebar .small-note {
    max-width: 330px;
  }
  .detail-tabs {
    padding-left: 8px;
  }
  .detail-tabs button {
    padding: 13px 6px;
    font-size: 10px;
  }
  .tab-content {
    padding: 20px 15px;
  }
  .tab-content .section-heading h2 {
    font-size: 23px;
  }
  .tab-content .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .fields,
  .fields.three {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
  }
  dialog {
    padding: 23px 19px;
  }
  .modal-heading h2 {
    font-size: 25px;
  }
  .ownership-fields {
    gap: 12px;
    padding: 12px;
  }
  .ownership-fields label {
    font-size: 11px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions > .muted {
    flex-basis: 100%;
  }
  .yarn-card {
    padding: 15px;
  }
  .yarn-card .fields {
    grid-template-columns: 1fr;
  }
  .yarn-card h3 span {
    display: block;
    margin: 5px 0 0;
  }
  .pattern-file strong {
    font-size: 12px;
  }
  #guide {
    padding: 23px;
  }
  .guide-flower {
    height: 70px;
  }
  .back {
    margin: 22px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Compact page header and scheduling controls. */
.compact-header {
  display: grid;
  align-items: first baseline;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 47%);
  column-gap: 42px;
  row-gap: 0;
  padding: 30px 0 23px;
  overflow: visible;
}
.header-eyebrow {
  grid-column: 1 / -1;
  grid-row: 1;
}
.header-intro {
  grid-column: 1;
  grid-row: 2;
}
.header-intro > .primary {
  margin-top: 20px;
}
.header-intro > p:last-of-type {
  color: var(--muted);
  margin-bottom: 0;
}
@media (max-width: 650px) {
  .project-header:has(.garment.has-photo) .project-heading {
    flex-basis: calc(100% - 95px);
  }
}
.header-activity {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  align-self: first baseline;
}
.header-activity .activity {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}
.header-activity .section-heading {
  align-items: first baseline;
  margin-bottom: 9px;
}
.header-activity .activity h2 {
  font:
    16px "Trebuchet MS",
    sans-serif;
  margin-bottom: 2px;
}
.header-activity .section-heading p {
  font-size: 10px;
}
.header-activity .calendar {
  min-width: 0;
  width: max-content;
  padding: 18px 3px 0 25px;
}
.header-activity .heatmap {
  grid-template-columns: none;
  grid-template-rows: repeat(7, var(--activity-cell));
  grid-auto-flow: column;
  grid-auto-rows: auto;
  grid-auto-columns: var(--activity-cell);
  gap: 3px;
}
.header-activity .day {
  border-radius: 2px;
  padding: 0;
  font-size: 9px;
  color: var(--plum-dark);
  max-height: none;
}
.header-activity .day.level-3,
.header-activity .day.level-4 {
  color: white;
}
.header-activity .day[aria-current="date"] {
  outline: 2px solid var(--plum);
  outline-offset: 1px;
}
.header-activity .day.future {
  box-shadow: inset 0 0 0 1px #d8cce0;
}
.header-activity .day.future.level-0 {
  background-color: #faf8fb;
}
.header-activity .activity {
  --activity-cell: 7px;
}
.activity-range {
  color: var(--muted);
  font-size: 10px;
  margin: 0 0 9px;
}
.header-activity .weekday-labels {
  display: grid;
  grid-template-columns: none;
  grid-template-rows: repeat(7, var(--activity-cell));
  gap: 3px;
  top: 18px;
  bottom: auto;
  align-items: center;
  text-align: center;
  font-size: 6px;
  line-height: 1;
}
.header-activity .month-labels {
  left: 25px;
  right: auto;
  grid-auto-columns: var(--activity-cell);
  gap: 3px;
  font-size: 8px;
}
.header-activity .calendar-footer {
  display: none;
}
.header-activity .day-detail {
  font-size: 11px;
  padding-top: 10px;
  margin-top: 10px;
}
.header-activity .day-detail .section-heading h3 {
  font-size: 12px;
}
.header-activity .calendar-scroll {
  overflow-x: auto;
  padding: 3px 0;
}
.project-row {
  grid-template-columns:
    34px 54px minmax(150px, 2fr)
    95px 150px 145px 120px 10px;
  gap: 12px;
}
.project-name {
  color: var(--ink);
}
.reorder-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.reorder-controls button {
  border: 0;
  background: transparent;
  color: var(--plum);
  padding: 2px 5px;
  line-height: 1.2;
}
.reorder-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}
.reorder-controls .drag-handle {
  font-size: 23px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.project-row.drop-before {
  box-shadow: 0 -3px 0 var(--plum);
}
.project-row.drop-after {
  box-shadow: 0 3px 0 var(--plum);
}
@media (any-pointer: coarse) {
  .project-row {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
  .projects-section .reorder-controls .drag-handle {
    min-width: 44px;
    min-height: 44px;
  }
}
.reorder-controls small {
  font-size: 9px;
  color: var(--muted);
}
.reorder-controls > div {
  display: flex;
  gap: 2px;
}
.project-row.dragging {
  opacity: 0.45;
  background: var(--lilac);
}
.list-labels {
  padding-left: 110px;
}
.project-row[draggable="true"] {
  cursor: grab;
}
.project-row a {
  cursor: pointer;
}
.feedback-button {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 20;
  border: 1px solid #d6c6df;
  border-radius: 9px;
  background: #fff;
  color: var(--plum-dark);
  padding: 11px 17px;
  box-shadow: 0 3px 15px #49385415;
  font-size: 12px;
}
.feedback-dialog {
  width: 590px;
}
.feedback-dialog h3 {
  margin-top: 24px;
}
.feedback-message {
  font-size: 12px;
  color: var(--plum);
}
.feedback-entry {
  border-top: 1px solid var(--border);
  padding: 13px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.feedback-entry strong {
  font-size: 11px;
  color: var(--plum);
}
.feedback-entry p {
  margin: 6px 0;
}
.update-banner {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 25;
  border: 0;
  border-radius: 9px;
  background: var(--plum-dark);
  color: white;
  padding: 12px 18px;
  font-size: 12px;
}
@media (max-width: 1150px) {
  .project-row {
    grid-template-columns:
      30px 45px minmax(140px, 2fr)
      75px 120px 115px 100px 8px;
    gap: 10px;
  }
  .list-labels {
    display: none;
  }
  .compact-header {
    gap: 20px;
  }
  .compact-header h1 {
    font-size: 35px;
  }
}
@media (max-width: 1000px) {
  .project-row {
    grid-template-columns: 30px 45px minmax(140px, 2fr) 70px 120px 100px 8px;
  }
  .row-plan {
    display: none;
  }
}
@media (max-width: 750px) {
  .compact-header {
    grid-template-columns: 1fr;
  }
  .header-activity {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    margin-top: 23px;
  }
  .header-activity .heatmap {
    gap: 2px;
  }
  .header-activity .activity {
    --activity-cell: 4px;
  }
  .header-activity .weekday-labels,
  .header-activity .month-labels {
    gap: 2px;
  }
  .header-activity .weekday-labels {
    font-size: 5px;
  }
  .compact-header h1 {
    max-width: none;
  }
  .header-activity .calendar {
    padding-left: 25px;
  }
  .header-activity .month-labels {
    left: 25px;
  }
  .overview {
    margin-top: 0;
  }
}
@media (max-width: 650px) {
  .project-row {
    grid-template-columns: 30px 43px minmax(0, 1fr) 65px;
    gap: 10px;
  }
  .reorder-controls {
    grid-column: 1;
    grid-row: 1/4;
  }
  .project-row > .garment {
    grid-column: 2;
    grid-row: 1;
  }
  .project-name {
    grid-column: 3;
    grid-row: 1;
  }
  .row-priority {
    grid-column: 4;
    grid-row: 1;
  }
  .row-status {
    grid-column: 3;
    grid-row: 2;
  }
  .row-supplies {
    grid-column: 3/5;
    grid-row: 3;
  }
  .feedback-button {
    padding: 10px 14px;
    bottom: 12px;
    left: 12px;
  }
  .update-banner {
    right: 12px;
    bottom: 12px;
    font-size: 11px;
    max-width: 210px;
  }
  .header-activity .section-heading p {
    max-width: none;
  }
  .compact-header {
    padding-top: 24px;
    padding-bottom: 18px;
  }
  .compact-header h1 {
    font-size: 32px;
  }
  .reorder-controls > div button {
    padding: 5px;
  }
}

/* Project-first layout: generous images and grouped details replace columns. */
:root {
  font-size: 16px;
  --muted: #74677c;
}
.topbar {
  height: 72px;
}
.nav-home,
.topbar .text-button {
  font-size: 14px;
}
main {
  max-width: 1440px;
}
.compact-header {
  padding: 22px 0 16px;
}
.header-intro,
.header-activity {
  grid-row: 1;
}
.compact-header h1 {
  font-size: 30px;
  margin-bottom: 12px;
}
.header-intro > .primary {
  margin-top: 0;
  font-size: 15px;
}
.overview {
  padding-bottom: 14px;
  margin-bottom: 24px;
  font-size: 14px;
}
.overview strong {
  font-size: 18px;
}
.projects-section > .section-heading h2 {
  font-size: 32px;
}
.projects-section .section-heading p {
  font-size: 14px;
}
.projects-section .sort-label,
.projects-section select,
.projects-section .search input,
.projects-section .filter-tabs button {
  font-size: 14px;
}
.projects-section .filter-tabs button {
  padding: 10px 14px;
}
.projects-section .filters {
  gap: 16px;
  margin-bottom: 24px;
}
.projects-section .project-list {
  display: grid;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.projects-section .project-row {
  grid-template-columns: 36px 152px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 12px 24px;
  padding: 20px;
  min-height: 192px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  align-items: center;
}
.projects-section .project-row:hover {
  border-color: #cdbbd7;
  background: #fefcff;
}
.projects-section .reorder-controls {
  grid-column: 1;
  grid-row: 1 / 3;
}
.projects-section .reorder-controls button {
  min-width: 30px;
  min-height: 32px;
}
.projects-section .reorder-controls > div {
  flex-direction: column;
}
.projects-section .reorder-controls small {
  font-size: 12px;
}
.projects-section .project-row > .garment {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 152px;
  height: 152px;
  border-radius: 12px;
}
.projects-section .garment svg {
  width: 88px;
  height: 88px;
}
.projects-section .project-name {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  overflow-wrap: anywhere;
}
.projects-section .project-name h3 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.projects-section .project-name p {
  font-size: 15px;
}
.projects-section .project-name p span {
  display: inline;
  color: var(--muted);
}
.projects-section .row-priority {
  grid-column: 4;
  grid-row: 1;
  align-self: end;
  align-items: flex-end;
}
.projects-section .priority {
  font-size: 14px;
}
.projects-section .row-priority small {
  font-size: 12px;
  color: var(--muted);
}
.project-meta {
  grid-column: 3 / 5;
  grid-row: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-self: start;
}
.projects-section .row-supplies,
.projects-section .row-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.projects-section .row-plan {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.projects-section .row-plan small,
.projects-section .supply,
.projects-section .status {
  font-size: 13px;
}
.projects-section .row-plan small {
  color: var(--muted);
}
.projects-section .supply:not(.owned) {
  color: var(--muted);
}
.projects-section .row-status progress {
  width: 72px;
  margin: 0;
}
@media (max-width: 950px) {
  .projects-section .project-row {
    grid-template-columns: 32px 120px minmax(0, 1fr);
    gap: 12px 18px;
  }
  .projects-section .project-row > .garment {
    width: 120px;
    height: 144px;
    grid-row: 1 / 4;
  }
  .projects-section .reorder-controls {
    grid-row: 1 / 4;
  }
  .projects-section .row-priority {
    grid-column: 3;
    grid-row: 2;
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }
  .project-meta {
    grid-column: 3;
    grid-row: 3;
    gap: 10px 16px;
  }
}
@media (max-width: 750px) {
  .header-activity {
    grid-row: 2;
    margin-top: 12px;
  }
  .compact-header {
    gap: 0;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 66px;
  }
  .brand {
    font-size: 22px;
  }
  .topbar nav {
    gap: 14px;
  }
  .compact-header h1 {
    font-size: 28px;
  }
  .projects-section .project-row {
    grid-template-columns: 28px 96px minmax(0, 1fr);
    padding: 14px 12px;
    gap: 12px;
  }
  .projects-section .project-row > .garment {
    width: 96px;
    height: 116px;
    grid-row: 1 / 3;
  }
  .projects-section .garment svg {
    width: 64px;
    height: 64px;
  }
  .projects-section .project-name h3 {
    font-size: 19px;
  }
  .projects-section .project-name p {
    font-size: 14px;
  }
  .project-meta {
    grid-column: 2 / 4;
    grid-row: 3;
  }
  .projects-section .priority {
    font-size: 12px;
    letter-spacing: 0;
  }
  .projects-section .row-priority {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .projects-section .searches {
    flex-wrap: wrap;
  }
  .projects-section .search {
    min-width: 140px;
  }
  .overview {
    gap: 12px;
    flex-wrap: wrap;
  }
  .overview > span:not(:first-child):not(:last-child) {
    padding-left: 12px;
  }
}

/* Mobile keeps projects ahead of activity without duplicating the calendar. */
#toggle-projects {
  display: none;
}
@media (max-width: 700px) {
  body:has(.compact-header) .topbar {
    height: 40px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  body:has(.compact-header) .brand {
    font-size: 18px;
  }
  body:has(.compact-header) .brand small,
  body:has(.compact-header) .brand-mark,
  body:has(.compact-header) .local-badge,
  body:has(.compact-header) .nav-home {
    display: none;
  }
  main:has(.compact-header) {
    display: flex;
    flex-direction: column;
  }
  .welcome.compact-header {
    display: contents;
  }
  .compact-header .header-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    order: 1;
  }
  .compact-header .header-intro h1,
  main:has(.compact-header) > .overview {
    display: none;
  }
  .header-intro > .primary,
  .header-intro > .text-button {
    font-size: 12px;
    padding: 6px 8px;
    margin: 0;
  }
  .projects-section {
    order: 2;
  }
  .projects-section > .section-heading {
    margin: 8px 0;
  }
  .projects-section > .section-heading h2 {
    font-size: 24px;
  }
  .compact-header .header-activity {
    order: 3;
    margin: 24px 0 0;
    width: 100%;
  }
  .project-list:not(.expanded) > .project-row:nth-child(n + 6) {
    display: none;
  }
  #toggle-projects {
    display: block;
    margin: 16px auto 0;
  }
}
/* Authentication uses the existing palette and keeps the underlying draft intact. */
.login-screen {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px;
  background: #faf8fc;
  color: #493854;
}
.login-screen[open] {
  display: grid;
  place-items: center;
}
.login-screen::backdrop {
  background: #faf8fc;
}
.login-card {
  width: min(100%, 380px);
  display: grid;
  gap: 20px;
}
.login-card h1,
.login-card p {
  margin: 0;
}
.login-card h1 {
  font-size: 2.5rem;
}
.login-card label {
  display: grid;
  gap: 8px;
}
.login-card input {
  width: 100%;
}
.login-card .form-error:empty {
  display: none;
}
