.flash-banner.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.flash-banner ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.real-app-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-title-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 218px;
}

.document-status-row,
.document-download-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.document-status-row {
  flex-wrap: wrap;
}

.document-download-row {
  flex-wrap: nowrap;
}

.document-download-row .row-action {
  flex: 0 0 auto;
  min-width: 62px;
}

.document-status-row .status-pill {
  white-space: nowrap;
}

.row-action,
a.row-action,
button.row-action,
summary.row-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 14px;
  padding-right: 14px;
  box-sizing: border-box;
}

.row-action.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

button.row-action {
  cursor: pointer;
}

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

.danger-action {
  color: #b42318;
}

.workspace-topbar,
.workspace-actions {
  flex-wrap: wrap;
}

.workspace-topbar,
.detail-topbar {
  justify-content: space-between;
}

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

.workspace-sidebar .app-menu-close {
  display: none;
}

.workspace-actions {
  justify-content: flex-end;
  margin-left: auto;
}

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

.app-page .btn,
.app-page a.btn,
.app-page button.btn,
.app-page summary.btn,
.public-actions .btn,
.public-nav .btn {
  padding-left: 14px;
  padding-right: 14px;
  box-sizing: border-box;
}

.app-page.has-global-sidebar {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.app-page.has-global-sidebar > .workspace-sidebar {
  grid-column: 1;
  grid-row: 1;
}

.app-page.has-global-sidebar > main {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.app-page.has-global-sidebar > .document-detail-page,
.app-page.has-global-sidebar > .document-form-page {
  margin-inline: 0;
}

.app-stat-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.app-stat-link:hover,
.app-stat-link:focus-visible {
  border-color: #93c5fd;
  background: #f8fbff;
  transform: translateY(-1px);
}

.settings-dashboard {
  margin-top: 18px;
}

.archive-heading .row-actions {
  justify-content: flex-end;
}

.archive-filter-panel {
  margin-bottom: 18px;
}

.archive-filter-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.archive-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-documents-table .documents-row {
  grid-template-columns: minmax(245px, 1.8fr) minmax(100px, 0.52fr) minmax(130px, 0.72fr) minmax(120px, 0.64fr) minmax(78px, 0.38fr) minmax(82px, 0.4fr) minmax(86px, 0.4fr) minmax(98px, 0.5fr);
}

.archive-document-link {
  color: #075eea;
  font-weight: 800;
  text-decoration: none;
}

.archive-document-link:hover,
.archive-document-link:focus-visible {
  color: #064fc3;
  text-decoration: underline;
}

.notification-filter-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.notification-filter-form .form-row {
  flex: 0 1 240px;
  margin: 0;
}

.notification-filter-form .btn {
  flex: 0 0 auto;
}

.company-live-filter {
  margin-top: 4px;
}

.company-live-filter::placeholder {
  color: #64748b;
}

.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.archive-page-count {
  color: #526078;
  font-size: 0.86rem;
  font-weight: 700;
}

.contract-preview-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.contract-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contract-preview-grid article {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 16px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
}

.contract-preview-grid article > .section-kicker,
.contract-preview-grid h3 {
  grid-column: 1;
  margin: 4px 0 12px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contract-preview-grid dl {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.contract-preview-grid dl div {
  display: grid;
  grid-template-columns: minmax(116px, 0.28fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  min-width: 0;
}

.contract-preview-grid dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contract-preview-grid dd {
  margin: 0;
  color: #1f2937;
  font-weight: 700;
  overflow-wrap: anywhere;
  min-width: 0;
}

.document-generate-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.document-generate-action form {
  margin: 0;
}

.generated-output-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.generated-output-card h2 {
  margin: 4px 0 12px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.3;
}

.test-acceptance-panel {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.test-acceptance-state {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #14532d;
}

.test-acceptance-state svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.test-acceptance-state strong,
.test-acceptance-state span,
.test-acceptance-state p {
  display: block;
}

.test-acceptance-state span {
  margin-top: 2px;
  color: #166534;
  font-size: 0.88rem;
}

.test-acceptance-state p {
  margin: 8px 0 0;
  color: #14532d;
}

.test-acceptance-form {
  margin-top: 14px;
}

.document-html-frame {
  width: 100%;
  height: 460px;
  margin-top: 14px;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  background: #ffffff;
}

.billing-events-table .documents-row {
  grid-template-columns: minmax(92px, 0.45fr) minmax(210px, 1fr) minmax(180px, 0.9fr) minmax(290px, 1.55fr) minmax(105px, 0.5fr) minmax(96px, 0.45fr);
}

.billing-events-table.is-client-final .documents-row {
  grid-template-columns: minmax(92px, 0.45fr) minmax(230px, 1.05fr) minmax(360px, 2fr) minmax(105px, 0.5fr) minmax(96px, 0.45fr);
}

.documents-table:has(> .empty) {
  overflow-x: visible;
}

.documents-table:has(> .empty) .documents-row.table-head {
  display: none;
}

.settings-dashboard .form-main,
.settings-dashboard .side-panel > section {
  min-height: 100%;
}

.settings-dashboard .collapse-panel,
.side-panel > .collapse-panel {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.collapse-panel.form-main {
  padding: 0;
}

.settings-dashboard .collapse-panel {
  min-height: auto;
}

.collapse-panel summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

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

.collapse-panel summary h2 {
  margin: 2px 0 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.collapse-indicator {
  width: 32px;
  height: 32px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  color: #0369a1;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.collapse-panel[open] .collapse-indicator {
  transform: rotate(45deg);
}

.collapse-content {
  padding: 0 18px 18px;
}

.soft-divider {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #e1e7f0;
}

.audit-list {
  display: grid;
  gap: 8px;
}

.audit-list article {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
}

.audit-list article:first-child {
  border-top: 0;
}

.audit-list span {
  color: #64748b;
  font-size: 0.82rem;
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.attachments span,
.attachments a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.82rem;
}

.attachments span {
  color: #64748b;
  background: #f8fafc;
}

.attachments a {
  color: #075eea;
  font-weight: 700;
}

.expense-item input[type="file"] {
  min-width: 220px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
}

.logout-form {
  margin: 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 32px 24px;
}

.auth-panel {
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.auth-panel .brand {
  margin-bottom: 24px;
}

.register-role-toggle {
  background: #eef4ff;
  border: 1px solid #c8d8f3;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 22px;
  padding: 6px;
}

.register-role-toggle a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #405074;
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 8px 10px;
  text-align: center;
  text-decoration: none;
}

.register-role-toggle a.is-active {
  background: #ffffff;
  border-color: #075eea;
  box-shadow: 0 10px 22px rgba(7, 94, 234, 0.14);
  color: #06235f;
}

.register-role-toggle span {
  font-weight: 900;
}

.register-role-toggle small {
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.document-form .check-control,
.check-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.document-form .check-control input[type="checkbox"],
.check-control input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}

.auth-switch,
.auth-links {
  margin: 18px 0 0;
  color: #526078;
  font-size: 0.9rem;
}

.auth-switch a,
.auth-links a {
  color: #075eea;
  font-weight: 700;
}

.auth-links {
  display: flex;
  gap: 12px;
}

.public-site {
  min-height: 100vh;
  background: #f8fafc;
  color: #111827;
}

.public-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid #e1e7f0;
  background: #ffffff;
}

.public-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.public-nav nav a {
  color: #334155;
  font-weight: 700;
}

.public-nav nav .public-platform-link {
  color: #075eea;
}

.public-hero,
.public-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.public-hero {
  min-height: 460px;
  display: grid;
  align-items: center;
  padding: 56px 0;
}

.public-hero h1,
.public-section h1 {
  max-width: 760px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1.08;
}

.public-hero p,
.public-article p,
.public-article article {
  max-width: 780px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
}

.public-page-body {
  color: #475569;
  line-height: 1.72;
  margin-top: 24px;
  max-width: 860px;
}

.public-page-body h2 {
  color: #0f172a;
  font-size: 1.35rem;
  letter-spacing: 0;
  margin: 28px 0 10px;
}

.public-page-body p {
  margin: 0 0 16px;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.public-section {
  padding: 28px 0;
}

.public-article {
  padding-top: 42px;
}

.public-featured-image {
  aspect-ratio: 16 / 8;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(31, 48, 92, 0.09);
  display: block;
  margin: 28px 0;
  max-width: 900px;
  object-fit: cover;
  width: 100%;
}

.static-card {
  cursor: default;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 3px 4px 3px 0;
  padding: 0 9px;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}

.compact-stats {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.request-list {
  margin-top: 16px;
}

.admin-page .workspace-content {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 24px 28px 60px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-section-nav {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.admin-section-nav strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 0.86rem;
}

.admin-section-nav a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-section-nav a:hover,
.admin-section-nav a:focus-visible,
.admin-section-nav a.is-active {
  background: #eef6ff;
  color: #075eea;
}

.admin-section-stack {
  min-width: 0;
}

.admin-page .documents-table {
  overflow-x: auto;
}

.admin-page .documents-row {
  position: relative;
}

.admin-page .documents-row span,
.admin-page .documents-row strong {
  overflow: visible;
  white-space: normal;
}

.admin-page .row-action {
  padding: 0 10px;
}

.audit-filter-form {
  gap: 12px;
}

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

.audit-filter-actions .btn {
  flex: 0 0 auto;
  min-width: max-content;
}

.audit-action-csv {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.audit-action-xlsx {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}

.platform-codes-table .documents-row,
.provider-codes-table .documents-row {
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1fr) minmax(210px, 1.05fr) minmax(130px, 0.65fr) minmax(170px, 0.85fr);
}

.platform-codes-table small,
.provider-codes-table small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.cms-list-table .documents-row {
  grid-template-columns: minmax(180px, 1.1fr) minmax(120px, 0.8fr) minmax(90px, 0.45fr) minmax(180px, 1.2fr) minmax(140px, 0.8fr) minmax(100px, 0.55fr) minmax(180px, 1fr);
}

.cms-list-table small {
  color: #64748b;
  font-weight: 500;
}

.manuals-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

.manuals-nav {
  position: sticky;
  top: 18px;
}

.manual-document {
  min-width: 0;
}

.manual-markdown {
  color: #1e293b;
  line-height: 1.65;
  max-width: 980px;
}

.manual-markdown h1,
.manual-markdown h2,
.manual-markdown h3 {
  color: #0f172a;
  line-height: 1.25;
  margin: 22px 0 10px;
}

.manual-markdown h1 {
  font-size: 1.8rem;
}

.manual-markdown h2 {
  font-size: 1.35rem;
}

.manual-markdown h3 {
  font-size: 1.1rem;
}

.manual-markdown p,
.manual-markdown ul,
.manual-markdown ol,
.manual-markdown table {
  margin: 0 0 14px;
}

.manual-markdown ul,
.manual-markdown ol {
  padding-left: 22px;
}

.manual-markdown table {
  border-collapse: collapse;
  width: 100%;
}

.manual-markdown th,
.manual-markdown td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.manual-markdown code {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1px 5px;
}

.manual-markdown pre {
  background: #0f172a;
  border-radius: 8px;
  color: #f8fafc;
  overflow-x: auto;
  padding: 14px;
}

.gendoc-front {
  background: #ffffff;
  color: #07143d;
}

.public-nav {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dbe4f0;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 9vw;
  position: sticky;
  top: 0;
  z-index: 20;
}

.public-nav nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.public-nav nav a {
  color: #07143d;
  font-weight: 700;
  text-decoration: none;
}

.public-login-link {
  border: 1px solid #cdd8ea;
  border-radius: 8px;
  padding: 11px 18px;
}

.public-register-link {
  background: #0637a7;
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(6, 55, 167, 0.22);
  color: #ffffff !important;
  padding: 12px 20px;
}

.front-hero {
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(320px, 0.78fr) minmax(560px, 1.12fr);
  overflow: hidden;
  padding: 70px 9vw 44px;
  position: relative;
}

.front-hero::before,
.front-hero::after {
  background: #edf5ff;
  border-radius: 999px;
  content: "";
  height: 300px;
  opacity: 0.9;
  position: absolute;
  width: 420px;
  z-index: -1;
}

.front-hero::before {
  left: -190px;
  top: 210px;
}

.front-hero::after {
  right: -120px;
  top: 20px;
}

.front-hero-copy h1 {
  color: #07143d;
  font-size: clamp(2.35rem, 3.8vw, 3.75rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 18px 0 22px;
  max-width: 680px;
}

.front-hero-copy p {
  color: #405074;
  font-size: 1.14rem;
  line-height: 1.65;
  max-width: 560px;
}

.front-hero .btn {
  border-radius: 8px;
  min-height: 54px;
  padding: 0 28px;
}

.play-dot {
  align-items: center;
  border: 2px solid #0a55d8;
  border-radius: 999px;
  color: transparent;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  margin-right: 8px;
  overflow: hidden;
  position: relative;
  width: 18px;
}

.play-dot::after {
  border-bottom: 4px solid transparent;
  border-left: 6px solid #0a55d8;
  border-top: 4px solid transparent;
  content: "";
  margin-left: 2px;
}

.front-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.front-feature-strip span {
  align-items: center;
  color: #405074;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 10px;
}

.front-feature-strip svg,
.front-value-grid svg,
.front-trust-band svg {
  fill: none;
  height: 28px;
  stroke: #0a55d8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 28px;
}

.front-product-shot {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(31, 48, 92, 0.16);
  display: grid;
  grid-template-columns: 190px 1fr;
  margin-top: 16px;
  min-height: 520px;
  overflow: hidden;
}

.front-product-shot aside {
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  border-right: 1px solid #e5edf8;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 14px;
}

.front-product-shot aside strong {
  align-items: center;
  color: #07143d;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.front-product-shot aside svg {
  fill: none;
  height: 22px;
  stroke: #0a55d8;
  stroke-width: 2;
  width: 22px;
}

.front-product-shot aside span {
  align-items: center;
  border-radius: 6px;
  color: #42557f;
  display: flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 8px;
  padding: 10px 12px;
}

.front-product-shot aside span svg {
  flex: 0 0 18px;
  height: 18px;
  width: 18px;
}

.front-product-shot aside span.is-active {
  background: #eaf1ff;
  color: #0637a7;
}

.front-product-shot section {
  padding: 28px 26px;
}

.front-product-shot h2 {
  margin: 4px 0 22px;
}

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

.front-doc-grid article {
  align-items: center;
  aspect-ratio: 1 / 1.03;
  border: 1px solid #dfe7f2;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.front-doc-grid svg {
  fill: none;
  height: 42px;
  margin-bottom: 18px;
  stroke: #0a55d8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 42px;
}

.front-doc-grid strong {
  color: #07143d;
  line-height: 1.35;
}

.front-doc-grid small {
  color: #516181;
  line-height: 1.45;
  margin-top: 10px;
}

.front-procedure-panel {
  border: 1px solid #dfe7f2;
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(31, 48, 92, 0.07);
  margin-top: 16px;
  padding: 18px;
}

.front-procedure-panel > div {
  align-items: center;
  display: flex;
  gap: 12px;
}

.front-procedure-panel svg {
  fill: none;
  height: 34px;
  stroke: #0a55d8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 34px;
}

.front-procedure-panel strong {
  color: #07143d;
  font-size: 1.05rem;
}

.front-procedure-panel ul {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.front-procedure-panel li {
  background: #f6f9ff;
  border: 1px solid #e5edf8;
  border-radius: 7px;
  color: #405074;
  font-size: 0.83rem;
  font-weight: 800;
  min-height: 36px;
  padding: 9px 10px;
  text-align: center;
}

.front-section {
  padding: 34px 9vw 48px;
}

.front-section > h2 {
  color: #07143d;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  letter-spacing: 0;
  margin: 0 auto 34px;
  text-align: center;
}

.front-value-grid,
.front-pricing-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.front-value-grid article,
.front-pricing-grid article {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px 1fr;
}

.front-value-grid article svg {
  background: #eaf1ff;
  border-radius: 999px;
  padding: 11px;
  box-sizing: content-box;
}

.front-value-grid strong,
.front-pricing-grid strong {
  color: #07143d;
}

.front-value-grid span,
.front-pricing-grid span {
  color: #516181;
  grid-column: 2;
  line-height: 1.5;
}

.front-provider-band {
  background: linear-gradient(120deg, #f5f7ff, #ffffff 58%, #eef6ff);
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr 360px;
  padding: 52px 9vw;
}

.front-provider-band h2 {
  color: #07143d;
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
  margin: 8px 0 16px;
}

.front-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
}

.front-steps span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  color: #405074;
  font-weight: 800;
  padding: 14px 18px;
}

.front-provider-card {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  box-shadow: 0 22px 46px rgba(31, 48, 92, 0.13);
  padding: 28px;
  text-align: center;
}

.front-provider-card p {
  color: #516181;
  line-height: 1.55;
}

.front-card-link {
  color: #0a55d8;
  display: inline-block;
  font-weight: 800;
  margin-top: 16px;
  text-decoration: none;
}

.front-pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.front-pricing-grid article {
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  display: block;
  padding: 24px;
}

.front-pricing-grid span {
  display: block;
  margin-top: 10px;
}

.front-trust-band {
  background: linear-gradient(90deg, #0637a7, #0b63dc);
  color: #ffffff;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  padding: 30px 9vw;
}

.front-trust-band article {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.front-trust-band svg {
  stroke: #ffffff;
}

.front-trust-band span {
  color: #dbeafe;
}

.public-footer {
  background: #07143d;
  color: #dbeafe;
  padding: 42px 9vw 24px;
}

.public-footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.35fr 1fr 1.1fr 1.15fr;
}

.public-footer h2 {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.public-footer-brand a {
  display: inline-block;
  position: relative;
}

.public-footer-brand img {
  display: block;
  max-width: 280px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.public-footer-brand p {
  color: #bed2f7;
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 360px;
}

.public-footer-links,
.public-footer-contact {
  display: grid;
  gap: 11px;
}

.public-footer a {
  color: #dbeafe;
  text-decoration: none;
}

.public-footer a:hover {
  color: #ffffff;
}

.public-footer-contact a,
.public-footer-contact span {
  align-items: center;
  color: #bed2f7;
  display: inline-flex;
  gap: 10px;
  line-height: 1.45;
}

.public-footer-contact svg {
  fill: none;
  flex: 0 0 18px;
  height: 18px;
  stroke: #7dd3fc;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 18px;
}

.public-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.public-footer-social a {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(219, 234, 254, 0.16);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.public-footer-social a.is-disabled {
  opacity: 0.46;
  pointer-events: none;
}

.public-footer-social svg {
  fill: currentColor;
  height: 19px;
  stroke: none;
  width: 19px;
}

.public-footer-bottom {
  border-top: 1px solid rgba(219, 234, 254, 0.16);
  color: #9db7e8;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 18px;
}

.marketing-page {
  padding: 42px 9vw 56px;
}

.marketing-hero {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  min-height: 0;
  padding: 24px 0 34px;
}

.marketing-hero h1 {
  color: #07143d;
  font-size: clamp(2.1rem, 3.5vw, 3.35rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 12px 0 16px;
  max-width: 760px;
}

.marketing-hero p {
  color: #405074;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 720px;
}

.marketing-visual {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  box-shadow: 0 22px 52px rgba(31, 48, 92, 0.12);
  display: grid;
  gap: 12px;
  padding: 22px;
}

.marketing-visual strong {
  color: #07143d;
  font-size: 1.05rem;
}

.marketing-visual div {
  align-items: center;
  background: #f6f9ff;
  border: 1px solid #e5edf8;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
}

.marketing-visual svg,
.marketing-detail-grid svg {
  fill: none;
  stroke: #0a55d8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.marketing-visual svg {
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
}

.marketing-visual span {
  color: #405074;
  font-weight: 800;
}

.marketing-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.pricing-range-band {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 8px 0 24px;
  padding: 24px;
}

.pricing-range-band h2 {
  color: #07143d;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  letter-spacing: 0;
  margin: 6px 0 0;
}

.pricing-range-band span {
  color: #405074;
  font-weight: 800;
  line-height: 1.5;
  max-width: 340px;
}

.pricing-credit-packages {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  margin: 0 0 24px;
}

.pricing-credit-copy,
.pricing-package-grid article {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(31, 48, 92, 0.08);
}

.pricing-credit-copy {
  padding: 24px;
}

.pricing-credit-copy h2 {
  color: #07143d;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  letter-spacing: 0;
  margin: 8px 0 12px;
}

.pricing-credit-copy p:last-child {
  color: #405074;
  line-height: 1.65;
  margin: 0;
}

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

.pricing-package-grid article {
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 22px;
}

.pricing-package-grid article span {
  color: #0a55d8;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-package-grid article strong {
  color: #07143d;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.pricing-package-grid article b {
  color: #07143d;
  font-size: 1rem;
}

.pricing-package-grid article small {
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
}

.marketing-detail-grid article {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  padding: 24px;
}

.marketing-detail-grid svg {
  height: 34px;
  width: 34px;
}

.marketing-detail-grid h2 {
  color: #07143d;
  font-size: 1.28rem;
  letter-spacing: 0;
  margin: 16px 0 10px;
}

.marketing-detail-grid p {
  color: #405074;
  line-height: 1.65;
  margin: 0;
}

.marketing-cta-band {
  align-items: center;
  background: linear-gradient(90deg, #0637a7, #0b63dc);
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 24px;
  padding: 26px;
}

.marketing-cta-band h2 {
  color: #ffffff;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: 0;
  margin: 6px 0 0;
}

.marketing-cta-band .app-eyebrow {
  color: #dbeafe;
}

.marketing-cta-band .btn {
  flex: 0 0 auto;
}

.demo-page {
  padding: 42px 9vw 58px;
}

.demo-hero {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  margin-bottom: 34px;
}

.demo-hero h1 {
  color: #07143d;
  font-size: clamp(2rem, 3vw, 3.15rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 12px 0 16px;
  max-width: 760px;
}

.demo-hero p {
  color: #405074;
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.demo-login-card {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(31, 48, 92, 0.1);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.demo-login-card strong {
  color: #07143d;
  font-size: 1.05rem;
}

.demo-login-card div {
  background: #f7fbff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.demo-login-card span {
  color: #405074;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-login-card code {
  color: #07143d;
  font-size: 0.95rem;
  font-weight: 900;
}

.demo-login-card small {
  color: #64748b;
  font-weight: 800;
}

.demo-login-card form {
  margin-top: 8px;
}

.demo-login-card button {
  width: 100%;
}

.demo-split {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  margin-top: 30px;
}

.demo-split-provider {
  margin-top: 42px;
}

.demo-section-copy {
  align-self: start;
  position: sticky;
  top: 96px;
}

.demo-section-copy h2 {
  color: #07143d;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  letter-spacing: 0;
  line-height: 1.14;
  margin: 10px 0 12px;
}

.demo-section-copy p:last-child {
  color: #405074;
  line-height: 1.65;
  margin: 0;
}

.demo-app-frame {
  background: #ffffff;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(31, 48, 92, 0.12);
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
}

.demo-sidebar {
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  border-right: 1px solid #dfe7f2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
}

.demo-sidebar strong,
.demo-sidebar span {
  align-items: center;
  color: #405074;
  display: flex;
  gap: 9px;
  min-height: 36px;
}

.demo-sidebar strong {
  color: #07143d;
  font-weight: 900;
  margin-bottom: 8px;
}

.demo-sidebar span {
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 10px;
}

.demo-sidebar span.is-active {
  background: #e8f1ff;
  color: #0637a7;
}

.demo-sidebar svg {
  fill: none;
  flex: 0 0 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 18px;
}

.demo-workspace {
  background: #fbfdff;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.demo-topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e5edf8;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 66px;
  padding: 14px 18px;
}

.demo-topbar > span {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #e5edf8;
  border-radius: 8px;
  color: #64748b;
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
}

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

.demo-topbar b,
.demo-topbar strong {
  border-radius: 8px;
  color: #405074;
  font-size: 0.8rem;
  padding: 9px 10px;
}

.demo-topbar strong {
  background: #0637a7;
  color: #ffffff;
}

.demo-topbar svg {
  fill: none;
  height: 17px;
  stroke: #0a55d8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 17px;
}

.demo-content {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.demo-heading h3 {
  color: #07143d;
  font-size: 1.55rem;
  letter-spacing: 0;
  margin: 4px 0 6px;
}

.demo-heading span {
  color: #64748b;
  display: block;
  line-height: 1.5;
}

.demo-stat-grid,
.demo-panel-grid {
  display: grid;
  gap: 14px;
}

.demo-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-stat-grid article,
.demo-panel-grid article {
  background: #ffffff;
  border: 1px solid #e0e7f2;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(31, 48, 92, 0.06);
  padding: 16px;
}

.demo-stat-grid article {
  display: grid;
  gap: 6px;
  min-height: 118px;
}

.demo-stat-grid span,
.demo-panel-grid span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-stat-grid strong {
  color: #07143d;
  font-size: 1.2rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.demo-stat-grid small {
  color: #64748b;
  font-weight: 800;
  line-height: 1.35;
}

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

.demo-panel-grid article div {
  border-bottom: 1px solid #eef2f8;
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.demo-panel-grid strong {
  color: #07143d;
  font-size: 1rem;
}

.demo-panel-grid p {
  color: #405074;
  font-weight: 800;
  line-height: 1.45;
  margin: 8px 0 0;
}

.resource-page,
.public-manual-page {
  padding: 42px 9vw 56px;
}

.resource-hero {
  max-width: 760px;
}

.resource-hero.compact {
  margin-bottom: 28px;
}

.resource-hero h1 {
  color: #07143d;
  font-size: clamp(2rem, 3.1vw, 3.05rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 12px 0 16px;
}

.resource-hero p {
  color: #405074;
  font-size: 1.1rem;
  line-height: 1.65;
}

.resource-card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0 50px;
}

.resource-manual-card {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(31, 48, 92, 0.1);
  color: #07143d;
  display: block;
  min-height: 230px;
  padding: 28px;
  text-decoration: none;
}

.resource-manual-card svg {
  fill: none;
  height: 38px;
  stroke: #0a55d8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 38px;
}

.resource-manual-card span {
  color: #0a55d8;
  display: block;
  font-weight: 800;
  margin-top: 18px;
}

.resource-manual-card h2 {
  margin: 8px 0 10px;
}

.resource-manual-card p {
  color: #516181;
  line-height: 1.55;
}

.resource-faq-section {
  max-width: 980px;
}

.resource-faq-list {
  display: grid;
  gap: 12px;
}

.resource-faq-item {
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 18px;
}

.resource-faq-item summary {
  color: #07143d;
  cursor: pointer;
  font-weight: 800;
  padding: 18px 0;
}

.resource-faq-item p {
  color: #405074;
  line-height: 1.6;
  margin: 0 0 18px;
}

.public-manual-layout {
  align-items: flex-start;
  display: grid;
  gap: 28px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.public-manual-nav {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 16px;
  position: sticky;
  top: 94px;
}

.public-manual-nav strong {
  color: #07143d;
  margin-bottom: 8px;
}

.public-manual-nav a {
  border-radius: 7px;
  color: #405074;
  font-weight: 700;
  padding: 9px 10px;
  text-decoration: none;
}

.public-manual-nav a:hover {
  background: #eaf1ff;
  color: #0637a7;
}

.public-manual-content {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  min-width: 0;
  padding: 28px;
}

.public-manual-content section + section {
  border-top: 1px solid #e5edf8;
  margin-top: 28px;
  padding-top: 20px;
}

.cms-status-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.cms-status-card {
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  padding: 16px;
}

.cms-status-card span {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 10px;
  padding: 4px 9px;
}

.cms-status-card.is-ok span {
  background: #dcfce7;
  color: #166534;
}

.cms-status-card.is-missing span {
  background: #fee2e2;
  color: #991b1b;
}

.cms-status-card h3 {
  margin: 0 0 8px;
}

.cms-status-card p,
.cms-status-card small {
  color: #516181;
}

.cms-settings-stack {
  display: grid;
  gap: 16px;
}

.cms-setting-group-card,
.cms-editor-card,
.cms-publish-card {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.cms-setting-group-card {
  padding: 18px;
}

.cms-setting-group-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cms-setting-group-card h3 {
  margin: 2px 0 4px;
}

.cms-setting-group-card p,
.cms-publish-meta,
.cms-permalink-preview {
  color: #64748b;
  font-size: 0.86rem;
}

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

.cms-setting-card {
  border: 1px solid #e6edf7;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.cms-editor-page .workspace-content {
  width: min(1480px, 100%);
}

.cms-editor-heading {
  align-items: flex-start;
}

.cms-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.cms-editor-main,
.cms-publish-sidebar,
.cms-block-stack {
  display: grid;
  gap: 16px;
}

.cms-publish-sidebar {
  position: sticky;
  top: 88px;
}

.cms-editor-card,
.cms-publish-card {
  padding: 18px;
}

.cms-editor-card label,
.cms-publish-card label,
.cms-setting-card label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
}

.cms-editor-card input,
.cms-editor-card select,
.cms-editor-card textarea,
.cms-publish-card input,
.cms-publish-card select,
.cms-publish-card textarea,
.cms-setting-card input,
.cms-setting-card select,
.cms-setting-card textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cms-title-field input {
  min-height: 54px;
  font-size: 1.45rem;
  font-weight: 800;
}

.cms-content-editor {
  min-height: 420px;
  font-size: 1rem;
  line-height: 1.65;
}

.cms-writing-card .panel-heading,
.cms-editor-card .compact-heading {
  margin: 0 0 12px;
}

.cms-editor-card details {
  border-top: 1px solid #e7edf6;
  padding-top: 12px;
}

.cms-editor-card details:first-child,
.cms-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.cms-editor-card summary,
.cms-block summary {
  cursor: pointer;
  font-weight: 800;
  color: #0f172a;
}

.cms-block {
  border-top: 1px solid #e7edf6;
  padding-top: 14px;
}

.cms-block-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.cms-repeat-grid {
  display: grid;
  gap: 10px;
}

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

.cms-repeat-grid.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-repeat-grid.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cms-repeat-grid.five-cols {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cms-inline-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e6edf7;
  border-radius: 8px;
  background: #f8fafc;
}

.cms-publish-card {
  display: grid;
  gap: 12px;
}

.cms-publish-card .btn {
  justify-content: center;
  width: 100%;
}

.cms-publish-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #e7edf6;
  border-bottom: 1px solid #e7edf6;
}

.compact-audit article {
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1fr);
}

.faq-list-table .documents-row {
  grid-template-columns: minmax(260px, 1.3fr) minmax(110px, 0.4fr) minmax(90px, 0.3fr) minmax(180px, 0.7fr);
}

.faq-list-table small {
  color: #64748b;
  display: block;
  font-weight: 500;
  margin-top: 5px;
}

.compact-heading {
  margin-top: 18px;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-status-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
}

.admin-status-icon.status-ok {
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.admin-status-icon.status-warning {
  width: 26px;
  height: 23px;
  background: #facc15;
  color: #713f12;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  padding-top: 6px;
}

.admin-status-icon.status-fail {
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
}

.admin-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-status-chip.is-ok {
  background: #dcfce7;
  color: #166534;
}

.admin-status-chip.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.admin-status-chip.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.settings-group-list {
  display: grid;
  gap: 10px;
}

.admin-drawer {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
}

.admin-drawer > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  cursor: pointer;
  color: #0f172a;
  font-weight: 800;
  list-style: none;
}

.admin-drawer > summary::-webkit-details-marker,
.row-drawer > summary::-webkit-details-marker {
  display: none;
}

.admin-drawer > summary small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-drawer[open] > summary {
  border-bottom: 1px solid #e1e7f0;
  background: #f8fafc;
}

.admin-drawer > .drawer-panel,
.admin-drawer > form.drawer-panel {
  margin: 0;
  padding: 14px;
}

.row-drawer {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.row-drawer > summary {
  cursor: pointer;
  list-style: none;
}

.row-drawer > .drawer-panel,
.row-drawer > form.drawer-panel {
  position: fixed;
  right: 28px;
  top: 96px;
  z-index: 30;
  width: min(620px, calc(100vw - 56px));
  max-height: calc(100vh - 124px);
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.row-drawer[open] > summary {
  background: #eef6ff;
  color: #075eea;
}

.catalog-list-table .documents-row {
  grid-template-columns: minmax(150px, 0.9fr) minmax(190px, 1.25fr) minmax(100px, 0.55fr) minmax(90px, 0.55fr) minmax(120px, 0.65fr);
}

.catalog-list-table .catalog-group-row {
  background: #f7fbff;
  border-color: #cfe0f5;
  color: #0f2d5c;
  font-weight: 700;
}

.catalog-list-table .catalog-operation-row {
  background: #fbfdff;
}

.catalog-category-label {
  align-items: center;
  display: flex;
  gap: 10px;
}

.catalog-category-icon {
  align-items: center;
  background: #eef6ff;
  border-radius: 8px;
  color: #0a55d8;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.catalog-category-icon svg {
  height: 21px;
  width: 21px;
}

.integration-list-table .documents-row {
  grid-template-columns: minmax(150px, 0.9fr) minmax(170px, 1.1fr) minmax(120px, 0.75fr) minmax(100px, 0.55fr) minmax(90px, 0.55fr) minmax(120px, 0.65fr);
}

.template-list-table .documents-row {
  min-width: 0;
  grid-template-columns: minmax(180px, 1.2fr) minmax(170px, 1fr) minmax(130px, 0.7fr) minmax(96px, 0.45fr);
  align-items: start;
}

.template-list-table {
  display: grid;
  gap: 10px;
  overflow-x: visible;
}

.template-list-table .documents-row:not(.table-head) {
  padding: 14px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.template-list-table .documents-row.table-head {
  padding: 0 14px 2px;
  border-top: 0;
}

.template-actions-row {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

.integration-list-table .documents-row {
  grid-template-columns: minmax(150px, 0.8fr) minmax(130px, 0.7fr) minmax(180px, 1fr) minmax(130px, 0.7fr);
}

.billing-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.billing-action-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
}

.billing-action-card strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.billing-action-card span {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.billing-action-card form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.billing-action-card label {
  display: grid;
  gap: 4px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 750;
}

.billing-action-card input,
.billing-action-card select {
  min-height: 34px;
  max-width: 125px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
}

.billing-action-card .row-action,
.template-actions-row .row-action {
  min-height: 32px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 0.8rem;
}

.btn-danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #ffffff;
}

.company-heading {
  align-items: flex-start;
}

.company-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.company-add-drawer > summary.btn {
  min-height: 40px;
  list-style: none;
}

.company-add-drawer > summary.btn::-webkit-details-marker {
  display: none;
}

.company-list-table .documents-row,
.invitations-list-table .documents-row {
  grid-template-columns: minmax(220px, 1.3fr) minmax(120px, 0.7fr) minmax(150px, 0.8fr) minmax(90px, 0.5fr) minmax(110px, 0.6fr) minmax(100px, 0.55fr);
}

.company-list-table .documents-row strong,
.invitations-list-table .documents-row strong {
  display: grid;
  gap: 3px;
  overflow: visible;
  white-space: normal;
}

.company-list-table .documents-row small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.company-empty-row {
  color: #64748b;
}

.drawer-title {
  margin-bottom: 14px;
}

.drawer-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-title-row .icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.drawer-title-row .icon-button span {
  font-size: 1.25rem;
  line-height: 1;
}

.drawer-title h2 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.25;
}

.company-drawer-panel {
  display: grid;
  gap: 14px;
}

.company-muted-box,
.company-inner-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
}

.company-muted-box strong {
  color: #334155;
  font-size: 0.86rem;
}

.company-prefill-control {
  display: grid;
  align-content: end;
  gap: 6px;
}

.company-prefill-control .btn {
  width: 100%;
}

.company-prefill-status {
  min-height: 18px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.company-prefill-status.is-loading {
  color: #075985;
}

.company-prefill-status.is-success {
  color: #166534;
}

.company-prefill-status.is-error {
  color: #b91c1c;
}

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

.company-section-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
}

.company-section-head span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.company-mini-list {
  display: grid;
  gap: 8px;
}

.company-mini-row,
.company-inline-drawer {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
}

.company-mini-row {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.company-mini-row span {
  color: #64748b;
  font-size: 0.82rem;
}

.company-inline-drawer > summary {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
}

.company-inline-drawer > summary::-webkit-details-marker {
  display: none;
}

.company-inline-drawer > summary span {
  color: #64748b;
  font-size: 0.82rem;
}

.company-inline-drawer > summary em {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  color: #3730a3;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.company-inline-drawer[open] > summary {
  border-bottom: 1px solid #e1e7f0;
  background: #eef6ff;
}

.company-inline-drawer > form,
.company-inline-drawer > .document-form {
  margin: 0;
  padding: 12px;
}

.company-inline-actions {
  display: flex;
  justify-content: flex-end;
}

.company-drawer-actions {
  position: sticky;
  bottom: -14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px -14px -14px;
  padding: 12px 14px;
  border-top: 1px solid #e1e7f0;
  background: #ffffff;
}

.company-drawer-actions form {
  margin: 0;
}

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

.dashboard-zone {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

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

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

.dashboard-survey-strip {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-survey-card,
.dashboard-survey-admin {
  margin-top: 0;
}

.dashboard-request-form {
  margin-bottom: 14px;
}

.inline-checks,
.survey-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-checks label,
.survey-options label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.survey-admin-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.survey-admin-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.survey-admin-list span {
  color: #64748b;
  font-size: 0.82rem;
}

.dashboard-card {
  cursor: grab;
}

.dashboard-card:active {
  cursor: grabbing;
}

.dashboard-card.is-dragging {
  opacity: 0.55;
  outline: 2px dashed #38bdf8;
  outline-offset: 3px;
}

.dashboard-panel {
  min-width: 0;
  margin-top: 0;
}

.dashboard-inner-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.compact-documents-table .documents-row {
  min-width: 0;
  grid-template-columns: minmax(140px, 1.2fr) minmax(110px, 0.8fr) 74px minmax(86px, 0.6fr);
}

.compact-documents-table .documents-row strong {
  display: grid;
  gap: 3px;
  white-space: normal;
}

.compact-documents-table .documents-row small {
  color: #64748b;
  font-size: 0.76rem;
}

.document-new-panel {
  margin-top: 0;
}

.compact-document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-document-grid .document-type-card {
  min-height: 148px;
}

.compact-document-grid .document-type-card p {
  line-height: 1.48;
}

.document-category-icon {
  background: #eef6ff;
  color: #0a55d8;
}

.document-category-icon svg,
.catalog-category-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.document-category-icon svg {
  height: 28px;
  width: 28px;
}

.document-card-description {
  max-width: 34ch;
}

.company-selector-panel .panel-heading {
  align-items: flex-end;
}

.company-list-search {
  width: min(340px, 100%);
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
}

.company-list-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 600;
}

.company-selector-list {
  max-height: 392px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.company-selector-row {
  min-width: 920px;
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) minmax(135px, 0.9fr) 82px 110px 110px 92px minmax(150px, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #eef2f7;
}

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

.company-selector-row.table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 42px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.company-selector-row.table-head > span {
  color: #64748b;
  font-size: 0.72rem;
}

.column-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  text-transform: inherit;
}

.column-sort::after {
  content: "↕";
  color: #94a3b8;
  font-size: 0.72rem;
}

.column-sort.is-active {
  color: #075eea;
}

.column-sort.is-active::after {
  content: "↑";
  color: #075eea;
}

.column-sort.is-active[data-sort-direction="desc"]::after {
  content: "↓";
}

.column-sort:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  border-radius: 5px;
}

.company-selector-row.table-filters {
  position: sticky;
  top: 42px;
  z-index: 1;
  background: #ffffff;
  border-top-color: #dbe3ef;
}

.company-selector-row.table-filters label {
  display: grid;
  gap: 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.company-selector-row.table-filters label span {
  color: #64748b;
  font-size: 0.68rem;
}

.company-selector-row.table-filters input,
.company-selector-row.table-filters select {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: none;
}

.company-selector-row:not(.table-head):not(.table-filters):hover,
.company-selector-row.is-active {
  background: #eff6ff;
}

.company-selector-row.is-active {
  box-shadow: inset 3px 0 0 #0ea5e9;
}

.company-selector-row strong,
.company-selector-row span {
  min-width: 0;
}

.company-selector-row strong {
  display: grid;
  gap: 2px;
  color: #0f172a;
  font-size: 0.88rem;
}

.company-selector-row strong a {
  color: #075eea;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-selector-row strong a:hover,
.company-selector-row strong a:focus-visible {
  text-decoration: underline;
}

.company-selector-row small,
.company-selector-row span {
  color: #64748b;
  font-size: 0.82rem;
}

.company-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.company-activate-mini {
  margin: 0;
}

.compact-status {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-style: normal;
  white-space: nowrap;
}

.company-activation-box {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.company-activation-box > div {
  display: grid;
  gap: 4px;
}

.company-activation-box span {
  color: #475569;
}

.company-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.company-profile-main,
.company-profile-side {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.company-profile-card {
  min-width: 0;
  margin-top: 0;
}

.company-access-card {
  align-self: start;
}

.company-invitation-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.company-invitation-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.company-invitation-item div {
  display: grid;
  gap: 3px;
}

.company-invitation-item span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.company-invitation-item strong {
  min-width: 0;
  color: #0f172a;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.company-invitation-actions {
  margin: 2px 0 0;
}

.company-summary-list {
  display: grid;
  gap: 10px;
}

.company-summary-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

.company-summary-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.company-summary-list span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 750;
}

.company-summary-list strong {
  min-width: 0;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.equity-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 850;
}

.equity-badge.is-ok {
  background: #dcfce7;
  color: #166534;
}

.equity-badge.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.company-warning {
  margin: -6px 0 12px;
  color: #92400e;
  font-weight: 750;
}

.check-control {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.check-control input {
  width: auto;
  min-height: auto;
}

.contract-form-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #ffffff;
}

.contract-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contract-section-head > span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
}

.contract-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.25;
}

.contract-section-head p {
  margin: 4px 0 0;
  color: #526078;
  line-height: 1.45;
}

.contract-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.contract-summary-grid article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
}

.contract-summary-grid span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contract-summary-grid strong {
  min-width: 0;
  color: #0f172a;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.contract-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.conditional-panel,
.contract-subform {
  display: grid;
  gap: 12px;
}

.contract-subform {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.form-helper {
  margin: 0;
  color: #526078;
  font-size: 0.86rem;
  line-height: 1.45;
}

.conditional-panel[hidden],
.contract-subform[hidden] {
  display: none !important;
}

.template-completion-section {
  grid-column: 1 / -1;
}

.person-completion-grid {
  display: grid;
  gap: 14px;
}

.person-picker-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
}

.person-picker-head {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  align-items: end;
}

.person-picker-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.person-picker-head p,
.person-picker-hint {
  margin: 4px 0 0;
  color: #526078;
  line-height: 1.45;
}

.person-selector-control {
  min-width: 0;
}

.person-picker-hint[data-state="selected"] {
  color: #166534;
}

.person-picker-hint[data-state="new"] {
  color: #075985;
}

.repeater-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.repeater-table textarea {
  width: 100%;
  min-width: 260px;
  resize: vertical;
}

.owner-extra-card {
  background: #fff;
}

.contract-party-builder {
  background: #fff;
}

.contract-party-roles {
  display: grid;
  gap: 14px;
}

.contract-party-role {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
}

.contract-party-role-head,
.contract-party-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contract-party-role-head h4 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
}

.contract-party-role-head p {
  margin: 3px 0 0;
  color: #526078;
  line-height: 1.4;
}

.contract-party-rows {
  display: grid;
  gap: 10px;
}

.contract-party-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.contract-party-row .full-span {
  grid-column: 1 / -1;
}

.contract-party-person-select[hidden],
.contract-party-row [data-party-kind][hidden] {
  display: none;
}

.contract-party-prefill {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.contract-party-prefill[hidden] {
  display: none;
}

.contract-party-prefill small {
  color: #334155;
  line-height: 1.4;
}

.contract-party-prefill small.is-loading {
  color: #075985;
}

.contract-party-prefill small.is-success {
  color: #166534;
}

.contract-party-prefill small.is-error {
  color: #991b1b;
}

.extra-owner-rows {
  display: grid;
  gap: 10px;
}

.extra-owner-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

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

.is-locked-from-person input,
.is-locked-from-person textarea,
input.is-locked-from-person,
textarea.is-locked-from-person {
  background: #eef4ff;
  border-color: #bfdbfe;
  color: #334155;
}

.document-form label.has-missing-required,
.document-form label:has(.is-missing-required) {
  color: #991b1b;
}

.document-form .is-missing-required {
  border-color: #dc2626;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.document-form .is-missing-required:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
}

.admin-anchor {
  scroll-margin-top: 88px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.admin-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
}

.admin-card h3 {
  margin: 0;
  color: #0f172a;
}

.admin-card p {
  margin: 0;
  color: #526078;
}

.inline-admin-form {
  display: grid;
  gap: 8px;
}

.provider-list-table {
  display: grid;
  gap: 8px;
}

.provider-list-head,
.provider-list-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(86px, 0.46fr) minmax(90px, 0.48fr) minmax(82px, 0.4fr) minmax(148px, 0.86fr);
  gap: 8px;
  align-items: center;
}

.provider-list-head {
  padding: 0 14px 4px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.provider-list-item,
.provider-list-empty {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
}

.provider-list-item {
  display: grid;
  gap: 10px;
}

.provider-main-cell,
.provider-code-cell {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.provider-main-cell strong,
.provider-code-cell strong {
  min-width: 0;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.provider-main-cell small,
.provider-code-cell small,
.provider-list-description {
  color: #64748b;
}

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

.provider-actions form {
  margin: 0;
}

.provider-state-note {
  color: #166534;
  font-size: 0.82rem;
  font-weight: 800;
}

.provider-list-description {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  font-size: 0.84rem;
  line-height: 1.45;
}

.provider-list-description span {
  min-width: min(260px, 100%);
}

.provider-list-description strong {
  color: #334155;
}

.admin-subtitle {
  margin: 18px 0 10px;
  color: #334155;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.admin-inline-note {
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-settings-grid small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.4;
}

.admin-select-field select {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 36px 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #526078 50%) right 16px center / 6px 6px no-repeat,
    linear-gradient(135deg, #526078 50%, transparent 50%) right 12px center / 6px 6px no-repeat,
    #ffffff;
  color: #0f172a;
  font-weight: 800;
  appearance: none;
}

.admin-select-field select:focus {
  border-color: #075eea;
  box-shadow: 0 0 0 3px rgba(7, 94, 234, 0.14);
  outline: none;
}

.admin-form-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.admin-form-actions [data-close-details] {
  order: 0;
  margin-right: auto;
}

.admin-form-actions button[type="submit"],
.admin-form-actions input[type="submit"] {
  order: 2;
  margin-left: auto;
}

.admin-toggle-field {
  align-content: start;
}

.admin-toggle-field > span:first-child {
  color: #334155;
  font-size: 0.84rem;
  font-weight: 650;
}

.admin-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.admin-toggle-control {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 132px;
  min-height: 38px;
  margin-top: 6px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.admin-toggle-label {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: max-content;
  text-align: center;
  line-height: 1;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.admin-toggle-label.off {
  color: #dc2626;
}

.admin-toggle-label.on {
  color: #ffffff;
  opacity: 0.55;
}

.admin-toggle-knob {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 3px;
  width: 66px;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}

.admin-toggle-input:checked + .admin-toggle-control {
  border-color: #86efac;
  background: #16a34a;
}

.admin-toggle-input:checked + .admin-toggle-control .admin-toggle-knob {
  transform: translateX(60px);
}

.admin-toggle-input:checked + .admin-toggle-control .admin-toggle-label.off {
  color: #ffffff;
  opacity: 0.55;
}

.admin-toggle-input:checked + .admin-toggle-control .admin-toggle-label.on {
  color: #16a34a;
  opacity: 1;
}

.admin-toggle-input:focus-visible + .admin-toggle-control {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.document-modify-panel {
  margin-top: 18px;
}

.repeater-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #ffffff;
}

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

.repeater-card-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.repeater-card-head small,
.repeater-table th small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-weight: 500;
}

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

.repeater-table {
  min-width: 920px;
}

.repeater-table input {
  min-width: 150px;
}

.expense-capture-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #f8fafc;
}

.expense-capture-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.expense-capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expense-extraction-status {
  font-size: 0.9rem;
}

.expense-extraction-status[data-state="waiting"] {
  color: #8a5c00;
}

.expense-extraction-status[data-state="done"] {
  color: #167447;
}

.expense-extraction-status[data-state="error"] {
  color: #b42318;
}

.replacement-row {
  align-items: end;
}

.replacement-row .btn {
  min-height: 44px;
}

.procurement-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.procurement-item-row,
.procurement-supplier-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.4fr) minmax(86px, 0.45fr) minmax(80px, 0.4fr) minmax(130px, 0.65fr) minmax(120px, 0.6fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
}

.procurement-supplier-row {
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 0.6fr) minmax(180px, 0.9fr) minmax(150px, 0.75fr) minmax(220px, 1fr) auto;
}

.procurement-item-row + .procurement-item-row,
.procurement-supplier-row + .procurement-supplier-row {
  margin-top: 10px;
}

.procurement-final-action {
  margin-top: 14px;
}

.procurement-table .inline-admin-form {
  grid-template-columns: minmax(170px, 1fr) minmax(132px, 0.7fr) minmax(90px, 0.5fr) auto;
  align-items: center;
}

.codex-addon {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 80;
  font-family: inherit;
}

.codex-addon + .recommendation-addon {
  bottom: 92px;
}

.codex-addon-toggle {
  display: grid;
  gap: 1px;
  min-width: 92px;
  min-height: 54px;
  padding: 9px 16px;
  border: 1px solid #1f6feb;
  border-radius: 8px;
  background: #0f6cbd;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  text-align: left;
}

.codex-addon-toggle.recommendation-addon-toggle {
  min-width: 132px;
  border-color: #0f766e;
  background: #0f766e;
}

.codex-addon-toggle span {
  font-weight: 800;
}

.codex-addon-toggle small {
  color: rgba(255, 255, 255, 0.78);
}

.codex-addon-drawer {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: grid;
  grid-template-rows: auto auto minmax(120px, 1fr) auto;
  width: min(390px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 92px));
  overflow: hidden;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.codex-addon.is-open .codex-addon-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.codex-addon-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.codex-addon-head strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
}

.codex-addon-head span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.35;
}

.codex-addon-close {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.codex-addon-status {
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
  color: #475569;
  font-size: 0.84rem;
}

.codex-addon-status[data-state="waiting"] {
  color: #8a5c00;
}

.codex-addon-status[data-state="error"] {
  color: #b42318;
}

.codex-addon-status[data-state="ready"] {
  color: #166534;
}

.codex-addon-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px 14px;
  overflow-y: auto;
  background: #f8fafc;
}

.codex-addon-empty {
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  text-align: center;
}

.codex-addon-item {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid #dbe4ef;
  border-left-width: 4px;
  border-radius: 8px;
  background: #ffffff;
}

.codex-addon-item.is-new {
  border-left-color: #2563eb;
}

.codex-addon-item.is-accepted,
.codex-addon-item.is-progress {
  border-left-color: #b7791f;
}

.codex-addon-item.is-done {
  border-left-color: #15803d;
}

.codex-addon-item.is-blocked {
  border-left-color: #b42318;
}

.recommendation-addon .codex-addon-item.is-new {
  border-left-color: #0f766e;
}

.codex-addon-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.codex-addon-item-head strong {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.35;
}

.codex-addon-item-head span {
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
}

.codex-addon-item p {
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.45;
}

.codex-addon-item footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 0.78rem;
}

.codex-addon-item footer a {
  color: #0f6cbd;
  font-weight: 700;
  text-decoration: none;
}

.codex-addon-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.codex-addon-form label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.codex-addon-form select,
.codex-addon-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.codex-addon-form select {
  min-height: 40px;
  padding: 0 10px;
}

.codex-addon-form textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

.codex-admin-table .documents-row {
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(180px, 1fr) minmax(120px, 0.55fr);
}

.codex-admin-drawer p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .public-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-hero {
    min-height: 360px;
  }

  .procurement-item-row,
  .procurement-supplier-row,
  .procurement-table .inline-admin-form {
    grid-template-columns: 1fr;
  }

  .contract-preview-grid {
    grid-template-columns: 1fr;
  }

  .contract-preview-grid article {
    grid-template-columns: 1fr;
  }

  .contract-preview-grid dl {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .contract-preview-grid dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .archive-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-heading .row-actions,
  .archive-filter-actions {
    justify-content: flex-start;
  }

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

  .notification-filter-form {
    align-items: stretch;
  }

  .notification-filter-form .form-row,
  .notification-filter-form .btn {
    flex-basis: 100%;
  }

  .audit-filter-actions .btn {
    flex: 1 1 150px;
  }

  .manuals-workspace {
    grid-template-columns: 1fr;
  }

  .manuals-nav {
    position: static;
  }

  .public-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 22px;
    position: static;
  }

  .public-nav nav {
    gap: 10px;
  }

  .public-nav nav a {
    font-size: 0.9rem;
  }

  .front-hero,
  .front-provider-band,
  .marketing-hero,
  .demo-hero,
  .demo-split,
  .demo-app-frame,
  .public-manual-layout {
    grid-template-columns: 1fr;
  }

  .front-hero {
    padding: 44px 22px 30px;
  }

  .front-product-shot {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .front-product-shot aside {
    border-right: 0;
    display: none;
  }

  .front-doc-grid,
  .front-procedure-panel ul,
  .front-value-grid,
  .front-pricing-grid,
  .front-steps,
  .front-trust-band,
  .public-footer-grid,
  .marketing-detail-grid,
  .demo-stat-grid,
  .demo-panel-grid,
  .pricing-credit-packages,
  .pricing-package-grid,
  .resource-card-grid,
  .cms-status-grid,
  .cms-setting-card-grid,
  .cms-repeat-grid.two-cols,
  .cms-repeat-grid.three-cols,
  .cms-repeat-grid.five-cols {
    grid-template-columns: 1fr;
  }

  .front-section,
  .front-provider-band,
  .front-trust-band,
  .public-footer,
  .marketing-page,
  .demo-page,
  .resource-page,
  .public-manual-page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .public-footer-bottom {
    flex-direction: column;
  }

  .marketing-cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-section-copy {
    position: static;
  }

  .demo-sidebar {
    display: none;
  }

  .demo-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-topbar nav {
    flex-wrap: wrap;
  }

  .pricing-range-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-manual-nav {
    max-height: none;
    position: static;
  }

  .dashboard-zone-three,
  .dashboard-zone-two,
  .compact-document-grid,
  .company-profile-grid,
  .dashboard-inner-stats {
    grid-template-columns: 1fr;
  }

  .company-selector-panel .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .person-picker-head {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .contract-party-role-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .contract-party-role-head .btn {
    width: 100%;
  }

  .company-selector-list {
    max-height: 340px;
  }

  .company-summary-list div,
  .company-inline-drawer > summary {
    grid-template-columns: 1fr;
  }

  .provider-list-head {
    display: none;
  }

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

  .provider-actions {
    justify-content: flex-start;
  }

  .admin-page .workspace-content {
    padding: 20px 14px 34px;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-section-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .admin-section-nav strong {
    display: none;
  }

  .admin-section-nav a {
    white-space: nowrap;
  }

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

  .cms-publish-sidebar {
    position: static;
  }

  .cms-editor-heading {
    display: grid;
    gap: 12px;
  }

  .cms-editor-page .form-row,
  .cms-repeat-grid.two-cols,
  .cms-repeat-grid.three-cols,
  .cms-repeat-grid.four-cols,
  .cms-repeat-grid.five-cols {
    grid-template-columns: 1fr;
  }

  .cms-title-field input {
    font-size: 1.1rem;
  }

  .cms-content-editor {
    min-height: 300px;
  }

  .row-drawer > .drawer-panel,
  .row-drawer > form.drawer-panel {
    right: 14px;
    top: 72px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 92px);
  }

  .codex-addon {
    right: 14px;
    bottom: 14px;
  }

  .codex-addon + .recommendation-addon {
    bottom: 86px;
  }

  .codex-addon-drawer {
    bottom: 64px;
  }

  .codex-admin-table .documents-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .cms-editor-shell {
    grid-template-columns: 1fr;
  }

  .cms-publish-sidebar {
    position: static;
  }

  .cms-setting-card-grid,
  .cms-repeat-grid.four-cols,
  .cms-repeat-grid.five-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .front-hero {
    gap: 34px;
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .front-product-shot {
    margin-top: 0;
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .workspace-topbar .workspace-actions,
  .detail-topbar .workspace-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-topbar .workspace-actions .btn,
  .workspace-topbar .logout-form,
  .workspace-topbar .logout-form .btn,
  .detail-topbar .workspace-actions .btn,
  .detail-topbar .logout-form,
  .detail-topbar .logout-form .btn {
    width: 100%;
  }
}

@media (max-width: 1080px) {
  .app-page.has-global-sidebar {
    display: block;
  }

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

  .demo-hero,
  .demo-split {
    grid-template-columns: 1fr;
  }

  .demo-section-copy {
    position: static;
  }

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

  .dashboard-zone-three,
  .compact-document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-sidebar .app-menu-close {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #262626;
    color: #ffffff;
  }

  .workspace-sidebar .app-menu-close span {
    font-size: 1.45rem;
    line-height: 1;
  }

  .workspace-sidebar .app-menu-close:hover,
  .workspace-sidebar .app-menu-close:focus-visible {
    background: #404040;
  }
}

@media (max-width: 760px) {
  .dashboard-zone-three,
  .dashboard-zone-two,
  .compact-document-grid,
  .company-profile-grid,
  .dashboard-inner-stats,
  .demo-stat-grid,
  .demo-panel-grid {
    grid-template-columns: 1fr;
  }
}
