.aoy-referral-page { box-sizing: border-box; width: min(1180px,calc(100vw - 48px)); max-width: 100%; min-width: 0; margin: 18px auto 60px; }
.aoy-referral-page-header { display: flex; align-items: center; gap: 16px; box-sizing: border-box; width: 100%; margin-bottom: 12px; padding: 18px 20px; border: 1px solid rgba(var(--aoy-palette-border-rgb, 92, 130, 174), .28); border-radius: var(--aoy-radius-base,6px); color: rgb(var(--aoy-palette-text-rgb, 238, 246, 255)); background: rgba(var(--aoy-palette-surface-rgb, 5, 8, 16), .86); box-shadow: 0 28px 60px rgba(0,0,0,.42); backdrop-filter: blur(14px); }
.aoy-referral-page-icon { display: block; flex: 0 0 67px; width: 67px; height: 72px; object-fit: fill; border-radius: 4px; }
.aoy-referral-page-heading { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.aoy-referral-page-header h2 { margin: 0; padding: 0; color: #fff; font-size: clamp(1.7rem,3vw,2.3rem); line-height: 1.15; text-align: left; white-space: normal !important; }
.aoy-referral-page-header h2 span { color: var(--aoy-theme-accent,rgb(var(--aoy-palette-accent-rgb, 123, 200, 251))); white-space: normal !important; }
.aoy-referral-page-header h2, .aoy-referral-page-header h2 span { -webkit-text-fill-color: currentColor !important; }
.aoy-referral-page-header p { margin: .45rem 0 0; font-size: .85rem; line-height: 1.5; }
.aoy-referral-page-header .aoy-referral-eyebrow { margin: 0 0 .35rem; font-size: .7rem; }
.aoy-referral-page-header .aoy-referral-draft-badge { flex: 0 0 auto; }
.aoy-referrals { box-sizing: border-box; width: 100%; height: auto; min-width: 0; margin: 0; padding: clamp(1rem,3vw,2rem); color: rgb(var(--aoy-palette-text-rgb, 231, 240, 247)); background: rgba(var(--aoy-palette-surface-rgb, 5, 8, 16), .86); border: 1px solid rgba(var(--aoy-palette-border-rgb, 92, 130, 174), .28); border-radius: var(--aoy-radius-base,6px); box-shadow: 0 28px 60px rgba(0,0,0,.42); backdrop-filter: blur(14px); overflow-wrap: anywhere; }
html[data-aoy-color-scheme="light"] .aoy-referral-page-header { color: var(--aoy-light-text,rgb(var(--aoy-palette-text-rgb, 22, 38, 58))); border-color: var(--aoy-light-border-strong); background: linear-gradient(180deg,var(--aoy-light-surface-strong),var(--aoy-light-surface-soft)); box-shadow: var(--aoy-light-shadow); }
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referral-page-header h2 { color: var(--aoy-light-text,rgb(var(--aoy-palette-text-rgb, 22, 38, 58))) !important; }
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referral-page-header h2 span { color: rgb(var(--aoy-palette-accent-rgb, 11, 120, 181)) !important; }
@media (max-width: 760px) {
  .aoy-referral-page { width: 100%; margin-top: 14px; }
  .aoy-referral-page-header { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: start; gap: 12px; padding: 16px; }
  .aoy-referral-page-icon { width: 44px; height: 48px; }
  .aoy-referral-page-header h2 { font-size: clamp(1.4rem,5vw,1.8rem); }
  .aoy-referral-page-header .aoy-referral-draft-badge { grid-column: 2; justify-self: start; max-width: 100%; white-space: normal; }
}
.aoy-referrals section { box-sizing: border-box; width: 100%; height: auto; min-width: 0; }
.aoy-referrals h2, .aoy-referrals h3, .aoy-referrals h4 { color: #e9cf8a; }
.aoy-referrals > h2 { margin: .25rem 0 .7rem; padding: 0; line-height: 1.2; }
.aoy-referrals h3, .aoy-referrals h4 { line-height: 1.3; }
.aoy-referrals h3 { margin: .2rem 0 .8rem; width: auto; }
.aoy-referrals p, .aoy-referrals li { line-height: 1.65; }
.aoy-referral-eyebrow { color: rgb(var(--aoy-palette-accent-rgb, 155, 206, 219)); letter-spacing: .08em; font-size: .85rem; }
.aoy-referral-notice { padding: .9rem 1rem; border-left: 3px solid #e9cf8a; background: rgba(var(--aoy-palette-accent-rgb, 123, 200, 251), .1); }
/* [GM] Delta: Referral guide enrollment status - START */
.aoy-referral-guide-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.aoy-referral-guide-actions a { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 40px; padding: .35rem .75rem; border: 1px solid rgb(var(--aoy-palette-border-rgb, 101, 141, 171)); border-radius: var(--aoy-radius-base,6px); background: rgb(var(--aoy-palette-accent-rgb, 32, 62, 86)); font-weight: 700; text-align: center; }
/* [GM] Delta: Referral guide enrollment status - END */
.aoy-referral-packages { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 1rem; }
.aoy-referral-package { padding: 1rem; background: rgba(0,0,0,.28); border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .22); border-radius: 8px; }
.aoy-referral-package ul { padding-left: 1.25rem; }
.aoy-referral-package a { color: rgb(var(--aoy-palette-accent-rgb, 138, 211, 232)); }
.aoy-referral-package img { vertical-align: middle; margin-right: .3rem; }
/* [GM] Delta: Referral poster guide - START */
.aoy-referral-intro-grid { display: grid; grid-template-columns: minmax(0,1fr) 240px; align-items: start; gap: clamp(1.25rem,3vw,2rem); margin: 1.4rem 0 1.75rem; }
.aoy-referral-intro-grid.without-poster { grid-template-columns: minmax(0,1fr); }
.aoy-referral-intro-copy h3 { margin-top: .2rem; text-align: left; }
.aoy-referral-intro-copy ol { padding-left: 1.45rem; }
.aoy-referral-intro-copy li + li { margin-top: .65rem; }
.aoy-referral-poster { position: relative; box-sizing: border-box; width: 100%; justify-self: center; min-width: 0; margin: 0; padding: .55rem; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .22); border-radius: var(--aoy-radius-base,6px); background: rgba(0,0,0,.28); box-shadow: 0 16px 36px rgba(0,0,0,.24); }
.aoy-referral-poster-preview { display: block; position: relative; border-radius: 3px; transform-origin: center center; transition: transform .22s ease, box-shadow .22s ease; }
.aoy-referral-poster picture, .aoy-referral-poster img { display: block; width: 100%; }
.aoy-referral-poster img { height: auto; border-radius: 3px; }
html[data-aoy-color-scheme="light"] .aoy-referral-poster { border-color: var(--aoy-light-border); background: rgba(255,255,255,.6); box-shadow: 0 16px 36px rgba(var(--aoy-palette-shadow-rgb, 29, 57, 78), .15); }
.aoy-referral-poster-modal[hidden] { display: none !important; }
.aoy-referral-poster-modal .aoy-referral-poster-modal__dialog { box-sizing: border-box; display: block; width: min(914px,calc(100vw - 48px),calc((100vh - 80px) * .8181818 + 14px)); width: min(914px,calc(100vw - 48px),calc((100dvh - 80px) * .8181818 + 14px)); max-height: none; padding: 6px; overflow: visible; }
.aoy-referral-poster-modal__dialog picture, .aoy-referral-poster-modal__dialog picture img { display: block; width: 100%; }
.aoy-referral-poster-modal__dialog picture img { height: auto; border-radius: 3px; }
.aoy-referral-poster-modal .aoy-referral-poster-modal__close { top: -18px; right: -18px; width: 44px; height: 44px; }
html.aoy-referral-poster-modal-open, body.aoy-referral-poster-modal-open { overflow: hidden !important; overscroll-behavior: contain; }
@media (min-width: 900px) {
  .aoy-referral-poster:focus-within { z-index: 20; }
  .aoy-referral-poster-preview:focus-visible { transform: scale(1.08); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .aoy-referral-poster:hover { z-index: 20; }
  .aoy-referral-poster-preview { cursor: zoom-in; }
  .aoy-referral-poster-preview:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
}
@media (max-width: 899px) {
  .aoy-referral-intro-grid { grid-template-columns: minmax(0,1fr); }
  .aoy-referral-poster { width: min(100%,300px); }
}
@media (prefers-reduced-motion: reduce) {
  .aoy-referral-poster-preview { transition: none; }
  .aoy-referral-poster-modal, .aoy-referral-poster-modal .aoy-referral-poster-modal__dialog, .aoy-referral-poster-modal .aoy-referral-poster-modal__close { transition: none; }
}
/* [GM] Delta: Referral poster guide - END */
/* [GM] Delta: Referral reward guide - START */
.aoy-referral-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 .8rem; }
.aoy-referral-guide-heading h3 { margin: .2rem 0 0; }
.aoy-referral-guide-heading .aoy-referral-eyebrow { margin: 0; }
.aoy-referral-guide-package { display: flex; flex-direction: column; gap: .35rem; min-width: 0; padding: .75rem; border-color: rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .22); background: rgba(0,0,0,.28); }
.aoy-referral-guide-package h4 { margin: .2rem 0 0; font-size: 1.05rem; }
.aoy-referral-guide-package > p { margin: 0 0 .3rem; color: rgb(var(--aoy-palette-muted-rgb, 185, 204, 219)); font-size: .82rem; line-height: 1.5; }
.aoy-referral-package-label { display: inline-flex; align-self: flex-start; align-items: center; gap: .45rem; max-width: 100%; padding: .28rem .55rem; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .3); border-radius: var(--aoy-radius-base,6px); color: rgb(var(--aoy-palette-text-rgb, 204, 236, 255)); background: rgba(var(--aoy-palette-accent-rgb, 123, 200, 251), .12); font-size: .75rem; font-weight: 700; }
.aoy-referral-reward-list { display: grid; align-content: start; gap: .5rem; margin: .65rem 0 0; padding: 0 !important; list-style: none; }
.aoy-referral-reward-row { margin: 0; }
.aoy-referral-reward-link { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: .7rem; min-height: 60px; padding: .4rem .65rem; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .2); border-radius: var(--aoy-radius-base,6px); color: rgb(var(--aoy-palette-text-rgb, 231, 240, 247)) !important; background: rgba(0,0,0,.25); text-decoration: none; }
.aoy-referral-reward-link:hover { border-color: rgb(var(--aoy-palette-border-rgb, 123, 200, 251)); color: #fff !important; text-decoration: none; }
.aoy-referral-reward-link.is-unresolved { opacity: .8; }
.aoy-referral-reward-art { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .2); border-radius: var(--aoy-radius-base,6px); background: rgba(255,255,255,.06); color: rgb(var(--aoy-palette-muted-rgb, 169, 198, 214)); }
.aoy-referral-reward-art img { display: block; max-width: 40px; max-height: 40px; margin: 0; object-fit: contain; }
.aoy-referral-reward-name { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.aoy-referral-reward-name small { display: block; margin-top: .1rem; color: rgb(var(--aoy-palette-muted-rgb, 158, 187, 208)); font-size: .72rem; font-weight: 400; }
.aoy-referral-reward-quantity { justify-self: end; padding: .24rem .45rem; border-radius: 4px; color: #e9cf8a; background: rgba(233,207,138,.1); white-space: nowrap; }
.aoy-referral-guide-package .aoy-referral-reward-list { gap: .4rem; margin-top: .4rem; }
.aoy-referral-guide-package .aoy-referral-reward-link { box-sizing: border-box; grid-template-columns: 28px minmax(0,1fr) auto; gap: .45rem; min-height: 40px; padding: .3rem .5rem; font-size: .85rem; }
.aoy-referral-guide-package .aoy-referral-reward-art { box-sizing: border-box; width: 28px; height: 28px; }
.aoy-referral-guide-package .aoy-referral-reward-art img { max-width: 24px; max-height: 24px; }
.aoy-referral-guide-package .aoy-referral-reward-quantity { padding: .2rem .35rem; }
/* [GM] Delta: Published referral class guide - START */
.aoy-referral-qualifying-jobs { margin-top: 1.2rem; padding: .85rem 1rem; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .22); border-radius: var(--aoy-radius-base,6px); background: rgba(0,0,0,.22); }
.aoy-referral-qualifying-jobs summary { cursor: pointer; color: rgb(var(--aoy-palette-text-rgb, 204, 236, 255)); font-weight: 700; }
.aoy-referral-qualifying-jobs summary span { margin-left: .5rem; color: rgb(var(--aoy-palette-muted-rgb, 185, 204, 219)); font-size: .82rem; font-weight: 400; }
.aoy-referral-qualifying-jobs > p { margin: .65rem 0; }
.aoy-referral-qualifying-job-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: .45rem; margin: .75rem 0 0; padding: 0 !important; list-style: none; }
.aoy-referral-qualifying-job-list li { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .3rem .45rem; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .15); border-radius: 4px; background: rgba(0,0,0,.14); font-size: .83rem; }
.aoy-referral-qualifying-job-list li > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.aoy-referral-qualifying-job-list small { flex: 0 0 auto; color: rgb(var(--aoy-palette-muted-rgb, 185, 204, 219)); white-space: nowrap; }
/* [GM] Delta: Published referral class guide - END */
@media (max-width: 640px) { .aoy-referral-guide-heading { align-items: center; flex-direction: column; text-align: center; } }
/* [GM] Delta: Referral reward guide - END */
.aoy-referrals textarea { display: block; box-sizing: border-box; width: 100%; margin: .75rem 0; padding: .8rem; color: rgb(var(--aoy-palette-text-rgb, 231, 240, 247)); background: rgb(var(--aoy-palette-panel-rgb, 11, 24, 38)); border: 1px solid rgb(var(--aoy-palette-border-rgb, 120, 148, 172)); font-family: monospace; }
.aoy-referral-settings-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 1rem; margin: 1rem 0; }
.aoy-referral-settings-grid label { display: block; }
.aoy-referral-settings-grid input { display: block; box-sizing: border-box; width: 100%; margin-top: .4rem; padding: .65rem; color: rgb(var(--aoy-palette-text-rgb, 231, 240, 247)); background: rgb(var(--aoy-palette-panel-rgb, 11, 24, 38)); border: 1px solid rgb(var(--aoy-palette-border-rgb, 120, 148, 172)); border-radius: 4px; color-scheme: dark; }
.aoy-referrals button { max-width: 100%; cursor: pointer; white-space: normal; }
.aoy-referrals button.btn-primary { color: rgb(var(--aoy-palette-control-ink-rgb, 23, 66, 87)) !important; -webkit-text-fill-color: currentColor !important; background: rgb(var(--aoy-palette-control-rgb, 199, 234, 251)); border-color: rgb(var(--aoy-palette-border-rgb, 86, 133, 157)); }
.aoy-referrals a:focus-visible, .aoy-referrals button:focus-visible, .aoy-referrals textarea:focus-visible, .aoy-referral-settings-grid input:focus-visible { outline: 3px solid rgb(var(--aoy-palette-border-rgb, 138, 211, 232)); outline-offset: 3px; }
.aoy-referrals a { color: rgb(var(--aoy-palette-accent-rgb, 138, 211, 232)); }
body.aoy-inner-page #section-main .aoy-referral-page a,
body.aoy-inner-page #section-main .aoy-referral-page a *,
body.aoy-inner-page #section-main .container:has(.aoy-referral-page) .page-nav-bar a,
body.aoy-inner-page #section-main .container:has(.aoy-referral-page) .page-nav-bar a * { text-shadow: none !important; }
.aoy-referral-text { display: block; box-sizing: border-box; width: 100%; margin: .5rem 0 1rem; padding: .8rem; color: rgb(var(--aoy-palette-text-rgb, 231, 240, 247)); background: rgb(var(--aoy-palette-panel-rgb, 11, 24, 38)); border: 1px solid rgb(var(--aoy-palette-border-rgb, 120, 148, 172)); border-radius: 4px; }
.aoy-referral-consent { display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0; line-height: 1.6; }
.aoy-referral-consent input { flex: 0 0 auto; margin-top: .3rem; }
.aoy-referral-text:focus-visible, .aoy-referral-consent input:focus-visible { outline: 3px solid rgb(var(--aoy-palette-border-rgb, 138, 211, 232)); outline-offset: 3px; }
.aoy-referral-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1rem; font-size: .86rem; font-weight: 700; }
/* [GM] Delta: Referral staff draft layout - START */
.aoy-referral-manage-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgb(var(--aoy-palette-border-rgb, 53, 80, 106)); }
.aoy-referral-manage-header > div { min-width: 0; }
.aoy-referral-manage-header h2 { margin: .2rem 0 .65rem; white-space: normal; }
.aoy-referral-manage-header p:last-child { max-width: 70ch; margin-bottom: 0; }
.aoy-referral-draft-badge { flex: 0 1 auto; max-width: 100%; padding: .4rem .7rem; border: 1px solid #997d43; border-radius: var(--aoy-radius-base,6px); color: #f1daa2; background: rgba(233,207,138,.09); font-size: .8rem; font-weight: 700; }
.aoy-referrals-manage { padding: clamp(.9rem,2.2vw,1.4rem); }
.aoy-referral-manage-panel { display: block; margin-top: .7rem; padding: clamp(.8rem,1.5vw,1rem); border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .22); border-radius: var(--aoy-radius-base,6px); background: rgba(0,0,0,.28); }
.aoy-referral-manage-readiness { border-left: 3px solid var(--aoy-theme-accent,rgb(var(--aoy-palette-border-rgb, 123, 200, 251))); }
.aoy-referral-manage-panel h3 { margin: 0 0 .5rem; }
.aoy-referrals-manage .aoy-referral-manage-panel > h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .55rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .18); font-size: 1.12rem; }
.aoy-referrals-manage .aoy-referral-manage-panel > h3::before { content: ''; flex: 0 0 .3rem; height: 1.1rem; border-radius: 2px; background: linear-gradient(180deg,rgb(var(--aoy-palette-accent-rgb, 138, 219, 244)),rgb(var(--aoy-palette-accent-rgb, 43, 155, 208))); }
.aoy-referral-manage-panel h3 small { color: rgb(var(--aoy-palette-muted-rgb, 169, 198, 214)); font-size: .62em; font-weight: 600; letter-spacing: .06em; }
.aoy-referral-manage-panel p { margin: 0 0 .7rem; }
.aoy-referrals-manage .aoy-referral-manage-panel > p { max-width: 88ch; font-size: .86rem; line-height: 1.5; }
.aoy-referral-manage-panel ul { margin: .65rem 0 0; padding-left: 1.3rem; }
.aoy-referral-manage-panel li + li { margin-top: .4rem; }
.aoy-referral-manage-panel form { margin-top: .65rem; }
.aoy-referral-manage-panel button { margin-top: .35rem; font-weight: 700; }
.aoy-referrals-manage .aoy-referral-settings-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); gap: .65rem; margin: .7rem 0; }
.aoy-referrals-manage .aoy-referral-settings-grid label { font-size: .78rem; font-weight: 700; }
.aoy-referrals-manage .aoy-referral-settings-grid input { min-height: 36px; margin-top: .25rem; padding: .4rem .55rem; font-size: .86rem; }
.aoy-referrals-manage .aoy-referral-manage-panel > form > .btn { min-height: 36px; padding: .4rem .8rem; font-size: .82rem; }
.aoy-referral-manage-advanced summary { cursor: pointer; color: #e9cf8a; font-weight: 700; }
.aoy-referral-manage-advanced summary:hover { color: #fff0be; }
.aoy-referral-manage-advanced summary:focus-visible { outline: 3px solid rgb(var(--aoy-palette-border-rgb, 138, 211, 232)); outline-offset: 3px; }
.aoy-referral-manage-advanced[open] summary { margin-bottom: 1rem; }
@media (max-width: 640px) {
  .aoy-referral-manage-header { flex-direction: column; gap: .85rem; }
  .aoy-referral-draft-badge { align-self: flex-start; }
  .aoy-referral-manage-panel button { width: 100%; }
}
/* [GM] Delta: Referral staff draft layout - END */
/* [GM] Delta: Referral reward draft editor - START */
.aoy-referral-reward-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: .7rem; }
.aoy-referral-reward-group { box-sizing: border-box; container-type: inline-size; min-width: 0; margin: 0; padding: .7rem; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .22); border-radius: var(--aoy-radius-base,6px); background: rgba(0,0,0,.22); }
.aoy-referral-reward-group-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .45rem; }
.aoy-referral-reward-group-heading h4, .aoy-referral-reward-tier-header h4 { margin: .2rem 0 .1rem; }
.aoy-referral-reward-group-heading p, .aoy-referral-reward-tier-header p { margin: 0; color: rgb(var(--aoy-palette-muted-rgb, 185, 204, 219)); font-size: .86rem; }
.aoy-referral-reward-editor-row { display: grid; gap: .45rem; margin: .4rem 0; padding: .45rem .55rem; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .2); border-radius: var(--aoy-radius-base,6px); background: rgba(0,0,0,.24); }
.aoy-referral-reward-selection { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.aoy-referrals-manage .aoy-referral-reward-art { box-sizing: border-box; flex: 0 0 32px; width: 32px; height: 32px; }
.aoy-referrals-manage .aoy-referral-reward-art img { width: 24px; height: 24px; max-width: 24px; max-height: 24px; object-fit: contain; }
.aoy-referral-reward-selection-copy { display: grid; gap: 0; min-width: 0; font-size: .82rem; line-height: 1.25; overflow-wrap: anywhere; }
.aoy-referral-reward-selection-copy strong { color: rgb(var(--aoy-palette-text-rgb, 231, 240, 247)); }
.aoy-referral-reward-selection-copy small { color: rgb(var(--aoy-palette-muted-rgb, 158, 187, 208)); font-size: .68rem; }
.aoy-referral-reward-selection-copy a { font-size: .7rem; }
.aoy-referral-reward-selection-copy a::after { content: ' ↗'; }
.aoy-referral-reward-editor-row:not([data-referral-unresolved]) [data-referral-item-status] { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aoy-referral-reward-editor-row[data-referral-unresolved] [data-referral-item-status] { color: #e9cf8a; }
.aoy-referral-reward-row-controls { display: grid; grid-template-columns: minmax(0,1fr) 70px auto; gap: .4rem; align-items: end; min-width: 0; }
.aoy-referral-reward-row-controls label, .aoy-referral-tier-count { display: grid; gap: .2rem; font-size: .7rem; font-weight: 700; }
.aoy-referral-item-picker { position: relative; min-width: 0; }
.aoy-referral-item-picker input, .aoy-referral-reward-amount input, .aoy-referral-tier-count input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 34px; padding: .35rem .5rem; border: 1px solid rgb(var(--aoy-palette-border-rgb, 120, 148, 172)); border-radius: var(--aoy-radius-base,6px); outline-offset: 2px; color: rgb(var(--aoy-palette-text-rgb, 231, 240, 247)); background: rgb(var(--aoy-palette-panel-rgb, 11, 24, 38)); }
.aoy-referral-item-picker input:focus-visible, .aoy-referral-reward-amount input:focus-visible, .aoy-referral-tier-count input:focus-visible { outline: 3px solid rgb(var(--aoy-palette-border-rgb, 138, 211, 232)); }
.aoy-referral-item-results { position: absolute; z-index: 30; inset: auto 0 auto 0; max-height: 290px; margin-top: .25rem; overflow: auto; border: 1px solid rgb(var(--aoy-palette-border-rgb, 120, 148, 172)); border-radius: var(--aoy-radius-base,6px); background: rgb(var(--aoy-palette-panel-rgb, 11, 24, 38)); box-shadow: 0 16px 35px rgba(0,0,0,.35); }
.aoy-referral-item-results[hidden] { display: none; }
.aoy-referral-item-option { display: flex; align-items: center; gap: .6rem; box-sizing: border-box; width: 100%; margin: 0 !important; padding: .45rem .6rem !important; border: 0 !important; border-bottom: 1px solid rgb(var(--aoy-palette-border-rgb, 53, 80, 106)) !important; border-radius: 0 !important; color: rgb(var(--aoy-palette-text-rgb, 231, 240, 247)) !important; background: transparent !important; text-align: left; }
.aoy-referral-item-option:hover, .aoy-referral-item-option:focus-visible { background: rgb(var(--aoy-palette-accent-rgb, 35, 76, 103)) !important; color: #fff !important; }
.aoy-referral-item-option .aoy-referral-reward-art { width: 32px; height: 32px; flex: 0 0 auto; }
.aoy-referral-item-option .aoy-referral-reward-art img { max-width: 24px; max-height: 24px; }
.aoy-referral-item-option-copy { min-width: 0; overflow-wrap: anywhere; }
.aoy-referral-item-option-copy small { display: block; color: rgb(var(--aoy-palette-muted-rgb, 158, 187, 208)); font-size: .7rem; }
.aoy-referral-item-results-empty { margin: 0 !important; padding: .65rem; }
.aoy-referrals button.aoy-referral-row-remove { min-height: 34px; margin: 0; padding: .3rem .5rem; border: 1px solid #806369; color: #f4ced1; background: #442a35; font-size: .76rem; }
.aoy-referrals button.aoy-referral-row-remove:hover { border-color: #d895a0; background: #663844; }
.aoy-referrals button.aoy-referral-add-row { min-height: 34px; margin-top: .4rem; padding: .32rem .65rem; border: 1px solid rgb(var(--aoy-palette-border-rgb, 120, 148, 172)); color: rgb(var(--aoy-palette-control-ink-rgb, 231, 240, 247)); background: rgb(var(--aoy-palette-control-rgb, 36, 67, 91)); font-size: .8rem; }
.aoy-referrals button.aoy-referral-add-row:hover { background: rgb(var(--aoy-palette-control-rgb, 51, 91, 119)); }
.aoy-referral-reward-tier-header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin: .8rem 0 .5rem; }
.aoy-referral-tier-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: .7rem; }
.aoy-referral-tier-count { max-width: 170px; }
.aoy-referral-reward-feedback { min-height: 1.35em; color: rgb(var(--aoy-palette-muted-rgb, 185, 204, 219)); }
@container (min-width: 490px) {
  .aoy-referral-reward-editor-row { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: center; }
}
@media (max-width: 900px) { .aoy-referral-reward-groups, .aoy-referral-tier-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .aoy-referral-reward-tier-header, .aoy-referral-reward-group-heading { flex-direction: column; align-items: stretch; }
  .aoy-referral-reward-row-controls { grid-template-columns: minmax(0,1fr) 92px; }
  .aoy-referral-item-picker { grid-column: 1 / -1; }
  .aoy-referral-tier-count { max-width: none; }
  .aoy-referrals-manage .aoy-referral-reward-editor-row button.aoy-referral-row-remove { width: auto; }
}
/* [GM] Delta: Referral reward draft editor - END */
html[data-aoy-color-scheme="light"] .aoy-referrals { color: rgb(var(--aoy-palette-text-rgb, 35, 54, 76)); background: linear-gradient(180deg,var(--aoy-light-surface-strong),var(--aoy-light-surface-soft)); border-color: var(--aoy-light-border-strong); box-shadow: var(--aoy-light-shadow); }
html[data-aoy-color-scheme="light"] .aoy-referrals :is(.aoy-referral-intro-copy, .aoy-referral-guide-package, .aoy-referral-reward-name, ol, ul, li) { color: rgb(var(--aoy-palette-text-rgb, 35, 54, 76)) !important; }
html[data-aoy-color-scheme="light"] .aoy-referrals h2,
html[data-aoy-color-scheme="light"] .aoy-referrals h3,
html[data-aoy-color-scheme="light"] .aoy-referrals h4 { color: #665016; }
html[data-aoy-color-scheme="light"] .aoy-referral-eyebrow { color: rgb(var(--aoy-palette-muted-rgb, 49, 90, 112)); }
html[data-aoy-color-scheme="light"] .aoy-referral-notice,
html[data-aoy-color-scheme="light"] .aoy-referral-package { background: rgba(255,255,255,.6); border-color: var(--aoy-light-border); }
html[data-aoy-color-scheme="light"] .aoy-referrals a { color: rgb(var(--aoy-palette-accent-rgb, 21, 93, 128)); }
html[data-aoy-color-scheme="light"] .aoy-referral-guide-actions a { border-color: rgb(var(--aoy-palette-border-rgb, 157, 187, 208)); background: rgb(var(--aoy-palette-panel-rgb, 217, 238, 250)); }
html[data-aoy-color-scheme="light"] .aoy-referral-text,
html[data-aoy-color-scheme="light"] .aoy-referrals textarea,
html[data-aoy-color-scheme="light"] .aoy-referral-settings-grid input { color: rgb(var(--aoy-palette-text-rgb, 35, 54, 76)); background: #fff; border-color: rgb(var(--aoy-palette-border-rgb, 120, 148, 172)); color-scheme: light; }
html[data-aoy-color-scheme="light"] .aoy-referrals :focus-visible { outline-color: rgb(var(--aoy-palette-border-rgb, 21, 93, 128)); }
html[data-aoy-color-scheme="light"] .aoy-referral-manage-header { border-color: rgb(var(--aoy-palette-border-rgb, 175, 194, 211)); }
html[data-aoy-color-scheme="light"] .aoy-referral-draft-badge { color: #665016; border-color: #ad924f; background: #fff4d4; }
html[data-aoy-color-scheme="light"] .aoy-referral-manage-panel { background: rgba(255,255,255,.6); border-color: var(--aoy-light-border); }
html[data-aoy-color-scheme="light"] .aoy-referral-manage-panel h3 small { color: rgb(var(--aoy-palette-muted-rgb, 81, 107, 128)); }
html[data-aoy-color-scheme="light"] .aoy-referral-manage-advanced summary { color: #665016; }
html[data-aoy-color-scheme="light"] .aoy-referral-manage-advanced summary:hover { color: #3e310e; }
html[data-aoy-color-scheme="light"] .aoy-referral-guide-package { border-color: var(--aoy-light-border); background: rgba(255,255,255,.6); }
html[data-aoy-color-scheme="light"] .aoy-referral-guide-package > p { color: rgb(var(--aoy-palette-muted-rgb, 61, 86, 107)); }
html[data-aoy-color-scheme="light"] .aoy-referral-qualifying-jobs { border-color: var(--aoy-light-border); background: rgba(255,255,255,.6); }
html[data-aoy-color-scheme="light"] .aoy-referral-qualifying-jobs summary { color: rgb(var(--aoy-palette-accent-rgb, 33, 90, 128)); }
html[data-aoy-color-scheme="light"] .aoy-referral-qualifying-jobs summary span, html[data-aoy-color-scheme="light"] .aoy-referral-qualifying-job-list small { color: rgb(var(--aoy-palette-muted-rgb, 81, 107, 128)); }
html[data-aoy-color-scheme="light"] .aoy-referral-qualifying-job-list li { border-color: var(--aoy-light-border); background: rgba(255,255,255,.45); }
html[data-aoy-color-scheme="light"] .aoy-referral-package-label { color: rgb(var(--aoy-palette-accent-rgb, 39, 83, 111)); border-color: var(--aoy-light-border); background: rgba(var(--aoy-palette-accent-rgb, 123, 200, 251), .2); }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-link { color: rgb(var(--aoy-palette-text-rgb, 35, 54, 76)) !important; border-color: var(--aoy-light-border); background: rgba(255,255,255,.65); }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-link:hover { color: rgb(var(--aoy-palette-text-rgb, 18, 52, 78)) !important; border-color: rgb(var(--aoy-palette-border-rgb, 57, 139, 173)); }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-art { color: rgb(var(--aoy-palette-muted-rgb, 71, 101, 122)); border-color: var(--aoy-light-border); background: rgba(255,255,255,.5); }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-name small { color: rgb(var(--aoy-palette-muted-rgb, 81, 107, 128)); }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-quantity { color: #665016; background: #fff4d4; }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-group { border-color: var(--aoy-light-border); background: rgba(255,255,255,.45); }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-group-heading p,
html[data-aoy-color-scheme="light"] .aoy-referral-reward-tier-header p,
html[data-aoy-color-scheme="light"] .aoy-referral-reward-feedback { color: rgb(var(--aoy-palette-muted-rgb, 61, 86, 107)); }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-editor-row { border-color: var(--aoy-light-border); background: rgba(255,255,255,.62); }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-selection-copy strong { color: rgb(var(--aoy-palette-text-rgb, 35, 54, 76)); }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-selection-copy small { color: rgb(var(--aoy-palette-muted-rgb, 81, 107, 128)); }
html[data-aoy-color-scheme="light"] .aoy-referral-reward-editor-row[data-referral-unresolved] [data-referral-item-status] { color: #765d1b; }
html[data-aoy-color-scheme="light"] .aoy-referral-item-picker input,
html[data-aoy-color-scheme="light"] .aoy-referral-reward-amount input,
html[data-aoy-color-scheme="light"] .aoy-referral-tier-count input { color: rgb(var(--aoy-palette-text-rgb, 35, 54, 76)); border-color: rgb(var(--aoy-palette-border-rgb, 120, 148, 172)); background: #fff; color-scheme: light; }
html[data-aoy-color-scheme="light"] .aoy-referral-item-results { border-color: rgb(var(--aoy-palette-border-rgb, 168, 196, 214)); background: #fff; box-shadow: 0 16px 35px rgba(var(--aoy-palette-shadow-rgb, 29, 57, 78), .2); }
html[data-aoy-color-scheme="light"] .aoy-referral-item-option { color: rgb(var(--aoy-palette-text-rgb, 35, 54, 76)) !important; border-color: rgb(var(--aoy-palette-border-rgb, 212, 226, 236)) !important; }
html[data-aoy-color-scheme="light"] .aoy-referral-item-option:hover,
html[data-aoy-color-scheme="light"] .aoy-referral-item-option:focus-visible { color: rgb(var(--aoy-palette-text-rgb, 21, 52, 73)) !important; background: rgb(var(--aoy-palette-panel-rgb, 220, 239, 250)) !important; }
html[data-aoy-color-scheme="light"] .aoy-referral-item-option-copy small { color: rgb(var(--aoy-palette-muted-rgb, 81, 107, 128)); }
html[data-aoy-color-scheme="light"] .aoy-referrals button.aoy-referral-row-remove { color: #73333c; border-color: #c99ca5; background: #fff0f1; }
html[data-aoy-color-scheme="light"] .aoy-referrals button.aoy-referral-add-row { color: rgb(var(--aoy-palette-control-ink-rgb, 25, 68, 94)); border-color: rgb(var(--aoy-palette-border-rgb, 134, 183, 210)); background: rgb(var(--aoy-palette-control-rgb, 228, 244, 253)); }

/* Keep referral fields above the legacy inner-page dark input baseline. */
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referrals :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
  select, textarea
) {
  border-color: var(--aoy-light-border-strong) !important;
  background: #fff !important;
  color: var(--aoy-light-text) !important;
  -webkit-text-fill-color: var(--aoy-light-text) !important;
  caret-color: var(--aoy-light-text);
  color-scheme: light !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referrals :is(input, textarea)::placeholder {
  color: var(--aoy-light-text-muted) !important;
  -webkit-text-fill-color: var(--aoy-light-text-muted) !important;
  opacity: 1;
}
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referrals input:-webkit-autofill {
  -webkit-text-fill-color: var(--aoy-light-text) !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}
html[data-aoy-color-scheme] body.aoy-inner-page #section-main .aoy-referrals i {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* [GM] Delta: Private referral qualification and delivery history - START */
.aoy-referral-illustrated { position: relative; isolation: isolate; overflow: hidden; }
.aoy-referral-illustrated::before { content: ""; position: absolute; z-index: -1; inset: 0; background-repeat: no-repeat; pointer-events: none; opacity: .2; }
.aoy-referral-overview { padding: 1.25rem; border-color: rgba(213,182,115,.3); background: rgb(var(--aoy-palette-panel-rgb, 16, 35, 49)); }
.aoy-referral-overview::before { background-image: url('../img/aoy-home.jpg'); background-size: auto 1800px; }
.aoy-referral-overview.is-friends::before { background-position: left center; }
.aoy-referral-overview.is-invitation::before { background-position: right center; }
.aoy-referral-overview h3, .aoy-referral-history > h3, .aoy-referral-invite h3 { display: flex; align-items: center; justify-content: center; gap: .65rem; }
.aoy-referral-overview h3 i, .aoy-referral-history > h3 i, .aoy-referral-invite h3 i { color: #e9cf8a; }
.aoy-referral-overview-empty { margin-top: 1.1rem; padding: 1rem; border-top: 1px solid rgba(213,182,115,.22); text-align: center; }
.aoy-referral-participants { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); align-items: end; gap: .7rem; margin-top: 1rem; }
.aoy-referral-participant { min-width: 0; margin: 0; text-align: center; }
.aoy-referral-portrait-fallback { display: none; font-size: 2rem; color: rgb(var(--aoy-palette-muted-rgb, 169, 198, 214)); }
.aoy-referral-participant-sprite.is-unavailable .aoy-referral-portrait-fallback { display: inline-block; }
.aoy-referral-participant-sprite img[hidden] { display: none; }
.aoy-referral-participant-sprite { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%,200px); min-height: 110px; margin: 0 auto; border-radius: 50%; background: radial-gradient(ellipse at 50% 85%,rgba(233,207,138,.22),transparent 60%); }
.aoy-referral-participant-sprite img { display: block; max-width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0,0,0,.25)); }
.aoy-referral-participant-sprite > i { color: rgb(var(--aoy-palette-muted-rgb, 146, 179, 198)); font-size: 2rem; }
.aoy-referral-participant :is(figcaption,p) { margin: 0; line-height: 1.4; }
.aoy-referral-participant :is(small,strong) { display: block; overflow-wrap: anywhere; }
.aoy-referral-participant small { color: rgb(var(--aoy-palette-muted-rgb, 185, 204, 219)); font-size: .75rem; }
.aoy-referral-participant strong { color: #f7e4b6; font-size: .95rem; }
.aoy-referral-participants.is-invitation-pair { grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr); align-items: center; }
.aoy-referral-companion-link { color: #e9cf8a; text-align: center; }
.aoy-referral-history { margin: 1.4rem 0; padding: 1.25rem; border: 1px solid rgba(213,182,115,.3); border-radius: var(--aoy-radius-base,6px); background: rgb(var(--aoy-palette-panel-rgb, 16, 35, 49)); }
.aoy-referral-history::before { background-image: url('../img/general-character.png'); background-position: right top; background-size: 390px auto; opacity: .13; }
.aoy-referral-history-list { display: grid; gap: .6rem; margin: .7rem 0 0; padding: 0 !important; list-style: none; }
.aoy-referral-history-list > li { display: grid; gap: .65rem; padding: 1rem; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .22); border-radius: var(--aoy-radius-base,6px); background: rgba(0,0,0,.24); }
.aoy-referral-history-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.aoy-referral-history-heading h4 { margin: 0; font-size: 1rem; }
.aoy-referral-history-status { display: inline-flex; align-items: center; padding: .3rem .6rem; border: 1px solid rgb(var(--aoy-palette-border-rgb, 100, 134, 157)); border-radius: 4px; color: rgb(var(--aoy-palette-text-rgb, 231, 240, 247)); background: rgb(var(--aoy-palette-accent-rgb, 35, 67, 90)); font-size: .8rem; font-weight: 700; }
.aoy-referral-history-status.is-sent { border-color: #56876e; color: #cdf4dd; background: #234a37; }
.aoy-referral-history-status.is-ready { border-color: #a28c59; color: #ffedba; background: #493f23; }
.aoy-referral-history-times { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.aoy-referral-history-recipient .aoy-referral-participant { display: flex; align-items: center; gap: .6rem; text-align: left; }
.aoy-referral-history-recipient .aoy-referral-participant-sprite { width: 90px; min-height: 0; margin: 0; }
.aoy-referral-history-list small { color: rgb(var(--aoy-palette-muted-rgb, 185, 204, 219)); }
.aoy-referral-history-list .aoy-referral-reward-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: .5rem; margin: 0; }
html[data-aoy-color-scheme="light"] .aoy-referral-history-list > li { border-color: var(--aoy-light-border); background: rgba(255,255,255,.88); }
html[data-aoy-color-scheme="light"] .aoy-referral-history-list small { color: rgb(var(--aoy-palette-muted-rgb, 61, 86, 107)); }
html[data-aoy-color-scheme="light"] .aoy-referral-history-status { color: rgb(var(--aoy-palette-text-rgb, 25, 68, 94)); background: rgb(var(--aoy-palette-panel-rgb, 228, 244, 253)); border-color: rgb(var(--aoy-palette-border-rgb, 134, 183, 210)); }
html[data-aoy-color-scheme="light"] .aoy-referral-history-status.is-sent { color: #205337; background: #e4f4e9; border-color: #82b596; }
html[data-aoy-color-scheme="light"] .aoy-referral-history-status.is-ready { color: #665016; background: #fff4d4; border-color: #ad924f; }
html[data-aoy-color-scheme="light"] .aoy-referral-overview,
html[data-aoy-color-scheme="light"] .aoy-referral-history { border-color: #c8b887; background: rgb(var(--aoy-palette-panel-rgb, 244, 248, 251)); }
html[data-aoy-color-scheme="light"] .aoy-referral-illustrated::before { opacity: .12; }
html[data-aoy-color-scheme="light"] .aoy-referral-history::before { opacity: .1; }
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referrals :is(p, li, label, span, strong, small, font, figcaption, code, img) { color: rgb(var(--aoy-palette-text-rgb, 35, 54, 76)) !important; -webkit-text-fill-color: currentColor !important; text-shadow: none; }
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referrals button { color: rgb(var(--aoy-palette-control-ink-rgb, 23, 66, 87)) !important; -webkit-text-fill-color: currentColor !important; background: rgb(var(--aoy-palette-control-rgb, 199, 234, 251)); border-color: rgb(var(--aoy-palette-border-rgb, 86, 133, 157)); }
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referrals :is(h2, h3, h4) { color: #665016 !important; -webkit-text-fill-color: currentColor !important; }
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referrals .aoy-referral-history-status { color: rgb(var(--aoy-palette-text-rgb, 25, 68, 94)) !important; }
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referrals .aoy-referral-history-status.is-sent { color: #205337 !important; }
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referrals .aoy-referral-history-status.is-ready { color: #665016 !important; }
html[data-aoy-color-scheme="light"] .aoy-referral-participant-sprite { background: radial-gradient(ellipse at 50% 85%,rgba(171,132,36,.16),transparent 60%); }
html[data-aoy-color-scheme="light"] .aoy-referral-overview h3 i,
html[data-aoy-color-scheme="light"] .aoy-referral-history > h3 i,
html[data-aoy-color-scheme="light"] .aoy-referral-invite h3 i,
html[data-aoy-color-scheme="light"] .aoy-referral-companion-link { color: #665016 !important; }
.aoy-referral-invite { margin-top: 1.4rem; text-align: center; }
.aoy-referral-invite > p { max-width: 740px; margin-right: auto; margin-left: auto; }
.aoy-referral-invite form { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.aoy-referral-invite .aoy-referral-consent { display: flex; align-items: center; justify-content: center; gap: .55rem; max-width: 100%; margin: 0; text-align: center; }
.aoy-referral-invite .aoy-referral-consent input { flex: 0 0 auto; margin: 0; }
.aoy-referral-invite-guide a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.aoy-referral-invite .aoy-referral-text { max-width: 740px; margin-right: auto; margin-left: auto; }
@media (max-width: 640px) { .aoy-referral-overview, .aoy-referral-history { padding: 1rem; } .aoy-referral-history-heading { align-items: flex-start; } .aoy-referral-participants { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.aoy-referral-redeemer { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,260px); align-items: center; gap: 1.5rem; margin: 1.5rem 0 0; padding: 1.25rem; border: 1px solid rgba(213,182,115,.3); border-radius: var(--aoy-radius-base,6px); background: rgb(var(--aoy-palette-panel-rgb, 16, 35, 49)); }
.aoy-referral-redeemer-host { display: flex; align-items: center; gap: 1.1rem; }
.aoy-referral-redeemer-host h3 { margin-top: .25rem; text-align: left; }
.aoy-referral-redeemer-sprite { flex: 0 0 auto; width: 56px; height: 95px; object-fit: contain; transform: scaleX(-1); }
.aoy-referral-redeemer-still { display: none; align-items: center; justify-content: center; flex: 0 0 56px; height: 95px; font-size: 2rem; }
.aoy-referral-redeemer-copy > a { display: inline-flex; align-items: center; gap: .45rem; }
.aoy-referral-redeemer-map { margin: 0; text-align: center; }
.aoy-referral-redeemer-map > div { position: relative; overflow: hidden; border: 1px solid #c8b887; border-radius: 6px; }
.aoy-referral-redeemer-map img { display: block; width: 100%; height: auto; }
.aoy-referral-redeemer-map figcaption { margin-top: .5rem; font-size: .8rem; }
.aoy-referral-redeemer-pin { position: absolute; left: 54%; top: 50.75%; transform: translate(-50%,-100%); color: #ffd259; font-size: 1.5rem; filter: drop-shadow(0 2px 2px #000); }
html[data-aoy-color-scheme="light"] .aoy-referral-redeemer { border-color: #c8b887; background: rgb(var(--aoy-palette-panel-rgb, 244, 248, 251)); }
html[data-aoy-color-scheme="light"] body.aoy-inner-page #section-main .aoy-referrals .aoy-referral-redeemer-pin { color: #ffd259 !important; }
@media (max-width: 640px) { .aoy-referral-redeemer { grid-template-columns: 1fr; padding: 1rem; } .aoy-referral-redeemer-map { width: min(100%,260px); justify-self: center; } }
@media (prefers-reduced-motion: reduce) { .aoy-referral-redeemer-sprite { display: none; } .aoy-referral-redeemer-still { display: inline-flex; } }
/* [GM] Delta: Private referral qualification and delivery history - END */

/* [GM] Delta: Referral eligible-job draft editor - START */
.aoy-referral-job-search { display: block; max-width: 430px; font-weight: 700; }
.aoy-referral-job-search input, .aoy-referral-job-row select, .aoy-referral-job-row input { box-sizing: border-box; width: 100%; min-height: 42px; margin-top: .35rem; padding: .55rem .65rem; color: rgb(var(--aoy-palette-text-rgb, 231, 240, 247)); background: rgb(var(--aoy-palette-panel-rgb, 11, 24, 38)); border: 1px solid rgb(var(--aoy-palette-border-rgb, 120, 148, 172)); border-radius: 4px; color-scheme: dark; }
.aoy-referral-job-count { margin: .6rem 0; color: rgb(var(--aoy-palette-muted-rgb, 185, 204, 219)); font-size: .86rem; }
.aoy-referral-job-list { max-height: 420px; overflow-y: auto; padding: .35rem; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .22); border-radius: var(--aoy-radius-base,6px); }
.aoy-referral-job-group { margin: .75rem .45rem .45rem; font-size: .95rem; }
.aoy-referral-job-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,150px) minmax(100px,130px); align-items: center; gap: .8rem; margin: .35rem; padding: .6rem .75rem; border: 1px solid rgba(var(--aoy-palette-border-rgb, 123, 200, 251), .18); border-radius: var(--aoy-radius-base,6px); background: rgba(0,0,0,.18); }
.aoy-referral-job-row[hidden], .aoy-referral-job-group[hidden] { display: none !important; }
.aoy-referral-job-name { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.aoy-referral-job-icon { display: inline-flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; background: rgba(var(--aoy-palette-accent-rgb, 123, 200, 251), .1); }
.aoy-referral-job-icon img { display: block; width: 32px; height: 32px; object-fit: contain; }
.aoy-referral-job-icon i { color: rgb(var(--aoy-palette-accent-rgb, 155, 206, 219)); }
.aoy-referral-job-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; min-width: 0; }
.aoy-referral-job-name small { color: rgb(var(--aoy-palette-muted-rgb, 185, 204, 219)); white-space: nowrap; }
.aoy-referral-job-row label { min-width: 0; font-size: .82rem; }
.aoy-referral-job-search input:focus-visible, .aoy-referral-job-row select:focus-visible, .aoy-referral-job-row input:focus-visible { outline: 3px solid rgb(var(--aoy-palette-border-rgb, 138, 211, 232)); outline-offset: 2px; }
@media (max-width: 640px) { .aoy-referral-job-row { grid-template-columns: repeat(2,minmax(0,1fr)); } .aoy-referral-job-name { grid-column: 1 / -1; } }
/* [GM] Delta: Referral eligible-job draft editor - END */

html[data-aoy-color-scheme="light"] .aoy-referral-job-list { border-color: var(--aoy-light-border); }
html[data-aoy-color-scheme="light"] .aoy-referral-job-row { border-color: var(--aoy-light-border); background: rgba(255,255,255,.62); }
html[data-aoy-color-scheme="light"] .aoy-referral-job-count, html[data-aoy-color-scheme="light"] .aoy-referral-job-name small { color: rgb(var(--aoy-palette-muted-rgb, 81, 107, 128)); }
html[data-aoy-color-scheme="light"] .aoy-referral-job-icon { background: rgba(var(--aoy-palette-accent-rgb, 27, 119, 170), .1); }
html[data-aoy-color-scheme="light"] .aoy-referral-job-icon i { color: rgb(var(--aoy-palette-accent-rgb, 53, 98, 125)); }
html[data-aoy-color-scheme="light"] .aoy-referral-job-search input, html[data-aoy-color-scheme="light"] .aoy-referral-job-row select, html[data-aoy-color-scheme="light"] .aoy-referral-job-row input { color: rgb(var(--aoy-palette-text-rgb, 35, 54, 76)); border-color: rgb(var(--aoy-palette-border-rgb, 120, 148, 172)); background: #fff; color-scheme: light; }
