.nx .cp-browserbar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; padding: .6rem 1rem; background: var(--nx-surface-3); }
.nx .cp-address { display: flex; gap: .5rem; font-size: .8rem; overflow-wrap: anywhere; min-inline-size: 0; }
.nx .cp-device { display: flex; gap: .3rem; }
.nx .cp-web { --mq-ink: #15383b; --mq-muted: #4b686b; --mq-line: #cfdfdf; color-scheme: light; background: #fff; color: var(--mq-ink); container: mq / inline-size; inline-size: 100%; margin-inline: auto; flex: none; --nx-surface: #fff; --nx-surface-2: #f1f7f7; --nx-surface-3: #e2f1f0; --nx-ink: #15383b; --nx-ink-2: #345d60; --nx-ink-3: #4b686b; --nx-line: #cfdfdf; --nx-brand: #0b6b72; --nx-brand-hover: #084e54; --nx-brand-ink: #0b3237; --nx-brand-soft: #e2f1f0; --nx-ink-inv: #fff; --nx-focus: #0b6b72; }
.nx .cp-web.cp-phone { max-inline-size: 390px; }
.nx[data-app="client-portal"] .cp-web .nx-btn-primary { --b-fg: #fff; }
.nx .cp-web-fiction { background: #e2f1f0; padding: .5rem 1.2rem; font-size: .75rem; text-align: center; }
.nx .cp-announcement { background: #0b3237; color: #fff; padding: .6rem 1.2rem; font-size: .8rem; text-align: center; }
.nx .cp-web-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.6rem; border-block-end: 1px solid var(--mq-line); }
.nx .cp-web-brand { background: transparent; border: 0; display: flex; align-items: center; gap: .6rem; color: #0b3237; font-weight: 600; }
.nx .cp-web-brand span { max-inline-size: 12rem; }
.nx .cp-web-nav { display: flex; flex-wrap: wrap; gap: .2rem; margin-inline-start: auto; }
.nx .cp-web-nav button,.nx .cp-web-language { border: 0; background: transparent; padding: .5rem; color: #0b5359; font-size: .8rem; font-weight: 500; }
.nx .cp-web-nav button[aria-current] { border-block-end: 2px solid #0b6b72; }
.nx .cp-web-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 2rem; padding: 2.8rem 2rem; background: #f0f7f6; align-items: center; }
.nx .cp-web-hero h2 { font-size: clamp(1.6rem,3cqi,2.5rem); line-height: 1.4; font-variation-settings: "HEXP" 45; }
.nx .cp-web-hero p { margin-block: .9rem; line-height: 1.85; color: #345d60; }
.nx .cp-eyebrow { font-size: .8rem; font-weight: 600; }
.nx .cp-jobcard { background: #fff; padding: 1.3rem; border: 1px solid #bbd6d7; border-block-start: 4px solid #f0b429; border-radius: .5rem; box-shadow: 0 15px 35px -24px #0b3237; }
.nx .cp-jobhead { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .75rem; margin-block-end: 1rem; }
.nx .cp-jobhead span { margin-inline-start: auto; }
.nx .cp-jobcard h3 { margin-block-end: 1rem; font-size: 1.1rem; }
.nx .cp-web-section { padding: 2rem; }
.nx .cp-web-section > h2 { margin-block-end: 1rem; font-size: 1.5rem; }
.nx .cp-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block-start: 1px solid var(--mq-line); border-inline-start: 1px solid var(--mq-line); }
.nx .cp-service-grid article { padding: 1rem; border-block-end: 1px solid var(--mq-line); border-inline-end: 1px solid var(--mq-line); display: flex; flex-direction: column; align-items: start; gap: .5rem; }
.nx .cp-service-grid h3 { font-size: 1rem; }
.nx .cp-service-grid p { font-size: .85rem; color: var(--mq-muted); }
.nx .cp-service-grid button { margin-block-start: auto; }
.nx .cp-how { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.nx .cp-how li span { color: #0b6b72; font-weight: 600; display: block; margin-block-end: .5rem; }
.nx .cp-how h3 { font-size: 1rem; }
.nx .cp-how p { font-size: .85rem; color: var(--mq-muted); margin-block-start: .5rem; }
.nx .cp-contractband { display: flex; gap: 1rem; padding: 1.5rem 2rem; background: #0b3237; color: #fff; }
.nx .cp-contractband h2 { color: #fff; font-size: 1.25rem; margin-block-end: .5rem; }
.nx .cp-contractband p { color: #d0e7e6; }
.nx .cp-web-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem 2rem; border-block-start: 1px solid var(--mq-line); font-size: .8rem; }
.nx .cp-web-footer p { margin-block-start: .5rem; color: #4b686b; }
.nx .cp-web-footer > p { grid-column: 1 / -1; }
.nx .cp-web-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; max-inline-size: 48rem; margin-inline: auto; }
.nx .cp-web-form > :is(h2,p,.cp-form-error),.nx .cp-span { grid-column: 1 / -1; }
.nx .cp-web-field { min-inline-size: 0; display: grid; gap: .35rem; }
.nx .cp-web :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { border: 1px solid #9bb9bd; border-radius: .3rem; color: #15383b; background: #fff; padding: .65rem; inline-size: 100%; min-inline-size: 0; }
.nx .cp-service-choice { border: 0; padding: 0; min-inline-size: 0; }
.nx .cp-service-choice legend { font-size: .85rem; margin-block-end: .5rem; }
.nx .cp-service-choice > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
.nx .cp-service-choice label { display: flex; align-items: start; gap: .5rem; border: 1px solid var(--mq-line); padding: .8rem; border-radius: .3rem; cursor: pointer; }
.nx .cp-service-choice label:has(:checked) { border-color: #0b6b72; background: #e2f1f0; }
.nx .cp-service-choice input { margin-block-start: .2rem; accent-color: #0b6b72; flex: none; }
.nx .cp-web label { font-size: .85rem; }
.nx .cp-consent { display: flex; gap: .5rem; align-items: start; }
.nx .cp-consent input { margin-block-start: .2rem; accent-color: #0b6b72; }
.nx .cp-form-error { color: #9b231c; background: #fff0ed; padding: .7rem; border: 1px solid #e2aba5; }
.nx .cp-success { display: grid; gap: 1rem; max-inline-size: 42rem; margin-inline: auto; }
.nx .cp-success > .nx-i { inline-size: 3rem; block-size: 3rem; color: #0b6b72; }
.nx .cp-confirm-preview,.nx .cp-demo-tip { padding: 1rem; background: #f0f7f6; border: 1px solid #cfdfdf; }
.nx .cp-track { max-inline-size: 45rem; margin-inline: auto; }
.nx .cp-track > * + * { margin-block-start: 1rem; }
.nx .cp-track-form { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.nx .cp-track-form label { display: grid; flex: 1 1 10rem; gap: .4rem; }
.nx .cp-draft-banner { background: #ffedbb; color: #5d4100; padding: .65rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
@container mq (max-width: 640px) {
  .nx .cp-web-header { padding: .8rem; gap: .4rem; }
  .nx .cp-web-brand { flex: 1; }
  .nx .cp-web-brand span { font-size: .85rem; }
  .nx .cp-web-nav { order: 3; inline-size: 100%; margin: 0; justify-content: space-between; }
  .nx .cp-web-hero { grid-template-columns: minmax(0,1fr); padding: 1.5rem 1rem; gap: 1.3rem; }
  .nx .cp-web-section { padding: 1.3rem 1rem; }
  .nx .cp-service-grid,.nx .cp-how,.nx .cp-web-form,.nx .cp-web-footer { grid-template-columns: minmax(0,1fr); }
  .nx .cp-jobcard { padding: 1rem .7rem; }
  .nx .cp-contractband,.nx .cp-web-footer { padding: 1.2rem 1rem; }
}
@container nxapp (max-width: 760px) { .nx .cp-device { display: none; } .nx .cp-browserbar { padding: .5rem; } }

.nx .cp-login { max-inline-size: 48rem; inline-size: 100%; margin: auto; padding: 2rem; display: grid; gap: 1.2rem; }
.nx .cp-login-brand { display: flex; align-items: center; gap: .7rem; color: var(--nx-brand-ink); }
.nx .cp-login-brand h2 { font-size: 1.5rem; }
.nx .cp-login-accounts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; }
.nx .cp-login-account { display: flex; align-items: center; gap: .7rem; padding: 1rem; background: var(--nx-surface); border: 1px solid var(--nx-line-strong); border-radius: .4rem; text-align: start; color: var(--nx-ink); }
.nx .cp-login-account small { display: block; color: var(--nx-ink-3); margin-block-start: .4rem; line-height: 1.6; }
.nx .cp-login-account svg { flex: none; color: var(--nx-brand); }
.nx .cp-auth-form { max-inline-size: 28rem; inline-size: 100%; margin-inline: auto; display: grid; gap: 1rem; padding: 1.3rem; background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: .6rem; }
.nx .cp-auth-form label,.nx .cp-composer label { display: grid; gap: .4rem; }
.nx .cp-auth-form .cp-check,.nx .cp-check { display: flex; align-items: start; gap: .5rem; }
.nx .cp-check input { margin-block-start: .2rem; accent-color: var(--nx-brand); }
.nx .cp-sms { display: grid; gap: .5rem; padding: .8rem; background: var(--nx-brand-soft); color: var(--nx-brand-ink); border-radius: .5rem; }
.nx .cp-code { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.nx .cp-finance-demo { max-inline-size: 28rem; margin-inline: auto; }
.nx .cp-finance-demo p { margin-block: .5rem; }
.nx .cp-portal-header { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; justify-content: space-between; padding: 1rem; background: var(--nx-surface); border-block-end: 1px solid var(--nx-line); }
.nx .cp-portal-header .cp-identity { flex: 1 1 13rem; }
.nx .cp-portal-header .cp-identity svg { flex: none; color: var(--nx-brand-ink); }
.nx .cp-portal-nav { display: flex; gap: .3rem; padding: .5rem 1rem; background: var(--nx-surface); border-block-end: 1px solid var(--nx-line); }
.nx .cp-portal-nav a { padding: .65rem .9rem; display: flex; gap: .5rem; align-items: center; color: var(--nx-ink-2); border-radius: .4rem; }
.nx .cp-portal-nav a[aria-current] { color: var(--nx-brand-ink); background: var(--nx-brand-soft); }
.nx .cp-portal-content { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; container: nxmain / inline-size; }
.nx .cp-portal-content > * { min-inline-size: 0; }
.nx .cp-notices { display: grid; gap: .5rem; }
.nx .cp-notice { display: grid; gap: .3rem; padding: .75rem .5rem; border: 0; border-block-end: 1px solid var(--nx-line); background: transparent; text-align: start; color: var(--nx-ink); }
.nx .cp-notice small { color: var(--nx-ink-3); }
.nx .cp-composer { display: grid; gap: .6rem; margin-block-start: 1rem; }
.nx .cp-composer > button { justify-self: start; }
.nx .cp-quote { margin-block-end: 1rem; }
@container nxapp (max-width: 760px) {
  .nx .cp-login { padding: 1rem .7rem; }
  .nx .cp-login-accounts { grid-template-columns: minmax(0,1fr); }
  .nx .cp-login-account { padding: .65rem; }
  .nx .cp-login-account small { margin-block-start: .2rem; }
  .nx .cp-auth-form { padding: 1rem; }
  .nx .cp-portal-nav { order: 3; position: sticky; inset-block-end: 0; z-index: 8; padding: .35rem; border-block: 1px solid var(--nx-line); gap: 0; }
  .nx .cp-portal-nav a { flex: 1; min-inline-size: 0; flex-direction: column; font-size: .68rem; gap: .25rem; padding: .4rem .15rem; text-align: center; }
  .nx .cp-portal-content { padding-block-end: 1rem; flex: 1; }
  .nx .cp-portal-header { padding: .7rem; }
  .nx .cp-portal-header .cp-actions { inline-size: 100%; justify-content: space-between; }
}

.nx .cp-schedule-scroll { overflow: auto; margin-block-start: .75rem; border: 1px solid var(--nx-line); border-radius: .4rem; }
.nx[data-app="client-portal"] .nx-appbar { flex-wrap: wrap; }
.nx[data-app="client-portal"] .nx-brand-name { white-space: normal; }
.nx[data-app="client-portal"] .nx-appbar .nx-tools { flex-wrap: wrap; }
.nx .cp-schedule { min-inline-size: 58rem; }
.nx .cp-schedule-head,.nx .cp-tech-row { display: grid; grid-template-columns: 7rem minmax(0,1fr); border-block-end: 1px solid var(--nx-line); }
.nx .cp-schedule-head > strong { padding: .75rem; font-size: .8rem; }
.nx .cp-hours { display: flex; justify-content: space-between; padding-block: .8rem; font-size: .7rem; color: var(--nx-ink-3); direction: ltr; }
.nx[dir="rtl"] .cp-hours { direction: rtl; }
.nx .cp-hours span { direction: ltr; }
.nx .cp-tech-label { display: flex; align-items: center; gap: .5rem; padding: .7rem; background: var(--nx-surface-2); font-size: .85rem; }
.nx .cp-tech-lane { position: relative; min-block-size: 5rem; background-size: calc(100% / 14) 100%; background-image: linear-gradient(to right, var(--nx-line) 1px, transparent 1px); }
.nx .cp-visit-block { position: absolute; inset-block: .6rem; border: 1px solid var(--nx-brand-line); border-inline-start: 3px solid var(--nx-brand); border-radius: .25rem; padding: .25rem; display: flex; flex-direction: column; gap: .2rem; text-align: start; overflow: hidden; color: var(--nx-brand-ink); background: var(--nx-brand-soft); font-size: .68rem; }
.nx .cp-visit-block[data-status="done"] { background: var(--nx-pos-soft); border-color: var(--nx-pos); color: var(--nx-pos); }
.nx .cp-visit-block[data-status="onsite"] { background: var(--nx-warn-soft); border-color: var(--nx-warn); color: var(--nx-warn); }
.nx .cp-visit-block span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx .cp-now-line { position: absolute; inset-block: 0; inline-size: 2px; background: var(--nx-neg); pointer-events: none; }
.nx .cp-message-preview { background: var(--nx-brand-soft); color: var(--nx-brand-ink); padding: .8rem; border-radius: .5rem; }
.nx .cp-message-preview p { margin-block-start: .4rem; }
.nx .cp-quote-editor { display: grid; gap: .6rem; margin-block-end: .8rem; }
.nx .cp-quote-edit-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,.6fr) minmax(0,1fr) auto; gap: .4rem; }
.nx .cp-quote-total { margin-block-start: .8rem; font-weight: 600; }
@media (max-width: 560px) { .nx .cp-quote-edit-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; } .nx .cp-quote-edit-row > :first-child { grid-column: 1 / -1; } }

.nx .cp-cms-form { display: grid; gap: 1rem; }
.nx .cp-cms-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; padding: 1rem; border: 1px solid var(--nx-line); border-radius: .5rem; background: var(--nx-surface); }
.nx .cp-cms-pair h3 { grid-column: 1 / -1; font-size: 1rem; }
.nx .cp-cms-pair label { display: grid; gap: .4rem; }
.nx .cp-cms-history { list-style: none; padding: 0; }
.nx .cp-cms-history li { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; border-block-end: 1px solid var(--nx-line); padding-block: .8rem; }
.nx .cp-cms-history small { color: var(--nx-ink-3); }
@container nxapp (max-width: 760px) { .nx .cp-cms-pair { grid-template-columns: minmax(0,1fr); } }

/* Mutqan uses a distinct fictional product identity, within the existing NX shell. */
.nx[data-app="client-portal"] { --nx-brand: #0b6b72; --nx-brand-hover: #084e54; --nx-brand-ink: #0b3237; --nx-brand-soft: #e2f1f0; --nx-brand-line: #a0c5c7; --nx-focus: #0b6b72; }
.nx[data-app="client-portal"][data-theme="dark"] { --nx-brand: #70d1d0; --nx-brand-hover: #a1e5e3; --nx-brand-ink: #c3f1ef; --nx-brand-soft: #173b40; --nx-brand-line: #376268; --nx-focus: #91e1df; }
.nx .cp-heading { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-block-end: 1rem; }
.nx .cp-heading h2 { font-size: 1.3rem; font-variation-settings: "HEXP" 45; }
.nx .cp-heading h2:focus { outline: none; }
.nx .cp-heading p { margin-block-start: .3rem; }
.nx .cp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.nx .cp-perspectives { padding: .75rem; background: var(--nx-surface); border-block-end: 1px solid var(--nx-line); display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .4rem; flex: none; }
.nx .cp-perspective { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: .65rem; border: 1px solid var(--nx-line); border-radius: .4rem; background: var(--nx-surface); color: var(--nx-ink-2); text-align: start; min-inline-size: 0; }
.nx .cp-perspective[aria-selected="true"] { border-color: var(--nx-brand); box-shadow: inset 0 -2px var(--nx-brand); color: var(--nx-brand-ink); background: var(--nx-brand-soft); }
.nx .cp-perspective small { font-size: .75rem; color: var(--nx-ink-2); line-height: 1.45; }
.nx .cp-new-dot { position: absolute; inset-inline-end: .5rem; inset-block-start: .5rem; inline-size: .45rem; block-size: .45rem; border-radius: 50%; background: var(--nx-brand); }
.nx .cp-surface { min-inline-size: 0; flex: 1; display: flex; flex-direction: column; }
.nx.is-full .cp-surface { overflow: auto; min-block-size: 0; }
.nx .cp-content { padding: 1.2rem; min-inline-size: 0; }
.nx .cp-panel { padding: 1rem; background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: .6rem; min-inline-size: 0; }
.nx .cp-panel h3 { font-size: 1rem; margin-block-end: .75rem; }
.nx .cp-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.nx .cp-grid3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.nx .cp-stack { display: grid; gap: 1rem; }
.nx .cp-toolbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-block-end: .85rem; }
.nx .cp-toolbar > * { flex: 1 1 9rem; min-inline-size: 0; }
.nx .cp-reference { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx .cp-tracker { list-style: none; display: flex; margin: 0; padding: 1rem 0; gap: .35rem; }
.nx .cp-tracker li { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; align-items: center; gap: .45rem; position: relative; font-size: .75rem; text-align: center; color: var(--nx-ink-3); }
.nx .cp-tracker li::before { position: absolute; content: ""; inset-block-start: .8rem; inset-inline-start: -50%; inline-size: 100%; block-size: 2px; background: var(--nx-line); }
.nx .cp-tracker li:first-child::before { display: none; }
.nx .cp-tracker .cp-reached::before { background: var(--nx-brand); }
.nx .cp-step-dot { z-index: 1; display: grid; place-content: center; inline-size: 1.65rem; block-size: 1.65rem; background: var(--nx-surface-3); border: 1px solid var(--nx-line); border-radius: 50%; }
.nx .cp-reached .cp-step-dot { background: var(--nx-brand); color: var(--nx-ink-inv); border-color: var(--nx-brand); }
.nx .cp-timeline { list-style: none; padding: 0; margin: 0; }
.nx .cp-timeline li { display: flex; gap: .7rem; padding-block: .65rem; border-block-end: 1px solid var(--nx-line); }
.nx .cp-timeline li p { overflow-wrap: anywhere; margin-block-start: .25rem; }
.nx .cp-time-dot { color: var(--nx-brand); flex: none; }
.nx .cp-document { display: grid; gap: 1rem; background: var(--nx-surface); padding: 1rem; }
.nx .cp-document-brand { display: flex; align-items: center; gap: .6rem; color: var(--nx-brand-ink); padding-block-end: .8rem; border-block-end: 2px solid var(--nx-brand); }
.nx .cp-line-items { inline-size: 100%; border-collapse: collapse; }
.nx .cp-line-items :is(th,td) { padding: .6rem .4rem; border-block-end: 1px solid var(--nx-line); text-align: start; font-weight: 400; }
.nx .cp-line-items td:last-child { white-space: nowrap; }
.nx .cp-checklist { display: grid; gap: .6rem; padding: 0; list-style: none; }
.nx .cp-checklist li { display: flex; gap: .5rem; }
.nx .cp-upload label { display: grid; gap: .4rem; }
.nx .cp-upload input { inline-size: 100%; min-inline-size: 0; font-size: .8rem; }
.nx .cp-files { list-style: none; padding: 0; margin-block: .5rem; display: grid; gap: .4rem; }
.nx .cp-files li { display: flex; align-items: center; gap: .5rem; padding: .5rem; background: var(--nx-surface-2); overflow-wrap: anywhere; }
.nx .cp-files img { object-fit: cover; border-radius: .3rem; }
.nx .cp-preview-image { max-inline-size: 100%; block-size: auto; object-fit: contain; }
.nx .cp-kpis { margin-block-end: 1rem; }
.nx .cp-row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding-block: .8rem; border-block-end: 1px solid var(--nx-line); }
.nx .cp-row > .nx-grow { min-inline-size: 0; flex-basis: 10rem; overflow-wrap: anywhere; }
.nx .cp-row small { display: block; color: var(--nx-ink-3); }
.nx .cp-row .nx-btn { max-inline-size: 100%; white-space: normal; text-align: start; }
.nx .cp-identity { display: flex; align-items: center; gap: .65rem; }
.nx .cp-clock { font-variant-numeric: tabular-nums; direction: ltr; }
.nx .cp-full { max-inline-size: 58rem; margin-inline: auto; padding: 2rem; }
.nx .cp-full li { margin-block: .5rem; }
@container nxapp (max-width: 760px) {
  .nx .cp-perspectives { grid-template-columns: repeat(2,minmax(0,1fr)); padding: .5rem; }
  .nx .cp-perspective { padding: .5rem; }
  .nx .cp-perspective small { display: none; }
  .nx .cp-grid, .nx .cp-grid3 { grid-template-columns: minmax(0,1fr); }
  .nx .cp-content, .nx .cp-full { padding: .8rem; }
  .nx .cp-line-items { font-size: .8rem; }
}
