@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap");
:root {
  --ivory: #faf8f4;
  --paper: #fff;
  --ink: #342c30;
  --muted: #83767d;
  --wine: #760000;
  --rose: #f6e9eb;
  --line: #ece5e2;
  --mauve: #b78fae;
  --navy: #172a46;
  --gold: #e3cfa3;
  --green: #31695a;
  --shadow: 0 8px 32px #3d203908;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ivory);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: var(--wine);
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
.serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}
h1 {
  font-size: 36px;
  letter-spacing: -0.9px;
  margin-bottom: 8px;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.muted,
.sub {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--wine);
}
.layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  background: var(--wine);
  color: var(--gold);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 25px Georgia;
}
.brand-name {
  font:
    25px "Playfair Display",
    Georgia;
}
.brand .sub {
  font-size: 10px;
  letter-spacing: 1px;
}
.nav-group {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 0 12px 10px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  border: 0;
  background: transparent;
  padding: 11px 14px;
  text-align: left;
  border-radius: 8px;
  color: #756770;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav button.active {
  background: var(--rose);
  color: var(--wine);
  font-weight: 600;
}
.nav button:hover {
  background: #f8f3f1;
}
.nav svg,
.icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.side-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.admin-chip {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}
.admin-chip .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.topbar {
  height: 72px;
  background: #fff9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 15px;
}
.topbar input {
  width: 300px;
  background: var(--ivory);
  border-color: transparent;
  max-width: 100%;
}
.content {
  padding: 32px 36px;
  max-width: 1600px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.heading p {
  margin: 0;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  background: var(--wine);
  color: white;
  border: 1px solid var(--wine);
  border-radius: 7px;
  padding: 10px 16px;
  font-weight: 500;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  min-height: 39px;
}
.btn.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.btn.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
}
.btn.danger {
  color: var(--wine);
  background: var(--rose);
  border-color: var(--rose);
}
.btn.small {
  padding: 7px 10px;
  min-height: 32px;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.stat .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.stat .value {
  font-family: "Playfair Display", Georgia;
  font-size: 29px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat .foot {
  color: var(--muted);
  font-size: 10px;
  margin-top: 8px;
}
.stat.wine {
  background: var(--wine);
  border-color: var(--wine);
}
.stat.wine * {
  color: #f9e8e4 !important;
}
.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px;
  background: #f3ede8;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
}
.progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 12px;
}
.track {
  height: 6px;
  background: #e7ded8;
  border-radius: 10px;
  overflow: hidden;
}
.track span {
  height: 100%;
  background: var(--wine);
  display: block;
  border-radius: 10px;
  max-width: 100%;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.card-head h2,
.card-head h3 {
  margin: 0;
}
.pill {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--rose);
  color: var(--wine);
  display: inline-block;
  white-space: nowrap;
}
.pill.ready {
  background: #e8f2ee;
  color: var(--green);
}
.pill.warn {
  background: #fff1da;
  color: #94600d;
}
.pill.neutral {
  background: #f1eef7;
  color: #674ba3;
}
.bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
  font-size: 12px;
}
.bar-stack {
  position: relative;
  height: 16px;
  background: var(--ivory);
  border-radius: 4px;
  overflow: hidden;
}
.bar-est {
  background: #e7ddd3;
  height: 100%;
  min-width: 0;
}
.bar-act {
  position: absolute;
  top: 4px;
  height: 8px;
  border-radius: 3px;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}
.legend i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 2px;
}
.list-row {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  align-items: center;
}
.list-row:last-child {
  border: 0;
}
.list-row .fill {
  flex: 1;
  min-width: 0;
}
.list-row p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.date-block {
  width: 40px;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-content: center;
  text-align: center;
  flex-shrink: 0;
  color: var(--wine);
  font-size: 19px;
}
.date-block small {
  font-size: 9px;
  color: var(--muted);
}
.alert-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--wine);
  flex-shrink: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  background: #fcfaf7;
  padding: 13px 12px;
  white-space: nowrap;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td.wrap {
  white-space: normal;
  min-width: 140px;
  max-width: 350px;
}
tbody tr:hover {
  background: #fcf9f7;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #0002;
  vertical-align: middle;
  margin-right: 7px;
}
.swatch.big {
  width: 55px;
  height: 55px;
  border-radius: 12px;
}
.swatch-line {
  display: flex;
  align-items: center;
  gap: 5px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters input {
  flex: 1;
  min-width: 160px;
}
.filters select {
  max-width: 180px;
}
.filters .btn {
  min-height: 36px;
}
input,
select,
textarea {
  padding: 10px 11px;
  border: 1px solid #e3d9d5;
  border-radius: 6px;
  background: #fff;
  width: 100%;
  color: var(--ink);
  min-height: 38px;
}
input[type="color"] {
  padding: 4px;
  width: 60px;
  min-height: 38px;
}
input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--wine);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  font-family: "Playfair Display";
  font-size: 24px;
  color: var(--ink);
}
.empty p {
  max-width: 370px;
  margin: 12px auto 20px;
  line-height: 1.7;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.theme-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.theme-colour {
  height: 98px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.theme-colour span {
  background: #fffdf5e8;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 9px;
  letter-spacing: 0.6px;
}
.theme-body {
  padding: 18px;
}
.theme-body h3 {
  font: 19px "Playfair Display";
  margin-bottom: 7px;
}
.theme-body p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
}
.theme-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-foot .btn {
  padding: 5px 8px;
}
.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f0e6ed;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #674ba3;
  flex-shrink: 0;
}
.avatar.large {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  font: 25px "Playfair Display";
}
.link-btn {
  color: var(--ink);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-weight: 600;
}
.link-btn:hover {
  color: var(--wine);
}
.member-cell .sub {
  font-size: 10px;
  margin-top: 3px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
  overflow: auto;
}
.tabs button {
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: var(--wine);
  border-bottom-color: var(--wine);
}
.detail-head {
  display: flex;
  gap: 20px;
  align-items: center;
}
.detail-head .fill {
  flex: 1;
}
.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.details dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.details dd {
  margin: 0;
  font-size: 13px;
  word-break: break-word;
  white-space: pre-line;
}
.kanban {
  display: flex;
  gap: 14px;
  overflow: auto;
  align-items: flex-start;
  padding-bottom: 18px;
}
.lane {
  background: #f1ece8;
  min-width: 230px;
  max-width: 230px;
  padding: 14px;
  border-radius: 10px;
}
.lane h3 {
  display: flex;
  justify-content: space-between;
}
.outfit-card {
  background: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}
.outfit-card p {
  font-size: 11px;
  margin: 8px 0;
}
.outfit-card select {
  font-size: 11px;
  padding: 7px;
  margin-top: 12px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.report-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.report-controls select {
  width: auto;
}
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 16px;
  font: 22px "Playfair Display";
}
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--wine);
}
.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background:
    radial-gradient(ellipse at 20% 30%, #f3e7e6, transparent 60%), var(--ivory);
  text-align: center;
}
.login .brand-mark {
  width: 65px;
  height: 65px;
  font-size: 40px;
  margin-bottom: 30px;
}
.login h1 {
  font-size: 47px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.login > p {
  max-width: 450px;
  line-height: 1.7;
}
.login #sign-in {
  margin: 20px 0;
}
.login .access {
  max-width: 440px;
}
.menu {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 120px #34202b40;
  width: min(760px, 94vw);
  max-height: 90vh;
  padding: 0;
  color: var(--ink);
}
dialog::backdrop {
  background: #24171e66;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-body {
  padding: 24px 28px;
}
.dialog-foot {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fcfaf7;
  position: sticky;
  bottom: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-section {
  grid-column: 1/-1;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-top: 12px;
}
.check-label {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  min-height: 30px;
}
.error {
  background: #fff0ed;
  color: var(--wine);
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.notice {
  background: #f7f0e1;
  color: #806130;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 13px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  z-index: 20;
  display: none;
}
.skeleton {
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.5;
  }
}
.status-chart .list-row {
  font-size: 12px;
  padding: 10px 0;
}
.report-table th {
  background: #f3ede8;
}
.file-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.file-card {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
  overflow: hidden;
}
.file-card h3 {
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.badge-count {
  border: 1px solid #d8cbc4;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 10px;
}
.photo {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  object-fit: cover;
}
.inline-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-grid details {
  grid-column: 1/-1;
}
.form-grid summary {
  padding: 12px 0;
  color: var(--wine);
  cursor: pointer;
  font-size: 12px;
}
.form-grid details > .form-grid {
  margin-top: 12px;
}
.date-mobile {
  display: none;
}
@media (min-width: 1500px) {
  .content {
    padding: 40px 48px;
  }
  .stat .value {
    font-size: 34px;
  }
}
@media (max-width: 1150px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat {
    padding: 18px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .content {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .details {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 15;
    left: 0;
    top: 0;
    width: 240px;
    transform: translateX(-100%);
    box-shadow: 0 0 0 100vw #0000;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #0005;
  }
  .menu {
    display: inline-flex;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
  }
  .topbar input {
    width: 100%;
    min-width: 0;
  }
  .topbar .small {
    display: none;
  }
  .content {
    padding: 24px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .heading h1 {
    font-size: 30px;
  }
  .heading .actions {
    width: 100%;
  }
  .heading .actions .btn {
    flex: 1;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat .value {
    font-size: 25px;
  }
  .stat:last-child {
    grid-column: 1/-1;
  }
  .progress-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
    gap: 22px;
  }
  .card {
    padding: 18px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .theme-body {
    padding: 14px;
  }
  .theme-colour {
    height: 80px;
  }
  .theme-body h3 {
    font-size: 17px;
  }
  .details {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .detail-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .detail-head h1 {
    font-size: 26px;
  }
  .detail-head .actions {
    width: 100%;
  }
  .detail-head .actions .btn {
    flex: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: 1;
  }
  .dialog-head {
    padding: 18px 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-foot {
    padding: 16px 20px;
  }
  .file-cards {
    grid-template-columns: 1fr;
  }
  .filters select {
    max-width: none;
    flex: 1;
    min-width: 130px;
  }
  .bar-row {
    grid-template-columns: 90px minmax(0, 1fr) 78px;
    font-size: 11px;
  }
  .login h1 {
    font-size: 38px;
  }
  .report-controls > * {
    flex: 1;
  }
  .pagination {
    gap: 10px;
  }
  .theme-foot {
    align-items: flex-start;
  }
  .theme-foot .small {
    font-size: 10px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .heading .actions,
  .report-controls,
  .filters,
  .tabs,
  .btn,
  .pagination,
  #toast {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .content {
    padding: 0;
  }
  .card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  body {
    background: white;
    color: black;
    font-size: 10px;
  }
  table {
    font-size: 9px;
  }
  td,
  th {
    padding: 6px;
    white-space: normal;
  }
  h1 {
    font-size: 25px;
  }
  .table-wrap {
    overflow: visible;
  }
  .stats {
    grid-template-columns: repeat(5, 1fr);
  }
  .stat {
    padding: 8px;
  }
  .stat .value {
    font-size: 18px;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card,
  .stat,
  .theme-card,
  tr {
    break-inside: avoid;
  }
  .dashboard-grid {
    display: block;
  }
  .progress-grid {
    background: white;
  }
}
