/* Launch Polish OS #731-#745: compact, centred, launch-ready UI refinements. */
:root {
  --gn-polish-ink: #2c1722;
  --gn-polish-muted: #755a68;
  --gn-polish-panel: rgba(255, 250, 253, 0.94);
  --gn-polish-panel-strong: #fff;
  --gn-polish-line: rgba(205, 90, 142, 0.2);
  --gn-polish-pink: #ee5c9b;
  --gn-polish-pink-soft: #fff1f7;
  --gn-polish-gold: #c89a3e;
  --gn-polish-shadow: 0 14px 32px rgba(113, 36, 74, 0.1);
}

body[data-theme="dark"] {
  --gn-polish-ink: #fff4f9;
  --gn-polish-muted: #d9c0cd;
  --gn-polish-panel: rgba(35, 14, 25, 0.94);
  --gn-polish-panel-strong: #261320;
  --gn-polish-line: rgba(246, 112, 171, 0.22);
  --gn-polish-pink-soft: #3a1a2c;
  --gn-polish-gold: #e7ba62;
  --gn-polish-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

html[data-glownow-polish] {
  text-rendering: optimizeLegibility;
}

body.launch-polish-os-ready :is(button, a, input, select, textarea) {
  letter-spacing: 0;
}

body.launch-polish-os-ready :is(.launch-primary, .launch-secondary, .launch-soft-button, .primary-action, .secondary-action, .glass-action, .account-centered-action, .account-arrival-actions button, .provider-workspace-tabs button, .client-hub-tabs button, .booking-steps button, .app-entry-card) {
  border-radius: 7px;
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
}

body.launch-polish-os-ready :is(.launch-primary, .launch-secondary, .launch-soft-button, .primary-action, .secondary-action, .glass-action).gn-long-label {
  min-height: 46px;
  white-space: normal;
}

body.launch-polish-os-ready :is(.launch-primary, .launch-secondary, .launch-soft-button, .primary-action, .secondary-action, .glass-action):not([aria-label]) {
  min-width: 0;
}

body.launch-polish-os-ready :is(.launch-primary, .launch-secondary, .launch-soft-button, .primary-action, .secondary-action, .glass-action):not([aria-label]):has(> svg:first-child) {
  padding-inline: 42px;
}

body.launch-polish-os-ready :is(.launch-primary, .launch-secondary, .launch-soft-button, .primary-action, .secondary-action, .glass-action):not([aria-label]) > svg:first-child {
  left: 14px;
}

body.launch-polish-os-ready .launch-header {
  box-shadow: 0 8px 24px rgba(101, 32, 66, 0.06);
}

body.launch-polish-os-ready .launch-header-inner {
  min-width: 0;
}

body.launch-polish-os-ready .launch-actions {
  min-width: 0;
}

body.launch-polish-os-ready .launch-actions :is(a, button) {
  min-width: 0;
}

body.launch-polish-os-ready .launch-brand {
  min-width: 0;
}

body.launch-polish-os-ready .launch-brand > span:last-child {
  min-width: 0;
}

body.launch-polish-os-ready .launch-brand strong,
body.launch-polish-os-ready .launch-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
}

body.launch-polish-os-ready .booking-steps {
  width: 100%;
}

body.launch-polish-os-ready .booking-steps button {
  justify-content: start;
  min-width: 0;
}

body.launch-polish-os-ready .booking-steps button small {
  font-weight: 500;
}

body.launch-polish-os-ready .launch-form-section {
  background: var(--gn-polish-panel);
}

body.launch-polish-os-ready .launch-review-panel {
  background: var(--gn-polish-panel);
}

body.launch-polish-os-ready .launch-review-panel :is(h2, strong) {
  color: var(--gn-polish-ink);
}

body.launch-polish-os-ready .provider-consent-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 14px;
}

body.launch-polish-os-ready .provider-consent-card input {
  margin-top: 2px;
}

body.launch-polish-os-ready .provider-consent-card span {
  min-width: 0;
  color: var(--gn-polish-muted);
  line-height: 1.45;
}

body.launch-polish-os-ready .provider-consent-card a {
  color: #8c466a;
  text-decoration-color: rgba(200, 154, 62, 0.55);
  text-underline-offset: 3px;
}

body[data-theme="dark"].launch-polish-os-ready .provider-consent-card a {
  color: #ffc0da;
}

body.launch-polish-os-ready .account-panel {
  background: var(--gn-polish-panel);
  border-color: var(--gn-polish-line);
  box-shadow: var(--gn-polish-shadow);
}

body.launch-polish-os-ready .account-panel-head {
  min-width: 0;
}

body.launch-polish-os-ready .account-panel-head > div {
  min-width: 0;
}

body.launch-polish-os-ready .account-panel-head.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

body.launch-polish-os-ready .account-panel-head h2,
body.launch-polish-os-ready .account-panel-head small,
body.launch-polish-os-ready .account-panel-head span {
  overflow-wrap: anywhere;
}

body.launch-polish-os-ready :is(.account-match-score, .account-decision-score, .conversion-score, .gn-quality-score) {
  display: grid;
  width: auto;
  min-width: 68px;
  min-height: 46px;
  place-items: center;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

body.launch-polish-os-ready :is(.account-match-score, .account-decision-score, .conversion-score, .gn-quality-score) strong {
  line-height: 1;
}

body.launch-polish-os-ready :is(.account-match-score, .account-decision-score, .conversion-score, .gn-quality-score) span,
body.launch-polish-os-ready .gn-quality-score small {
  max-width: 74px;
  overflow: hidden;
  color: var(--gn-polish-muted);
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.launch-polish-os-ready .client-chat-thread {
  scrollbar-color: #bf477d rgba(84, 31, 57, 0.16);
  scrollbar-width: thin;
}

body.launch-polish-os-ready .client-chat-thread::-webkit-scrollbar {
  width: 8px;
}

body.launch-polish-os-ready .client-chat-thread::-webkit-scrollbar-track {
  background: rgba(84, 31, 57, 0.12);
  border-radius: 999px;
}

body.launch-polish-os-ready .client-chat-thread::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ef67a3, #c89a3e);
  border-radius: 999px;
}

body.launch-polish-os-ready .account-media-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border-color: var(--gn-polish-line);
  background: var(--gn-polish-panel-strong);
}

body.launch-polish-os-ready .account-file-button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-width: 0;
  border: 1px dashed rgba(232, 92, 155, 0.34);
  background: var(--gn-polish-pink-soft);
  color: var(--gn-polish-ink);
}

body.launch-polish-os-ready .account-file-button span {
  display: grid;
  min-width: 0;
  gap: 3px;
  line-height: 1.3;
}

body.launch-polish-os-ready .account-file-button small {
  color: var(--gn-polish-muted);
  font-size: 11px;
  line-height: 1.3;
}

body.launch-polish-os-ready .account-media-form select {
  width: 100%;
  min-height: 42px;
}

body.launch-polish-os-ready .account-media-form .launch-secondary {
  width: 100%;
}

body.launch-polish-os-ready .account-journey-search {
  border-color: var(--gn-polish-line);
  background: var(--gn-polish-panel-strong);
}

body.launch-polish-os-ready .account-journey-search label {
  color: var(--gn-polish-muted);
}

body.launch-polish-os-ready .account-journey-search input {
  border-color: rgba(205, 90, 142, 0.22);
  background: var(--gn-polish-panel);
  color: var(--gn-polish-ink);
}

body.launch-polish-os-ready .account-transport-compare {
  display: grid;
  gap: 8px;
}

body.launch-polish-os-ready .account-transport-card {
  border: 1px solid var(--gn-polish-line);
  border-left-width: 3px;
  border-radius: 8px;
  background: var(--gn-polish-panel-strong);
}

body.launch-polish-os-ready .account-transport-card strong,
body.launch-polish-os-ready .account-route-recommendation strong {
  color: var(--gn-polish-ink);
}

body.launch-polish-os-ready .account-transport-card small,
body.launch-polish-os-ready .account-route-recommendation span,
body.launch-polish-os-ready .account-weather-summary,
body.launch-polish-os-ready .account-parking-summary {
  color: var(--gn-polish-muted);
}

body.launch-polish-os-ready .account-arrival-actions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.launch-polish-os-ready .account-arrival-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gn-polish-ink);
}

body.launch-polish-os-ready .account-payment-summary {
  display: grid;
  gap: 0;
  border-color: var(--gn-polish-line);
  background: var(--gn-polish-panel-strong);
}

body.launch-polish-os-ready .account-payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
  padding: 11px 0;
}

body.launch-polish-os-ready .account-payment-row > span,
body.launch-polish-os-ready .account-payment-row > small,
body.launch-polish-os-ready .account-payment-empty {
  color: var(--gn-polish-muted);
}

body.launch-polish-os-ready .account-payment-row > strong {
  color: var(--gn-polish-ink);
  font-weight: 540;
  white-space: nowrap;
}

body.launch-polish-os-ready .account-payment-row > small {
  grid-column: 1 / -1;
  font-size: 11px;
}

body.launch-polish-os-ready .account-readiness-list label {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  min-height: 48px;
}

body.launch-polish-os-ready .account-readiness-list label > span {
  color: var(--gn-polish-ink);
  font-weight: 480;
}

body.launch-polish-os-ready .account-live-notifications,
body.launch-polish-os-ready .account-centered-action,
body.launch-polish-os-ready #openSupportCaseButton,
body.launch-polish-os-ready #editPassportButton {
  width: 100%;
  justify-content: center;
}

body.launch-polish-os-ready .account-passport-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.launch-polish-os-ready .account-passport-summary > * {
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.launch-polish-os-ready .launch-footer-inner {
  align-items: center;
  gap: 14px;
}

body.launch-polish-os-ready .launch-footer-brand,
body.launch-polish-os-ready .launch-footer-inner > div:first-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

body.launch-polish-os-ready .launch-footer-brand > strong,
body.launch-polish-os-ready .launch-footer-inner > div:first-child > strong {
  display: block;
  color: var(--gn-polish-ink);
  line-height: 1.2;
}

body.launch-polish-os-ready .launch-footer-brand > span,
body.launch-polish-os-ready .launch-footer-inner > div:first-child > span {
  display: block;
  color: var(--gn-polish-muted);
  line-height: 1.3;
}

body.launch-polish-os-ready .launch-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

body.launch-polish-os-ready .provider-work-form,
body.launch-polish-os-ready .provider-portfolio-upload-rules,
body.launch-polish-os-ready .provider-portfolio-checklist {
  border-color: var(--gn-polish-line);
}

body.launch-polish-os-ready .portfolio-upload-field {
  min-width: 0;
}

body.launch-polish-os-ready .portfolio-upload-field input,
body.launch-polish-os-ready .provider-work-form textarea,
body.launch-polish-os-ready .provider-work-form select {
  width: 100%;
}

body.launch-polish-os-ready .app-entry-card {
  border-color: var(--gn-polish-line);
  box-shadow: var(--gn-polish-shadow);
}

@media (max-width: 980px) {
  body.launch-polish-os-ready .launch-header-inner {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  body.launch-polish-os-ready .launch-actions {
    justify-self: end;
  }
}

@media (max-width: 700px) {
  body.launch-polish-os-ready .account-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.launch-polish-os-ready .account-panel {
    padding: 16px;
  }

  body.launch-polish-os-ready .account-panel-head.compact {
    gap: 10px;
  }

  body.launch-polish-os-ready :is(.account-match-score, .account-decision-score, .conversion-score, .gn-quality-score) {
    min-width: 58px;
  }
}

@media (max-width: 640px) {
  body.launch-polish-os-ready .launch-header-inner {
    grid-template-columns: auto auto;
    gap: 10px;
  }

  body.launch-polish-os-ready .launch-mobile-toggle {
    justify-self: end;
  }

  body.launch-polish-os-ready .launch-actions {
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-right: 0;
  }

  body.launch-polish-os-ready .launch-actions .launch-theme-toggle {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    z-index: 90;
  }

  body.launch-polish-os-ready .launch-actions a {
    display: inline-flex !important;
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
  }

  body.launch-polish-os-ready .launch-actions a:only-of-type {
    grid-column: 1 / -1;
  }

  body.launch-polish-os-ready .launch-nav.open {
    grid-column: 1 / -1;
  }

  body.launch-polish-os-ready .booking-steps {
    grid-template-columns: repeat(6, minmax(50px, 1fr));
    gap: 4px;
    margin-inline: 0;
    padding: 4px;
    overflow-x: visible;
  }

  body.launch-polish-os-ready .booking-steps button {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    min-height: 46px;
    padding: 4px 2px;
    text-align: center;
  }

  body.launch-polish-os-ready .booking-steps button span {
    width: 23px;
    height: 23px;
  }

  body.launch-polish-os-ready .booking-steps button small {
    max-width: 100%;
    font-size: 9.5px;
  }

  body.launch-polish-os-ready .launch-form-section {
    border: 1px solid var(--gn-polish-line);
    border-radius: 8px;
  }

  body.launch-polish-os-ready .booking-flow-controls {
    gap: 8px;
  }

  body.launch-polish-os-ready .account-journey-search {
    grid-template-columns: minmax(0, 1fr);
  }

  body.launch-polish-os-ready .account-journey-search .launch-soft-button {
    width: 100%;
  }

  body.launch-polish-os-ready .account-arrival-actions > div {
    grid-template-columns: minmax(0, 1fr);
  }

  body.launch-polish-os-ready .account-payment-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.launch-polish-os-ready .account-payment-row > strong {
    justify-self: start;
  }

  body.launch-polish-os-ready .launch-footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 390px) {
  body.launch-polish-os-ready .launch-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.launch-polish-os-ready .booking-steps {
    grid-template-columns: repeat(6, minmax(45px, 1fr));
  }

  body.launch-polish-os-ready .booking-steps button small {
    font-size: 8.5px;
  }

  body.launch-polish-os-ready :is(.launch-primary, .launch-secondary, .launch-soft-button, .primary-action, .secondary-action, .glass-action):not([aria-label]):has(> svg:first-child) {
    padding-inline: 34px;
  }

  body.launch-polish-os-ready :is(.launch-primary, .launch-secondary, .launch-soft-button, .primary-action, .secondary-action, .glass-action):not([aria-label]) > svg:first-child {
    left: 10px;
  }
}
