:root {
  --surface: #ffffff;
  --surface-low: #f8f6f4;
  --surface-card: #ffffff;
  --primary: #c9163b;
  --primary-light: #e13b5b;
  --ink: #211817;
  --muted: #6f5f62;
  --outline: #efd2d8;
  --danger: #bb1520;
}

body.modal-open {
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
}

.booking-shell {
  min-height: 100vh;
}

.side {
  background: rgba(247, 243, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(239, 210, 216, 0.55);
  position: sticky;
  top: 0;
  z-index: 50;
}

.booking-topbar {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 280px minmax(0, 1fr);
  padding: 16px 24px 0;
}

.topbar-cancel {
  align-items: center;
  border: 1px solid rgba(59, 42, 34, 0.24);
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 9px 12px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-cancel:hover,
.topbar-cancel:focus {
  background: rgba(123, 42, 42, 0.08);
  outline: 0;
}

.brand {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 750;
  margin-bottom: 4px;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand-logo {
  background: transparent;
  border-radius: 0;
  display: block;
  flex: 0 0 auto;
  height: 52px;
  object-fit: contain;
  width: 52px;
}

.brand-name {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.1;
}

.brand-legal {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin-top: 2px;
  text-transform: uppercase;
}

.page-title {
  margin-top: 18px;
}

.kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.steps {
  align-items: stretch;
  display: flex;
  gap: 10px;
  margin-top: 0;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.steps::-webkit-scrollbar {
  display: none;
}

.progress-meter {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 650;
  gap: 8px;
  grid-column: 2;
  letter-spacing: 0.08em;
  padding: 0 0 12px;
  text-transform: uppercase;
}

.progress-track {
  background: rgba(239, 210, 216, 0.65);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  background: var(--primary);
  border-radius: inherit;
  height: 100%;
  transition: width 180ms ease;
  width: 16.66%;
}

.step {
  border: 0;
  background: var(--surface-card);
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 1px 0 rgba(239, 210, 216, 0.45);
  flex: 0 0 auto;
  min-width: 132px;
  padding: 11px 14px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.step.active {
  color: var(--primary);
  background: #fff;
  border-bottom-color: var(--primary-light);
  box-shadow: 0 8px 18px rgba(49, 48, 46, 0.06);
}

.step.done {
  color: #2f7c40;
  background: #f0f8ef;
  border-bottom-color: #3c8f4e;
}

.main {
  padding: 36px;
}

.hero {
  max-width: 1120px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

h1,
h2,
h3 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 44px;
}

.sub {
  color: var(--muted);
  margin-top: 8px;
}

.unit-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  min-width: 280px;
}

.unit-card .label {
  opacity: 0.8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.unit-card .value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

.form-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
}

.alert {
  max-width: 1120px;
  margin: 0 auto 22px;
  background: #fff5f4;
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  color: var(--ink);
  padding: 18px 20px;
}

.alert ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.message-stack {
  margin-bottom: 18px;
}

.alert-success {
  background: #f0f8ef;
  border-left-color: #3c8f4e;
}

.alert-warning {
  background: #fff8e8;
  border-left-color: #c18a21;
}

.auth-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 28px;
}

.auth-card {
  background: var(--surface-card);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(49, 48, 46, 0.08);
  max-width: 440px;
  padding: 30px;
  width: 100%;
}

.auth-brand {
  margin-bottom: 26px;
}

.auth-card h1 {
  font-size: 34px;
  margin: 4px 0 10px;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.auth-form.secondary-action {
  margin-top: 12px;
}

.panel {
  background: var(--surface-card);
  border: 1px solid rgba(239, 210, 216, 0.48);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(49, 48, 46, 0.035);
}

.panel + .panel {
  margin-top: 22px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.panel h2 {
  margin: 0 0 22px;
  color: var(--primary);
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  margin-bottom: 14px;
}

.metric-card {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.74);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(49, 48, 46, 0.035);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 58px;
  padding: 9px 10px;
}

.metric-card > div {
  min-width: 0;
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--primary);
  display: block;
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
  margin-top: 4px;
}

.metric-icon {
  align-items: center;
  background: #f7f4f2;
  border-radius: 7px;
  color: #c9163b;
  display: inline-flex !important;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.metric-icon svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 16px;
}

.metric-card-review .metric-icon {
  background: #eef6fb;
  color: #12608f;
}

.metric-card-link .metric-icon,
.metric-card-follow .metric-icon {
  background: #f9f1e6;
  color: #8c5a0f;
}

.metric-card-approved .metric-icon {
  background: #edf7f1;
  color: #227449;
}

.metric-card-return .metric-icon {
  background: #f8eee8;
  color: #b81235;
}

.metric-card-rejected .metric-icon {
  background: #f8ecec;
  color: #b4232a;
}

.form-section {
  border-top: 1px solid rgba(239, 210, 216, 0.7);
  padding-top: 22px;
}

.form-section + .form-section {
  margin-top: 24px;
}

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

.section-heading h3 {
  color: var(--primary);
  font-size: 20px;
  margin: 0;
}

.section-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

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

.field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(239, 210, 216, 0.75);
  background: var(--surface-low);
  color: var(--ink);
  font: inherit;
  padding: 12px;
  outline: 0;
}

input:focus,
select:focus,
textarea:focus {
  background: #fff;
  border-bottom-color: var(--primary);
}

input[type="file"] {
  cursor: pointer;
  font-size: 13px;
}

.upload-status {
  color: #2f7c40;
  font-size: 12px;
  font-weight: 700;
  margin: 8px 0 0;
}

.document-upload-row {
  display: block;
}

.booking-upload-preview-card {
  align-items: center;
  background: var(--surface-low);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 8px;
  min-height: 62px;
  padding: 10px;
}

.booking-upload-preview-card[hidden] {
  display: none;
}

.booking-upload-preview-copy {
  min-width: 0;
}

.booking-upload-preview-card span,
.booking-upload-preview-card small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-upload-preview-card strong {
  display: block;
  font-size: 13px;
  margin: 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-upload-preview-thumb {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.75);
  border-radius: 7px;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 42px;
}

.booking-upload-preview-thumb:hover,
.booking-upload-preview-thumb:focus-visible {
  border-color: var(--primary);
  outline: 0;
}

.booking-upload-preview-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.booking-upload-preview-icon {
  align-items: center;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  width: 100%;
}

.document-preview-modal[hidden] {
  display: none;
}

.document-preview-modal {
  inset: 0;
  position: fixed;
  z-index: 1000;
}

.document-preview-backdrop {
  background: rgba(20, 13, 15, 0.64);
  inset: 0;
  position: absolute;
}

.document-preview-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 10px;
  left: 50%;
  max-height: calc(100vh - 32px);
  max-width: 860px;
  padding: 16px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 32px), 860px);
}

.transfer-cpp-modal[hidden] {
  display: none;
}

.transfer-cpp-modal {
  inset: 0;
  position: fixed;
  z-index: 1100;
}

.transfer-cpp-backdrop {
  background: rgba(20, 13, 15, 0.68);
  inset: 0;
  position: absolute;
}

.transfer-cpp-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 14px;
  left: 50%;
  max-height: calc(100vh - 28px);
  max-width: 1180px;
  overflow: auto;
  padding: 18px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 28px), 1180px);
}

.transfer-cpp-header {
  align-items: center;
  border-bottom: 1px solid rgba(239, 210, 216, 0.75);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.transfer-cpp-header span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.transfer-cpp-header h2 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  margin: 2px 0 0;
}

.transfer-pending-card {
  border-top: 1px solid rgba(239, 210, 216, 0.65);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
}

.transfer-cpp-form {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.transfer-cpp-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.transfer-cpp-summary .summary-row {
  align-items: start;
  display: grid;
  gap: 4px;
}

.transfer-cpp-actions {
  align-items: center;
  border-top: 1px solid rgba(239, 210, 216, 0.75);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
}

.transfer-cpp-actions .hint {
  margin: 0;
}

.cpp-live-summary {
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.8);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 14px;
  padding: 12px;
}

.cpp-live-summary div {
  display: grid;
  gap: 4px;
}

.cpp-live-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cpp-live-summary strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.document-preview-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.document-preview-header h2 {
  color: var(--ink);
  font-size: 18px;
  margin: 0;
}

.document-preview-close {
  align-items: center;
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.95);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 36px;
}

.document-preview-filename {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
}

.document-preview-content {
  align-items: center;
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.75);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}

.document-preview-content img,
.document-preview-content iframe {
  background: #fff;
  border: 0;
  display: block;
  height: min(70vh, 620px);
  object-fit: contain;
  width: 100%;
}

.prefill-field {
  position: relative;
}

.phone-input-row {
  align-items: flex-start;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

.fields > .phone-field {
  grid-column: 1 / -1;
}

.primary-phone-field {
  grid-column: 1 / -1;
}

.phone-country-select {
  flex: 0 0 168px;
  min-width: 0;
}

.phone-number-field {
  flex: 0 1 260px;
  min-width: 220px;
}

.phone-input-row > input,
.phone-input-row > select,
.phone-number-field input {
  width: 100%;
  min-width: 0;
}

.prefill-field input {
  padding-right: 94px;
}

.phone-number-field.prefill-field input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  padding-right: 14px;
  text-overflow: clip;
}

.phone-number-field.prefill-field span {
  display: none;
}

.prefill-field span {
  background: #f0f8ef;
  border-radius: 999px;
  color: #2f7c40;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  position: absolute;
  pointer-events: none;
  right: 8px;
  text-transform: uppercase;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0 0;
}

.field-error {
  color: var(--danger);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 6px;
  min-height: 1em;
}

.field-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.toggle-card {
  align-items: flex-start;
  background: var(--surface-low);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  text-transform: none;
}

.toggle-card input {
  margin-top: 3px;
  width: auto;
}

.toggle-card strong,
.toggle-card small {
  display: block;
}

.toggle-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 3px;
  text-transform: none;
}

.co-applicant {
  display: none;
  margin-top: 24px;
  border-top: 1px solid rgba(239, 210, 216, 0.7);
  padding-top: 22px;
}

.co-applicant.active {
  display: block;
}

.co-applicant h3 {
  color: var(--primary);
  font-size: 20px;
  margin: 0 0 18px;
}

.cpp-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.cpp-hero div {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  color: #fff;
  padding: 18px;
}

.cpp-hero span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.82;
  text-transform: uppercase;
}

.cpp-hero strong {
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 900;
  margin-top: 7px;
}

.cpp-breakdown {
  background: var(--surface-low);
  border-radius: 8px;
  margin-bottom: 26px;
  padding: 8px 18px;
}

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

.table-wrap,
.review-table-wrap,
.role-access-wrap {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.cpp-table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.cpp-table th,
.cpp-table td {
  border-bottom: 1px solid rgba(239, 210, 216, 0.35);
  font-size: 13px;
  line-height: 1.28;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.cpp-table th {
  background: var(--surface-low);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding-bottom: 7px;
  padding-top: 7px;
  text-transform: uppercase;
}

.cpp-document {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.cpp-document-header {
  align-items: center;
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
}

.cpp-document-header > div:first-child {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.cpp-document-header > div:last-child {
  text-align: right;
}

.cpp-document-header span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.9;
  text-transform: uppercase;
}

.cpp-document-header strong {
  display: block;
  font-size: 15px;
  margin-top: 2px;
}

.cpp-document-body {
  padding: 16px;
}

.cpp-detail-grid {
  border: 1px solid #ddd;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.25fr);
  margin-bottom: 16px;
}

.cpp-cell,
.cpp-charge-cell {
  border-bottom: 1px solid #ddd;
  min-width: 0;
}

.cpp-cell {
  border-right: 1px solid #ddd;
  padding: 8px 12px;
}

.cpp-cell span,
.cpp-bank-box span {
  color: #666;
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cpp-cell strong,
.cpp-bank-box strong {
  color: var(--ink);
  display: block;
  font-size: 12.5px;
  margin-top: 2px;
}

.cpp-split-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.cpp-split-cell > div {
  padding: 8px 12px;
}

.cpp-split-cell > div:first-child {
  border-right: 1px solid #ddd;
}

.cpp-charge-cell {
  grid-row: span 6;
}

.cpp-mini-table,
.cpp-compact-table {
  border-collapse: collapse;
  width: 100%;
}

.cpp-mini-table th,
.cpp-mini-table td {
  border-bottom: 1px solid #eee;
  font-size: 11px;
  padding: 5px 10px;
}

.cpp-mini-table th {
  color: #666;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
  width: 58%;
}

.cpp-mini-table td {
  font-weight: 700;
  text-align: right;
}

.cpp-mini-total {
  background: #fff8e1;
}

.cpp-mini-final {
  background: var(--primary);
  color: #fff;
}

.cpp-mini-final th,
.cpp-mini-final td {
  color: #fff;
  font-size: 12px;
}

.cpp-section-title {
  background: #f5f5f5;
  border: 1px solid #ddd;
  font-size: 12px;
  font-weight: 800;
  margin-top: 14px;
  padding: 7px 10px;
  text-align: center;
  text-transform: uppercase;
}

.cpp-form-editor {
  background: #fffaf6;
  border: 1px solid rgba(182, 91, 48, 0.22);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 16px;
}

.cpp-form-editor .fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.cpp-form-editor input,
.cpp-schedule-table input {
  background: #fff;
  border: 1px solid rgba(54, 54, 54, 0.24);
  border-radius: 5px;
  min-height: 28px;
  padding: 3px 7px;
  width: 100%;
}

.native-date-picker {
  background: #fff;
  border: 1px solid rgba(54, 54, 54, 0.24);
  border-radius: 5px;
  color: transparent;
  cursor: pointer;
  display: inline-block;
  height: 38px;
  margin-left: 6px;
  padding: 0 4px;
  vertical-align: top;
  width: 42px;
}

.native-date-picker::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
}

.native-date-picker:hover {
  border-color: rgba(201, 22, 59, 0.42);
}

.native-date-picker:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.1);
  outline: 0;
}

input[data-date-display] {
  max-width: calc(100% - 54px);
}

.cpp-form-editor input:hover,
.cpp-schedule-table input:hover {
  border-color: rgba(201, 22, 59, 0.42);
}

.cpp-form-editor input:focus,
.cpp-schedule-table input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.1);
  outline: 0;
}

.booking-shell .cpp-schedule-table input {
  border-radius: 4px;
  font-size: 11px;
  min-height: 26px;
  padding: 3px 7px;
}

.booking-shell .cpp-schedule-table select {
  border: 1px solid rgba(148, 163, 184, 0.75);
  border-radius: 4px;
  color: var(--ink);
  font-size: 11px;
  min-height: 26px;
  padding: 3px 6px;
  width: 100%;
}

.booking-shell .cpp-schedule-table input[readonly] {
  background: #f8fafc;
  color: var(--muted);
}

.cpp-schedule-table input[name="milestone_percent"] {
  min-width: 72px;
  text-align: right;
}

.cpp-schedule-table input[name="milestone_amount"] {
  text-align: right;
}

.cpp-schedule-table input[type="number"] {
  -moz-appearance: textfield;
}

.cpp-schedule-table input[type="number"]::-webkit-inner-spin-button,
.cpp-schedule-table input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.milestone-table-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.milestone-table-actions .hint {
  margin: 0;
}

.milestone-total-status {
  border: 1px solid rgba(201, 22, 59, 0.28);
  border-radius: 4px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

.milestone-total-status.is-valid {
  border-color: rgba(32, 122, 66, 0.32);
  color: #207a42;
}

.milestone-add-btn {
  font-size: 11px;
  letter-spacing: 0.08em;
  min-height: 32px;
  padding: 5px 13px;
  text-transform: uppercase;
}

.milestone-remove-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #777;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.milestone-remove-btn:hover,
.milestone-remove-btn:focus-visible {
  background: #fff5f6;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.1);
  color: var(--primary);
  outline: 0;
}

.milestone-remove-btn svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 15px;
}

.milestone-locked-tag {
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #868e96;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cpp-schedule-table {
  border: 1px solid #ddd;
  min-width: 920px;
  table-layout: fixed;
  width: 100%;
}

.booking-shell .milestone-table-wrap {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.cpp-schedule-table th,
.cpp-schedule-table td {
  border-bottom: 1px solid #eee;
  font-size: 10.5px;
  line-height: 1.18;
  padding: 4px 6px;
}

.booking-shell .table-wrap .cpp-schedule-table th,
.booking-shell .table-wrap .cpp-schedule-table td {
  font-size: 10.5px;
  padding: 4px 6px;
}

.cpp-schedule-table th {
  background: #f8f8f8;
  color: #666;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cpp-schedule-table th:nth-child(1),
.cpp-schedule-table td:nth-child(1) {
  color: #666;
  font-weight: 700;
  text-align: center;
  width: 32px;
}

.cpp-schedule-table th:nth-child(2),
.cpp-schedule-table td:nth-child(2) {
  color: #666;
  font-weight: 700;
  width: 34%;
}

.cpp-schedule-table th:nth-child(3),
.cpp-schedule-table td:nth-child(3) {
  text-align: left;
  width: 86px;
}

.cpp-schedule-table th:nth-child(4),
.cpp-schedule-table td:nth-child(4) {
  text-align: right;
  width: 54px;
}

.cpp-schedule-table th:nth-child(5),
.cpp-schedule-table td:nth-child(5) {
  text-align: right;
  width: 118px;
}

.cpp-schedule-table th:nth-child(6),
.cpp-schedule-table td:nth-child(6) {
  text-align: right;
  width: 48px;
}

.cpp-schedule-table th:nth-child(7),
.cpp-schedule-table td:nth-child(7) {
  text-align: right;
  width: 94px;
}

.cpp-schedule-table th:nth-child(8),
.cpp-schedule-table td:nth-child(8) {
  text-align: right;
  width: 118px;
}

.cpp-schedule-table th:nth-child(9),
.cpp-schedule-table td:nth-child(9) {
  text-align: center;
  width: 48px;
}

.cpp-schedule-table tfoot tr {
  background: #8f1025;
  color: #fff;
  font-weight: 800;
}

.cpp-compact-table tfoot tr {
  background: #222;
  color: #fff;
  font-weight: 800;
}

.cpp-schedule-table tfoot td,
.cpp-compact-table tfoot td {
  color: #fff;
}

.cpp-schedule-table tfoot td strong {
  color: #fff;
}

.cpp-compact-table {
  border: 1px solid #ddd;
  min-width: 620px;
}

.cpp-compact-table td:first-child {
  text-align: center;
  width: 52px;
}

.cpp-compact-table td:last-child,
.cpp-compact-table th:last-child {
  text-align: right;
}

.cpp-subtotal-row {
  background: #f0f0f0;
  font-weight: 800;
}

.cpp-grand-total {
  align-items: center;
  background: var(--primary);
  border-radius: 0 0 8px 8px;
  color: #fff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 16px;
}

.cpp-grand-total span {
  font-size: 12px;
  font-weight: 800;
}

.cpp-grand-total strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  white-space: nowrap;
}

.cpp-bank-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 16px;
  overflow: hidden;
}

.cpp-bank-box h3 {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
  margin: 0;
  padding: 8px 12px;
}

.cpp-bank-box > div {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px;
}

.signature-upload-fallback {
  margin-top: 12px;
}

.signature-upload-fallback label {
  display: block;
  margin-bottom: 5px;
}

.staff-upload-form,
.cpp-edit-form,
.cpp-milestone-editor {
  border-top: 1px solid rgba(239, 210, 216, 0.65);
  margin-top: 18px;
  padding-top: 16px;
}

.staff-upload-form h3,
.cpp-edit-form h3,
.cpp-milestone-editor h3 {
  color: var(--primary);
  font-size: 15px;
  margin: 0 0 10px;
}

.cpp-edit-rows {
  display: grid;
  gap: 10px;
}

.cpp-edit-form .discount-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px;
}

.payment-option-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.payment-option-card {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.payment-option-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.08);
}

.payment-option-card span {
  color: var(--ink);
  font-weight: 800;
}

.payment-option-card small {
  color: var(--muted);
  font-size: 11px;
}

.payment-detail-fields {
  margin-top: 8px;
}

.summary {
  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(239, 210, 216, 0.25);
  font-size: 14px;
}

.summary-row strong {
  text-align: right;
}

.checks {
  display: grid;
  gap: 12px;
}

.check-row {
  align-items: flex-start;
  background: var(--surface-low);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.check input {
  flex: 0 0 auto;
  margin-top: 2px;
  width: auto;
}

.signature-pad-card,
.terms-scroll-panel {
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.6);
  border-radius: 8px;
  margin-top: 18px;
  padding: 16px;
}

.signature-pad-card h3 {
  color: var(--ink);
  font-size: 16px;
  margin: 0;
}

.signature-pad-card .hint {
  margin-top: 6px;
}

.signature-pad-wrap {
  background: #fff;
  border: 2px solid rgba(201, 22, 59, 0.34);
  border-radius: 6px;
  height: 180px;
  margin-top: 14px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}

.signature-pad {
  background: transparent;
  border-radius: 6px;
  cursor: crosshair;
  display: block;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  touch-action: none;
  width: 100%;
}

.signature-ink {
  height: 100%;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.signature-ink path,
.signature-ink circle {
  fill: none;
  stroke: #000;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.signature-ink circle {
  fill: #000;
  stroke: none;
}

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

.terms-scroll-panel {
  color: var(--ink);
  line-height: 1.55;
  max-height: 220px;
  overflow-y: auto;
}

.terms-scroll-panel p {
  margin-top: 0;
}

.terms-scroll-panel li + li {
  margin-top: 10px;
}

.terms-accept-row {
  margin-top: 18px;
}

.terms-scroll-hint {
  margin-top: 8px;
}

.terms-scroll-hint.ready {
  color: #2f7c40;
  font-weight: 800;
}

.actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  padding: 13px 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:hover,
.btn:focus {
  box-shadow: 0 8px 18px rgba(201, 22, 59, 0.18);
  outline: 0;
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.45;
}

.btn-secondary {
  background: var(--surface-low);
  color: var(--primary);
}

.btn-logout {
  border: 1px solid rgba(187, 21, 32, 0.2);
  color: var(--danger);
}

.sticky-submit {
  position: sticky;
  top: 24px;
}

.notice {
  max-width: 680px;
  margin: 80px auto;
  background: #fff;
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 8px 24px rgba(49, 48, 46, 0.05);
}

.auth-notice {
  max-width: 520px;
}

.reset-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.login-interface {
  align-items: center;
  background: #c9163b;
  color: #201717;
  display: flex;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  justify-content: center;
  min-height: 100vh;
  padding: 28px;
}

.login-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(73, 12, 27, 0.34);
  max-width: 452px;
  padding: 52px 50px 48px;
  width: min(100%, 452px);
}

.login-brand {
  margin-bottom: 34px;
  text-align: center;
}

.login-brand h1 {
  color: #1f1513;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.login-brand p {
  color: #8b8584;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 10px 0 0;
  text-transform: uppercase;
}

.login-interface .message-stack,
.login-interface .alert {
  max-width: none;
}

.login-interface .message-stack {
  margin: -12px 0 22px;
}

.login-interface .alert {
  border-left-color: #c9163b;
  border-radius: 10px;
  font-size: 13px;
  margin: 0 0 22px;
  padding: 12px 14px;
}

.login-interface .alert ul {
  margin: 0;
  padding-left: 18px;
}

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

.login-field label {
  color: #3a3030;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  margin-bottom: 8px;
}

.login-field input {
  background: #fff;
  border: 1px solid #cfc8c6;
  border-radius: 9px;
  color: #211817;
  font-size: 16px;
  height: 52px;
  padding: 0 17px;
}

.login-field input::placeholder {
  color: #8f8a89;
}

.login-field input:focus {
  border-color: #c9163b;
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.12);
}

.login-submit {
  align-items: center;
  background: #c9163b;
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  height: 56px;
  justify-content: center;
  margin-top: 8px;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.login-submit:hover,
.login-submit:focus {
  background: #b81235;
  box-shadow: 0 10px 22px rgba(201, 22, 59, 0.26);
  outline: 0;
  transform: translateY(-1px);
}

.site-home {
  background: #fff;
  color: var(--ink);
}

.site-home-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(239, 210, 216, 0.72);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 5vw, 68px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.site-home-brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.site-home-brand img {
  display: block;
  height: 46px;
  object-fit: contain;
  width: 46px;
}

.site-home-brand strong,
.site-home-brand small {
  display: block;
  line-height: 1.1;
}

.site-home-brand strong {
  font-size: 18px;
  font-weight: 900;
}

.site-home-brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-top: 3px;
  text-transform: uppercase;
}

.site-home-nav nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.site-home-nav nav a {
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-home-nav nav a:hover,
.site-home-nav nav a:focus {
  background: var(--surface-low);
  color: var(--primary);
  outline: 0;
}

.site-home-nav .site-home-login {
  background: var(--primary);
  color: #fff;
}

.site-home-nav .site-home-login:hover,
.site-home-nav .site-home-login:focus {
  background: #b81235;
  color: #fff;
}

.site-hero {
  align-items: center;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 48%, rgba(201, 22, 59, 0.12) 100%),
    url("../img/omsree-logo-official.png") right clamp(22px, 7vw, 92px) center / min(38vw, 420px) no-repeat;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  min-height: calc(100vh - 75px);
  padding: clamp(46px, 7vw, 92px) clamp(18px, 5vw, 68px);
}

.site-hero-copy {
  max-width: 760px;
}

.site-kicker {
  color: var(--primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.site-hero h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  margin: 0;
  max-width: 780px;
}

.site-hero p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.6;
  margin: 22px 0 0;
  max-width: 660px;
}

.site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.site-primary-link,
.site-secondary-link {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-primary-link {
  background: var(--primary);
  color: #fff;
}

.site-secondary-link {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.95);
  color: var(--primary);
}

.site-hero-panel {
  background: var(--primary);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(201, 22, 59, 0.22);
  color: #fff;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.site-hero-panel div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 24px;
}

.site-hero-panel div:last-child {
  border-bottom: 0;
}

.site-hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.site-hero-panel strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.28;
}

.site-section,
.site-process {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 68px);
}

.site-section {
  background: #fff;
}

.site-section-head {
  max-width: 720px;
}

.site-section h2,
.site-process h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  margin: 0;
}

.site-feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.site-feature-grid article {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(49, 48, 46, 0.05);
  padding: 24px;
}

.site-feature-grid h3 {
  color: var(--primary);
  font-size: 18px;
  margin: 0 0 10px;
}

.site-feature-grid p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  margin: 0;
}

.site-process {
  background: var(--surface-low);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
}

.site-process ol {
  counter-reset: process;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-process li {
  align-items: start;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.95);
  border-radius: 8px;
  counter-increment: process;
  display: grid;
  gap: 4px 14px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 18px;
}

.site-process li::before {
  align-items: center;
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  content: counter(process);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.site-process li strong,
.site-process li span {
  grid-column: 2;
}

.site-process li strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.site-process li span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.site-home-footer {
  align-items: center;
  background: var(--primary);
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding: 22px clamp(18px, 5vw, 68px);
  text-transform: uppercase;
}

.site-home-footer a {
  color: #fff;
  text-decoration: none;
}

.review-page {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: none;
  padding: 24px 24px 64px;
  width: 100%;
}

.review-page h1,
.review-page h2,
.review-page h3 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.review-header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  padding-top: 11px;
}

.main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-end;
}

.main-nav-shell {
  margin-right: 28px;
  position: relative;
}

.header-icon-actions {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.main-nav-toggle {
  display: none;
}

.main-nav-shell summary,
.main-nav-group summary {
  list-style: none;
}

.main-nav-shell summary::-webkit-details-marker,
.main-nav-group summary::-webkit-details-marker {
  display: none;
}

.main-nav-group {
  position: relative;
}

.main-nav-link,
.main-nav-group-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  gap: 7px;
  min-height: 30px;
  padding: 0 0 7px;
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease;
}

.main-nav-link svg,
.main-nav-group-trigger svg {
  fill: none;
  flex: 0 0 auto;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 16px;
}

.settings-trigger {
  gap: 6px;
}

.settings-trigger svg {
  height: 15px;
  width: 15px;
}

.settings-trigger .settings-label {
  display: inline;
  font-size: 15px;
  line-height: 1;
  position: static;
  white-space: nowrap;
}

.main-nav-link:hover,
.main-nav-link:focus,
.main-nav-link.active,
.main-nav-group[open] > .main-nav-group-trigger {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.settings-trigger:hover,
.settings-trigger:focus,
.settings-trigger.active,
.main-nav-group[open] > .settings-trigger {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.main-nav-link.active {
  box-shadow: none;
}

.main-nav-dropdown {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(49, 48, 46, 0.14);
  display: none;
  gap: 2px;
  min-width: 190px;
  padding: 7px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
}

.main-nav-group[open] .main-nav-dropdown {
  display: grid;
}

.main-nav-dropdown a {
  border-radius: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
  padding: 9px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav-dropdown a:hover,
.main-nav-dropdown a:focus,
.main-nav-dropdown a.active {
  background: var(--surface-low);
}

.user-menu {
  margin-left: 0;
  position: relative;
}

.notification-menu {
  position: relative;
}

.notification-menu summary {
  list-style: none;
}

.notification-menu summary::-webkit-details-marker {
  display: none;
}

.notification-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  position: relative;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  width: 44px;
}

.notification-trigger:hover {
  background: transparent;
  box-shadow: none;
  color: var(--primary);
}

.notification-trigger svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 21px;
}

.notification-count {
  align-items: center;
  background: var(--danger);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 750;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 5px;
  position: absolute;
  right: -7px;
  top: -7px;
}

.notification-panel {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(49, 48, 46, 0.14);
  min-width: 280px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 85;
}

.notification-panel-head,
.notification-item,
.notification-view-all {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.notification-panel-head {
  border-bottom: 1px solid rgba(239, 210, 216, 0.35);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 10px;
}

.notification-panel-head span,
.notification-item strong {
  background: rgba(201, 22, 59, 0.1);
  border-radius: 999px;
  color: var(--primary);
  font-size: 11px;
  min-width: 28px;
  padding: 4px 8px;
  text-align: center;
}

.notification-view-all,
.notification-item {
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  gap: 14px;
  padding: 10px 8px;
  text-decoration: none;
}

.notification-view-all {
  color: var(--primary);
  margin-top: 8px;
}

.notification-view-all.active,
.notification-view-all:hover,
.notification-item:hover {
  background: var(--surface-low);
}

.notification-list {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.notification-item.empty {
  color: var(--muted);
}

.notification-empty {
  color: var(--muted);
  display: block;
  font-size: 13px;
  padding: 10px 8px;
}

.user-menu summary {
  list-style: none;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0;
  height: 44px;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  width: 44px;
}

.user-menu-trigger:hover {
  background: transparent;
  box-shadow: none;
}

.user-avatar {
  background: var(--surface-low);
  border: 0;
  border-radius: 999px;
  display: block;
  height: 34px;
  object-fit: cover;
  width: 34px;
}

.user-initials {
  align-items: center;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.user-menu-text {
  display: none;
  gap: 1px;
  max-width: 130px;
  min-width: 0;
  text-align: right;
}

.user-menu-text strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-text small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.user-menu-panel {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(49, 48, 46, 0.14);
  min-width: 300px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
}

.user-menu:not([open]) .user-menu-panel {
  display: none;
}

.user-menu-identity {
  align-items: center;
  border-bottom: 1px solid rgba(239, 210, 216, 0.35);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 2px 0 12px;
}

.user-menu-profile {
  display: flex;
  justify-content: center;
}

.user-menu-photo {
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 999px;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.user-menu-photo.user-initials {
  display: inline-flex;
  font-size: 13px;
}

.user-menu-section {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0;
}

.user-menu-section + .user-menu-section {
  border-bottom: 1px solid rgba(239, 210, 216, 0.35);
  padding-top: 12px;
  padding-bottom: 12px;
}

.user-menu-section strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.user-menu-section small,
.menu-label {
  color: #6f5f62;
  font-size: 11px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-menu-links {
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.user-menu-divider {
  border-top: 1px solid rgba(239, 210, 216, 0.55);
  display: block;
  margin: 5px 0;
}

.user-menu-links a {
  border-radius: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 8px;
  text-decoration: none;
}

.user-menu-links a:hover {
  background: var(--surface-low);
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.dashboard-heading {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 780px);
  margin-bottom: 14px;
}

.dashboard-heading.filters-heading {
  grid-template-columns: minmax(0, 1fr);
}

.filters-funnel-title {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.dashboard-heading.filters-heading .list-toolbar {
  grid-column: 1 / -1;
}

.dashboard-page .filters-heading {
  display: block;
}

.dashboard-page .filters-heading .filter-collapse-summary {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.dashboard-page .filters-heading .filter-collapse-title,
.dashboard-page .filters-heading .filter-export-btn {
  justify-self: auto;
}

.review-list-panel .filters-heading .filter-collapse .list-toolbar {
  margin-top: 0;
}

.filter-collapse {
  min-width: 0;
}

.filter-collapse summary {
  list-style: none;
}

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

.filter-collapse-summary {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 30px;
  padding: 0;
}

.filter-collapse[open] .filter-collapse-summary {
  border-color: transparent;
}

.filter-collapse-title {
  align-items: center;
  background: #f6eee7;
  border: 1px solid rgba(222, 207, 191, 0.72);
  border-radius: 0;
  color: var(--ink);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 8px;
  justify-self: end;
  letter-spacing: 0.02em;
  min-height: 30px;
  padding: 0 16px;
  text-transform: none;
}

.filter-collapse-title i {
  color: currentColor;
  font-style: normal;
  line-height: 1;
  transition: transform 140ms ease;
}

.filter-collapse[open] .filter-collapse-title i {
  transform: rotate(180deg);
}

.filter-show-label,
.filter-collapse:not([open]) .filter-hide-label {
  display: none;
}

.filter-collapse:not([open]) .filter-show-label {
  display: inline;
}

.filter-collapse .list-toolbar {
  background: #fff9f5;
  border: 1px solid rgba(239, 210, 216, 0.55);
  box-shadow: 0 4px 18px rgba(49, 48, 46, 0.035);
  margin-top: 12px;
  padding: 22px;
}

.filter-collapse:not([open]) .list-toolbar {
  display: none;
}

.filter-export-btn {
  background: #8d672e;
  border-color: #8d672e;
  color: #fff;
  justify-self: end;
  min-height: 30px;
  padding: 0 18px;
}

.active-filter-bar {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.active-filter-bar span {
  color: #6f5f62;
  font-size: 12px;
  font-weight: 650;
}

.active-filter-bar strong {
  align-items: center;
  background: #fff9f5;
  border: 1px solid rgba(239, 210, 216, 0.55);
  color: #6f2c3a;
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  min-height: 24px;
  padding: 0 8px;
}

.active-filter-bar strong::after {
  color: #a2877d;
  content: "x";
  font-size: 12px;
  margin-left: 7px;
}

.active-filter-bar a {
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.dashboard-title-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dashboard-title-block h2 {
  margin: 0;
}

.dashboard-title-block span {
  color: var(--ink);
  font-size: 15px;
}

.list-toolbar {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: end;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.search-box {
  align-items: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 6px;
  min-height: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
  text-transform: none;
}

.filter-field-label {
  color: #5f5550;
  display: block;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.search-box:focus-within {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.search-box-icon {
  display: none;
}

.search-box input {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  min-height: 34px;
  min-width: 0;
  outline: 0;
  padding: 0 10px;
  width: 100%;
}

.search-box input:focus {
  border-color: rgba(201, 22, 59, 0.42);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.1);
}

.search-box input::placeholder {
  color: #8f877e;
  font-weight: 600;
}

.search-box .filter-field-label {
  margin-bottom: 0;
}

.search-box {
  position: relative;
}

.date-range-filter {
  min-width: 0;
  position: relative;
}

.project-filter-checklist .multi-select-trigger {
  border-radius: 0;
}

.offline-signature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.date-range-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.82);
  border-radius: 0;
  box-shadow: 0 4px 14px rgba(49, 48, 46, 0.04);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  min-height: 34px;
  padding: 0 9px;
  text-align: left;
  width: 100%;
}

.date-range-trigger:focus-visible,
.date-range-trigger[aria-expanded="true"] {
  border-color: rgba(201, 22, 59, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.12);
  outline: 0;
}

.date-range-trigger span,
.date-filter span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.date-range-trigger strong {
  color: var(--ink);
  display: block;
  font-size: 11px;
  font-weight: 650;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-range-trigger i {
  color: var(--primary);
  font-style: normal;
  line-height: 1;
}

.date-range-panel {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.9);
  border-radius: 0;
  box-shadow: 0 16px 34px rgba(49, 48, 46, 0.14);
  display: grid;
  gap: 8px;
  min-width: 380px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 90;
}

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

.date-range-quick-actions {
  display: flex;
  gap: 5px;
}

.date-range-quick-actions button {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.9);
  border-radius: 0;
  color: var(--primary);
  cursor: pointer;
  flex: 1 1 auto;
  font-size: 10px;
  font-weight: 700;
  min-height: 28px;
  padding: 0 8px;
  white-space: nowrap;
}

.date-range-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(176px, 1fr));
}

.date-filter {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.72);
  border-radius: 0;
  box-shadow: 0 4px 14px rgba(49, 48, 46, 0.04);
  display: flex;
  gap: 4px;
  min-height: 34px;
  min-width: 0;
  padding: 0 8px;
}

.date-filter input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  min-width: 132px;
  outline: 0;
  width: 100%;
}

.date-filter input[data-date-display] {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
}

.date-filter input.native-date-picker {
  background: #fff;
  border: 1px solid rgba(54, 54, 54, 0.24);
  box-sizing: border-box;
  flex: 0 0 26px;
  height: 30px;
  margin-left: 0;
  min-height: 30px;
  min-width: 26px;
  padding: 0;
  width: 26px;
}

.date-filter input.native-date-picker::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
  width: 18px;
}

.filter-apply-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.filter-apply-btn {
  background: #8d672e;
  border-color: #8d672e;
  border-radius: 0;
  color: #fff;
  min-height: 32px;
  padding: 0 24px;
}

.project-multiselect {
  min-width: 0;
  position: relative;
  width: 100%;
}

.project-filter-checklist .multi-select-trigger {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.82);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(49, 48, 46, 0.04);
  min-height: 36px;
  padding: 0 8px 0 12px;
}

.project-filter-checklist .multi-select-trigger:focus-visible {
  border-color: rgba(201, 22, 59, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.12);
  outline: 0;
}

.project-filter-checklist .multi-select-trigger > span:first-child {
  min-width: 0;
}

.project-filter-checklist .multi-select-trigger strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-filter-checklist .multi-select-panel {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.9);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(49, 48, 46, 0.14);
  left: 0;
  min-width: 100%;
  overflow: hidden;
  position: absolute;
  top: calc(100% + 6px);
  width: max(100%, 300px);
  z-index: 80;
}

.project-filter-checklist .multi-select-search span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-filter-checklist .project-options {
  max-height: 260px;
}

.project-filter-checklist .multi-select-option {
  min-width: 0;
  padding: 12px;
}

.project-filter-checklist .multi-select-option span {
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.project-filter-checklist .multi-select-empty {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 12px;
}

.project-approver-table-wrap {
  overflow: visible;
}

.approver-checklist {
  min-width: 220px;
}

.approver-checklist .multi-select-trigger {
  border: 1px solid rgba(239, 210, 216, 0.82);
  border-radius: 6px;
  min-height: 48px;
  padding: 8px 10px;
}

.approver-checklist .multi-select-trigger strong {
  color: var(--ink);
  font-size: 12px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approver-checklist .multi-select-panel {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.9);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(49, 48, 46, 0.14);
  left: 0;
  max-width: min(340px, 88vw);
  min-width: 100%;
  overflow: hidden;
  position: absolute;
  top: calc(100% + 6px);
  width: max-content;
  z-index: 75;
}

.approver-checklist .multi-select-options {
  max-height: 260px;
}

.approver-checklist .multi-select-option span {
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.filter-chip,
.status-pill {
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.8);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  padding: 7px 11px;
  text-decoration: none;
}

.filter-chip:hover {
  background: #fff;
  border-color: rgba(201, 22, 59, 0.34);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-chip span {
  align-items: center;
  background: rgba(201, 22, 59, 0.1);
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  justify-content: center;
  min-width: 20px;
  padding: 1px 6px;
}

.filter-chip.active span {
  background: rgba(255, 255, 255, 0.22);
}

.status-stack {
  --status-bg: #f1f3f5;
  --status-border: #d7dde2;
  --status-text: #4f5b66;
  --status-dot: #6b7680;
  --step-1: #6b7680;
  --step-2: #d7dde2;
  --step-3: #d7dde2;
  --step-4: #d7dde2;
  --step-5: #d7dde2;
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.status-stack .status-pill {
  align-items: center;
  background: var(--status-bg);
  border: 1px solid var(--status-border);
  color: var(--status-text);
  font-size: 11px;
  gap: 5px;
  line-height: 1;
  max-width: 100%;
  padding: 5px 9px;
  white-space: normal;
}

.status-stack .status-pill::before {
  background: var(--status-dot);
  border-radius: 50%;
  content: "";
  flex: 0 0 5px;
  height: 5px;
  width: 5px;
}

.status-steps {
  display: flex;
  gap: 4px;
  padding-left: 2px;
}

.status-steps i {
  background: #efd2d8;
  border-radius: 999px;
  display: block;
  height: 4px;
  width: 14px;
}

.status-steps i:nth-child(1) {
  background: var(--step-1);
}

.status-steps i:nth-child(2) {
  background: var(--step-2);
}

.status-steps i:nth-child(3) {
  background: var(--step-3);
}

.status-steps i:nth-child(4) {
  background: var(--step-4);
}

.status-steps i:nth-child(5) {
  background: var(--step-5);
}

.status-draft,
.status-pending,
.status-queued {
  --status-bg: #f1f3f5;
  --status-border: #d7dde2;
  --status-text: #4f5b66;
  --status-dot: #6b7680;
  --step-1: #6b7680;
  background: #f1f3f5;
  border-color: #d7dde2;
  color: #4f5b66;
}

.status-submitted,
.status-sent,
.status-demand_sent {
  --status-bg: #e8f2ff;
  --status-border: #bdd9ff;
  --status-text: #175ea8;
  --status-dot: #2e7bc8;
  --step-1: #c9163b;
  background: #e8f2ff;
  border-color: #bdd9ff;
  color: #175ea8;
}

.status-sales_review,
.status-sales_head_review,
.status-director_review,
.status-ceo_review {
  --status-bg: #ffe8ed;
  --status-border: #f2b8c2;
  --status-text: #b81235;
  --status-dot: #b57900;
  --step-1: #2d7768;
  background: #ffe8ed;
  border-color: #f2b8c2;
  color: #b81235;
}

.status-sales_review {
  --step-2: #c9163b;
}

.status-sales_head_review {
  --step-2: #2d7768;
  --step-3: #c9163b;
}

.status-director_review {
  --step-2: #2d7768;
  --step-3: #2d7768;
  --step-4: #c9163b;
}

.status-ceo_review {
  --step-2: #2d7768;
  --step-3: #2d7768;
  --step-4: #2d7768;
  --step-5: #c9163b;
}

.status-hold {
  --status-bg: #ffe8ed;
  --status-border: #f2b8c2;
  --status-text: #b81235;
  --status-dot: #b57900;
  --step-1: #2d7768;
  --step-2: #c9163b;
  background: #ffe8ed;
  border-color: #f2b8c2;
  color: #b81235;
}

.status-approved,
.status-paid,
.status-available {
  --status-bg: #e8f6ed;
  --status-border: #b7dfc3;
  --status-text: #1f7a3b;
  --status-dot: #2f9960;
  --step-1: #2d7768;
  --step-2: #2d7768;
  --step-3: #2d7768;
  --step-4: #2d7768;
  --step-5: #2d7768;
  background: #e8f6ed;
  border-color: #b7dfc3;
  color: #1f7a3b;
}

.status-returned,
.status-overdue {
  --status-bg: #fff1f3;
  --status-border: #f2b8c2;
  --status-text: #b81235;
  --status-dot: #d26b1f;
  --step-1: #2d7768;
  --step-2: #d26b1f;
  background: #fff1f3;
  border-color: #f2b8c2;
  color: #b81235;
}

.status-rejected,
.status-revoked,
.status-expired,
.status-failed,
.status-booked {
  --status-bg: #fdecec;
  --status-border: #f2b8c2;
  --status-text: #b4232a;
  --status-dot: #c8323a;
  --step-1: #c8323a;
  background: #fdecec;
  border-color: #f2b8c2;
  color: #b4232a;
}

.status-used {
  --status-bg: #efeafb;
  --status-border: #d2c2f2;
  --status-text: #5b3aa4;
  --status-dot: #6e4cc2;
  --step-1: #6e4cc2;
  background: #efeafb;
  border-color: #d2c2f2;
  color: #5b3aa4;
}

.status-stack {
  background: transparent;
  border-color: transparent;
  color: inherit;
}

.review-workspace {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin-top: 18px;
}

.review-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.review-workspace .review-table-wrap {
  margin-top: 0;
}

.action-panel-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.action-panel-export-btn {
  justify-self: stretch;
  min-height: 34px;
}

.review-table {
  min-width: 820px;
}

.review-table th,
.review-table td {
  padding-bottom: 10px;
  padding-top: 10px;
  vertical-align: middle;
}

.review-table th {
  background: #fff1f3;
  position: static;
}

.review-table a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.review-table .reference-cell {
  min-width: 132px;
  white-space: nowrap;
}

.review-table .reference-cell a {
  display: inline-block;
  white-space: nowrap;
}

.mobile-actions-col,
.mobile-card-actions {
  display: none;
}

.review-table span {
  color: #6f5f62;
  font-size: 0.92em;
}

.review-row {
  cursor: pointer;
}

.review-row.selected td {
  background: var(--surface-low);
  border-bottom-color: transparent;
}

.review-row.selected td:first-child {
  box-shadow: inset 3px 0 0 var(--primary);
}

.review-row:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.dashboard-page {
  padding: 16px 18px 36px;
}

.dashboard-page .review-header {
  align-items: flex-start;
  margin-bottom: 14px;
}

.dashboard-page .brand-logo {
  height: 42px;
  width: 42px;
}

.dashboard-page .brand-name {
  font-size: 20px;
}

.dashboard-page .brand-legal {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.dashboard-page .page-title {
  font-size: 30px;
  margin-top: 10px;
}

.review-title-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
}

.review-title-line .page-title {
  margin-top: 0;
}

.review-title-actions {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.review-filter-toggle {
  cursor: pointer;
  text-transform: none;
}

.review-filter-toggle i {
  transform: rotate(180deg);
}

.review-filter-toggle .filter-show-label,
.review-filter-toggle.is-collapsed .filter-hide-label {
  display: none;
}

.review-filter-toggle.is-collapsed .filter-show-label {
  display: inline;
}

.review-filter-toggle.is-collapsed i {
  transform: rotate(0deg);
}

.dashboard-page .sub {
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.dashboard-page .header-actions {
  gap: 7px;
  padding-top: 6px;
}

.dashboard-page .main-nav {
  gap: 20px;
}

.dashboard-page .main-nav-link,
.dashboard-page .main-nav-group-trigger {
  min-height: 32px;
  padding: 0 0 7px;
}

.dashboard-page .notification-trigger,
.dashboard-page .user-menu-trigger {
  min-height: 44px;
  padding: 0;
}

.dashboard-page .settings-trigger {
  min-height: 32px;
  padding: 0 0 7px;
  width: auto;
}

.dashboard-page .review-list-panel {
  padding: 14px 14px 0;
}

.dashboard-page .dashboard-heading {
  gap: 10px;
  margin-bottom: 9px;
}

.dashboard-page .dashboard-title-block h2 {
  font-size: 20px;
}

.dashboard-page .list-toolbar {
  gap: 6px;
  grid-template-columns: minmax(260px, 1.7fr) repeat(4, minmax(150px, 1fr));
}

.dashboard-page .search-box,
.dashboard-page .project-filter-checklist .multi-select-trigger,
.dashboard-page .date-range-trigger {
  min-height: 32px;
}

.dashboard-page .dashboard-grid {
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin-bottom: 10px;
}

.dashboard-page .metric-card {
  gap: 8px;
  min-height: 48px;
  padding: 7px 8px;
}

.dashboard-page .metric-card span {
  font-size: 8px;
}

.dashboard-page .metric-card strong {
  font-size: 18px;
  margin-top: 2px;
}

.dashboard-page .metric-icon {
  flex-basis: 28px;
  height: 28px;
  width: 28px;
}

.dashboard-page .metric-icon svg {
  height: 14px;
  width: 14px;
}

.funnel-panel {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.62);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(49, 48, 46, 0.025);
  margin-bottom: 12px;
  padding: 12px;
}

.funnel-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.funnel-head h2 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  margin: 0;
}

.funnel-head p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin: 3px 0 0;
}

.funnel-flow {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
}

.funnel-stage {
  min-width: 0;
  position: relative;
}

.funnel-stage summary {
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.78);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  list-style: none;
  min-height: 76px;
  padding: 9px;
}

.funnel-stage summary::-webkit-details-marker {
  display: none;
}

.funnel-stage summary:hover,
.funnel-stage[open] summary {
  border-color: rgba(201, 22, 59, 0.42);
  box-shadow: 0 6px 16px rgba(49, 48, 46, 0.045);
}

.funnel-step {
  align-items: center;
  background: #f8f6f4;
  border: 1px solid rgba(239, 210, 216, 0.72);
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 10px;
  font-weight: 650;
  justify-content: center;
}

.funnel-stage-main {
  display: grid;
  flex: 1 1 auto;
  gap: 5px;
  min-width: 0;
}

.funnel-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.funnel-stage-main strong {
  color: var(--primary);
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
}

.funnel-bar {
  background: #f2ece9;
  border-radius: 999px;
  display: block;
  height: 5px;
  overflow: hidden;
}

.funnel-bar i {
  background: var(--primary);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 4px;
}

.funnel-drilldown {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.78);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(49, 48, 46, 0.14);
  left: 0;
  min-width: min(280px, 88vw);
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 25;
}

.funnel-drilldown-head {
  align-items: center;
  border-bottom: 1px solid rgba(239, 210, 216, 0.58);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0 0 6px;
}

.funnel-drilldown-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.funnel-drilldown-head a {
  color: var(--primary);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.funnel-drilldown-item {
  border-radius: 6px;
  display: grid;
  gap: 2px;
  padding: 7px;
}

.funnel-drilldown-item + .funnel-drilldown-item {
  border-top: 1px solid rgba(239, 210, 216, 0.42);
}

.funnel-drilldown-item strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.funnel-drilldown-item span,
.funnel-drilldown p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.dashboard-page .filter-row {
  gap: 6px;
  margin-bottom: 10px;
}

.dashboard-page .filter-chip,
.dashboard-page .status-pill {
  align-items: center;
  font-size: 10px;
  line-height: 1.15;
  min-width: 0;
  padding: 5px 8px;
  white-space: nowrap;
}

.dashboard-page .review-workspace {
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 276px;
  margin-top: 10px;
}

.dashboard-page .review-table th,
.dashboard-page .review-table td {
  font-size: 11px;
  padding: 5px 7px;
}

.dashboard-page .review-table .reference-cell {
  min-width: 104px;
}

.dashboard-page .review-table {
  min-width: 1040px;
  table-layout: fixed;
}

.dashboard-page .review-table th {
  font-size: 9px;
  line-height: 1.15;
  padding-bottom: 5px;
  padding-top: 5px;
}

.dashboard-page .review-table .col-reference {
  width: 12%;
}

.dashboard-page .review-table .col-client {
  width: 14%;
}

.dashboard-page .review-table .col-unit {
  width: 16%;
}

.dashboard-page .review-table .col-region {
  width: 8%;
}

.dashboard-page .review-table .col-status {
  width: 13%;
}

.dashboard-page .review-table .col-owner {
  width: 13%;
}

.dashboard-page .review-table .col-month {
  width: 10%;
}

.dashboard-page .review-table .col-submitted {
  width: 13%;
}

.dashboard-page .review-table .col-actions {
  width: 1%;
}

.dashboard-page .review-table td {
  line-height: 1.2;
}

.dashboard-page .review-table td:nth-child(2),
.dashboard-page .review-table td:nth-child(3),
.dashboard-page .review-table td:nth-child(5) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-page .review-table td:nth-child(2) strong,
.dashboard-page .review-table td:nth-child(3),
.dashboard-page .review-table td:nth-child(5),
.dashboard-page .review-table td:nth-child(6) {
  overflow-wrap: anywhere;
}

.dashboard-page .review-table td:nth-child(7),
.dashboard-page .review-table td:nth-child(8) {
  overflow-wrap: normal;
  white-space: normal;
  word-break: normal;
}

.dashboard-page .review-table td:nth-child(8) {
  min-width: 128px;
}

.dashboard-page .status-stack {
  gap: 3px;
}

.dashboard-page .status-stack .status-pill {
  font-size: 9px;
  padding: 3px 6px;
}

.dashboard-page .status-steps {
  gap: 3px;
}

.dashboard-page .status-steps i {
  height: 3px;
  width: 11px;
}

.dashboard-page .action-panel {
  padding: 10px;
  top: 10px;
}

.dashboard-page .action-panel-header h3 {
  font-size: 15px;
  margin-top: 5px;
}

.dashboard-page .action-panel-unit-card {
  padding: 10px 12px;
}

.dashboard-page .action-panel-unit-card strong {
  font-size: 20px;
}

.dashboard-page .action-panel-summary {
  gap: 5px;
  padding: 7px 0;
}

.dashboard-page .action-panel-section {
  padding-top: 7px;
}

.dashboard-page .action-panel-section + .action-panel-section {
  margin-top: 7px;
}

.dashboard-page .action-panel-btn {
  min-height: 30px;
  padding: 5px 7px;
}

.inventory-page {
  padding-bottom: 42px;
}

.inventory-stats {
  margin-bottom: 14px;
}

.inventory-panel {
  padding: 12px;
}

.inventory-overview-panel {
  background: #fbf8f4;
  display: grid;
  gap: 18px;
}

.inventory-overview-block {
  border-bottom: 1px solid rgba(69, 55, 45, 0.12);
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
}

.inventory-overview-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.inventory-overview-block h2 {
  color: rgba(42, 42, 48, 0.66);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
}

.inventory-project-chips,
.inventory-status-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inventory-project-chip,
.inventory-status-legend span {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(153, 113, 120, 0.24);
  border-radius: 999px;
  color: #754455;
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  gap: 8px;
  line-height: 1.25;
  min-height: 36px;
  padding: 8px 16px;
}

.inventory-project-chip-available:nth-child(3n + 2) {
  border-color: rgba(55, 124, 164, 0.32);
  color: #315e78;
}

.inventory-project-chip-available:nth-child(3n) {
  border-color: rgba(174, 139, 48, 0.35);
  color: #7c6421;
}

.inventory-project-chip-booked {
  border-color: rgba(112, 119, 132, 0.32);
  color: #525a68;
}

.inventory-status-legend span {
  color: #4a4650;
  font-weight: 600;
}

.inventory-status-box {
  background: #fff;
  border: 2px solid #9ca3af;
  border-radius: 3px;
  display: inline-block;
  height: 13px;
  width: 13px;
}

.inventory-status-box-booked {
  background: #172133;
  border-color: #172133;
}

.inventory-status-box-hold {
  background: #f0c419;
  border-color: #f0c419;
}

.inventory-status-box-landlord {
  background: #3d7be0;
  border-color: #3d7be0;
}

.inventory-status-box-blocked {
  background: #737b89;
  border-color: #737b89;
}

.inventory-availability-list {
  display: grid;
  gap: 9px;
}

.inventory-availability-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(153, 113, 120, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 280px) minmax(180px, 1fr);
  padding: 10px 12px;
}

.inventory-availability-meta {
  display: grid;
  gap: 3px;
}

.inventory-availability-meta strong {
  color: var(--ink);
  font-size: 13px;
}

.inventory-availability-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.inventory-availability-bar {
  background: #ebe4dc;
  border-radius: 999px;
  display: flex;
  height: 12px;
  min-width: 0;
  overflow: hidden;
}

.inventory-availability-bar span {
  display: block;
  min-width: 3px;
}

.inventory-bar-available {
  background: #2e9d55;
}

.inventory-bar-hold {
  background: #e0a11b;
}

.inventory-bar-booked {
  background: #172133;
}

.inventory-section-header {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.inventory-section-header h2 {
  font-size: 18px;
  margin-bottom: 2px;
}

.stakeholder-filter {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
  min-width: 200px;
}

.stakeholder-filter span {
  color: #868e96;
  font-weight: 600;
}

.stakeholder-filter select {
  padding: 6px 8px;
}

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

.inventory-legend span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 5px;
  text-transform: uppercase;
}

.inventory-dot {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.inventory-dot-available {
  background: #2e9d55;
}

.inventory-dot-hold {
  background: #e0a11b;
}

.inventory-dot-booked {
  background: #c7333a;
}

.inventory-diagram-filters {
  align-items: end;
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto;
  margin: 0 0 9px;
}

.inventory-diagram-filters label {
  display: grid;
  gap: 5px;
}

.inventory-diagram-filters label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.inventory-diagram-filters select,
.inventory-toolbar select,
.inventory-toolbar input[type="date"] {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.82);
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  min-height: 36px;
  min-width: 0;
  padding: 8px 10px;
}

.inventory-diagram-summary {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  margin: 0 0 9px;
}

.inventory-diagram-summary div {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.74);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  padding: 7px 9px;
}

.inventory-diagram-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.inventory-diagram-summary strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.inventory-diagram-summary .inventory-summary-available strong {
  color: #1f7a3b;
}

.inventory-diagram-summary .inventory-summary-hold strong {
  color: #8a5b00;
}

.inventory-diagram-summary .inventory-summary-booked strong {
  color: #b4232a;
}

.inventory-floor-stack {
  display: grid;
  gap: 8px;
}

.inventory-block-panel {
  align-items: start;
  --inventory-project-bg: rgba(153, 113, 120, 0.08);
  --inventory-project-border: rgba(153, 113, 120, 0.36);
  --inventory-project-text: #754455;
  background: linear-gradient(90deg, var(--inventory-project-bg), rgba(255, 255, 255, 0.88) 46%);
  border: 1px solid var(--inventory-project-border);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
  position: relative;
}

.inventory-block-panel::before {
  background: var(--inventory-project-border);
  border-radius: 8px 0 0 8px;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 5px;
}

.inventory-block-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-left: 6px;
}

.inventory-block-header div {
  display: grid;
  gap: 1px;
}

.inventory-block-header strong {
  color: var(--inventory-project-text);
  font-size: 14px;
  line-height: 1.15;
}

.inventory-block-header span,
.inventory-block-header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.inventory-block-floors {
  display: grid;
  gap: 6px;
}

.inventory-floor-row {
  align-items: start;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(239, 210, 216, 0.58);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(112px, 150px) 1fr;
  padding: 8px;
}

.inventory-project-tone-1 {
  --inventory-project-bg: rgba(153, 113, 120, 0.1);
  --inventory-project-border: rgba(153, 113, 120, 0.52);
  --inventory-project-text: #754455;
}

.inventory-project-tone-2 {
  --inventory-project-bg: rgba(55, 124, 164, 0.1);
  --inventory-project-border: rgba(55, 124, 164, 0.52);
  --inventory-project-text: #315e78;
}

.inventory-project-tone-3 {
  --inventory-project-bg: rgba(174, 139, 48, 0.12);
  --inventory-project-border: rgba(174, 139, 48, 0.56);
  --inventory-project-text: #735f1f;
}

.inventory-project-tone-4 {
  --inventory-project-bg: rgba(45, 119, 104, 0.1);
  --inventory-project-border: rgba(45, 119, 104, 0.52);
  --inventory-project-text: #2d6b5f;
}

.inventory-project-tone-5 {
  --inventory-project-bg: rgba(133, 91, 166, 0.1);
  --inventory-project-border: rgba(133, 91, 166, 0.48);
  --inventory-project-text: #68468a;
}

.inventory-project-tone-6 {
  --inventory-project-bg: rgba(196, 98, 52, 0.1);
  --inventory-project-border: rgba(196, 98, 52, 0.48);
  --inventory-project-text: #924f2d;
}

.inventory-floor-meta {
  display: grid;
  gap: 2px;
}

.inventory-floor-meta strong {
  color: var(--inventory-project-text);
  font-size: 12px;
}

.inventory-floor-meta span,
.inventory-floor-meta small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.inventory-unit-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
}

.inventory-unit-tile {
  border: 1px solid transparent;
  border-radius: 7px;
  color: inherit;
  display: grid;
  gap: 1px;
  min-height: 44px;
  padding: 6px;
  position: relative;
  text-decoration: none;
}

.inventory-unit-tile::before {
  background: var(--inventory-project-border);
  border-radius: 7px 7px 0 0;
  content: "";
  height: 4px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.inventory-unit-tile strong {
  font-size: 12px;
  line-height: 1.1;
}

.inventory-unit-tile span {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.inventory-unit-available {
  background: #e8f6ed;
  border-color: #b8dfc4;
  color: #1f7a3b;
}

a.inventory-unit-available:hover {
  border-color: #2e9d55;
  box-shadow: 0 6px 14px rgba(31, 122, 59, 0.14);
  transform: translateY(-1px);
}

.inventory-unit-hold {
  background: #fff4d9;
  border-color: #f2d38b;
  color: #8a5b00;
}

.inventory-unit-booked {
  background: #fdecec;
  border-color: #efbdc1;
  color: #b4232a;
}

.inventory-unit-other {
  background: #f1f1f4;
  border-color: #d7d7df;
  color: #575766;
}

.inventory-toolbar {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(7, minmax(110px, 1fr)) auto auto;
  margin: 0 0 12px;
}

.inventory-table {
  min-width: 980px;
}

.inventory-table th,
.inventory-table td {
  padding-bottom: 10px;
  padding-top: 10px;
}

.inventory-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  min-height: 26px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.inventory-status-available {
  background: #e8f6ed;
  color: #1f7a3b;
}

.inventory-status-hold {
  background: #ffe8ed;
  color: #b81235;
}

.inventory-status-booked {
  background: #fdecec;
  color: #b4232a;
}

.inventory-locked {
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  min-height: 32px;
  align-items: center;
  text-transform: uppercase;
}

.pagination-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-start;
  margin-top: 14px;
}

.pagination-link,
.pagination-ellipsis {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  min-width: 34px;
  padding: 0 11px;
  text-decoration: none;
}

.pagination-link + .pagination-link,
.pagination-link + .pagination-ellipsis,
.pagination-ellipsis + .pagination-link {
  margin-left: -1px;
}

.pagination-link:hover {
  background: #f8fafc;
  color: var(--brand);
}

.pagination-link.current {
  background: #f8fafc;
  color: var(--brand);
  position: relative;
  z-index: 1;
}

.pagination-link.disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-prev {
  border-radius: 4px 0 0 4px;
}

.pagination-next {
  border-radius: 0 4px 4px 0;
}

.pagination-ellipsis {
  color: var(--muted);
  min-width: 32px;
}

#projects-section,
#blocks-section,
#floors-section,
#units-pricing {
  scroll-margin-top: 18px;
}

.action-panel {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.72);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(49, 48, 46, 0.045);
  min-height: 0;
  padding: 12px;
  position: sticky;
  top: 18px;
}

.action-panel-empty {
  align-items: center;
  color: var(--muted);
  display: grid;
  min-height: 360px;
  place-items: center;
  text-align: center;
}

.action-panel-empty h3 {
  color: var(--ink);
  margin: 0 0 8px;
}

.action-panel-empty p {
  margin: 0;
}

.action-panel-header {
  border-bottom: 1px solid rgba(201, 22, 59, 0.18);
  padding-bottom: 9px;
}

.action-panel-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.action-panel-title-row .status-stack {
  align-items: flex-end;
  flex: 0 1 auto;
  min-width: 0;
}

.action-panel-title-row .status-pill {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-panel-header > span,
.action-panel-title-row span,
.action-panel-label,
.action-panel-summary span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.action-panel-header h3 {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 8px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-panel-subhead {
  display: grid;
  gap: 7px;
  margin-top: 7px;
}

.action-panel-subhead strong {
  color: var(--ink);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-panel-subhead span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-panel-unit-card {
  background: var(--surface-card);
  border: 1px solid rgba(224, 217, 208, 0.9);
  border-radius: 8px;
  box-shadow: none;
  color: var(--ink);
  min-width: 0;
  padding: 13px 15px;
}

.action-panel-unit-card span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.action-panel-unit-card strong {
  color: var(--ink);
  display: block;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.05;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.action-panel-unit-project {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.action-panel-unit-card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  margin: 3px 0 0;
}

.action-panel-summary {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 9px 0;
}

.action-panel-summary div {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.58);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 7px 8px;
}

.action-panel-summary div:first-child {
  grid-column: 1 / -1;
}

.action-panel-summary strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-top: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-panel-section {
  border-top: 1px solid rgba(201, 22, 59, 0.18);
  padding-top: 9px;
}

.action-panel-section + .action-panel-section {
  margin-top: 9px;
}

.action-panel-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 5px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 1px;
}

.action-panel-actions form {
  flex: 0 0 auto;
  margin: 0;
}

.action-panel-btn {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(201, 22, 59, 0.22);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex: 0 0 36px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  text-align: center;
  text-decoration: none;
  width: 36px;
}

.action-panel-btn:hover,
.action-panel-btn.next-action {
  background: var(--surface-low);
  border-color: #c9163b;
  box-shadow: 0 0 0 2px rgba(201, 22, 59, 0.1);
}

.action-icon {
  align-items: center;
  background: transparent;
  border-radius: 0;
  display: inline-flex;
  flex: 0 0 auto;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.action-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.action-panel-btn-label {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.panel-muted {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.mobile-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mobile-row-actions form {
  margin: 0;
}

.mobile-action-btn {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(201, 22, 59, 0.22);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 38px;
}

.mobile-action-btn:hover,
.mobile-action-btn:focus-visible,
.mobile-action-btn.next-action {
  background: var(--surface-low);
  border-color: #c9163b;
  box-shadow: 0 0 0 2px rgba(201, 22, 59, 0.1);
  outline: 0;
}

.mobile-action-btn svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

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

.timeline-item {
  display: grid;
  gap: 1px 8px;
  grid-template-columns: 14px minmax(0, 1fr);
  padding: 0 0 10px;
  position: relative;
}

.timeline-item::before {
  background: #efd2d8;
  content: "";
  height: 100%;
  left: 6px;
  position: absolute;
  top: 14px;
  width: 2px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  background: #efd2d8;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #efd2d8;
  grid-row: 1 / span 3;
  height: 12px;
  margin-top: 3px;
  position: relative;
  width: 12px;
  z-index: 1;
}

.timeline-item span:not(.timeline-dot) {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.timeline-item strong {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-item small {
  color: var(--muted);
  display: block;
  font-size: 10px;
}

.timeline-completed::before,
.timeline-completed .timeline-dot {
  background: #2d7768;
}

.timeline-completed .timeline-dot {
  box-shadow: 0 0 0 1px #2d7768;
}

.timeline-completed strong {
  color: #2d7768;
}

.timeline-pending .timeline-dot,
.timeline-next .timeline-dot {
  background: #c9163b;
  box-shadow: 0 0 0 1px #c9163b;
}

.timeline-pending strong,
.timeline-next strong {
  color: #b81235;
}

.timeline-next {
  background: var(--surface-card);
  border: 1px solid #edca78;
  border-radius: 6px;
  margin: 0 0 7px -6px;
  padding: 6px 6px 8px;
}

.timeline-next::before {
  left: 12px;
}

.timeline-next .timeline-dot {
  margin-left: 6px;
}

.timeline-blocked .timeline-dot {
  background: #c8323a;
  box-shadow: 0 0 0 1px #c8323a;
}

.timeline-blocked strong {
  color: #b4232a;
}

.review-table .status-stack .status-pill {
  color: var(--status-text);
}

.sort-link {
  color: inherit !important;
  display: inline-flex;
  gap: 4px;
}

.sort-link::after {
  content: "↕";
  font-size: 10px;
  opacity: 0.45;
}

.num-col {
  text-align: right !important;
}

.detail-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.review-detail-page {
  padding-top: 16px;
}

.review-detail-page .review-header {
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.review-detail-page .brand-logo {
  height: 40px;
  width: 40px;
}

.review-detail-page .brand-lockup {
  gap: 10px;
}

.review-detail-page .brand-name {
  font-size: 19px;
}

.review-detail-page .brand-legal {
  font-size: 9px;
}

.review-detail-page .detail-reference-number {
  font-size: 24px;
  line-height: 1.08;
  margin-top: 10px;
}

.review-detail-page .sub {
  font-size: 12.5px;
  line-height: 1.35;
  margin-top: 4px;
}

.review-detail-page .header-actions {
  gap: 8px;
  padding-top: 0;
}

.review-detail-page .header-actions .btn,
.review-detail-page .status-form .btn {
  min-height: 36px;
  padding: 9px 14px;
}

.review-detail-page .detail-grid {
  gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.review-detail-page .panel {
  box-shadow: none;
  padding: 16px;
}

.review-detail-page .panel + .panel {
  margin-top: 12px;
}

.review-detail-page .panel h2 {
  font-size: 17px;
  margin-bottom: 12px;
}

.review-detail-page .applicant-card {
  padding: 12px;
}

.review-detail-page .applicant-card + .applicant-card {
  margin-top: 10px;
}

.review-detail-page .applicant-card h3 {
  font-size: 16px;
  margin: 4px 0 8px;
}

.review-detail-page .applicant-card .summary {
  gap: 0 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-detail-page .summary {
  gap: 5px;
}

.review-detail-page .summary-row {
  align-items: flex-start;
  font-size: 12.5px;
  gap: 10px;
  padding: 6px 0;
}

.review-detail-page .applicant-card .summary-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
}

.review-detail-page .summary-row strong {
  font-weight: 650;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.review-detail-page .applicant-card .summary-row strong {
  text-align: left;
}

.review-detail-page .document-grid {
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-detail-page .document-card {
  padding: 10px;
}

.review-detail-page .document-card-with-preview {
  gap: 9px;
  min-height: 62px;
}

.review-detail-page .document-card strong {
  font-size: 12.5px;
  margin: 3px 0;
}

.review-detail-page .document-card span,
.review-detail-page .document-card small,
.review-detail-page .review-note span,
.review-detail-page .review-note small {
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.review-detail-page .document-preview {
  flex-basis: 38px;
  height: 38px;
  width: 38px;
}

.review-detail-page .review-note {
  margin-top: 10px;
  padding: 10px;
}

.review-detail-page .review-note strong {
  font-size: 12.5px;
  margin: 3px 0;
}

.review-detail-page .status-form {
  gap: 8px;
  margin-top: 12px;
}

.review-detail-page label {
  font-size: 10px;
  margin-bottom: 0;
}

.review-detail-page input,
.review-detail-page select,
.review-detail-page textarea {
  font-size: 12.5px;
  min-height: 36px;
  padding: 8px 10px;
}

.review-detail-page textarea {
  min-height: 68px;
}

.review-detail-page .review-table-wrap {
  margin-top: 10px;
}

.review-detail-page .cpp-table th,
.review-detail-page .cpp-table td {
  font-size: 12px;
  line-height: 1.22;
  padding: 6px 8px;
}

.review-detail-page .payment-milestones-panel {
  padding: 12px;
}

.review-detail-page .payment-milestones-panel h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.review-detail-page .payment-milestones-panel .review-table-wrap {
  margin-top: 6px;
}

.review-detail-page .payment-milestones-table {
  min-width: 780px;
}

.review-detail-page .payment-milestones-table th,
.review-detail-page .payment-milestones-table td {
  font-size: 11.5px;
  line-height: 1.12;
  padding: 4px 6px;
}

.review-detail-page .payment-milestones-table th {
  font-size: 9px;
  letter-spacing: 0.06em;
  padding-bottom: 5px;
  padding-top: 5px;
}

.review-detail-page .payment-milestones-table td:first-child,
.review-detail-page .payment-milestones-table th:first-child,
.review-detail-page .payment-milestones-table td:nth-child(3),
.review-detail-page .payment-milestones-table th:nth-child(3) {
  text-align: center;
  width: 42px;
}

.review-detail-page .payment-milestones-table .status-pill {
  border-radius: 999px;
  font-size: 9.5px;
  min-height: 22px;
  padding: 4px 7px;
}

.review-detail-page .payment-milestones-table .milestone-actions {
  gap: 4px;
  padding-bottom: 0;
}

.review-detail-page .payment-milestones-table .milestone-actions .icon-btn {
  gap: 4px;
  min-height: 28px;
  padding: 5px 7px;
}

.review-detail-page .payment-milestones-table .milestone-actions .icon-btn svg {
  height: 14px;
  width: 14px;
}

.review-page:has(.detail-grid) {
  padding-top: 16px;
}

.review-page > .review-header:has(+ .detail-grid) {
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.review-page > .review-header:has(+ .detail-grid) .brand-logo {
  height: 40px;
  width: 40px;
}

.review-page > .review-header:has(+ .detail-grid) .brand-lockup {
  gap: 10px;
}

.review-page > .review-header:has(+ .detail-grid) .brand-name {
  font-size: 19px;
}

.review-page > .review-header:has(+ .detail-grid) .brand-legal {
  font-size: 9px;
}

.review-page > .review-header:has(+ .detail-grid) .page-title {
  font-size: 24px;
  line-height: 1.08;
  margin-top: 10px;
}

.review-page > .review-header:has(+ .detail-grid) .sub {
  font-size: 12.5px;
  line-height: 1.35;
  margin-top: 4px;
}

.review-page > .review-header:has(+ .detail-grid) .header-actions {
  gap: 8px;
  padding-top: 0;
}

.review-page > .review-header:has(+ .detail-grid) .header-actions .btn,
.review-page:has(.detail-grid) .status-form .btn {
  min-height: 36px;
  padding: 9px 14px;
}

.review-page > .detail-grid {
  gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.review-page:has(.detail-grid) .panel {
  box-shadow: none;
  padding: 16px;
}

.review-page:has(.detail-grid) .panel + .panel {
  margin-top: 12px;
}

.review-page:has(.detail-grid) .panel h2 {
  font-size: 17px;
  margin-bottom: 12px;
}

.review-page:has(.detail-grid) .applicant-card {
  padding: 12px;
}

.review-page:has(.detail-grid) .applicant-card + .applicant-card {
  margin-top: 10px;
}

.review-page:has(.detail-grid) .applicant-card h3 {
  font-size: 16px;
  margin: 4px 0 8px;
}

.review-page:has(.detail-grid) .applicant-card .summary {
  gap: 0 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-page:has(.detail-grid) .summary {
  gap: 5px;
}

.review-page:has(.detail-grid) .summary-row {
  align-items: flex-start;
  font-size: 12.5px;
  gap: 10px;
  padding: 6px 0;
}

.review-page:has(.detail-grid) .applicant-card .summary-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
}

.review-page:has(.detail-grid) .summary-row strong {
  font-weight: 650;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.review-page:has(.detail-grid) .applicant-card .summary-row strong {
  text-align: left;
}

.review-page:has(.detail-grid) .document-grid {
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-page:has(.detail-grid) .document-card {
  padding: 10px;
}

.review-page:has(.detail-grid) .document-card-with-preview {
  gap: 9px;
  min-height: 62px;
}

.review-page:has(.detail-grid) .document-card strong {
  font-size: 12.5px;
  margin: 3px 0;
}

.review-page:has(.detail-grid) .document-card span,
.review-page:has(.detail-grid) .document-card small,
.review-page:has(.detail-grid) .review-note span,
.review-page:has(.detail-grid) .review-note small {
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.review-page:has(.detail-grid) .document-preview {
  flex-basis: 38px;
  height: 38px;
  width: 38px;
}

.review-page:has(.detail-grid) .review-note {
  margin-top: 10px;
  padding: 10px;
}

.review-page:has(.detail-grid) .review-note strong {
  font-size: 12.5px;
  margin: 3px 0;
}

.review-page:has(.detail-grid) .status-form {
  gap: 8px;
  margin-top: 12px;
}

.review-page:has(.detail-grid) label {
  font-size: 10px;
  margin-bottom: 0;
}

.review-page:has(.detail-grid) input,
.review-page:has(.detail-grid) select,
.review-page:has(.detail-grid) textarea {
  font-size: 12.5px;
  min-height: 36px;
  padding: 8px 10px;
}

.review-page:has(.detail-grid) textarea {
  min-height: 68px;
}

.review-page:has(.detail-grid) .review-table-wrap {
  margin-top: 10px;
}

.review-page:has(.detail-grid) .cpp-table th,
.review-page:has(.detail-grid) .cpp-table td {
  font-size: 12px;
  line-height: 1.22;
  padding: 6px 8px;
}

.applicant-card {
  background: var(--surface-low);
  border-radius: 8px;
  padding: 18px;
}

.applicant-card + .applicant-card {
  margin-top: 16px;
}

.applicant-title {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.applicant-card h3 {
  margin: 6px 0 12px;
}

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

.document-card {
  background: var(--surface-low);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  padding: 16px;
  text-decoration: none;
}

.document-card-with-preview {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 82px;
}

.document-copy {
  display: block;
  min-width: 0;
}

.document-card span,
.document-card small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-card .document-copy,
.document-card .document-preview {
  letter-spacing: 0;
  text-transform: none;
}

.document-card strong {
  display: block;
  margin: 6px 0;
  word-break: break-word;
}

.document-preview {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.75);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 50px;
  height: 50px;
  justify-content: center;
  overflow: hidden;
  width: 50px;
}

.document-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.document-preview-icon {
  align-items: center;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 650;
  height: 100%;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  width: 100%;
}

.review-note {
  background: var(--surface-low);
  border-radius: 8px;
  margin-top: 18px;
  padding: 14px;
}

.review-note span,
.review-note small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-note strong {
  display: block;
  margin: 6px 0;
}

.status-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.status-form .btn {
  justify-self: stretch;
}

.review-checklist {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.62);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.review-checklist span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-checklist label {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.multi-select-checklist {
  gap: 0;
  padding: 0;
  position: relative;
}

.multi-select-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.75);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.multi-select-trigger small,
.multi-select-trigger strong {
  display: block;
}

.multi-select-trigger small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.multi-select-trigger strong {
  color: var(--primary);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  margin-top: 3px;
}

.multi-select-chevron {
  align-items: center;
  background: #f8f6f4;
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 18px;
  font-weight: 650;
  height: 28px;
  justify-content: center;
  line-height: 1;
  margin-left: 12px;
  transition: transform 0.16s ease;
}

.multi-select-trigger[aria-expanded="true"] .multi-select-chevron {
  transform: rotate(180deg);
}

.multi-select-panel {
  border-top: 1px solid rgba(239, 210, 216, 0.16);
  display: grid;
  gap: 0;
}

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

.multi-select-search {
  align-items: center;
  background: var(--surface-card);
  border-bottom: 1px solid rgba(239, 210, 216, 0.7);
  color: var(--muted);
  display: flex;
  gap: 8px;
  padding: 10px 12px;
}

.multi-select-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1;
  font: inherit;
  min-width: 0;
  outline: none;
  padding: 2px 0;
}

.multi-select-search input::placeholder {
  color: rgba(119, 109, 100, 0.7);
}

.multi-select-select-all,
.multi-select-option {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin: 0;
  min-width: 0;
  text-transform: none;
}

.multi-select-select-all {
  background: rgba(247, 243, 239, 0.75);
  border-bottom: 1px solid rgba(239, 210, 216, 0.7);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
}

.multi-select-options {
  max-height: 230px;
  overflow-y: auto;
}

.multi-select-option {
  background: var(--surface-card);
  border-bottom: 1px solid rgba(239, 210, 216, 0.55);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 12px;
  transition: background 0.15s ease;
}

.multi-select-option:last-child {
  border-bottom: 0;
}

.multi-select-option:hover {
  background: var(--surface-low);
}

.multi-select-option.is-selected {
  background: rgba(201, 22, 59, 0.12);
  color: var(--primary);
}

.multi-select-option input,
.multi-select-select-all input {
  accent-color: var(--primary);
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}

.multi-select-option span,
.multi-select-select-all span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.link-form h2:not(:first-child) {
  margin-top: 30px;
}

.price-preview {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.72);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  padding: 14px;
}

.price-preview div {
  min-width: 0;
}

.price-preview span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-preview strong {
  color: var(--primary);
  display: block;
  font-size: 18px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.price-preview .price-preview-total {
  grid-column: 1 / -1;
  background: #fff8f3;
  border: 1px solid rgba(222, 207, 191, 0.72);
  border-radius: 8px;
  margin-top: 2px;
  padding: 10px 12px;
}

.price-preview .price-preview-total strong {
  font-size: 22px;
  font-weight: 750;
}

.discount-lines {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 18px;
  padding: 14px;
}

.discount-lines-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

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

.discount-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(120px, 0.8fr) 44px;
  margin-top: 10px;
}

.discount-row:first-child {
  margin-top: 0;
}

.discount-row .icon-btn {
  height: 42px;
  width: 42px;
}

.generated-link {
  margin-bottom: 24px;
}

.generated-link input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 8px 0 16px;
}

.link-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 16px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.link-actions form {
  margin: 0;
}

.link-actions.compact {
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
}

.link-actions.compact form {
  flex: 0 0 auto;
  margin: 0;
}

.milestone-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.milestone-actions form {
  flex: 0 0 auto;
  margin: 0;
}

.icon-action-row {
  align-items: center;
  white-space: nowrap;
}

.mini-btn {
  align-items: center;
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 6px;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  text-decoration: none;
}

.primary-mini-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.mini-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.filter-collapse-summary .filter-export-btn,
.filter-apply-actions .filter-apply-btn {
  background: #8d672e;
  border-color: #8d672e;
  border-radius: 0;
  color: #fff;
}

.danger-mini-btn {
  border-color: rgba(187, 21, 32, 0.35);
  color: var(--danger);
}

.inline-action-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-action-group form {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  margin: 0;
}

.inline-remarks-input {
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  min-height: 34px;
  min-width: 150px;
  padding: 7px 9px;
}

.icon-btn {
  align-items: center;
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 6px;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 34px;
}

.icon-btn:hover {
  background: #fff;
  border-color: rgba(201, 22, 59, 0.34);
}

.icon-btn:focus-visible {
  outline: 3px solid rgba(201, 22, 59, 0.22);
  outline-offset: 2px;
}

.icon-btn svg {
  display: block;
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.link-actions .icon-btn,
.milestone-actions .icon-btn {
  color: var(--primary);
}

.link-actions .icon-btn,
.milestone-actions .icon-btn {
  flex: 0 0 auto;
  gap: 6px;
  height: auto;
  min-height: 34px;
  padding: 8px 10px;
  width: auto;
}

.link-actions .icon-btn .sr-only,
.milestone-actions .icon-btn .sr-only {
  clip: auto;
  border: 0;
  height: auto;
  margin: 0;
  overflow: visible;
  padding: 0;
  position: static;
  white-space: nowrap;
  width: auto;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.link-history {
  margin-top: 24px;
}

.settings-page form {
  margin: 0;
}

.settings-intro {
  align-items: center;
  display: flex;
  gap: 10px 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.settings-intro strong {
  color: var(--primary);
}

.settings-intro span {
  color: var(--muted);
  font-size: 13px;
}

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

.advanced-settings-grid {
  margin-top: 20px;
}

.welcome-template-card {
  margin-bottom: 22px;
}

.placeholder-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.placeholder-chip,
.editor-toolbar button,
.editor-toolbar label {
  align-items: center;
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.75);
  border-radius: 999px;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  gap: 6px;
  min-height: 34px;
  padding: 7px 11px;
}

.placeholder-chip:hover,
.editor-toolbar button:hover,
.editor-toolbar label:hover {
  background: #fff;
  border-color: rgba(201, 22, 59, 0.42);
}

.editor-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.editor-toolbar input[type="color"] {
  border: 0;
  height: 22px;
  padding: 0;
  width: 28px;
}

.rich-email-editor {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 8px;
  color: var(--ink);
  line-height: 1.55;
  min-height: 260px;
  overflow: auto;
  padding: 18px;
}

.raw-html-editor {
  background: #2e2d2b;
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 8px;
  color: #fff7f8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  min-height: 260px;
  padding: 16px;
  width: 100%;
}

.rich-email-editor:focus,
.raw-html-editor:focus {
  border-color: rgba(201, 22, 59, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.1);
  outline: 0;
}

.editor-toolbar button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.email-preview-panel {
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 8px;
  margin-top: 14px;
  overflow: hidden;
}

.email-preview-header {
  align-items: center;
  background: var(--surface-low);
  border-bottom: 1px solid rgba(239, 210, 216, 0.65);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.email-preview-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-preview-header strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.email-preview-panel iframe {
  background: #fff;
  border: 0;
  display: block;
  min-height: 360px;
  width: 100%;
}

.profile-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.profile-form {
  display: grid;
  gap: 20px;
}

.profile-photo-row {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 96px minmax(0, 1fr);
}

.profile-photo-large {
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 999px;
  height: 96px;
  object-fit: cover;
  width: 96px;
}

.single-column {
  grid-template-columns: 1fr;
}

.integration-card {
  margin-top: 0;
}

.integration-card-plain {
  background: transparent;
  border: 1px solid rgba(239, 210, 216, 0.65);
  border-radius: 8px;
  padding: 18px;
}

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

.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.integration-card h2 {
  margin-bottom: 0;
}

.settings-fields {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.settings-collapsible {
  margin-top: 22px;
}

.settings-collapsible summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  list-style: none;
}

.settings-collapsible summary::-webkit-details-marker {
  display: none;
}

.settings-collapsible summary strong,
.settings-collapsible summary small {
  display: block;
}

.settings-collapsible summary strong {
  color: var(--primary);
  font-size: 16px;
}

.settings-collapsible summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.collapse-indicator {
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.75);
  border-radius: 999px;
  color: var(--primary);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 12px;
}

.settings-collapsible[open] .collapse-indicator {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.settings-collapsible[open] .collapse-indicator::before {
  content: "Close";
}

.settings-collapsible[open] .collapse-indicator {
  font-size: 0;
}

.settings-collapsible[open] .collapse-indicator::before {
  font-size: 12px;
}

.project-accounts-page .review-header {
  align-items: flex-start;
}

.project-accounts-page .header-actions {
  align-items: flex-start;
  padding-top: 0;
}

.project-accounts-page .main-nav-shell,
.project-accounts-page .header-settings-menu,
.project-accounts-page .user-menu {
  margin-top: 0;
}

.project-accounts-page .settings-trigger,
.project-accounts-page .user-menu-trigger {
  min-height: 44px;
}

.users-page {
  max-width: 1180px;
}

.users-page .review-header {
  margin-bottom: 18px;
}

.users-page .page-title {
  color: #14110e;
  font-size: 32px;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.users-page .sub {
  max-width: 760px;
}

.users-access-note {
  align-items: center;
  background: var(--surface-card);
  border: 1px solid rgba(224, 217, 208, 0.9);
  box-shadow: none;
  display: grid;
  gap: 2px 12px;
  grid-template-columns: 20px minmax(0, 1fr);
  margin-left: auto;
  max-width: 540px;
  padding: 12px 16px;
}

.users-access-note::before {
  align-items: center;
  background: var(--surface-low);
  border-radius: 999px;
  color: var(--primary);
  content: "i";
  display: inline-flex;
  flex: 0 0 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 650;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.users-access-note strong,
.users-access-note span {
  grid-column: 2;
  line-height: 1.28;
}

.users-access-note strong {
  font-size: 13px;
}

.users-access-note span {
  font-size: 12px;
}

.user-admin-grid {
  align-items: start;
  grid-template-columns: 1fr;
}

.role-access-card {
  margin-bottom: 18px;
}

.role-access-card .hint {
  margin-bottom: 14px;
}

.role-access-wrap {
  overflow-x: auto;
}

.role-access-table {
  min-width: 860px;
}

.role-access-table th,
.role-access-table td {
  font-size: 11px;
  line-height: 1.15;
  padding: 4px 6px;
  text-align: center;
  vertical-align: middle;
}

.role-access-table th:first-child,
.role-access-table td:first-child,
.role-access-table th:last-child,
.role-access-table td:last-child {
  text-align: left;
}

.role-access-table th {
  background: var(--surface-low);
  color: #6f5f62;
  font-size: 9px;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  padding-top: 5px;
  text-transform: uppercase;
}

.role-access-table td:first-child {
  color: #241c15;
  width: 160px;
}

.role-access-table td:last-child {
  color: #6c6156;
  line-height: 1.35;
  min-width: 190px;
}

.access-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.75);
  color: #8f3d51;
  display: inline-flex;
  font-size: 9px;
  font-weight: 650;
  gap: 5px;
  justify-content: center;
  letter-spacing: 0.04em;
  margin: 0;
  min-height: 26px;
  min-width: 104px;
  padding: 3px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.access-toggle:has(input:checked) {
  background: #e7f4e8;
  border-color: rgba(35, 107, 43, 0.22);
  color: #236b2b;
}

.access-toggle input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.switch-track {
  background: #d8c6ca;
  border-radius: 999px;
  flex: 0 0 28px;
  height: 15px;
  position: relative;
  transition: background 0.16s ease;
  width: 28px;
}

.switch-track::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(32, 24, 24, 0.18);
  content: "";
  height: 11px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.16s ease;
  width: 11px;
}

.access-toggle input:checked + .switch-track,
.switch-toggle input:checked + .switch-track {
  background: #236b2b;
}

.access-toggle input:checked + .switch-track::after,
.switch-toggle input:checked + .switch-track::after {
  transform: translateX(13px);
}

.switch-copy-off,
.access-toggle input:checked ~ .switch-copy-on,
.switch-toggle input:checked ~ .switch-copy-on {
  display: inline;
}

.switch-copy-on,
.access-toggle input:checked ~ .switch-copy-off,
.switch-toggle input:checked ~ .switch-copy-off {
  display: none;
}

.users-page .integration-card {
  border: 1px solid rgba(239, 210, 216, 0.5);
  box-shadow: 0 12px 30px rgba(58, 42, 27, 0.06);
  padding: 24px;
}

.users-page .integration-card-header {
  margin-bottom: 18px;
}

.users-page .kicker {
  color: #6f5f62;
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}

.users-page .integration-card h2 {
  color: #1f1711;
  font-size: 20px;
  line-height: 1.15;
}

.user-create-card .fields {
  display: grid;
  gap: 10px;
  grid-template-columns:
    minmax(120px, 0.9fr)
    minmax(190px, 1.25fr)
    minmax(120px, 0.9fr)
    minmax(120px, 0.9fr)
    minmax(150px, 1fr)
    minmax(150px, 1fr);
}

.users-page label {
  color: #5f4f52;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.users-page .user-photo-cell .image-pick-btn {
  margin-bottom: 0;
}

.users-page input,
.users-page select {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 0;
  font-size: 13px;
  min-height: 42px;
  padding: 10px 11px;
}

.users-page input:focus,
.users-page select:focus {
  border-color: rgba(201, 22, 59, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.08);
}

.user-create-card .hint {
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
  margin-top: 10px;
}

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

.user-create-card .btn {
  border-radius: 4px;
  font-size: 11px;
  min-height: 42px;
  min-width: 150px;
  width: auto;
}

.user-list-header {
  align-items: center;
}

.user-count-pill {
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.75);
  color: var(--primary);
  font-size: 11px;
  font-weight: 650;
  padding: 7px 10px;
  text-transform: uppercase;
}

.user-list-tools {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px);
  margin-bottom: 16px;
}

.user-tool-control {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.85);
  display: grid;
  gap: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  margin: 0;
  min-height: 42px;
}

.user-tool-control:focus-within {
  border-color: rgba(201, 22, 59, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.08);
}

.user-tool-icon {
  align-items: center;
  border-right: 1px solid rgba(239, 210, 216, 0.65);
  color: #c9163b;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 40px;
}

.user-tool-icon svg {
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.user-tool-control input,
.user-tool-control select {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 40px;
  padding: 9px 12px;
  width: 100%;
}

.user-tool-control input:focus,
.user-tool-control select:focus {
  border-color: transparent;
  box-shadow: none;
  outline: 0;
}

.user-role-filter {
  position: relative;
}

.user-role-filter .multi-select-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 0;
  display: grid;
  gap: 0;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  min-height: 42px;
  padding: 0;
}

.user-role-filter .multi-select-trigger:focus,
.user-role-filter .multi-select-trigger:focus-visible,
.user-role-filter .multi-select-trigger[aria-expanded="true"] {
  border-color: rgba(201, 22, 59, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.08);
  outline: 0;
}

.user-role-filter .user-tool-icon {
  min-height: 40px;
}

.user-role-filter-summary {
  min-width: 0;
  padding: 9px 12px;
}

.user-role-filter .multi-select-trigger strong {
  color: #2f2a24;
  font-size: 13px;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-filter .multi-select-chevron {
  background: transparent;
  border-radius: 0;
  color: #2f2a24;
  font-size: 16px;
  height: 100%;
  margin: 0;
  width: 100%;
}

.user-role-filter .multi-select-panel {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.95);
  box-shadow: 0 14px 34px rgba(49, 48, 46, 0.14);
  left: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
}

.user-role-filter .multi-select-search {
  padding: 9px 12px;
}

.user-role-filter .multi-select-select-all,
.user-role-filter .multi-select-option {
  font-size: 13px;
  padding: 10px 12px;
}

.user-role-list {
  display: grid;
  gap: 6px;
}

.user-role-list-head {
  align-items: center;
  background: var(--surface-low);
  border: 1px solid rgba(239, 210, 216, 0.62);
  color: #6f5f62;
  display: grid;
  font-size: 9px;
  font-weight: 750;
  gap: 8px;
  grid-template-columns: 72px minmax(96px, 0.68fr) minmax(92px, 0.78fr) minmax(92px, 0.78fr) minmax(170px, 1.35fr) 94px 104px 154px;
  letter-spacing: 0.05em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.user-role-row {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.55);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(49, 48, 46, 0.035);
  display: grid;
  gap: 7px;
  grid-template-columns: 72px minmax(96px, 0.68fr) minmax(92px, 0.78fr) minmax(92px, 0.78fr) minmax(170px, 1.35fr) 94px 104px 154px;
  margin: 0;
  padding: 5px 10px;
}

.user-role-row[hidden] {
  display: none;
}

.user-role-summary,
.user-photo-cell {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.user-photo-cell {
  flex-direction: row;
  gap: 5px;
}

.user-row-photo,
.user-role-summary .user-avatar {
  align-items: center;
  background: var(--surface-low);
  border: 0;
  border-radius: 4px;
  color: #c9163b;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 12px;
  font-weight: 750;
  height: 30px;
  justify-content: center;
  object-fit: cover;
  width: 30px;
}

.image-pick-btn {
  align-items: center;
  display: inline-flex;
  flex: 0 0 30px;
  height: 30px;
  justify-content: center;
  line-height: 1;
  margin: 0;
}

.image-pick-btn input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.image-pick-btn span {
  background: #fff;
  border: 1px solid rgba(201, 22, 59, 0.2);
  border-radius: 4px;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  font-weight: 750;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 30px;
}

.image-pick-btn svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 15px;
}

.user-role-summary strong,
.user-role-summary small,
.user-role-meta span,
.user-role-meta strong {
  display: block;
}

.user-role-summary strong {
  color: #211a14;
  font-size: 15px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-meta {
  display: none;
}

.user-role-meta span {
  color: #6f5f62;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.user-role-meta strong {
  color: #211817;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-field-cell {
  min-width: 0;
}

.user-field-cell::before {
  content: attr(data-label);
  display: none;
}

.user-field-cell input,
.user-field-cell select {
  min-height: 32px;
  padding: 5px 8px;
  width: 100%;
}

.user-field-cell .setting-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.75);
  color: var(--muted);
  display: flex;
  font-size: 9px;
  font-weight: 650;
  gap: 5px;
  justify-content: center;
  letter-spacing: 0.06em;
  margin: 0;
  min-height: 32px;
  padding: 5px 7px;
  text-transform: uppercase;
}

.user-field-cell .setting-toggle input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.user-role-actions {
  display: flex;
  gap: 6px;
  grid-column: auto;
  justify-content: flex-end;
  min-width: 0;
}

.users-page .mini-btn {
  align-items: center;
  background: #fff;
  border-color: rgba(201, 22, 59, 0.22);
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--primary);
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  min-height: 32px;
  min-width: 62px;
  padding: 5px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.users-page .mini-btn[type="submit"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.user-empty-state {
  background: var(--surface-card);
  border: 1px dashed rgba(239, 210, 216, 0.9);
  margin: 0;
  padding: 14px;
  text-align: center;
}

.user-pagination {
  align-items: center;
  border-top: 1px solid rgba(239, 210, 216, 0.55);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
}

.user-pagination .mini-btn {
  min-width: 86px;
  text-align: center;
}

.user-pagination .mini-btn:disabled {
  background: var(--surface-low);
  border-color: rgba(239, 210, 216, 0.5);
  color: #b98691;
  cursor: not-allowed;
}

.user-pagination-status {
  color: #6f5f62;
  font-size: 12px;
  font-weight: 600;
  min-width: 88px;
  text-align: center;
}

.setting-row {
  background: var(--surface-low);
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
}

.setting-row input,
.setting-row textarea,
.setting-row select,
.setting-row .editor-toolbar,
.setting-row .rich-email-editor {
  box-sizing: border-box;
  max-width: 100%;
}

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

.secret-status {
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.85);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
}

.secret-status.configured {
  background: #f0f8ef;
  border-color: rgba(60, 143, 78, 0.35);
  color: #2f7c40;
}

.setting-toggle {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin: 10px 0 0;
  text-transform: none;
}

.setting-toggle input {
  width: auto;
}

.setting-toggle span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.sticky-actions {
  bottom: 0;
  padding: 18px 0 0;
  position: sticky;
}

.unit-masters-page {
  background: #fff7f8;
  display: flex;
  flex-direction: column;
  max-width: 1480px;
}

.unit-masters-page .review-header,
.unit-masters-page .message-stack {
  order: 0;
}

.unit-masters-page .master-create-grid {
  order: 1;
}

.unit-masters-page .units-pricing-panel {
  order: 2;
}

.unit-masters-page > form {
  order: 3;
}

.unit-masters-page .review-header {
  margin-bottom: 14px;
}

.unit-masters-page .page-title {
  font-size: 34px;
  margin-bottom: 4px;
}

.unit-masters-page .panel {
  border: 1px solid rgba(239, 210, 216, 0.52);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(49, 48, 46, 0.035);
  padding: 18px;
}

.unit-masters-page .units-pricing-panel {
  padding: 12px 14px 10px;
}

.unit-masters-page .panel + .panel {
  margin-top: 12px;
}

.unit-masters-page .panel h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.unit-masters-page .sub {
  font-size: 12px;
  margin: 0;
}

.unit-masters-page .fields {
  gap: 12px;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.unit-masters-page label {
  color: #6f5f62;
  font-size: 9px;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.unit-masters-page input,
.unit-masters-page select {
  background: #fff;
  border: 1px solid #efd2d8;
  border-radius: 6px;
  font-size: 13px;
  min-height: 36px;
  padding: 7px 9px;
}

.unit-masters-page .btn {
  border-radius: 6px;
  font-size: 11px;
  min-height: 34px;
  padding: 8px 16px;
}

.unit-masters-page .unit-import-btn {
  flex: 0 0 auto;
  justify-self: start;
  min-width: 112px;
  padding-left: 12px;
  padding-right: 12px;
  width: auto;
}

.unit-masters-page .actions {
  gap: 8px;
  margin-top: 8px;
}

.unit-masters-page .master-compact-intro {
  margin-bottom: 12px;
  padding: 10px 14px;
}

.unit-masters-page .master-filter-card {
  margin-bottom: 12px;
}

.master-create-grid {
  gap: 14px;
  margin-bottom: 18px;
}

.unit-masters-page .master-create-grid .panel + .panel {
  margin-top: 0;
}

.unit-masters-page .master-create-grid {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unit-masters-page .master-add-card {
  background: #fff;
  display: grid;
  gap: 16px;
  grid-template-rows: auto 1fr auto;
  min-height: 198px;
  padding: 20px;
}

.unit-masters-page .master-add-card:not(.master-add-unit) {
  height: 256px;
  min-height: 256px;
}

.unit-masters-page .master-add-card h2 {
  align-items: center;
  color: #211817;
  display: flex;
  font-size: 18px;
  gap: 8px;
  margin: 0;
}

.unit-masters-page .master-card-icon {
  color: #c9163b;
  font-size: 17px;
  line-height: 1;
}

.unit-masters-page .master-add-card:not(.master-add-unit) .fields {
  align-content: start;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.unit-masters-page .master-add-card:not(.master-add-unit) .actions {
  align-self: end;
  margin-top: 0;
}

.unit-masters-page .master-add-card:not(.master-add-unit) .btn {
  width: 100%;
}

.unit-masters-page .master-add-card:not(.master-add-unit) input,
.unit-masters-page .master-add-card:not(.master-add-unit) select {
  width: 100%;
}

.unit-masters-page .master-create-grid form:last-child {
  grid-column: 1 / -1;
}

.unit-masters-page .master-add-unit {
  background: #fff;
  border-color: rgba(239, 210, 216, 0.52);
  align-items: end;
  box-shadow: 0 6px 16px rgba(49, 48, 46, 0.035);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  padding: 22px;
}

.unit-masters-page .master-add-unit h2 {
  color: #211817;
  grid-column: 1 / -1;
  margin-bottom: 4px;
  writing-mode: horizontal-tb;
}

.unit-masters-page .master-add-unit .master-card-icon,
.unit-masters-page .master-add-unit label {
  color: #6f5f62;
}

.unit-masters-page .master-add-unit .fields {
  gap: 8px;
  grid-template-columns:
    minmax(150px, 1.2fr)
    minmax(70px, 0.55fr)
    minmax(74px, 0.56fr)
    minmax(92px, 0.72fr)
    repeat(4, minmax(92px, 0.72fr))
    minmax(78px, 0.6fr)
    minmax(82px, 0.65fr)
    minmax(54px, 0.42fr)
    minmax(76px, 0.58fr);
}

.unit-masters-page .master-add-unit input,
.unit-masters-page .master-add-unit select {
  background: #fff;
  border-color: #efd2d8;
  color: #211817;
}

.unit-masters-page .master-add-unit input::placeholder {
  color: rgba(111, 95, 98, 0.68);
}

.unit-masters-page .master-add-unit option {
  color: #211817;
}

.unit-masters-page .master-add-unit .actions {
  align-self: stretch;
  margin-top: 0;
}

.unit-masters-page .master-add-unit .btn {
  background: var(--surface-low);
  color: #c9163b;
  height: 36px;
  min-width: 104px;
  padding-left: 10px;
  padding-right: 10px;
}

.payment-milestones-page .compact-master-section {
  order: 1;
}

.payment-milestones-page .master-create-grid {
  order: 2;
}

.payment-milestones-page .master-add-card:not(.master-add-unit) {
  height: auto;
  min-height: 0;
}

.payment-milestones-page .master-create-grid {
  align-items: stretch;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 0.9fr) minmax(0, 1.65fr);
}

.payment-milestones-page .master-create-grid .fields,
.payment-milestones-page .master-add-card:not(.master-add-unit) .fields {
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-milestones-page .master-add-card:nth-child(3) .fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.payment-milestones-page .master-add-card:nth-child(3) .fields > div:first-child,
.payment-milestones-page .master-add-card:nth-child(3) .fields > div:nth-child(4),
.payment-milestones-page .master-add-card:nth-child(3) .fields > div:nth-child(7) {
  grid-column: span 2;
}

.payment-milestones-page .master-add-card:nth-child(3) {
  grid-column: 1 / -1;
  padding: 16px;
}

.payment-milestones-page .master-add-card:nth-child(3) h2 {
  margin-bottom: 0;
}

.payment-milestones-page .master-add-card:nth-child(3) .actions {
  justify-content: flex-end;
}

.payment-milestones-page .payment-filter-strip {
  grid-template-columns: repeat(3, minmax(160px, 1fr)) minmax(180px, 1.1fr) auto auto;
}

.payment-milestones-page .payment-date-field {
  min-width: 0;
  position: relative;
}

.payment-milestones-page .payment-date-field input[data-date-display] {
  box-sizing: border-box;
  display: block;
  max-width: none;
  padding-right: 26px;
  width: 100%;
}

.payment-milestones-page .payment-date-field .native-date-picker {
  bottom: 0;
  box-sizing: border-box;
  height: 30px;
  margin-left: 0;
  min-height: 30px;
  min-width: 26px;
  padding: 0;
  position: absolute;
  right: 0;
  top: auto;
  transform: none;
  width: 26px;
}

.payment-milestones-page .payment-date-field input.native-date-picker {
  max-width: 26px;
  width: 26px;
}

.payment-milestones-page .payment-date-field .native-date-picker::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
  width: 18px;
}

.payment-milestones-page .master-table .payment-date-field .native-date-picker {
  bottom: auto;
  height: 28px;
  min-height: 28px;
  min-width: 30px;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
}

.payment-milestones-page .master-table {
  min-width: 1580px;
  table-layout: fixed;
}

.payment-milestones-page .master-table th,
.payment-milestones-page .master-table td {
  font-size: 11px;
  line-height: 1.15;
  padding: 4px 5px;
}

.payment-milestones-page .master-table input,
.payment-milestones-page .master-table select {
  font-size: 11px;
  min-height: 28px;
  min-width: 0;
  padding: 4px 6px;
}

.payment-milestones-page .master-table th:nth-child(2),
.payment-milestones-page .master-table td:nth-child(2) {
  width: 58px;
}

.payment-milestones-page .master-table th:nth-child(3),
.payment-milestones-page .master-table td:nth-child(3) {
  width: 44px;
}

.payment-milestones-page .master-table th:nth-child(5),
.payment-milestones-page .master-table td:nth-child(5),
.payment-milestones-page .master-table th:nth-child(6),
.payment-milestones-page .master-table td:nth-child(6) {
  width: 70px;
}

.payment-milestones-page .master-table th:nth-child(1),
.payment-milestones-page .master-table td:nth-child(1) {
  width: 150px;
}

.payment-milestones-page .master-table th:nth-child(4),
.payment-milestones-page .master-table td:nth-child(4) {
  width: 270px;
}

.payment-milestones-page .master-table th:nth-child(7),
.payment-milestones-page .master-table td:nth-child(7) {
  width: 170px;
}

.payment-milestones-page .master-table th:nth-child(8),
.payment-milestones-page .master-table td:nth-child(8),
.payment-milestones-page .master-table th:nth-child(10),
.payment-milestones-page .master-table td:nth-child(10),
.payment-milestones-page .master-table th:nth-child(13),
.payment-milestones-page .master-table td:nth-child(13) {
  width: 100px;
}

.payment-milestones-page .master-table th:nth-child(9),
.payment-milestones-page .master-table td:nth-child(9),
.payment-milestones-page .master-table th:nth-child(11),
.payment-milestones-page .master-table td:nth-child(11),
.payment-milestones-page .master-table th:nth-child(12),
.payment-milestones-page .master-table td:nth-child(12) {
  width: 124px;
}

.payment-milestones-page .master-table th:nth-child(14),
.payment-milestones-page .master-table td:nth-child(14) {
  width: 58px;
}

.unit-masters-page .review-table-wrap {
  margin-top: 6px;
}

.unit-masters-page .unit-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 14px;
}

.unit-masters-page .unit-pagination .pagination-row {
  margin-top: 0;
}

.unit-masters-page .compact-master-section {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 26px 28px 18px;
}

.unit-masters-page .compact-master-section h2 {
  color: #2f2a24;
  display: block;
  font-size: 20px;
  margin: 0 0 3px;
}

.unit-masters-page .compact-master-section .sub {
  color: #6f5f62;
  display: block;
  font-size: 11px;
  margin-bottom: 16px;
}

.master-management-grid {
  display: grid;
  align-items: start;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.unit-masters-page .master-management-grid .compact-master-section {
  height: auto;
  margin-top: 0;
}

.master-section-filter-form {
  display: none;
}

.panel-filter-strip {
  align-items: end;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.45);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 0 12px;
  padding: 10px;
}

.floor-panel-filter {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
}

.unit-masters-page .master-panel-checklist {
  min-width: 0;
}

.unit-masters-page .master-panel-checklist .multi-select-trigger {
  min-height: 36px;
  padding: 8px 10px;
}

.unit-masters-page .master-panel-checklist .multi-select-panel {
  min-width: min(360px, 88vw);
}

.master-table input,
.master-table select {
  min-width: 90px;
}

.unit-masters-page .master-table th,
.unit-masters-page .master-table td {
  font-size: 12px;
  padding: 6px 7px;
}

.unit-masters-page .units-pricing-panel .master-table th,
.unit-masters-page .units-pricing-panel .master-table td {
  font-size: 11.5px;
  line-height: 1.2;
  padding: 4px 6px;
}

.unit-masters-page .units-pricing-panel .master-table th:first-child,
.unit-masters-page .units-pricing-panel .master-table td:first-child {
  min-width: 150px;
  white-space: nowrap;
}

.unit-masters-page .master-table th {
  background: #f8f6f4;
  color: #6f5f62;
  font-size: 9px;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.unit-masters-page .master-table input,
.unit-masters-page .master-table select {
  background: #fff;
  border-color: #efd2d8;
  min-height: 32px;
  min-width: 76px;
  padding: 5px 8px;
}

.unit-masters-page .units-pricing-panel .master-table input,
.unit-masters-page .units-pricing-panel .master-table select {
  border-radius: 5px;
  font-size: 12px;
  min-height: 28px;
  min-width: 68px;
  padding: 4px 7px;
}

.unit-masters-page .master-table td input,
.unit-masters-page .master-table td select {
  max-width: 100%;
}

.unit-masters-page .compact-master-section .review-table-wrap {
  flex: 1;
  max-width: none;
}

.unit-masters-page .compact-master-section .master-table {
  min-width: 0;
  table-layout: fixed;
}

.unit-masters-page #projects-section .master-table th:nth-child(1),
.unit-masters-page #projects-section .master-table td:nth-child(1) {
  width: 32%;
}

.unit-masters-page #projects-section .master-table th:nth-child(2),
.unit-masters-page #projects-section .master-table td:nth-child(2) {
  width: 16%;
}

.unit-masters-page #projects-section .master-table th:nth-child(3),
.unit-masters-page #projects-section .master-table td:nth-child(3) {
  width: 31%;
}

.unit-masters-page #projects-section .master-table th:nth-child(4),
.unit-masters-page #projects-section .master-table td:nth-child(4) {
  width: 15%;
}

.unit-masters-page #projects-section .master-table th:nth-child(5),
.unit-masters-page #projects-section .master-table td:nth-child(5),
.unit-masters-page #blocks-section .master-table th:nth-child(3),
.unit-masters-page #blocks-section .master-table td:nth-child(3),
.unit-masters-page #floors-section .master-table th:nth-child(4),
.unit-masters-page #floors-section .master-table td:nth-child(4) {
  width: 72px;
}

.unit-masters-page #blocks-section .master-table th:nth-child(1),
.unit-masters-page #blocks-section .master-table td:nth-child(1) {
  width: 42%;
}

.unit-masters-page #floors-section .master-table th:nth-child(1),
.unit-masters-page #floors-section .master-table td:nth-child(1) {
  width: 34%;
}

.unit-masters-page #floors-section .master-table th:nth-child(3),
.unit-masters-page #floors-section .master-table td:nth-child(3) {
  width: 90px;
}

.unit-masters-page .active-switch {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  margin: 0;
  min-width: 46px;
  width: 46px;
}

.unit-masters-page .units-pricing-panel .active-switch {
  height: 20px;
  min-width: 38px;
  width: 38px;
}

.unit-masters-page .active-switch input,
.unit-masters-page .master-table .active-switch input {
  height: 1px;
  min-height: 1px;
  min-width: 1px;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.unit-masters-page .active-switch span {
  background: #efd2d8;
  border: 1px solid #efd2d8;
  border-radius: 999px;
  display: block;
  height: 24px;
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
  width: 46px;
}

.unit-masters-page .units-pricing-panel .active-switch span {
  height: 20px;
  width: 38px;
}

.unit-masters-page .active-switch span::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(55, 42, 31, 0.25);
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.18s ease;
  width: 18px;
}

.unit-masters-page .units-pricing-panel .active-switch span::after {
  height: 14px;
  width: 14px;
}

.unit-masters-page .active-switch input:checked + span {
  background: #c9163b;
  border-color: #c9163b;
}

.unit-masters-page .active-switch input:checked + span::after {
  transform: translateX(22px);
}

.unit-masters-page .units-pricing-panel .active-switch input:checked + span::after {
  transform: translateX(18px);
}

.unit-masters-page .active-switch input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(201, 22, 59, 0.18);
  outline: 2px solid #c9163b;
  outline-offset: 2px;
}

.unit-master-scroll {
  max-height: 56vh;
  max-width: 100%;
  overflow: auto;
}

.master-pagination {
  align-items: center;
  border-top: 1px solid rgba(239, 210, 216, 0.35);
  justify-content: flex-start;
  margin: 6px 0 0;
  padding-top: 8px;
}

.wide-master-table {
  min-width: 1240px;
}

.units-pricing-panel .wide-master-table {
  min-width: 1280px;
}

.units-pricing-panel {
  background: #fff;
}

.unit-masters-page .units-pricing-panel h2 {
  margin-bottom: 2px;
}

.unit-masters-page .units-pricing-panel form {
  margin: 0;
}

.unit-masters-page .units-pricing-panel .sticky-actions {
  margin-top: 6px;
  padding-top: 4px;
  position: static;
}

.unit-masters-page .units-pricing-panel .sticky-actions .btn,
.unit-masters-page .units-pricing-panel .master-pagination .btn {
  min-height: 30px;
  padding: 7px 14px;
}

.master-filter-strip {
  align-items: end;
  background: #fff;
  border: 1px solid rgba(239, 210, 216, 0.45);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1.2fr) auto auto;
  margin: 14px 0 12px;
  padding: 12px;
}

.units-pricing-panel .master-filter-strip {
  gap: 8px;
  grid-template-columns: minmax(130px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(180px, 1.4fr) auto auto;
  margin: 8px 0 6px;
  padding: 8px 9px;
}

.unit-filter-summary {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 7px;
  margin: 0 0 10px;
}

.unit-filter-summary strong {
  background: #fff8f3;
  border: 1px solid rgba(222, 207, 191, 0.72);
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  padding: 4px 8px;
}

.master-filter-strip .btn {
  min-height: 36px;
}

.units-pricing-panel .master-filter-strip .multi-select-checklist {
  align-self: end;
}

.units-pricing-panel .master-filter-strip .multi-select-trigger {
  border-radius: 6px;
  min-height: 36px;
  padding: 6px 10px;
}

.units-pricing-panel .master-filter-strip .multi-select-trigger strong {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.2;
}

.units-pricing-panel .master-filter-strip .multi-select-chevron {
  flex-basis: 22px;
  font-size: 14px;
  height: 22px;
  margin-left: 8px;
}

.master-save-row {
  justify-content: flex-end;
  margin: 10px 0 20px;
}

.document-body {
  background: #ece7e0;
}

.document-page {
  background: #fff;
  box-shadow: 0 12px 40px rgba(49, 48, 46, 0.12);
  margin: 32px auto;
  max-width: 860px;
  min-height: 1000px;
  padding: 54px;
}

.document-header {
  align-items: flex-start;
  border-bottom: 2px solid var(--primary);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
}

.document-header h1 {
  font-size: 38px;
}

.document-meta {
  display: grid;
  gap: 6px;
  text-align: right;
}

.document-meta span,
.document-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-grid-two {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0;
}

.document-grid-two strong {
  display: block;
  font-size: 18px;
  margin-top: 8px;
}

.document-grid-two p {
  color: var(--muted);
  margin: 6px 0 0;
}

.document-section {
  margin-top: 30px;
}

.document-section h2 {
  color: var(--primary);
  font-size: 24px;
  margin: 0 0 16px;
}

.document-section p {
  color: var(--muted);
  line-height: 1.7;
}

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

.document-table th,
.document-table td {
  border-bottom: 1px solid rgba(239, 210, 216, 0.55);
  line-height: 1.32;
  padding: 9px 0;
  text-align: left;
  vertical-align: top;
}

.document-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 42%;
}

.document-footer {
  align-items: center;
  border-top: 1px solid rgba(239, 210, 216, 0.55);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 20px;
}

@media print {
  .document-body {
    background: #fff;
  }

  .document-page {
    box-shadow: none;
    margin: 0;
    max-width: none;
    min-height: 0;
    padding: 24px;
  }

  .print-button {
    display: none;
  }
}

.booking-shell {
  --booking-crimson: #c41e3a;
  --booking-crimson-dark: #8b1429;
  --booking-crimson-light: #f8e8eb;
  --booking-gold: #b8963c;
  --booking-gold-light: #f7f0e3;
  --booking-ink: #1a1018;
  --booking-ink-mid: #4a3d44;
  --booking-ink-light: #8a7a82;
  --booking-surface: #fdfaf8;
  --booking-border: #e8dfd8;
  --booking-border-strong: #c8b8b0;
  --booking-success: #2d6a4f;
  background: var(--booking-surface);
  color: var(--booking-ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

.booking-shell .booking-topbar {
  background: var(--booking-crimson);
  border-bottom: 0;
  box-shadow: 0 2px 20px rgba(196, 30, 58, 0.25);
  grid-template-columns: auto 280px minmax(0, 1fr);
  padding-top: 14px;
}

.booking-shell .brand-name,
.booking-shell .brand-legal,
.booking-shell .topbar-cancel,
.booking-shell .progress-meter {
  color: #fff;
}

.booking-shell .brand-logo {
  filter: brightness(0) invert(1);
  height: 44px;
  width: 44px;
}

.booking-shell .brand-name,
.booking-shell h1,
.booking-shell h2,
.booking-shell h3,
.booking-shell .cpp-hero strong,
.booking-shell .unit-card .value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.booking-shell .brand-name {
  font-size: 20px;
  letter-spacing: 0;
}

.booking-shell .brand-legal {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.82;
}

.booking-shell .topbar-cancel {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  font-weight: 600;
}

.booking-shell .steps {
  gap: 0;
  padding-bottom: 0;
}

.booking-shell .step {
  background: transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
  min-width: 116px;
  padding: 12px 10px;
}

.booking-shell .step.active,
.booking-shell .step.done {
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.booking-shell .step.active {
  border-bottom-color: #fff;
}

.booking-shell .step.done {
  border-bottom-color: rgba(255, 255, 255, 0.62);
}

.booking-shell .progress-track {
  background: rgba(255, 255, 255, 0.22);
  height: 4px;
}

.booking-shell .progress-fill {
  background: #fff;
}

.booking-shell .main {
  padding-top: 32px;
}

.booking-shell h1 {
  font-size: 36px;
  font-weight: 500;
}

.booking-shell .kicker,
.booking-shell label,
.booking-shell .section-heading span,
.booking-shell .unit-card .label,
.booking-shell .cpp-table th,
.booking-shell .cpp-hero span {
  letter-spacing: 0.1em;
}

.booking-shell .kicker,
.booking-shell .panel h2,
.booking-shell .section-heading h3 {
  color: var(--booking-crimson);
}

.booking-shell .panel,
.booking-shell .auth-card {
  border: 1px solid var(--booking-border);
  border-radius: 8px;
  box-shadow: none;
}

.booking-shell .panel h2 {
  font-size: 25px;
  font-weight: 500;
}

.booking-shell .form-section {
  border-top-color: var(--booking-border);
}

.booking-shell .section-heading h3 {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.booking-shell label {
  color: var(--booking-ink-mid);
  font-size: 11px;
  font-weight: 600;
}

.booking-shell input,
.booking-shell select,
.booking-shell textarea {
  background: #fff;
  border: 1px solid var(--booking-border-strong);
  border-radius: 7px;
  color: var(--booking-ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  padding: 10px 14px;
}

.booking-shell input:focus,
.booking-shell select:focus,
.booking-shell textarea:focus {
  border-color: var(--booking-crimson);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.08);
}

.booking-shell .prefill-field input {
  padding-right: 94px;
}

.booking-shell .btn {
  border-radius: 8px;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
}

.booking-shell .btn:not(.btn-secondary),
.booking-shell .unit-card,
.booking-shell .cpp-hero div {
  background: var(--booking-crimson);
  color: #fff;
}

.booking-shell .btn:not(.btn-secondary):hover {
  background: var(--booking-crimson-dark);
}

.booking-shell .btn-secondary {
  background: #fff;
  border: 1px solid var(--booking-border-strong);
  color: var(--booking-ink-mid);
}

.booking-shell .toggle-card,
.booking-shell .check-row,
.booking-shell .signature-pad-card,
.booking-shell .terms-scroll-panel,
.booking-shell .cpp-breakdown {
  background: var(--booking-surface);
  border: 1px solid var(--booking-border);
}

.booking-shell .check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-shell .check-item {
  align-items: center;
  border: 1px solid var(--booking-border-strong);
  border-radius: 6px;
  color: var(--booking-ink-mid);
  cursor: pointer;
  display: inline-flex;
  font-size: 12.5px;
  gap: 6px;
  letter-spacing: 0;
  padding: 7px 12px;
  text-transform: none;
}

.booking-shell .check-item:hover {
  background: var(--booking-crimson-light);
  border-color: var(--booking-crimson);
  color: var(--booking-crimson);
}

.booking-shell .check-item input {
  accent-color: var(--booking-crimson);
  margin: 0;
  padding: 0;
  width: 14px;
}

.booking-shell .copy-address-check {
  justify-content: flex-start;
  margin: 0 0 2px;
  width: fit-content;
}

.booking-shell .booking-source-grid {
  margin-top: 4px;
}

.booking-shell .referral-friends > label {
  margin-top: 6px;
}

.booking-shell .summary-row,
.booking-shell .cpp-table th,
.booking-shell .cpp-table td,
.booking-shell .document-table th,
.booking-shell .document-table td {
  border-bottom-color: var(--booking-border);
}

.booking-shell .signature-pad {
  border-color: var(--booking-border-strong);
}

.booking-shell .field-invalid {
  border-color: var(--danger) !important;
}

.booking-shell .booking-topbar {
  gap: 12px;
  padding: 10px 20px 0;
}

.booking-shell .brand-logo {
  height: 38px;
  width: 38px;
}

.booking-shell .brand-lockup {
  gap: 10px;
}

.booking-shell .brand-name {
  font-size: 18px;
}

.booking-shell .brand-legal {
  font-size: 9px;
}

.booking-shell .topbar-cancel {
  min-height: 30px;
  padding: 6px 10px;
}

.booking-shell .step {
  font-size: 11px;
  min-width: 104px;
  padding: 9px 8px;
}

.booking-shell .progress-meter {
  gap: 5px;
  padding-bottom: 9px;
}

.booking-shell .main {
  padding: 22px 24px 48px;
}

.booking-shell .hero {
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.booking-shell h1 {
  font-size: 30px;
  line-height: 1.1;
}

.booking-shell .sub {
  font-size: 12.5px;
  margin-top: 5px;
}

.booking-shell .unit-card {
  min-width: 236px;
  padding: 12px 16px;
}

.booking-shell .unit-card .value {
  font-size: 19px;
}

.booking-shell .form-grid {
  gap: 18px;
}

.booking-shell .panel {
  padding: 20px;
}

.booking-shell .panel + .panel {
  margin-top: 14px;
}

.booking-shell .panel h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.booking-shell .form-section {
  padding-top: 16px;
}

.booking-shell .form-section + .form-section {
  margin-top: 16px;
}

.booking-shell .section-heading {
  margin-bottom: 10px;
}

.booking-shell .fields,
.booking-shell .upload-grid {
  gap: 12px;
}

.booking-shell label {
  font-size: 10px;
  margin-bottom: 5px;
}

.booking-shell input,
.booking-shell select,
.booking-shell textarea {
  font-size: 13px;
  min-height: 38px;
  padding: 8px 11px;
}

.booking-shell textarea {
  min-height: 76px;
}

.booking-shell .check-group {
  gap: 6px;
}

.booking-shell .check-item {
  font-size: 12px;
  padding: 6px 10px;
}

.booking-shell .toggle-card,
.booking-shell .check-row,
.booking-shell .signature-pad-card,
.booking-shell .terms-scroll-panel,
.booking-shell .cpp-breakdown {
  padding: 12px;
}

.booking-shell .toggle-card {
  margin-top: 16px;
}

.booking-shell .co-applicant {
  margin-top: 16px;
  padding-top: 16px;
}

.booking-shell .cpp-hero {
  gap: 10px;
  margin-bottom: 16px;
}

.booking-shell .cpp-hero div {
  padding: 12px;
}

.booking-shell .cpp-hero strong {
  font-size: 20px;
}

.booking-shell .summary {
  gap: 6px;
}

.booking-shell .summary-row {
  font-size: 13px;
  padding: 8px 0;
}

.booking-shell .cpp-table th,
.booking-shell .cpp-table td {
  font-size: 12px;
  padding: 8px 10px;
}

.booking-shell .signature-pad-wrap {
  height: 130px;
  margin-top: 10px;
}

.booking-shell .signature-pad {
  height: 100%;
  margin-top: 0;
}

.booking-shell .terms-scroll-panel {
  max-height: 190px;
}

.booking-shell .hint {
  font-size: 12px;
  margin-top: 12px;
}

.booking-shell .step-actions {
  margin-top: 18px;
  padding-top: 16px;
}

@media (max-width: 900px) {
  body {
    font-size: 14px;
  }

  .site-home-nav {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .site-home-brand img {
    height: 40px;
    width: 40px;
  }

  .site-home-nav nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .site-home-nav nav a {
    font-size: 10px;
    padding: 9px 8px;
    text-align: center;
  }

  .cpp-detail-grid {
    grid-template-columns: 1fr;
  }

  .cpp-cell {
    border-right: 0;
  }

  .cpp-charge-cell {
    grid-row: auto;
  }

  .cpp-bank-box > div {
    grid-template-columns: 1fr;
  }

  .cpp-grand-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-option-grid,
  .cpp-edit-form .discount-row {
    grid-template-columns: 1fr;
  }

  .site-hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 243, 0.96)),
      url("../img/omsree-logo-official.png") right 18px top 24px / 170px no-repeat;
    gap: 24px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 52px 14px 34px;
  }

  .site-hero h1 {
    font-size: 38px;
    line-height: 1;
    max-width: 100%;
  }

  .site-hero p {
    font-size: 15px;
    line-height: 1.55;
  }

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

  .site-primary-link,
  .site-secondary-link {
    width: 100%;
  }

  .site-hero-panel div {
    padding: 18px;
  }

  .site-hero-panel strong {
    font-size: 17px;
  }

  .site-section,
  .site-process {
    padding: 38px 14px;
  }

  .site-feature-grid,
  .site-process {
    grid-template-columns: 1fr;
  }

  .site-feature-grid article {
    padding: 18px;
  }

  .site-home-footer {
    align-items: flex-start;
    display: grid;
    gap: 8px;
    padding: 18px 14px;
  }

  .booking-topbar {
    display: block;
    padding: 10px 12px 0;
  }

  .brand-lockup {
    gap: 9px;
  }

  .brand-logo {
    height: 38px;
    width: 38px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-legal {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .main {
    padding: 18px 12px 28px;
  }

  .review-page {
    padding: 18px 12px 36px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.05;
  }

  .page-title {
    margin-top: 12px;
  }

  .sub {
    font-size: 13px;
    line-height: 1.45;
  }

  .hero {
    gap: 14px;
    margin-bottom: 18px;
  }

  .steps {
    gap: 7px;
    margin-top: 10px;
    padding-bottom: 9px;
  }

  .progress-meter {
    grid-column: auto;
    padding-bottom: 10px;
  }

  .step {
    border-radius: 6px 6px 0 0;
    font-size: 11px;
    min-width: 96px;
    padding: 8px 9px;
  }

  .hero,
  .form-grid {
    display: block;
  }

  .unit-card,
  aside.panel {
    margin-top: 16px;
  }

  .unit-card {
    min-width: 0;
    padding: 14px 16px;
  }

  .unit-card .value {
    font-size: 18px;
  }

  .panel {
    border-radius: 7px;
    padding: 18px 14px;
  }

  .review-list-panel {
    padding: 14px 12px 0;
  }

  .dashboard-heading {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .dashboard-title-block {
    gap: 4px;
  }

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

  .review-list-panel .metric-card {
    min-height: 54px;
    padding: 8px 9px;
  }

  .review-list-panel .metric-card strong {
    font-size: 19px;
  }

  .panel + .panel {
    margin-top: 16px;
  }

  .panel h2 {
    font-size: 21px;
    margin-bottom: 16px;
  }

  .panel h3 {
    font-size: 17px;
  }

  .section-heading {
    align-items: flex-start;
    display: block;
  }

  .section-heading span {
    display: block;
    margin-top: 4px;
  }

  .fields,
  .upload-grid {
    gap: 14px;
  }

  label {
    font-size: 10px;
    margin-bottom: 5px;
  }

  input,
  select,
  textarea {
    font-size: 14px;
    padding: 10px;
  }

  .prefill-field input {
    padding-right: 84px;
  }

  .phone-input-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .phone-country-select {
    flex-basis: 132px;
    min-width: 0;
  }

  .phone-number-field {
    flex: 1 1 150px;
    min-width: 150px;
  }

  .prefill-field span {
    font-size: 9px;
    right: 6px;
  }

  .alert {
    border-radius: 7px;
    font-size: 13px;
    margin-bottom: 16px;
    padding: 14px 15px;
  }

  .check-row {
    display: grid;
  }

  .booking-shell .booking-topbar {
    padding: 8px 10px 0;
  }

  .booking-shell .brand-logo {
    height: 32px;
    width: 32px;
  }

  .booking-shell .brand-name {
    font-size: 16px;
  }

  .booking-shell .brand-legal {
    font-size: 7.5px;
  }

  .booking-shell .main {
    padding: 12px 10px 24px;
  }

  .booking-shell h1 {
    font-size: 24px;
  }

  .booking-shell .hero {
    gap: 10px;
    margin-bottom: 12px;
  }

  .booking-shell .steps {
    gap: 4px;
    margin-top: 8px;
    padding-bottom: 6px;
  }

  .booking-shell .step {
    font-size: 10.5px;
    min-width: 88px;
    padding: 7px 8px;
  }

  .booking-shell .progress-meter {
    padding-bottom: 7px;
  }

  .booking-shell .unit-card,
  .booking-shell aside.panel {
    margin-top: 10px;
  }

  .booking-shell .unit-card {
    padding: 10px 12px;
  }

  .booking-shell .panel {
    padding: 14px 12px;
  }

  .booking-shell .panel + .panel {
    margin-top: 10px;
  }

  .booking-shell .panel h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .booking-shell .fields,
  .booking-shell .upload-grid {
    gap: 10px;
  }

  .booking-shell input,
  .booking-shell select,
  .booking-shell textarea {
    font-size: 13px;
    min-height: 36px;
    padding: 8px 10px;
  }

  .booking-shell .check-item {
    font-size: 11.5px;
    padding: 5px 9px;
  }

  .booking-shell .toggle-card,
  .booking-shell .check-row,
  .booking-shell .signature-pad-card,
  .booking-shell .terms-scroll-panel,
  .booking-shell .cpp-breakdown {
    padding: 10px;
  }

  .review-header {
    margin-bottom: 18px;
  }

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

  .discount-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

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

  .review-header,
  .detail-grid,
  .settings-intro {
    display: block;
  }

  .review-detail-page .review-header {
    margin-bottom: 12px;
  }

  .review-detail-page .detail-reference-number {
    font-size: 21px;
  }

  .review-detail-page .applicant-card .summary,
  .review-detail-page .document-grid {
    grid-template-columns: 1fr;
  }

  .review-detail-page .summary-row,
  .review-detail-page .applicant-card .summary-row {
    display: flex;
  }

  .review-detail-page .summary-row strong,
  .review-detail-page .applicant-card .summary-row strong {
    text-align: right;
  }

  .review-page > .review-header:has(+ .detail-grid) {
    margin-bottom: 12px;
  }

  .review-page > .review-header:has(+ .detail-grid) .page-title {
    font-size: 21px;
  }

  .review-page:has(.detail-grid) .applicant-card .summary,
  .review-page:has(.detail-grid) .document-grid {
    grid-template-columns: 1fr;
  }

  .review-page:has(.detail-grid) .summary-row,
  .review-page:has(.detail-grid) .applicant-card .summary-row {
    display: flex;
  }

  .review-page:has(.detail-grid) .summary-row strong,
  .review-page:has(.detail-grid) .applicant-card .summary-row strong {
    text-align: right;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    margin-top: 12px;
    gap: 8px;
  }

  .main-nav-shell {
    grid-column: 1 / -1;
  }

  .main-nav-toggle {
    display: none;
  }

  .hamburger-lines {
    display: grid;
    gap: 3px;
    width: 16px;
  }

  .hamburger-lines span {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
  }

  .main-nav {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 10px;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .main-nav-link,
  .main-nav-group-trigger {
    font-size: 14px;
    justify-content: flex-start;
    min-height: 30px;
    padding: 0 0 7px;
    text-align: left;
    width: auto;
  }

  .settings-trigger {
    justify-content: flex-start;
    min-height: 30px;
    padding: 0 0 7px;
    width: auto;
  }

  .main-nav-group {
    width: auto;
  }

  .main-nav-dropdown {
    border-radius: 7px;
    box-shadow: none;
    margin-top: 6px;
    min-width: 0;
    position: static;
    width: 100%;
  }

  .main-nav-dropdown a {
    text-align: center;
    white-space: normal;
  }

  .header-actions .btn,
  .actions .btn,
  .step-actions .btn,
  .notification-trigger,
  .user-menu-trigger {
    font-size: 11px;
    min-height: 38px;
    min-width: 0;
    padding: 9px 10px;
    text-align: center;
    width: 100%;
  }

  .user-menu-trigger {
    justify-content: center;
    padding: 0;
    width: 38px;
  }

  .user-menu {
    margin-left: 0;
  }

  .notification-trigger {
    height: 38px;
    width: 38px;
  }

  .notification-panel {
    left: 0;
    min-width: 0;
    right: auto;
    width: min(280px, 90vw);
  }

  .user-avatar {
    height: 30px;
    width: 30px;
  }

  .user-menu-name {
    max-width: 90px;
  }

  .user-menu-panel {
    left: auto;
    max-width: calc(100vw - 24px);
    min-width: 220px;
    right: 0;
  }

  .step-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .btn {
    border-radius: 5px;
    font-size: 11px;
    letter-spacing: 0.05em;
    min-height: 38px;
    padding: 9px 12px;
  }

  .mini-btn {
    border-radius: 5px;
    font-size: 11px;
    min-height: 32px;
    padding: 7px 8px;
  }

  .filter-row {
    gap: 7px;
  }

  .review-controls {
    margin-top: 14px;
  }

  .list-toolbar {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .dashboard-page .list-toolbar {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .search-box,
  .project-filter-checklist .multi-select-trigger,
  .date-range-trigger {
    min-height: 34px;
  }

  .project-filter-checklist .multi-select-panel {
    width: 100%;
  }

  .date-range-panel {
    left: 0;
    min-width: 0;
    right: auto;
    width: 100%;
  }

  .date-range-fields {
    grid-template-columns: 1fr;
  }

  .date-filter input {
    min-width: 0;
  }

  .review-workspace {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .action-panel {
    display: none;
  }

  .action-panel-empty {
    min-height: 120px;
  }

  .action-panel-header h3 {
    font-size: 17px;
  }

  .action-panel-title-row {
    display: flex;
  }

  .action-panel-title-row .status-stack {
    max-width: 142px;
  }

  .action-panel-title-row .status-pill {
    justify-content: center;
    max-width: 142px;
    text-align: center;
  }

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

  .filter-chip,
  .status-pill {
    font-size: 11px;
    padding: 6px 9px;
  }

  .cpp-hero {
    gap: 10px;
  }

  .cpp-hero div {
    padding: 14px;
  }

  .cpp-hero strong {
    font-size: 19px;
  }

  .summary-row {
    font-size: 13px;
    gap: 10px;
    padding: 10px 0;
  }

  .actions {
    justify-content: stretch;
  }

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

  .user-admin-grid,
  .user-role-row,
  .user-create-card .fields {
    grid-template-columns: 1fr;
  }

  .user-role-list-head {
    display: none;
  }

  .user-create-card .fields > div:first-child,
  .user-create-card .fields > div:nth-child(2),
  .user-create-card .fields > div:nth-child(5),
  .user-create-card .fields > div:nth-child(6),
  .user-field-cell .setting-toggle {
    grid-column: auto;
  }

  .user-photo-cell {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 42px auto minmax(0, 1fr);
  }

  .user-field-cell::before {
    color: #6f5f62;
    display: block;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .users-access-note {
    margin-left: 0;
    max-width: none;
  }

  .user-list-tools {
    grid-template-columns: 1fr;
  }

  .user-role-meta {
    display: none;
  }

  .user-role-actions {
    justify-content: stretch;
  }

  .user-role-actions .mini-btn {
    flex: 1 1 0;
  }

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

  .profile-photo-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .profile-photo-large {
    height: 72px;
    width: 72px;
  }

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

  .document-page {
    margin: 0;
    min-height: 0;
    padding: 28px 20px;
  }

  .document-header,
  .document-grid-two,
  .document-footer {
    display: block;
  }

  .document-meta {
    margin-top: 18px;
    text-align: left;
  }

  .review-table-wrap,
  .table-wrap {
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
  }

  .responsive-card-table {
    border-spacing: 0 8px;
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .responsive-card-table thead {
    display: none !important;
  }

  .responsive-card-table,
  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table td {
    display: block !important;
    width: 100% !important;
  }

  .responsive-card-table colgroup {
    display: none !important;
  }

  .responsive-card-table tr {
    background: var(--surface-card);
    border: 1px solid rgba(239, 210, 216, 0.75);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(49, 48, 46, 0.04);
    margin-bottom: 9px;
    overflow: hidden;
  }

  .responsive-card-table tr:last-child {
    margin-bottom: 0;
  }

  .responsive-card-table td {
    align-items: flex-start;
    border-bottom: 1px solid rgba(239, 210, 216, 0.28);
    display: grid;
    grid-template-columns: minmax(76px, 38%) minmax(0, 1fr);
    gap: 10px;
    font-size: 12px;
    line-height: 1.3;
    min-height: 34px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 8px 10px;
    text-align: right;
    word-break: break-word;
  }

  .responsive-card-table td:first-child {
    background: var(--surface-card);
    font-weight: 600;
    text-align: left;
  }

  .responsive-card-table td:last-child {
    border-bottom: 0;
  }

  .responsive-card-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
    text-transform: uppercase;
    word-break: normal;
  }

  .responsive-card-table td:first-child::before {
    display: none;
  }

  .responsive-card-table td:first-child {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .responsive-card-table td[data-label="Actions"] {
    display: block;
    text-align: left;
  }

  .responsive-card-table td[data-label="Actions"]::before {
    display: block;
    margin-bottom: 8px;
  }

  .responsive-card-table .mobile-card-actions {
    background: var(--surface-card);
    display: block;
    padding: 8px 10px 10px;
    text-align: left;
  }

  .review-row.selected .mobile-card-actions,
  .responsive-card-table tr.selected .mobile-card-actions {
    background: var(--surface-card);
  }

  .responsive-card-table .mobile-card-actions::before {
    display: block;
    margin-bottom: 8px;
  }

  .responsive-card-table .mobile-row-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .responsive-card-table input,
  .responsive-card-table select {
    min-width: 0;
    width: 100%;
  }

  .responsive-card-table .link-actions,
  .responsive-card-table .milestone-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    width: 100%;
  }

  .responsive-card-table .link-actions form,
  .responsive-card-table .milestone-actions form {
    display: block;
  }

  .responsive-card-table .mini-btn,
  .link-actions.compact .mini-btn {
    min-width: 0;
    width: 100%;
  }

  .responsive-card-table .icon-btn {
    height: 40px;
    width: 40px;
  }

  .responsive-card-table .link-actions .icon-btn,
  .responsive-card-table .milestone-actions .icon-btn {
    height: auto;
    min-height: 40px;
    padding: 8px 10px;
    width: auto;
  }

  .review-detail-page .payment-milestones-panel {
    padding: 10px 9px;
  }

  .review-detail-page .payment-milestones-panel h2 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .review-detail-page .payment-milestones-table tr {
    gap: 5px;
    padding: 8px;
  }

  .review-detail-page .payment-milestones-table td {
    font-size: 11.5px;
    min-height: 24px;
    padding: 3px 0;
  }

  .review-detail-page .payment-milestones-table td::before {
    font-size: 9px;
  }

  .review-detail-page .payment-milestones-table .status-pill {
    font-size: 9px;
    min-height: 20px;
    padding: 3px 7px;
  }

  .review-detail-page .payment-milestones-table .milestone-actions {
    gap: 4px;
  }

  .review-detail-page .payment-milestones-table .milestone-actions .icon-btn {
    min-height: 30px;
    padding: 5px 7px;
  }

  .dashboard-page {
    padding: 10px 10px 24px;
  }

  .dashboard-page .review-header {
    margin-bottom: 10px;
  }

  .dashboard-page .brand-logo {
    height: 34px;
    width: 34px;
  }

  .dashboard-page .brand-name {
    font-size: 16px;
  }

  .dashboard-page .page-title {
    font-size: 24px;
  }

  .review-title-line {
    align-items: stretch;
    margin-top: 8px;
  }

  .review-title-actions {
    width: 100%;
  }

  .review-title-actions .filter-collapse-title,
  .review-title-actions .filter-export-btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .dashboard-page .sub {
    font-size: 11px;
    margin-top: 3px;
  }

  .dashboard-page .header-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .dashboard-page .main-nav {
    gap: 14px;
  }

  .dashboard-page .main-nav-link,
  .dashboard-page .main-nav-group-trigger,
  .dashboard-page .header-actions .btn {
    min-height: 32px;
    padding: 0 0 7px;
  }

  .dashboard-page .notification-trigger,
  .dashboard-page .user-menu-trigger {
    min-height: 38px;
    padding: 0;
  }

  .dashboard-page .settings-trigger {
    min-height: 32px;
    padding: 0 0 7px;
    width: auto;
  }

  .dashboard-page .review-list-panel {
    padding: 10px 9px 0;
  }

  .dashboard-page .dashboard-heading {
    gap: 7px;
    margin-bottom: 8px;
  }

  .dashboard-page .dashboard-title-block h2 {
    font-size: 18px;
  }

  .dashboard-page .review-list-panel .dashboard-grid {
    gap: 6px;
  }

  .dashboard-page .review-list-panel .metric-card {
    min-height: 44px;
    padding: 6px 7px;
  }

  .dashboard-page .review-list-panel .metric-card strong {
    font-size: 17px;
  }

  .dashboard-page .metric-icon {
    flex-basis: 26px;
    height: 26px;
    width: 26px;
  }

  .dashboard-page .filter-row {
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
    overflow-x: visible;
    padding-bottom: 3px;
    width: 100%;
  }

  .dashboard-page .filter-row::-webkit-scrollbar {
    display: none;
  }

  .dashboard-page .filter-chip,
  .dashboard-page .status-pill {
    font-size: 10px;
    flex: 0 0 auto;
    padding: 5px 7px;
  }

  .dashboard-page .review-workspace {
    display: block;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
  }

  .dashboard-page .review-table-wrap {
    max-width: 100%;
    width: 100%;
  }

  .dashboard-page .responsive-card-table {
    border-spacing: 0 7px;
    min-width: 0;
    table-layout: auto;
    width: 100%;
  }

  .dashboard-page .responsive-card-table colgroup {
    display: none;
  }

  .dashboard-page .responsive-card-table,
  .dashboard-page .responsive-card-table tbody,
  .dashboard-page .responsive-card-table tr,
  .dashboard-page .responsive-card-table td {
    max-width: 100%;
    width: 100%;
  }

  .dashboard-page .responsive-card-table tr {
    margin-bottom: 8px;
    max-width: 100%;
    width: 100%;
  }

  .dashboard-page .responsive-card-table td {
    grid-template-columns: minmax(82px, 36%) minmax(0, 1fr);
    font-size: 11px;
    min-height: 32px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 7px 9px;
    width: 100%;
    word-break: break-word;
  }

  .dashboard-page .responsive-card-table td::before {
    min-width: 0;
    padding-right: 8px;
  }

  .dashboard-page .responsive-card-table td > * {
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-page .responsive-card-table td:first-child {
    display: block;
  }

  .dashboard-page .responsive-card-table .reference-cell,
  .dashboard-page .responsive-card-table .reference-cell a,
  .dashboard-page .responsive-card-table .status-stack {
    min-width: 0;
    white-space: normal;
  }

  .dashboard-page .responsive-card-table .mobile-card-actions {
    padding: 8px 9px 9px;
  }

  .dashboard-page .mobile-action-btn {
    height: 32px;
    width: 32px;
  }

  .dashboard-page .user-menu-panel {
    left: auto;
    max-width: calc(100vw - 20px);
    right: 0;
    width: min(280px, calc(100vw - 20px));
  }

  .dashboard-page .user-menu-section strong,
  .dashboard-page .user-menu-section small {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .inventory-page {
    padding: 12px 10px 28px;
  }

  .inventory-panel {
    padding: 10px 9px;
  }

  .inventory-overview-panel {
    gap: 14px;
  }

  .inventory-overview-block {
    gap: 8px;
    padding-bottom: 13px;
  }

  .inventory-overview-block h2 {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .inventory-project-chips,
  .inventory-status-legend {
    gap: 7px;
  }

  .inventory-project-chip,
  .inventory-status-legend span {
    border-radius: 14px;
    font-size: 11px;
    min-height: 31px;
    padding: 6px 10px;
  }

  .inventory-status-box {
    height: 11px;
    width: 11px;
  }

  .inventory-availability-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px;
  }

  .inventory-section-header,
  .inventory-floor-row {
    grid-template-columns: 1fr;
  }

  .inventory-section-header {
    display: grid;
  }

  .inventory-legend {
    justify-content: flex-start;
  }

  .inventory-diagram-filters,
  .inventory-diagram-summary {
    grid-template-columns: 1fr;
  }

  .inventory-diagram-filters .btn {
    width: 100%;
  }

  .inventory-unit-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }

  .inventory-toolbar {
    grid-template-columns: 1fr;
  }

  .inventory-toolbar .btn {
    width: 100%;
  }

  .inventory-table {
    min-width: 0;
  }

}

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

  .funnel-drilldown {
    position: static;
    margin-top: 6px;
    min-width: 0;
    width: 100%;
  }

  .unit-masters-page .master-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unit-masters-page .master-create-grid form:last-child {
    grid-column: 1 / -1;
  }

  .unit-masters-page .master-add-unit {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .unit-masters-page .master-add-unit h2 {
    margin-bottom: 0;
    writing-mode: horizontal-tb;
  }

  .unit-masters-page .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unit-masters-page .master-add-unit .fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .master-filter-strip,
  .floor-panel-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .master-management-grid {
    grid-template-columns: 1fr;
  }

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

  .action-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  .transfer-cpp-dialog {
    border-radius: 0;
    inset: 0;
    left: 0;
    max-height: 100vh;
    padding: 14px;
    top: 0;
    transform: none;
    width: 100vw;
  }

  .transfer-cpp-header {
    position: sticky;
    top: -14px;
    background: #fff;
    z-index: 2;
  }

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

  .transfer-cpp-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-page .filters-heading .filter-collapse-summary {
    align-items: stretch;
    justify-content: stretch;
  }

  .dashboard-page .filters-heading .filter-collapse-title,
  .dashboard-page .filters-heading .filter-export-btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .funnel-panel {
    padding: 10px;
  }

  .funnel-flow {
    grid-template-columns: 1fr;
  }

  .funnel-stage summary {
    min-height: 66px;
  }

  .login-interface {
    padding: 20px;
  }

  .login-card {
    border-radius: 16px;
    padding: 40px 28px 34px;
  }

  .login-brand h1 {
    font-size: 24px;
  }

  .login-brand p {
    font-size: 11px;
  }

  .unit-masters-page .master-create-grid,
  .unit-masters-page .fields,
  .unit-masters-page .master-add-unit .fields {
    grid-template-columns: 1fr;
  }

  .unit-masters-page .panel {
    padding: 12px;
  }

  .unit-masters-page .master-add-card,
  .unit-masters-page .master-add-unit {
    padding: 16px;
  }

  .unit-masters-page .master-add-card:not(.master-add-unit) {
    height: auto;
    min-height: 0;
  }

  .master-filter-strip,
  .panel-filter-strip,
  .floor-panel-filter {
    grid-template-columns: 1fr;
  }

  .unit-master-scroll {
    max-height: 62vh;
  }

  .review-list-panel .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .filter-collapse-summary {
    gap: 8px;
    min-height: 38px;
  }

  .active-filter-summary {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .active-filter-summary span,
  .active-filter-summary strong {
    flex: 0 0 auto;
  }

  .filter-row {
    flex-wrap: nowrap;
    margin-left: -12px;
    margin-right: -12px;
    overflow-x: auto;
    padding: 0 12px 8px;
  }

  .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .user-menu-text {
    display: none;
  }
}

/* ---- In-app page notes / feedback panel (F10) ---- */
.page-notes-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.page-notes-panel {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 36px);
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 12px;
}
.page-notes-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.page-notes-path {
  display: block;
  color: #868e96;
  font-size: 11px;
  word-break: break-all;
}
.page-notes-close {
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #868e96;
}
.page-notes-form textarea {
  width: 100%;
  resize: vertical;
}
.page-notes-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.page-notes-row select { flex: 1; }
.page-notes-msg { font-size: 12px; margin: 6px 0 0; color: #2b8a3e; }
.page-notes-msg.is-error { color: var(--primary, #c9163b); }
.page-notes-actions {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  border-top: 1px solid #eee;
  padding-top: 8px;
}
.page-notes-list { list-style: none; margin: 0; padding: 0; }
.page-notes-empty { color: #868e96; font-size: 13px; padding: 6px 0; }
.page-notes-closed-wrap { list-style: none; }
.page-notes-closed { margin-top: 8px; border-top: 1px solid #eee; padding-top: 8px; }
.page-notes-closed > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #868e96;
  list-style: revert;
}
.page-notes-closed > ul { margin-top: 8px; }
.page-notes-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}
.page-notes-item-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.page-notes-item-body { font-size: 13px; margin: 4px 0; white-space: pre-wrap; }
.page-notes-item-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #868e96; }
.page-notes-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: capitalize;
  background: #f1f3f5;
  color: #495057;
}
.page-notes-badge.status-new { background: #e7f5ff; color: #1971c2; }
.page-notes-badge.status-accepted { background: #fff3bf; color: #e67700; }
.page-notes-badge.status-rejected { background: #ffe3e3; color: #c92a2a; }
.page-notes-badge.status-hold { background: #f1f3f5; color: #868e96; }
.page-notes-badge.status-implemented { background: #d3f9d8; color: #2b8a3e; }
.page-notes-badge.status-tested { background: #d0ebff; color: #1864ab; }
.page-notes-badge.status-closed { background: #e9ecef; color: #343a40; }
.page-notes-status-form { display: flex; gap: 6px; align-items: center; }

.closed-notes-collapsible > summary {
  cursor: pointer;
  padding: 6px 0;
  color: #495057;
  list-style: revert;
}
.closed-notes-collapsible[open] > summary { margin-bottom: 10px; }
