@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f3f8;
  --bg-deep: #ebe8f1;
  --sidebar: #fbfafc;
  --panel: #ffffff;
  --panel-strong: #f8f7fb;
  --panel-soft: #f0edf6;
  --line: #dcd8e5;
  --line-bright: #c4bdd3;
  --ink: #1d1928;
  --muted: #5b5668;
  --muted-soft: #6a6574;
  --lavender: #6c4baa;
  --lavender-strong: #593692;
  --lavender-soft: #eadffd;
  --mint: #1c7654;
  --amber: #985b12;
  --danger: #b83453;
  --radius: 16px;
  --radius-sm: 11px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 83% 16%, rgb(114 79 214 / 8%), transparent 23rem),
    var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
a {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

::selection {
  background: var(--lavender-soft);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg-deep);
  border-radius: 999px;
  background: var(--line-bright);
}

:focus-visible {
  outline: 3px solid rgb(89 54 146 / 52%);
  outline-offset: 3px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.app-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: clamp(236px, 18.8vw, 286px) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  height: 100dvh;
  flex-direction: column;
  padding: 28px 20px 22px;
  border-right: 1px solid #e2deea;
  background: rgb(251 250 252 / 94%);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 9px;
  background: #e8e3f0;
}

.brand-mark i:first-child {
  background: var(--lavender-strong);
}

.brand-mark i:last-child {
  background: var(--lavender);
}

.brand-mark::after {
  position: absolute;
  inset: 6px 14px;
  border-radius: 6px;
  background: var(--bg-deep);
  content: "";
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 11px;
}

.primary-nav {
  display: grid;
  margin-top: 46px;
  gap: 7px;
}

.nav-item {
  display: grid;
  min-height: 48px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #5b5668;
  font-size: 15px;
  text-align: left;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.nav-item small {
  color: #6a6574;
  font-size: 11px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.nav-item:disabled {
  opacity: .62;
}

.nav-item:disabled:hover small {
  opacity: 1;
}

.nav-item.is-active {
  border-color: #cbc3d8;
  background: linear-gradient(105deg, #e5dfed, #f2eff7);
  color: var(--ink);
}

.nav-item.is-active::before {
  position: absolute;
  width: 2px;
  height: 26px;
  margin-left: -15px;
  border-radius: 2px;
  background: var(--lavender);
  content: "";
}

.nav-settings {
  margin-top: 14px;
}

.sidebar-foot {
  display: grid;
  margin-top: auto;
  gap: 10px;
}

.demo-boundary {
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 13px;
  gap: 11px;
  border: 1px solid #a99ac2;
  border-radius: 14px;
  background: #f8f5fc;
}

.demo-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #eae3f5;
  color: var(--lavender);
}

.demo-icon svg {
  width: 17px;
}

.demo-boundary strong,
.demo-boundary small {
  display: block;
}

.demo-boundary strong {
  color: var(--lavender-strong);
  font-size: 14px;
}

.demo-boundary small {
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 11px;
}

.reset-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-soft);
  font-size: 11px;
  transition: background-color 180ms ease, color 180ms ease;
}

.reset-button:hover,
.reset-button.is-armed {
  background: #f4f1f8;
  color: var(--ink);
}

.reset-button svg {
  width: 15px;
  height: 15px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  min-height: 96px;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 420px) auto;
  align-items: center;
  padding: 0 32px;
  gap: 24px;
  border-bottom: 1px solid #e2deea;
  background: rgb(251 250 252 / 88%);
  backdrop-filter: blur(20px);
}

.profile-control {
  display: flex;
  width: max-content;
  min-height: 50px;
  align-items: center;
  padding: 4px 8px 4px 4px;
  gap: 11px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  text-align: left;
}

.profile-control:hover {
  background: #faf8fc;
}

.profile-control small,
.profile-control strong {
  display: block;
}

.profile-control small {
  color: var(--muted-soft);
  font-size: 11px;
}

.profile-control strong {
  margin-top: 1px;
  font-size: 17px;
}

.profile-control > svg {
  width: 14px;
  height: 14px;
  color: var(--muted-soft);
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #9d8ab9;
  border-radius: 50%;
  background: #fbf9fd;
  color: var(--lavender-strong);
  font-size: 12px;
  font-weight: 700;
}

.search-wrap {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  border: 1px solid #ddd8e6;
  border-radius: 12px;
  background: #ffffff;
}

.search-wrap:focus-within {
  border-color: #8b70b6;
  box-shadow: 0 0 0 3px rgb(89 54 146 / 8%);
}

.search-wrap > svg {
  width: 17px;
  height: 17px;
  color: var(--muted-soft);
}

.search-wrap input {
  min-width: 0;
  min-height: 42px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--lavender);
  font-size: 12px;
}

.search-wrap input::placeholder {
  color: #696474;
  opacity: 1;
}

.search-wrap kbd {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #d5d0df;
  border-radius: 6px;
  background: #f3f0f7;
  color: var(--muted-soft);
  font: 600 10px/1 "Manrope", sans-serif;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  overflow: hidden;
  padding: 6px;
  border: 1px solid #d0cadb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgb(53 41 77 / 12%);
}

.search-results button,
.search-empty {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.search-results button:hover,
.search-results button:focus-visible {
  background: #eeeaf3;
}

.search-results small,
.search-empty {
  color: var(--muted);
  font-size: 11px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #ddd8e6;
  border-radius: 12px;
  background: #ffffff;
  color: #5e596a;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button:disabled {
  opacity: .72;
}

.icon-button span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--lavender);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-content {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 26px 32px 34px;
}

.intro {
  display: flex;
  min-height: 116px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.intro p,
.intro h1,
.intro span {
  margin: 0;
}

.intro > div:first-child {
  display: flex;
  flex-direction: column;
}

.intro p {
  order: 1;
  margin-top: 8px;
  color: #625d6d;
  font-size: 11px;
}

.intro h1 {
  order: 0;
  font-size: clamp(29px, 2.2vw, 37px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.intro > div > span {
  display: block;
  order: 2;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.intro-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.filter-button,
.favorite-button,
.secondary-button,
.primary-button,
.wallet-button,
.dialog-close {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  gap: 8px;
  border: 1px solid #d0cadb;
  border-radius: 10px;
  background: #faf9fc;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 140ms ease, background-color 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.favorite-button:hover,
.secondary-button:hover,
.dialog-close:hover {
  border-color: #afa8bb;
  background: #eeeaf3;
}

.filter-button:active,
.favorite-button:active,
.secondary-button:active,
.primary-button:active,
.wallet-button:active {
  transform: translateY(1px);
}

.filter-button svg,
.favorite-button svg,
.primary-button svg,
.wallet-button svg {
  width: 16px;
  height: 16px;
}

.filter-button[aria-pressed="true"],
.favorite-button[aria-pressed="true"] {
  border-color: #8f78b2;
  background: #ece5f6;
  color: var(--lavender-strong);
}

.filter-button[aria-pressed="true"] svg,
.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.updated {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 6px;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.updated:hover {
  background: #faf8fc;
}

.updated > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 3px 10px rgb(28 118 84 / 24%);
}

.updated small,
.updated strong {
  display: block;
}

.updated small {
  color: var(--muted-soft);
  font-size: 11px;
}

.updated strong {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1.08fr);
  gap: 16px;
}

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

.metric-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 290px;
  flex-direction: column;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #faf9fc, #ffffff 68%);
  color: inherit;
  text-align: left;
  transition: border-color 180ms ease, transform 220ms var(--ease), background-color 180ms ease;
}

.metric-card:hover,
.metric-card:focus-visible,
.metric-card.is-selected {
  border-color: var(--lavender);
}

.metric-card:hover {
  transform: translateY(-3px);
}

.metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #b7adca;
  border-radius: 11px;
  background: #eee8f6;
  color: var(--lavender-strong);
}

.metric-icon svg {
  width: 18px;
  height: 18px;
}

.metric-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #d6d1df;
  border-radius: 50%;
  color: #635e6e;
}

.metric-arrow svg {
  width: 14px;
  height: 14px;
}

.metric-card h2 {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.metric-value {
  display: block;
  margin-top: 6px;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-caption {
  display: flex;
  align-items: center;
  margin-top: 9px;
  gap: 6px;
  color: var(--lavender-strong);
  font-size: 11px;
}

.metric-caption.is-complete {
  color: var(--mint);
}

.metric-caption.is-danger {
  color: var(--danger);
}

.metric-visual {
  display: flex;
  min-height: 68px;
  margin-top: auto;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
}

.metric-tally {
  display: flex;
  width: 100%;
  min-height: 28px;
  align-items: flex-end;
  gap: 6px;
}

.metric-tally i {
  height: 16px;
  flex: 1;
  border: 1px solid #cfc8da;
  border-radius: 4px;
  background: #e7e3eb;
}

.metric-tally i[data-state="active"] {
  height: 28px;
  border-color: #aa97c8;
  background: #d8caed;
}

.metric-tally i[data-state="resolved"] {
  border-color: #9fc8b6;
  background: #d9ece4;
}

.metric-visual-key {
  display: flex;
  justify-content: space-between;
  color: var(--muted-soft);
  font-size: 11px;
}

.document-tally {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14px, 1fr));
  align-items: end;
  gap: 6px;
}

.document-tally i {
  position: relative;
  height: 28px;
  border: 1px solid #d0cad9;
  border-radius: 4px 4px 3px 3px;
  background: #eeeaf2;
}

.document-tally i::before {
  position: absolute;
  top: -4px;
  left: -1px;
  width: 48%;
  height: 4px;
  border: inherit;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: inherit;
  content: "";
}

.document-tally i[data-state="ready"] {
  border-color: #9fc8b6;
  background: #d9ece4;
}

.metric-fees {
  gap: 6px;
}

.metric-fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  color: var(--muted-soft);
  font-size: 11px;
}

.metric-fee-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-fee-row strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.metric-fee-row meter {
  width: 100%;
  height: 5px;
  grid-column: 1 / -1;
  border: 0;
  border-radius: 999px;
  background: #eee7ec;
  appearance: none;
}

.metric-fee-row meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: #eee7ec;
}

.metric-fee-row meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: var(--danger);
}

.metric-fee-row meter::-moz-meter-bar {
  border-radius: 999px;
  background: var(--danger);
}

.metric-foot {
  display: flex;
  margin-top: 12px;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-soft);
  font-size: 11px;
}

.wallet-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #aa91cf;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #f4effb 0%, #eadff9 58%, #dfd2f2 145%);
  box-shadow: 0 20px 48px -30px rgb(74 48 118 / 32%);
}

.wallet-glow {
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 250px;
  height: 250px;
  border: 1px solid rgb(108 75 170 / 34%);
  border-radius: 50%;
  box-shadow: inset 0 0 38px rgb(89 54 146 / 7%);
}

.wallet-glow::before,
.wallet-glow::after {
  position: absolute;
  border: 1px solid rgb(108 75 170 / 16%);
  border-radius: 50%;
  content: "";
}

.wallet-glow::before {
  inset: 34px;
}

.wallet-glow::after {
  inset: 68px;
}

.wallet-card > *:not(.wallet-glow) {
  position: relative;
  z-index: 1;
}

.wallet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--lavender-soft);
  color: #1a1231;
}

.wallet-symbol svg {
  width: 18px;
}

.preview-chip,
.status-chip {
  display: inline-flex;
  width: max-content;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgb(108 75 170 / 32%);
  border-radius: 999px;
  background: rgb(108 75 170 / 10%);
  color: var(--lavender-strong);
  font-size: 11px;
  font-weight: 700;
}

.wallet-card h2 {
  margin: 16px 0 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.wallet-card > p {
  max-width: 30ch;
  margin: 6px 0 0;
  color: #51465f;
  font-size: 11px;
}

.wallet-links {
  display: grid;
  margin: 15px 0 0;
  gap: 7px;
}

.wallet-links button {
  display: flex;
  min-height: 28px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgb(108 75 170 / 12%);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.wallet-links button > span,
.wallet-links button > strong {
  font-size: 11px;
}

.wallet-links button > span {
  color: #675f72;
}

.wallet-links button > strong {
  color: #322841;
  font-weight: 650;
}

.wallet-links button > strong i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--lavender-strong);
}

.wallet-button,
.primary-button {
  border-color: transparent;
  background: var(--lavender-soft);
  color: #181127;
}

.wallet-button {
  position: absolute !important;
  right: 22px;
  bottom: 20px;
  left: 22px;
  width: calc(100% - 44px);
}

.wallet-button:hover,
.primary-button:hover {
  background: #e3d9ff;
}

.service-workbench {
  min-width: 0;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #f7f4fa);
}

.service-head {
  display: flex;
  min-height: 128px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 27px 28px 24px;
  gap: 32px;
}

.service-head > div:first-child {
  max-width: 720px;
}

.service-head h2,
.service-head p {
  margin: 0;
}

.service-head h2 {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.service-head p {
  max-width: 62ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.status-chip[data-tone="complete"] {
  border-color: rgb(28 118 84 / 25%);
  background: rgb(28 118 84 / 10%);
  color: var(--mint);
}

.status-chip[data-tone="warning"] {
  border-color: rgb(152 91 18 / 25%);
  background: rgb(152 91 18 / 9%);
  color: var(--amber);
}

button.status-chip {
  border-style: solid;
  cursor: pointer;
}

.service-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 10px;
}

.request-ref {
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: inherit;
}

.request-ref:hover {
  background: #f2eff7;
}

.request-ref small,
.request-ref strong {
  display: block;
  text-align: right;
}

.request-ref small {
  color: var(--muted-soft);
  font-size: 11px;
}

.request-ref strong {
  margin-top: 3px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.service-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 28px;
  border-top: 1px solid #e7e3ec;
  border-bottom: 1px solid #ddd9e5;
  background: var(--panel-strong);
  scrollbar-width: thin;
}

.service-tab {
  position: relative;
  min-height: 48px;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--muted-soft);
  font-size: 11px;
}

.service-tab:hover {
  color: var(--ink);
}

.service-tab[aria-selected="true"] {
  color: var(--lavender-strong);
}

.service-tab[aria-selected="true"]::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--lavender);
  content: "";
}

.workbench-grid {
  display: grid;
  min-height: 360px;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.65fr);
}

.workbench-grid > * {
  min-width: 0;
  padding: 26px 28px 30px;
}

.workbench-grid > * + * {
  border-left: 1px solid #ded9e6;
}

.timeline-panel {
  background: var(--panel-strong);
}

.evidence-panel {
  background: var(--panel);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.panel-heading span {
  color: var(--muted-soft);
  font-size: 11px;
}

.panel-link {
  min-height: 28px;
  padding: 0 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-soft);
  font-size: 11px;
}

.panel-link:hover {
  color: var(--lavender-strong);
}

.timeline {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  min-height: 70px;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 11px;
}

.timeline-button {
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: start;
  padding: 0;
  gap: 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.timeline-button:hover .step-copy strong {
  color: var(--lavender-strong);
}

.timeline li:not(:last-child)::after {
  position: absolute;
  top: 27px;
  bottom: -2px;
  left: 13px;
  width: 1px;
  background: #bbb4c5;
  content: "";
}

.timeline li.is-done:not(:last-child)::after {
  background: #826ca4;
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #bab3c7;
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.timeline li.is-done .step-number {
  border-color: #8f78b2;
  background: var(--lavender);
  color: #ffffff;
}

.timeline li.is-active .step-number {
  border-color: var(--lavender);
  color: var(--lavender-strong);
  box-shadow: 0 0 0 4px rgb(89 54 146 / 8%);
}

.step-copy strong,
.step-copy small {
  display: block;
}

.step-copy strong {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
}

.step-copy small {
  margin-top: 5px;
  color: var(--muted-soft);
  font-size: 11px;
}

.evidence-list {
  display: grid;
  margin-top: 18px;
  gap: 10px;
}

.evidence-row {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 12px;
  gap: 12px;
  border: 1px solid #ddd9e5;
  border-radius: 10px;
  background: #faf9fc;
  color: inherit;
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.evidence-row:hover,
.evidence-row:focus-visible {
  border-color: #ada4bd;
  background: #f2eff7;
}

.evidence-row:disabled {
  opacity: .58;
}

.evidence-row > svg {
  width: 17px;
  height: 17px;
  margin: auto;
  color: var(--lavender);
}

.evidence-row strong,
.evidence-row small {
  display: block;
}

.evidence-row strong {
  font-size: 11px;
}

.evidence-row small {
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 11px;
}

.document-state {
  color: var(--mint);
  font-size: 11px;
}

.request-form {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #ded9e6;
}

.request-form label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #3b3545;
  font-size: 11px;
  font-weight: 650;
}

.request-form label span {
  color: var(--lavender);
  font-size: 11px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 8px;
  gap: 8px;
}

.request-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d0cadb;
  border-radius: 10px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  caret-color: var(--lavender);
  font-size: 11px;
}

.request-form input:focus {
  border-color: #8f78b2;
  box-shadow: 0 0 0 3px rgb(89 54 146 / 9%);
}

.request-form input[aria-invalid="true"] {
  border-color: var(--danger);
}

.request-form > small {
  display: block;
  margin-top: 7px;
  color: var(--muted-soft);
  font-size: 11px;
}

.field-error {
  min-height: 15px;
  margin: 4px 0 0;
  color: #b83453;
  font-size: 11px;
}

.fee-panel {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  border-left: 0 !important;
  background: rgb(108 75 170 / 5%);
}

.fee-panel #fee-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: end;
  gap: 40px;
}

.fee-panel #fee-content > .fee-note {
  grid-column: 1 / -1;
  margin-top: 0;
}

.fee-amount {
  display: block;
  margin-top: 20px;
  font-size: clamp(31px, 2.6vw, 42px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fee-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.fee-lines {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  gap: 9px;
}

.fee-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fee-lines dt,
.fee-lines dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.fee-lines dd {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fee-action {
  width: 100%;
  min-height: 43px;
  margin-top: 19px;
}

.fee-action:disabled {
  opacity: .48;
  filter: saturate(.42);
}

.fee-note,
.boundary-note {
  display: flex;
  margin: 11px 0 0;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted-soft);
  font-size: 11px;
}

.fee-note svg,
.boundary-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.paid-state {
  margin-top: 22px;
  padding: 15px;
  border: 1px solid rgb(28 118 84 / 25%);
  border-radius: 12px;
  background: rgb(28 118 84 / 7%);
}

.paid-button {
  display: block;
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.paid-button:hover {
  border-color: rgb(28 118 84 / 50%);
  background: rgb(28 118 84 / 11%);
}

.paid-state strong,
.paid-state span,
.paid-state small {
  display: block;
}

.paid-state strong {
  color: var(--mint);
  font-size: 12px;
}

.paid-state span {
  margin-top: 5px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.paid-state small {
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid #ad9cbf;
  border-radius: 11px;
  background: #f2edf8;
  box-shadow: 0 18px 45px rgb(53 41 77 / 16%);
  color: var(--ink);
  font-size: 11px;
}

.modal {
  width: min(620px, calc(100vw - 30px));
  max-height: calc(100dvh - 30px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: var(--ink);
}

.modal::backdrop {
  background: rgb(3 4 9 / 78%);
  backdrop-filter: blur(7px);
}

.modal-shell {
  overflow: auto;
  max-height: calc(100dvh - 30px);
  padding: 22px;
  border: 1px solid #cbc5d5;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgb(17 12 26 / 28%);
}

.modal-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.modal-shell > header span,
.modal-shell > header h2 {
  display: block;
  margin: 0;
}

.modal-shell > header > div {
  display: flex;
  flex-direction: column;
}

.modal-shell > header span {
  order: 1;
  margin-top: 6px;
  color: var(--lavender);
  font-size: 11px;
}

.modal-shell > header h2 {
  order: 0;
  font-size: 24px;
  letter-spacing: -.03em;
}

.dialog-close {
  flex: 0 0 auto;
}

.document-preview {
  position: relative;
  min-height: 340px;
  margin-top: 22px;
  padding: 34px;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f0ea;
  color: #25242a;
}

.document-preview::before {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgb(80 57 134 / 10%);
  content: "DEMO DOCUMENT";
  font-size: 48px;
  font-weight: 800;
  letter-spacing: .08em;
  transform: translate(-50%, -50%) rotate(-24deg);
  white-space: nowrap;
}

.document-preview > * {
  position: relative;
  z-index: 1;
}

.document-preview .doc-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #57428f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-preview h3 {
  margin: 46px 0 0;
  font-size: 26px;
  letter-spacing: -.03em;
}

.document-preview p {
  max-width: 60ch;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.document-preview dl {
  display: grid;
  margin: 28px 0 0;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.document-preview dt {
  color: #68636d;
  font-size: 11px;
}

.document-preview dd {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 700;
}

.modal-shell > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 16px;
}

.modal-shell > footer p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted-soft);
  font-size: 11px;
}

.payment-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 28px;
  padding: 18px;
  border-radius: 12px;
  background: #f2eff7;
}

.payment-summary span {
  color: var(--muted);
  font-size: 11px;
}

.payment-summary strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.acknowledgement {
  display: grid;
  margin-top: 18px;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.acknowledgement input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--lavender);
}

.profile-hero {
  display: flex;
  align-items: center;
  margin-top: 26px;
  gap: 14px;
}

.avatar.large {
  width: 58px;
  height: 58px;
  font-size: 16px;
}

.profile-hero strong,
.profile-hero p {
  display: block;
  margin: 0;
}

.profile-hero p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.profile-facts {
  display: grid;
  margin: 24px 0 0;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #ded9e6;
  border-left: 1px solid #ded9e6;
}

.profile-facts > div {
  padding: 14px;
  border-right: 1px solid #ded9e6;
  border-bottom: 1px solid #ded9e6;
}

.profile-facts dt {
  color: var(--muted-soft);
  font-size: 11px;
}

.profile-facts dd {
  margin: 5px 0 0;
  font-size: 11px;
  font-weight: 650;
}

.boundary-note {
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: #f0eaf7;
  color: #5d536e;
}

.role-switch {
  display: grid;
  padding: 11px 12px;
  gap: 5px;
  border: 1px solid #ddd8e5;
  border-radius: 12px;
  background: #ffffff;
}

.role-switch > span,
.role-switch small {
  color: var(--muted-soft);
  font-size: 11px;
}

.role-switch select {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #cac3d5;
  border-radius: 8px;
  background: #f2eff7;
  color: var(--ink);
  font-size: 11px;
}

.header-buttons .icon-button {
  text-decoration: none;
}

.workspace-view {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 0 32px 40px;
}

.workspace-view[hidden],
.route-view[hidden] {
  display: none;
}

.workspace-head {
  display: flex;
  min-height: 164px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.workspace-head p,
.workspace-head h1,
.workspace-head span {
  margin: 0;
}

.workspace-head > div {
  display: flex;
  flex-direction: column;
}

.workspace-head p,
.section-heading p {
  color: var(--lavender);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workspace-head p {
  order: 1;
  margin-top: 8px;
}

.workspace-head h1 {
  order: 0;
  font-size: clamp(32px, 3.1vw, 48px);
  font-weight: 550;
  letter-spacing: -.04em;
  line-height: 1.02;
}

.workspace-head h1:focus {
  outline: 0;
}

.workspace-head > div > span {
  display: block;
  order: 2;
  max-width: 68ch;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.role-badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #c7c1d1;
  border-radius: 999px;
  background: #faf9fc;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading > div {
  display: flex;
  flex-direction: column;
}

.section-heading p,
.section-heading h2,
.section-heading > span {
  margin: 0;
}

.section-heading h2 {
  order: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.section-heading p {
  order: 1;
  margin-top: 6px;
}

.section-heading > span {
  color: var(--muted-soft);
  font-size: 11px;
}

.section-heading.compact {
  align-items: center;
}

.catalog-strip {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #f8f7fb, #f5f2f8);
}

.catalog-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.catalog-card {
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid #ded9e5;
  border-radius: 13px;
  background: #ffffff;
}

.catalog-card > span {
  color: var(--lavender);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-card h3 {
  margin: 11px 0 0;
  font-size: 16px;
}

.catalog-card p {
  margin: 7px 0 0;
  color: var(--muted-soft);
  font-size: 11px;
}

.catalog-card dl {
  display: grid;
  margin: 18px 0;
  gap: 7px;
}

.catalog-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.catalog-card dt,
.catalog-card dd {
  margin: 0;
  font-size: 11px;
}

.catalog-card dt {
  color: var(--muted-soft);
}

.catalog-card .secondary-button {
  width: 100%;
  margin-top: auto;
}

.case-layout {
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(330px, .82fr) minmax(0, 1.65fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.case-list {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #faf9fc;
}

.case-row {
  display: grid;
  width: 100%;
  min-height: 84px;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  margin-top: 8px;
  padding: 11px 12px;
  column-gap: 11px;
  row-gap: 4px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.case-row:hover,
.case-row.is-selected {
  border-color: #c4bdd3;
  background: #f2eff7;
}

.case-icon,
.document-name > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #eee8f8;
  color: var(--lavender);
  font-style: normal;
}

.case-icon svg,
.document-name > i svg {
  width: 16px;
}

.case-row strong,
.case-row small {
  display: block;
}

.case-row strong {
  font-size: 11px;
  line-height: 1.35;
}

.case-row small {
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 11px;
}

.case-row .status-chip {
  grid-column: 2;
  justify-self: start;
  font-size: 11px;
}

.case-detail {
  min-width: 0;
  padding: 30px 32px 34px;
}

.case-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.case-detail h2,
.case-detail p {
  margin: 0;
}

.case-detail h2 {
  margin-top: 10px;
  font-size: 31px;
  letter-spacing: -.035em;
}

.case-detail header p {
  max-width: 62ch;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.reference-button,
.text-button {
  min-height: 34px;
  padding: 0 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lavender-strong);
  font-size: 11px;
}

.reference-button:hover,
.text-button:hover {
  background: #eeeaf3;
}

.case-detail > header .reference-button {
  min-height: 40px;
  flex: 0 0 auto;
  padding-inline: 11px;
  border: 1px solid #d7d1df;
  background: #faf9fc;
}

.detail-columns {
  display: grid;
  margin-top: 28px;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .8fr);
  gap: 36px;
}

.detail-columns h3 {
  margin: 0 0 12px;
  font-size: 11px;
}

.detail-columns h3:not(:first-child) {
  margin-top: 30px;
}

.detail-columns > aside {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.requirement-list,
.mini-events,
.action-stack {
  display: grid;
  gap: 10px;
}

.requirement-list button,
.mini-events button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 12px;
  border: 1px solid #ded9e5;
  border-radius: 10px;
  background: #faf9fc;
  color: inherit;
  text-align: left;
}

.requirement-list button:hover,
.mini-events button:hover {
  border-color: #aaa0b8;
}

.requirement-list button > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}

.requirement-list svg {
  width: 15px;
  color: var(--lavender);
}

.requirement-list small,
.mini-events small {
  color: var(--muted-soft);
  font-size: 11px;
}

.mini-events button {
  display: grid;
  align-items: start;
}

.mini-events span {
  font-size: 11px;
}

.action-stack label,
.appointment-side label,
.message-composer > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.action-stack input,
.action-stack textarea,
.appointment-side input,
.appointment-side select,
.message-composer textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #d2ccdb;
  border-radius: 9px;
  outline: 0;
  background: #fbfafc;
  color: var(--ink);
  resize: vertical;
}

.action-stack textarea,
.message-composer textarea {
  min-height: 86px;
}

.wide {
  width: 100%;
  margin-top: 10px;
}

@media (min-width: 901px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid #ded9e5;
    border-radius: 13px;
    background: #ffffff;
  }

  .catalog-card {
    display: grid;
    min-height: 104px;
    grid-template-columns: minmax(185px, .85fr) minmax(170px, .9fr) minmax(250px, 1.05fr) minmax(135px, .55fr);
    grid-template-areas:
      "category requirements meta action"
      "title requirements meta action";
    align-items: center;
    padding: 17px 18px;
    column-gap: 24px;
    border: 0;
    border-radius: 0;
  }

  .catalog-card + .catalog-card {
    border-top: 1px solid #e3dfe8;
  }

  .catalog-card > span {
    grid-area: category;
    align-self: end;
  }

  .catalog-card h3 {
    grid-area: title;
    align-self: start;
    margin-top: 5px;
  }

  .catalog-card p {
    grid-area: requirements;
    margin: 0;
    line-height: 1.55;
  }

  .catalog-card dl {
    grid-area: meta;
    margin: 0;
  }

  .catalog-card .secondary-button {
    grid-area: action;
    margin-top: 0;
  }
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: .45;
}

.attention-note,
.internal-note,
.completion-panel {
  padding: 14px;
  border: 1px solid rgb(152 91 18 / 28%);
  border-radius: 11px;
  background: rgb(152 91 18 / 7%);
}

.attention-note strong,
.internal-note span,
.completion-panel strong {
  color: var(--amber);
  font-size: 11px;
}

.attention-note p,
.internal-note p,
.completion-panel p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.internal-note {
  margin-top: 14px;
  border-color: #9d8bb5;
  background: #f0e9f8;
}

.internal-note span {
  color: var(--lavender);
}

.completion-panel {
  border-color: rgb(28 118 84 / 25%);
  background: rgb(28 118 84 / 6%);
}

.completion-panel > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: rgb(28 118 84 / 12%);
  color: var(--mint);
}

.completion-panel strong {
  color: var(--mint);
}

.document-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.document-table {
  min-width: 0;
  padding: 8px 20px 20px;
}

.table-head,
.document-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, .9fr) minmax(120px, .72fr) minmax(130px, .8fr) 24px;
  align-items: center;
  gap: 14px;
}

.table-head {
  min-height: 50px;
  padding: 0 12px;
  color: var(--muted-soft);
  font-size: 11px;
  text-transform: uppercase;
}

.document-row {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid #ded9e5;
  background: transparent;
  color: inherit;
  text-align: left;
}

.document-row:hover {
  background: #f8f6fa;
}

.document-row > span > strong,
.document-row > span > small {
  display: block;
}

.document-row > span > strong {
  font-size: 11px;
}

.document-row > span > small {
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 11px;
}

.document-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.document-name strong,
.document-name small {
  display: block;
}

.document-name strong {
  font-size: 11px;
}

.document-name small {
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 11px;
}

.row-arrow {
  color: var(--muted-soft);
}

.row-arrow svg {
  width: 15px;
}

.credential-rail {
  padding: 26px;
  border-left: 1px solid #a58fbe;
  background: linear-gradient(155deg, #f4eefb, #e7dcf7 80%, #c9b5e7 160%);
}

.credential-rail > span {
  color: var(--lavender);
  font-size: 11px;
  text-transform: uppercase;
}

.credential-rail h2 {
  margin: 9px 0 0;
  font-size: 26px;
  letter-spacing: -.04em;
}

.credential-rail > p {
  margin: 9px 0 22px;
  color: #51465f;
  font-size: 11px;
}

.credential-mini,
.credential-row {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  margin-top: 9px;
  padding: 12px;
  gap: 10px;
  border: 1px solid rgb(108 75 170 / 18%);
  border-radius: 11px;
  background: rgb(108 75 170 / 7%);
  color: inherit;
  text-align: left;
}

.credential-mini:hover,
.credential-row:hover {
  border-color: rgb(108 75 170 / 42%);
}

.credential-mini > span {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 9px;
  background: var(--lavender-soft);
  color: #1d1532;
}

.credential-mini strong,
.credential-mini small {
  grid-column: 2;
}

.credential-mini strong {
  font-size: 11px;
}

.credential-mini small {
  color: #635c70;
  font-size: 11px;
}

.payment-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.payment-overview > div {
  min-height: 150px;
  padding: 24px;
}

.payment-overview > div + div {
  border-left: 1px solid var(--line);
}

.payment-overview span,
.payment-overview strong,
.payment-overview small {
  display: block;
}

.payment-overview span {
  color: var(--muted);
  font-size: 11px;
}

.payment-overview strong {
  margin-top: 12px;
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -.04em;
}

.payment-overview small {
  margin-top: 8px;
  color: var(--muted-soft);
  font-size: 11px;
}

.payment-ledger {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.payment-ledger > header,
.payment-ledger > article {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) .5fr .55fr .8fr minmax(150px, .9fr);
  align-items: center;
  padding: 0 20px;
  gap: 14px;
}

.payment-ledger > header {
  min-height: 48px;
  color: var(--muted-soft);
  font-size: 11px;
  text-transform: uppercase;
}

.payment-ledger > article {
  min-height: 78px;
  border-top: 1px solid var(--line);
}

.payment-ledger article > span:first-child strong,
.payment-ledger article > span:first-child small {
  display: block;
}

.payment-ledger article > span:first-child strong {
  font-size: 11px;
}

.payment-ledger article > span:first-child small,
.payment-ledger article > span:not(:first-child) {
  color: var(--muted-soft);
  font-size: 11px;
}

.ledger-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.danger-link {
  color: var(--danger);
}

.workspace-boundary {
  display: flex;
  margin: 16px 0 0;
  align-items: center;
  gap: 8px;
  color: var(--muted-soft);
  font-size: 11px;
}

.workspace-boundary svg {
  width: 14px;
}

.message-layout {
  display: grid;
  min-height: 650px;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.thread-list {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.thread-button {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  padding: 9px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.thread-button:hover,
.thread-button.is-selected {
  border-color: #cfc9d8;
  background: #f2eff7;
}

.thread-button > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eee8f8;
  color: var(--lavender);
}

.thread-button strong,
.thread-button small {
  display: block;
}

.thread-button strong {
  font-size: 11px;
}

.thread-button small {
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 11px;
}

.conversation {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
}

.conversation > header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.conversation header span,
.conversation header h2 {
  margin: 0;
}

.conversation header span {
  color: var(--muted-soft);
  font-size: 11px;
}

.conversation header h2 {
  margin-top: 4px;
  font-size: 17px;
}

.message-stream {
  display: flex;
  max-height: 420px;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px;
  gap: 11px;
}

.message-bubble {
  width: min(76%, 520px);
  padding: 12px 14px;
  border: 1px solid #ddd8e5;
  border-radius: 4px 13px 13px;
  background: #f7f5fa;
}

.message-bubble.is-own {
  align-self: flex-end;
  border-color: #9e87b8;
  border-radius: 13px 4px 13px 13px;
  background: #ebe3f5;
}

.message-bubble.is-internal {
  border-style: dashed;
  background: #f4eff8;
}

.message-bubble > span,
.message-bubble > small {
  color: var(--muted-soft);
  font-size: 11px;
}

.message-bubble p {
  margin: 6px 0;
  font-size: 11px;
}

.message-bubble button {
  display: flex;
  min-height: 32px;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  border: 1px solid #afa3bd;
  border-radius: 7px;
  background: transparent;
  color: var(--lavender-strong);
  font-size: 11px;
}

.message-bubble button svg {
  width: 13px;
}

.message-composer {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.message-composer textarea {
  min-height: 72px;
  margin-top: 7px;
}

.message-composer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 16px;
}

.attachment-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.attachment-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--lavender);
}

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.calendar-panel {
  padding: 28px;
}

.calendar-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.calendar-top span,
.calendar-top strong {
  display: block;
}

.calendar-top > div span {
  color: var(--lavender);
  font-size: 11px;
}

.calendar-top > div strong {
  margin-top: 3px;
  font-size: 30px;
  font-weight: 550;
}

.calendar-top > span {
  color: var(--muted-soft);
  font-size: 11px;
}

.calendar-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.calendar-grid > span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 11px;
}

.calendar-grid button,
.calendar-grid i {
  display: grid;
  min-height: 72px;
  place-items: start;
  padding: 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.calendar-grid button:hover,
.calendar-grid button.is-available {
  background: #f2eff7;
  color: var(--ink);
}

.calendar-grid button.has-booking::after,
.calendar-grid button.is-available::after {
  display: block;
  width: 7px;
  height: 7px;
  margin-top: 18px;
  border-radius: 50%;
  background: var(--lavender);
  content: "";
}

.calendar-grid button.is-available::after {
  background: var(--mint);
}

.appointment-side {
  padding: 28px;
  border-left: 1px solid var(--line);
  background: #ffffff;
}

.appointment-side h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.appointment-side form {
  display: grid;
  gap: 12px;
}

.booking-list {
  display: grid;
  margin-top: 22px;
  padding-top: 20px;
  gap: 7px;
  border-top: 1px solid var(--line);
}

.booking-list button {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  padding: 8px;
  gap: 9px;
  border: 1px solid #d8d3e2;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.booking-list svg {
  width: 16px;
  color: var(--lavender);
}

.booking-list strong,
.booking-list small {
  display: block;
}

.booking-list strong {
  font-size: 11px;
}

.booking-list small {
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 11px;
}

.access-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
}

.identity-card,
.role-control {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.identity-card {
  background: linear-gradient(155deg, #f1ebf8, #f9f7fb 72%, #c9b5e9 150%);
}

.identity-card > p,
.identity-card h2,
.identity-card > strong {
  margin: 0;
}

.identity-card > p {
  margin-top: 24px;
  color: var(--lavender);
  font-size: 11px;
}

.identity-card h2 {
  margin-top: 7px;
  font-size: 28px;
}

.identity-card > strong {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.identity-card dl {
  display: grid;
  margin: 28px 0 0;
  gap: 10px;
}

.identity-card dl div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid rgb(108 75 170 / 14%);
}

.identity-card dt,
.identity-card dd {
  margin: 0;
  font-size: 11px;
}

.identity-card dt {
  color: #625a70;
}

.role-options {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.role-options button {
  display: grid;
  min-height: 128px;
  justify-items: start;
  padding: 14px;
  gap: 5px;
  border: 1px solid #ddd8e5;
  border-radius: 11px;
  background: #faf9fc;
  color: inherit;
  text-align: left;
}

.role-options button[aria-pressed="true"] {
  border-color: #8a72ae;
  background: #ece5f6;
}

.role-options button > span {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 9px;
  background: #eee8f7;
  color: var(--lavender);
}

.role-options svg {
  width: 15px;
}

.role-options strong {
  font-size: 11px;
}

.role-options small {
  color: var(--muted-soft);
  font-size: 11px;
}

.permission-list {
  display: grid;
  margin: 20px 0 0;
  padding: 16px 0;
  gap: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.permission-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.permission-list svg {
  width: 14px;
  color: var(--lavender-strong);
}

.credential-list {
  margin-top: 20px;
}

.credential-row {
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  border-color: #d8d3e2;
  background: #faf9fc;
}

.credential-row > span:first-child {
  color: var(--lavender);
}

.credential-row strong,
.credential-row small {
  display: block;
}

.credential-row strong {
  font-size: 11px;
}

.credential-row small {
  color: var(--muted-soft);
  font-size: 11px;
}

.support-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 16px;
}

.support-hero,
.support-options,
.adapter-list,
.audit-log {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.support-hero {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  background: radial-gradient(circle at 78% 78%, rgb(151 113 255 / 20%), transparent 17rem), linear-gradient(145deg, #f2ecfa, #ffffff 64%);
}

.support-hero > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: var(--lavender-soft);
  color: #19112b;
}

.support-hero > p {
  order: 3;
  max-width: 50ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.support-hero > span + p {
  order: 2;
  margin-top: 11px;
  color: var(--lavender);
  font-size: 11px;
  text-transform: uppercase;
}

.support-hero h2 {
  order: 1;
  max-width: 12ch;
  margin: 22px 0 0;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 550;
  letter-spacing: -.04em;
  line-height: 1;
}

.support-hero .primary-button {
  order: 4;
  margin-top: 28px;
}

.support-options {
  display: grid;
  align-content: start;
  gap: 8px;
}

.support-options > button {
  display: grid;
  min-height: 76px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  padding: 10px;
  gap: 10px;
  border: 1px solid #ddd8e5;
  border-radius: 10px;
  background: #faf9fc;
  color: inherit;
  text-align: left;
}

.support-options > button > span {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 9px;
  background: #eee8f8;
  color: var(--lavender);
}

.support-options > button strong,
.support-options > button small {
  grid-column: 2;
}

.support-options strong {
  font-size: 11px;
}

.support-options small {
  color: var(--muted-soft);
  font-size: 11px;
}

.support-contact {
  margin-top: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.support-contact span,
.support-contact strong,
.support-contact small {
  display: block;
}

.support-contact span,
.support-contact small {
  color: var(--muted-soft);
  font-size: 11px;
}

.support-contact strong {
  margin: 7px 0 3px;
  font-size: 11px;
}

.adapter-list > button,
.audit-log > button {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 9px;
  padding: 9px;
  gap: 10px;
  border: 1px solid #ddd8e5;
  border-radius: 10px;
  background: #faf9fc;
  color: inherit;
  text-align: left;
}

.adapter-list > button > span:first-child,
.audit-log > button > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #eee8f8;
  color: var(--lavender);
}

.adapter-list strong,
.adapter-list small,
.audit-log strong,
.audit-log small {
  display: block;
}

.adapter-list strong,
.audit-log strong {
  font-size: 11px;
}

.adapter-list small,
.audit-log small {
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 11px;
}

.adapter-list em {
  color: var(--lavender-strong);
  font-size: 11px;
  font-style: normal;
}

.adapter-list em[data-tone="neutral"] {
  color: var(--muted);
}

.service-config {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-config h3 {
  font-size: 11px;
}

.service-config > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 14px;
  border-top: 1px solid #e0dce8;
}

.service-config strong,
.service-config small {
  display: block;
}

.service-config strong {
  font-size: 11px;
}

.service-config small,
.service-config > div > span:last-child {
  color: var(--muted-soft);
  font-size: 11px;
}

.detail-dialog-body {
  margin-top: 22px;
}

.activity-detail {
  display: grid;
  max-height: 520px;
  overflow-y: auto;
  gap: 8px;
}

.activity-detail article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 11px;
  gap: 10px;
  border: 1px solid #ddd8e5;
  border-radius: 10px;
  background: #f7f5fa;
}

.activity-detail article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #eee8f8;
  color: var(--lavender);
}

.activity-detail strong,
.activity-detail p,
.activity-detail small {
  margin: 0;
}

.activity-detail strong {
  font-size: 11px;
}

.activity-detail p,
.activity-detail small {
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 11px;
}

.receipt-detail > span {
  color: var(--mint);
  font-size: 11px;
}

.adapter-detail > strong {
  color: var(--lavender-strong);
  font-size: 11px;
}

.receipt-detail > strong {
  display: block;
  margin-top: 10px;
  font-size: 38px;
  font-weight: 550;
  letter-spacing: -.04em;
}

.receipt-detail dl,
.credential-detail dl,
.event-detail dl {
  display: grid;
  margin: 22px 0 0;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.receipt-detail dl div,
.credential-detail dl div,
.event-detail dl div {
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.receipt-detail dt,
.credential-detail dt,
.event-detail dt {
  color: var(--muted-soft);
  font-size: 11px;
}

.receipt-detail dd,
.credential-detail dd,
.event-detail dd {
  margin: 4px 0 0;
  font-size: 11px;
}

.receipt-detail > p,
.credential-detail > p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted-soft);
  font-size: 11px;
}

.receipt-detail > p svg,
.credential-detail > p svg {
  width: 14px;
  flex: 0 0 auto;
}

.credential-detail {
  padding: 24px;
  border: 1px solid #a68fc0;
  border-radius: 14px;
  background: linear-gradient(145deg, #eee5f8, #f9f7fb 74%);
}

.credential-detail > p,
.credential-detail h3,
.credential-detail > strong {
  margin: 0;
}

.credential-detail > p:not(:last-child) {
  margin-top: 20px;
  color: var(--lavender);
}

.credential-detail h3 {
  margin-top: 5px;
  font-size: 24px;
}

.credential-detail > strong {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.attachment-detail {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 30px;
  border: 1px dashed #ab9dbd;
  border-radius: 12px;
  background: #f2edf8;
  text-align: center;
}

.attachment-detail svg {
  width: 42px;
  height: 42px;
  color: var(--lavender);
}

.attachment-detail p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 11px;
}

.attachment-detail strong {
  color: var(--lavender-strong);
  font-size: 11px;
}

.adapter-detail {
  padding: 20px;
  border: 1px solid #d8d3e2;
  border-radius: 11px;
  background: #f7f5fa;
}

.adapter-detail p,
.adapter-detail span {
  color: var(--muted);
  font-size: 11px;
}

.adapter-detail span {
  display: block;
  margin-top: 18px;
  color: var(--muted-soft);
  font-size: 11px;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted-soft);
  font-size: 11px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 214px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 14px;
  }

  .brand small,
  .nav-item small,
  .updated {
    display: none;
  }

  .dashboard-content,
  .topbar {
    padding-inline: 22px;
  }

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

  .wallet-card {
    min-height: 230px;
  }

  .wallet-card > p {
    max-width: 48ch;
  }

  .wallet-links {
    width: min(52%, 480px);
  }

  .wallet-button {
    right: 22px;
    bottom: 22px;
    left: auto;
    width: 230px;
  }

  .workspace-view {
    padding-inline: 22px;
  }

  .document-ledger {
    grid-template-columns: 1fr;
  }

  .credential-rail {
    border-top: 1px solid #a58fbe;
    border-left: 0;
  }

  .table-head,
  .document-row {
    grid-template-columns: minmax(210px, 1.2fr) minmax(140px, .8fr) minmax(130px, .7fr) 24px;
  }

  .table-head span:nth-child(4),
  .document-row > span:nth-child(4) {
    display: none;
  }

  .payment-ledger > header,
  .payment-ledger > article {
    grid-template-columns: minmax(180px, 1.25fr) .55fr .6fr minmax(150px, .8fr);
  }

  .payment-ledger > header > span:nth-child(4),
  .payment-ledger > article > button:nth-child(4) {
    display: none;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    display: grid;
    height: auto;
    min-height: 70px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 8px 14px;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid #e2deea;
  }

  .brand {
    min-height: 48px;
  }

  .brand span:last-child,
  .sidebar-foot {
    display: none;
  }

  .primary-nav {
    display: flex;
    margin: 0;
    overflow-x: auto;
    gap: 3px;
  }

  .nav-item {
    min-height: 44px;
    flex: 0 0 auto;
    grid-template-columns: 18px auto;
    padding: 0 11px;
    gap: 7px;
    font-size: 11px;
  }

  .nav-item:disabled,
  .nav-settings {
    display: none;
  }

  .nav-item.is-active::before {
    display: none;
  }

  .topbar {
    top: 70px;
  }

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

  .fee-panel {
    grid-column: 1 / -1;
    border-top: 1px solid #ded9e6;
    border-left: 0 !important;
  }

  .fee-panel #fee-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 20px;
  }

  .workspace-head {
    min-height: 140px;
  }

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

  .case-layout,
  .message-layout,
  .appointment-layout,
  .access-layout,
  .support-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .case-list,
  .thread-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .case-list .section-heading {
    grid-column: 1 / -1;
  }

  .thread-list {
    display: flex;
    overflow-x: auto;
  }

  .thread-button {
    min-width: 250px;
  }

  .appointment-side,
  .credential-rail {
    border-left: 0;
  }

  .appointment-side {
    border-top: 1px solid var(--line);
  }

  .identity-card {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .sidebar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-item span {
    display: none;
  }

  .nav-item {
    grid-template-columns: 20px;
    min-width: 44px;
    justify-content: center;
    padding: 0;
  }

  .topbar {
    min-height: 72px;
    grid-template-columns: auto minmax(0, 1fr);
    padding-inline: 12px;
    gap: 10px;
  }

  .profile-control > span:not(.avatar),
  .profile-control > svg,
  .icon-button,
  .header-buttons {
    display: none;
  }

  .profile-control {
    min-height: 44px;
    padding: 0;
  }

  .search-wrap {
    min-height: 42px;
  }

  .search-wrap kbd {
    display: none;
  }

  .dashboard-content {
    padding: 20px 12px 30px;
  }

  .intro {
    display: grid;
    min-height: 0;
    gap: 18px;
  }

  .intro h1 {
    font-size: 29px;
  }

  .intro-tools {
    justify-content: space-between;
  }

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

  .metric-card {
    min-height: 194px;
    padding: 18px;
  }

  .metric-value {
    font-size: 36px;
  }

  .wallet-card {
    min-height: 260px;
    padding: 20px;
  }

  .wallet-links {
    width: 100%;
  }

  .wallet-button {
    right: 20px;
    bottom: 18px;
    left: 20px;
    width: calc(100% - 40px);
  }

  .service-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .service-head h2 {
    font-size: 24px;
  }

  .service-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .service-tabs {
    padding-inline: 8px;
  }

  .workbench-grid {
    display: block;
  }

  .workbench-grid > * {
    padding: 20px;
  }

  .workbench-grid > * + * {
    border-top: 1px solid #ded9e6;
    border-left: 0;
  }

  .fee-panel #fee-content {
    display: block;
  }

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

  .secondary-button,
  .primary-button,
  .favorite-button,
  .filter-button,
  .wallet-button,
  .dialog-close {
    min-height: 44px;
  }

  .modal-shell {
    padding: 18px;
  }

  .document-preview {
    min-height: 390px;
    padding: 24px 20px;
  }

  .document-preview dl,
  .profile-facts {
    grid-template-columns: 1fr;
  }

  .modal-shell > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-view {
    padding: 0 12px 30px;
  }

  .workspace-head {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 0;
    gap: 15px;
  }

  .workspace-head h1 {
    font-size: 34px;
  }

  .catalog-strip,
  .case-list,
  .case-detail,
  .calendar-panel,
  .appointment-side,
  .identity-card,
  .role-control,
  .support-hero,
  .support-options,
  .adapter-list,
  .audit-log,
  .credential-rail {
    padding: 18px;
  }

  .catalog-grid,
  .case-list,
  .detail-columns,
  .role-options,
  .payment-overview {
    grid-template-columns: 1fr;
  }

  .case-layout {
    min-height: 0;
  }

  .case-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .case-row .status-chip {
    grid-column: 2;
    justify-self: start;
  }

  .case-detail > header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-detail h2 {
    font-size: 24px;
  }

  .detail-columns > aside {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .document-table {
    padding: 7px 12px 12px;
  }

  .table-head {
    display: none;
  }

  .document-row {
    grid-template-columns: minmax(0, 1fr) 20px;
    min-height: 88px;
  }

  .document-row > span:nth-child(2),
  .document-row > span:nth-child(3),
  .document-row > span:nth-child(4) {
    display: none;
  }

  .payment-overview > div {
    min-height: 120px;
  }

  .payment-overview > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .payment-ledger > header {
    display: none;
  }

  .payment-ledger > article {
    grid-template-columns: 1fr auto;
    min-height: 132px;
    padding: 16px;
  }

  .payment-ledger > article > span:first-child {
    grid-column: 1 / -1;
  }

  .payment-ledger > article > button:nth-child(4) {
    display: none;
  }

  .ledger-actions {
    justify-content: flex-end;
  }

  .conversation > header {
    padding-inline: 16px;
  }

  .message-stream,
  .message-composer {
    padding: 16px;
  }

  .message-bubble {
    width: 90%;
  }

  .message-composer > div {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-grid button,
  .calendar-grid i {
    min-height: 52px;
    padding: 7px;
  }

  .calendar-grid button.has-booking::after,
  .calendar-grid button.is-available::after {
    margin-top: 9px;
  }

  .receipt-detail dl,
  .credential-detail dl,
  .event-detail dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
  order: 0;
