/* Kridiya corporate client portal - live Supabase dashboard styles. */
body[data-private-portal="true"] {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 0%, rgb(246 196 69 / 0.12), transparent 25rem),
    linear-gradient(180deg, #f8f1e6, #fdf8f0 42%, #f7f2ea);
}

.portal-app-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  border-bottom: 1px solid rgb(246 196 69 / 0.18);
  background:
    linear-gradient(90deg, rgb(21 19 17 / 0.98), rgb(43 31 22 / 0.97));
  backdrop-filter: blur(14px);
  padding: 0.65rem clamp(1rem, 3vw, 1.8rem);
}

.portal-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
}

.portal-app-brand:hover {
  text-decoration: none;
}

.portal-app-brand img {
  display: block;
  width: 62px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.portal-app-brand span {
  display: grid;
  gap: 0.1rem;
}

.portal-app-brand small,
.portal-company-mini small {
  color: rgb(255 244 230 / 0.66);
  font-weight: 800;
}

.portal-app-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.portal-app {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 76px);
}

.portal-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  height: calc(100vh - 76px);
  border-right: 1px solid rgb(246 196 69 / 0.16);
  background:
    linear-gradient(180deg, rgb(33 23 15 / 0.98), rgb(43 31 22 / 0.96));
  padding: 1rem;
}

.portal-company-mini {
  display: grid;
  gap: 0.15rem;
  border: 1px solid rgb(246 196 69 / 0.18);
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 0.06);
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.portal-company-mini span {
  color: #fff;
  font-weight: 900;
}

.portal-sidebar nav {
  display: grid;
  gap: 0.25rem;
}

.portal-sidebar nav a {
  border-radius: var(--r-sm);
  color: rgb(255 244 230 / 0.78);
  font-weight: 900;
  padding: 0.72rem 0.8rem;
}

.portal-sidebar nav a:hover,
.portal-sidebar nav a.active {
  background: rgb(246 196 69 / 0.12);
  color: #fff;
  text-decoration: none;
}

.portal-app-main {
  width: min(1320px, 100%);
  padding: clamp(1rem, 3vw, 1.8rem);
}

.portal-app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.portal-app-hero > div:first-child,
.portal-status-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.portal-app-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.portal-status-panel {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  background:
    linear-gradient(135deg, rgb(201 150 26 / 0.09), rgb(246 196 69 / 0.13)),
    #fff;
}

.portal-status-panel span {
  color: var(--brand-deep);
  font-weight: 900;
}

.portal-status-panel b {
  color: var(--ink);
  font-size: 1.55rem;
}

.portal-status-panel small {
  color: var(--muted);
  font-weight: 700;
}

.portal-panel {
  min-width: 0;
}

.auth-wrap,
.account-head,
.corporate-portal-grid {
  padding-block: clamp(1.8rem, 4vw, 3.6rem);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.auth-card,
.auth-assist,
.account-main,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.5vw, 1.45rem);
}

.auth-card h1,
.account-head h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.auth-sub,
.auth-alt {
  color: var(--muted);
}

.auth-checklist {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 1.2rem;
  padding: 0;
  list-style: none;
}

.auth-checklist li,
.corporate-portal-flow li {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 0.85rem;
}

.auth-checklist span,
.corporate-portal-flow span {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-grid,
.field-row {
  display: grid;
  gap: 0.85rem;
}

.field-row {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: 700 0.95rem/1.4 var(--font);
  padding: 0.75rem 0.85rem;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.col-3 { grid-column: span 3; }
.col-6 { grid-column: span 6; }
.field:not(.col-3):not(.col-6) { grid-column: 1 / -1; }

.pw-wrap {
  position: relative;
}

.pw-wrap input {
  padding-right: 4.5rem;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 0.45rem 0.65rem;
  font: 900 0.72rem/1 var(--font);
  cursor: pointer;
}

.auth-form-row,
.account-section-head,
.account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkbox-row {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.form-banner {
  border-radius: var(--r-sm);
  padding: 0.8rem 0.9rem;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 800;
}

.form-banner.error,
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: color-mix(in srgb, var(--error), var(--line) 40%);
}

.form-banner.error {
  background: var(--error-bg);
  color: var(--error);
}

.err {
  color: var(--error);
  font-size: 0.8rem;
  font-weight: 800;
}

.portal-command {
  display: grid;
  gap: 1rem;
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.portal-metrics div {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.98), rgb(255 248 237 / 0.92));
  box-shadow: var(--shadow);
  padding: 1rem;
}

.portal-metrics span {
  color: var(--brand-deep);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1;
}

.portal-metrics b {
  color: var(--ink);
}

.portal-metrics small {
  color: var(--muted);
  font-weight: 800;
}

.portal-workspace {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portal-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.portal-workspace-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  margin-bottom: 0.15rem;
}

.portal-workspace-head p {
  color: var(--muted);
  margin: 0;
}

.portal-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fffaf3, #fff);
  padding: 0.55rem 0.75rem;
}

.portal-tabs button {
  flex: none;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font: 900 0.88rem/1 var(--font);
  padding: 0.72rem 0.9rem;
}

.portal-tabs button.active,
.portal-tabs button:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.portal-tab-panel {
  display: none;
  padding: 1rem;
}

.portal-tab-panel.active {
  display: block;
}

.portal-overview-grid,
.portal-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portal-placeholder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-placeholder-grid article,
.portal-next-card,
.portal-statement,
.portal-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background:
    linear-gradient(135deg, rgb(255 244 230 / 0.72), rgb(255 255 255 / 0.86));
  padding: 1rem;
}

.portal-placeholder-grid article b,
.portal-next-card b,
.portal-statement b,
.portal-panel h3 {
  color: var(--ink);
}

.portal-placeholder-grid article p,
.portal-next-card p,
.portal-statement p {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.portal-panel-head,
.portal-attention-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal-panel-head {
  margin-bottom: 0.85rem;
}

.portal-panel-head span,
.portal-attention-item span {
  display: block;
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.portal-panel-head h3 {
  margin: 0.2rem 0 0;
}

.portal-attention-list {
  display: grid;
  gap: 0.65rem;
}

.portal-attention-item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 0.85rem;
}

.portal-attention-item b {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.portal-attention-item p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.portal-attention-item.is-quote,
.portal-attention-item.is-payment {
  border-color: rgb(201 150 26 / 0.34);
  background: linear-gradient(135deg, var(--brand-soft), #fff 70%);
}

.portal-attention-item.is-document,
.portal-attention-item.is-booking,
.portal-attention-item.is-request {
  background: linear-gradient(135deg, rgb(255 250 242 / 0.9), #fff);
}

.portal-record-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.portal-permission-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.portal-permission-chip.is-allowed {
  border-color: rgb(201 150 26 / 0.34);
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.portal-quote-card {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background:
    linear-gradient(135deg, rgb(201 150 26 / 0.06), rgb(255 255 255 / 0) 55%),
    #fff;
  padding: 1rem;
}

.portal-quote-main,
.portal-quote-actions,
.portal-quote-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.portal-quote-main {
  justify-content: space-between;
}

.portal-quote-main small {
  color: var(--brand-deep);
  font-weight: 900;
}

.portal-quote-main h3 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
}

.portal-quote-main b {
  color: var(--ink);
  font-size: 1.2rem;
}

.portal-quote-card p {
  color: var(--muted);
  margin: 0;
}

.portal-quote-meta span {
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.portal-quote-terms {
  border-left: 3px solid var(--gold);
  background: var(--brand-soft);
  color: var(--ink-2);
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.portal-quote-actions {
  justify-content: flex-end;
  border-top: 1px dashed var(--line);
  padding-top: 0.85rem;
}

.portal-record,
.portal-empty,
.portal-loading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 0.94);
  padding: 0.85rem;
}

.portal-empty,
.portal-loading {
  justify-content: flex-start;
  color: var(--muted);
  font-weight: 800;
}

.portal-record div {
  display: grid;
  gap: 0.15rem;
}

.portal-record b {
  color: var(--ink);
}

.portal-record small {
  color: var(--muted);
  font-weight: 800;
}

.portal-record span {
  flex: none;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.portal-statement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.statement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.portal-statement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.portal-statement-grid article {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 0.85rem;
}

.portal-statement-grid span {
  color: var(--brand-deep);
  font-size: 1.35rem;
  font-weight: 900;
}

.portal-statement-grid b {
  color: var(--ink);
}

.portal-statement-grid small {
  color: var(--muted);
  font-weight: 800;
}

.statement-row-list {
  display: grid;
  gap: 0.75rem;
}

.statement-row-card {
  display: grid;
  grid-template-columns: minmax(14rem, 1.35fr) minmax(0, 2fr);
  align-items: start;
  gap: 1rem;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 0%, rgb(201 150 26 / 0.08), transparent 5rem),
    #fff;
  box-shadow: 0 14px 34px rgb(36 27 19 / 0.055);
  padding: 1rem;
}

.statement-row-card small {
  color: var(--portal-gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.statement-row-card b {
  display: block;
  margin-top: 0.16rem;
  color: var(--portal-ink);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.2;
}

.statement-row-card p {
  margin: 0.28rem 0 0;
  color: var(--portal-muted);
  font-weight: 750;
}

.statement-row-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.statement-row-card dl > div {
  min-width: 0;
  border: 1px solid rgb(201 150 26 / 0.16);
  border-radius: 8px;
  background: #fffaf2;
  padding: 0.62rem;
}

.statement-row-card dt {
  color: var(--portal-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.statement-row-card dd {
  overflow-wrap: anywhere;
  margin: 0.24rem 0 0;
  color: var(--portal-ink);
  font-size: 0.82rem;
  font-weight: 900;
}

@media print {
  body[data-private-portal="true"] .portal-app-topbar,
  body[data-private-portal="true"] .portal-sidebar,
  body[data-private-portal="true"] [data-overview-only],
  body[data-private-portal="true"] .portal-workspace-head,
  body[data-private-portal="true"] .portal-tabs,
  body[data-private-portal="true"] .portal-tab-panel:not([data-portal-panel="statement"]),
  .statement-actions,
  .whatsapp-float {
    display: none !important;
  }

  body[data-private-portal="true"] .portal-app,
  body[data-private-portal="true"] .portal-app-main,
  body[data-private-portal="true"] .portal-command {
    display: block;
    padding: 0;
    margin: 0;
    background: #fff;
  }

  body[data-private-portal="true"] .portal-workspace,
  .statement-row-card,
  .statement-command,
  .portal-statement-grid article {
    box-shadow: none;
  }
}

.corporate-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.account-summary div,
.account-fact,
.account-detail {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  padding: 0.8rem;
}

.account-summary span {
  color: var(--brand-deep);
  font-size: 1.4rem;
  font-weight: 900;
}

.account-summary b,
.account-fact b,
.account-detail b {
  color: var(--ink);
}

.account-summary small,
.account-fact small,
.account-detail small {
  color: var(--muted);
  font-weight: 800;
}

.corporate-portal-flow {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.empty-state {
  color: var(--muted);
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 120;
  max-width: min(420px, calc(100vw - 2rem));
  transform: translate(-50%, 1rem);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-pop);
  padding: 0.85rem 1rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-smooth-out), transform var(--duration-medium) var(--ease-smooth-out);
}

.site-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-duration: var(--duration-slow);
}

html[data-input="keyboard"] .site-toast { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .site-toast { transition: none; }
}

.corporate-company-list,
.corporate-booking-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.corporate-company-card,
.corporate-booking-card {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 0.85rem;
}

.corporate-company-card b,
.corporate-booking-card b {
  color: var(--ink);
}

.corporate-company-card p,
.corporate-booking-card p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.corporate-company-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.corporate-company-card span,
.corporate-booking-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 0.22rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.corporate-booking-card {
  display: grid;
  gap: 0.55rem;
}

.corporate-booking-card > div,
.corporate-booking-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.corporate-booking-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.corporate-booking-card footer {
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
}

.corporate-booking-card small {
  color: var(--text-muted);
  font-weight: 700;
}

.corporate-booking-card strong {
  color: var(--ink);
}

@media (max-width: 860px) {
  .portal-app {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portal-sidebar nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .portal-sidebar nav a {
    white-space: nowrap;
  }

  .portal-app-hero {
    grid-template-columns: 1fr;
  }

  .portal-app-actions {
    flex-wrap: wrap;
    justify-content: end;
  }

  .auth-shell,
  .corporate-portal-grid,
  .account-summary,
  .portal-metrics,
  .portal-overview-grid,
  .portal-placeholder-grid,
  .portal-statement-grid {
    grid-template-columns: 1fr;
  }

  .statement-row-card {
    grid-template-columns: 1fr;
  }

  .statement-row-card dl {
    grid-template-columns: 1fr;
  }

  .col-3,
  .col-6 {
    grid-column: 1 / -1;
  }
}

.corporate-portal-request .field-row {
  margin: 0;
}

/* Restrained corporate app pass. */
body[data-private-portal="true"] {
  background: #f7f4ee;
}

.portal-app-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgb(42 31 20 / 0.06);
}

.portal-app-brand,
.portal-app-brand small,
.portal-company-mini small {
  color: var(--muted);
}

.portal-app-brand b,
.portal-company-mini span {
  color: var(--ink);
}

.portal-sidebar {
  background: #fffaf3;
  border-right: 1px solid var(--line);
}

.portal-company-mini {
  background: #fff;
  border-color: var(--line);
}

.portal-sidebar nav a {
  color: var(--ink-2);
}

.portal-sidebar nav a:hover,
.portal-sidebar nav a.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.portal-app-hero > div:first-child,
.portal-status-panel,
.auth-card,
.auth-assist,
.account-main,
.empty-state,
.portal-table-card,
.portal-placeholder,
.portal-record,
.portal-statement-grid article,
.corporate-company-card,
.corporate-booking-card {
  background: #fff;
  box-shadow: 0 14px 38px rgb(42 31 20 / 0.08);
}

.portal-status-panel {
  background: #fffaf3;
}

.account-summary div,
.account-fact,
.account-detail,
.portal-metrics div,
.portal-placeholder-grid article,
.auth-checklist li,
.corporate-portal-flow li {
  background: #fffaf5;
}

.site-toast {
  background: var(--ink);
}

@media (max-width: 860px) {
  .portal-app-topbar {
    position: sticky;
  }
}

/* Corporate portal color rule: gold/espresso only, no orange UI. */
.portal-status-panel {
  background:
    linear-gradient(135deg, rgb(201 150 26 / 0.09), rgb(246 196 69 / 0.13)),
    #fff;
}

.portal-sidebar nav a:hover,
.portal-sidebar nav a.active,
.portal-record span,
.corporate-company-card span,
.corporate-booking-card span {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.portal-status-panel span,
.portal-metrics span,
.portal-record b,
.portal-statement-grid span,
.account-summary span,
.auth-checklist b,
.corporate-portal-flow b {
  color: var(--brand-deep);
}

.portal-app input:focus,
.portal-app select:focus,
.portal-app textarea:focus,
.auth-card input:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgb(201 150 26 / 0.14);
}

body[data-page="login"] .auth-card .btn-primary {
  border-color: #241b13;
  background: #241b13;
  color: #fffaf2;
  box-shadow: 0 16px 30px -24px rgb(36 27 19 / 0.7);
}

body[data-page="login"] .auth-card .btn-primary:hover {
  background: #3a2b1f;
  color: #fffaf2;
}

body[data-page="login"] .auth-card .btn-primary[disabled] {
  border-color: rgb(36 27 19 / 0.28);
  background: rgb(36 27 19 / 0.22);
  color: rgb(36 27 19 / 0.58);
}

/* Private portal app polish: warm Kridiya theme, no orange UI. */
body[data-private-portal="true"] {
  --portal-ink: #241b13;
  --portal-ink-2: #4b3d30;
  --portal-muted: #776a5d;
  --portal-line: #eadfce;
  --portal-cream: #fffaf2;
  --portal-cream-2: #f8f3ea;
  --portal-gold: #c9961a;
  --portal-gold-soft: #f7edcf;
  background:
    radial-gradient(circle at 92% 8%, rgb(201 150 26 / 0.10), transparent 18rem),
    linear-gradient(180deg, #fffaf2 0%, #f8f3ea 54%, #fffaf2 100%);
}

body[data-private-portal="true"] .portal-app-topbar {
  min-height: 72px;
  background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid var(--portal-line);
  box-shadow: 0 18px 42px rgb(36 27 19 / 0.08);
}

body[data-private-portal="true"] .portal-app-brand img {
  width: 56px;
  height: 44px;
}

body[data-private-portal="true"] .btn-primary {
  border-color: #241b13;
  background: #241b13;
  color: #fffaf2;
  box-shadow: 0 14px 28px rgb(36 27 19 / 0.14);
}

body[data-private-portal="true"] .btn-primary:hover {
  background: #3a2b1f;
}

body[data-private-portal="true"] .btn-outline {
  border-color: var(--portal-line);
  background: #fff;
  color: var(--portal-ink);
}

body[data-private-portal="true"] .portal-app {
  grid-template-columns: 248px minmax(0, 1fr);
}

body[data-private-portal="true"] .portal-sidebar {
  top: 72px;
  height: calc(100vh - 72px);
  background:
    linear-gradient(180deg, rgb(255 250 242 / 0.98), rgb(248 243 234 / 0.96));
  padding: 1.1rem 0.85rem;
}

body[data-private-portal="true"] .portal-company-mini {
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff, var(--portal-cream));
  box-shadow: 0 12px 28px rgb(36 27 19 / 0.06);
}

body[data-private-portal="true"] .portal-sidebar nav a {
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--portal-ink-2);
}

body[data-private-portal="true"] .portal-sidebar nav a:hover,
body[data-private-portal="true"] .portal-sidebar nav a.active {
  border-color: rgb(201 150 26 / 0.22);
  background: #fff;
  color: var(--portal-ink);
  box-shadow: 0 10px 22px rgb(36 27 19 / 0.06);
}

body[data-private-portal="true"] .portal-sidebar nav a.portal-support-link {
  margin-top: 0.7rem;
  border-top: 1px dashed rgb(201 150 26 / 0.28);
  border-radius: 0;
  padding-top: 1rem;
}

body[data-private-portal="true"] .portal-sidebar nav a.portal-support-link:hover {
  border-color: transparent;
  border-top-color: rgb(201 150 26 / 0.28);
  background: transparent;
  box-shadow: none;
  color: var(--brand-deep);
}

body[data-private-portal="true"] .portal-app-main {
  width: min(1460px, 100%);
  padding: clamp(1rem, 2.4vw, 1.6rem);
}

body[data-private-portal="true"] .portal-app-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

body[data-private-portal="true"] .portal-app-hero > div:first-child,
body[data-private-portal="true"] .portal-status-panel,
body[data-private-portal="true"] .portal-workspace,
body[data-private-portal="true"] .portal-metrics div,
body[data-private-portal="true"] .portal-control-strip article,
body[data-private-portal="true"] .portal-panel,
body[data-private-portal="true"] .portal-placeholder-grid article,
body[data-private-portal="true"] .portal-record,
body[data-private-portal="true"] .portal-empty,
body[data-private-portal="true"] .portal-loading,
body[data-private-portal="true"] .request-policy-panel {
  border-color: var(--portal-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 16px 42px rgb(36 27 19 / 0.07);
}

body[data-private-portal="true"] .portal-app-hero > div:first-child {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

body[data-private-portal="true"] .portal-app-hero > div:first-child::after {
  content: "";
  position: absolute;
  right: 2rem;
  bottom: 1.2rem;
  width: min(38%, 360px);
  height: 90px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgb(201 150 26 / 0.36) 12% 14%, transparent 14% 34%, rgb(201 150 26 / 0.22) 34% 36%, transparent 36%),
    radial-gradient(circle at 12% 62%, rgb(201 150 26 / 0.34) 0 5px, transparent 6px),
    radial-gradient(circle at 48% 42%, rgb(201 150 26 / 0.22) 0 4px, transparent 5px),
    radial-gradient(circle at 86% 30%, rgb(201 150 26 / 0.28) 0 5px, transparent 6px);
  border-bottom: 2px dashed rgb(201 150 26 / 0.28);
  opacity: 0.8;
}

body[data-private-portal="true"] .portal-app-hero h1 {
  max-width: 760px;
  color: var(--portal-ink);
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

body[data-private-portal="true"] .portal-app-hero p {
  max-width: 820px;
  color: var(--portal-muted);
  font-size: 1.03rem;
}

.portal-hero-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.portal-hero-tags span {
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  background: var(--portal-cream);
  color: var(--portal-ink-2);
  padding: 0.48rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-private-portal="true"] .portal-status-panel {
  align-content: stretch;
  background:
    linear-gradient(135deg, rgb(201 150 26 / 0.12), rgb(255 250 242 / 0.82)),
    #fff;
}

body[data-private-portal="true"] .portal-status-panel::after {
  content: "Admin linked / company scoped / finance permissioned";
  display: block;
  border-top: 1px dashed rgb(201 150 26 / 0.28);
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 900;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

body[data-private-portal="true"] .portal-command {
  gap: 0.85rem;
}

body[data-private-portal="true"] [data-overview-only][hidden] {
  display: none !important;
}

body[data-private-portal="true"] .portal-metrics {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0.75rem;
}

body[data-private-portal="true"] .portal-metrics div {
  min-height: 118px;
  align-content: space-between;
  background:
    linear-gradient(180deg, #fff, var(--portal-cream));
}

body[data-private-portal="true"] .portal-metrics span,
body[data-private-portal="true"] .portal-statement-grid span {
  color: var(--portal-gold);
}

.portal-control-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.portal-control-strip article {
  display: grid;
  gap: 0.35rem;
  min-height: 126px;
  padding: 1rem;
}

.portal-control-strip span {
  color: var(--portal-gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.portal-control-strip b {
  color: var(--portal-ink);
}

.portal-control-strip small {
  color: var(--portal-muted);
  font-weight: 750;
  line-height: 1.55;
}

body[data-private-portal="true"] .portal-workspace {
  overflow: clip;
}

body[data-private-portal="true"] .portal-workspace-head {
  background:
    linear-gradient(90deg, #fff, var(--portal-cream));
  padding: 1.1rem 1.2rem;
}

body[data-private-portal="true"] .portal-tabs {
  gap: 0;
  background: #fff;
  padding: 0.45rem;
}

body[data-private-portal="true"] .portal-tabs button {
  border-radius: 7px;
  color: var(--portal-muted);
  padding: 0.8rem 1rem;
}

body[data-private-portal="true"] .portal-tabs button.active,
body[data-private-portal="true"] .portal-tabs button:hover {
  background: var(--portal-cream-2);
  color: var(--portal-ink);
}

body[data-private-portal="true"] .portal-tab-panel {
  padding: 1.15rem;
}

.portal-command-center {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.95fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.portal-command-center article {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 0.55rem;
  min-height: 146px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgb(201 150 26 / 0.14), transparent 8rem),
    linear-gradient(135deg, #fff, var(--portal-cream));
  box-shadow: 0 16px 42px rgb(36 27 19 / 0.07);
  padding: 1rem;
}

.portal-command-center article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--portal-gold), rgb(201 150 26 / 0.14));
}

.portal-command-center span {
  color: var(--portal-gold);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.portal-command-center b {
  color: var(--portal-ink);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.18;
}

.portal-command-center p {
  color: var(--portal-muted);
  font-weight: 750;
  margin: 0;
}

.command-actions {
  display: grid;
  gap: 0.5rem;
}

.portal-operations-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1rem;
  margin-top: 1rem;
}

.portal-timeline {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.portal-timeline div {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 0.8rem;
  row-gap: 0.12rem;
  padding-bottom: 0.5rem;
}

.portal-timeline div::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: -8px;
  width: 1px;
  background: var(--portal-line);
}

.portal-timeline div:last-child::before {
  display: none;
}

.portal-timeline span {
  width: 16px;
  height: 16px;
  border: 4px solid var(--portal-gold-soft);
  border-radius: 50%;
  background: var(--portal-gold);
  margin-top: 0.2rem;
}

.portal-timeline b,
.portal-timeline small {
  grid-column: 2;
}

.portal-timeline small,
.portal-support-panel p {
  color: var(--portal-muted);
  font-weight: 750;
}

.portal-contact-row {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.portal-request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1rem;
}

body[data-private-portal="true"] .corporate-portal-request {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgb(36 27 19 / 0.07);
  padding: 1rem;
}

body[data-private-portal="true"] .mini-card-head {
  border-bottom: 1px solid var(--portal-line);
  margin: -0.1rem 0 0.95rem;
  padding-bottom: 0.8rem;
}

body[data-private-portal="true"] .mini-card-head span {
  color: var(--portal-gold);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-private-portal="true"] .mini-card-head b {
  display: block;
  color: var(--portal-ink);
  font-size: 1.15rem;
  margin-top: 0.18rem;
}

body[data-private-portal="true"] .mini-card-head small {
  display: block;
  max-width: 720px;
  color: var(--portal-muted);
  font-weight: 750;
  line-height: 1.55;
  margin-top: 0.35rem;
}

.request-policy-panel {
  align-self: start;
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, var(--portal-cream), #fff);
}

.request-policy-panel span {
  color: var(--portal-gold);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 900;
}

.request-policy-panel b {
  color: var(--portal-ink);
  font-size: 1.05rem;
}

.request-policy-panel ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.request-policy-panel li {
  border-top: 1px solid var(--portal-line);
  color: var(--portal-muted);
  font-weight: 800;
  padding-top: 0.55rem;
}

body[data-private-portal="true"] .portal-overview-grid {
  grid-template-columns: 1fr 0.8fr;
}

body[data-private-portal="true"] .portal-panel h3,
body[data-private-portal="true"] .portal-statement h3 {
  font-size: 1.12rem;
}

body[data-private-portal="true"] .corporate-company-card,
body[data-private-portal="true"] .corporate-booking-card,
body[data-private-portal="true"] .portal-quote-card {
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff, var(--portal-cream));
}

body[data-private-portal="true"] .corporate-company-card span,
body[data-private-portal="true"] .corporate-booking-card span,
body[data-private-portal="true"] .portal-record span,
body[data-private-portal="true"] .portal-permission-chip.is-allowed {
  border: 1px solid rgb(201 150 26 / 0.22);
  background: var(--portal-gold-soft);
  color: #6c4a06;
}

body[data-private-portal="true"] .corporate-booking-card {
  gap: 0.75rem;
}

body[data-private-portal="true"] .corporate-booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.booking-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff, var(--portal-cream));
  box-shadow: 0 14px 34px rgb(36 27 19 / 0.06);
  padding: 0.9rem 1rem;
}

.booking-command-head div {
  display: grid;
  gap: 0.12rem;
}

.booking-command-head span {
  color: var(--portal-gold);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 900;
}

.booking-command-head b {
  color: var(--portal-ink);
  font-size: 1rem;
}

body[data-private-portal="true"] .corporate-booking-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

body[data-private-portal="true"] .corporate-booking-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--portal-gold), rgb(201 150 26 / 0.18));
}

body[data-private-portal="true"] .corporate-booking-head {
  align-items: flex-start;
}

body[data-private-portal="true"] .corporate-booking-head div {
  display: grid;
  gap: 0.12rem;
}

body[data-private-portal="true"] .corporate-booking-head small {
  color: var(--portal-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

body[data-private-portal="true"] .corporate-booking-main {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

body[data-private-portal="true"] .corporate-booking-main h3 {
  color: var(--portal-ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.18;
}

body[data-private-portal="true"] .corporate-booking-main p {
  color: var(--portal-muted);
  font-weight: 750;
  margin-top: 0.25rem;
}

body[data-private-portal="true"] .corporate-booking-main > strong {
  flex: none;
  border: 1px solid rgb(201 150 26 / 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--portal-ink);
  padding: 0.42rem 0.7rem;
  font-size: 0.78rem;
}

.corporate-booking-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.2rem 0;
}

.corporate-booking-progress span {
  min-height: 34px;
  justify-content: center;
  border: 1px solid var(--portal-line);
  border-radius: 7px;
  background: #fff;
  color: var(--portal-muted);
  padding: 0.35rem 0.45rem;
  text-align: center;
  font-size: 0.72rem;
}

.corporate-booking-progress span.is-active,
.corporate-booking-progress span.is-done {
  border-color: rgb(201 150 26 / 0.28);
  background: var(--portal-gold-soft);
  color: #6c4a06;
}

.corporate-booking-progress span.is-done {
  background: #fffaf2;
}

.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.booking-detail-grid div {
  display: grid;
  gap: 0.16rem;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.78);
  padding: 0.72rem;
}

.booking-detail-grid span {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--portal-muted) !important;
  padding: 0;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.booking-detail-grid b {
  color: var(--portal-ink);
  font-size: 0.88rem;
}

.payment-handoff-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  border: 1px solid rgb(201 150 26 / 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 12%, rgb(201 150 26 / 0.16), transparent 6rem),
    linear-gradient(135deg, #fffaf2, #fff);
  padding: 0.9rem;
}

.payment-handoff-panel > div:first-child {
  display: grid;
  gap: 0.22rem;
}

.payment-handoff-panel span {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--portal-gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.payment-handoff-panel b {
  color: var(--portal-ink);
}

.payment-handoff-panel p {
  max-width: 62ch;
  margin: 0;
  color: var(--portal-muted);
  font-weight: 750;
  line-height: 1.55;
}

.payment-handoff-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.payment-clearance-timeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed rgb(201 150 26 / 0.28);
}

.payment-clearance-timeline li {
  position: relative;
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.65rem 0 0;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.payment-clearance-timeline li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.1rem;
  right: 0;
  height: 1px;
  background: rgb(201 150 26 / 0.2);
}

.payment-clearance-timeline li:last-child::before {
  display: none;
}

.payment-clearance-timeline li > span {
  width: 0.72rem;
  height: 0.72rem;
  min-height: 0;
  border: 2px solid rgb(201 150 26 / 0.32);
  border-radius: 999px;
  background: #fff;
}

.payment-clearance-timeline li.is-done > span,
.payment-clearance-timeline li.is-current > span {
  border-color: var(--portal-gold);
  background: var(--portal-gold);
  box-shadow: 0 0 0 4px rgb(201 150 26 / 0.12);
}

.payment-clearance-timeline li.is-current b {
  color: var(--portal-ink);
}

.payment-clearance-timeline li.is-done b {
  color: var(--portal-gold);
}

.corporate-booking-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.corporate-booking-timeline li {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.7rem;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-surface);
}

.corporate-booking-timeline li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--portal-line);
  background: var(--portal-cream);
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.corporate-booking-timeline li.is-done > span {
  border-color: color-mix(in oklab, var(--portal-gold) 42%, var(--portal-line));
  background: var(--portal-gold-soft);
  color: var(--portal-gold);
}

.corporate-booking-timeline li.is-current {
  border-color: color-mix(in oklab, var(--portal-gold) 48%, var(--portal-line));
  background: color-mix(in oklab, var(--portal-gold-soft) 46%, var(--portal-surface));
}

.corporate-booking-timeline b {
  display: block;
  color: var(--portal-ink);
  font-size: 0.84rem;
  line-height: 1.25;
}

.corporate-booking-timeline small {
  display: block;
  margin-top: 0.18rem;
  color: var(--portal-muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.corporate-next-action {
  margin-top: 0.75rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid color-mix(in oklab, var(--portal-gold) 34%, var(--portal-line));
  border-radius: 8px;
  background: linear-gradient(135deg, var(--portal-cream), var(--portal-surface));
}

.corporate-next-action span {
  display: block;
  color: var(--portal-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.corporate-next-action b {
  display: block;
  margin-top: 0.18rem;
  color: var(--portal-ink);
}

.corporate-next-action p {
  margin: 0.25rem 0 0;
  color: var(--portal-muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.portal-desk-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.94), rgb(255 250 242 / 0.86)),
    radial-gradient(circle at 92% 12%, rgb(201 150 26 / 0.16), transparent 30%);
  box-shadow: 0 14px 34px rgb(36 27 19 / 0.06);
  padding: 1.1rem;
}

.portal-desk-command span,
.portal-desk-grid span {
  display: block;
  color: var(--portal-gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-desk-command h3 {
  max-width: 720px;
  margin: 0.2rem 0 0;
  color: var(--portal-ink);
  font-size: 1.65rem;
  line-height: 1.08;
}

.portal-desk-command p {
  max-width: 830px;
  margin: 0.55rem 0 0;
  color: var(--portal-muted);
  font-weight: 750;
  line-height: 1.55;
}

.portal-desk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.portal-desk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.portal-desk-grid article,
.portal-desk-protocol {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-surface);
  box-shadow: 0 10px 28px rgb(36 27 19 / 0.045);
}

.portal-desk-grid article {
  min-height: 170px;
  padding: 0.9rem;
}

.portal-desk-grid b {
  display: block;
  margin-top: 0.45rem;
  color: var(--portal-ink);
  font-size: 1rem;
  line-height: 1.25;
}

.portal-desk-grid p {
  margin: 0.45rem 0 0;
  color: var(--portal-muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.48;
}

.portal-desk-protocol {
  margin-top: 0.85rem;
  padding: 1rem;
}

.portal-desk-protocol h3 {
  margin: 0;
  color: var(--portal-ink);
}

.portal-desk-protocol ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: support-step;
}

.portal-desk-protocol li {
  min-width: 0;
  counter-increment: support-step;
  border-top: 1px solid var(--portal-line);
  padding-top: 0.7rem;
}

.portal-desk-protocol li::before {
  content: counter(support-step, decimal-leading-zero);
  display: block;
  color: var(--portal-gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.portal-desk-protocol b {
  display: block;
  margin-top: 0.25rem;
  color: var(--portal-ink);
}

.portal-desk-protocol span {
  display: block;
  margin-top: 0.25rem;
  color: var(--portal-muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.portal-request-guide {
  border: 1px solid color-mix(in oklab, var(--portal-gold) 30%, var(--portal-line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(255 250 242 / 0.92), #fff),
    radial-gradient(circle at 96% 6%, rgb(201 150 26 / 0.14), transparent 24%);
  padding: 0.95rem;
}

.portal-request-guide span {
  display: block;
  color: var(--portal-gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-request-guide b {
  display: block;
  margin-top: 0.2rem;
  color: var(--portal-ink);
  font-size: 1.02rem;
}

.portal-request-guide p {
  margin: 0.3rem 0 0;
  color: var(--portal-muted);
  font-weight: 750;
  line-height: 1.45;
}

.portal-request-guide ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.portal-request-guide li {
  position: relative;
  min-width: 0;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.82);
  color: var(--portal-ink-2);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
  padding: 0.55rem 0.6rem 0.55rem 1.7rem;
}

.portal-request-guide li::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.86rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--portal-gold);
}

.portal-activity-panel {
  margin-top: 1rem;
}

.portal-activity-rail {
  display: grid;
  gap: 0.6rem;
}

.portal-activity-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 104px auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--portal-cream));
  padding: 0.72rem;
}

.portal-activity-item > span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgb(201 150 26 / 0.3);
  border-radius: 999px;
  background: var(--portal-gold-soft);
  color: #6c4a06;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.28rem 0.55rem;
}

.portal-activity-item b {
  display: block;
  color: var(--portal-ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.portal-activity-item small {
  display: block;
  margin-top: 0.18rem;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.portal-activity-item em {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.portal-activity-item.is-payment > span,
.portal-activity-item.is-quote > span {
  background: color-mix(in oklab, var(--portal-gold-soft) 70%, #fff);
}

.portal-activity-item.is-documents > span,
.portal-activity-item.is-confirmed > span {
  border-color: rgb(201 150 26 / 0.42);
  background: rgb(255 255 255 / 0.86);
}

body[data-private-portal="true"] .corporate-booking-card footer {
  border-top: 1px dashed var(--portal-line);
  padding-top: 0.75rem;
}

body[data-private-portal="true"] .corporate-booking-card footer b {
  color: var(--portal-ink);
}

body[data-private-portal="true"] .btn-sm {
  min-height: 34px;
  border-radius: 7px;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
}

body[data-private-portal="true"] .portal-record .btn-sm {
  flex: none;
}

.quote-desk-head,
.quote-desk-empty {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff, var(--portal-cream));
  box-shadow: 0 14px 34px rgb(36 27 19 / 0.06);
  padding: 1rem;
}

.quote-desk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quote-desk-head div,
.quote-desk-empty {
  display: grid;
  gap: 0.22rem;
}

.quote-desk-head span,
.quote-desk-empty span {
  color: var(--portal-gold);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 900;
}

.quote-desk-head b,
.quote-desk-empty b {
  color: var(--portal-ink);
  font-size: 1rem;
}

.quote-desk-head small,
.quote-desk-empty p {
  color: var(--portal-muted);
  font-weight: 750;
  margin: 0;
}

.quote-desk-empty {
  align-items: start;
  min-height: 220px;
  align-content: center;
}

body[data-private-portal="true"] .portal-quote-card {
  position: relative;
  overflow: hidden;
  gap: 0.9rem;
  padding: 1rem;
}

body[data-private-portal="true"] .portal-quote-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--portal-gold), rgb(201 150 26 / 0.16));
}

body[data-private-portal="true"] .portal-quote-card.is-accepted::before {
  background: linear-gradient(180deg, #8a6b16, rgb(201 150 26 / 0.18));
}

body[data-private-portal="true"] .portal-quote-card.is-accepted {
  background:
    radial-gradient(circle at 92% 10%, rgb(201 150 26 / 0.16), transparent 8rem),
    linear-gradient(135deg, #fff, #fffaf2);
}

body[data-private-portal="true"] .portal-quote-card.is-declined::before {
  background: linear-gradient(180deg, #8b7b66, rgb(139 123 102 / 0.16));
}

body[data-private-portal="true"] .portal-quote-card.is-declined {
  opacity: 0.82;
}

.quote-packet-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.quote-packet-top > div:first-child {
  display: grid;
  gap: 0.16rem;
}

.quote-packet-top small {
  color: var(--portal-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  font-weight: 900;
}

.quote-packet-top h3 {
  color: var(--portal-ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.18;
}

.quote-amount {
  flex: none;
  min-width: 170px;
  border: 1px solid rgb(201 150 26 / 0.22);
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem;
  text-align: right;
}

.quote-amount span {
  display: block;
  color: var(--portal-muted);
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.quote-amount b {
  color: var(--portal-ink);
  font-size: 1.2rem;
}

.quote-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.quote-detail-grid div {
  display: grid;
  gap: 0.16rem;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.76);
  padding: 0.72rem;
}

.quote-detail-grid span {
  color: var(--portal-muted);
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.quote-detail-grid b {
  color: var(--portal-ink);
  font-size: 0.88rem;
}

body[data-private-portal="true"] .portal-quote-terms {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgb(201 150 26 / 0.18);
  border-left: 4px solid var(--portal-gold);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--portal-ink-2);
}

body[data-private-portal="true"] .portal-quote-terms span {
  color: var(--portal-gold);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

body[data-private-portal="true"] .portal-quote-terms p {
  color: var(--portal-ink-2);
  font-weight: 750;
  margin: 0;
}

body[data-private-portal="true"] .portal-quote-actions {
  justify-content: space-between;
  border-top: 1px dashed var(--portal-line);
}

.quote-view-note {
  border-top: 1px dashed var(--portal-line);
  color: var(--portal-muted);
  font-weight: 800;
  padding-top: 0.85rem;
}

.vault-head,
.finance-ledger-head,
.statement-command,
.vault-empty {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff, var(--portal-cream));
  box-shadow: 0 14px 34px rgb(36 27 19 / 0.06);
  padding: 1rem;
}

.vault-head,
.finance-ledger-head,
.statement-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vault-head div,
.finance-ledger-head div,
.statement-command div,
.vault-empty {
  display: grid;
  gap: 0.22rem;
}

.vault-head span,
.finance-ledger-head span,
.statement-command span,
.vault-empty span {
  color: var(--portal-gold);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 900;
}

.vault-head b,
.finance-ledger-head b,
.statement-command b,
.vault-empty b {
  color: var(--portal-ink);
  font-size: 1rem;
}

.vault-head small,
.finance-ledger-head small,
.statement-command small,
.vault-empty p {
  color: var(--portal-muted);
  font-weight: 750;
  margin: 0;
}

.vault-empty {
  align-items: start;
  min-height: 220px;
  align-content: center;
}

.vault-empty.compact {
  min-height: 0;
  padding: 0.9rem;
}

.document-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.4fr);
  gap: 1rem;
  border: 1px solid rgb(201 150 26 / 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgb(201 150 26 / 0.12), transparent 28%),
    linear-gradient(135deg, #fff, var(--portal-cream));
  box-shadow: 0 18px 44px rgb(36 27 19 / 0.07);
  margin-bottom: 1rem;
  padding: 1rem;
}

.document-command-panel > div:first-child {
  display: grid;
  align-content: center;
  gap: 0.35rem;
}

.document-command-panel span {
  color: var(--portal-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.document-command-panel h3 {
  color: var(--portal-ink);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin: 0;
}

.document-command-panel p {
  color: var(--portal-muted);
  font-weight: 760;
  margin: 0;
  max-width: 62ch;
}

.document-request-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 0.75rem;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.84);
  padding: 0.85rem;
}

.document-request-form .document-request-note {
  grid-column: 1 / -1;
}

.document-request-form .btn {
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 44px;
}

.document-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.document-check-card {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgb(201 150 26 / 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #fffaf2);
  box-shadow: 0 12px 30px rgb(36 27 19 / 0.05);
  padding: 1rem;
}

.document-check-card small {
  color: var(--portal-gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.document-check-card b {
  display: block;
  color: var(--portal-ink);
  font-size: 1.02rem;
  line-height: 1.2;
  margin-top: 0.18rem;
}

.document-check-card p {
  margin: 0.25rem 0 0;
  color: var(--portal-muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.document-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.document-check-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  background: #fff;
  color: var(--portal-muted);
  padding: 0.42rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.document-check-list i,
.document-vault-main > i {
  display: inline-block;
  flex: none;
  border-radius: 999px;
}

.document-check-list i {
  width: 0.48rem;
  height: 0.48rem;
  background: rgb(36 27 19 / 0.18);
}

.document-check-list .is-ready {
  border-color: rgb(201 150 26 / 0.28);
  background: var(--portal-gold-soft);
  color: #6c4a06;
}

.document-check-list .is-ready i {
  background: var(--portal-gold);
  box-shadow: 0 0 0 4px rgb(201 150 26 / 0.12);
}

.document-vault-card,
.finance-ledger-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.78rem;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff, var(--portal-cream));
  box-shadow: 0 16px 42px rgb(36 27 19 / 0.07);
  padding: 1rem;
}

.document-vault-card::before,
.finance-ledger-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--portal-gold), rgb(201 150 26 / 0.18));
}

.document-vault-main,
.finance-ledger-main {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.document-vault-main > i {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgb(201 150 26 / 0.24);
  background:
    linear-gradient(135deg, rgb(201 150 26 / 0.16), rgb(255 250 242 / 0.8)),
    #fff;
  box-shadow: inset 0 0 0 8px rgb(255 255 255 / 0.72);
}

.document-type-ticket .document-vault-main > i { border-radius: 8px 8px 999px 999px; }
.document-type-voucher .document-vault-main > i { border-radius: 8px; }
.document-type-invoice .document-vault-main > i { border-radius: 6px; background: linear-gradient(180deg, #fff, var(--portal-cream)); }
.document-type-visa .document-vault-main > i { border-radius: 999px 8px 999px 8px; }
.document-type-policy .document-vault-main > i { border-radius: 999px 999px 8px 8px; }

.document-vault-main > div,
.finance-ledger-main > div {
  display: grid;
  gap: 0.16rem;
}

.document-vault-main small,
.finance-ledger-main small {
  color: var(--portal-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  font-weight: 900;
}

.document-vault-main b,
.finance-ledger-main b {
  color: var(--portal-ink);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.18;
}

.document-vault-main p,
.finance-ledger-main p {
  color: var(--portal-muted);
  font-weight: 750;
  margin: 0;
}

.document-vault-main > span,
.finance-ledger-main > span {
  flex: none;
  border: 1px solid rgb(201 150 26 / 0.22);
  border-radius: 999px;
  background: var(--portal-gold-soft);
  color: #6c4a06;
  padding: 0.42rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.document-vault-meta,
.finance-ledger-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.35rem 0.6rem;
  border-top: 1px dashed var(--portal-line);
  color: var(--portal-muted);
  padding-top: 0.72rem;
}

.document-vault-meta span,
.finance-ledger-meta span {
  color: var(--portal-muted);
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.document-vault-meta b,
.finance-ledger-meta b {
  color: var(--portal-ink);
  font-size: 0.84rem;
}

.statement-command {
  margin-bottom: 0.75rem;
}

@media (max-width: 1100px) {
  .portal-control-strip,
  body[data-private-portal="true"] .portal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-request-layout,
  .portal-operations-grid,
  .portal-command-center {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body[data-private-portal="true"] .portal-app {
    grid-template-columns: 1fr;
  }

  body[data-private-portal="true"] .portal-sidebar {
    position: static;
    height: auto;
  }

  body[data-private-portal="true"] .portal-app-hero,
  body[data-private-portal="true"] .portal-overview-grid,
  .portal-control-strip,
  body[data-private-portal="true"] .portal-metrics {
    grid-template-columns: 1fr;
  }

  body[data-private-portal="true"] .portal-app-hero > div:first-child::after {
    display: none;
  }

  .corporate-booking-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-command-head,
  body[data-private-portal="true"] .corporate-booking-main {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-detail-grid {
    grid-template-columns: 1fr;
  }

  .document-check-grid {
    grid-template-columns: 1fr;
  }

  .payment-handoff-panel {
    grid-template-columns: 1fr;
  }

  .payment-handoff-actions {
    justify-content: stretch;
  }

  .payment-handoff-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .payment-clearance-timeline {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    border-top: 0;
  }

  .payment-clearance-timeline li {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 0;
  }

  .payment-clearance-timeline li::before {
    display: none;
  }

  .quote-desk-head,
  .quote-packet-top {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-desk-command,
  .portal-desk-grid,
  .portal-desk-protocol ol,
  .portal-request-guide ul,
  .portal-activity-item {
    grid-template-columns: 1fr;
  }

  .portal-desk-actions {
    justify-content: stretch;
  }

  .portal-desk-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .portal-activity-item em {
    text-align: left;
  }

  .quote-amount {
    text-align: left;
  }

  .quote-detail-grid {
    grid-template-columns: 1fr;
  }

  .vault-head,
  .finance-ledger-head,
  .statement-command,
  .document-vault-main,
  .finance-ledger-main {
    align-items: stretch;
    flex-direction: column;
  }

  .document-vault-meta,
  .finance-ledger-meta {
    grid-template-columns: 1fr;
  }

  .document-command-panel,
  .document-request-form {
    grid-template-columns: 1fr;
  }

}

/* Final private portal layout priority. Keep this block last. */
body[data-private-portal="true"] .portal-app {
  grid-template-columns: 244px minmax(0, 1fr);
}

body[data-private-portal="true"] .portal-app-main {
  width: min(1360px, 100%);
  padding: 1.25rem;
}

body[data-private-portal="true"] .portal-app-hero {
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

body[data-private-portal="true"] .portal-app-hero > div:first-child {
  min-height: 0;
  padding: 1.45rem 1.55rem;
}

body[data-private-portal="true"] .portal-app-hero > div:first-child::after {
  right: 1.4rem;
  bottom: 0.8rem;
  width: 260px;
  height: 58px;
  opacity: 0.46;
}

body[data-private-portal="true"] .portal-app-hero h1 {
  max-width: 660px;
  font-size: 3.15rem;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}

body[data-private-portal="true"] .portal-app-hero p {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.65;
}

body[data-private-portal="true"] .portal-hero-tags {
  margin-top: 0.95rem;
}

body[data-private-portal="true"] .portal-live-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  max-width: 720px;
  margin-top: 1rem;
}

body[data-private-portal="true"] .portal-live-strip span {
  border: 1px solid rgb(201 150 26 / 0.24);
  border-radius: 8px;
  background: rgb(255 250 242 / 0.88);
  color: var(--portal-ink-2);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  padding: 0.62rem 0.7rem;
  text-align: center;
}

body[data-private-portal="true"] .portal-status-panel {
  align-content: space-between;
  min-height: 100%;
  padding: 1.25rem;
}

body[data-private-portal="true"] .portal-status-panel b {
  font-size: 2rem;
  line-height: 1;
}

body[data-private-portal="true"] .portal-status-panel::after {
  content: "Admin linked / company scoped / permission controlled";
}

body[data-private-portal="true"] .portal-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-private-portal="true"] .portal-metrics div {
  min-height: 132px;
  padding: 1rem;
}

body[data-private-portal="true"] .portal-metrics span {
  font-size: 2.35rem;
  line-height: 1;
}

body[data-private-portal="true"] .portal-metrics #corp-member-role {
  font-size: 1.65rem;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

body[data-private-portal="true"] .portal-control-strip article {
  min-height: 116px;
  border-left: 3px solid rgb(201 150 26 / 0.44);
}

body[data-private-portal="true"] .portal-control-strip span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgb(201 150 26 / 0.24);
  border-radius: 999px;
  background: var(--portal-gold-soft);
  color: #6c4a06;
  font-size: 0.72rem;
  letter-spacing: 0;
  padding: 0.26rem 0.55rem;
}

body[data-private-portal="true"] .portal-workspace-head {
  align-items: center;
  min-height: 96px;
}

body[data-private-portal="true"] .portal-workspace-head h2 {
  font-size: 1.75rem;
  letter-spacing: 0;
}

body[data-private-portal="true"] .portal-workspace-head p {
  max-width: 820px;
  line-height: 1.55;
}

body[data-private-portal="true"] .portal-tabs {
  border-top: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
  overflow-x: auto;
}

body[data-private-portal="true"] .portal-tabs button {
  flex: none;
  min-width: 92px;
  white-space: nowrap;
}

body[data-private-portal="true"] .portal-command-center article,
body[data-private-portal="true"] .portal-panel,
body[data-private-portal="true"] .portal-record,
body[data-private-portal="true"] .portal-empty,
body[data-private-portal="true"] .portal-loading,
body[data-private-portal="true"] .request-policy-panel {
  box-shadow: 0 10px 28px rgb(36 27 19 / 0.055);
}

body[data-private-portal="true"] .portal-command-center b,
body[data-private-portal="true"] .finance-ledger-main b {
  font-size: 1.12rem;
  line-height: 1.22;
}

body[data-private-portal="true"] .portal-support-link {
  color: var(--portal-ink);
}

@media (max-width: 1100px) {
  body[data-private-portal="true"] .portal-app-main {
    padding: 1rem;
  }

  body[data-private-portal="true"] .portal-app-hero {
    grid-template-columns: 1fr;
  }

  body[data-private-portal="true"] .portal-live-strip,
  body[data-private-portal="true"] .portal-metrics,
  body[data-private-portal="true"] .portal-control-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-private-portal="true"] .portal-app {
    display: block;
  }

  body[data-private-portal="true"] .portal-app-topbar {
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
  }

  body[data-private-portal="true"] .portal-app-brand img {
    width: 46px;
  }

  body[data-private-portal="true"] .portal-app-brand span b {
    font-size: 0.98rem;
  }

  body[data-private-portal="true"] .portal-app-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body[data-private-portal="true"] .portal-app-actions .btn {
    min-height: 42px;
    padding-inline: 0.9rem;
  }

  body[data-private-portal="true"] .portal-sidebar {
    position: sticky;
    top: 0;
    z-index: 9;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
    box-shadow: 0 10px 24px rgb(36 27 19 / 0.08);
  }

  body[data-private-portal="true"] .portal-company-mini {
    margin: 0.75rem;
  }

  body[data-private-portal="true"] .portal-sidebar nav {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0 0.75rem 0.8rem;
  }

  body[data-private-portal="true"] .portal-sidebar nav a {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0.7rem 0.85rem;
  }

  body[data-private-portal="true"] .portal-app-main {
    padding: 0.8rem;
  }

  body[data-private-portal="true"] .portal-app-hero h1 {
    font-size: 2.3rem;
  }

  body[data-private-portal="true"] .portal-app-hero > div:first-child {
    padding: 1.2rem;
  }

  body[data-private-portal="true"] .portal-status-panel b {
    font-size: 1.55rem;
  }

  body[data-private-portal="true"] .portal-live-strip,
  body[data-private-portal="true"] .portal-metrics,
  body[data-private-portal="true"] .portal-control-strip {
    grid-template-columns: 1fr;
  }

  body[data-private-portal="true"] .portal-workspace-head {
    align-items: flex-start;
  }

  body[data-private-portal="true"] .portal-workspace-head .btn {
    width: 100%;
  }

  body[data-private-portal="true"] .portal-tabs {
    padding-inline: 0.65rem;
  }

  body[data-private-portal="true"] .portal-tab-panel {
    padding: 0.85rem;
  }

  body[data-private-portal="true"] .portal-record,
  body[data-private-portal="true"] .portal-panel {
    padding: 1rem;
  }

  body[data-private-portal="true"] .document-request-form .doc-type-grid,
  body[data-private-portal="true"] .portal-request-grid,
  body[data-private-portal="true"] .statement-grid,
  body[data-private-portal="true"] .quote-meta-grid {
    grid-template-columns: 1fr;
  }

  .corporate-booking-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body[data-private-portal="true"] .portal-app-main {
    padding: 0.55rem;
  }

  body[data-private-portal="true"] .portal-app-hero h1 {
    font-size: 1.95rem;
  }

  body[data-private-portal="true"] .portal-app-hero p,
  body[data-private-portal="true"] .portal-workspace-head p {
    font-size: 0.95rem;
  }

  body[data-private-portal="true"] .portal-metrics span {
    font-size: 2rem;
  }

  body[data-private-portal="true"] .portal-record-actions,
  body[data-private-portal="true"] .quote-actions,
  body[data-private-portal="true"] .statement-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-private-portal="true"] .portal-record-actions .btn,
  body[data-private-portal="true"] .quote-actions .btn,
  body[data-private-portal="true"] .statement-actions .btn {
    width: 100%;
  }
}
