@font-face {
  font-family: Inter;
  src: local('Inter'), local('Arial');
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #142536;
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #64bfb6;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #07867b;
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.15px;
  line-height: 1.15;
  margin-bottom: 8px;
  font-weight: 750;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.45px;
  line-height: 1.25;
  margin-bottom: 12px;
}
h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
}
small {
  display: block;
  font-size: 12px;
  color: #5d6875;
  margin-top: 3px;
}
a,
.inline-link {
  color: #007e75;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid #d8dfe4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.brand img {
  width: 156px;
  height: 47px;
  object-fit: contain;
}
.brand strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.brand small {
  font-size: 11px;
  margin-top: 0;
  color: #586674;
}
.brand-divider {
  height: 32px;
  width: 1px;
  background: #ccd5dd;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.text-link {
  color: #007e75;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  text-align: left;
}
.header-actions > .text-link {
  color: #142536;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #8796a5;
  border-radius: 5px;
  padding: 10px 18px;
  background: #fff;
  line-height: 1.2;
  font-weight: 550;
  min-height: 40px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn:hover:not(:disabled) {
  background: #f2f8f7;
  border-color: #007e75;
}
.btn.primary {
  background: #007e75;
  color: white;
  border-color: #007e75;
}
.btn.primary:hover:not(:disabled) {
  background: #00665f;
}
.header-actions .btn {
  border-color: #007e75;
  color: #007e75;
}
.role-select {
  max-width: 240px;
  font-size: 12px;
  border-color: #75a29b;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: #142536;
  flex-shrink: 0;
  border-radius: 4px;
}
.icon-btn:hover:not(:disabled) {
  background: #e7f3f1;
}
.app-frame {
  display: flex;
  min-height: calc(100vh - 178px);
}
.main-content {
  width: 100%;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 22px;
}
.page-heading p {
  color: #5d6673;
  font-size: 17px;
  margin: 0;
}
.heading-aside {
  color: #66707c;
  font-size: 16px;
  white-space: nowrap;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}
.filters {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 200px 195px 220px;
  gap: 16px;
  padding: 0 32px 26px;
  border-bottom: 1px solid #d7dfe4;
}
.search {
  border: 1px solid #8e9ba9;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 42px;
  min-width: 0;
}
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none !important;
  padding: 8px 0;
}
.search:focus-within {
  outline: 2px solid #07867b;
}
.filters select {
  width: 100%;
  min-width: 0;
}
input:not([type='checkbox']),
select,
textarea {
  background: white;
  border: 1px solid #98a5b4;
  border-radius: 5px;
  padding: 9px 11px;
  max-width: 100%;
  min-height: 39px;
}
select {
  padding-right: 24px;
}
.search input:not([type='checkbox']) {
  border: 0;
  padding-left: 0;
  min-height: 0;
}
input[type='checkbox'] {
  accent-color: #008a7f;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.workspace {
  display: grid;
  grid-template-columns: 300px minmax(330px, 1fr) 350px;
  height: calc(100vh - 330px);
  min-height: 560px;
}
.workspace.no-inspector {
  grid-template-columns: 300px minmax(330px, 1fr);
}
.tree {
  border-right: 1px solid #cfd8df;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.rail-heading h2 {
  margin: 0;
}
.tree .rail-heading {
  padding: 23px 18px 0;
}
.tree-scroll {
  overflow: auto;
  flex: 1;
  padding: 0 10px 20px;
}
.tree-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: 4px;
  margin-bottom: 1px;
}
.tree-row.active {
  background: #e1f4f0;
}
.tree-label {
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  padding: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tree-label.group {
  font-weight: 650;
}
.caret {
  padding: 0;
  width: 15px;
  height: 18px;
  min-width: 15px;
}
.tree-row > input {
  margin-top: 1px;
  width: 14px;
  height: 14px;
}
.rail-bottom {
  border-top: 1px solid #d6dee4;
  margin: 0 18px;
  padding: 15px 0;
  color: #5c6775;
  font-size: 13px;
}
.rail-bottom p {
  margin: 0;
}
.results {
  padding: 23px 22px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.results-title h2 {
  font-size: 25px;
  margin-bottom: 8px;
}
.results-title p {
  color: #5c6673;
  margin-bottom: 20px;
}
.table-scroll {
  overflow: auto;
  flex: 1;
}
table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 13px;
}
th {
  font-weight: 650;
  background: #f7f8f9;
  font-size: 12px;
  white-space: nowrap;
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #d7dfe4;
  vertical-align: middle;
}
td small {
  font-size: 11px;
  color: #5c6874;
}
tbody tr.selected {
  background: #e1f4f0;
}
tbody tr:hover {
  background: #f1f8f7;
}
.checkbox-cell {
  width: 36px;
}
.catalogue-table td:first-child,
.catalogue-table th:first-child {
  padding-left: 10px;
}
.name-button {
  font-weight: 650;
  text-align: left;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
}
.name-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.add-button {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #007e75;
  padding: 0;
  font-size: 13px;
  white-space: nowrap;
}
.results-footer {
  margin-top: auto;
  border-top: 1px solid #d5dce2;
  color: #61707c;
  padding: 15px 0;
  font-size: 12px;
}
.inspector {
  padding: 23px 22px;
  border-left: 1px solid #cfd8df;
  overflow: auto;
  min-width: 0;
}
.inspector .rail-heading {
  margin-bottom: 24px;
}
.type-tag {
  display: inline-block;
  background: #e0f4ef;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 14px;
}
.segment-heading {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 18px;
}
.inspector dl {
  margin: 0 0 22px;
}
.inspector dt {
  font-size: 12px;
  color: #5e6976;
  font-weight: 600;
  margin-top: 14px;
}
.inspector dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.inspector dt.separated {
  padding-top: 16px;
  border-top: 1px solid #d5dee5;
  margin-top: 16px;
}
.inspector > .btn {
  width: 100%;
}
.inspector-foot {
  border-top: 1px solid #d6dee4;
  font-size: 12px;
  color: #5f6d78;
  margin-top: 30px;
  padding-top: 15px;
}
.identity {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px;
  border-bottom: 1px solid #d4dce3;
  padding-bottom: 18px;
}
.identity dt {
  margin: 0 !important;
  font-weight: 400 !important;
}
.identity dd {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mono {
  font-variant-numeric: tabular-nums;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  font-size: 12px;
  font-weight: 550;
  min-width: 0;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-weight: 400;
  font-size: 13px;
}
.field textarea {
  resize: vertical;
  line-height: 1.45;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.edit-form .field {
  margin-bottom: 12px;
}
.edit-form input,
.edit-form select,
.edit-form textarea {
  font-size: 12px;
  min-height: 34px;
  padding: 7px 9px;
}
.revision-switch {
  display: flex;
  border: 1px solid #a8b4c0;
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
}
.revision-switch button {
  flex: 1;
  padding: 8px;
  font-size: 12px;
}
.revision-switch .active {
  background: #d9f1eb;
  font-weight: 650;
}
.inspector-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}
.inspector-actions .btn {
  font-size: 12px;
  padding: 10px 12px;
  flex: 1;
}
.retire {
  display: block;
  margin: 16px auto;
  text-decoration: underline;
  color: #61707c;
  font-size: 12px;
}
.danger-link {
  display: flex;
  gap: 5px;
  color: #a53939;
  font-size: 12px;
  padding: 0;
  margin: 12px 0;
}
.inspector > .text-link:last-child {
  font-size: 12px;
  margin-top: 8px;
}
.app-nav {
  width: 205px;
  flex-shrink: 0;
  border-right: 1px solid #cfd8df;
  display: flex;
  flex-direction: column;
  padding: 24px 12px 16px;
}
.app-nav nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.app-nav nav > button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  text-align: left;
  border-radius: 5px;
  font-size: 13px;
}
.app-nav nav > button span {
  flex: 1;
}
.app-nav nav > button.selected {
  background: #dff3ee;
  font-weight: 650;
}
.nav-bottom {
  margin-top: auto;
  border-top: 1px solid #d6dee5;
  padding: 18px 5px 0;
  font-size: 12px;
}
.nav-bottom > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-bottom p {
  font-size: 11px;
  color: #697480;
  margin: 8px 0 14px;
}
.internal h1 {
  font-size: 31px;
}
.internal .page-heading {
  padding: 28px 24px 20px;
  align-items: flex-start;
}
.internal .page-heading p {
  font-size: 14px;
}
.internal .filters {
  padding: 0 24px 24px;
  gap: 12px;
  grid-template-columns: minmax(170px, 1fr) 170px 150px 170px;
}
.internal .workspace {
  grid-template-columns: 235px minmax(340px, 1fr) 335px;
}
.internal .workspace.no-inspector {
  grid-template-columns: 235px minmax(340px, 1fr);
}
.internal .results {
  padding: 20px 16px 0;
}
.internal .inspector {
  padding: 20px;
}
.internal .segment-heading {
  font-size: 20px;
}
.internal .toolbar .btn {
  padding: 9px 13px;
  font-size: 13px;
}
.internal .tree-label {
  font-size: 12px;
}
.internal td,
.internal th {
  padding: 12px 9px;
}
.date-cell {
  font-size: 10px;
  color: #546374;
  min-width: 70px;
}
.status {
  display: inline-block;
  white-space: nowrap;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
  padding: 2px 7px;
  background: #e8edf1;
  color: #233a48;
}
.status.published {
  background: #d8f2eb;
  color: #095e55;
}
.status.retired {
  background: #e8ebef;
  color: #58606b;
}
.status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.revision-tag {
  font-size: 9px;
  border: 1px solid #c7d0d8;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  background: #fff;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #d7dfe5;
  margin-bottom: 12px;
}
.tabs button {
  padding: 9px 0 12px;
  font-size: 12px;
  position: relative;
  white-space: nowrap;
}
.tabs button.active {
  font-weight: 650;
}
.tabs button.active:after {
  position: absolute;
  content: '';
  bottom: -1px;
  height: 3px;
  left: 0;
  right: 0;
  background: #007e75;
  border-radius: 3px;
}
.standalone {
  padding: 32px;
  overflow-x: auto;
}
.standalone > table {
  margin: 24px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.section-header p {
  color: #67727c;
}
.demo-pill {
  font-size: 12px;
  background: #e6f4f0;
  border-radius: 4px;
  padding: 6px 10px;
}
.access-toggle {
  font-size: 12px;
  border: 1px solid #b9c3cd;
  border-radius: 20px;
  padding: 5px 13px;
  color: #68737d;
}
.access-toggle.enabled {
  background: #e0f4ee;
  border-color: #78b5a9;
  color: #00796f;
}
.login {
  max-width: 450px;
  margin: 55px auto 70px;
  padding: 0 20px;
  min-height: calc(100vh - 310px);
}
.login h1 {
  font-size: 30px;
}
.login > p {
  color: #66727c;
}
.login-mark {
  display: flex;
  width: 54px;
  height: 54px;
  background: #e0f3ee;
  align-items: center;
  justify-content: center;
  color: #007e75;
  border-radius: 14px;
  margin-bottom: 20px;
}
.login form > .btn {
  width: 100%;
}
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f2f8f7;
  padding: 15px;
  font-size: 12px;
  border-radius: 5px;
  color: #43605f;
  margin: 20px 0;
}
.demo-note svg {
  flex-shrink: 0;
}
.sample-accounts {
  margin-top: 25px;
}
.sample-accounts > span {
  color: #697480;
  font-size: 12px;
  display: block;
  margin-bottom: 10px;
}
.sample-accounts > button {
  display: grid;
  grid-template-columns: 1fr auto;
  text-align: left;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid #d5dee4;
}
.sample-accounts small {
  grid-column: 1;
}
.sample-accounts svg {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
}
.sample-accounts strong {
  font-size: 13px;
}
footer {
  border-top: 1px solid #d4dce3;
  padding: 16px 28px;
  background: white;
  font-size: 11px;
  color: #606d78;
}
footer > div {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 12px;
  margin-left: auto;
}
footer button {
  padding: 0;
  color: #007e75;
  font-size: 11px;
}
footer p {
  font-size: 10px;
  margin: 9px 0 0;
  line-height: 1.55;
}
footer p span {
  margin-left: 8px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #152c3c60;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal {
  background: white;
  border: 1px solid #ccd7dc;
  box-shadow: 0 24px 90px #142d3b33;
  border-radius: 9px;
  width: 540px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 26px 28px;
}
.modal.wide {
  width: 920px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.modal-header h2 {
  margin: 0;
  font-size: 24px;
}
.modal > p {
  font-size: 13px;
  color: #5d6a77;
}
.modal .btn {
  font-size: 13px;
}
.request-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 24px;
}
.basket-list h3 {
  padding: 12px;
  background: #e0f3ed;
}
.basket-item {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #d8e0e5;
  font-size: 12px;
}
.basket-item small {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.basket-item > div {
  min-width: 0;
}
.basket-item .text-link {
  font-size: 11px;
  align-self: flex-start;
}
.request-layout form > .btn {
  width: 100%;
}
.small {
  font-size: 11px;
  line-height: 1.55;
}
.muted {
  color: #65727d;
}
.error {
  padding: 12px;
  background: #fff0ee;
  color: #a03630;
  border-radius: 4px;
  border: 1px solid #efc9c4;
  margin: 12px 0;
  font-size: 12px;
}
.error-status {
  background: #ffebe8;
  color: #a03630;
}
.global-warning {
  padding: 12px;
  background: #fff2d7;
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #88b8ad;
  background: #e7f7f1;
  box-shadow: 0 8px 30px #18352c20;
  padding: 13px 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 120;
  max-width: 90vw;
  font-size: 13px;
}
.id-preview {
  padding: 12px;
  background: #edf7f4;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-size: 12px;
}
.id-preview strong {
  margin-left: auto;
}
.import-table {
  max-height: 330px;
  overflow: auto;
  margin: 20px 0;
}
.import-table table {
  font-size: 11px;
}
.import-table td {
  font-size: 11px;
}
.legal {
  max-width: 740px;
}
.legal h2 {
  font-size: 24px;
}
.legal h3 {
  margin-top: 26px;
  font-size: 17px;
}
.legal p {
  font-size: 13px;
  line-height: 1.7;
}
.inline-link {
  padding: 0;
  display: inline;
  text-decoration: underline;
  font-size: inherit;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 50px 20px;
  color: #5c6e78;
  gap: 8px;
}
.empty h3 {
  margin: 4px 0;
  color: #142536;
}
.empty p {
  max-width: 360px;
}
.empty svg {
  color: #078579;
}
.mobile-tree,
.mobile-only {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.padded {
  padding: 14px;
}
@media (min-width: 1700px) {
  .workspace {
    grid-template-columns: 340px minmax(500px, 1fr) 390px;
  }
  .internal .workspace {
    grid-template-columns: 260px minmax(450px, 1fr) 370px;
  }
  .internal .workspace.no-inspector {
    grid-template-columns: 260px 1fr;
  }
  body {
    font-size: 15px;
  }
  .tree-label,
  .internal .tree-label {
    font-size: 13px;
  }
  .name-button {
    font-size: 14px;
  }
  .catalogue-table td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}
@media (max-width: 1300px) {
  .workspace {
    grid-template-columns: 250px minmax(320px, 1fr) 300px;
  }
  .page-heading {
    padding: 25px 24px 20px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .filters {
    padding: 0 24px 22px;
    grid-template-columns: minmax(180px, 1fr) 170px 155px 180px;
    gap: 12px;
  }
  .heading-aside {
    display: none;
  }
  .app-nav {
    width: 175px;
  }
  .internal .workspace {
    grid-template-columns: 200px minmax(270px, 1fr) 290px;
  }
  .internal .filters {
    grid-template-columns: 1fr 140px 135px 150px;
  }
  .internal .page-heading {
    flex-wrap: wrap;
  }
  .internal .page-heading .toolbar {
    margin-left: auto;
  }
  .inspector {
    padding: 20px 16px;
  }
  .internal .inspector {
    padding: 18px 14px;
  }
  .internal .segment-heading {
    font-size: 18px;
  }
  .internal .name-button {
    font-size: 12px;
  }
  .date-cell {
    display: none;
  }
  .internal .catalogue-table th:last-child {
    display: none;
  }
  .brand img {
    width: 138px;
  }
  .brand strong {
    font-size: 15px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 240px minmax(300px, 1fr);
  }
  .workspace.no-inspector {
    grid-template-columns: 240px 1fr;
  }
  .inspector {
    display: none;
  }
  .inspector.mobile-open {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 380px;
    background: #fff;
    z-index: 60;
    box-shadow: -15px 0 50px #142d3b33;
  }
  .filters {
    grid-template-columns: 1fr 170px 170px;
  }
  .filters > select:last-child {
    grid-column: 1/-1;
  }
  .internal .workspace {
    grid-template-columns: 210px minmax(280px, 1fr);
  }
  .internal .workspace.no-inspector {
    grid-template-columns: 210px 1fr;
  }
  .internal .filters {
    grid-template-columns: 1fr 140px 150px;
  }
  .header-actions {
    gap: 12px;
  }
  .role-select {
    max-width: 190px;
  }
  .topbar {
    padding: 12px 20px;
  }
  .workspace {
    height: calc(100vh - 370px);
    min-height: 480px;
  }
  .internal .toolbar .btn {
    font-size: 12px;
  }
  .brand-divider {
    display: none;
  }
  .brand {
    gap: 12px;
  }
  .brand img {
    width: 120px;
  }
  .brand strong {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 13px;
  }
  .topbar {
    height: auto;
    min-height: 72px;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .brand img {
    width: 108px;
    height: 34px;
  }
  .brand strong {
    font-size: 13px;
  }
  .brand small {
    font-size: 10px;
  }
  .header-actions {
    margin-left: auto;
    gap: 10px;
  }
  .header-actions .text-link {
    font-size: 11px;
  }
  .header-actions .btn {
    font-size: 11px;
    min-height: 34px;
    padding: 8px 10px;
  }
  .header-actions .role-select {
    max-width: 165px;
    font-size: 10px;
    min-height: 32px;
    padding: 6px;
  }
  .app-frame {
    min-height: calc(100vh - 220px);
    flex-direction: column;
  }
  .page-heading,
  .internal .page-heading {
    padding: 25px 18px 18px;
  }
  .page-heading h1,
  .internal h1 {
    font-size: 27px;
    letter-spacing: -0.8px;
    max-width: 500px;
  }
  .page-heading p,
  .internal .page-heading p {
    font-size: 13px;
  }
  .filters,
  .internal .filters {
    padding: 0 18px 16px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .filters > .search {
    grid-column: 1/-1;
  }
  .filters > select:last-child {
    grid-column: 1/-1;
  }
  .filters select {
    font-size: 12px;
  }
  .search {
    height: 40px;
  }
  .search input {
    font-size: 12px;
  }
  .workspace,
  .internal .workspace,
  .workspace.no-inspector,
  .internal .workspace.no-inspector {
    display: block;
    height: auto;
    min-height: 430px;
  }
  .tree {
    display: none;
  }
  .tree.mobile-open {
    display: flex;
    position: fixed;
    inset: 0 35px 0 0;
    z-index: 70;
    background: white;
    box-shadow: 15px 0 50px #142d3b33;
    max-width: 370px;
  }
  .mobile-only {
    display: inline-flex;
  }
  .mobile-tree {
    display: flex;
    margin: 0 18px 14px;
    font-size: 12px;
    min-height: 35px;
    padding: 8px 13px;
  }
  .results,
  .internal .results {
    padding: 15px 18px 0;
    border-top: 1px solid #d7dfe4;
  }
  .results-title h2 {
    font-size: 21px;
  }
  .results-title p {
    font-size: 12px;
    margin-bottom: 15px;
  }
  .table-scroll {
    max-height: 580px;
  }
  .catalogue-table th,
  .catalogue-table td {
    padding: 12px 8px;
    font-size: 11px;
  }
  .name-button {
    font-size: 12px;
  }
  .catalogue-table td small {
    font-size: 10px;
  }
  .catalogue-table td:last-child span {
    display: none;
  }
  .catalogue-table td:nth-child(3) {
    font-size: 10px;
    max-width: 100px;
  }
  .catalogue-table {
    min-width: 340px;
  }
  .internal .catalogue-table {
    min-width: 380px;
  }
  .results-footer {
    font-size: 11px;
  }
  .inspector.mobile-open {
    width: min(100%, 420px);
  }
  .segment-heading {
    font-size: 22px;
  }
  .app-nav {
    width: 100%;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid #d4dce3;
  }
  .app-nav nav {
    flex-direction: row;
    overflow: auto;
    gap: 4px;
  }
  .app-nav nav > button {
    padding: 8px 10px;
    gap: 7px;
    white-space: nowrap;
    font-size: 11px;
  }
  .app-nav nav > button svg {
    width: 15px;
  }
  .nav-bottom {
    display: none;
  }
  .internal .page-heading .toolbar {
    margin-left: 0;
    width: 100%;
    gap: 8px;
  }
  .internal .toolbar .btn {
    flex: 1;
    min-height: 36px;
    padding: 8px 10px;
  }
  .tabs {
    gap: 18px;
  }
  .standalone {
    padding: 24px 18px;
  }
  .standalone table {
    min-width: 550px;
  }
  .section-header {
    flex-wrap: wrap;
  }
  .section-header h1 {
    font-size: 27px;
  }
  .demo-pill {
    font-size: 10px;
  }
  .modal-backdrop {
    padding: 10px;
    align-items: center;
  }
  .modal {
    padding: 20px;
    max-height: 95vh;
  }
  .modal-header h2 {
    font-size: 21px;
  }
  .request-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .basket-list {
    max-height: 250px;
    overflow: auto;
  }
  .request-layout form {
    border-top: 1px solid #d5dfe4;
    padding-top: 18px;
  }
  .modal .field input,
  .modal .field textarea {
    font-size: 16px;
  }
  .toast {
    bottom: 18px;
    font-size: 12px;
    width: max-content;
    max-width: 92vw;
  }
  footer {
    padding: 16px 18px;
  }
  footer > div {
    gap: 7px;
    font-size: 10px;
  }
  footer nav {
    margin-left: 0;
    width: 100%;
    margin-top: 3px;
  }
  footer p {
    font-size: 9px;
  }
  footer p span {
    margin-left: 0;
    display: block;
  }
  .login {
    margin-top: 35px;
  }
  .login h1 {
    font-size: 27px;
  }
  .field-pair {
    gap: 8px;
  }
}

/* Readability and revision controls matched to the accepted desktop references. */
@media (min-width: 1051px) {
  .public h1 {
    font-size: 42px;
  }
  .internal h1 {
    font-size: 38px;
  }
  .page-heading p {
    font-size: 18px;
  }
  .internal .page-heading p {
    font-size: 16px;
  }
  .internal .app-nav nav > button {
    font-size: 14px;
  }
  .internal .name-button {
    font-size: 14px;
  }
  .internal .catalogue-table th {
    font-size: 13px;
  }
  .internal .catalogue-table td {
    font-size: 13px;
  }
  .internal .tree-label {
    font-size: 13px;
  }
  .internal .edit-form input,
  .internal .edit-form textarea {
    font-size: 13px;
  }
  .public .tree-label,
  .public .name-button {
    font-size: 14px;
  }
  .public .inspector dd {
    font-size: 14px;
  }
  .public .inspector dt {
    font-size: 13px;
  }
  .public .segment-heading {
    font-size: 25px;
  }
}
.inspector-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
  padding: 12px 0 6px;
  box-shadow: 0 -10px 12px #ffffffed;
}
.filters select[aria-label='Category filter'] {
  text-overflow: ellipsis;
}
.internal .filters select[aria-label='Category filter'] {
  font-size: 12px;
}

/* Request review keeps selection, form and actions independently bounded. */
.selection-review {
  min-width: 0;
}
.selection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.selection-heading h3 {
  margin: 0;
}
.selection-review > .search {
  margin-bottom: 10px;
}
.bounded-selection {
  max-height: 350px;
  min-height: 170px;
  overflow: auto;
  border-top: 1px solid #d7e1e6;
}
.selection-review .basket-item {
  padding: 13px 3px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: #5f6b77;
  font-size: 11px;
  flex-shrink: 0;
}
.pagination > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pagination .btn {
  font-size: 11px;
  padding: 7px 10px;
  min-height: 30px;
}
.request-submit {
  position: sticky;
  bottom: -27px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #d7e0e5;
  margin-top: 20px;
  padding: 16px 0 0;
  box-shadow: 0 -12px 12px #ffffffee;
}
.request-submit p {
  margin: 0;
  max-width: 620px;
}
.request-contact {
  min-width: 0;
}
.request-contact .field {
  margin-bottom: 11px;
}
.request-contact h3 {
  margin-bottom: 15px;
}
.proposal-editor {
  max-height: 580px;
  overflow: auto;
  padding-right: 10px;
}
.proposal-item {
  border: 1px solid #d7e0e5;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
}
.request-success {
  max-width: 560px;
  margin: 20px auto;
  text-align: center;
  padding: 20px 0;
}
.request-success p {
  font-size: 15px;
  line-height: 1.7;
}
.success-icon {
  display: inline-flex;
  width: 65px;
  height: 65px;
  background: #dff3ee;
  color: #007e75;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.request-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #d5dfe5;
}
.request-detail-header p {
  margin-bottom: 8px;
}
.request-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  border-bottom: 1px solid #d5dfe5;
  padding: 20px 0;
  margin-bottom: 20px;
  font-size: 13px;
}
.request-overview select {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.request-overview p {
  margin: 8px 0;
}
.request-snapshot {
  border-bottom: 1px solid #d5dfe5;
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.request-snapshot summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
.request-snapshot .selection-review {
  margin-top: 12px;
}
.handoff-panel {
  padding: 20px;
  background: #f2f8f6;
  border: 1px solid #d1e8e1;
  border-radius: 5px;
  margin: 20px 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 12px 0 16px;
}
.activity-form {
  padding: 24px 0;
  margin-top: 18px;
  border-top: 1px solid #d5dfe5;
}
.activity-form .btn {
  margin-top: 8px;
}
.followups {
  padding: 20px 0;
  border-top: 1px solid #d5dfe5;
}
.followup-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid #d5dfe5;
  font-size: 13px;
}
.followup-row.overdue {
  background: #fff6e6;
  border-left: 3px solid #be7d25;
}
.followup-row .btn {
  font-size: 11px;
  padding: 8px;
  align-self: center;
}
.timeline-scroll,
.report-table {
  overflow: auto;
  max-width: 100%;
}
.event-note {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 7px 0 0;
  max-width: 420px;
}
.timeline-scroll td,
.report-table td {
  font-size: 12px;
  vertical-align: top;
  min-width: 100px;
}
.timeline-scroll td:first-child {
  min-width: 250px;
}
.requests-page > .search {
  max-width: 700px;
  margin: 20px 0;
}
.requests-page h2 {
  margin-top: 25px;
}
.tree-more {
  padding: 8px 20px;
  font-size: 11px;
}
.tree-scroll > section + section {
  border-top: 1px solid #d7e0e5;
  padding-top: 10px;
  margin-top: 10px;
}
.tree-label small {
  font-size: 10px;
  font-weight: 400;
  color: #5f6f7a;
}
.request-contact .field > span {
  font-size: 12px;
}
@media (max-width: 760px) {
  .request-submit {
    flex-direction: column;
    align-items: stretch;
    bottom: -20px;
    gap: 12px;
  }
  .request-submit > .btn {
    width: 100%;
  }
  .bounded-selection {
    max-height: 250px;
    min-height: 120px;
  }
  .pagination {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 8px;
  }
  .pagination > div {
    gap: 6px;
  }
  .request-overview {
    grid-template-columns: 1fr;
  }
  .requests-page .tabs {
    overflow: auto;
    gap: 15px;
  }
  .requests-page .tabs button {
    font-size: 12px;
  }
  .request-layout {
    margin-top: 18px;
  }
  .proposal-editor {
    max-height: 400px;
  }
  .timeline-scroll table,
  .report-table table {
    min-width: 650px;
  }
  .followup-row {
    flex-direction: column;
  }
  .followup-row .btn {
    align-self: flex-start;
  }
  .handoff-panel {
    padding: 15px;
  }
  .request-detail-header {
    flex-wrap: wrap;
  }
  .activity-form .field-pair {
    grid-template-columns: 1fr;
  }
  .results > .pagination {
    padding: 9px 0;
  }
  .results .pagination > div > span {
    display: none;
  }
}

@media (max-width: 760px) {
  .public .page-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .public .page-heading > .btn {
    align-self: flex-start;
  }
  .public .page-heading h1 {
    max-width: none;
  }
  .request-layout > .request-contact {
    padding-bottom: 12px;
  }
}

.status.new {
  background: #fae3e6;
  color: #8b2539;
}
.status.progress {
  background: #dcecff;
  color: #194b88;
}
.status.review {
  background: #fff0cd;
  color: #744b00;
}
.status.declined {
  background: #eadfe8;
  color: #673552;
}
.tree-status {
  margin-inline-start: 6px;
}
.pending-count {
  min-width: 22px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #9d283a;
  color: #fff;
  font-size: 11px;
  text-align: center;
}
