/* Bitwolt protected member app — presentation only, production behavior stays in existing JS */

/* Protected member pages stay non-interactive/invisible until the auth guard
   has verified the current user against Supabase, not merely local storage. */
html:not(.bw-member-auth-ready) body[data-scope="member"]{
  visibility:hidden!important;
}

body[data-scope="member"]{
  min-height:100dvh;
  margin:0!important;
  background:var(--bw-bg,#f5f8fa)!important;
  color:var(--bw-ink,#102238)!important;
}
body[data-scope="member"] #bgVideo{display:none!important}
body[data-scope="member"] .bw-header-spacer{display:none!important}

.member-app-main{min-height:calc(100dvh - 1px);background:var(--bw-bg,#f5f8fa);color:var(--bw-ink,#102238)}
.member-workspace{width:min(1180px,calc(100% - 68px));margin:0 auto;padding:40px 0 78px}
.member-page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:28px;margin-bottom:28px}
.member-page-head__copy{max-width:790px}
.member-eyebrow{display:block;margin-bottom:8px;color:var(--bw-readable-accent,var(--bw-blue,#05B9F2));font-size:.72rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.member-page-head h1{margin:0;font-family:var(--bw-display,"Oswald",sans-serif);font-size:clamp(2.6rem,4.4vw,4.25rem);line-height:1.02;letter-spacing:-.04em;color:var(--bw-ink,#102238)}
.member-page-head p{max-width:66ch;margin:12px 0 0;color:var(--bw-muted,#617083);font-size:.9rem;line-height:1.58}
.member-page-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.member-app-btn{min-height:44px;padding:0 17px;border-radius:999px;border:1px solid var(--bw-border,#dfe7ed);background:transparent;color:var(--bw-ink,#102238);font:inherit;font-size:.84rem;font-weight:820;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.member-app-btn--primary{background:var(--bw-blue,#05B9F2);border-color:var(--bw-blue,#05B9F2);color:#062131;box-shadow:0 8px 20px rgba(5,185,242,.14)}
.member-app-btn:hover{border-color:rgba(5,185,242,.32);background:rgba(5,185,242,.05)}
.member-app-btn--primary:hover{background:#19c4f6}

.member-metric-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:34px;border-top:1px solid var(--bw-border,#dfe7ed);border-bottom:1px solid var(--bw-border,#dfe7ed)}
.member-metric{min-width:0;padding:22px 24px 22px 0;display:grid;gap:5px}
.member-metric+.member-metric{border-left:1px solid var(--bw-border,#dfe7ed);padding-left:24px}
.member-metric__label{color:var(--bw-muted,#617083);font-size:.75rem;font-weight:780}
.member-metric__value{font-family:var(--bw-display,"Oswald",sans-serif);font-size:2.15rem;line-height:1;color:var(--bw-ink,#102238);overflow-wrap:anywhere}
.member-metric__status{min-height:1.15em;color:var(--bw-muted,#617083);font-size:.76rem;line-height:1.4}
.member-metric--positive .member-metric__value{color:var(--bw-readable-positive,#8ea600)}
.member-inline-chip{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:22px;padding:0 7px;border-radius:999px;background:rgba(185,219,27,.10);color:var(--bw-readable-positive,#7e9600);font-size:.65rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase;margin-bottom:2px}

.member-grid-2{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:20px}
.member-panel{border:1px solid var(--bw-border,#dfe7ed);border-radius:22px;background:var(--bw-surface,#fff);padding:25px;box-shadow:0 12px 34px rgba(16,34,56,.035)}
.member-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}
.member-panel-head h2{margin:0;font-family:var(--bw-display,"Oswald",sans-serif);font-size:1.72rem;letter-spacing:-.025em;color:var(--bw-ink,#102238)}
.member-panel-head p{margin:5px 0 0;color:var(--bw-muted,#617083);font-size:.88rem;line-height:1.5}
.member-status{display:inline-flex;align-items:center;gap:7px;min-height:28px;padding:0 9px;border-radius:999px;background:rgba(5,185,242,.07);color:var(--bw-readable-accent,var(--bw-blue,#05B9F2));font-size:.7rem;font-weight:840;white-space:nowrap}
.member-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}

.member-progress-title{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:2px 0 10px}
.member-progress-title strong{font-family:var(--bw-display,"Oswald",sans-serif);font-size:2rem;line-height:1;color:var(--bw-ink,#102238)}
.member-progress-title span{color:var(--bw-muted,#617083);font-size:.78rem}
.member-progress-track{position:relative;height:12px;border-radius:999px;background:rgba(97,112,131,.11);overflow:hidden;margin:14px 0 14px}
.member-progress-fill{position:absolute;inset:0 auto 0 0;width:0;border-radius:inherit;background:linear-gradient(90deg,var(--bw-blue,#05B9F2),var(--bw-volt,#B9DB1B));transition:width .35s ease}
.member-progress-percent{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:.65rem;font-weight:900;color:var(--bw-ink,#102238);mix-blend-mode:multiply}
html[data-design="future"] .member-progress-percent{color:#eaf7fc;mix-blend-mode:normal}
.member-progress-copy{margin:0 0 18px;color:var(--bw-muted,#617083);font-size:.84rem;line-height:1.55}

.glow-button{min-height:44px!important;padding:0 16px!important;border-radius:999px!important;border:1px solid var(--bw-blue,#05B9F2)!important;background:var(--bw-blue,#05B9F2)!important;color:#062131!important;font:inherit!important;font-size:.82rem!important;font-weight:850!important;box-shadow:0 8px 20px rgba(5,185,242,.14)!important;cursor:pointer!important}
.glow-button:hover:not(:disabled){background:#19c4f6!important;transform:translateY(-1px)}
.glow-button.danger{background:transparent!important;color:var(--bw-ink,#102238)!important;border-color:rgba(5,185,242,.28)!important;box-shadow:none!important}
.glow-button:disabled{opacity:.64!important;cursor:default!important;transform:none!important}

.member-operational-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:22px;border-top:1px solid var(--bw-border,#dfe7ed);border-bottom:1px solid var(--bw-border,#dfe7ed)}
.member-operation{min-width:0;padding:18px 20px 18px 0}
.member-operation+.member-operation{border-left:1px solid var(--bw-border,#dfe7ed);padding-left:20px}
.member-operation span{display:block;color:var(--bw-muted,#617083);font-size:.7rem;font-weight:780;margin-bottom:5px}
.member-operation strong,.member-operation>div{display:block;color:var(--bw-ink,#102238);font-size:.88rem;line-height:1.45;overflow-wrap:anywhere}

.member-activity{min-height:230px;color:var(--bw-muted,#617083);font-size:.84rem;line-height:1.55}
.member-activity:empty::before{content:"Aktivitäten werden geladen …";color:var(--bw-muted,#617083)}
.member-activity>div{padding:12px 0!important;margin:0!important;border-top:1px solid var(--bw-border,#dfe7ed)!important;justify-content:flex-start!important;text-align:left!important}
.member-activity>div:first-child{border-top:0!important;padding-top:0!important}
.member-activity .activity-date{font-size:.74rem!important}
.activity-gold-icon{color:var(--bw-readable-warning,#b99300);margin-left:5px}

.member-foot-note{margin-top:24px;padding:15px 17px;border:1px solid var(--bw-border,#dfe7ed);border-radius:15px;background:rgba(5,185,242,.035);color:var(--bw-muted,#617083);font-size:.79rem;line-height:1.55}
.member-foot-note strong{color:var(--bw-ink,#102238)}

body[data-scope="member"] #footer-container{margin-top:0}

/* Desktop: existing authenticated header becomes the member application rail. */
@media(min-width:981px){
  body[data-scope="member"]{padding-left:240px!important}
  body[data-scope="member"] .bw-header{
    position:fixed!important;
    inset:0 auto 0 0!important;
    width:240px!important;
    height:100dvh!important;
    margin:0!important;
    border:0!important;
    border-right:1px solid var(--bw-border,#dfe7ed)!important;
    border-bottom:0!important;
    background:color-mix(in srgb,var(--bw-surface,#fff) 94%,transparent)!important;
    box-shadow:none!important;
    transform:none!important;
    opacity:1!important;
    overflow:visible!important;
  }
  html[data-design="future"] body[data-scope="member"] .bw-header{background:rgba(6,14,23,.94)!important;border-right-color:rgba(119,205,239,.13)!important}
  body[data-scope="member"] .bw-header__inner{
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    margin:0!important;
    padding:24px 18px 18px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:9px!important;
  }
  body[data-scope="member"] .bw-header .bw-logo{font-size:1.76rem!important;padding:0 8px 9px!important;margin:0!important;align-self:flex-start!important}
  body[data-scope="member"] .bw-header .bw-design-mount{padding:0 8px 6px!important;margin:0!important;align-self:flex-start!important}
  body[data-scope="member"] .bw-header .bw-segment{width:100%!important;margin:0!important;padding:2px 0 10px!important;display:flex!important}
  body[data-scope="member"] .bw-header .bw-segment__trigger{width:100%!important;justify-content:space-between!important;padding:0 10px!important;border:1px solid var(--bw-border,#dfe7ed)!important;background:rgba(5,185,242,.025)!important}
  body[data-scope="member"] .bw-header .bw-segment__menu{left:calc(100% + 10px)!important;top:0!important}
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    margin:7px 0 0!important;
    padding:12px 0 0!important;
    border-top:1px solid var(--bw-border,#dfe7ed)!important;
    display:grid!important;
    gap:4px!important;
    white-space:normal!important;
  }
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav::before{content:"Mitgliederbereich";display:block;padding:0 10px 7px;color:var(--bw-muted,#617083);font-size:.66rem;font-weight:850;text-transform:uppercase;letter-spacing:.11em}
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav .bw-link{width:100%!important;min-height:44px!important;padding:0 12px 0 15px!important;border-radius:12px!important;justify-content:flex-start!important;opacity:.72!important;background:transparent!important;border-color:transparent!important}
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav .bw-link:hover{opacity:1!important;background:rgba(5,185,242,.045)!important}
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav .bw-link.bw-active{opacity:1!important;background:rgba(5,185,242,.075)!important;color:var(--bw-ink,#102238)!important}
  html[data-design="future"] body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav .bw-link.bw-active{color:#edfaff!important;background:rgba(5,185,242,.075)!important}
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav .bw-link::after{left:4px!important;right:auto!important;top:10px!important;bottom:10px!important;width:3px!important;height:auto!important;transform:scaleY(0)!important;transform-origin:center!important}
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav .bw-link:hover::after,
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav .bw-link.bw-active::after{transform:scaleY(1)!important}
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-actions{width:100%!important;margin:auto 0 0!important;padding:14px 0 0!important;border-top:1px solid var(--bw-border,#dfe7ed)!important;display:block!important}
  body[data-scope="member"] .bw-header .bw-user{width:100%!important}
  body[data-scope="member"] .bw-header .bw-user #bw-user-trigger{width:100%!important;justify-content:flex-start!important;background:transparent!important;color:var(--bw-ink,#102238)!important;border-color:var(--bw-border,#dfe7ed)!important;box-shadow:none!important;padding:0 10px!important}
  html[data-design="future"] body[data-scope="member"] .bw-header .bw-user #bw-user-trigger{color:#dbeef5!important}
  body[data-scope="member"] .bw-header #bw-user-menu{left:calc(100% + 10px)!important;right:auto!important;top:auto!important;bottom:0!important}
  body[data-scope="member"] .bw-header .bw-burger{display:none!important}
}

html[data-design="future"] .member-panel{background:#091522;border-color:rgba(119,205,239,.14);box-shadow:0 18px 44px rgba(0,0,0,.10)}
html[data-design="future"] .member-foot-note{background:rgba(5,185,242,.035);border-color:rgba(119,205,239,.13)}

@media(max-width:980px){
  body[data-scope="member"]{padding-left:0!important;padding-top:0!important}
  .member-workspace{width:min(100% - 32px,900px);padding-top:38px}
  .member-grid-2{grid-template-columns:1fr}
  .member-page-head{grid-template-columns:1fr;align-items:start}
  .member-page-actions{justify-content:flex-start}
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav,
  body[data-scope="member"] .bw-header .bw-header__inner>.bw-actions{display:none!important}
  body[data-scope="member"] .bw-header .bw-segment{display:none!important}
  body[data-scope="member"] .bw-header .bw-burger{display:inline-flex!important;margin-left:auto!important}
}

@media(max-width:680px){
  .member-metric--positive{padding-right:88px!important}
  .member-workspace{width:calc(100% - 24px);padding:30px 0 54px}
  .member-page-head h1{font-size:clamp(2.25rem,11vw,3.2rem)}
  .member-metric-rail{grid-template-columns:1fr}
  .member-metric{padding:17px 0!important}
  .member-metric+.member-metric{border-left:0;border-top:1px solid var(--bw-border,#dfe7ed)}
  .member-operational-grid{grid-template-columns:1fr}
  .member-operation{padding:15px 0!important}
  .member-operation+.member-operation{border-left:0;border-top:1px solid var(--bw-border,#dfe7ed)}
  .member-panel{padding:20px;border-radius:18px}
}

@media(prefers-reduced-motion:reduce){
  .member-progress-fill,.glow-button{transition:none!important}
}

/* Orders page: production presentation around the existing auftraege.js contracts. */
.member-orders-page .member-page-head{margin-bottom:28px}
.member-order-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 30px;border-top:1px solid var(--bw-border,#dfe7ed);border-bottom:1px solid var(--bw-border,#dfe7ed)}
.member-order-guide__item{display:grid;grid-template-columns:38px minmax(0,1fr);gap:13px;padding:19px 22px 19px 0;align-items:start}
.member-order-guide__item+.member-order-guide__item{padding-left:22px;border-left:1px solid var(--bw-border,#dfe7ed)}
.member-order-guide__item>span{font-family:var(--bw-display,"Oswald",sans-serif);font-size:1.3rem;line-height:1;color:var(--bw-readable-accent,rgba(5,185,242,.42))}
.member-order-guide__item strong{display:block;color:var(--bw-ink,#102238);font-size:.86rem;margin-bottom:4px}
.member-order-guide__item small{display:block;color:var(--bw-muted,#617083);font-size:.75rem;line-height:1.45}

.member-orders-panel{padding:0;overflow:hidden}
.member-orders-panel>.member-panel-head{margin:0;padding:24px 25px 20px}
.member-orders-table-wrap{overflow-x:auto;border-top:1px solid var(--bw-border,#dfe7ed)}
.member-orders-table{width:100%!important;min-width:760px;margin:0!important;border:0!important;border-radius:0!important;border-spacing:0!important;box-shadow:none!important;background:transparent!important}
.member-orders-table th,.member-orders-table td{padding:16px 18px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--bw-border,#dfe7ed)!important;color:var(--bw-ink,#102238)!important;text-align:left!important;vertical-align:middle!important}
.member-orders-table th{font-size:.69rem!important;text-transform:uppercase;letter-spacing:.08em;color:var(--bw-muted,#617083)!important;font-weight:850!important;white-space:nowrap}
.member-orders-table td{font-size:.84rem!important}
.member-orders-table tbody tr{cursor:pointer;transition:background .16s ease,transform .16s ease}
.member-orders-table tbody tr:hover{background:rgba(5,185,242,.045)!important}
.member-orders-table tbody tr:last-child td{border-bottom:0!important}
.member-orders-table td.status-offen,.member-orders-table td.status-inprogress,.member-orders-table td.status-abgeschlossen,.member-orders-table td.status-abgelehnt{font-weight:820!important;white-space:nowrap}
.member-orders-table td.status-offen::before,.member-orders-table td.status-inprogress::before,.member-orders-table td.status-abgeschlossen::before,.member-orders-table td.status-abgelehnt::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px;background:currentColor;vertical-align:1px}
.member-orders-table td.status-offen{color:var(--bw-readable-accent,#0c8db7)!important}
.member-orders-table td.status-inprogress{color:var(--bw-readable-warning,#b27b00)!important}
.member-orders-table td.status-abgeschlossen{color:var(--bw-readable-positive,#7e9700)!important}
.member-orders-table td.status-abgelehnt{color:#b94e4e!important}
html[data-design="future"] .member-orders-table td.status-offen{color:#55d3f8!important}
html[data-design="future"] .member-orders-table td.status-inprogress{color:#e0ad47!important}
html[data-design="future"] .member-orders-table td.status-abgeschlossen{color:#c2dd48!important}
html[data-design="future"] .member-orders-table td.status-abgelehnt{color:#ef8d8d!important}

.member-orders-empty{margin:0!important;padding:42px 25px!important;border:0!important;border-top:1px solid var(--bw-border,#dfe7ed)!important;border-radius:0!important;background:rgba(5,185,242,.025)!important;text-align:left!important}
.member-orders-empty__eyebrow{display:block;margin-bottom:8px;color:var(--bw-readable-accent,var(--bw-blue,#05B9F2));font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.09em}
.member-orders-empty>strong{display:block;font-family:var(--bw-display,"Oswald",sans-serif);font-size:1.6rem;color:var(--bw-ink,#102238);margin-bottom:7px}
.member-orders-empty p{max-width:56ch;margin:0 0 18px;color:var(--bw-muted,#617083);font-size:.84rem;line-height:1.55}

.member-order-modal{place-items:stretch end!important;padding:0!important;background:rgba(2,8,13,.58)!important;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.member-order-modal[hidden]{display:none!important}
.member-order-drawer{position:relative!important;width:min(760px,100%)!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:34px 34px 40px!important;border:0!important;border-left:1px solid var(--bw-border,#dfe7ed)!important;border-radius:26px 0 0 26px!important;background:var(--bw-surface,#fff)!important;color:var(--bw-ink,#102238)!important;box-shadow:-24px 0 70px rgba(2,8,13,.20)!important;overflow-y:auto!important}
html[data-design="future"] .member-order-drawer{background:#07131f!important;border-left-color:rgba(119,205,239,.16)!important;box-shadow:-28px 0 80px rgba(0,0,0,.36)!important}
.member-order-drawer .bw-modal-close{position:absolute!important;top:20px!important;right:20px!important;width:40px!important;height:40px!important;display:grid!important;place-items:center!important;padding:0!important;border-radius:50%!important;border:1px solid var(--bw-border,#dfe7ed)!important;background:rgba(97,112,131,.045)!important;color:var(--bw-ink,#102238)!important;font-size:1.35rem!important;line-height:1!important;cursor:pointer!important}
.member-order-drawer__head{padding:2px 58px 22px 0;border-bottom:1px solid var(--bw-border,#dfe7ed);margin-bottom:22px}
.member-order-drawer__head .member-eyebrow{margin-bottom:6px}
.member-order-drawer .bw-modal-title{margin:0!important;font-family:var(--bw-display,"Oswald",sans-serif)!important;font-size:clamp(2rem,4vw,3.2rem)!important;line-height:1!important;letter-spacing:-.035em!important;color:var(--bw-ink,#102238)!important}
.member-order-drawer__head p{margin:10px 0 0;color:var(--bw-muted,#617083);font-size:.84rem;line-height:1.5}
.member-order-meta{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:0 0 18px!important}
.member-order-meta>div{min-width:0;padding:13px 14px!important;border:1px solid var(--bw-border,#dfe7ed)!important;border-radius:14px!important;background:rgba(16,34,56,.025)!important}
html[data-design="future"] .member-order-meta>div{background:rgba(255,255,255,.018)!important;border-color:rgba(119,205,239,.13)!important}
.member-order-meta .k{display:block!important;color:var(--bw-muted,#617083)!important;font-size:.67rem!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.07em!important}
.member-order-meta .v{display:block!important;margin-top:4px!important;color:var(--bw-ink,#102238)!important;font-size:.86rem!important;font-weight:820!important;overflow-wrap:anywhere}
.member-order-hint{margin:0 0 14px!important;padding:13px 15px!important;border:1px solid rgba(5,185,242,.12)!important;border-radius:14px!important;background:rgba(5,185,242,.045)!important;color:var(--bw-muted,#617083)!important;font-size:.8rem!important;line-height:1.5!important}
.member-order-tabs{display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:0 0 19px!important;border-bottom:1px solid var(--bw-border,#dfe7ed)!important}
.member-order-drawer .pill{min-height:40px!important;padding:0 14px!important;border-radius:999px!important;border:1px solid var(--bw-border,#dfe7ed)!important;background:transparent!important;color:var(--bw-ink,#102238)!important;font:inherit!important;font-size:.78rem!important;font-weight:820!important;cursor:pointer!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important}
.member-order-drawer .pill:not(.primary):not(.danger):not(.is-active):hover:not(:disabled){border-color:rgba(5,185,242,.28)!important;background:rgba(5,185,242,.045)!important}
.member-order-drawer .pill.primary{background:var(--bw-blue,#05B9F2)!important;border-color:var(--bw-blue,#05B9F2)!important;color:#062131!important}
.member-order-drawer .pill.danger{background:#b84141!important;border-color:#b84141!important;color:#fff!important}
.member-order-drawer .pill.ghost{background:transparent!important}
.member-order-drawer .pill:disabled{opacity:.48!important;cursor:not-allowed!important}
.member-order-views{margin-top:0!important}
.member-order-drawer .ord-view{padding:22px 0 0!important;border:0!important}
.member-order-drawer .ord-view h3{margin:0 0 9px!important;font-family:var(--bw-display,"Oswald",sans-serif)!important;font-size:1.55rem!important;color:var(--bw-ink,#102238)!important}
.member-order-drawer .muted{color:var(--bw-muted,#617083)!important;font-size:.82rem!important;line-height:1.5!important}
.member-order-drawer label.muted{display:block;margin-top:15px;font-weight:760!important}
.member-order-drawer textarea{width:100%!important;box-sizing:border-box!important;margin:8px 0 14px!important;padding:13px 14px!important;border:1px solid var(--bw-border,#dfe7ed)!important;border-radius:14px!important;background:var(--bw-bg,#f5f8fa)!important;color:var(--bw-ink,#102238)!important;font:inherit!important;resize:vertical!important;outline:none!important}
html[data-design="future"] .member-order-drawer textarea{background:rgba(255,255,255,.025)!important;border-color:rgba(119,205,239,.15)!important}
.member-order-drawer textarea:focus{border-color:rgba(5,185,242,.45)!important;box-shadow:0 0 0 3px rgba(5,185,242,.07)!important}
.member-order-drawer .view-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:16px!important}
.member-order-drawer .offer-box,.member-order-drawer .docs-box{margin-top:12px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
.member-order-drawer .offer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.member-order-drawer .offer-card{padding:16px!important;border:1px solid var(--bw-border,#dfe7ed)!important;border-radius:16px!important;background:rgba(16,34,56,.02)!important}
html[data-design="future"] .member-order-drawer .offer-card{background:rgba(255,255,255,.018)!important;border-color:rgba(119,205,239,.13)!important}
.member-order-drawer .offer-card h4{margin:0 0 12px!important;font-family:var(--bw-display,"Oswald",sans-serif)!important;font-size:1.15rem!important;color:var(--bw-ink,#102238)!important}
.member-order-drawer .offer-row{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;padding:8px 0!important;border-top:1px solid var(--bw-border,#dfe7ed)!important;color:var(--bw-muted,#617083)!important;font-size:.78rem!important}
.member-order-drawer .offer-row span:last-child{text-align:right!important;color:var(--bw-ink,#102238)!important;font-weight:780!important}
.member-order-drawer .offer-savings span:last-child{color:var(--bw-readable-positive,#7e9700)!important}
.member-order-drawer .offer-decision{margin:13px 0 0!important;padding:12px 14px!important;border-radius:13px!important;background:rgba(185,219,27,.08)!important;color:var(--bw-readable-positive,#789000)!important}

@media(max-width:760px){
  .member-order-guide{grid-template-columns:1fr}
  .member-order-guide__item{padding:16px 0!important}
  .member-order-guide__item+.member-order-guide__item{border-left:0;border-top:1px solid var(--bw-border,#dfe7ed)}
  .member-orders-panel>.member-panel-head{padding:21px 20px 17px}
  .member-orders-empty{padding:34px 20px!important}
  .member-order-drawer{width:100%!important;border-left:0!important;border-radius:0!important;padding:26px 20px 34px!important}
  .member-order-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .member-order-drawer .offer-grid{grid-template-columns:1fr!important}
}
@media(max-width:520px){
  .member-order-meta{grid-template-columns:1fr!important}
  .member-order-tabs .pill,.member-order-drawer .view-actions .pill{width:100%!important}
  .member-order-drawer__head{padding-right:48px}
}
@media(prefers-reduced-motion:reduce){
  .member-orders-table tbody tr{transition:none!important}
}

/* Classic/light member contrast polish. The desktop rail intentionally stays dark. */
.member-metric{position:relative;grid-template-rows:auto auto auto;align-content:start}
.member-inline-chip{position:absolute;top:20px;right:24px;margin:0;z-index:2}
.member-metric--positive{padding-right:88px}

html[data-design="classic"] .member-metric-rail{
  background:rgba(255,255,255,.58);
  border-top-color:#cbd8e1;
  border-bottom-color:#cbd8e1;
  box-shadow:0 10px 30px rgba(16,34,56,.035);
}
html[data-design="classic"] .member-metric+.member-metric{border-left-color:#cbd8e1}
html[data-design="classic"] .member-metric--positive .member-metric__value{color:#102238}
html[data-design="classic"] .member-inline-chip{background:rgba(185,219,27,.16);color:#637700}

@media(min-width:981px){
  html[data-design="classic"] body[data-scope="member"] .bw-header .bw-header__inner>.bw-nav .bw-link.bw-active{
    color:#f3fbff!important;-webkit-text-fill-color:#f3fbff!important;
  }
  html[data-design="classic"] body[data-scope="member"] .bw-header .bw-user #bw-user-trigger{
    color:#eaf6fb!important;-webkit-text-fill-color:#eaf6fb!important;border-color:rgba(203,219,230,.24)!important;
  }
}


/* Classic/light: public-pages flyout leaves the dark member rail, so it needs its own light-surface ink. */
@media(min-width:981px){
  html[data-design="classic"] body[data-scope="member"] .bw-header .bw-segment__menu{background:#fff!important;color:#172033!important;-webkit-text-fill-color:#172033!important;border-color:#dfe7ed!important;box-shadow:0 18px 48px rgba(16,34,56,.14)!important}
  html[data-design="classic"] body[data-scope="member"] .bw-header .bw-segment__menu .bw-segment__item{color:#172033!important;-webkit-text-fill-color:#172033!important;opacity:1!important;text-shadow:none!important}
  html[data-design="classic"] body[data-scope="member"] .bw-header .bw-segment__menu .bw-segment__item:hover,
  html[data-design="classic"] body[data-scope="member"] .bw-header .bw-segment__menu .bw-segment__item.bw-active{color:#102238!important;-webkit-text-fill-color:#102238!important;background:rgba(5,185,242,.08)!important}
}
