.character-profile-editor_backdrop__m3ap4{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.72);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);overflow-y:auto}.character-profile-editor_editor__14mrd{width:min(960px,100%);box-sizing:border-box;max-height:calc(100vh - 48px);overflow:hidden;display:flex;flex-direction:column;border:1px solid rgba(198,167,85,.35);border-radius:8px;background:rgba(13,15,18,.98);box-shadow:0 24px 64px rgba(0,0,0,.45);color:#f7efe3}.character-profile-editor_header__8JSh1{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 16px;border-bottom:1px solid rgba(198,167,85,.16)}.character-profile-editor_title__N8kls{margin:0;font-family:var(--font-marcellus),"Marcellus",serif;font-size:24px;font-weight:400;letter-spacing:0;color:#ffe9a8}.character-profile-editor_meta__sbp6C{margin:6px 0 0;position:relative;display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;color:#b9aa91;font-size:13px}.character-profile-editor_closeButton__8OWnE{width:36px;height:36px;border:1px solid rgba(198,167,85,.24);border-radius:8px;background:rgba(255,255,255,.04);color:#f4d37b;font-size:24px;line-height:1;cursor:pointer}.character-profile-editor_closeButton__8OWnE:disabled{opacity:.55;cursor:not-allowed}.character-profile-editor_portraitSection__yifH_{display:grid;grid-template-columns:128px minmax(0,1fr);grid-gap:16px;gap:16px;padding:18px 24px;border-bottom:1px solid rgba(198,167,85,.16)}.character-profile-editor_portraitPreview__jXbkO{width:128px;aspect-ratio:1;overflow:hidden;border:1px solid rgba(198,167,85,.28);border-radius:8px;background:rgba(255,255,255,.04)}.character-profile-editor_portraitPreview__jXbkO[data-frame=bronze]{border:3px solid #b87842}.character-profile-editor_portraitPreview__jXbkO[data-frame=silver]{border:3px solid #c9d0d7}.character-profile-editor_portraitPreview__jXbkO[data-frame=gold]{border:3px solid #d8b74f}.character-profile-editor_portraitPreview__jXbkO[data-frame=platinum]{border:3px solid #7fd0d4}.character-profile-editor_portraitPreview__jXbkO[data-frame=mythic]{border:3px solid #d8b74f;box-shadow:0 0 0 2px #7fd0d4,0 0 18px rgba(216,183,79,.35)}.character-profile-editor_portraitImage__1EVt8{width:100%;height:100%;display:block;object-fit:cover}.character-profile-editor_portraitControls__o2EMk{min-width:0;display:flex;flex-direction:column;gap:10px}.character-profile-editor_portraitPromptLabel__Y1_jU{display:flex;flex-direction:column;gap:7px;color:#d7c8ad;font-size:13px;font-weight:600}.character-profile-editor_portraitPromptLabel__Y1_jU input{width:100%;box-sizing:border-box;border:1px solid rgba(198,167,85,.22);border-radius:6px;background:rgba(255,255,255,.06);color:#fff8ec;font:inherit;font-weight:400;line-height:1.45;padding:10px 12px;outline:none}.character-profile-editor_portraitPromptLabel__Y1_jU input:focus{border-color:rgba(244,211,123,.72);box-shadow:0 0 0 2px rgba(244,211,123,.12)}.character-profile-editor_portraitActions__VfBsN{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.character-profile-editor_rewardCredit__TBuz8{color:#f0cf72;font-size:12px;font-weight:700}.character-profile-editor_frameSelector__5v5pm{display:flex;align-items:center;gap:10px;color:#d7c8ad;font-size:13px;font-weight:600}.character-profile-editor_frameSelector__5v5pm select{min-height:36px;border:1px solid rgba(198,167,85,.22);border-radius:6px;background:#16171b;color:#fff8ec;padding:6px 9px}.character-profile-editor_portraitHistoryArea__R93xK{display:flex;min-width:0;flex-direction:column;gap:8px}.character-profile-editor_portraitHistoryHeader__P8hfj{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#d7c8ad;font-size:12px;font-weight:700}.character-profile-editor_portraitHistoryHeader__P8hfj span:last-child{color:#b9aa91;font-weight:500}.character-profile-editor_portraitHistoryStrip__cmGiW{display:flex;flex-wrap:nowrap;gap:8px;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:1px 0 4px}.character-profile-editor_portraitOption__mt00G{position:relative;flex:0 0 64px;width:64px;height:64px;box-sizing:border-box;overflow:hidden;border:2px solid rgba(198,167,85,.24);border-radius:6px;padding:0;background:rgba(255,255,255,.05);cursor:pointer}.character-profile-editor_portraitOption__mt00G[data-selected=true]{border-color:rgba(244,211,123,.96);box-shadow:0 0 0 2px rgba(244,211,123,.22)}.character-profile-editor_portraitOption__mt00G:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(244,211,123,.34)}.character-profile-editor_portraitOptionImage__rUuy2{width:100%;height:100%;display:block;object-fit:cover}.character-profile-editor_currentBadge__pRR8N{position:absolute;left:3px;right:3px;bottom:3px;padding:2px 3px;border-radius:4px;background:rgba(14,15,18,.86);color:#ffe9a8;font-size:9px;font-weight:800;line-height:1;text-transform:uppercase}.character-profile-editor_portraitHistoryEmpty__oOOMG{color:#b9aa91;font-size:12px}.character-profile-editor_hiddenFileInput__66yw9{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;-webkit-clip-path:inset(50%);clip-path:inset(50%)}.character-profile-editor_grid__y8YzM{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px;padding:20px 24px;overflow-y:auto}.character-profile-editor_field__lHiw4{position:relative;min-width:0;display:flex;flex-direction:column;gap:8px;font-size:13px;color:#d7c8ad}.character-profile-editor_labelRow__jIlR3{position:relative;display:inline-flex;align-items:center;align-self:flex-start;min-width:0;overflow:visible}.character-profile-editor_fieldLabel__hoSg4,.character-profile-editor_metaTrigger__DK5bt{font-weight:600;cursor:help;outline:none}.character-profile-editor_fieldLabel__hoSg4:focus-visible,.character-profile-editor_metaTrigger__DK5bt:focus-visible{border-radius:3px;box-shadow:0 0 0 2px rgba(244,211,123,.42)}.character-profile-editor_metaTrigger__DK5bt{font-weight:400}.character-profile-editor_helpText__RTmLW{position:absolute;top:calc(100% + 8px);left:0;z-index:30;width:min(320px,calc(100vw - 64px));box-sizing:border-box;padding:8px 10px;border:1px solid rgba(244,211,123,.28);border-radius:6px;background:rgba(20,18,14,.98);box-shadow:0 12px 28px rgba(0,0,0,.32);color:#f8ead1;font-size:12px;line-height:1.35;font-weight:400;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-2px);transition:opacity .12s ease,transform .12s ease,visibility .12s ease}.character-profile-editor_helpText__RTmLW:before{content:"";position:absolute;top:-5px;left:14px;width:8px;height:8px;border-left:1px solid rgba(244,211,123,.28);border-top:1px solid rgba(244,211,123,.28);background:rgba(20,18,14,.98);transform:rotate(45deg)}.character-profile-editor_helpText__RTmLW[data-visible=true]{opacity:1;visibility:visible;transform:translateY(0)}.character-profile-editor_meta__sbp6C .character-profile-editor_helpText__RTmLW{top:calc(100% + 8px)}.character-profile-editor_field__lHiw4 input,.character-profile-editor_field__lHiw4 select,.character-profile-editor_field__lHiw4 textarea{width:100%;box-sizing:border-box;border:1px solid rgba(198,167,85,.22);border-radius:6px;background:rgba(255,255,255,.06);color:#fff8ec;font:inherit;line-height:1.45;padding:10px 12px;outline:none;resize:vertical}.character-profile-editor_field__lHiw4 input:focus,.character-profile-editor_field__lHiw4 select:focus,.character-profile-editor_field__lHiw4 textarea:focus{border-color:rgba(244,211,123,.72);box-shadow:0 0 0 2px rgba(244,211,123,.12)}.character-profile-editor_fullWidth__HLr5x{grid-column:1/-1}.character-profile-editor_footer__dQKLM{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:16px 24px 20px;border-top:1px solid rgba(198,167,85,.16)}.character-profile-editor_error__enjkz{margin-right:auto;color:#ffb6a3;font-size:13px}.character-profile-editor_saveHint__dwIWM{margin-right:auto;color:#b9aa91;font-size:12px;line-height:1.35}.character-profile-editor_error__enjkz+.character-profile-editor_saveHint__dwIWM{margin-right:0}.character-profile-editor_actions__ai14w{display:flex;justify-content:flex-end;gap:10px}.character-profile-editor_primaryButton__re9Pq,.character-profile-editor_secondaryButton__OUlPG{min-width:104px;height:40px;border-radius:6px;padding:0 16px;font-weight:700;letter-spacing:0;cursor:pointer}.character-profile-editor_primaryButton__re9Pq{border:1px solid rgba(244,211,123,.65);background:linear-gradient(180deg,#d7a645,#8f5f18);color:#1a1208}.character-profile-editor_secondaryButton__OUlPG{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#f4e9d8}.character-profile-editor_primaryButton__re9Pq:disabled,.character-profile-editor_secondaryButton__OUlPG:disabled{opacity:.58;cursor:not-allowed}@media (max-width:720px){.character-profile-editor_backdrop__m3ap4{padding:12px;align-items:flex-start}.character-profile-editor_editor__14mrd{max-height:calc(100vh - 24px)}.character-profile-editor_footer__dQKLM,.character-profile-editor_grid__y8YzM,.character-profile-editor_header__8JSh1,.character-profile-editor_portraitSection__yifH_{padding-left:16px;padding-right:16px}.character-profile-editor_portraitSection__yifH_{grid-template-columns:96px minmax(0,1fr)}.character-profile-editor_portraitPreview__jXbkO{width:96px}.character-profile-editor_grid__y8YzM{grid-template-columns:1fr}.character-profile-editor_footer__dQKLM{align-items:stretch;flex-direction:column}.character-profile-editor_actions__ai14w{width:100%}.character-profile-editor_primaryButton__re9Pq,.character-profile-editor_secondaryButton__OUlPG{flex:1 1}.character-profile-editor_error__enjkz,.character-profile-editor_saveHint__dwIWM{margin-right:0}}.story-history-download-dialog_backdrop___M8mU{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:max(20px,var(--rb-safe-top)) max(20px,var(--rb-safe-right)) max(20px,var(--rb-safe-bottom)) max(20px,var(--rb-safe-left));background:rgba(0,0,0,.7);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.story-history-download-dialog_dialog__84z0Z{position:relative;width:min(520px,calc(100vw - 40px));max-height:calc(100vh - 40px - var(--rb-safe-top) - var(--rb-safe-bottom));max-height:calc(100dvh - 40px - var(--rb-safe-top) - var(--rb-safe-bottom));overflow-y:auto;border-top:1px solid transparent;border-bottom:1px solid transparent;border-image:linear-gradient(90deg,rgba(131,146,186,0),#3B4254 49.5%,rgba(131,146,186,0));border-image-slice:1;border-radius:8px;background:linear-gradient(90deg,rgba(73,46,37,.92),rgba(52,35,33,.94) 25%,rgba(20,19,27,.96) 50%,rgba(23,25,37,.94) 75%,rgba(25,31,47,.92));box-shadow:0 18px 60px rgba(0,0,0,.45);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.story-history-download-dialog_closeButton__HjlSR{position:absolute;top:10px;right:12px;width:36px;height:36px;border:1px solid rgba(226,203,166,.28);border-radius:999px;background:rgba(0,0,0,.42);color:#f8efd6;cursor:pointer;font-family:Marcellus,serif;font-size:20px;line-height:1}.story-history-download-dialog_closeButton__HjlSR:disabled{cursor:not-allowed;opacity:.55}.story-history-download-dialog_content__T9IQt{display:flex;flex-direction:column;gap:20px;padding:44px 28px 30px}.story-history-download-dialog_title__9_hbS{margin:0;color:hsl(50,100%,84%);font-family:Marcellus,serif;font-size:28px;font-weight:400;line-height:1.2;text-align:center}.story-history-download-dialog_options__Lzol9{display:flex;flex-direction:column;gap:12px}.story-history-download-dialog_optionRow__Df3kN{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(255,255,255,.05);color:#ffffff;font-family:Marcellus,serif;font-size:16px}.story-history-download-dialog_optionRow__Df3kN input{width:18px;height:18px;accent-color:#c6a755}.story-history-download-dialog_lockedRow__nMuHd{color:rgba(255,255,255,.78)}.story-history-download-dialog_errorText__L5jww{margin:0;color:#ffb4b4;font-family:Roboto,sans-serif;font-size:13px;line-height:1.5;text-align:center}.story-history-download-dialog_actions__0TDjQ{display:grid;grid-template-columns:1fr;grid-gap:12px;gap:12px;min-width:0}.story-history-download-dialog_dialogActionButton__G67Sx.story-history-download-dialog_dialogActionButton__G67Sx{width:100%;max-width:100%;min-width:0}@media (max-width:520px){.story-history-download-dialog_content__T9IQt{padding:42px 18px 24px}.story-history-download-dialog_title__9_hbS{font-size:24px}}