:root {
  --ivory: #f7f1e7;
  --stone: #ebe3d6;
  --paper: #fffaf1;
  --paper-2: #fbf6ed;
  --navy: #071528;
  --charcoal: #1a2027;
  --muted: #5f6a74;
  --line: #d9cebd;
  --line-soft: rgba(166, 151, 129, 0.28);
  --gold: #b78345;
  --gold-soft: #d9bd8d;
  --red: #b84f49;
  --burgundy: #8f3438;
  --amber: #c89342;
  --green: #6e8a76;
  --slate: #dfe6ea;
  --slate-ink: #344656;
  --shadow: 0 24px 70px rgba(43, 35, 25, 0.12);
  --container: min(1280px, calc(100% - 56px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(183, 131, 69, 0.1), transparent 26rem),
    linear-gradient(180deg, #fbf7ee 0%, var(--ivory) 48%, #f4ecdf 100%);
  color: var(--navy);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(7, 21, 40, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 21, 40, 0.022) 1px, transparent 1px);
  background-size: 38px 38px;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.office-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 36px;
  padding: 38px 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 18px;
  width: fit-content;
}

.brand span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(183, 131, 69, 0.35);
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.brand strong {
  max-width: 150px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 0.95;
}

.side-nav {
  display: grid;
  gap: 0;
  padding-top: 22px;
  border-top: 1px solid var(--gold);
}

.side-nav a {
  position: relative;
  padding: 15px 0 15px 38px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.2;
}

.side-nav a::before {
  position: absolute;
  left: 0;
  top: 16px;
  width: 18px;
  height: 18px;
  content: "";
  border: 1px solid var(--navy);
  opacity: 0.72;
}

.side-nav a:nth-child(1)::before {
  clip-path: none;
}

.side-nav a:nth-child(2)::before {
  border-radius: 2px;
}

.side-nav a:nth-child(3)::before {
  border-radius: 50%;
}

.side-nav a:hover {
  color: var(--gold);
}

.sidebar-status {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(110, 138, 118, 0.34);
  background: rgba(110, 138, 118, 0.11);
}

.sidebar-status span,
.mono,
.section-bar span,
.desk-label span,
.dossier-grid span,
.risk-meter span,
.sheet-head span,
.case-files article div span,
.protocols article > span,
.submit-copy > span,
.matrix-aside span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-status strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.12;
}

.sidebar-status small {
  color: var(--muted);
  line-height: 1.45;
}

.workspace {
  min-width: 0;
}

.workspace main,
.office-footer {
  width: var(--container);
  margin-inline: auto;
}

.mobile-header {
  display: none;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
  gap: 36px;
  align-items: start;
  min-height: 100vh;
  padding: 54px 0 52px;
}

.case-intro {
  min-width: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 54px;
}

.desk-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 720px;
  margin-bottom: 46px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

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

h1,
h2,
.dossier h2,
.section-bar h2,
.submit-copy h2 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(48px, 4.6vw, 74px);
  line-height: 0.97;
  letter-spacing: 0;
}

.case-intro p {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 64px;
  min-width: 188px;
  padding: 0 28px;
  border: 1px solid var(--navy);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 19px;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.button::after {
  content: "→";
  color: var(--gold);
  font-family: var(--sans);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--navy);
  color: white;
}

.button.ghost {
  background: transparent;
  color: var(--navy);
}

.button.ghost:hover {
  background: rgba(7, 21, 40, 0.05);
}

.dossier {
  min-width: 0;
  align-self: start;
  margin-top: 22px;
  padding: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 34%),
    var(--paper-2);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.dossier-top {
  position: relative;
  display: block;
  padding-bottom: 28px;
  padding-right: 138px;
  border-bottom: 1px solid var(--line);
}

.dossier h2 {
  margin: 26px 0 0;
  color: var(--navy);
  font-size: clamp(44px, 4.3vw, 66px);
  line-height: 0.98;
}

.status-pill,
.risk {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pill {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 120px;
  justify-content: center;
  text-align: center;
  line-height: 1.12;
  white-space: normal;
}

.critical {
  color: var(--burgundy);
  background: rgba(143, 52, 56, 0.08);
}

.high {
  color: var(--burgundy);
  background: rgba(143, 52, 56, 0.08);
}

.medium {
  color: #8b682c;
  background: rgba(200, 147, 66, 0.11);
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.dossier-grid > div {
  min-height: 112px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dossier-grid > div:nth-child(2n),
.dossier-grid .wide {
  border-right: 0;
}

.dossier-grid .wide {
  grid-column: span 2;
}

.dossier-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
}

.tag-row,
.document-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row b,
.document-chips b {
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: rgba(7, 21, 40, 0.035);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}

.risk-meter {
  padding: 28px 0 24px;
}

.risk-meter div {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: #ddd4c6;
  overflow: hidden;
}

.risk-meter i {
  display: block;
  width: 76%;
  height: 100%;
  background: var(--burgundy);
}

.case-note {
  position: relative;
  padding: 24px 26px 24px 86px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.case-note::before {
  position: absolute;
  left: 28px;
  top: 22px;
  content: "“";
  color: var(--gold);
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
}

.case-note strong {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-note p {
  margin: 8px 0 0;
  color: var(--navy);
  line-height: 1.55;
}

.panel-section,
.analysis-layout,
.archive-section,
.defense-section,
.practices-section,
.case-files-section,
.protocol-section,
.submit-section {
  margin-top: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.58);
  box-shadow: 0 16px 52px rgba(43, 35, 25, 0.05);
}

.panel-section,
.analysis-layout,
.archive-section,
.defense-section,
.practices-section,
.case-files-section,
.protocol-section {
  padding: 40px;
}

.section-bar {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.section-bar h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.02;
}

.section-bar p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.matrix-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
}

.risk-matrix {
  border-top: 1px solid var(--line);
}

.matrix-row {
  display: grid;
  grid-template-columns: 1.12fr 0.82fr 1.16fr 0.95fr;
  border-bottom: 1px solid var(--line);
}

.matrix-row span {
  min-height: 70px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  color: var(--navy);
  line-height: 1.45;
}

.matrix-row span:last-child {
  border-right: 0;
}

.matrix-head span {
  min-height: 48px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.matrix-row:not(.matrix-head) span:first-child {
  font-family: var(--serif);
  font-size: 20px;
}

.matrix-aside {
  display: grid;
  border: 1px solid rgba(52, 70, 86, 0.22);
  background: var(--slate);
}

.matrix-aside div {
  padding: 24px;
  border-bottom: 1px solid rgba(52, 70, 86, 0.18);
}

.matrix-aside div:first-child {
  border-left: 4px solid var(--green);
  background: rgba(110, 138, 118, 0.13);
}

.matrix-aside .important-note {
  border-left: 4px solid var(--gold);
  background: rgba(255, 250, 241, 0.5);
}

.matrix-aside div:last-child {
  border-bottom: 0;
}

.matrix-aside b {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.matrix-aside p {
  margin: 14px 0 0;
  color: var(--slate-ink);
  line-height: 1.55;
}

.important-note p {
  color: var(--navy);
}

.document-stack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  align-items: stretch;
}

.legal-sheet {
  position: relative;
  min-height: 610px;
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  box-shadow: 16px 16px 0 rgba(183, 131, 69, 0.11);
}

.legal-sheet h2 {
  max-width: 700px;
  margin: 32px 0;
  color: var(--navy);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.02;
}

.legal-sheet::after {
  position: absolute;
  right: 28px;
  bottom: 26px;
  width: 116px;
  height: 116px;
  content: "LP";
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 131, 69, 0.36);
  border-radius: 50%;
  color: rgba(183, 131, 69, 0.45);
  font-family: var(--serif);
  font-size: 34px;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.sheet-head b {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.review-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.review-list b {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.review-list b::first-letter {
  color: var(--gold);
}

.review-list span {
  color: var(--muted);
  line-height: 1.5;
}

.margin-comments {
  display: grid;
  gap: 12px;
  align-content: start;
}

.margin-comments div {
  padding: 20px;
  border: 1px solid rgba(52, 70, 86, 0.2);
  background: var(--slate);
}

.margin-comments b {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.paper-objects {
  position: absolute;
  left: 22px;
  bottom: 0;
  width: 280px;
  height: 148px;
  pointer-events: none;
}

.folder-mark {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 210px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 131, 69, 0.18);
  background: #e9dcc8;
  color: rgba(183, 131, 69, 0.42);
  font-family: var(--serif);
  font-size: 44px;
  transform: rotate(-5deg);
}

.pen {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: 170px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #151922 0 62%, var(--gold) 62% 72%, #111 72%);
  transform: rotate(-12deg);
  box-shadow: 0 12px 24px rgba(43, 35, 25, 0.18);
}

.pen::after {
  position: absolute;
  right: -22px;
  top: -5px;
  content: "";
  border-left: 28px solid var(--gold);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.archive {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--line);
}

.folder {
  display: grid;
  align-content: end;
  min-height: 330px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: #e8dccb;
}

.folder span {
  color: var(--gold);
  font-weight: 800;
}

.folder strong {
  display: block;
  margin: 16px 0 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.folder small {
  color: var(--muted);
}

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

.file-grid span {
  display: flex;
  min-height: 110px;
  align-items: end;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.branches,
.case-files,
.protocols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.branches article,
.case-files article,
.protocols article {
  min-height: 330px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.branches article:nth-child(2),
.protocols article:nth-child(3) {
  background: rgba(223, 230, 234, 0.55);
}

.branches article:last-child,
.case-files article:last-child,
.protocols article:last-child {
  border-right: 0;
}

.branches article > span,
.protocols article > span {
  color: var(--gold);
  font-weight: 800;
}

.branches h3,
.case-files h3,
.protocols h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
}

dl {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

dt {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

dd {
  margin: -4px 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.practice-accordion {
  border: 1px solid var(--line);
}

.practice-accordion details {
  border-bottom: 1px solid var(--line);
}

.practice-accordion details:last-child {
  border-bottom: 0;
}

.practice-accordion summary {
  cursor: pointer;
  padding: 22px 26px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.practice-accordion details[open] summary {
  color: var(--navy);
  background: rgba(223, 230, 234, 0.52);
  border-left: 4px solid var(--gold);
}

.practice-accordion details > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.practice-accordion p,
.practice-accordion a {
  margin: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.practice-accordion a {
  color: var(--gold);
  font-weight: 760;
}

.case-files article div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.case-files article div b {
  color: var(--navy);
  padding: 4px 8px;
  background: rgba(183, 131, 69, 0.13);
}

.case-files p {
  color: var(--muted);
  line-height: 1.5;
}

.case-files small {
  display: block;
  margin-top: 22px;
  color: var(--gold);
  line-height: 1.4;
}

.protocols {
  grid-template-columns: repeat(4, 1fr);
}

.protocols ul {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.protocols li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.submit-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  margin-bottom: 36px;
  border-color: rgba(7, 21, 40, 0.28);
  background: var(--navy);
}

.submit-copy,
.case-form {
  padding: 38px;
}

.submit-copy {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--navy);
}

.submit-copy h2 {
  margin: 22px 0 18px;
  color: var(--paper);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.02;
}

.submit-copy p {
  color: rgba(255, 250, 241, 0.72);
  font-size: 18px;
  line-height: 1.6;
}

.contact-lines {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-lines span {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 250, 241, 0.82);
}

.case-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  background: var(--paper);
}

label {
  display: grid;
  gap: 8px;
}

label > span,
.segmented legend {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 14px;
  color: var(--navy);
  outline: 0;
}

textarea {
  min-height: 132px;
  padding-top: 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

.full,
.segmented,
.case-form .button,
.case-form small {
  grid-column: 1 / -1;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented legend {
  width: 100%;
}

.segmented label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.segmented input {
  width: auto;
  min-height: auto;
  accent-color: var(--gold);
}

.case-form .button {
  width: 100%;
}

.case-form small {
  color: var(--muted);
  line-height: 1.45;
}

.office-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.office-footer a {
  color: var(--gold);
}

.mobile-header,
.menu-toggle {
  display: none;
}

@media (max-width: 1180px) {
  :root {
    --container: min(100% - 32px, 940px);
  }

  .app-shell {
    display: block;
  }

  .office-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: 264px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .menu-open .office-sidebar {
    transform: translateX(0);
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 70;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: var(--container);
    min-height: 72px;
    margin-inline: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 241, 231, 0.9);
    backdrop-filter: blur(16px);
  }

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

  .brand.compact span {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .brand.compact strong {
    max-width: none;
    font-size: 18px;
    font-family: var(--sans);
    font-weight: 760;
  }

  .menu-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--paper);
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    background: var(--navy);
  }

  .case-hero,
  .matrix-layout,
  .document-stack,
  .archive,
  .submit-section {
    grid-template-columns: 1fr;
  }

  .case-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .case-intro {
    min-height: auto;
    padding: 36px 0 10px;
  }

  .submit-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .branches,
  .case-files,
  .protocols,
  .file-grid,
  .practice-accordion details > div {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 24px, 520px);
  }

  h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .desk-label,
  .dossier-top,
  .section-bar,
  .sheet-head {
    display: grid;
  }

  .dossier,
  .panel-section,
  .analysis-layout,
  .archive-section,
  .defense-section,
  .practices-section,
  .case-files-section,
  .protocol-section,
  .submit-copy,
  .case-form {
    padding: 22px;
  }

  .dossier-grid,
  .dossier-grid .wide,
  .case-form,
  .branches,
  .case-files,
  .protocols,
  .file-grid,
  .practice-accordion details > div {
    grid-template-columns: 1fr;
  }

  .dossier-grid .wide,
  .full,
  .segmented,
  .case-form .button,
  .case-form small {
    grid-column: auto;
  }

  .legal-sheet {
    min-height: auto;
    padding: 24px;
  }

  .review-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .paper-objects {
    display: none;
  }

  .matrix-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    margin-bottom: 12px;
  }

  .matrix-head {
    display: none;
  }

  .matrix-row span {
    display: grid;
    gap: 6px;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .matrix-row span::before {
    content: attr(data-label);
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .matrix-row span:last-child {
    border-bottom: 0;
  }

  .folder {
    min-height: 220px;
  }
}
