:root {
  --ink-strong: #173849;
  --ink-soft: #55707d;
  --paper: #fbf8f2;
  --paper-deep: #f1e8db;
  --canvas: #f4efe6;
  --teal: #5e8b99;
  --teal-deep: #3e6e7e;
  --teal-hero: #215e68;
  --rust: #b1541d;
  --rust-deep: #9a4616;
  --mint: #d6eadf;
  --sand: #edd08a;
  --line: rgba(23, 56, 73, 0.12);
  --shadow-lg: 0 24px 60px rgba(24, 45, 54, 0.12);
  --shadow-sm: 0 10px 28px rgba(24, 45, 54, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(94, 139, 153, 0.2), transparent 30%),
    linear-gradient(180deg, #fcfaf6 0%, var(--canvas) 100%);
  color: var(--ink-strong);
  font-family: Aptos, "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 139, 153, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 139, 153, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
}

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

.page-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 18px auto 40px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(33, 94, 104, 0.97), rgba(62, 110, 126, 0.94) 50%, rgba(177, 84, 29, 0.72)),
    #215e68;
  color: white;
  box-shadow: var(--shadow-lg);
}

.hero__veil {
  position: absolute;
  inset: auto -8% -38% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(237, 208, 138, 0.16);
  filter: blur(12px);
}

.hero__content {
  position: relative;
  min-height: 228px;
  padding: 30px 34px;
  padding-right: 340px;
}

.hero__brand {
  display: flex;
  gap: 26px;
  align-items: center;
}

.hero__brand-card {
  flex: 0 0 auto;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(15, 34, 40, 0.18);
}

.hero__logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
}

.hero__brand-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow--dark {
  color: var(--ink-soft);
}

.hero h1,
.panel-header h2,
.rail-card__header h3,
.editor-form__header h3,
.print-report-header h2 {
  margin: 0;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Palatino Linotype", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 0.98;
}

.hero__practice-lines {
  margin-top: 14px;
  max-width: 760px;
}

.hero__practice-line {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.4;
}

.hero__practice-line + .hero__practice-line {
  margin-top: 4px;
}

.hero__practice-line--contact {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.hero__meta {
  position: absolute;
  top: 24px;
  right: 34px;
  margin-top: 0;
}

.hero__meta-spacer {
  display: none;
}

.hero__meta-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(250px, 100%);
}

.hero__stat {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero__stat-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.68);
}

.hero__stat strong {
  display: block;
  color: white;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 0.98rem;
}

.hero__stat-subtext {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.hero__stat--summary {
  min-height: 0;
}

.workspace {
  margin-top: 22px;
}

.card,
.panel,
.editor-form {
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid rgba(23, 56, 73, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.command-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 0;
}

.command-bar__tabs,
.command-bar__actions,
.inline-filters,
.editor-form__actions,
.editor-form__actions-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tab-button,
.ghost-button,
.file-button,
.primary-button,
.danger-button,
.icon-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.tab-button {
  padding: 10px 16px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
}

.tab-button.is-active {
  background: var(--teal-deep);
  color: white;
}

.ghost-button,
.file-button {
  padding: 10px 14px;
  border: 1px solid rgba(23, 56, 73, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-strong);
}

.ghost-button--mini {
  padding: 7px 11px;
  font-size: 0.84rem;
}

.primary-button {
  padding: 10px 16px;
  background: var(--rust);
  color: white;
  font-weight: 700;
}

.danger-button {
  padding: 10px 16px;
  background: #b5432a;
  color: white;
  font-weight: 700;
}

.primary-button--secondary {
  background: var(--teal-deep);
}

.icon-button {
  width: 40px;
  height: 40px;
  background: rgba(23, 56, 73, 0.08);
  color: var(--ink-strong);
  font-size: 1.4rem;
}

.ghost-button:hover,
.file-button:hover,
.primary-button:hover,
.danger-button:hover,
.tab-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-top: 18px;
}

.panel-grid--wide {
  grid-template-columns: minmax(0, 1fr);
}

.panel-grid--wide .rail-column {
  display: none;
}

.panel-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  display: none;
  padding: 20px;
}

.panel.is-active {
  display: block;
}

.rail-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rail-card {
  padding: 18px;
}

.rail-card__header {
  margin-bottom: 14px;
}

.rail-card__header h3 {
  margin-top: 8px;
  font-size: 1.42rem;
}

.note-list,
.steps-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.note-list li + li,
.steps-list li + li {
  margin-top: 8px;
}

.status-pill {
  margin-top: 14px;
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(94, 139, 153, 0.12);
  color: var(--teal-deep);
  font-weight: 700;
}

.selection-details {
  color: var(--ink-soft);
  line-height: 1.6;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 12px;
}

.panel-header p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.panel-header .inline-filters {
  width: 100%;
  justify-content: flex-start;
  align-items: stretch;
}

.panel-header .inline-filters .filter-input {
  flex: 2 1 320px;
}

.panel-header .inline-filters .filter-select,
.panel-header .inline-filters .ghost-button {
  flex: 1 1 180px;
}

.filter-input,
.filter-select,
.editor-grid input,
.editor-grid select,
.editor-grid textarea {
  width: 100%;
  border: 1px solid rgba(23, 56, 73, 0.14);
  border-radius: 12px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-strong);
}

.filter-input {
  min-width: 240px;
}

.filter-select {
  min-width: 160px;
}

.table-shell {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.table-shell--disclosure {
  overflow-x: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 13px 14px;
  background: linear-gradient(180deg, var(--teal-deep), #2f5663);
  color: white;
  font-size: 0.9rem;
}

.data-table td {
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  background: rgba(255, 255, 255, 0.72);
}

.data-table tbody tr:nth-child(even) td {
  background: rgba(242, 248, 246, 0.78);
}

.data-table--compact {
  min-width: 1180px;
}

.data-table--matter-summary {
  min-width: 0;
  table-layout: fixed;
}

.data-table--matter-summary th,
.data-table--matter-summary td {
  padding: 10px 8px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.data-table--matter-summary th:nth-child(1),
.data-table--matter-summary td:nth-child(1) {
  width: 7%;
  white-space: nowrap;
}

.data-table--matter-summary th:nth-child(2),
.data-table--matter-summary td:nth-child(2) {
  width: 24%;
}

.data-table--matter-summary th:nth-child(3),
.data-table--matter-summary td:nth-child(3) {
  width: 9%;
}

.data-table--matter-summary th:nth-child(4),
.data-table--matter-summary td:nth-child(4),
.data-table--matter-summary th:nth-child(6),
.data-table--matter-summary td:nth-child(6) {
  width: 8.5%;
}

.data-table--matter-summary th:nth-child(5),
.data-table--matter-summary td:nth-child(5),
.data-table--matter-summary th:nth-child(7),
.data-table--matter-summary td:nth-child(7) {
  width: 10.5%;
}

.data-table--matter-summary th:nth-child(8),
.data-table--matter-summary td:nth-child(8) {
  width: 10%;
}

.data-table--matter-summary th:nth-child(9),
.data-table--matter-summary td:nth-child(9) {
  width: 12%;
}

.row-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.row-link:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

.data-table--disclosure {
  min-width: 0;
  table-layout: fixed;
}

.data-table--disclosure th,
.data-table--disclosure td {
  padding: 11px 10px;
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-table--disclosure th {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.data-table--disclosure th:nth-child(1),
.data-table--disclosure td:nth-child(1) {
  width: 6%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.data-table--disclosure th:nth-child(2),
.data-table--disclosure td:nth-child(2) {
  width: 31%;
}

.data-table--disclosure th:nth-child(3),
.data-table--disclosure td:nth-child(3) {
  width: 11%;
}

.data-table--disclosure th:nth-child(3) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 0.8rem;
}

.data-table--disclosure th:nth-child(4),
.data-table--disclosure td:nth-child(4) {
  width: 11%;
}

.data-table--disclosure th:nth-child(5),
.data-table--disclosure td:nth-child(5) {
  width: 8%;
}

.data-table--disclosure th:nth-child(6),
.data-table--disclosure td:nth-child(6) {
  width: 11%;
}

.data-table--disclosure th:nth-child(7),
.data-table--disclosure td:nth-child(7) {
  width: 10%;
}

.data-table--disclosure th:nth-child(8),
.data-table--disclosure td:nth-child(8) {
  width: 12%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill--neutral {
  background: rgba(94, 139, 153, 0.14);
  color: var(--teal-deep);
}

.pill--active,
.pill--scheduled {
  background: rgba(93, 165, 121, 0.16);
  color: #20643b;
}

.pill--pending {
  background: rgba(237, 208, 138, 0.28);
  color: #7c590c;
}

.pill--hold,
.pill--continued {
  background: rgba(189, 157, 94, 0.2);
  color: #755200;
}

.pill--cancelled,
.pill--closed {
  background: rgba(177, 84, 29, 0.16);
  color: #8b3f20;
}

.row-action {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 56, 73, 0.14);
  background: transparent;
  color: var(--ink-strong);
  cursor: pointer;
  font-weight: 700;
}

.row-action--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.row-action--danger {
  border-color: rgba(181, 67, 42, 0.28);
  background: rgba(181, 67, 42, 0.08);
  color: #b5432a;
}

.confirm-dialog {
  width: min(520px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  background: transparent;
}

.confirm-dialog::backdrop {
  background: rgba(12, 23, 30, 0.42);
  backdrop-filter: blur(6px);
}

.confirm-dialog__card {
  background: rgba(255, 252, 246, 0.96);
  border: 1px solid rgba(23, 56, 73, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.confirm-dialog__message {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
}

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

.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(236, 246, 243, 0.78));
  border: 1px solid rgba(94, 139, 153, 0.14);
}

.kpi-card::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(94, 139, 153, 0.09);
}

.kpi-card__label {
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kpi-card__value {
  display: block;
  margin-top: 8px;
  font-family: "Aptos Display", "Segoe UI Variable Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.dashboard-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(23, 56, 73, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-card h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
}

.timeline-list,
.firm-list {
  display: grid;
  gap: 12px;
}

.timeline-list--calendar {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
}

.timeline-item,
.firm-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child,
.firm-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-item__meta,
.firm-item__meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.spark-bars {
  display: grid;
  gap: 12px;
}

.spark-row {
  display: grid;
  grid-template-columns: 90px 1fr 42px;
  gap: 12px;
  align-items: center;
}

.spark-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(94, 139, 153, 0.1);
}

.spark-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rust), var(--sand));
}

.dashboard-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.summary-stack {
  display: grid;
  gap: 12px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.summary-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.empty-state {
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  text-align: center;
}

.print-report-header {
  display: none;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.print-report-header__logo {
  width: 280px;
  height: auto;
}

.print-report-header p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.print-report-meta {
  margin-top: 12px;
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

.print-disclosure-letterhead {
  display: none;
}

.print-report-footer {
  display: none;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 56, 73, 0.18);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.print-only {
  display: none;
}

.print-hidden {
  display: initial;
}

.editor-dialog {
  width: min(820px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  background: transparent;
}

.editor-dialog--sheet {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(620px, calc(100vw - 18px));
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
}

.editor-dialog::backdrop {
  background: rgba(12, 23, 30, 0.42);
  backdrop-filter: blur(6px);
}

.editor-form {
  padding: 22px;
}

.editor-dialog--sheet .editor-form {
  min-height: 100vh;
  height: 100vh;
  overflow: auto;
  border-radius: 0;
  border-left: 1px solid rgba(23, 56, 73, 0.08);
}

.editor-form__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editor-grid label {
  display: grid;
  gap: 8px;
}

.editor-grid span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field-wide {
  grid-column: 1 / -1;
}

.drawer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.drawer-meta__item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(23, 56, 73, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.drawer-meta__item span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.event-editor {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 56, 73, 0.08);
}

.event-editor__header {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.event-editor__header h4 {
  margin: 0;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Palatino Linotype", serif;
  letter-spacing: -0.02em;
}

.event-editor__header p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.event-editor__groups {
  display: grid;
  gap: 14px;
}

.event-group {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(23, 56, 73, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.event-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.event-group__header h5 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-strong);
}

.event-group__rows {
  display: grid;
  gap: 10px;
}

.event-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.event-row__input {
  flex: 1 1 auto;
}

.editor-form__actions {
  justify-content: space-between;
  margin-top: 18px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(16, 47, 56, 0.96);
  color: white;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.import-review-dialog__card {
  width: min(980px, calc(100vw - 32px));
}

.import-review-dialog__summary {
  margin-bottom: 16px;
}

.import-review-dialog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.import-review-panel {
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(23, 56, 73, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.import-review-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.import-review-panel__header h4 {
  margin: 0;
  font-size: 1rem;
}

.import-review-panel__header span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(94, 139, 153, 0.12);
  color: var(--teal-deep);
  font-weight: 700;
}

.import-review-list {
  display: grid;
  gap: 10px;
  max-height: 48vh;
  overflow: auto;
  padding-right: 4px;
}

.import-review-item {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(23, 56, 73, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.import-review-item strong {
  font-size: 0.96rem;
}

.import-review-item__meta,
.import-review-item__reason {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.import-review-item__reason {
  color: var(--rust-deep);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(23, 56, 73, 0.08);
}

@media (max-width: 1160px) {
  .panel-grid,
  .dashboard-columns,
  .dashboard-split,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .command-bar,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 920px) {
  .hero__brand {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__content {
    min-height: 0;
    padding-right: 34px;
  }

  .hero__practice-lines {
    max-width: none;
  }

  .hero__meta {
    position: static;
    margin-top: 16px;
  }

  .hero__meta-stack,
  .hero__stat,
  .hero__stat--summary {
    width: 100%;
    min-width: 0;
  }

}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 1480px);
    margin-top: 8px;
  }

  .hero__content,
  .panel,
  .rail-card,
  .command-bar {
    padding: 16px;
  }

  .hero__brand-card {
    width: 100%;
  }

  .hero__logo {
    width: 100%;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .drawer-meta {
    grid-template-columns: 1fr;
  }

  .event-group__header,
  .event-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 0.45in;
  }

  html,
  body {
    background: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body::before,
  .command-bar,
  .rail-column,
  .toast,
  .editor-dialog,
  .panel-header,
  .row-action,
  .icon-button,
  .print-hidden {
    display: none !important;
  }

  .page-shell,
  .workspace,
  .panel-grid,
  .panel-column {
    width: 100%;
    margin: 0;
    display: block;
  }

  .hero {
    display: none !important;
  }

  .card,
  .panel,
  .dashboard-card,
  .kpi-card {
    box-shadow: none;
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
  }

  .panel {
    padding: 0;
    border: 0;
  }

  .print-only {
    display: flex !important;
  }

  .print-report-header {
    align-items: flex-start;
  }

  .print-disclosure-letterhead {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 0 0 10px;
    border-bottom: 2px solid var(--teal-hero);
    color: #111;
  }

  .print-disclosure-letterhead__logo {
    flex: 0 0 auto;
    width: 318px;
    height: auto;
  }

  .print-disclosure-letterhead__copy {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
  }

  .print-disclosure-letterhead h2 {
    margin: 0 0 4px;
    color: #111;
    font-size: 1.45rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .print-disclosure-letterhead__name {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .print-disclosure-letterhead__title {
    font-size: 0.92rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
  }

  .print-disclosure-letterhead__licenses,
  .print-disclosure-letterhead__contact {
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .print-disclosure-letterhead__email {
    color: #2d5da8;
    text-decoration: underline;
  }

  .print-report-footer {
    display: block !important;
  }

  body[data-print-mode="dashboard"] #panel-dashboard {
    display: block !important;
  }

  body[data-print-mode="dashboard"] #panel-matters,
  body[data-print-mode="dashboard"] #panel-activities,
  body[data-print-mode="dashboard"] #panel-disclosure,
  body[data-print-mode="disclosure"] #panel-dashboard,
  body[data-print-mode="disclosure"] #panel-matters,
  body[data-print-mode="disclosure"] #panel-activities {
    display: none !important;
  }

  body[data-print-mode="disclosure"] #panel-disclosure {
    display: block !important;
  }

  .dashboard-grid {
    gap: 12px;
  }

  .dashboard-grid {
    display: flex;
    flex-direction: column;
  }

  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    order: 1;
  }

  .dashboard-columns,
  .dashboard-split {
    display: contents;
  }

  .dashboard-card--activity {
    order: 2;
  }

  .dashboard-card--status {
    order: 3;
  }

  .dashboard-card--firms {
    order: 4;
  }

  .dashboard-card--upcoming {
    order: 5;
  }

  .table-shell,
  .table-shell--disclosure {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .data-table,
  .data-table--compact {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
    font-size: 10pt;
    word-break: break-word;
  }

  .data-table th {
    background: #215e68 !important;
    color: white !important;
  }

  .data-table--disclosure th {
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
  }

  .data-table thead {
    display: table-header-group;
  }

  .data-table tbody tr:nth-child(even) td {
    background: white;
  }

  body[data-print-mode="disclosure"] .data-table--disclosure th:nth-child(1),
  body[data-print-mode="disclosure"] .data-table--disclosure td:nth-child(1) {
    display: none;
  }

  body[data-print-mode="disclosure"] .data-table--disclosure th:nth-child(2),
  body[data-print-mode="disclosure"] .data-table--disclosure td:nth-child(2) {
    width: 34%;
  }

  .timeline-list--calendar {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .data-table--disclosure th:nth-child(1),
  .data-table--disclosure td:nth-child(1) {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 8.5pt;
  }

  .data-table--disclosure th:nth-child(3) {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 8.5pt;
  }
}
