:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-2: #f0f2ee;
  --ink: #18201c;
  --muted: #66736b;
  --line: #d9dfd8;
  --brand: #154734;
  --brand-2: #c6a15b;
  --blue: #1e5f8a;
  --blue-bg: #e8f2f8;
  --green: #216e4e;
  --green-bg: #e7f4ed;
  --amber: #986a17;
  --amber-bg: #fbf1dc;
  --red: #a23b32;
  --red-bg: #f8e7e4;
  --shadow: 0 18px 48px rgba(24, 32, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei",
    Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  background: #18201c;
  color: #f7faf6;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--brand-2);
  color: #18201c;
  font-weight: 800;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
}

.brand-sub {
  color: #aeb8af;
  font-size: 12px;
  margin-top: 2px;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #dce4dc;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-item.muted {
  color: #aeb8af;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--brand-2);
}

.side-panel {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.panel-label,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.side-panel .panel-label {
  color: #aeb8af;
}

.side-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #dce4dc;
}

.side-metric:first-of-type {
  margin-top: 10px;
}

.side-metric strong {
  color: #ffffff;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
}

h3 {
  font-size: 17px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  height: 40px;
  min-width: 290px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 12px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.icon-button,
.primary-button,
.filter-button,
.tab,
.decision-grid button,
.comm-table button,
.drawer-actions button,
.workspace-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
}

.icon-button {
  width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
}

.primary-button {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  font-weight: 700;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.tabs,
.filter-row,
.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab.active,
.workspace-tab.active {
  background: #e7ece6;
  border-color: #b8c6b8;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.summary-card,
.section-block,
.table-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(24, 32, 28, 0.02);
}

.summary-card {
  min-height: 112px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.summary-card span,
.summary-card small,
.table-header span,
.section-title span,
.row span,
.info-grid span,
.handoff-summary span,
.drawer-field span,
.drawer-field small {
  color: var(--muted);
}

.summary-card strong {
  font-size: 30px;
}

.summary-card.alert {
  border-left: 4px solid var(--red);
}

.table-header,
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.pipeline-table,
.comm-table {
  width: 100%;
}

.row {
  display: grid;
  align-items: center;
  gap: 12px;
}

.pipeline-table .row {
  grid-template-columns: 1.15fr 0.72fr 0.95fr 1.85fr 1.45fr;
}

.comm-table .row {
  grid-template-columns: 1fr 1fr 2fr 1.4fr 0.8fr;
}

.row.head {
  min-height: 42px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface-2);
}

.row.data-row,
.comm-table .row:not(.head) {
  width: 100%;
  min-height: 74px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  padding: 12px 18px;
}

.row.data-row:hover {
  background: #fafbf9;
}

.row strong {
  display: block;
}

.status,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status.blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.status.amber,
.pill.amber {
  background: var(--amber-bg);
  color: var(--amber);
}

.status.red,
.pill.red {
  background: var(--red-bg);
  color: var(--red);
}

.status.green,
.pill.green {
  background: var(--green-bg);
  color: var(--green);
}

.status.neutral {
  background: #eef0ed;
  color: #465149;
}

.stage-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(34px, 1fr));
  gap: 4px;
}

.stage-line.sample-flow {
  grid-template-columns: repeat(7, minmax(30px, 1fr));
}

.prep-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: stretch;
}

.prep-mini span {
  min-height: 24px;
  display: grid;
  place-items: center start;
  border: 1px solid var(--line);
  background: #f7f8f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 8px;
}

.prep-mini .ok {
  background: var(--green-bg);
  color: var(--green);
  border-color: #b9d9c7;
}

.prep-mini .warn {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: #e6ca83;
}

.prep-mini small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  margin-top: 2px;
}

.stage-status {
  display: grid;
  gap: 7px;
  align-content: center;
  justify-items: start;
}

.block-summary {
  display: grid;
  gap: 5px;
  line-height: 1.35;
}

.block-summary span {
  color: var(--muted);
}

.stage-line span {
  min-height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #f7f8f6;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.stage-line .done {
  background: var(--green-bg);
  color: var(--green);
  border-color: #b9d9c7;
}

.stage-line .active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.stage-line .blocked {
  background: var(--red-bg);
  color: var(--red);
  border-color: #e7beb8;
}

.style-header {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
}

.style-header.compact {
  margin-bottom: 14px;
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.workspace-tabs {
  margin-bottom: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 14px;
}

.timeline-large {
  padding: 8px 18px 18px;
}

.timeline-item {
  position: relative;
  min-height: 60px;
  display: grid;
  gap: 4px;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  background: var(--surface);
}

.timeline-item.complete::before {
  background: var(--green);
  border-color: var(--green);
}

.timeline-item.current::before {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.timeline-item span {
  color: var(--muted);
}

.review-snapshot {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.prep-inline {
  margin-top: 14px;
}

.parallel-materials {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.material-card {
  min-height: 118px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.material-card.done {
  border-top: 4px solid var(--green);
}

.material-card.waiting {
  border-top: 4px solid var(--amber);
  background: var(--amber-bg);
}

.material-card span,
.material-card small {
  color: var(--muted);
}

.sample-visual,
.media-card {
  background:
    linear-gradient(135deg, rgba(21, 71, 52, 0.08), rgba(198, 161, 91, 0.12)),
    #eef0ed;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.sample-visual {
  min-height: 240px;
  display: grid;
  place-items: center;
}

.jacket-shape,
.garment {
  width: 92px;
  height: 132px;
  background: #232b28;
  clip-path: polygon(24% 0, 76% 0, 100% 26%, 84% 44%, 76% 28%, 76% 100%, 24% 100%, 24% 28%, 16% 44%, 0 26%);
  position: relative;
}

.jacket-shape span,
.garment::after {
  content: "";
  position: absolute;
  inset: 10px 44px 8px 44px;
  background: rgba(255, 255, 255, 0.24);
}

.snapshot-content {
  display: grid;
  align-content: center;
  gap: 14px;
}

.snapshot-content p {
  color: var(--muted);
  line-height: 1.5;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-stats span {
  border: 1px solid var(--line);
  padding: 10px;
  color: var(--muted);
}

.mini-stats strong {
  color: var(--ink);
  display: block;
  font-size: 20px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.review-main,
.review-side,
.handoff-page {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.info-grid,
.handoff-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.info-grid div,
.handoff-summary div {
  min-height: 78px;
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.media-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  grid-auto-rows: 154px;
  gap: 12px;
}

.media-card {
  display: grid;
  place-items: center;
}

.media-card.large {
  grid-row: span 2;
}

.media-card span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.86);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.garment.back {
  background: #39423d;
}

.garment.side {
  width: 58px;
  background: #2d3531;
}

.garment.detail {
  width: 110px;
  height: 110px;
  clip-path: none;
  border: 12px solid #232b28;
  background: transparent;
}

.play {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}

.dept-list {
  display: grid;
}

.dept-row {
  display: grid;
  grid-template-columns: 160px 88px minmax(0, 1fr) 102px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.dept-row:first-child {
  border-top: 0;
}

.dept-row.pending {
  background: #fafbf9;
}

.dept-person {
  display: grid;
  gap: 4px;
}

.dept-person span,
.my-review label span {
  color: var(--muted);
  font-size: 12px;
}

.dept-row p {
  color: var(--muted);
  line-height: 1.4;
}

.row-action {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.row-action.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pill.neutral {
  background: #eef0ed;
  color: #465149;
}

.my-review {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.review-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.review-choices button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.review-choices button.selected {
  background: var(--amber-bg);
  border-color: #e6ca83;
  color: var(--amber);
}

.my-review label {
  display: grid;
  gap: 7px;
}

.my-review textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--line);
  padding: 10px;
  color: var(--ink);
}

.quick-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-fields select,
.quick-fields input {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 10px;
  color: var(--ink);
}

.issue-list {
  display: grid;
}

.issue-row {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  padding: 14px 18px;
  display: grid;
  gap: 6px;
  color: var(--ink);
}

.issue-row:first-child {
  border-top: 0;
}

.issue-row:hover {
  background: #fafbf9;
}

.issue-row.blocker {
  border-left: 4px solid var(--red);
}

.decision-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.decision-grid button.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.audit-list {
  display: grid;
  padding: 8px 18px 18px;
}

.audit-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.audit-list span {
  color: var(--muted);
}

.handoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.handoff-summary {
  grid-template-columns: repeat(2, 1fr);
  border: 0;
}

.check-list {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.check-list div {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 36px;
}

.check-list span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
}

.handoff-flow {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.flow-step {
  min-height: 76px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: #f8f9f7;
  color: var(--muted);
  font-weight: 700;
}

.flow-step.done {
  background: var(--green-bg);
  color: var(--green);
  border-color: #b9d9c7;
}

.flow-step.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.production-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.production-fields span {
  border: 1px solid var(--line);
  background: #f8f9f7;
  padding: 8px 10px;
  color: var(--muted);
}

.handoff-page > .section-block .primary-button {
  margin: 0 18px 18px;
  width: fit-content;
}

.calendar-layout,
.prep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
  gap: 14px;
}

.calendar-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.calendar-day {
  min-height: 238px;
  border: 1px solid var(--line);
  background: #fafbf9;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.calendar-day.urgent {
  border-top: 4px solid var(--red);
}

.calendar-day.quiet {
  border-top: 4px solid var(--green);
}

.calendar-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.calendar-item small,
.risk-row span,
.prep-checks small,
.duration-list span,
.blocker-card span {
  color: var(--muted);
}

.calendar-item b,
.calendar-item small {
  display: block;
}

.brand-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  background: var(--brand);
}

.brand-dot.salomon {
  background: var(--blue);
}

.brand-dot.supreme {
  background: #1d1d1d;
}

.brand-dot.nb {
  background: var(--red);
}

.brand-dot.descente {
  background: var(--green);
}

.brand-dot.theory {
  background: var(--brand-2);
}

.month-section {
  margin-top: 14px;
}

.month-toolbar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.month-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
}

.month-toolbar strong {
  margin-right: 10px;
  font-size: 18px;
}

.month-calendar {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 0;
}

.weekday,
.month-cell {
  border: 1px solid var(--line);
  margin-left: -1px;
  margin-top: -1px;
}

.weekday {
  min-height: 40px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}

.month-cell {
  min-height: 132px;
  background: var(--surface);
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.month-cell b {
  font-size: 14px;
}

.month-cell.weekend {
  background: #fafbf9;
}

.month-cell.muted-date {
  background: #f0f2ee;
  color: #8b968f;
}

.month-event {
  display: block;
  padding: 5px 7px;
  border-left: 4px solid var(--brand);
  background: #f8f9f7;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.month-event.salomon {
  border-left-color: var(--blue);
  background: var(--blue-bg);
}

.month-event.supreme {
  border-left-color: #1d1d1d;
}

.month-event.descente {
  border-left-color: var(--green);
  background: var(--green-bg);
}

.month-event.nb {
  border-left-color: var(--red);
  background: var(--red-bg);
}

.month-event.theory {
  border-left-color: var(--brand-2);
  background: var(--amber-bg);
}

.risk-list,
.prep-checks,
.duration-list {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.risk-row,
.prep-checks div,
.duration-list div,
.blocker-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
}

.risk-row {
  display: grid;
  gap: 5px;
}

.risk-row.danger,
.blocker-card.danger,
.duration-list .slow {
  border-left: 4px solid var(--red);
}

.prep-checks div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 10px;
  align-items: center;
}

.prep-checks small {
  grid-column: 2;
}

.check {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.check.ok {
  background: var(--green);
}

.check.warn {
  background: var(--amber);
}

.duration-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.duration-list meter {
  grid-column: 1 / -1;
  width: 100%;
  height: 12px;
}

.blocker-board {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.blocker-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.blocker-card p {
  color: var(--muted);
  line-height: 1.5;
}

.comm-table {
  overflow-x: auto;
}

.comm-table .row:not(.head) {
  display: grid;
}

.issue-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 180ms ease;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr;
}

.issue-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-body {
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.drawer-field {
  border: 1px solid var(--line);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 1180px) {
  .summary-grid,
  .handoff-grid,
  .two-column,
  .calendar-layout,
  .prep-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-calendar {
    overflow-x: auto;
  }

  .weekday,
  .month-cell {
    min-width: 138px;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .review-side {
    grid-template-columns: 1fr 1fr;
  }

  .review-side .section-block:last-child {
    grid-column: 1 / -1;
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pipeline-table {
    overflow-x: auto;
  }

  .pipeline-table .row {
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    padding: 14px;
  }

  .side-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-panel {
    display: none;
  }

  .main {
    padding: 14px;
  }

  .topbar,
  .toolbar,
  .style-header {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .search {
    width: 100%;
  }

  .summary-grid,
  .handoff-grid,
  .two-column,
  .calendar-layout,
  .prep-grid,
  .parallel-materials,
  .review-side,
  .review-snapshot,
  .media-grid,
  .calendar-grid,
  .blocker-board {
    grid-template-columns: 1fr;
  }

  .month-calendar {
    grid-template-columns: repeat(7, minmax(138px, 1fr));
  }

  .media-card.large {
    grid-row: span 1;
  }

  .info-grid,
  .handoff-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .dept-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .handoff-flow {
    grid-template-columns: 1fr;
  }

  .comm-table .row {
    min-width: 760px;
  }
}

@media (max-width: 520px) {
  .info-grid,
  .handoff-summary,
  .decision-grid,
  .drawer-actions {
    grid-template-columns: 1fr;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
  }
}
