/* Original CARL appearance retained. Gift UI uses the same gold/black palette. */
.carl-gift-active #carlOpenArchive,.carl-gift-active #b2Launch,.carl-gift-active #v6systemLaunch,.carl-gift-active #b55Generate,.carl-gift-active #b2Hacker{display:none!important}
.gift-help-line{display:none}.carl-gift-active .gift-help-line{display:flex}
#giftProvisionBeta{margin-top:12px;min-height:42px;border:1px solid #d4bc63;background:#383017;color:#fce9a5;border-radius:10px;padding:8px 12px;font-weight:650}
#carlGiftManual{color:#f9edb2;background:#10100d;border:1px solid #bda451;box-shadow:0 30px 110px #000c,0 0 38px #e7c34819;border-radius:20px;width:min(92vw,610px);max-width:610px;max-height:calc(100dvh - 38px);padding:0;overflow-y:auto;overscroll-behavior:contain}
#carlGiftManual::backdrop{background:#000c;backdrop-filter:blur(3px)}
.gift-manual-shell{padding:clamp(16px,4vw,32px);display:flex;flex-direction:column;gap:15px;font-family:system-ui,-apple-system,Arial,sans-serif;line-height:1.52}
.gift-top{display:flex;justify-content:space-between;align-items:center;color:#e7ce68;letter-spacing:.1em;font-size:12px}
.gift-manual-shell h2{margin:0;color:#fff0a7;font-size:clamp(21px,5vw,27px);line-height:1.24}
.gift-manual-shell p{margin:0}
.gift-muted{font-size:12px;color:#c6b885;line-height:1.6}
.gift-progress{height:5px;background:#36301b;border-radius:20px;overflow:hidden}.gift-progress-fill{height:100%;background:#ebd26a;transition:width .2s}
.gift-count{font-size:12px;color:#cbb87c;letter-spacing:.06em}
.gift-chapter{background:#1e2019;border:1px solid #72653766;border-radius:14px;padding:clamp(17px,4vw,24px);min-height:190px;display:flex;flex-direction:column;gap:16px}
.gift-chapter h3{font-size:18px;line-height:1.3;margin:0;color:#fceba5}.gift-chapter p{font-size:14px;line-height:1.75;color:#ece4c7}
.gift-nav{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
.gift-primary,.gift-secondary{min-height:40px;border-radius:10px;padding:9px 14px;border:1px solid #d0b450;font-size:13px;cursor:pointer}
.gift-primary{background:#baa044;color:#191404;font-weight:760}.gift-secondary{background:#302b1b;color:#f3dea3}
.gift-manual-shell .gift-language,.gift-manual-shell .gift-jump{width:100%;border:1px solid #8f8048;background:#282416;border-radius:9px;min-height:42px;color:#faf0bc;padding:8px 10px;font-size:16px}
.gift-pwform{display:flex;flex-direction:column;gap:12px}.gift-pwform label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#d9c98e}.gift-pwform input,.gift-pwform .gift-gender{font-size:16px;min-height:46px;padding:9px 11px;border:1px solid #98834c;border-radius:8px;background:#211e12;color:#fff2c7;width:100%;box-sizing:border-box}
.gift-status{font-size:12px;color:#ffd0ae;min-height:14px;white-space:pre-wrap}
@media(max-width:480px){#carlGiftManual{max-height:calc(100dvh - 18px);width:calc(100vw - 18px)}.gift-nav button{flex:1}.gift-chapter{min-height:160px}}

/* Gift activation: visible, stand-alone, accessible on iPhone */
#b2BetaActivation{border:1px solid #d4bb62;border-radius:14px;padding:16px;margin:16px 0 20px;background:rgba(236,202,94,.08);color:#f5e6b2;box-sizing:border-box;max-width:100%;overflow-wrap:anywhere}
#b2BetaActivation h3{margin:0 0 12px;font-size:1.08rem;line-height:1.4}
#b2BetaActivation p{line-height:1.5;margin:9px 0}
#b2BetaActivation label{display:block;line-height:1.4;margin:12px 0}
#b2BetaActivation input{width:100%;max-width:100%;box-sizing:border-box;min-height:44px;font-size:16px;margin-top:6px}
#b2BetaActivation .b2-beta-buttons{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}
#b2BetaActivation button{flex:1 1 150px;min-height:45px;white-space:normal;line-height:1.35}
#b2BetaActivate{background:#ad9238;color:#10100c;font-weight:800;border-radius:10px}
#b2BetaActivate:disabled{opacity:.5}
#b2BetaStatus{font-weight:650;border-left:3px solid #d4bb62;padding-left:10px}
#b2BetaStatus.b2-beta-error{color:#ff9c8d;border-left-color:#ff9c8d}

/* V6.0.1 hotfix: restore hidden Gift panel. Respect [hidden] for other sections. */
#b2Desk [data-pane="gift"]:not([hidden]) {display:block!important;visibility:visible!important;}
#b2Nav button[data-view="gift"]:not([hidden]) {display:inline-flex!important;visibility:visible!important;}

/* AccountBeta: Emergency access; shared CARL_GUARDIAN engine, not a mock. */
.gift-sos-entry{display:none;align-items:center;justify-content:center;border:1px solid #df5263;border-radius:12px;background:#3b101c;color:#ffe5e7;font:750 12px system-ui;min-height:42px;padding:9px 13px;cursor:pointer}
.carl-gift-active .gift-sos-entry{display:inline-flex;align-self:flex-end;margin:8px 0 0;max-width:100%}
.gift-sos-dialog{border:1px solid #f07d8f;border-radius:18px;background:#170b11;color:#fff0ec;width:min(540px,calc(100vw - 24px));max-height:85dvh;padding:0;overflow:auto;box-shadow:0 12px 60px #000e}
.gift-sos-dialog::backdrop{background:rgba(0,0,0,.82)}
.gift-sos-shell{padding:22px;display:flex;flex-direction:column;gap:14px;line-height:1.5}
.gift-sos-shell h2{margin:0;color:#ffb0bf;font-size:21px}
.gift-sos-shell p{margin:0;font-size:13px}
.gift-sos-shell button,.gift-sos-shell a{border:1px solid #ef697e;background:#391222;border-radius:10px;min-height:48px;padding:11px;color:#ffedf0;text-align:center;text-decoration:none;font-weight:650;cursor:pointer}
.gift-sos-shell button[data-sos="test"]{border-color:#b4a33d;background:#3a3020;color:#ffeaac}
.gift-sos-shell button[data-sos="real"]{background:#721b2b;color:white}
.gift-sos-note{color:#ffd1d1}
@media(max-width:540px){.gift-sos-entry{font-size:11px;padding:8px 9px;min-height:40px}.gift-sos-shell{padding:16px}}
