/* ── Design tokens ── */
:root {
  --ds-background: #FFFFFF;
  --ds-surface: #F2F4F8;
  --ds-surface-sunken: #E8EBF2;
  --ds-text: #172B4D;
  --ds-text-subtle: #5E6E8A;
  --ds-label: #445772;
  --ds-text-disabled: #97A0AF;
  --ds-link: #0a3a8c;
  --ds-link-hover: #071d5c;
  --ds-border: #DDE1EA;
  --ds-border-strong: #BEC5D4;
  --ds-border-focus: #39d0ff;
  --ds-primary: #040d22;
  --ds-primary-hover: #071332;
  --ds-primary-text: #FFFFFF;
  --ds-success: #00875A;
  --ds-success-bg: #E3FCEF;
  --ds-success-border: #ABF5D1;
  --ds-warning: #FF991F;
  --ds-warning-bg: #FFFAE6;
  --ds-warning-border: #FFE380;
  --ds-danger: #DE350B;
  --ds-danger-bg: #FFEBE6;
  --ds-danger-border: #FFBDAD;
  --ds-info-bg: rgba(57, 208, 255, 0.07);
  --ds-info-border: rgba(57, 208, 255, 0.28);
  --ds-accent: #39d0ff;
  --ds-accent-dim: rgba(57, 208, 255, 0.12);
  --ds-radius: 5px;
  --ds-radius-lg: 10px;
  --ds-shadow-sm: 0 1px 3px rgba(9,30,66,0.10), 0 0 1px rgba(9,30,66,0.12);
  --ds-shadow-md: 0 3px 10px -2px rgba(9,30,66,0.14), 0 0 1px rgba(9,30,66,0.12);
  --ds-shadow-lg: 0 6px 20px -4px rgba(9,30,66,0.18), 0 0 2px rgba(9,30,66,0.12);
  --ds-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ds-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --ds-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--ds-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ds-text);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(4, 13, 34, 0.045) 0%, transparent 70%),
    radial-gradient(ellipse 55% 28% at 100% 100%, rgba(57, 208, 255, 0.02) 0%, transparent 70%),
    #F4F5F7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ds-link); text-decoration: none; }
a:hover { color: var(--ds-link-hover); text-decoration: underline; }

/* ── Layout ── */
.wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

/* ── Top navigation bar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  min-height: 56px;
  background: linear-gradient(90deg, #040d22 0%, #071332 100%);
  border-bottom: 1px solid rgba(57, 208, 255, 0.18);
  box-shadow: 0 1px 16px rgba(5, 12, 30, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.topbar-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.brand-sep {
  display: block;
  width: 1px;
  height: 26px;
  background: rgba(57, 208, 255, 0.28);
  flex-shrink: 0;
  margin: 0 2px;
}

.brand b {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 6px;
}

.brand span {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav-spacer {
  flex: 1;
  min-width: 8px;
}

/* ── Right-zone: user info + utilities ── */
.topbar-end {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(57, 208, 255, 0.15);
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--ds-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.nav-role-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(57, 208, 255, 0.18);
  color: #39d0ff;
  white-space: nowrap;
}

.nav-display-name {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--ds-radius);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8aaac8;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  text-decoration: none;
}

.topbar-icon-btn:hover {
  background: rgba(57, 208, 255, 0.1);
  color: #39d0ff;
  border-color: rgba(57, 208, 255, 0.3);
  text-decoration: none;
}

.topbar-end-link {
  font-size: 12px;
  font-weight: 500;
  color: #8aaac8;
  padding: 4px 8px;
  border-radius: var(--ds-radius);
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
  text-decoration: none;
}

.topbar-end-link:hover,
.topbar-end-link.active {
  color: #f0f8ff;
  background: rgba(57, 208, 255, 0.08);
  text-decoration: none;
}

.topbar-signout {
  font-size: 12px;
  font-weight: 600;
  color: #FFD2CC;
  padding: 4px 8px;
  border-radius: var(--ds-radius);
  background: rgba(171, 53, 11, 0.16);
  border: 1px solid rgba(255, 189, 173, 0.45);
  cursor: pointer;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
  white-space: nowrap;
  font-family: inherit;
}

.topbar-signout:hover {
  color: #FFE7E3;
  background: rgba(171, 53, 11, 0.28);
  border-color: rgba(255, 189, 173, 0.7);
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--ds-radius);
  font-size: 13px;
  font-weight: 500;
  color: #b5c8e2;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  border: none;
  background: none;
}

.nav-item:hover {
  background: rgba(57, 208, 255, 0.09);
  text-decoration: none;
  color: #f0f8ff;
}

.nav-item.active {
  background: rgba(57, 208, 255, 0.14);
  color: #39d0ff;
  font-weight: 600;
}


/* ── Main content ── */
main.page-main {
  display: block;
  margin-top: 24px;
  animation: appRiseIn 0.22s ease both;
}

@keyframes appRiseIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  main.page-main { animation: none; }
}

/* ── Grid layout ── */
.grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 24px;
}

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

.grid.wide-left {
  grid-template-columns: 1.3fr 0.7fr;
}

/* ── Card ── */
.card {
  background: #FFFFFF;
  border: 1px solid #7C8CA4;
  border-radius: var(--ds-radius-lg);
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.07);
}

.card.flat {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* ── Typography ── */
h1, h2, h3 {
  margin: 0;
  font-family: var(--ds-display);
  font-weight: 600;
  letter-spacing: -0.3px;
}

h2 {
  font-size: 17px;
  color: var(--ds-text);
}

h3 {
  font-size: 14px;
  color: var(--ds-text);
}

.section-title {
  margin-top: 24px;
}

.section-line {
  border: 0;
  border-top: 2px solid #4E6282;
  margin: 24px 0;
}

details:not(.work-panel):not(.rhs-section):not(.metadata-example-wrap) {
  border: 1px solid #9AA8BC;
  border-radius: 6px;
  background: #FFFFFF;
}

details:not(.work-panel):not(.rhs-section):not(.metadata-example-wrap) > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #1C314F;
  font-size: 13px;
  padding: 10px 12px;
  border-bottom: 1px solid #D0D8E3;
  background: #F2F6FC;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details:not(.work-panel):not(.rhs-section):not(.metadata-example-wrap) > summary::-webkit-details-marker {
  display: none;
}

.matter-page-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.matter-overview-card {
  border-left: 4px solid #39d0ff;
}

.matter-guide-card {
  border: 2px solid rgba(23, 63, 121, 0.58);
  background: linear-gradient(165deg, #D7E8FF 0%, #ECF3FF 42%, #FFFFFF 100%);
}

.matter-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.matter-workflow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.workflow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(4, 13, 34, 0.14);
  background: #FFFFFF;
  color: #233451;
  font-size: 12px;
  font-weight: 600;
}

.workflow-arrow {
  color: #6b7a94;
  font-size: 12px;
  font-weight: 700;
}

.workflow-chip:hover {
  border-color: rgba(57, 208, 255, 0.62);
  color: #0b213f;
  text-decoration: none;
}

.ai-unavailable-banner {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #35507A;
  border-radius: var(--ds-radius);
  background: linear-gradient(160deg, #1D2E48 0%, #263A5B 100%);
  color: #E6EDF8;
  font-size: 12px;
  font-weight: 600;
}

.ai-unavailable-banner.hidden {
  display: none;
}

.ai-page-shell.ai-page-locked {
  position: relative;
}

.ai-page-shell.ai-page-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(4, 10, 20, 0.66);
  backdrop-filter: grayscale(38%);
  pointer-events: auto;
  border-radius: var(--ds-radius-lg);
}

.ai-page-shell.ai-page-locked > * {
  filter: brightness(0.75) saturate(0.7);
}

.ai-page-shell.ai-page-locked * {
  pointer-events: none !important;
  user-select: none;
}

.help-link {
  color: #0a3a8c;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-link:hover {
  color: #071d5c;
}

@media (max-width: 900px) {
  .workflow-arrow {
    display: none;
  }
}

.matter-overview {
  align-items: flex-start;
}

.matter-chronology-card {
  border: 2px solid rgba(78, 89, 107, 0.5);
  background: linear-gradient(160deg, #E7ECF2 0%, #F3F6FA 42%, #FFFFFF 100%);
}

.chronology-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chronology-badge {
  background: rgba(78, 89, 107, 0.16);
  color: #334155;
  border: 1px solid rgba(78, 89, 107, 0.36);
}

.matter-work-layout {
  align-items: stretch;
}

.matter-workbench-card {
  border-width: 2px;
  border-color: #5E708D;
}

.matter-workbench-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ds-border-strong);
}

.matter-workbench-head h3 {
  font-size: 19px;
}

.matter-workbench-card .muted.small.prose {
  line-height: 1.55;
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.section-workflow-hint {
  color: #2c3e5a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.context-help {
  border: 1px solid rgba(57, 208, 255, 0.3);
  border-radius: var(--ds-radius);
  background: #F6FCFF;
  padding: 10px 12px;
}

.context-help-title {
  font-size: 12px;
  font-weight: 700;
  color: #0b223f;
  margin-bottom: 4px;
}

.context-help-body {
  color: #304866;
  font-size: 12px;
  line-height: 1.5;
}

.metadata-example {
  border: 1px solid #9AA7BC;
  border-left: 3px solid #365A8C;
  border-radius: var(--ds-radius);
  background: #F6F8FC;
  color: #1E324F;
  font-family: var(--ds-mono);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
  padding: 10px 12px;
}

.metadata-example-wrap > summary {
  cursor: pointer;
  color: #0a3a8c;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.metadata-example-wrap[open] > summary {
  margin-bottom: 8px;
}

.matter-section {
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius);
  padding: 14px;
  background: #FFFFFF;
}

#matter-documents {
  border: 2px solid #5E708D;
}

#matter-m365 {
  border: 1px solid #7388A6;
}

.work-panel {
  padding: 10px 12px 14px;
}

.work-panel > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ds-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 8px;
  border-bottom: 1px solid var(--ds-border);
}

.work-panel > summary::-webkit-details-marker {
  display: none;
}

.work-panel > summary::after {
  content: "+";
  color: var(--ds-text-subtle);
  font-size: 16px;
  line-height: 1;
}

.work-panel[open] > summary::after {
  content: "-";
}

.work-panel[open] {
  border-color: var(--ds-border-strong);
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.06);
}

.matter-workbench-card .form-stack {
  gap: 10px;
}

.matter-workbench-card .form-row-2col,
.matter-workbench-card .form-row-3col {
  gap: 10px;
}

.matter-workbench-card label {
  margin-bottom: 3px;
  font-size: 11px;
  letter-spacing: 0.025em;
}

.matter-workbench-card input,
.matter-workbench-card select,
.matter-workbench-card textarea {
  min-height: 34px;
  padding: 6px 9px;
}

.matter-workbench-card textarea {
  min-height: 88px;
}

.matter-workbench-card .btn.btn-sm,
.matter-workbench-card .btn {
  min-height: 34px;
}

.matter-workbench-card table {
  font-size: 13px;
}

.matter-workbench-card th,
.matter-workbench-card td {
  padding: 7px 10px;
}

.matter-workbench-card th {
  font-size: 10px;
}

.matter-sidebar {
  position: sticky;
  top: 76px;
  height: 100%;
  border: 2px solid #3F536F;
  box-shadow: inset 0 0 0 1px rgba(63, 83, 111, 0.14);
}

.matter-sidebar-title {
  margin: 0 0 10px;
  font-size: 13px;
  color: #233451;
}

.matter-sidebar > .rhs-section + .rhs-section {
  margin-top: 12px;
}

.rhs-section {
  border: 2px solid #5E708D;
  border-radius: var(--ds-radius);
  padding: 12px;
  background: #FFFFFF;
}

.rhs-section > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ds-text);
}


.timeline-list {
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius);
  padding: 8px;
  background: var(--ds-surface);
  max-height: 360px;
  overflow: auto;
}

.timeline-item {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: #FFFFFF;
  padding: 8px 10px;
}

.timeline-item + .timeline-item {
  margin-top: 8px;
}

.timeline-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.timeline-item-body {
  white-space: pre-wrap;
}

.muted { color: var(--ds-text-subtle); }
.small { font-size: 12px; }
.mono { font-family: var(--ds-mono); }

.prose {
  line-height: 1.6;
}

/* ── Flex rows ── */
.row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.row > * {
  flex: 1;
  min-width: 180px;
}

.row.tight > * {
  min-width: 140px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ── Card header (title + actions on one line) ── */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

/* ── Form stack layout (vertical form with proper spacing) ── */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  align-items: end;
}

.form-row-3col {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.form-actions-end {
  display: flex;
  align-items: end;
  padding-bottom: 1px;
}

.upload-file-row {
  align-items: start;
}

.upload-file-row .form-actions-end {
  align-items: start;
  padding-top: 18px;
  padding-bottom: 0;
}

/* ── Subsection titles (smaller than h3) ── */
h4.subsection-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── KPI strip (dashboard hero) ── */
.kpi-strip {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.kpi {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(57, 208, 255, 0.15);
  border-top: 2px solid #39d0ff;
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-sm);
  text-align: center;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--ds-display);
  color: #040d22;
  line-height: 1;
  letter-spacing: -0.5px;
}

.kpi-label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ds-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi.kpi-hold .kpi-value { color: var(--ds-warning); }
.kpi.kpi-alert .kpi-value { color: var(--ds-danger); }

/* ── Dashboard polish ── */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #EAF2FF 0%, #F4F8FF 52%, #FFFFFF 100%);
  border: 2px solid #60779A;
  box-shadow: 0 2px 10px rgba(9, 30, 66, 0.08);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -52px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(57, 208, 255, 0.12) 0%, rgba(4, 13, 34, 0.04) 50%, transparent 72%);
  pointer-events: none;
}

.dashboard-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 20px;
  align-items: center;
}

.dashboard-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-hero-actions {
  display: grid;
  gap: 9px;
  justify-items: stretch;
  padding: 8px;
  border: 1px solid #A8B7CA;
  border-radius: 8px;
  background: linear-gradient(180deg, #F7FAFF 0%, #EFF4FB 100%);
}

.dashboard-hero-actions .btn {
  justify-content: center;
  min-height: 36px;
  font-weight: 600;
}

.dashboard-hero-actions .btn.secondary {
  background: #E9EEF6;
  border-color: #9FAFC5;
  color: #1D3250;
}

.dashboard-hero-actions .btn.secondary:hover:not(:disabled) {
  background: #DFE8F4;
  border-color: #8FA2BE;
  color: #152846;
}

.dashboard-hero h2 {
  color: #132645;
}

.dashboard-hero .muted.prose {
  color: #2F4567;
  max-width: 78ch;
}

.dashboard-kpi-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.dashboard-kpi {
  align-items: flex-start;
  text-align: left;
  border: 1px solid #6F7E96;
  border-left: 4px solid #3E587F;
  padding: 14px 16px 13px;
  min-height: 124px;
  background: #F8FAFC;
  box-shadow: none;
  border-radius: 3px;
}

.dashboard-kpi .kpi-label {
  margin-top: 0;
  font-size: 11px;
  color: #445772;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.dashboard-kpi .kpi-value {
  margin-top: 6px;
  font-size: 28px;
  font-family: var(--ds-display);
  letter-spacing: -0.5px;
  color: #10233F;
}

.dashboard-kpi-note {
  margin-top: 7px;
  color: #4B5F7C;
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-kpi.kpi-hold {
  border-left-color: #9A6623;
  background: #F8FAFC;
}

.dashboard-kpi.kpi-alert {
  border-left-color: #9A3F38;
  background: #F8FAFC;
}

.dashboard-panel {
  border: 1px solid #7C8CA4;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.07);
  background: linear-gradient(180deg, #FDFEFF 0%, #FFFFFF 100%);
}

.dashboard-panel-matters {
  border: 2px solid #4E6282;
}

.dashboard-panel-tasks {
  border: 2px solid #4E6282;
}

.dashboard-table-wrap {
  border: 1px solid #B4BECC;
  border-radius: var(--ds-radius);
  overflow: hidden;
}

.dashboard-panel table {
  margin: 0;
}

.dashboard-panel thead th {
  background: #EDF2F9;
  color: #253852;
  border-bottom: 1px solid #C8D1DE;
}

/* ── Shared page polish ── */
.page-hero {
  background: linear-gradient(140deg, #F0F5FF 0%, #F8FAFF 60%, #FFFFFF 100%);
  border: 1px solid rgba(57, 208, 255, 0.22);
  box-shadow: 0 3px 12px rgba(9, 30, 66, 0.07);
}

.page-panel {
  border-color: var(--ds-border-strong);
}

.page-panel .section-title {
  font-size: 16px;
}

.admin-main-card {
  border: 2px solid #4E6282;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.07);
}

.admin-retention-card {
  border: 2px solid #4E6282;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.07);
}

.admin-main-card .section-line,
.admin-retention-card .section-line {
  border: 0;
  border-top: 2px solid #22344D;
  margin: 22px 0 18px;
}

.admin-collapsible-section {
  border: 1px solid #9AA8BC;
  border-radius: 6px;
  background: #FFFFFF;
  margin: 12px 0;
  overflow: hidden;
}

.admin-collapsible-section > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #1C314F;
  font-size: 13px;
  padding: 10px 12px;
  border-bottom: 1px solid #D0D8E3;
  background: #F2F6FC;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-collapsible-section > summary::-webkit-details-marker {
  display: none;
}

.admin-collapsible-section > summary::after {
  content: "+";
  color: #2F4568;
  font-size: 16px;
  line-height: 1;
}

.admin-collapsible-section[open] > summary::after {
  content: "-";
}

.admin-section-body {
  padding: 12px;
}

.admin-ai-section {
  position: relative;
}

.admin-ai-section .admin-section-body {
  position: relative;
  filter: brightness(0.76) saturate(0.72);
}

.admin-ai-section .admin-section-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 27, 0.54);
  pointer-events: auto;
}

.admin-ai-section .admin-section-lock-note {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #E6EDF8;
  background: #2D4467;
  border: 1px solid #4C6486;
  border-radius: 4px;
}

/* ── Audit page redesign ── */
.audit-shell {
  display: flex;
  flex-direction: column;
}

.audit-hero {
  border: 1px solid rgba(57, 208, 255, 0.22);
  background: linear-gradient(140deg, #F0F5FF 0%, #F8FAFF 60%, #FFFFFF 100%);
  box-shadow: 0 3px 12px rgba(9, 30, 66, 0.07);
}

.audit-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.audit-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.audit-columns-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-hidden-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-table th {
  position: relative;
  padding-right: 28px;
}

.audit-col-hide {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1px solid var(--ds-border);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ds-text-subtle);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.audit-col-hide:hover {
  border-color: #39d0ff;
  color: var(--ds-text);
}

.audit-object-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-saved-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) auto minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.audit-saved-actions {
  min-width: 90px;
}

.audit-row-tamper td {
  background: #FFFAE6;
}

.audit-row-tamper:hover td {
  background: #FFF3CD;
}

/* ── Reports page redesign ── */
.reports-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reports-hero {
  border: 2px solid #60779A;
  background: linear-gradient(145deg, #EAF2FF 0%, #F4F8FF 52%, #FFFFFF 100%);
  box-shadow: 0 2px 10px rgba(9, 30, 66, 0.08);
}

.reports-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  align-items: center;
}

.reports-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid #A8B7CA;
  border-radius: 8px;
  background: linear-gradient(180deg, #F7FAFF 0%, #EFF4FB 100%);
}

.reports-hero-actions .btn {
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  height: auto;
  min-height: 36px;
  padding: 6px 10px;
  font-weight: 600;
}

.reports-title {
  font-size: 2.1rem;
  line-height: 1.1;
}

.btn.secondary.back-to-reports {
  background: #111317;
  border-color: #111317;
  color: #FFFFFF;
}

.btn.secondary.back-to-reports:hover {
  background: #0A0C0F;
  border-color: #0A0C0F;
  color: #FFFFFF;
}

.reports-grid {
  align-items: start;
}

.reports-builder {
  border: 2px solid #4E6282;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.07);
  background: linear-gradient(180deg, #FDFEFF 0%, #FFFFFF 100%);
}

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

.reports-toggle-row {
  display: flex;
  align-items: center;
}

.reports-section + .reports-section {
  border-top: 1px solid #C6D0DE;
  padding-top: 14px;
}

.reports-side-panel {
  position: sticky;
  top: 76px;
  align-self: start;
  border: 2px solid #4E6282;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.07);
  background: linear-gradient(180deg, #FDFEFF 0%, #FFFFFF 100%);
}

.btn.report-cta {
  background: #040d22;
  color: #FFFFFF;
}

.btn.report-cta:hover {
  background: #071332;
  color: #FFFFFF;
}

.btn.report-cta:disabled,
.btn.report-cta[disabled] {
  background: #273142 !important;
  border-color: #273142 !important;
  color: #B8C7DA !important;
  box-shadow: inset 0 0 0 1px #1A2331;
  text-shadow: none;
}

.btn.audit-cta {
  background: #040d22;
  color: #FFFFFF;
}

.btn.audit-cta:hover {
  background: #071332;
  color: #FFFFFF;
}

/* ── Search page redesign ── */
.search-hero {
  background: linear-gradient(145deg, #EAF2FF 0%, #F4F8FF 52%, #FFFFFF 100%);
  border: 2px solid #60779A;
  box-shadow: 0 2px 10px rgba(9, 30, 66, 0.08);
}

.search-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.search-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-query-shell {
  border: 2px solid #4E6282;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.07);
  background: linear-gradient(180deg, #FDFEFF 0%, #FFFFFF 100%);
}

.search-query-main {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 280px auto;
  gap: 10px;
  align-items: end;
}

.search-query-grow {
  min-width: 0;
}

.search-query-grow input {
  min-height: 40px;
  font-family: var(--ds-mono);
}

.search-query-mode {
  min-width: 220px;
}

.search-query-submit .btn {
  min-height: 40px;
}

.search-presets {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.search-user-presets {
  border-top: 2px solid #4E6282;
  padding-top: 10px;
}

.search-user-preset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-user-preset-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-save-preset {
  border-top: 2px solid #4E6282;
  padding-top: 10px;
}

.search-save-preset-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.search-save-preset-btn .btn {
  min-height: 36px;
}

.search-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.search-results {
  border: 2px solid #4E6282;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.07);
  background: linear-gradient(180deg, #FDFEFF 0%, #FFFFFF 100%);
  min-width: 0;
}

.search-results table {
  margin: 0;
}

.search-results thead th {
  background: #EDF2F9;
  color: #253852;
  border-bottom: 1px solid #C8D1DE;
}

/* ── Login preview modal ── */
.login-card {
  border-color: var(--ds-border-strong);
}

.preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2200;
}

.preview-modal.open {
  display: block;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 30, 66, 0.62);
}

.preview-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1040px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #FFFFFF;
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-lg);
  padding: 14px;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.preview-stage {
  margin-top: 10px;
  position: relative;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  overflow: hidden;
  background: #EEF2F7;
}

.preview-stage img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ds-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ds-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.preview-nav.prev { left: 10px; }
.preview-nav.next { right: 10px; }

.preview-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.preview-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #C1C7D0;
  cursor: pointer;
}

.preview-dots button.active {
  background: #39d0ff;
}

/* Legacy .kpi-grid (used outside dashboard) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
}

.kpi-grid .kpi {
  align-items: flex-start;
  text-align: left;
  border-left: 3px solid #39d0ff;
  padding: 12px 16px;
  background: linear-gradient(160deg, #F4FAFE 0%, #FFFFFF 100%);
}

.kpi-grid .kpi strong {
  display: block;
  margin-top: 4px;
  color: var(--ds-text);
  font-size: 21px;
  font-family: var(--ds-mono);
  font-weight: 700;
  line-height: 1;
}

/* ── Form elements ── */
label {
  display: inline-block;
  margin-bottom: 3px;
  color: var(--ds-label);
  font-size: 12px;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  min-height: 32px;
  padding: 5px 9px;
  border: 2px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: #FFFFFF;
  color: var(--ds-text);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--ds-text-disabled);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ds-border-focus);
  box-shadow: 0 0 0 2px rgba(57, 208, 255, 0.2);
}

input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin-right: 6px;
  accent-color: var(--ds-primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 14px;
  border: none;
  border-radius: var(--ds-radius);
  background: var(--ds-primary);
  color: var(--ds-primary-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid rgba(57, 208, 255, 0.9);
  outline-offset: 1px;
}

.btn:hover {
  background: var(--ds-primary-hover);
  text-decoration: none;
  color: var(--ds-primary-text);
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
  background: #5E6C84 !important;
  border-color: #5E6C84 !important;
  color: #F4F5F7 !important;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
}

form.is-uploading {
  pointer-events: none;
}

.btn.secondary {
  background: var(--ds-surface);
  color: var(--ds-text);
  border: 1px solid var(--ds-border);
  font-weight: 500;
}

.btn.secondary:hover {
  background: var(--ds-surface-sunken);
}

.btn.secondary.is-active {
  border-color: rgba(0, 135, 90, 0.5);
  background: var(--ds-success-bg);
  color: #006644;
  font-weight: 600;
}

.btn.danger {
  background: var(--ds-danger);
  color: #FFFFFF;
}

.btn.danger:hover {
  background: #BF2600;
}

.btn.success {
  background: var(--ds-success);
  color: #FFFFFF;
}

.btn.success:hover {
  background: #006644;
}

.btn.accent {
  background: #39d0ff;
  color: #040d22;
  border: 1px solid #39d0ff;
}

.btn.accent:hover {
  background: #2bbde8;
  border-color: #2bbde8;
  color: #040d22;
}

.graph-save-btn {
  background: #040d22;
  color: #FFFFFF;
  border: 1px solid #040d22;
}

.graph-save-btn:hover {
  background: #071332;
  color: #FFFFFF;
}

#graph-test-btn:disabled,
#graph-test-btn[disabled] {
  background: #0B4F3A;
  color: #C7D1DB;
  opacity: 1;
}

#graph-save-btn:disabled,
#graph-save-btn[disabled] {
  background: #1B2A46;
  border-color: #1B2A46;
  color: #C7D1DB;
  opacity: 1;
}

.graph-settings-form {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 14px;
}

.graph-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.graph-field {
  min-width: 0;
}

.field-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1px solid var(--ds-border);
  background: #FFFFFF;
  color: var(--ds-text-subtle);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
}

.graph-settings-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.graph-test-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ds-border);
  border-top-color: #39d0ff;
  border-radius: 50%;
  display: none;
}

.graph-test-spinner.active {
  display: inline-block;
  animation: spin 0.9s linear infinite;
}

.graph-test-details {
  width: 100%;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: #FFFFFF;
  padding: 10px 12px;
}

.graph-test-details:empty {
  display: none;
}

.graph-test-block + .graph-test-block {
  margin-top: 8px;
}

.graph-step-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.graph-step-item {
  margin: 3px 0;
}

.graph-step-item.ok {
  color: var(--ds-success);
}

.graph-step-item.fail {
  color: var(--ds-danger);
}

.graph-test-pre {
  margin: 6px 0;
  padding: 8px;
  background: #F4F5F7;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  overflow-x: auto;
  white-space: pre-wrap;
}

.graph-test-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--ds-border);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #FFFFFF;
  visibility: hidden;
}

.graph-test-check.ok {
  border-color: var(--ds-success);
  color: #FFFFFF;
  background: var(--ds-success);
  visibility: visible;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.inline-form {
  display: inline;
  margin: 0;
}

.btn-reset {
  cursor: pointer;
  font: inherit;
}

.btn.btn-sm {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 9px 13px;
  border-bottom: 1px solid var(--ds-border);
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--ds-surface);
  color: var(--ds-text-subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) td {
  background: #F7F8FA;
}

tbody tr:hover td {
  background: rgba(57, 208, 255, 0.06);
}

/* ── Lozenges (badges) ── */
.badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--ds-surface-sunken);
  color: var(--ds-text-subtle);
}

.badge.ok,
.badge.success {
  background: var(--ds-success-bg);
  color: #006644;
}

.badge.warn,
.badge.warning {
  background: var(--ds-warning-bg);
  color: #FF8B00;
}

.badge.err,
.badge.danger {
  background: var(--ds-danger-bg);
  color: var(--ds-danger);
}

.badge.info {
  background: rgba(57, 208, 255, 0.12);
  color: #040d22;
  border: 1px solid rgba(57, 208, 255, 0.28);
}

/* ── Flash messages (Atlassian flag-style) ── */
.flash {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--ds-radius);
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-left: 4px solid #39d0ff;
  box-shadow: var(--ds-shadow-md);
}

.flash.ok {
  border-left-color: var(--ds-success);
  background: var(--ds-success-bg);
}

.flash.err {
  border-left-color: #B42318;
  border-color: #D2483F;
  background: #F4C7C9;
}

.flash.err .flash-title {
  color: #8A1C13;
}

.btn.chronology-submit {
  background: #6F7787;
  border: 1px solid #6F7787;
  color: #F4F5F7;
}

.btn.chronology-submit.ready:not(:disabled) {
  background: #0D2F63;
  border: 1px solid #0D2F63;
  color: #FFFFFF;
}

.btn.chronology-submit.ready:not(:disabled):hover {
  background: #0A244D;
  border-color: #0A244D;
}

.flash-title {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-text);
}

.flash-hint {
  margin-top: 4px;
  color: var(--ds-text-subtle);
  font-size: 12px;
}

/* ── Code-style textarea and examples ── */
.code-textarea {
  font-family: var(--ds-mono);
  font-size: 13px;
  line-height: 1.6;
  background: #1E1E1E;
  color: #D4D4D4;
  border-color: #333;
  min-height: 96px;
}

.code-textarea::placeholder {
  color: #6A737D;
}

.code-textarea:focus {
  border-color: var(--ds-border-focus);
}

.code-example {
  border-radius: var(--ds-radius);
  overflow: hidden;
  border: 1px solid #333;
}

.code-example-label {
  padding: 6px 12px;
  background: #252526;
  color: #858585;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #333;
}

.code-example pre {
  margin: 0;
  padding: 12px 16px;
  background: #1E1E1E;
  color: #D4D4D4;
  font-family: var(--ds-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

/* ── MFA help list ── */
.mfa-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mfa-help-list li {
  padding: 10px 12px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-surface);
  font-size: 13px;
  color: var(--ds-text-subtle);
  line-height: 1.5;
}

.mfa-help-list li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ds-text);
  font-size: 13px;
}

/* ── Note box ── */
.note-box {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-surface);
}

/* ── Footer ── */
.footer-note {
  margin-top: auto;
  padding: 16px 0 8px;
  border-top: 1px solid var(--ds-border);
  color: var(--ds-text-disabled);
  font-size: 12px;
  text-align: center;
}

/* ── Pill links (action links in tables) ── */
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--ds-radius);
  font-size: 12px;
  font-weight: 600;
  color: #040d22;
  background: rgba(57, 208, 255, 0.1);
  border: 1px solid rgba(57, 208, 255, 0.25);
  transition: background 0.12s;
}

.pill:hover {
  background: rgba(57, 208, 255, 0.2);
  text-decoration: none;
}

/* ── Graph connection status ── */
.graph-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--ds-radius);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  font-size: 13px;
  line-height: 1.5;
}

.graph-status .badge {
  flex-shrink: 0;
}

.graph-status.connected {
  border-left: 3px solid var(--ds-success);
  background: var(--ds-success-bg);
}

.graph-status.disconnected {
  border-left: 3px solid var(--ds-text-disabled);
}

/* ── Microsoft 365 feature gate ── */
.m365-features {
  position: relative;
}

.m365-features.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--ds-radius);
  pointer-events: auto;
  z-index: 2;
}

.m365-features.locked > * {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Tabs (used in matter_view for Graph section) ── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ds-border);
  margin-bottom: 16px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-text-subtle);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.1s, border-color 0.1s;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--ds-text);
  border-bottom-color: rgba(57, 208, 255, 0.5);
}

.tab-btn.active {
  color: var(--ds-text);
  border-bottom-color: #39d0ff;
  font-weight: 600;
}

.tab-panel {
  display: none;
}

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

.matter-workbench-card .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 0;
  margin-bottom: 10px;
}

.matter-workbench-card .tab-btn {
  border: 1px solid var(--ds-border);
  border-radius: 999px;
  margin-bottom: 0;
  padding: 6px 12px;
  color: var(--ds-text-subtle);
  background: #FFFFFF;
  font-weight: 600;
}

.matter-workbench-card .tab-btn.active {
  background: rgba(57, 208, 255, 0.2);
  border-color: rgba(57, 208, 255, 0.75);
  color: #040d22;
  box-shadow: inset 0 0 0 1px rgba(57, 208, 255, 0.35);
}

.matter-workbench-card .tab-description {
  background: #F7F8FA;
  border: 1px solid var(--ds-border);
  color: #44546F;
}

.matter-workbench-card .m365-features > .mt-16 details {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 8px 10px;
  background: #FFFFFF;
}

.matter-workbench-card .m365-features > .mt-16 summary {
  cursor: pointer;
  font-weight: 600;
}

.tab-description {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--ds-info-bg);
  border-radius: var(--ds-radius);
  color: var(--ds-text-subtle);
  font-size: 12px;
  line-height: 1.5;
}

.provenance-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prov-filter-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--ds-radius);
  border: 1px solid var(--ds-border);
  background: #FFFFFF;
  color: var(--ds-text-subtle);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.prov-filter-btn:hover {
  border-color: #39d0ff;
  color: var(--ds-text);
}

.prov-filter-btn.active {
  background: rgba(57, 208, 255, 0.1);
  border-color: rgba(57, 208, 255, 0.36);
  color: #040d22;
  box-shadow: inset 0 0 0 1px rgba(57, 208, 255, 0.25);
}

.prov-group.is-hidden {
  display: none;
}

.mailbox-dialog {
  width: min(960px, 95vw);
  max-height: 85vh;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 0;
}

.mailbox-dialog::backdrop {
  background: rgba(9, 30, 66, 0.5);
}

.mailbox-dialog-inner {
  padding: 16px;
}

.mailbox-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mailbox-dialog-body {
  max-height: 62vh;
  overflow: auto;
}

.mailbox-folder-select {
  min-width: 280px;
}

.mailbox-controls {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
}

.mailbox-controls-action {
  display: flex;
  justify-content: flex-end;
}

.mailbox-controls-info {
  display: flex;
  align-items: center;
  height: 36px;
}

.mailbox-import-section {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: #FFFFFF;
}

.mailbox-table th:first-child,
.mailbox-table td:first-child {
  width: 36px;
  text-align: center;
}

.mailbox-import-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
}

.mailbox-import-bar span + span {
  margin-left: 12px;
}

.mailbox-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #B4BECC;
  border-radius: 6px;
  background: #F7FAFD;
  padding: 8px 10px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #97A7BE;
  border-radius: 4px;
  background: #FFFFFF;
  color: #1D3250;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.pagination-btn:hover {
  background: #EEF3FA;
  border-color: #7F94B3;
  text-decoration: none;
}

.pagination-btn.disabled {
  color: #8793A6;
  border-color: #C5CEDB;
  background: #F5F7FA;
  cursor: default;
  pointer-events: none;
}

.pagination-info {
  font-size: 12px;
  color: #334862;
  text-align: center;
  white-space: nowrap;
}

.mailbox-page-jump {
  display: flex;
  align-items: end;
  gap: 8px;
  max-width: 320px;
}

.mailbox-page-jump input[type='number'] {
  max-width: 110px;
}

#mailbox-import-submit:disabled {
  opacity: 0.55;
  filter: grayscale(0.2);
}

#mailbox-import-submit.mailbox-ready:not(:disabled) {
  background: rgba(57, 208, 255, 0.12);
  border-color: rgba(57, 208, 255, 0.4);
  color: #040d22;
}

.mailbox-hidden {
  display: none !important;
}

.notification-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: #FFFFFF;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, 92vw);
}

.overdue-panel {
  position: fixed;
  right: 18px;
  top: 72px;
  z-index: 1590;
  width: min(380px, calc(100vw - 36px));
  max-height: calc(100vh - 100px);
  overflow: auto;
  background: #FFFFFF;
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-sm);
}

.overdue-panel-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(57, 208, 255, 0.2);
  background: linear-gradient(90deg, #071332 0%, #0a1c44 100%);
  border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
}

.overdue-panel-header strong {
  color: #c8e0ff;
  font-size: 13px;
  letter-spacing: 0.01em;
  font-family: var(--ds-display);
}

.overdue-panel-close {
  border: 1px solid rgba(57, 208, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #8aaac8;
  border-radius: var(--ds-radius);
  height: 24px;
  min-width: 24px;
  line-height: 1;
  cursor: pointer;
  font-weight: 600;
}

.overdue-panel-close:hover {
  border-color: #39d0ff;
  color: #39d0ff;
  background: rgba(57, 208, 255, 0.1);
}

.overdue-panel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
}

.overdue-panel-item {
  padding: 8px 10px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: #FDFEFF;
}

.overdue-panel-message {
  margin-bottom: 6px;
  font-size: 13px;
}

.toast-item {
  background: #253858;
  color: #FFFFFF;
  border: 1px solid #172B4D;
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-md);
  padding: 10px 12px;
  opacity: 0.98;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast-item.hide {
  opacity: 0;
  transform: translateY(8px);
}

.toast-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.toast-message {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.toast-actions {
  margin-top: 8px;
}

.toast-item .pill {
  background: rgba(57, 208, 255, 0.18);
  color: #b5e8ff;
  border-color: rgba(57, 208, 255, 0.32);
}

/* ── Spacing utilities ── */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.grow-2 { flex: 2; min-width: 280px; }
.min-260 { min-width: 260px; }
.min-280 { min-width: 280px; }
.justify-end { justify-content: flex-end; }
.break-all { word-break: break-all; }

/* ── Responsive ── */
@media (max-width: 1120px) {
  .grid,
  .grid.equal,
  .grid.wide-left {
    grid-template-columns: 1fr;
  }

  .kpi-strip {
    flex-wrap: wrap;
  }

  .kpi-strip .kpi {
    flex: 1 1 calc(33% - 12px);
    min-width: 120px;
  }

  .dashboard-hero-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-query-main {
    grid-template-columns: 1fr 260px;
  }

  .search-query-submit {
    grid-column: 1 / -1;
  }

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

  .search-save-preset-row {
    grid-template-columns: 1fr;
  }

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

  .audit-saved-row {
    grid-template-columns: 1fr 1fr;
  }

  .reports-hero-grid {
    grid-template-columns: 1fr;
  }

  .reports-hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .reports-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .form-row-3col {
    grid-template-columns: 1fr 1fr;
  }

  .graph-settings-grid {
    grid-template-columns: 1fr;
  }

  .form-row-3col .form-actions-end {
    grid-column: 1 / -1;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .matter-sidebar {
    position: static;
  }

  .mailbox-controls {
    grid-template-columns: 1fr 1fr;
  }

  .mailbox-controls-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .mailbox-controls-info {
    grid-column: 1 / -1;
    height: auto;
  }

  .mailbox-pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 740px) {
  .wrap {
    padding: 0 12px 16px;
  }

  .topbar {
    padding: 0 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand b {
    font-size: 13px;
  }

  .kpi-strip .kpi {
    flex: 1 1 calc(50% - 8px);
  }

  .dashboard-hero-actions {
    grid-template-columns: 1fr;
  }

  .preview-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 10px;
  }

  .preview-nav {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .form-row-2col,
  .form-row-3col {
    grid-template-columns: 1fr;
  }

  .search-query-main,
  .search-filter-grid {
    grid-template-columns: 1fr;
  }

  .audit-filter-grid {
    grid-template-columns: 1fr;
  }

  .audit-saved-row {
    grid-template-columns: 1fr;
  }

  .reports-hero-actions {
    grid-template-columns: 1fr;
  }

  .reports-filter-grid {
    grid-template-columns: 1fr;
  }

  .reports-side-panel {
    position: static;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ── Public landing page ── */
.mk-landing {
  --mk-border: #DDD3C3;
  --mk-ink: #131B29;
  --mk-copy: #4A5568;
  --mk-accent: #B68B2E;
  --mk-accent-soft: #F5EBD5;
  --mk-outline: rgba(19, 27, 41, 0.1);
  --mk-outline-strong: rgba(19, 27, 41, 0.2);
  --mk-h1-size: clamp(42px, 5.7vw, 70px);
  --mk-h1-line: 0.93;
  --mk-h1-track: -0.012em;
  --mk-eyebrow-border: #E2D1AD;
  --mk-eyebrow-bg: #FAF3E3;
  --mk-eyebrow-ink: #7B5D1F;
  --mk-ambient-a: rgba(182, 139, 46, 0.15);
  --mk-ambient-b: rgba(42, 61, 91, 0.12);
  --mk-link: #8A6926;
  --mk-link-hover: #6E531E;
  --mk-focus: #B68B2E;
  --mk-font-ui: "Manrope", "Segoe UI", sans-serif;
  --mk-font-display: "Cormorant Garamond", Georgia, serif;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  color: var(--mk-ink);
  font-family: var(--mk-font-ui);
}

.mk-landing::before {
  content: "";
  position: absolute;
  inset: -30px -20px auto;
  height: 220px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 240px at 8% 22%, var(--mk-ambient-a), transparent 75%),
    radial-gradient(480px 220px at 92% 0%, var(--mk-ambient-b), transparent 75%);
}

.mk-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  background: linear-gradient(168deg, #FFFDF8 0%, #FFFFFF 100%);
  border: 1px solid var(--mk-outline-strong);
  border-radius: 22px;
  padding: 40px;
  box-shadow:
    0 34px 62px -44px rgba(8, 24, 48, 0.52),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.mk-hero-copy {
  min-width: 0;
}

.mk-eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--mk-eyebrow-border);
  background: var(--mk-eyebrow-bg);
  color: var(--mk-eyebrow-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mk-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  font-size: var(--mk-h1-size);
  line-height: var(--mk-h1-line);
  letter-spacing: var(--mk-h1-track);
  color: var(--mk-ink);
  text-wrap: balance;
}

.mk-copy {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.62;
  color: var(--mk-copy);
}

.mk-cta-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mk-btn-primary {
  border: 1px solid #1D2940 !important;
  background: linear-gradient(150deg, #2A3D5B 0%, #1C2A41 100%) !important;
  color: #FFFFFF !important;
  border-radius: 12px;
  letter-spacing: 0.012em;
  font-weight: 800;
  text-transform: none;
  font-size: 14px;
  min-height: 44px;
  padding: 0 16px;
  box-shadow:
    0 16px 30px -18px rgba(19, 27, 41, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.mk-btn-primary:hover {
  background: linear-gradient(150deg, #22354F 0%, #142236 100%) !important;
  transform: translateY(-2px);
  box-shadow:
    0 22px 36px -20px rgba(19, 27, 41, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.mk-link {
  color: var(--mk-link);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
}

.mk-link:hover {
  color: var(--mk-link-hover);
  text-decoration: underline;
}

.mk-hero-panel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  box-shadow:
    0 24px 48px -32px rgba(4, 13, 34, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.mk-hero-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 16px;
  display: block;
}

.mk-hero-panel-scrim {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background:
    linear-gradient(175deg, rgba(4,13,34,0.18) 0%, rgba(4,13,34,0.72) 55%, rgba(4,13,34,0.92) 100%);
}

.mk-hero-panel-glass {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px;
}

.mk-glass-label {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #39d0ff;
}

.mk-glass-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.mk-glass-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
}

.mk-glass-icon {
  color: #39d0ff;
  font-size: 7px;
  line-height: 1.9;
  flex-shrink: 0;
}

.mk-glass-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.mk-glass-kpi {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(57,208,255,0.22);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mk-glass-kpi-val {
  display: block;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #39d0ff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mk-glass-kpi-lbl {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

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

.mk-pillar {
  padding: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
  border: 1px solid var(--mk-outline);
  border-radius: 15px;
  box-shadow:
    0 20px 34px -30px rgba(8, 24, 48, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.mk-pillar:hover {
  transform: translateY(-2px);
  border-color: #DCCCAA;
  box-shadow:
    0 24px 40px -30px rgba(8, 24, 48, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.mk-pillar h3 {
  margin: 0;
  font-family: var(--mk-font-display);
  font-size: 30px;
  line-height: 0.95;
  color: #2B3A54;
}

.mk-pillar p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mk-copy);
}

.mk-reveal {
  animation: mkRiseIn 0.3s ease both;
}

.mk-landing a:focus-visible,
.mk-landing button:focus-visible,
.mk-landing [tabindex]:focus-visible {
  outline: 3px solid var(--mk-focus);
  outline-offset: 2px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 6px rgba(182, 139, 46, 0.24);
}

.mk-landing.mk-theme-subtle {
  --mk-accent: #A9843B;
  --mk-h1-size: clamp(40px, 5.3vw, 66px);
  --mk-h1-line: 0.95;
  --mk-h1-track: -0.01em;
  --mk-eyebrow-border: #E6D9C1;
  --mk-eyebrow-bg: #FCF7EC;
  --mk-eyebrow-ink: #745A27;
  --mk-ambient-a: rgba(169, 132, 59, 0.12);
  --mk-ambient-b: rgba(42, 61, 91, 0.1);
  --mk-link: #7C5F26;
  --mk-link-hover: #644D1F;
  --mk-focus: #A9843B;
}

.mk-landing.mk-theme-rich {
  --mk-accent: #C79A3A;
  --mk-h1-size: clamp(46px, 6.2vw, 78px);
  --mk-h1-line: 0.9;
  --mk-h1-track: -0.014em;
  --mk-eyebrow-border: #E2C890;
  --mk-eyebrow-bg: #F9ECCD;
  --mk-eyebrow-ink: #704F12;
  --mk-ambient-a: rgba(199, 154, 58, 0.2);
  --mk-ambient-b: rgba(30, 45, 74, 0.16);
  --mk-link: #8D6515;
  --mk-link-hover: #6E4F10;
  --mk-focus: #C79A3A;
}

@keyframes mkRiseIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-landing *,
  .mk-landing *::before,
  .mk-landing *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .mk-landing {
    forced-color-adjust: none;
    color: CanvasText;
  }

  .mk-hero,
  .mk-hero-panel,
  .mk-pillars,
  .mk-pillar {
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .mk-btn-primary {
    background: ButtonFace !important;
    color: ButtonText !important;
    border: 1px solid ButtonText !important;
  }

  .mk-link {
    color: LinkText;
  }

  .mk-landing a:focus-visible,
  .mk-landing button:focus-visible,
  .mk-landing [tabindex]:focus-visible {
    outline: 2px solid Highlight;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .mk-hero {
    grid-template-columns: 1fr;
    padding: 30px;
  }

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

@media (max-width: 640px) {
  .mk-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .mk-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .mk-pillars {
    grid-template-columns: 1fr;
  }

  .mk-copy {
    font-size: 16px;
    line-height: 1.56;
  }
}
