:root {
  color-scheme: light;
  --ink: #172025;
  --muted: #5d6b70;
  --line: #d9e0e2;
  --soft: #f4f7f7;
  --paper: #ffffff;
  --nav: #10252a;
  --nav-muted: #a9bec0;
  --teal: #087f78;
  --teal-dark: #075f5b;
  --aqua: #63d0c5;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-line: #bfdbfe;
  --green: #16794a;
  --green-soft: #e9f7ef;
  --amber: #9c6000;
  --amber-soft: #fff4d8;
  --red: #a13737;
  --red-soft: #fbecec;
  --shadow: 0 8px 24px rgb(18 37 42 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--soft);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--soft);
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: var(--teal-dark);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(37 99 235 / 30%);
  outline-offset: 2px;
}

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

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 224px;
  height: 100vh;
  padding: 18px 14px;
  color: #fff;
  background: var(--nav);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 8px 18px;
  color: #fff;
  text-decoration: none;
}

.app-brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.app-brand strong,
.app-brand span {
  display: block;
}

.app-brand strong {
  font-size: 17px;
}

.app-brand span {
  margin-top: 1px;
  color: var(--nav-muted);
  font-size: 11px;
}

.sidebar-label {
  margin: 7px 10px;
  color: #789396;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.app-nav {
  display: grid;
  gap: 4px;
}

.nav-button,
.nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: #c7d5d7;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-button:hover,
.nav-link:hover {
  color: #fff;
  background: rgb(255 255 255 / 7%);
}

.nav-button.is-active {
  color: #fff;
  background: rgb(99 208 197 / 18%);
  box-shadow: inset 3px 0 var(--aqua);
}

.sidebar-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.sidebar-connection {
  min-width: 0;
  margin-top: auto;
  padding: 14px 10px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.sidebar-connection span,
.sidebar-connection strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-connection span {
  color: #789396;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-connection strong {
  margin-top: 5px;
  color: #dce8e9;
  font-size: 11px;
}

.sidebar-connection + .sidebar-footer {
  margin-top: 0;
}

.app-main {
  min-width: 0;
}

.app-topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.topbar-title {
  min-width: 0;
}

.topbar-title h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.topbar-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.content {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 24px 28px 48px;
}

.view-panel[hidden] {
  display: none;
}

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

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.section-heading p {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-stack {
  display: grid;
  gap: 18px;
}

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

.metric,
.panel,
.permission-row,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.metric {
  min-width: 0;
  min-height: 112px;
  padding: 15px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 9px;
  font-size: 22px;
  line-height: 1.15;
}

.metric small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.panel-header h3 {
  margin: 0;
  font-size: 15px;
}

.panel-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.panel-body {
  padding: 17px;
}

.compact-count {
  color: var(--muted);
  font-size: 12px;
}

.signal-list {
  display: grid;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 68px;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

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

.signal-row:hover {
  background: #f8faf9;
}

.signal-row > span:first-child {
  min-width: 0;
}

.signal-row strong,
.signal-row small {
  display: block;
  overflow-wrap: anywhere;
}

.signal-row strong {
  font-size: 13px;
}

.signal-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.permission-list {
  display: grid;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(150px, .9fr) minmax(120px, .7fr) minmax(150px, .8fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 15px;
  border-radius: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  box-shadow: none;
}

.permission-row:first-child {
  border-top: 0;
}

.permission-name {
  min-width: 0;
}

.permission-name strong,
.permission-name span {
  display: block;
  overflow-wrap: anywhere;
}

.permission-name strong {
  font-size: 13px;
}

.permission-name span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status.ok {
  color: var(--green);
  background: var(--green-soft);
}

.status.info {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.status.warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.status.error {
  color: var(--red);
  background: var(--red-soft);
}

.status.neutral {
  color: var(--muted);
  background: var(--soft);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #f8faf9;
  font-size: 10px;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button.secondary:hover {
  border-color: #aebabc;
  background: var(--soft);
}

.button.danger {
  color: var(--red);
  border-color: #e7bcbc;
  background: #fff;
}

.button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.grow-field {
  flex: 1 1 320px;
}

.read-window {
  display: grid;
  gap: 5px;
  min-width: 220px;
  padding: 8px 0;
}

.read-window span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.read-window strong {
  font-size: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #bdc8ca;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

select {
  min-width: 240px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: #f8faf9;
}

.fact-grid > div {
  min-width: 0;
  padding: 13px;
  border-right: 1px solid var(--line);
}

.fact-grid > div:last-child {
  border-right: 0;
}

.fact-grid span,
.fact-grid strong,
.fact-grid small {
  display: block;
  overflow-wrap: anywhere;
}

.fact-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.fact-grid strong {
  margin-top: 5px;
  font-size: 16px;
}

.fact-grid small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.notice {
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  background: #edf8f7;
  color: #244b4c;
  font-size: 12px;
  line-height: 1.55;
}

.notice.warning {
  border-left-color: #d59b21;
  background: var(--amber-soft);
  color: #634918;
}

.notice.error {
  border-left-color: var(--red);
  background: var(--red-soft);
  color: #702d2d;
}

.notice.workflow-guidance {
  border: 1px solid var(--blue-line);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  color: #1e3a5f;
  background: var(--blue-soft);
}

.notice.workflow-guidance strong {
  color: #1e40af;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fbfcfc;
}

.workflow-steps li > span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid #bdc8ca;
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  place-items: center;
}

.workflow-steps strong,
.workflow-steps small {
  display: block;
}

.workflow-steps strong {
  color: var(--ink);
  font-size: 11px;
}

.workflow-steps small {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.35;
}

.workflow-steps li.is-current {
  border-color: var(--blue-line);
  color: #31547a;
  background: var(--blue-soft);
}

.workflow-steps li.is-current > span {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.workflow-steps li.is-complete {
  border-color: #c9e8d6;
  color: #35644c;
  background: #f3fbf6;
}

.workflow-steps li.is-complete > span {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.workflow-steps li.is-complete > span::before {
  content: "\2713";
}

.workflow-steps li.is-complete > span {
  font-size: 0;
}

.workflow-steps li.is-complete > span::before {
  font-size: 11px;
}

.workflow-steps li.is-blocked {
  border-color: #e7bcbc;
  color: var(--red);
  background: var(--red-soft);
}

.workflow-steps li.is-blocked > span {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.change-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--blue-line);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: var(--blue-soft);
}

.change-signal.is-complete {
  border-color: #b9dfc8;
  border-left-color: var(--green);
  background: #f3fbf6;
}

.change-signal.is-blocked {
  border-color: #e7bcbc;
  border-left-color: var(--red);
  background: var(--red-soft);
}

.change-signal strong,
.change-signal small {
  display: block;
}

.workflow-message {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.workflow-message.info {
  color: #31547a;
}

.workflow-message.ok {
  color: var(--green);
}

.workflow-message.error {
  color: var(--red);
}

.change-signal strong {
  margin-top: 4px;
  font-size: 13px;
}

.change-signal small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

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

.post-list {
  display: grid;
}

.post-row {
  display: grid;
  grid-template-columns: minmax(160px, .65fr) minmax(280px, 1.75fr) auto;
  align-items: start;
  gap: 18px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

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

.post-meta strong,
.post-meta small {
  display: block;
}

.post-meta strong {
  font-size: 12px;
}

.post-meta small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.post-row p {
  margin: 0;
  color: #354448;
  font-size: 12px;
  line-height: 1.55;
}

.post-row a {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.policy-form {
  display: grid;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #f8faf9;
}

.policy-grid {
  display: grid;
  grid-template-columns: minmax(130px, .55fr) minmax(220px, 1.5fr) minmax(120px, .5fr);
  gap: 12px;
}

.proposal-preview {
  padding: 15px;
  border: 1px solid var(--blue-line);
  border-radius: 6px;
  background: var(--blue-soft);
}

.proposal-table {
  min-width: 720px;
  border: 1px solid var(--blue-line);
  background: #fff;
}

.proposal-table td:nth-child(2),
.proposal-table td:nth-child(3) {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.proof-object {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
}

.proof-object span,
.proof-object strong,
.proof-object small {
  display: block;
}

.proof-object span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.proof-object strong {
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.proof-object small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.proof-receipt {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.receipt-header h4 {
  margin: 0;
  font-size: 14px;
}

.receipt-header p {
  max-width: 720px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

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

.compact-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
}

.receipt-empty {
  padding: 18px;
  border: 1px dashed #bdc8ca;
  background: #fbfcfc;
}

.receipt-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
}

.receipt-facts > div {
  min-width: 0;
  padding: 11px 13px;
  border-right: 1px solid var(--line);
}

.receipt-facts > div:last-child {
  border-right: 0;
}

.receipt-facts span,
.receipt-facts strong {
  display: block;
  overflow-wrap: anywhere;
}

.receipt-facts span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.receipt-facts strong {
  margin-top: 4px;
  font-size: 12px;
}

.receipt-table {
  min-width: 860px;
  table-layout: fixed;
  border: 1px solid var(--line);
}

.receipt-table th:first-child,
.receipt-table td:first-child {
  width: 14%;
}

.receipt-table th:not(:first-child),
.receipt-table td:not(:first-child) {
  width: 28.666%;
}

.receipt-cell strong,
.receipt-cell span,
.receipt-cell small {
  display: block;
  overflow-wrap: anywhere;
}

.receipt-cell strong {
  font-size: 12px;
}

.receipt-cell span {
  margin-top: 4px;
  color: #354448;
  font-size: 11px;
  line-height: 1.4;
}

.receipt-cell small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.receipt-safety {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.empty-state {
  padding: 26px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #edf2f2;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 20px;
}

.login-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.login-card h1 {
  margin: 0;
  font-size: 22px;
}

.login-card > p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form .button {
  width: 100%;
  margin-top: 4px;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 12px;
}

.legal-shell,
.guide-shell {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
}

.legal-header,
.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.legal-header .app-brand,
.guide-header .app-brand {
  padding: 0;
  color: var(--ink);
}

.legal-header .app-brand span,
.guide-header .app-brand span {
  color: var(--muted);
}

.document {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.document h1 {
  margin: 0;
  font-size: 26px;
}

.document h2 {
  margin: 26px 0 8px;
  font-size: 17px;
}

.document h3 {
  margin: 20px 0 6px;
  font-size: 14px;
}

.document p,
.document li {
  color: #354448;
  font-size: 13px;
  line-height: 1.65;
}

.document ul,
.document ol {
  padding-left: 20px;
}

.document-meta {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.copy-grid {
  display: grid;
  gap: 14px;
}

.copy-block {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafcfc;
}

.copy-block h3 {
  margin: 0 0 7px;
}

.copy-block pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: #2e3b3f;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.mobile-menu {
  display: none;
}

@media (max-width: 980px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .fact-grid > div:nth-child(2) {
    border-right: 0;
  }

  .fact-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .permission-row {
    grid-template-columns: minmax(170px, 1.2fr) repeat(3, minmax(110px, 1fr));
  }

  .post-row {
    grid-template-columns: minmax(140px, .7fr) minmax(260px, 1.6fr);
  }

  .post-row a {
    grid-column: 2;
  }
}

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

  .app-sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    width: min(270px, 86vw);
    transform: translateX(-105%);
    transition: transform 160ms ease;
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: inline-flex;
    min-width: 42px;
    padding-inline: 10px;
  }

  .app-topbar {
    padding: 10px 14px;
  }

  .content {
    padding: 18px 14px 36px;
  }

  .metrics-grid,
  .proof-grid,
  .policy-grid,
  .workflow-steps,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid > div,
  .fact-grid > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-grid > div:last-child {
    border-bottom: 0;
  }

  .receipt-facts {
    grid-template-columns: 1fr;
  }

  .receipt-facts > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .receipt-facts > div:last-child {
    border-bottom: 0;
  }

  .receipt-header {
    align-items: stretch;
    flex-direction: column;
  }

  .receipt-actions {
    justify-content: space-between;
  }

  .change-signal {
    align-items: flex-start;
    flex-direction: column;
  }

  .receipt-table {
    min-width: 0;
    table-layout: auto;
  }

  .receipt-table thead {
    display: none;
  }

  .receipt-table tbody,
  .receipt-table tr {
    display: block;
  }

  .receipt-table tr {
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
  }

  .receipt-table tr:last-child {
    border-bottom: 0;
  }

  .receipt-table td,
  .receipt-table td:first-child,
  .receipt-table td:not(:first-child) {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
    width: 100%;
    padding: 7px 12px;
    border: 0;
  }

  .receipt-table td::before {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    content: attr(data-label);
  }

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

  .signal-row {
    align-items: flex-start;
  }

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

  .post-row a {
    grid-column: 1;
  }

  .topbar-title h1 {
    font-size: 18px;
  }

  .topbar-title p {
    display: none;
  }

  .topbar-actions .button.secondary:not(.mobile-menu) {
    display: none;
  }

  .section-heading,
  .legal-header,
  .guide-header {
    align-items: stretch;
    flex-direction: column;
  }

  .document {
    padding: 20px;
  }

  select {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .permission-row {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 22px;
  }

  .metric strong {
    font-size: 19px;
  }
}

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