/* Genver Video Pro 고유 화면.
 * app.css(형제앱 공통 셸)를 건드리지 않고 여기에만 추가한다.
 * 새로 만든 토큰은 원가 표시용 --money 하나뿐이다. */

:root {
  --money: #9a5700;
  --money-subtle: #fdf2e4;
}

.money {
  color: var(--money);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── 1열: 원가 칩 (model-chip 과 같은 계열) ─────────────────── */

.cost-chip {
  padding: 8px 9px 7px;
  margin-bottom: 6px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-6);
  background: var(--bg-panel);
}
.cc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.cc-label {
  font-size: 10px;
  color: var(--text-3);
}
.cc-value {
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--money);
  font-variant-numeric: tabular-nums;
}
.cc-meter {
  position: relative;
  height: 4px;
  margin: 6px 0 5px;
  border-radius: 2px;
  background: var(--bg-subtle);
  overflow: hidden;
}
.cc-base,
.cc-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}
.cc-base {
  background: var(--border-3);
}
.cc-fill {
  background: var(--money);
}
.cc-foot {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.model-chip.is-dev {
  margin-top: 6px;
  background: var(--money-subtle);
  border-color: #f0dcbe;
}
.model-chip.is-dev .dot {
  background: var(--money);
  box-shadow: 0 0 0 3px #f7e7cd;
}
.model-chip.is-dev strong {
  color: var(--money);
}

/* ── 2열: 단계 목록 푸터 (docs .toc-foot 패턴) ──────────────── */

.detail-foot {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-1);
  background: var(--bg-panel);
}
.detail-foot .btn {
  flex: 1;
}

.dt-row .dt-gate {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-text);
}
.dt-row .dt-cost {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ── 3열: 대화 안의 승인 카드 ───────────────────────────────── */

.ask-card {
  margin-top: 10px;
  border: 1px solid var(--accent-border);
  border-radius: var(--r-10);
  background: var(--accent-subtle);
  overflow: hidden;
}
.ask-card.is-warn {
  border-color: #f0dcbe;
  background: var(--money-subtle);
}
.ask-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px 7px;
  font-size: var(--fs-11);
  font-weight: 700;
  color: var(--accent-text);
}
.ask-card.is-warn .ask-head {
  color: var(--money);
}
.ask-lines {
  padding: 0 11px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ask-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--fs-12);
  color: var(--text-2);
}
.ask-line b {
  font-weight: 600;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
.ask-line.is-total {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid var(--accent-border);
  color: var(--text-1);
  font-weight: 600;
}
.ask-card.is-warn .ask-line.is-total {
  border-top-color: #f0dcbe;
}

/* 단계 액션 바 — 대화와 입력창 사이. 진행 버튼은 여기에만 있다. */

.step-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 11px;
  border-top: 1px solid var(--accent-border);
  background: var(--accent-subtle);
}
.sa-text {
  font-size: var(--fs-11);
  line-height: 1.55;
  color: var(--accent-text);
  word-break: keep-all;
}
.sa-btns {
  display: flex;
  gap: 6px;
}
.sa-btns .btn {
  flex: 1;
}
.sa-btns .btn.primary {
  flex: 1.4;
}

.msg .kit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 10px;
}
.kit-sw {
  border: 1px solid var(--border-1);
  border-radius: var(--r-6);
  overflow: hidden;
  background: var(--bg-panel);
}
.kit-sw i {
  display: block;
  height: 26px;
}
.kit-sw span {
  display: block;
  padding: 3px 5px;
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ── 4열: 작업판 ────────────────────────────────────────────────
 * 형제앱의 미리보기 열처럼, 박스를 늘어놓지 않고 종이 한 장을
 * 가라앉은 배경 위에 올린다. 구획은 테두리가 아니라 실선 한 줄로 나눈다.
 * ------------------------------------------------------------ */

.work {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.work > * {
  flex: none;
}

.sheet {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid var(--border-1);
  border-radius: var(--r-10);
  background: var(--bg-panel);
  box-shadow: var(--sh-paper);
  overflow: hidden;
}

.sheet-head {
  padding: 20px 24px 17px;
  border-bottom: 1px solid var(--border-1);
}
.sheet-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--accent-text);
}
.sheet-title {
  margin-top: 3px;
  font-size: var(--fs-17);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.sheet-lead {
  max-width: 64ch;
  margin-top: 6px;
  font-size: var(--fs-12);
  line-height: 1.6;
  color: var(--text-2);
  word-break: keep-all;
}

.ed-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  font-size: var(--fs-11);
  color: var(--text-3);
}
.ed-hint svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--accent-text);
}

/* ── 편집 가능한 값 ───────────────────────────────────────────────────────
 * 고칠 수 있는 곳만 점선을 깔아 둔다. 읽을 때는 조용하고, 손을 대면 응답한다.
 * ---------------------------------------------------------------------- */

.ed {
  border-radius: 3px;
  cursor: text;
  /* 밑줄은 글줄 높이를 건드리지 않는 text-decoration 으로 그린다 */
  text-decoration: underline dashed var(--text-3);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-skip-ink: none;
  transition: background 0.12s;
}
.ed.block {
  display: block;
}
.ed:hover {
  background: var(--bg-hover);
  text-decoration-color: var(--accent);
}
.ed:focus {
  outline: none;
  background: rgba(13, 148, 136, 0.08);
  box-shadow: var(--ring);
  text-decoration-color: var(--accent);
}
.ed:empty::before {
  content: "비어 있음";
  color: var(--text-3);
}

.ed-num {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}
.ed-num input {
  width: 34px;
  padding: 1px 0 1px 3px;
  border: 1px solid transparent;
  border-radius: var(--r-6);
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
  -moz-appearance: textfield;
}
.ed-num input::-webkit-outer-spin-button,
.ed-num input::-webkit-inner-spin-button {
  margin: 0;
  opacity: 0;
}
.ed-num:hover input {
  border-color: var(--border-2);
  background: var(--bg-panel);
}
.ed-num input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-panel);
  box-shadow: var(--ring);
  opacity: 1;
}
.ed-num input:focus::-webkit-inner-spin-button {
  opacity: 1;
}

/* 툴바의 편집 표시 — 몇 개를 고쳤고, 어떻게 되돌리는가 */

.ed-count {
  color: var(--accent-text);
  font-weight: 600;
}
.ed-reset {
  height: 19px;
  margin-left: 2px;
  padding: 0 7px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-2);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.ed-reset:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

/* 구획 */

.sec {
  padding: 18px 24px 20px;
}
.sec + .sec {
  border-top: 1px solid var(--border-1);
}
.sec.flush {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 4px;
}
.sec.flush > .sec-head {
  padding: 0 24px;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}
.sec-title {
  font-size: var(--fs-13);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.sec-note {
  font-size: var(--fs-11);
  color: var(--text-3);
  text-align: right;
  word-break: keep-all;
}
.sec-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-1);
  font-size: var(--fs-11);
  color: var(--text-3);
}
.sec.flush > .sec-foot {
  margin: 0 24px;
}
.sec-body-note {
  margin-top: 11px;
  font-size: var(--fs-11);
  line-height: 1.65;
  color: var(--text-3);
  word-break: keep-all;
}

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
}
.cols.c3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols.split {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}
.col-title {
  margin-bottom: 9px;
  font-size: var(--fs-11);
  font-weight: 600;
  color: var(--text-3);
}

/* 큰 숫자 — 견적과 정산의 결론 */

.figs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-sidebar);
}
.fig {
  padding: 15px 20px 16px;
  min-width: 0;
}
.fig + .fig {
  border-left: 1px solid var(--border-1);
}
.fig-label {
  display: block;
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fig-value {
  display: block;
  margin-top: 3px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.fig.is-money .fig-value {
  color: var(--money);
}
.fig-sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.fig-value.ok {
  color: var(--success);
}
.fig-value.over {
  color: var(--danger);
}
.fig-value.sm {
  font-size: var(--fs-14);
  letter-spacing: -0.01em;
}

/* 표 */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-12);
}
.tbl th {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-3);
  white-space: nowrap;
}
.tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-1);
  vertical-align: middle;
}
.tbl tbody tr:last-child td {
  border-bottom: 0;
}
.sec.flush .tbl th:first-child,
.sec.flush .tbl td:first-child {
  padding-left: 24px;
}
.sec.flush .tbl th:last-child,
.sec.flush .tbl td:last-child {
  padding-right: 24px;
}
.tbl .r {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tbl .idx {
  width: 22px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.tbl .sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--text-3);
}
.tbl tr.dim td,
.tbl tr.dim .r {
  color: var(--text-3);
}
.tbl tr.total td {
  border-top: 1px solid var(--border-2);
  border-bottom: 0;
  font-weight: 650;
  background: var(--bg-sidebar);
}
.tbl select {
  height: 24px;
  max-width: 100%;
  padding: 0 4px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-4);
  background: var(--bg-panel);
  font: inherit;
  font-size: var(--fs-11);
}

/* 이름 · 값 목록 */

.dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 14px;
  font-size: var(--fs-12);
}
.dl dt {
  color: var(--text-3);
  white-space: nowrap;
}
.dl dd {
  text-align: right;
  font-weight: 500;
  word-break: keep-all;
}

/* 색상 팔레트 */

.pal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pal-item i {
  display: block;
  height: 58px;
  border-radius: var(--r-8);
  /* 밝은 색이 흰 종이 위에서 사라지지 않게 윤곽을 남긴다. */
  box-shadow: inset 0 0 0 1px rgba(20, 20, 35, 0.14);
}
.pal-item b {
  display: block;
  margin-top: 7px;
  font-size: var(--fs-12);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pal-item span {
  display: block;
  font-size: 10px;
  color: var(--text-3);
}

/* 입력 */

.fld + .fld {
  margin-top: 16px;
}
.fld-label {
  display: block;
  margin-bottom: 7px;
  font-size: var(--fs-11);
  font-weight: 600;
  color: var(--text-3);
}
.fld input[type="url"],
.fld textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-6);
  background: var(--bg-panel);
  font: inherit;
  font-size: var(--fs-12);
  resize: vertical;
}
.fld input[type="url"]:focus,
.fld textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pill {
  height: 25px;
  padding: 0 11px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-11);
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
}
.pill:hover {
  border-color: var(--border-3);
  color: var(--text-1);
}
.pill.on {
  background: var(--accent);
  border-color: transparent;
  color: var(--text-inv);
  font-weight: 600;
}

/* 첨부 파일 · 수집 로그 — 테두리 없이 실선 한 줄로만 구분 */

.files {
  list-style: none;
}
.files li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-1);
}
.files li:last-child {
  border-bottom: 0;
}
.files .ext {
  padding: 3px 0;
  border-radius: 3px;
  background: var(--bg-subtle);
  color: var(--text-3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}
.files .nm {
  font-size: var(--fs-12);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.files .mt {
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.loglist {
  list-style: none;
}
.loglist li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-1);
  font-size: var(--fs-12);
}
.loglist li:last-child {
  border-bottom: 0;
}
.loglist svg {
  width: 12px;
  height: 12px;
  color: var(--success);
  transform: translateY(2px);
}
.loglist em {
  font-style: normal;
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 기획 — 구성과 원고 */

.beats {
  list-style: none;
}
.beats li {
  display: grid;
  grid-template-columns: 54px auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-1);
  font-size: var(--fs-12);
  color: var(--text-2);
}
.beats li:last-child {
  border-bottom: 0;
}
.beats .bt {
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.beats .bn {
  font-size: var(--fs-11);
  font-weight: 650;
  color: var(--accent-text);
}

.script p {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  font-size: var(--fs-12);
  line-height: 1.7;
  word-break: keep-all;
}
.script p + p {
  margin-top: 9px;
}
.script .ts {
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* 트랙 배지 */

.track {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-2);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.track.gen {
  border-color: var(--accent-border);
  background: var(--accent-subtle);
  color: var(--accent-text);
}
.track.still {
  border-color: #d9d3ef;
  background: #f5f2fd;
  color: #5b45a8;
}
.track.graphic {
  border-color: transparent;
  background: var(--bg-subtle);
  color: var(--text-3);
  cursor: default;
}

/* 콘티 — 컨택트 시트 */

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 18px 16px;
}
.shot-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: var(--fs-11);
}
.shot-head .no {
  font-weight: 650;
}
.shot-head .tm {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.cands {
  display: grid;
  gap: 3px;
}
.cand {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: var(--r-6);
  background: var(--bg-subtle);
  cursor: pointer;
  overflow: hidden;
}
.cand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cand .ph {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 6px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--text-3);
  text-align: center;
  word-break: keep-all;
}
.cand::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-6);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 35, 0.08);
}
.cand.on::after {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cand .tag {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  padding: 0 5px;
  border-radius: 3px;
  background: rgba(15, 15, 20, 0.55);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.shot-foot {
  margin-top: 7px;
}
.shot-foot .ttl {
  display: block;
  font-size: var(--fs-12);
  font-weight: 600;
}
.shot-foot .pr {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-3);
  word-break: keep-all;
}
.shot-foot .rw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
}
.shot-foot .rw span {
  font-size: 10px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* 예상 대비 실제 */

.delta {
  font-size: var(--fs-11);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.delta.up {
  color: var(--danger);
}
.delta.down {
  color: var(--success);
}
.delta.same {
  color: var(--text-3);
  font-weight: 400;
}
.verdict {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.verdict.ok {
  background: var(--success-subtle);
  color: var(--success);
}
.verdict.over {
  background: var(--danger-subtle);
  color: var(--danger);
}

/* 납품 */

.stage {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}
.stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding: 0 2px;
  font-size: var(--fs-11);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.stage-meta b {
  font-weight: 600;
  color: var(--text-2);
}

.deliv {
  list-style: none;
}
.deliv li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-1);
}
.deliv li:last-child {
  border-bottom: 0;
}
.deliv .tb {
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: var(--r-6);
  background: var(--bg-subtle);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
}
.deliv .nm {
  font-size: var(--fs-12);
  font-weight: 600;
}
.deliv .mt {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-3);
}
.deliv .r {
  font-size: var(--fs-12);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 좁은 화면: docs 패턴대로 메뉴를 아이콘 레일로 접고 3·4열을 2행으로 */

@media (max-width: 1340px) {
  .app {
    grid-template-columns:
      52px var(--split-w)
      minmax(220px, var(--detail-w)) var(--split-w)
      minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .menu {
    grid-row: 1 / -1;
    padding: 12px 8px;
  }
  .splitter[data-split="menu"] {
    grid-row: 1 / -1;
  }
  .detail {
    grid-row: 1 / -1;
  }
  .splitter[data-split="detail"] {
    grid-row: 1 / -1;
  }
  .splitter[data-split="chat"] {
    display: none;
  }
  .chat {
    grid-column: 5;
    grid-row: 1;
    border-right: 0;
  }
  .preview {
    grid-column: 5;
    grid-row: 2;
    border-top: 1px solid var(--border-2);
  }
  .brand .txt,
  .nav-label,
  .menu-foot {
    display: none;
  }
  .nav-item span:not(.ico) {
    display: none;
  }
  .cols,
  .cols.c3,
  .cols.split {
    grid-template-columns: minmax(0, 1fr);
  }
  .figs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fig:nth-child(3) {
    border-left: 0;
  }
  .fig:nth-child(n + 3) {
    border-top: 1px solid var(--border-1);
  }
}
