/* Manasik component contract. Homepage imagery, hero and motion are intentionally untouched. */
:root {
  --ms-ui-ink: #194b38;
  --ms-ui-paper: #f6f4ec;
  --ms-ui-surface: rgba(250,249,243,.76);
  --ms-ui-glass-blur: 8px;
  --ms-ui-glass-line: #ffffff88;
  --ms-ui-glass-shadow: 0 16px 48px #00140c26;
  --ms-ui-action: #edf5ef;
  --ms-ui-line: #abc2ad;
  --ms-ui-gold: #b59a5c;
  --ms-ui-control-radius: 14px;
  --ms-ui-card-radius: 22px;
  --ms-ui-action-shadow: inset 3px 0 0 var(--ms-ui-gold), 0 4px 10px #173f3412, inset 0 1px 0 #ffffffb3;
  --ms-ui-card-shadow: 0 12px 26px #123d251a, 0 3px 7px #123d2512, inset 0 1px 0 #ffffff;
}
/* Ordinary actions, not navigation links, statistical cards, or official store badges. */
body.site-polish:not(.immersive-home):not(.site-admin):not(.ms-account-flow) :is(a.button,button.button,.partner-login-cta),
body.site-polish[data-live-affiliate] #landing .affiliate-hero-actions .partner-login-cta,
body.ms-account-flow :is(#account-main,#main,.ap-dialog) :is(.ap-button,.account-btn,.button),
body.site-admin #admin-main #workspace .ms-action,
body.site-admin #login button.primary,
body.site-utility main button:not(.channel-option),
body:has(.preferences-main) .preferences-main button.primary {
  min-height: 48px!important;
  height: auto;
  padding: 11px 18px;
  border: 1px solid var(--ms-ui-line);
  border-radius: var(--ms-ui-control-radius);
  background: var(--ms-ui-action);
  color: var(--ms-ui-ink);
  box-shadow: var(--ms-ui-action-shadow);
  font-family: Thmanyah, Tahoma, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .16s, box-shadow .16s, transform .16s;
}
body:not(.immersive-home) :is(a.button,button.button,.partner-login-cta):hover:not(:disabled),
body.ms-account-flow :is(#account-main,#main,.ap-dialog) :is(.ap-button,.account-btn,.button):hover:not(:disabled),
body.site-admin #admin-main #workspace .ms-action:hover:not(:disabled) { background: #e3eee5; }
body:not(.immersive-home) :is(a.button,button.button,.partner-login-cta):active:not(:disabled),
body.ms-account-flow :is(#account-main,#main,.ap-dialog) :is(.ap-button,.account-btn,.button):active:not(:disabled),
body.site-admin #admin-main #workspace .ms-action:active:not(:disabled) { transform: translateY(1px); }
body.ms-account-flow :is(#account-main,#main,.ap-dialog) :is(.ap-button,.account-btn,.button):disabled,
body.site-admin #admin-main #workspace .ms-action:disabled { opacity: .6; box-shadow: none; transform: none; }
body.ms-account-flow :is(#account-main,#main,.ap-dialog) :is(.ap-button,.account-btn,.button):focus-visible,
body.site-admin #admin-main #workspace .ms-action:focus-visible,
body.site-utility main :is(button,a):focus-visible { outline: 3px solid #39755a; outline-offset: 3px; }
body.ms-account-flow :is(#account-main,#main,.ap-dialog) :is(.ap-button-secondary,.account-btn-secondary,.button.secondary),
body.site-admin #admin-main #workspace .ms-action--secondary,
body:not(.immersive-home) :is(a.button.secondary,button.button.secondary) {
  background: var(--ms-ui-surface);
  color: var(--ms-ui-ink);
  border-color: #c6d5c6;
  box-shadow: 0 2px 6px #173f340a;
}
/* Shared surface geometry; nested content retains its reading hierarchy. */
body.ms-account-flow #account-main:has(#account-workspace:not([hidden])) {
  background: rgba(250,249,243,.82);
  border-radius: var(--ms-ui-card-radius);
  padding: 26px;
}
body.ms-account-flow #account-main :is(.ap-section,.account-card:not(.account-campaign-card),.account-detail,.ap-contact-editor),
body.site-admin #workspace :is(.desk-panel,.ops-campaign,.fin-stat,.contact-card),
body.deletion-page .request-card {
  border-radius: var(--ms-ui-card-radius);
  box-shadow: var(--ms-ui-card-shadow);
}
body.ms-account-flow #account-main .account-card:not(.account-campaign-card) {
  padding: 14px;
  border: 1px solid #d5dfd2;
  background: var(--ms-ui-surface);
}
body.ms-account-flow #account-main .ap-section .ap-section { box-shadow: none; }
body.ms-account-flow .account-grid:has(>.account-card:only-child) {
  max-width: 440px;
  margin-inline: auto;
  grid-template-columns: minmax(0,1fr);
}
/* Account campaigns use the actual homepage presenter and its shared stylesheet. */
body.ms-account-flow #account-main .account-campaign-card { border-radius: 18px; }
body.ms-account-flow #account-main .account-campaign-card .campaign-preview-actions { gap: 8px; }
body.ms-account-flow #account-main .account-grid:has(>.account-campaign-card) {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),340px));
  max-width: none;
  align-items: start;
  justify-content: center;
  gap: 16px;
}
body.ms-account-flow #account-main .account-grid:has(>.account-campaign-card:only-child) { grid-template-columns: minmax(0,340px); max-width: 340px; }
body.ms-account-flow #account-main .account-campaign-card .campaign-funding-details>summary {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
}
body.ms-account-flow #account-main .account-campaign-card .campaign-preview-actions>:is(a,button) {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 44px!important;
  padding: 8px 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
body.ms-account-flow .account-campaign-card .campaign-preview-top {
  position: static;
  min-height: 44px;
  margin: -4px -4px 0;
}
body.ms-account-flow .account-campaign-card .campaign-for { padding-inline-end: 0; min-height: 0; }
/* Roles are peer destinations, never a connected stepper. */
body.ms-account-flow #account-roles.ms-section-nav {
  display: grid;
  grid-template-columns: repeat(var(--ms-sections),minmax(0,1fr));
  width: min(100%,580px);
  margin-inline: auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid #cbd7c7;
  border-radius: 16px;
  background: #eaf0e7;
}
body.ms-account-flow #account-roles.ms-section-nav:before { content: none; }
body.ms-account-flow #account-roles .ms-section-item {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 48px!important;
  padding: 9px 10px;
  border-radius: 12px;
  background: transparent;
  color: #315548;
}
body.ms-account-flow #account-roles .ms-section-symbol {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: transparent;
  color: inherit;
  box-shadow: none;
  border-radius: 0;
}
body.ms-account-flow #account-roles .ms-section-item[aria-pressed=true] {
  background: #194b38;
  color: #fffefa;
  box-shadow: inset 0 -2px var(--ms-ui-gold), 0 2px 6px #173f341a;
}
body.ms-account-flow #account-roles .ms-section-item[aria-pressed=true] :is(.ms-section-symbol,.ms-section-label) {
  color: inherit;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}
body.ms-account-flow .account-view-bar {
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 20px;
}
body.ms-account-flow .account-view-bar>.account-tabs {
  gap: 4px;
  padding: 4px;
  border: 1px solid #d2ddcf;
  border-radius: 14px;
  background: #eaf0e7;
}
body.ms-account-flow .account-view-bar .account-tab {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 10px;
}
body.ms-account-flow .account-view-bar .account-tab[aria-selected=true] {
  background: var(--ms-ui-surface);
  color: #194b38;
  box-shadow: inset 0 -2px var(--ms-ui-gold), 0 2px 5px #173f3410;
}
body.ms-account-flow .account-view-bar .account-tab[aria-selected=true]:after { content: none; }
body.ms-account-flow .account-view-bar .account-refresh {
  width: 44px!important;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: var(--ms-ui-action);
  color: var(--ms-ui-ink);
  box-shadow: 0 2px 6px #173f340a;
}
/* Footers belong to the page background, never a separate opaque panel. */
body.ms-account-flow .ap-footer,
body.site-admin .admin-footer {
  color: #dce6d7;
  background: transparent;
  border-top: 1px solid #b59a5c40;
  font: 400 12px/1.6 Thmanyah,Tahoma,sans-serif;
  padding: 8px max(16px,calc((100% - 1160px)/2));
  flex: 0 0 auto;
  margin-top: auto;
  min-height: 0;
}
body.site-admin { min-height: 100svh; display: flex; flex-direction: column; }
body.site-admin .admin-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 24px; color: var(--ms-ui-ink); border-top-color: #d8ddcf; }
body.site-admin .admin-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
body.site-admin:has(#workspace[hidden]) .admin-footer { background: transparent; color: #dce6d7; border-color: #b59a5c40; padding-block: 8px; flex-direction: row; }
body.site-admin .admin-footer a,body.ms-account-flow .ap-footer a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
/* Administration: same card/action system, compact tools and complete mobile content. */
body.site-admin { --desk-shadow: var(--ms-ui-card-shadow); --desk-surface: var(--ms-ui-surface); }
body.site-admin #admin-main #workspace>.ops-switch { display: grid; width: min(100%,1080px); max-width: 100%; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; margin: 0 auto 16px; }
body.site-admin #admin-main #workspace>.ops-switch>button { border-radius: 12px; min-height: 48px; padding: 8px 10px; justify-content: center; }
body.site-admin #workspace .desk-controls { gap: 8px; align-items: end; flex-wrap: wrap; }
body.site-admin #workspace .desk-controls>:is(button,select),
body.site-admin #admin-main #workspace .desk-controls>.ms-action {
  min-height: 44px;
  border-radius: 12px;
  padding: 9px 12px;
}
body.site-admin #admin-main #workspace .desk-controls>.ms-action { min-height: 44px!important; box-shadow: 0 2px 6px #173f340a; }
body.site-admin #admin-main #workspace .desk-table-scroll .ms-action {
  min-height: 44px!important;
  padding: 9px 10px;
  gap: 6px;
  font-size: 13px;
}
body.site-admin #admin-main #workspace .desk-table-scroll .ms-action span { min-width: 0; white-space: normal; }
/* The staff entry's state selector outranks ordinary action selectors. */
body.site-admin:has(#workspace[hidden]) #login button.primary {
  border-radius: var(--ms-ui-control-radius);
  padding: 11px 18px;
  box-shadow: var(--ms-ui-action-shadow);
}
body.site-admin #workspace .desk-panel { padding: 20px; }
/* KPI rows share one reading axis: label and icon, value, then explanation. */
body.site-admin #workspace .desk-stats { align-items: stretch; }
body.site-admin #workspace .desk-stats>button.desk-stat {
  display: grid;
  grid-template-columns: minmax(0,1fr) 22px;
  grid-template-rows: auto auto 1fr;
  gap: 6px 10px;
  align-content: start;
}
body.site-admin #workspace .desk-stats>.desk-stat>svg { grid-column: 2; grid-row: 1; width: 20px; height: 20px; margin: 0; }
body.site-admin #workspace .desk-stats .desk-stat-label { grid-column: 1; grid-row: 1; min-height: 1.5em; }
body.site-admin #workspace .desk-stats .desk-stat-value { grid-column: 1/-1; grid-row: 2; margin: 0; }
body.site-admin #workspace .desk-stats .desk-stat>small { grid-column: 1/-1; grid-row: 3; align-self: start; }
body.site-admin #workspace .desk-stats>button.desk-stat { min-height: 108px; padding: 12px; gap: 4px 8px; }
body.site-admin #workspace .desk-stats .desk-stat-label { font-size: 13px; font-weight: 500; }
body.site-admin #workspace .desk-stats .desk-stat-value { font-size: 26px; font-weight: 700; }
body.site-admin #workspace :is(.desk-heading,.fin-header,.ops-heading) { gap: 12px 24px; margin-bottom: 18px; }
body.site-admin #workspace :is(.desk-heading h1,.fin-header h1,.ops-heading h1) { font-size: 26px; line-height: 1.5; }
/* The light preferences page must not inherit a transparent-on-dark header. */
body:has(.preferences-main) .unified-header.experience-header[data-auto-header="20261110"] { --auto-header-alpha: .98; }
body.site-utility>main.centered.panel { margin-block-start: 108px; }
/* Keep existing legal wording; show its existing translation in the chosen language. */
html[lang=ar] .ms-bilingual-document>.ms-doc-en,
html:not([lang=ar]) .ms-bilingual-document>.ms-doc-ar { display: none; }
.ms-bilingual-document>.ms-doc-ar { direction: rtl; text-align: start; }
.ms-bilingual-document>.ms-doc-en { direction: ltr; text-align: start; border-top: 0; margin-top: 0; padding-top: 0; }
/* Workspaces use task-sized content, not stretched landing-page cards. */
body.ms-account-flow #account-main { flex: 0 0 auto; }
body.ms-account-flow .ap-role-bar { justify-content: center; }
body.ms-account-flow .account-view-bar { justify-content: center; }
body.ms-account-flow .account-view-bar>.account-tabs { flex: 0 1 440px; justify-content: center; }
body.ms-account-flow .account-view-bar .account-tab { flex: 1 1 0; min-width: 0; }
body.ms-account-flow #account-main :is(.ap-section,.account-detail) { padding: 16px; }
body.ms-account-flow #account-main :is(.ap-section,.account-card,.account-detail) :is(h2,h3) { font-family: Thmanyah,Tahoma,sans-serif; font-weight: 700; line-height: 1.5; margin-block: 0 8px; }
body.ms-account-flow #account-main .ap-section>h2 { font-size: 19px; }
body.ms-account-flow #account-main .account-card>h3 { font-size: 17px; }
body.ms-account-flow #account-main :is(.ap-note,.account-row,.ap-contact-biography) { font-size: 13px; line-height: 1.6; }
body.ms-account-flow #account-main .account-card>.account-status { margin: 0 0 6px; }
body.ms-account-flow #account-main .account-row { padding-block: 5px; gap: 8px; }
body.ms-account-flow #account-main .account-card>.account-btn { min-height: 44px!important; margin-top: 10px; padding: 8px 14px; width: auto; }
body.ms-account-flow #account-main :is(.ap-button,.account-btn) { min-height: 44px!important; padding: 8px 12px; line-height: 1.5; }
body.ms-account-flow #account-main :is(input:not([type=checkbox],[type=radio],[type=file]),select) { min-height: 44px; height: auto; padding: 8px 10px; line-height: 1.5; }
body.ms-account-flow #account-main textarea { min-height: 88px; padding: 8px 10px; font-size: 16px; line-height: 1.5; resize: vertical; }
body.ms-account-flow #account-main :is(.ap-form,.ap-form-actions) { gap: 10px; }
body.ms-account-flow #account-main :is(.ap-actions,.account-actions,.ap-form-actions) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 8px; align-items: stretch; width: 100%; max-width: 560px; }
body.ms-account-flow #account-main :is(.ap-actions,.account-actions,.ap-form-actions)>:is(button,a) { min-width: 0; width: 100%; height: auto; margin: 0; align-self: stretch; justify-self: stretch; white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; padding: 8px; }
body.ms-account-flow #account-main .ap-form>.ap-button { justify-self: start; width: auto; max-width: 100%; }
body.ms-account-flow #account-main .account-order-journey>summary { padding: 8px 10px; min-height: 44px; margin-block: 8px; font-size: 13px; font-weight: 500; }
body.ms-account-flow #account-main .ap-performer-view { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); gap: 16px; align-items: start; }
body.ms-account-flow #account-main .ap-performer-view>.ap-contact-card { grid-column: 1; grid-row: 1; }
body.ms-account-flow #account-main .ap-performer-view>.ap-assigned-orders { grid-column: 2; grid-row: 1 / span 2; }
body.ms-account-flow #account-main .ap-performer-view>.ap-performer-settings { grid-column: 1; grid-row: 2; }
body.ms-account-flow #account-main .ap-performer-view>.ap-performer-finance { grid-column: 1/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
body.ms-account-flow #account-main .ap-performer-view .ap-orders-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
body.ms-account-flow #account-main .ap-performer-view .ap-profile-editor { grid-template-columns: minmax(0,1fr); }
body.ms-account-flow #account-main .ap-performer-view .ap-contact-header { margin-top: 6px; }
body.ms-account-flow #account-main .ap-performer-view .ap-contact-biography { margin-block: 8px; }
body.ms-account-flow .ap-footer>span { flex: 0 0 auto; min-height: 44px; }
@media(max-width:1000px) {
  body.site-admin #admin-main #workspace>.ops-switch { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
  body.ms-account-flow #account-main:has(#account-workspace:not([hidden])) { width: calc(100% - 28px); padding: 18px 14px; }
  body.ms-account-flow #account-main>.ap-welcome { gap: 8px 14px; margin-bottom: 18px; }
  body.ms-account-flow #account-main>.ap-welcome>.ap-account-actions:has(>.ap-admin-entry:only-child) { width: auto; margin-inline-start: auto; }
  body.ms-account-flow #account-roles.ms-section-nav { width: 100%; }
  body.ms-account-flow #account-roles .ms-section-item { flex-direction: row; gap: 5px; padding: 7px 4px; }
  body.ms-account-flow #account-roles .ms-section-symbol { width: 18px; height: 18px; flex-basis: 18px; }
  body.ms-account-flow #account-roles .ms-section-label { font-size: 12px; }
  body.ms-account-flow .account-view-bar { gap: 12px; align-items: center; }
  body.ms-account-flow .account-view-bar>.account-tabs { flex: 1 1 220px; justify-content: space-between; }
  body.ms-account-flow .account-view-bar .account-tab { flex: 1 1 auto; padding: 9px 8px; font-size: 13px; }
  body.ms-account-flow .account-view-bar .account-toolbar { margin-inline-start: auto; }
  body.ms-account-flow #account-main .account-card:not(.account-campaign-card) { padding: 14px; }
  body.ms-account-flow #account-main .account-grid:has(>.account-campaign-card) { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),340px)); gap: 12px; }
  body.ms-account-flow #account-main .account-campaign-card { border-radius: 15px; }
  body.site-admin #workspace .desk-panel { padding: 16px; }
  body.site-admin .admin-header-inner { min-height: 68px; padding: 12px 20px; }
  body.site-admin #workspace :is(.desk-heading h1,.fin-header h1,.ops-heading h1) { font-size: 22px; }
  body.site-admin #workspace .desk-heading .desk-lead { display: block; font-size: 13px; line-height: 1.7; }
  body.ms-account-flow #account-main .ap-performer-view { grid-template-columns: minmax(0,1fr); gap: 12px; }
  body.ms-account-flow #account-main .ap-performer-view>:is(.ap-contact-card,.ap-assigned-orders,.ap-performer-settings,.ap-performer-finance) { grid-column: 1; grid-row: auto; }
  body.ms-account-flow #account-main .ap-performer-view>.ap-performer-finance { grid-template-columns: minmax(0,1fr); gap: 12px; }
  body.site-admin .admin-footer { padding: 8px 16px; justify-content: center; text-align: center; }
  body.site-admin .admin-footer nav { justify-content: center; gap: 4px 16px; }
  body.site-utility>main.centered.panel { margin-block-start: 92px; }
}
@media(max-width:370px) {
  body.site-admin #workspace .desk-stats .desk-stat-label { min-height: 3em; }
}
@media(prefers-reduced-motion:reduce) {
  body.ms-account-flow :is(#account-main,#main,.ap-dialog) :is(.ap-button,.account-btn,.button),body.site-admin #admin-main #workspace .ms-action { transition: none; }
}

/* Let the homepage entry paths wrap naturally on narrow screens. */
body.site-polish[data-page=home] .hero-actions { flex-wrap: wrap; gap: 12px; }
body.site-polish[data-page=home] .hero-actions>.hero-performer-cta { flex-shrink: 0; }
@media(max-width:767px) {
  body.site-polish[data-page=home] .hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
  body.site-polish[data-page=home] .hero-actions>:is(.editorial-button,.hero-performer-cta) { min-width: 0; padding-inline: 12px; }
  body.site-polish[data-page=home] .hero-actions>.editorial-link { grid-column: 1 / -1; justify-self: start; }
}

/* The account login is the source of the site's frosted material. */
body.site-polish { font-family: Thmanyah,Tahoma,sans-serif; }
body.site-polish :is(button,input,select,textarea) { font-family: inherit; }
body.site-polish :is(a,button,summary,label,input,select,textarea) { -webkit-tap-highlight-color: transparent; }
body.site-polish :is(a,button,summary) { touch-action: manipulation; }
body.site-polish ::selection { background: #cbb886; color: #123d2b; }
body.site-polish :is(input,textarea) { caret-color: #39795a; }
body.site-polish:not(.immersive-home) main :is(h1,h2,h3),
body.performer-v20.site-polish :is(h1,h2,h3) { font-family: Thmanyah,Tahoma,sans-serif; font-weight: 700; letter-spacing: 0; }
/* Full-page photography uses the existing image, independently from the footer. */
body.site-polish:is(.legal-page,.site-document,.site-utility) { position: relative; isolation: isolate; background: #071c17; min-height: 100svh; }
body.site-polish:is(.legal-page,.site-document,.site-utility)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,#071c1799,#071c17dc),url('/download-light-unique.webp') center/cover;
}
body.site-polish.legal-page .legal-main { max-width: 1120px; }
body.site-polish.legal-page .legal-main :is(.legal-hero h1,h2) { font-family: Thmanyah,Tahoma,sans-serif; font-weight: 700; }
body.site-polish.legal-page .legal-hero h1 { font-size: clamp(32px,4vw,52px); }
body.site-polish.legal-page .legal-hero .eyebrow { display: none; }
body.site-polish.legal-page .policy-grid { gap: 18px; margin-bottom: 24px; }
body.site-polish.legal-page :is(.policy-grid>section,.legal-choices,.request-card,.data-card,.data-only-card),
body.site-polish.site-document main,
body.site-polish.site-utility :is(main.panel,.preferences-main),
body.site-polish[data-live-affiliate] #landing :is(.join-card,.steps>div,.affiliate-calculator),
body.ms-account-flow #account-main :is(.ap-section,.account-detail,.ap-contact-editor),
body.site-admin #workspace :is(.desk-panel,.ops-campaign,.contact-card) {
  background: var(--ms-ui-surface); color: var(--ms-ui-ink);
  border: 1px solid var(--ms-ui-glass-line); border-radius: var(--ms-ui-card-radius);
  backdrop-filter: blur(var(--ms-ui-glass-blur)); -webkit-backdrop-filter: blur(var(--ms-ui-glass-blur));
  box-shadow: var(--ms-ui-glass-shadow);
}
body.site-polish.legal-page :is(.policy-grid>section,.legal-choices,.request-card,.data-card,.data-only-card) { padding: 24px; margin-block: 0 20px; }
body.site-polish.legal-page .policy-grid>section { padding-inline-start: 24px; margin: 0; }
body.site-polish.legal-page .policy-grid>section::before { content: none; }
body.site-polish.legal-page .legal-main :is(.policy-grid>section,.legal-choices,.request-card,.data-card,.data-only-card) :is(h2,h3,p,li,a,strong) { color: var(--ms-ui-ink); }
body.site-polish.legal-page .legal-main :is(.policy-grid>section,.legal-choices,.request-card,.data-card,.data-only-card) :is(p,li) { color: #385240; font-size: 15px; line-height: 1.9; }
body.site-polish.legal-page .legal-main h2 { font-size: 23px; line-height: 1.55; }
body.site-polish.legal-page .legal-main a { text-underline-offset: 4px; }
body.site-polish.legal-page .legal-main .deletion-cta { background: var(--ms-ui-action); color: var(--ms-ui-ink); border-radius: 14px; min-height: 48px; box-shadow: var(--ms-ui-action-shadow); padding: 10px 16px; font-size: 14px; font-weight: 500; }
body.site-polish.site-document main :is(h1,h2,h3,p,li,label),body.site-polish.site-utility :is(main.panel,.preferences-main) :is(h1,h2,h3,p,li,label) { color: var(--ms-ui-ink); }
body.site-polish.site-document main p,body.site-polish.site-utility :is(main.panel,.preferences-main) p { color: #385240; }
body.site-polish.site-document main { width: min(850px,calc(100% - 40px)); box-sizing: border-box; margin: 112px auto 48px; padding: 28px; font: 400 16px/1.85 Thmanyah,Tahoma,sans-serif; }
body.site-polish.site-utility main.preferences-main { width: min(640px,calc(100% - 32px)); box-sizing: border-box; margin: 108px auto 48px; padding: 26px; }
body.site-polish.site-utility .channel-option { border-radius: 14px; background: #f7faf4b3; color: #194b38; }
body.site-polish.site-utility input { font-size: 16px; }
/* Partner page uses its own existing photograph instead of repeating the footer. */
body.site-polish[data-live-affiliate] { background-image: linear-gradient(#071c17b8,#071c17e8),url('/partnership-editorial.webp'); }
body.site-polish[data-live-affiliate] #landing .join-card { --ink: #194b38; --text: #385240; --muted: #385240; --line: #abc2ad; }
body.site-polish[data-live-affiliate] #landing :is(.join-card,.steps>div) :is(h2,h3,p,label,.eyebrow) { color: #194b38; }
body.site-polish[data-live-affiliate] #landing .join-card input:not([type=checkbox]) { background: #fbfcf7de; color: #194b38; border-color: #8ca58e; border-radius: 14px; }
body.site-polish[data-live-affiliate] #landing .join-card :is(input,textarea)::placeholder { color: #526b59; opacity: 1; }
body.site-polish[data-live-affiliate] #landing .steps>div { box-shadow: 0 8px 20px #00140c1a; }
body.site-polish[data-live-affiliate] #landing .ac-income-source { background: #fbfcf76b; border-color: #b9c9b6; box-shadow: none; }
/* Smaller common actions; the header and official download badges keep their owners. */
body.site-polish:not(.immersive-home):not(.site-admin):not(.ms-account-flow) main :is(a.button,button.button,.partner-login-cta) { padding: 9px 16px; font-size: 14px; font-weight: 500; }
body.site-polish[data-page=home] .hero-actions :is(.editorial-button,.hero-performer-cta) { min-height: 46px; padding: 10px 18px; font-size: 14px; }
body.performer-v20.site-polish .download-section .store-badge { border-radius: 14px; overflow: hidden; }
body.performer-v20.site-polish .download-section :is(.store-link,.app-store-button,.store-button) { border-radius: 14px; }
body.ms-account-flow #account-main .account-card:not(.account-campaign-card) { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: #ffffff88; }
body.site-admin #workspace .fin-stat { background: var(--ms-ui-surface); border-color: #ffffff88; }
/* Hover depth is pointer feedback, without a sticky touch hover. */
@media(hover:hover) and (pointer:fine) {
  body.site-polish:not(.immersive-home) main :is(a.button,button.button,.partner-login-cta,.deletion-cta):hover:not(:disabled),
  body.ms-account-flow :is(#account-main,#main) :is(.ap-button,.account-btn):hover:not(:disabled),
  body.site-admin #login button.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 3px 0 0 #b59a5c,0 8px 16px #00140c26; }
}
@media(max-width:760px) {
  body.site-polish:is(.legal-page,.site-document,.site-utility)::before { bottom: auto; height: 100vh; height: 100lvh; }
  body.site-polish.legal-page :is(.policy-grid>section,.legal-choices,.request-card,.data-card,.data-only-card) { padding: 20px; }
  body.site-polish.legal-page .legal-main h2 { font-size: 21px; }
  body.site-polish.site-document main { width: calc(100% - 28px); padding: 20px; margin-top: 92px; }
  body.site-polish.site-utility main.preferences-main { margin-top: 92px; padding: 20px; }
}
@media(prefers-reduced-motion:reduce) {
  body.site-polish main :is(a.button,button.button,.partner-login-cta,.deletion-cta),body.ms-account-flow :is(#account-main,#main) :is(.ap-button,.account-btn) { transition: none; transform: none!important; }
}
@media(prefers-reduced-transparency:reduce) {
  body.site-polish.legal-page :is(.policy-grid>section,.legal-choices,.request-card,.data-card,.data-only-card),body.site-polish:is(.site-document,.site-utility) main { background: #faf9f3; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Profile editing fields remain task-sized within the account card. */
body.ms-account-flow #account-main .ap-profile-editor input { max-width: 320px; }

/* Recruitment fact cards use the same account material, with their original images. */
body.performer-v20.site-polish :is(.p-requirements,.p-tools-panel) { background: var(--ms-ui-surface); border: 1px solid var(--ms-ui-glass-line); border-radius: var(--ms-ui-card-radius); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--ms-ui-glass-shadow); color: #194b38; }
body.performer-v20.site-polish :is(.p-requirements,.p-tools-panel) :is(h2,h3,p,li,strong) { color: #194b38; }
body.site-polish[data-live-affiliate] #landing .join-card button.primary { min-height: 48px; padding: 10px 16px; border: 1px solid var(--ms-ui-line); border-radius: 14px; background: var(--ms-ui-action); color: #194b38; box-shadow: var(--ms-ui-action-shadow); font: 500 14px/1.5 Thmanyah,Tahoma,sans-serif; }

body.site-polish.legal-page .legal-hero .notice { background: var(--ms-ui-surface); color: #194b38; border: 1px solid var(--ms-ui-glass-line); border-radius: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 20px #00140c1a; padding: 16px 20px; }

/* Secondary copy remains legible on the account's translucent ivory surface. */
body.site-polish[data-live-affiliate] #landing .affiliate-calculator :is(p,small,.ac-slider-label,.ac-range-ends) { color: #385240; }
body.site-polish[data-live-affiliate] #landing .affiliate-calculator>.eyebrow { color: #594619; }
body.site-polish[data-live-affiliate] #landing .ac-total :is(p,small) { color: #f3f4e8; }
body.site-polish[data-live-affiliate] #landing :is(#login-mode,#ac-retry,.join-card button.secondary) { min-height: 44px; padding: 9px 14px; border: 1px solid #abc2ad; border-radius: 14px; background: #f6faf3d9; color: #194b38; box-shadow: 0 3px 8px #00140c12; font: 500 14px/1.6 Thmanyah,Tahoma,sans-serif; }
body.site-polish[data-live-affiliate] #landing #join-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
body.site-polish[data-live-affiliate] #landing #join-form>.check { margin: 0; }
body.site-polish[data-live-affiliate] #landing #join-form>button { align-self: stretch; }
body.site-admin:has(#workspace[hidden]) #login>p,body.site-admin #session-loading p { color: #385240; }
body.site-polish.site-document .footer.footer-refined a { color: #e4d7b7; }

/* Photographic bands and dark totals retain light ink; login hints need darker ink on glass. */
body.performer-v20.site-polish .p-tools-panel .trust-list li { color: #f3eedf; }
body.site-polish[data-live-affiliate] #landing .affiliate-calculator .ac-results .ac-total :is(p,small) { color: #f3f4e8; }
body.site-admin:has(#workspace[hidden]) #login :is(label,.ms-phone-hint,#phone-hint) { color: #385240; }

body.site-polish[data-live-affiliate] #landing .steps>div>b { display: inline-grid; place-items: center; min-width: 30px; min-height: 30px; padding: 2px 6px; border-radius: 8px; background: #e8f0e6; color: #194b38; font: 500 13px/1.5 Thmanyah,Tahoma,sans-serif; }
body.site-polish.site-document main a { color: #194b38; }
body.ms-account-flow .ap-auth :is(.ms-phone-hint,.ap-resend-row>.ap-note) { color: #385240; }

/* Keep the same photograph and translucent header, with enough shade behind text. */
body.site-polish .unified-header.experience-header[data-auto-header="20261110"] { --auto-header-alpha: .76; }
body.site-polish .unified-header.experience-header[data-auto-header="20261110"].is-compact { --auto-header-alpha: .86; }
body.site-polish .unified-header.experience-header[data-auto-header="20261110"].has-open-menu { --auto-header-alpha: .98; }
body.site-polish:has(.preferences-main) .unified-header.experience-header[data-auto-header="20261110"] { --auto-header-alpha: .98; }

/* Selected staff tools keep their foreground paired with their selected surface. */
body.site-admin #admin-main #workspace .ms-action[aria-pressed=true] { background: #194b38; color: #fffefa; border-color: #194b38; box-shadow: inset 0 -2px #b59a5c,0 3px 8px #00140c12; }
body.site-admin #admin-main #workspace .ms-action[aria-pressed=true] :is(.ms-action-label,.ms-action-icon) { color: inherit; }
body.site-admin #workspace :is(.desk-source span,.desk-chart-axis bdi,.desk-chart-axis>span) { color: #385240; }
@media(hover:hover) and (pointer:fine) { body.site-admin #admin-main #workspace .ms-action[aria-pressed=true]:hover { background: #123f2f; color: #fffefa; border-color: #123f2f; } }

body.site-polish .footer.footer-refined .footer-about>p { color: #f0f2e7; }
body.performer-v20.site-polish .p-hero-copy>.eyebrow { color: #f3eedf; }

body.site-admin:has(#workspace[hidden]) #login input::placeholder,
body.ms-account-flow .ap-auth input::placeholder,
body.ms-account-flow .phone-auth input::placeholder { color: #385240; opacity: 1; }

/* Reserve space above the fixed verification capsule for the hero's final links. */
body.home-polish .v-hero { padding-block-end: 192px; }
body.home-polish .v-hero .hero-foot { bottom: 88px; }
@media(max-width:767px) { body.home-polish .v-hero { padding-block-end: 176px; } }

/* Keep the original plain discovery link; shade the photograph behind the footer row. */
body.home-polish .v-hero .hero-foot { isolation: isolate; }
body.home-polish .v-hero .hero-foot::before { content: ""; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); top: -32px; bottom: -32px; z-index: -1; pointer-events: none; background: linear-gradient(180deg,rgba(7,28,23,0),rgba(7,28,23,.76)30%,rgba(7,28,23,.76)70%,rgba(7,28,23,0)); }
body.home-polish .v-hero .hero-foot>a { color: #f3eedf; }

/* Keep prose readable when larger text includes long addresses or URLs. */
main.ms-bilingual-document :is(p,a){overflow-wrap:anywhere;}

/* Latin display headings keep the same type family as the homepage. */
html:is([lang=en],[lang=fr],[lang=id]) :is(body.performer-v20,body[data-live-affiliate]) main :is(h1,h2,h3){font-family:Thmanyah,sans-serif!important;}
html:is([lang=en],[lang=fr],[lang=id]) body.performer-v20 main h1{font-size:clamp(40px,5vw,72px);line-height:1.25;}

/* One elevated calculator surface; its read-only subtotals stay in the content layer. */
body.site-polish[data-live-affiliate] #landing #earnings-calculator .ac-income-source{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:16px 0!important;}
#earnings-calculator .ac-income-sources{gap:24px!important;}
#earnings-calculator .ac-source-result>span{color:#2f5140!important;}
#earnings-calculator .ac-source-result{background:transparent!important;border-radius:0!important;box-shadow:none!important;border:0!important;border-top:1px solid #173f3433!important;padding:16px 0!important;}
#earnings-calculator .ac-income-source+.ac-income-source{border-top:1px solid #173f3433!important;}
@media(min-width:761px){#earnings-calculator .ac-income-source+.ac-income-source{border-top:0!important;border-inline-start:1px solid #173f3433!important;padding-inline-start:24px!important;}}
/* A compact readable step list accompanies the existing mobile preview. */
@media(max-width:760px){
 body.performer-v20 #journey .performer-steps{margin-top:24px!important;}
 body.performer-v20 #journey .performer-steps>article.step:not([hidden]){display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:8px 14px!important;align-items:start!important;min-height:0!important;padding:24px 0!important;opacity:1!important;}
 body.performer-v20 #journey .performer-steps>article.step>.icon-seat{grid-column:1;grid-row:1 / span 2;width:40px!important;height:40px!important;margin:0!important;}
 body.performer-v20 #journey .performer-steps>article.step>h3{grid-column:2;margin:0!important;font-size:23px!important;line-height:1.45!important;}
 body.performer-v20 #journey .performer-steps>article.step>p{grid-column:2;margin:0!important;font-size:15px!important;line-height:1.8!important;}
}

/* Section headings remain subordinate to the Latin marketing page title at intermediate widths. */
html:is([lang=en],[lang=fr],[lang=id]) body.performer-v20 main h2{font-size:clamp(28px,3.4vw,42px);line-height:1.4;}
