:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
  color: #202522;
  background: #f7f8f8;
  font-size: 14px;
  font-synthesis: none;
  --line: #dde2df;
  --muted: #65736b;
  --green: #21664e;
  --pink: #b6315b;
  --soft: #edf4f0;
}
.season-totals {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0 20px;
  margin-bottom: 12px;
}
.color-breakdown-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}
.color-breakdown-heading span {
  color: var(--muted);
}
.color-difference {
  color: #a32946;
  margin-left: 8px;
}
.color-breakdown-scroll {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  background: white;
}
table.color-breakdown-table {
  width: 100%;
  min-width: 800px;
  table-layout: auto;
  border-collapse: collapse;
}
.color-breakdown-table td,
.color-breakdown-table th {
  padding: 8px 12px;
  height: auto;
  position: static;
  white-space: normal;
  text-align: left;
  font-size: 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.color-breakdown-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eaf0ec;
}
.color-breakdown-table td:nth-child(4),
.color-breakdown-table td:nth-child(5),
.color-breakdown-table td:nth-child(6) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.color-breakdown-table td:first-child {
  width: 76px;
}
.color-breakdown-table img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: white;
}
.color-breakdown-table small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.color-cancelled {
  color: #8a6671;
  background: #fbf3f5;
}
.detail-colors {
  margin: 18px 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.detail-colors > summary {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.color-empty {
  color: var(--muted);
  font-size: 12px;
}
.season-comparison {
  border-bottom: 1px solid var(--line);
  margin: 0 0 18px;
  padding: 0 0 16px;
}
.season-comparison > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 650;
  padding: 12px 0;
  font-size: 14px;
}
.season-comparison > summary::-webkit-details-marker {
  display: none;
}
.season-comparison > summary small {
  font-size: 12px;
  font-weight: 400;
  margin-left: 10px;
}
.season-comparison > summary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.season-comparison[open] > summary svg {
  transform: rotate(180deg);
}
.comparison-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 0 12px;
  font-size: 12px;
}
.comparison-meta small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.comparison-notice {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fff5e7;
  color: #815b28;
  font-size: 12px;
}
.comparison-scroll {
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  overscroll-behavior: contain;
}
table.comparison-table {
  min-width: 1080px;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.comparison-table td,
.comparison-table th {
  height: 35px;
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
  text-align: right;
  border-right: 1px solid #e6ece8;
}
.comparison-table thead th {
  height: 33px;
  text-align: center;
  font-size: 11px;
  background: #edf2ee;
  top: 0;
  z-index: 4;
}
.comparison-table thead tr:nth-child(2) th {
  top: 33px;
}
.comparison-table thead th[rowspan] {
  left: 0;
  z-index: 6;
  min-width: 100px;
  text-align: left;
}
.comparison-table tbody th,
.comparison-table tfoot th {
  position: sticky;
  left: 0;
  top: auto;
  text-align: left;
  font-weight: 600;
  background: #f8faf8;
  z-index: 2;
}
.comparison-table td.comparison-current {
  background: #f1f7f3;
}
.comparison-table td small {
  display: block;
  font-size: 10px;
  color: #89673f;
  font-weight: 400;
  margin-top: 3px;
}
.comparison-table tfoot td,
.comparison-table tfoot th {
  position: sticky;
  bottom: 0;
  background: #e5eee8;
  font-weight: 700;
  border-top: 2px solid #cddacf;
  z-index: 3;
}
.comparison-table tfoot th {
  z-index: 5;
}
.comparison-table tbody tr:hover td {
  background: #f0f4f1;
}
.comparison-up {
  color: #27664e;
}
.comparison-down {
  color: #b34562;
}
.comparison-footnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 15px;
  padding-top: 9px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 800px) {
  .season-comparison > summary > span {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .season-comparison > summary small {
    margin-left: 0;
  }
  .comparison-meta {
    align-items: flex-start;
  }
  .comparison-meta strong {
    line-height: 1.7;
  }
  .comparison-scroll {
    max-height: 300px;
  }
}
.totals-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  flex-wrap: wrap;
  font-size: 13px;
}
.totals-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.total {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  border-left: 2px solid #d2e1d7;
  padding-left: 14px;
}
.total > span {
  font-size: 12px;
  color: var(--muted);
}
.total > strong {
  font-size: 24px;
  font-weight: 650;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.total > strong small {
  font-size: 13px;
  margin-left: 5px;
}
.total > small {
  font-size: 11px;
}
.grid-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
}
#workspace-grid.tabulator {
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  background: white;
}
#workspace-grid .tabulator-header {
  background: #f0f3f1;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #54675a;
}
#workspace-grid .tabulator-col {
  background: #f0f3f1;
  border-right: 1px solid #e5eae6;
  min-height: 38px;
  padding-top: 5px;
}
#workspace-grid .tabulator-header .tabulator-col-resize-handle {
  cursor: ew-resize;
}
#workspace-grid .tabulator-header .tabulator-col-resize-handle:hover {
  background: #21664e;
}
#workspace-grid .tabulator-cell {
  border-bottom: 1px solid #e8ece9;
  border-right: 1px solid #edf0ee;
  padding: 8px 10px;
  color: #2e3932;
}
#workspace-grid .tabulator-row {
  background: white;
}
#workspace-grid .tabulator-row.tabulator-row-even {
  background: #fafcfb;
}
#workspace-grid .tabulator-row:hover {
  background: #f1f6f2;
}
#workspace-grid .numeric-cell {
  background: #f3f8f4;
  font-variant-numeric: tabular-nums;
  cursor: cell;
}
#workspace-grid .grid-style-first .tabulator-cell {
  border-top: 1px solid #cbd7cf;
}
#workspace-grid .grid-color-secondary .numeric-cell {
  background: #fafbfa;
  cursor: default;
}
#workspace-grid .grid-color-cancelled .tabulator-cell {
  color: #8e5965;
  background: #fcf3f5;
}
#workspace-grid .tabulator-cell.tabulator-editing {
  border: 2px solid var(--green);
  padding: 0;
  background: white;
}
#workspace-grid .tabulator-cell input {
  height: 100%;
  width: 100%;
  border: 0;
  border-radius: 0;
  text-align: right;
  font-size: 13px;
  padding: 8px;
}
#workspace-grid .grid-dirty {
  background: #fff4d9;
}
#workspace-grid .grid-invalid {
  color: #a32946;
  background: #fce7ed;
}
.grid-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  background: white;
}
.grid-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 6px;
  color: #354238;
  font-size: 12px;
}
.grid-color-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid-conflicts {
  max-height: 45vh;
  overflow: auto;
  font-size: 13px;
}
@media (max-width: 800px) {
  .totals-values {
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .total:first-child {
    grid-column: 1/-1;
  }
  .total > strong {
    font-size: 19px;
  }
  .grid-actions .actions {
    gap: 5px;
  }
  .grid-actions button {
    font-size: 12px;
  }
  .totals-heading {
    gap: 6px;
  }
  .total {
    padding-left: 10px;
  }
}
@media (max-width: 400px) {
  .totals-values {
    grid-template-columns: 1fr;
  }
  .total > strong {
    font-size: 21px;
  }
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 8px 12px;
  cursor: pointer;
  min-height: 36px;
  white-space: normal;
}
button:hover {
  background: #f0f4f1;
  border-color: #a4b8ac;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.primary:hover {
  background: #164f3b;
}
button svg,
a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select,
textarea {
  border: 1px solid #cdd5cf;
  border-radius: 4px;
  padding: 9px 10px;
  background: white;
  min-width: 0;
  max-width: 100%;
}
textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.7;
  min-height: 100px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #81b39a;
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 25px;
  line-height: 1.35;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 17px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  line-height: 1.7;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.app-header {
  min-height: 69px;
  padding: 12px 28px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--pink);
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}
.brand span {
  font-size: 14px;
  color: #303832;
  font-weight: 650;
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.app-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.app-header select {
  max-width: 290px;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile {
  max-width: 190px;
}
.profile span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: #435349;
  flex-shrink: 0;
}
.connection {
  font-size: 12px;
  color: #776145;
  white-space: nowrap;
}
.connection.live {
  color: var(--green);
}
.connection::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
}
.presence-bar {
  min-height: 32px;
  padding: 6px 28px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #f0f3f1;
}
.environment {
  white-space: nowrap;
}
main {
  max-width: 1720px;
  margin: 0 auto;
  padding: 28px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  padding: 9px 12px;
  min-height: 36px;
}
.stats {
  display: flex;
  gap: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.stat strong {
  font-size: 22px;
  font-weight: 650;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat.warning strong {
  color: var(--pink);
}
.section-form {
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font-size: 14px;
  font-weight: 400;
}
.field.wide {
  grid-column: 1/-1;
}
.section-form[data-section="planning"] textarea {
  min-height: 135px;
}
.section-form[data-section="basic"] .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 15px;
}
.save-state {
  font-size: 12px;
  color: var(--muted);
}
.section-form.dirty .save-state {
  color: #9c6133;
}
.section-form.conflict {
  border-left: 3px solid #d29a41;
  padding-left: 12px;
}
.conflict-note {
  color: #94581e;
  background: #fff7e9;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  flex-wrap: wrap;
}
.search {
  flex: 1;
  min-width: 180px;
  max-width: 340px;
  position: relative;
}
.search input {
  width: 100%;
  padding-left: 34px;
}
.search svg {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  margin-left: auto;
  flex-shrink: 0;
}
.segmented button {
  border: 0;
  border-radius: 0;
  min-width: 37px;
}
.segmented button svg {
  pointer-events: none;
}
.segmented button[aria-pressed="true"] {
  background: #e2ece6;
  color: #154b35;
}
.row-view {
  margin-left: 0;
}
.row-view button {
  min-width: 70px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
}
.filter-check input {
  accent-color: var(--green);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  max-height: 65vh;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f0f3f1;
  color: #55675b;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 11px;
}
td,
th {
  padding: 10px 12px;
  border-bottom: 1px solid #e8ece9;
  height: 58px;
}
th {
  height: 37px;
}
tbody tr:hover {
  background: #f6faf7;
}
td img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: white;
  display: block;
}
td .product-name {
  display: block;
  color: #313b34;
  font-size: 12px;
  max-width: 255px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
td .code {
  font-weight: 650;
  color: var(--green);
}
td .no-image {
  width: 44px;
  height: 44px;
}
.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a3ada6;
  background: #f1f4f2;
  min-height: 40px;
}
.no-image svg {
  width: 24px;
  height: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 3px;
  background: #eef1ef;
  color: #5c6c61;
  white-space: nowrap;
}
.badge.progress {
  background: #e9f3ef;
  color: #246747;
}
.badge.issue {
  background: #faedf1;
  color: #a12f51;
}
.badge.done {
  background: #e6f0e8;
  color: #246342;
}
.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  overflow: hidden;
  min-width: 0;
}
.card-image {
  aspect-ratio: 4/3;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eef1ef;
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.card-image .no-image {
  height: 100%;
  width: 100%;
}
.card-image .badge {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: 90%;
}
.card-body {
  padding: 12px;
}
.card-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  overflow-wrap: anywhere;
}
.card-body h3 {
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 10px;
  min-height: 39px;
  overflow-wrap: anywhere;
}
.card-color {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.card-launch {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.card-launch small {
  display: block;
  color: #98632a;
}
.cancelled-color-card {
  border-color: #d8adb8;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0;
  font-size: 12px;
  color: var(--muted);
}
.pagination .actions {
  flex-wrap: nowrap;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}
.board-log {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.board-log h2 {
  margin-bottom: 16px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 16px 16px;
  font-size: 12px;
  line-height: 1.6;
  border-left: 1px solid #d8e3dc;
}
.timeline li::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: -3.5px;
  top: 6px;
  border-radius: 50%;
  background: #83a591;
}
.timeline small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  gap: 32px;
}
.detail-main {
  min-width: 0;
}
.concept-overview h2 {
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.5;
  margin: 10px 0 24px;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.concept-hero { margin: 0 0 28px; }
.assortment-proposal { margin: 0 0 30px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.proposal-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.proposal-metrics small { display: block; color: var(--muted); margin-bottom: 8px; }
.proposal-metrics strong { font-size: 23px; font-weight: 650; }
.proposal-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0 12px; }
.proposal-colors article { display: flex; gap: 14px; align-items: flex-start; }
.proposal-colors article.color-product-card { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.color-product-image { display: block; width: 100%; max-height: 320px; object-fit: contain; margin-bottom: 16px; background: #f7f5f1; }
.color-product-card .color-detail-name { font-size: 13px; margin: 10px 0 6px; }
.proposal-swatch { display: block; flex: 0 0 42px; height: 52px; border: 1px solid #0002; border-radius: 4px; background: #eee; }
.list-proposal-swatch { display: inline-block; width: 36px; height: 40px; border: 1px solid #0002; border-radius: 4px; vertical-align: middle; }
.card-image .list-proposal-swatch { width: 50%; height: 65%; min-height: 100px; box-shadow: 0 8px 24px #0001; }
.proposal-tag, .proposal-number small { font-size: 11px; color: var(--green); font-weight: 600; }
.proposal-total-note { display: block; padding: 12px 0 0; color: var(--green); }
.proposal-colors h4 { margin: 0 0 5px; font-size: 14px; }
.proposal-colors h4 span { display: block; margin-top: 5px; color: var(--green); font-size: 16px; }
.proposal-colors small { color: var(--muted); }
.proposal-colors .research-prose, .assortment-proposal > .research-prose { font-size: 13px; }
.assortment-proposal > h4 { font-size: 13px; margin: 22px 0 0; }
.assortment-proposal > .muted { font-size: 12px; line-height: 1.7; margin-top: 20px; }
.brand-reference-photo { margin: 0 0 16px; }
.brand-reference-photo a { display: block; background: #f5f4f1; border-radius: 5px; overflow: hidden; }
.brand-reference-photo img { width: 100%; height: 300px; object-fit: contain; display: block; }
.brand-reference-photo figcaption { color: var(--muted); font-size: 11px; margin-top: 7px; line-height: 1.6; }
.brand-reference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1050px) { .brand-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .proposal-colors, .brand-reference-grid { grid-template-columns: 1fr; }
  .proposal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .proposal-metrics strong { font-size: 16px; }
  .proposal-metrics small { font-size: 11px; }
  .assortment-proposal { padding: 16px; }
}
.concept-hero a { display: block; background: #f3f0eb; border-radius: 8px; overflow: hidden; }
.concept-hero img { display: block; width: 100%; height: auto; }
.concept-hero figcaption { color: var(--muted); font-size: 12px; line-height: 1.7; padding-top: 10px; }
.research-prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; font-size: 14px; margin: 8px 0 0; }
.research-intro { margin-bottom: 28px; }
.research-intro h2 { font-size: 25px; margin: 8px 0; }
.research-scope { background: #f4f6f3; border-left: 3px solid #8ca28b; padding: 16px 20px; margin: 20px 0; }
.research-scope .research-prose { font-size: 13px; margin-top: 4px; }
.research-direction { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; padding: 22px; background: #edf4f0; border-radius: 6px; }
.research-direction > div { flex: 1; min-width: 0; }
.research-direction button { flex-shrink: 0; }
.research-direction h3, .concept-specs h3 { font-size: 15px; margin: 0; }
.concept-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin: 28px 0; }
.concept-specs > section { border-top: 1px solid var(--line); padding-top: 18px; }
.research-block { margin-top: 32px; }
.evidence-list { display: grid; gap: 18px; }
.evidence-card { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; overflow-wrap: anywhere; }
.evidence-card header { display: flex; gap: 16px; }
.evidence-number { font-size: 23px; font-weight: 600; color: #82968a; padding-top: 2px; }
.evidence-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.evidence-card h3 { font-size: 16px; margin: 10px 0 6px; line-height: 1.6; }
.evidence-card h4 { color: var(--green); font-size: 12px; margin: 0 0 5px; }
.evidence-card small { color: var(--muted); }
.evidence-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 22px 0 16px; }
.evidence-columns > div + div { border-left: 1px solid var(--line); padding-left: 22px; }
.evidence-columns .research-prose, .reference-links .research-prose { font-size: 13px; }
.research-link { display: inline-block; color: var(--green); font-size: 13px; margin-top: 12px; text-underline-offset: 4px; }
.reference-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reference-links h4 { margin-top: 18px; }
.research-editor { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; }
.research-editor > summary, .concept-history > summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.research-editor .section-form { margin-top: 20px; }
.research-editor h3 { font-size: 16px; margin: 24px 0 14px; }
.evidence-edit-row { min-width: 0; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 18px; padding: 18px; }
.evidence-edit-row legend { font-size: 12px; color: var(--muted); padding: 0 6px; }
.evidence-edit-row > button { margin-top: 12px; }
.concept-history { margin-bottom: 16px; }
@media (max-width: 800px) {
  .concept-specs, .evidence-columns, .reference-links { grid-template-columns: 1fr; }
  .research-direction { flex-direction: column; gap: 14px; padding: 18px; }
  .evidence-columns > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .evidence-card { padding: 17px; }
  .concept-overview h2 { word-break: normal; }
}
.detail-summary {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.primary-image {
  aspect-ratio: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.primary-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.summary-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.summary-facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.summary-facts dd {
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: auto;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 0;
  white-space: nowrap;
  font-weight: 600;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  border-bottom-color: var(--green);
  color: var(--green);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.detail-sidebar {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  min-width: 0;
}
.comment-compose {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.comment-compose select {
  width: 100%;
  margin-bottom: 10px;
}
.comment-compose input {
  width: 100%;
  margin-bottom: 10px;
}
.comment-compose textarea {
  min-height: 105px;
  font-size: 13px;
}
.comment-compose button {
  margin-top: 9px;
}
.comment-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 20px 0 14px;
}
.comment-toolbar select {
  font-size: 12px;
  max-width: 160px;
}
.comment {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 12px;
}
.comment p {
  white-space: pre-wrap;
  font-size: 13px;
  margin: 8px 0;
}
.comment small {
  display: block;
  font-size: 11px;
}
.comment .actions {
  margin-top: 10px;
  gap: 5px;
}
.comment .actions button {
  font-size: 11px;
  min-height: 29px;
  padding: 5px 7px;
}
.comment.reply {
  margin-left: 16px;
  padding-left: 12px;
  border-left: 2px solid #d4dfd8;
}
.resolution {
  margin: 10px 0;
  background: #eaf2ed;
  padding: 10px;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.source-note {
  background: #eef1ef;
  padding: 10px;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.attachments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.attachment {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: white;
  min-width: 0;
}
.attachment figure {
  margin: 0;
  aspect-ratio: 4/3;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.attachment figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.attachment .asset-info {
  padding: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.asset-info p {
  margin: 7px 0;
  font-size: 12px;
}
.asset-info small {
  display: block;
  font-size: 11px;
}
.upload-form {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 22px 0;
}
.upload-form .form-grid {
  gap: 12px;
}
.source-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.source-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 16px;
}
.back-link svg {
  width: 15px;
  height: 15px;
}
.section-title {
  margin-bottom: 18px;
}
.source-issues {
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  padding-left: 18px;
}
.local-notice {
  font-size: 12px;
  color: #7a6037;
  background: #fcf4e7;
  padding: 12px;
  margin: 0 0 16px;
  line-height: 1.7;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  width: min(620px, calc(100% - 24px));
  max-height: 90vh;
  overflow: auto;
  color: inherit;
  background: white;
  box-shadow: 0 18px 70px #17291b26;
}
dialog::backdrop {
  background: #192d244a;
}
dialog .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
dialog .form-grid {
  gap: 16px;
}
dialog form > label {
  margin-bottom: 15px;
}
dialog .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.modal-error {
  color: #aa2e47;
  font-size: 12px;
  line-height: 1.6;
  margin: 14px 0 0;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.compare pre {
  font: 12px/1.7 inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 45vh;
  overflow: auto;
  background: #f1f4f2;
  padding: 12px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #263f32;
  color: white;
  padding: 13px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 20px #0002;
  max-width: min(650px, calc(100% - 30px));
  font-size: 13px;
  line-height: 1.6;
}
#toast.error {
  background: #91344d;
}
[hidden] {
  display: none !important;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4f906d;
  outline-offset: 3px;
}
.page-heading > .actions {
  flex-shrink: 0;
}
#add-product {
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .app-header {
    gap: 14px;
    padding: 12px 18px;
  }
  .brand span {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .connection {
    display: none;
  }
  .app-header select {
    max-width: 235px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 305px;
    gap: 20px;
  }
  .detail-sidebar {
    padding-left: 20px;
  }
  .detail-summary {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
  }
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .attachments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main {
    padding: 22px 18px;
  }
  .section-form[data-section="basic"] .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .app-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    position: static;
  }
  .brand {
    font-size: 19px;
  }
  .brand span {
    display: block;
    font-size: 12px;
  }
  .app-header nav {
    order: 3;
    flex-basis: 100%;
  }
  .app-header nav #boards {
    flex: 1;
    max-width: none;
    width: 0;
  }
  .header-actions {
    margin-left: auto;
  }
  .profile {
    max-width: 155px;
    font-size: 12px;
    padding: 7px;
  }
  .presence-bar {
    padding: 6px 14px;
  }
  .environment {
    display: none;
  }
  main {
    padding: 20px 14px;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 21px;
  }
  .page-heading > .actions {
    justify-content: flex-end;
    max-width: 140px;
  }
  .stats {
    gap: 17px;
    padding: 13px 0;
  }
  .stat {
    gap: 6px;
  }
  .stat strong {
    font-size: 19px;
  }
  .stat span {
    font-size: 11px;
  }
  .toolbar .search {
    flex-basis: 100%;
    max-width: none;
  }
  .toolbar > select {
    max-width: 160px;
    font-size: 12px;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .detail-summary {
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 15px;
  }
  .summary-facts {
    gap: 12px;
  }
  .form-grid {
    gap: 16px;
  }
  .form-grid .field {
    grid-column: 1/-1;
  }
  .section-form[data-section="basic"] .field {
    grid-column: auto;
  }
  .source-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-body {
    padding: 10px;
  }
  .card-meta {
    display: block;
  }
  .card-meta > span {
    display: block;
    margin-top: 6px;
  }
  .detail-summary {
    grid-template-columns: 115px minmax(0, 1fr);
  }
  .summary-facts {
    grid-template-columns: 1fr;
  }
  .page-heading > .actions .button-link {
    font-size: 11px;
  }
  .page-heading > .actions button {
    font-size: 12px;
  }
  .compare {
    grid-template-columns: 1fr;
  }
  .profile {
    max-width: 135px;
  }
  .brand {
    gap: 9px;
  }
  .brand span {
    padding-left: 9px;
  }
  .attachments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-wrap {
    max-height: 60vh;
  }
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  counter-reset: workflow-step;
}
.workflow-steps li {
  counter-increment: workflow-step;
  padding: 10px 4px;
  border-top: 2px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.workflow-steps li::before {
  content: counter(workflow-step) ". ";
}
.workflow-steps li[aria-current="step"] {
  border-color: var(--green);
  color: var(--green);
  font-weight: 700;
}
.workflow-steps small {
  display: block;
  margin-top: 6px;
}
.reference-section {
  border-bottom: 1px solid var(--line);
  padding: 0 0 20px;
  margin-bottom: 24px;
}
.reference-section h3 {
  margin: 0;
  font-size: 15px;
}
.reference-section h3 small {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
}
.reference-preview {
  grid-column: 1 / -1;
}
.reference-preview:empty {
  display: none;
}
.reference-preview img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
}
.home-filters,
.home-task-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.home-filters .search {
  flex: 1;
  max-width: 440px;
  min-width: 160px;
}
.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 28px;
}
.home-metrics > div {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.home-metrics svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}
.home-metrics span {
  font-size: 12px;
  color: var(--muted);
}
.home-metrics strong {
  grid-column: 2;
  font-size: 28px;
}
.home-metrics > div:nth-child(2) strong {
  color: var(--pink);
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
}
.home-work,
.home-activity,
.home-boards {
  min-width: 0;
}
.home-layout h2,
.home-boards h2 {
  font-size: 16px;
}
.home-work h2 small {
  font-size: 12px;
  font-weight: 400;
  margin-left: 8px;
}
.home-activity {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.home-activity section + section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 12px;
}
.home-notifications {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-notifications li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.home-notifications a {
  display: block;
}
.home-notifications strong,
.home-notifications span,
.home-notifications small {
  display: block;
  font-size: 12px;
  line-height: 1.6;
}
.home-notifications small {
  color: var(--muted);
  font-size: 11px;
}
.home-table-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
#home-tasks .home-table-scroll {
  max-height: 560px;
}
#home-tasks th {
  position: sticky;
  top: 0;
  z-index: 1;
}
#home-events {
  max-height: 420px;
  overflow-y: auto;
}
.home-table-scroll table {
  width: 100%;
  min-width: 680px;
  table-layout: auto;
  border-collapse: collapse;
}
.home-table-scroll th,
.home-table-scroll td {
  padding: 12px 10px;
  height: auto;
  text-align: left;
  white-space: normal;
  vertical-align: middle;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  position: static;
}
.home-table-scroll th {
  background: #eff2f0;
}
.home-table-scroll td small {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}
.home-table-scroll td:first-child {
  min-width: 220px;
}
.home-table-scroll td:nth-child(3) {
  min-width: 90px;
}
.home-table-scroll th:nth-child(2),
.home-table-scroll td:nth-child(2) {
  min-width: 100px;
}
.home-table-scroll td:nth-child(4) {
  min-width: 120px;
}
.home-table-scroll td:nth-child(5) {
  max-width: 220px;
  overflow-wrap: anywhere;
}
.home-product {
  display: flex;
  gap: 12px;
  align-items: center;
}
.home-product > span:last-child {
  min-width: 0;
}
.home-product strong,
.home-product span span {
  display: block;
  overflow-wrap: anywhere;
}
.home-product strong {
  color: var(--green);
  margin-bottom: 4px;
}
.home-table-scroll .home-product img,
.home-no-image {
  width: 48px;
  height: 56px;
  flex: 0 0 48px;
  object-fit: contain;
  background: white;
}
.home-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #84988b;
}
.home-no-image svg {
  width: 20px;
}
.home-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border-block: 1px solid var(--line);
}
.home-boards {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.home-board-table a {
  color: var(--green);
  font-weight: 600;
}
.home-warning {
  padding: 12px;
  margin-bottom: 16px;
  background: #faedf0;
  color: #9b244b;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-activity {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .home-activity section + section {
    border: 0;
    margin: 0;
    padding: 0;
  }
}
@media (max-width: 600px) {
  .home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .home-activity {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-filters .search {
    flex-basis: 100%;
    max-width: none;
  }
  .home-task-filters select,
  .home-filters select {
    min-width: 0;
    max-width: 100%;
    flex: 1;
  }
  .home-task-filters .segmented {
    flex-basis: 100%;
  }
  .home-task-filters .segmented button {
    flex: 1;
  }
}

.card-price { margin-top: 12px; font-size: 13px; color: var(--muted); }
.card-price strong { margin-left: 6px; font-size: 16px; color: var(--ink); }

.grid-editable { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; }
.grid-editable a { overflow:hidden; text-overflow:ellipsis; }
.grid-edit-button { flex-shrink:0; border:0; background:transparent; color:var(--green); padding:4px 7px; min-height:28px; cursor:pointer; }
.quantity-cell { justify-content:flex-end; }
.detail-edit-actions { display:flex; gap:8px; padding:12px 0; }
.detail-edit-actions button, .card-edit button { font-size:12px; }
.card-edit { margin:10px 0; }
.color-trend-basis { white-space:pre-line; min-width:240px; max-width:480px; font-size:12px; line-height:1.6; }
.color-trend-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.pantone-proposal { display:block; min-width:150px; line-height:1.6; }

.cost-cell small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.card-cost { margin-top:8px; font-size:12px; color:var(--muted); }
.estimated-cost-value { margin:12px 0; font-size:26px; font-weight:650; }
.estimated-cost-value small { font-size:13px; color:var(--muted); font-weight:400; }

.inline-edit-cell { cursor: text; }
.inline-edit-cell:hover { background-color: rgba(31,104,81,.045); }
.inline-edit-cell.tabulator-editing input { min-width:0; width:100%; }

.detail-layout.new-product-detail { grid-template-columns: minmax(0, 1fr); max-width: 1120px; }

#workspace-grid .grid-new-row { background:#f5faf7; }
.remove-new-row { padding:3px 10px; font-size:20px; color:var(--muted); background:transparent; border:0; cursor:pointer; }

/* Product authoring: employees enter the working specification first. */
.detail-layout.authoring-layout {display:block;max-width:1440px;margin:0 auto;}
.detail-author-heading {position:sticky;top:69px;z-index:12;background:#fff;padding:18px 24px;border:1px solid var(--line);border-radius:12px;margin-bottom:16px;gap:16px;}
.detail-author-heading h1 {font-size:25px;margin:3px 0 5px;}
.detail-author-heading .actions {flex-wrap:wrap;justify-content:flex-end;}
#detail-save-state {font-size:12px;color:var(--muted);}
#detail-save-state.unsaved {color:#a15c00;}
#detail-save {min-width:108px;}
.authoring-layout .tabs {margin-bottom:18px;}
.authoring-layout .tabs [hidden],.authoring-layout [data-panel][hidden] {display:none!important;}
.author-section {background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin:0 0 18px;scroll-margin-top:185px;}
.author-section-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;}
.author-section-heading>div {display:flex;align-items:center;gap:10px;}
.author-section-heading h2 {font-size:17px;margin:0;}
.author-section-heading small,.author-help,.author-field small {color:var(--muted);font-size:12px;line-height:1.6;}
.author-step {font-size:11px;font-weight:800;color:var(--pink);background:#fdf0f5;border-radius:6px;padding:5px 7px;}
.author-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px;}
.author-grid-two {grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px;}
.author-identity-grid {display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:16px;margin-bottom:18px;}
.author-field {display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;}
.author-field>span {font-weight:600;color:#4b4651;}
.author-field b {color:var(--pink);}
.author-field input,.author-field select,.author-field textarea {width:100%;min-width:0;box-sizing:border-box;font-size:14px;}
.author-field textarea {line-height:1.6;resize:vertical;min-height:72px;}
.author-field input:read-only {background:#f7f6f8;color:#77717b;}
.author-field output {font-size:21px;font-weight:700;padding:6px 0;min-height:40px;}
.author-inline-note {display:flex;gap:24px;flex-wrap:wrap;margin:14px 0;color:var(--muted);font-size:12px;}
.author-more {margin-top:18px;border-top:1px solid #efedf1;padding-top:14px;}
.author-more>summary,.author-media-fold>summary {cursor:pointer;color:#605768;font-size:13px;font-weight:600;}
.author-more[open]>summary {margin-bottom:14px;}
.author-color-scroll {overflow-x:auto;}
.author-color-table {width:100%;table-layout:fixed;border-collapse:collapse;min-width:790px;}
.author-color-table th {background:#f7f6f8;text-align:left;font-size:12px;color:#746b79;padding:11px 12px;}
.author-color-table td {padding:14px 12px;border-bottom:1px solid #efedf1;vertical-align:middle;}
.author-color-table th:first-child {width:130px;}
.author-color-table th:nth-child(2) {width:170px;}
.author-color-table th:nth-child(3) {width:160px;}
.author-color-table th:nth-child(5) {width:115px;}
.author-color-table th:last-child {width:45px;}
.author-color-table input,.author-color-table select {width:100%;min-width:0;font-size:13px;}
.author-color-table td>select {margin-top:5px;font-size:11px;}
.author-color-image {width:96px;height:112px;border:1px dashed #d8d1dc;border-radius:8px;background:#faf9fb;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#8b7c91;font-size:12px;}
.author-color-image img {width:100%;height:100%;object-fit:contain;}
.author-color-image input {position:absolute;inset:0;opacity:0;cursor:pointer;}
.author-color-image.dragging {outline:3px solid var(--pink);}
.author-color-cancelled {opacity:.5;}
.author-empty {background:#f8f7f9;padding:24px;border:1px dashed #ddd5e1;border-radius:8px;color:var(--muted);font-size:13px;}
#author-color-total {font-size:13px;color:#64576b;}
.authoring-error {padding:14px 18px;border:1px solid #edb9b9;background:#fff4f4;border-radius:8px;margin-bottom:16px;color:#8b2828;scroll-margin-top:180px;}
.authoring-error button {margin-left:12px;}
.author-media-fold {border-top:1px solid var(--line);padding-top:16px;margin-top:16px;}
.author-media-fold>summary {font-size:14px;margin-bottom:16px;}
.author-media-fold>.reference-section,.author-media-fold>.upload-form,.author-media-fold>#concept-assets {margin:0;border:0;padding:0;}
.author-activity {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;}
.authoring-layout .detail-sidebar {position:static;max-height:none;border:1px solid var(--line);padding:24px;border-radius:12px;background:#fff;}
.author-activity .board-log {margin-top:0;}
@media(max-width:1000px){
 .detail-author-heading {top:0;}
 .author-identity-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .author-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .author-section {padding:20px;}
 .author-activity {grid-template-columns:1fr;}
}
@media(max-width:600px){
 .detail-author-heading {padding:12px;gap:10px;}
 .detail-author-heading h1 {font-size:19px;}
 .detail-author-heading .actions {width:100%;justify-content:space-between;gap:8px;}
 .detail-author-heading #techpack-link {font-size:11px;padding:7px;}
 #detail-save-state {font-size:10px;}
 .author-section {padding:16px;}
 .author-section-heading {align-items:flex-start;gap:8px;flex-wrap:wrap;}
 .author-section-heading h2 {font-size:16px;}
 .author-grid,.author-identity-grid {grid-template-columns:1fr;gap:14px;}
 .author-section-heading>div {gap:8px;}
 .authoring-layout .detail-main {min-width:0;}
 .author-activity .detail-sidebar {padding:16px;}
}

.product-delete-button {color:#b33939;border:1px solid #ebcece;background:#fff;font-size:12px;white-space:nowrap;}
.product-delete-button:hover {background:#fff1f1;border-color:#d99898;}
#workspace-grid .product-delete-button {padding:6px 8px;min-height:30px;}
.delete-confirm {margin-top:20px;}
.delete-draft-note {color:#a15c00;font-size:13px;}

/* Keep the season's evidence near the assortment, without crowding the editable grid. */
.season-brief { margin: 0 0 20px; border: 1px solid var(--border, #ddd); border-radius: 12px; background: var(--surface, #fff); }
.season-brief summary { cursor: pointer; padding: 16px 20px; font-weight: 650; }
.season-brief summary span { margin-left: 12px; color: var(--muted, #68716b); font-size: 12px; font-weight: 400; }
.season-brief-content { padding: 0 20px 20px; max-width: 1000px; }
.season-brief-content h3 { margin: 20px 0 8px; font-size: 15px; }
.season-brief-content p { line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; font-size: 13px; }
@media (max-width: 640px) { .season-brief summary span { display: block; margin: 6px 0 0 18px; } }

.season-lookbook { margin: 0 0 24px; border: 1px solid var(--border, #ddd); border-radius: 12px; background: #fff; padding: 0 18px 18px; }
.season-lookbook > summary { cursor: pointer; padding: 16px 0; font-weight: 650; }
.season-lookbook > summary span { margin-left: 12px; font-size: 12px; font-weight: 400; color: #68716b; }
.season-lookbook-note { margin: 0 0 12px; color: #68716b; font-size: 12px; }
.season-lookbook-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, calc((100% - 42px) / 4)); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.season-look-card { border: 1px solid #e1e5df; border-radius: 9px; overflow: hidden; scroll-snap-align: start; min-width: 0; }
.season-look-photo { display: block; background: #f3f2ee; }
.season-look-photo img { display: block; width: 100%; height: 340px; object-fit: contain; }
.season-look-body { padding: 12px; }
.season-look-body h3 { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.season-look-body p { white-space: pre-line; font-size: 11px; color: #68716b; line-height: 1.6; margin: 0 0 12px; }
.season-look-products { display: grid; gap: 7px; }
.season-look-products a { display: block; border-top: 1px solid #edf0eb; padding-top: 6px; font-size: 12px; line-height: 1.45; }
.season-look-products small { display: block; font-size: 10px; color: #68716b; }
@media (max-width: 680px) { .season-lookbook-strip { grid-auto-columns: 82%; } .season-look-photo img { height: 310px; } .season-lookbook > summary span { display: block; margin: 5px 0 0 17px; } }

.grid-status-group { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
#grid-selection-status { font-size:12px; color:#9c3152; }
.grid-select-label { display:inline-flex; align-items:center; gap:5px; cursor:pointer; }
.tabulator .tabulator-cell[tabulator-field="_select"] { text-align:center; }
[data-select-product], [data-select-visible] { width:16px; height:16px; cursor:pointer; accent-color:#b82856; }
.bulk-delete-list { max-height:240px; overflow:auto; padding-left:22px; line-height:1.8; }

#workspace-grid .tabulator-cell input[type="checkbox"] { width:16px; height:16px; min-height:0; padding:0; margin:0; }

.gender-totals{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px 0;padding:14px 18px;background:#f2f7f4;border-radius:8px;font-size:13px}.gender-totals span{padding-left:12px;border-left:1px solid #cad8d0}.gender-totals b{margin-left:5px}.home-filters{flex-wrap:wrap}
