:root{font-family:Inter,Vazirmatn,Tahoma,system-ui,sans-serif;color:#243657;background:#f3f7ff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px}.sky{position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 10% 10%,#eee1ff 0,transparent 35%),radial-gradient(ellipse at 85% 45%,#d0f1ff 0,transparent 36%),#f3f7ff}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6b4cde;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.52}main{max-width:1500px;margin:0 auto;padding:18px 26px 45px}.mast{max-width:1510px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 28px}.brand{display:flex;align-items:center;gap:12px;direction:ltr}.brand-icon{background:linear-gradient(145deg,#6661e6,#ff6598);width:45px;height:45px;display:grid;place-items:center;color:white;font-size:30px;font-weight:1000;border-radius:16px}.brand b{font-weight:950;font-size:20px;letter-spacing:-.06em}.brand em{font-style:normal;color:#f16899}.brand small{font-size:10px;color:#7280a0;display:block;letter-spacing:0}.mast-note{font-size:11px;border:1px solid #dce5f6;padding:10px 14px;border-radius:20px;color:#52668f}.text-btn{border:0;background:transparent;color:#543faf;font-weight:850}.login-shell{min-height:70vh;display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;max-width:1080px;margin:26px auto}.login-art{padding:30px;text-align:center;background:linear-gradient(140deg,#d1eaff,#ece0ff,#f7e6eb);border-radius:35px;min-height:470px;display:flex;flex-direction:column;justify-content:center;align-items:center}.login-art .sun{font-size:60px}.robot{font-size:120px;filter:drop-shadow(0 15px 12px #9889c38b)}.login-art h1{font-size:31px;margin:15px 0}.login-art p{font-size:14px;color:#5a6891;line-height:1.9;max-width:330px}.login-card{border:1px solid #e0e5f4;background:#fff;padding:45px;border-radius:29px;box-shadow:0 22px 60px #536ab41d}.eyebrow{letter-spacing:.15em;color:#8b74db;font-size:12px;font-weight:900}.login-card h2{font-size:29px;margin:12px 0}.login-card p,.login-card small{color:#6b7895;font-size:13px;line-height:1.8}.login-card label{display:block;margin:18px 0;font-weight:750;font-size:13px}.login-card input{display:block;width:100%;border:1px solid #d5dbea;background:#f9faff;border-radius:13px;padding:14px;margin-top:8px;direction:ltr}.primary{width:100%;border:0;padding:15px;border-radius:15px;background:#6952ce;color:white;font-weight:900}.inline-error{color:#bf315f;font-size:13px;padding:8px 0;min-height:1.7em}.owner-panel{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:17px 23px;background:#fff;border:1px solid #e0e7f7;border-radius:20px;box-shadow:0 8px 23px #36519c0b;margin-bottom:18px}.owner-left{display:flex;gap:12px;align-items:center}.owner-left .spark{background:#edebff;color:#6757c9;padding:13px;border-radius:15px;font-size:22px}.owner-left strong{font-size:14px}.owner-left p{font-size:11px;color:#6c7995;margin:5px 0}.owner-controls{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:800}.owner-controls select{background:#f6f6ff;padding:11px 19px;border:1px solid #d5d8ec;border-radius:12px;color:#38446c}.app-frame{display:grid;grid-template-columns:210px minmax(0,1fr);overflow:hidden;background:#fff;border:1px solid #e3e9f8;border-radius:26px;min-height:750px;box-shadow:0 30px 65px #33468d12}.sidebar{border-left:1px solid #e5eaf5;padding:25px 14px;background:#fcfdff;display:flex;flex-direction:column;gap:16px}.side-logo{display:flex;gap:8px;align-items:center;font-size:14px;color:#3e5592}.side-logo span{font-size:27px}.sidebar nav{display:grid;gap:5px}.sidebar button{width:100%;border:0;text-align:right;padding:13px 16px;background:transparent;color:#52617e;border-radius:12px;font-size:13px;font-weight:800}.sidebar button.active,.sidebar button:hover{background:#eeedff;color:#5b50c1}.side-bottom{margin-top:auto;color:#8b92ae;font-size:11px;line-height:1.6}.main-area{padding:21px 30px 50px;min-width:0}.app-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:19px}.app-top h2{font-size:22px;margin:7px 0 0}.app-top-tools{display:flex;gap:7px}.soft-btn{border:1px solid #e3e8f5;background:#f9faff;color:#56649a;border-radius:13px;font-size:11px;padding:10px}.context-chip{font-size:10px;font-weight:850;color:#7654ad;background:#f3ecff;border-radius:15px;padding:5px 10px}.rainbow-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(170px,.65fr);background:linear-gradient(115deg,#7256db,#8068ec 44%,#fc84ae);color:white;border-radius:29px;padding:27px 36px;min-height:285px}.hero-words{position:relative;z-index:1}.hero-chip{font-size:11px;color:#fdf1ff}.rainbow-hero h1{font-size:clamp(27px,4vw,42px);line-height:1.3;margin:15px 0 9px}.rainbow-hero h1 em{font-style:normal;color:#d7ffec}.rainbow-hero p{font-size:12px;color:#f1e9ff;line-height:1.9;max-width:410px}.hero-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:19px}.white-btn,.glass-btn{padding:11px 18px;border:0;border-radius:13px;font-size:12px;font-weight:850}.white-btn{background:white;color:#604bc5}.glass-btn{background:#ffffff2a;border:1px solid #ffffff6e;color:white}.hero-domi{align-self:end;justify-self:center;position:relative;filter:drop-shadow(0 14px 20px #3c35718a);transform:rotate(-4deg)}.domi-head{background:#fff;border-radius:55% 55% 46% 46%;width:150px;height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:10px solid #dfd9ff;color:#5148c1;font-size:34px;font-weight:900}.domi-head i{font-size:30px;line-height:.2}.domi-body{background:#fff;border:11px solid #d9d4fa;margin:-8px auto 0;width:108px;height:100px;border-radius:42px;display:grid;place-items:center;font-weight:1000;color:#6254d2;font-size:52px}.hero-star{position:absolute;right:-33px;top:20px;font-size:40px;color:#fcf4ac}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:25px 0 15px}.section-head h3{font-size:19px;margin:0}.section-head p{font-size:11px;color:#8490a8;margin:6px 0}.content-filters{display:flex;gap:7px;flex-wrap:wrap}.content-filters button{border:1px solid #e3e8f5;background:#f4f6fd;border-radius:16px;padding:8px 13px;font-size:11px;color:#65718d}.content-filters button.active{background:#5944ca;color:white;border-color:#5944ca}.story-row{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px}.story-tile{min-width:115px;max-width:140px;border:0;border-radius:19px;padding:10px;min-height:130px;background:linear-gradient(145deg,#f2d5ef,#e2eaff);display:flex;flex-direction:column;justify-content:end;align-items:center;gap:8px;font-weight:800;color:#51407c;font-size:11px}.story-tile .story-icon{font-size:40px;background:#ffffffae;border:4px solid #fff;border-radius:50%;height:75px;width:75px;display:grid;place-items:center}.feed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.feed-card{border:1px solid #e7eaf5;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 8px 23px #39477b12;min-width:0}.feed-media{height:165px;background:linear-gradient(140deg,#daeaff,#f0d4f2);display:grid;place-items:center;position:relative;overflow:hidden}.feed-media.reel{background:linear-gradient(140deg,#ffccd9,#e2d0fb)}.feed-media.video{background:linear-gradient(140deg,#cadfff,#a8ecf0)}.feed-media img{position:absolute;width:100%;height:100%;object-fit:cover}.feed-media .feed-icon{font-size:67px;filter:drop-shadow(0 8px 14px #2b355636)}.feed-badge{position:absolute;right:13px;bottom:11px;background:#ffffffec;color:#4d5296;font-weight:850;padding:5px 11px;border-radius:13px;font-size:10px}.feed-info{padding:15px}.feed-info h4{font-size:14px;margin:5px 0 8px}.feed-info p{font-size:11px;color:#7c88a3;line-height:1.8;min-height:34px}.feed-info .meta{font-size:10px;color:#7f7fb7}.feed-actions{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:10px}.feed-actions button{border:1px solid #e0e6f4;border-radius:11px;padding:9px;background:#f7f8ff;color:#4c59ab;font-size:11px;font-weight:800}.feed-actions .open{background:#564dc6;color:white}.empty{grid-column:1/-1;background:#f9fafe;border:1px dashed #d8deed;border-radius:17px;padding:26px;color:#65728e;line-height:1.8;font-size:13px}.world-frame{border:1px solid #d8ddf3;border-radius:25px;background:linear-gradient(120deg,#ecf5ff,#efe7ff);padding:8px;overflow:hidden}.world-scene{position:relative;max-width:950px;margin:auto;aspect-ratio:1.64}.world-scene img{width:100%;height:100%;object-fit:contain;display:block}.world-scene button{position:absolute;transform:translate(-50%,-50%);border:3px solid #fff;background:#fffffff0;color:#485491;border-radius:18px;box-shadow:0 9px 20px #5164b33a;min-width:116px;padding:9px 10px;font-size:11px;font-weight:850}.world-scene button .pin-emoji{display:block;font-size:22px}.world-scene button[aria-pressed=true]{outline:4px solid #725ed4}.world-status{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:20px;padding:12px 16px;margin:3px;font-size:11px;color:#45527d}.district-detail{margin:16px 0 10px;background:#fff;border:1px solid #e0e9f7;border-radius:20px;padding:20px;font-size:13px;line-height:1.8}.district-detail h3{margin-top:0}.district-item{padding:9px;margin:7px 0;border-radius:12px;background:#f7f8fc;color:#485777;font-size:12px}.details-panel{background:#fff;border:1px solid #e4e9f6;border-radius:25px;padding:28px;min-height:500px}.details-panel h3{margin-top:0}.role-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:22px}.role-card{background:#f5f7ff;border-radius:18px;padding:20px;line-height:1.9;font-size:12px}.role-card b{display:block;font-size:16px}.owner-foot{display:flex;justify-content:space-between;gap:10px;padding:13px 7px;color:#7f8ba6;font-size:11px}.bottom-nav{display:none}.media-dialog{border:0;border-radius:20px;padding:18px;background:#131a35;color:white;width:min(870px,96vw);max-height:90dvh}.media-dialog::backdrop{background:#05091bbd}.media-dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.media-dialog button{background:#343e74;border:1px solid #6974b0;color:white;padding:9px 14px;border-radius:11px}.media-dialog video{background:#000;width:100%;height:min(65dvh,500px)}.media-dialog p{font-size:11px;color:#bec8e5}@media(max-width:950px){.sidebar{display:none}.app-frame{display:block}.main-area{padding:21px 20px 55px}.bottom-nav{position:sticky;bottom:0;display:flex;justify-content:space-between;background:#fffffffa;border-top:1px solid #e4e6f0;padding:9px 12px;z-index:20}.bottom-nav button{border:0;background:transparent;font-size:21px;color:#5c5bb6;display:flex;align-items:center;flex-direction:column}.bottom-nav button small{font-size:10px}.bottom-nav button.active{color:#c54c8a}}@media(max-width:640px){main{padding:6px 10px 24px}.mast{padding:13px}.mast-note{display:none}.login-shell{grid-template-columns:1fr;gap:12px;margin:9px auto}.login-art{min-height:210px;padding:17px}.robot{font-size:55px}.login-art h1{font-size:21px}.login-card{padding:25px}.owner-panel{padding:12px;align-items:stretch;flex-direction:column}.owner-left p{font-size:10px}.owner-controls{justify-content:space-between}.owner-controls select{flex:1}.app-frame{border-radius:18px}.main-area{padding:16px 11px 30px}.app-top h2{font-size:19px}.app-top-tools{gap:3px}.app-top-tools .soft-btn{font-size:10px;padding:7px}.rainbow-hero{border-radius:18px;padding:18px;grid-template-columns:1fr;min-height:205px}.rainbow-hero h1{font-size:27px;margin:9px 0}.hero-domi{display:none}.section-head{align-items:start;flex-direction:column;gap:8px}.feed-grid{grid-template-columns:1fr}.story-tile{min-width:105px}.world-scene button{min-width:70px;max-width:100px;font-size:9px;border-radius:13px;padding:5px}.world-scene button .pin-emoji{font-size:16px}.role-cards{grid-template-columns:1fr}.owner-foot{font-size:10px;flex-direction:column}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* R2 complete original ManagedContent Creator Studio and original MP4 pipeline. */
.r2-create-block,.r2-review-block,.r2-video-block{border:1px solid #e1e6f4;
 background:linear-gradient(135deg,#fff,#f9f8ff);border-radius:20px;padding:18px;margin-top:18px}
.r2-create-block h4,.r2-review-block h4,.r2-video-block h4{font-size:17px;margin:0 0 12px}
.r2-create-block p,.r2-video-block p{color:#63718f;font-size:12px;line-height:1.8}
.r2-editor-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;
 background:#fff;border:1px solid #e7eaf7;border-radius:16px;padding:16px}
.r2-label{min-width:0;display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#536383}
.r2-label input,.r2-label textarea,.r2-label select{display:block;width:100%;max-width:100%;
 font:inherit;padding:11px;border:1px solid #d8dfed;background:#fbfcff;border-radius:11px;color:#354262}
.r2-label textarea{min-height:92px;resize:vertical}
.r2-editor-form fieldset{border:1px solid #e4e8f4;border-radius:11px;padding:10px}
.r2-editor-form fieldset label{display:inline-block;margin:8px;color:#586784;font-size:12px}
.r2-editor-form label:has(textarea),.r2-editor-form fieldset,.r2-recorder,.r2-editor-form>label:has(input[type=checkbox]){grid-column:1/-1}
.r2-editor-form button,.r2-actions button{border:1px solid #dadff0;background:#f4f5ff;border-radius:11px;
 color:#4b5394;font-size:12px;font-weight:800;padding:10px 14px}
.r2-editor-form .r2-action,.r2-actions .r2-action{background:#614ed4;border-color:#614ed4;color:#fff}
.r2-editor-form button:disabled{opacity:.55}
.r2-message{color:#8d4161;line-height:1.7;font-size:12px;overflow-wrap:anywhere}
.r2-recorder{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.r2-queue-card{background:#fff;border:1px solid #e1e7f5;border-radius:17px;
 margin:10px 0;padding:15px;overflow-wrap:anywhere}
.r2-queue-card>b{display:block;font-size:14px;color:#303a6c}
.r2-queue-card>p{font-size:12px;line-height:1.7;color:#65738b}
.r2-queue-card .r2-state{display:inline-block;margin:6px 0;font-size:11px;color:#6b66ba}
.r2-actions{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}
.r2-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;border:1px dashed #d1d6ea;
 border-radius:13px;padding:12px;margin:10px 0}
.r2-checklist label{font-size:12px;line-height:1.6}
.r2-attachment,.r2-detail-asset{display:block;max-width:100%;max-height:260px;object-fit:contain;border-radius:12px;margin:12px 0}
audio.r2-attachment,audio.r2-detail-asset{width:100%;min-height:40px}
.r2-ready{color:#20795f!important}
.r2-muted{color:#8a93a7}
@media(max-width:700px){.r2-editor-form,.r2-checklist{grid-template-columns:1fr}.r2-create-block,.r2-review-block,.r2-video-block{padding:11px}}

/* R3 social controls share the original owner feed, profile and reviewed clubs. */
.r3-item-social{border-top:1px solid #ebe9fa;padding-top:12px;margin-top:11px;grid-column:1/-1}
.r3-action-row{display:flex;gap:7px;flex-wrap:wrap}
.r3-social-button,.r3-follow,.r3-comment button,.r3-saved-entry{
 border:1px solid #dedaf5;border-radius:12px;background:#f9f6ff;color:#4d4792;
 padding:9px 11px;cursor:pointer;font:inherit;font-size:12px;font-weight:700}
.r3-social-button:disabled,.r3-follow:disabled{opacity:.6;cursor:wait}
.r3-caption{display:block;color:#8992ab;font-size:10px;margin-top:7px;line-height:1.5}
.r3-comments{margin-top:12px;background:#fbf9ff;border:1px solid #e9e4f5;
 border-radius:13px;padding:12px}
.r3-comments p,.r3-explainer{font-size:12px;line-height:1.8;color:#64738f}
.r3-comments select{max-width:100%;font:inherit;padding:9px;border:1px solid #ddd9ef;border-radius:9px;background:white}
.r3-comments button{margin:6px}
.r3-comment{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee8fa;
 gap:8px;padding:5px;font-size:12px}
.r3-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin:16px 0}
.r3-stat{padding:13px;border-radius:15px;border:1px solid #e4e3fa;background:#fcfbff}
.r3-stat b{display:block;font-size:23px;color:#6250c4}.r3-stat small{font-size:11px;color:#6e7992}
.r3-club-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}
.r3-club-card{background:linear-gradient(125deg,#fcf5ff,#e9faff);border:1px solid #dfe9f5;padding:17px;border-radius:18px}
.r3-club-card h4{font-size:15px;margin:8px 0}.r3-club-card p{font-size:12px;line-height:1.5}
.r3-club-badge{font-size:23px}.r3-follow{background:#6554cc;color:white}
.r3-saved,.r3-my-works{margin-top:20px;border-top:1px solid #e8eaf3;padding-top:10px}
.r3-saved-entry{display:block;width:100%;text-align:start;margin:8px 0;background:#f4f9ff}
@media(max-width:520px){.r3-action-row{gap:4px}.r3-social-button{font-size:11px;padding:8px}.r3-stats{grid-template-columns:repeat(2,1fr)}}
/* Place the R3 social bar UNDER the two original card buttons (not beside them). */
.feed-actions{flex-wrap:wrap}.feed-actions>.r3-item-social{flex:1 0 100%;width:100%;min-width:0}

/* R4: reuse original game challenge renderer, original City and same social feed. */
.feed-actions{flex-wrap:wrap}.r4-action-strip{flex-basis:100%;width:100%;
 display:flex;flex-wrap:wrap;gap:8px;padding:10px 0;border-top:1px dashed #e5e1f6}
.r4-cta,.r4-primary,.r4-back,.r4-choice{
 padding:10px 13px;border:1px solid #cabffa;border-radius:13px;background:#ebe6ff;color:#5545a5;
 font-weight:800;font-size:12px;line-height:1.5;cursor:pointer}
.r4-cta{background:linear-gradient(125deg,#ebe6ff,#e4faf1);border-color:#cfc9f4}
.r4-primary{background:#6250d5;color:white}.r4-back{background:#f3f8ff}
.r4-cta:disabled,.r4-choice:disabled{opacity:.55}
.r4-dialog{border:0;border-radius:25px;width:min(820px,96vw);max-height:91dvh;
 padding:0;background:#fff;color:#293455;box-shadow:0 26px 80px #18194e55;overflow:auto}
.r4-dialog::backdrop{background:#10143db8}
.r4-dialog-header{padding:16px 21px;display:flex;justify-content:space-between;align-items:flex-start;
 gap:10px;background:linear-gradient(110deg,#7b63dd,#e37cba);color:white}
.r4-dialog-header small{font-size:11px}.r4-dialog-header h2{margin:5px 0;font-size:21px}
.r4-dialog-header p{font-size:12px;margin:3px 0}
.r4-dialog-header button{border:1px solid #fff8;background:#fff3;color:white;border-radius:12px;padding:9px 12px}
.r4-dialog-body{padding:24px;min-height:200px}
.r4-intro,.r4-note{font-size:12px;color:#61718f;line-height:1.8}
.r4-game-board{padding:14px;border:1px solid #e6e4f5;border-radius:17px;background:#fcfaff}
.r4-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.r4-choice{font-size:15px;min-height:52px}
.r4-feedback{min-height:40px;color:#2e7a6b;font-weight:800;margin:12px 0}
.r4-story-text{margin:12px 0;border:1px solid #e0eafb;padding:20px;background:#f5fbff;
 border-radius:16px;line-height:2;font-size:15px}
.r4-tools{display:flex;flex-wrap:wrap;gap:9px;margin:13px 0}
.r4-tools button{padding:10px 12px;border-radius:11px;border:1px solid #d8dffa;background:#f3f5ff}
.r4-story-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.r4-story-picks label{display:grid;gap:7px;font-size:12px;font-weight:750}
.r4-story-picks select{width:100%;padding:10px;border-radius:10px;border:1px solid #d8dffa}
.r4-error{color:#a33257;background:#fff0f2;padding:13px;border-radius:10px}
.r4-link-editor{margin:13px 0;border:1px solid #dfdef4;padding:12px;border-radius:15px}
.r4-link-editor summary{cursor:pointer;color:#5a49be;font-weight:850}
.r4-link-picks{display:grid;gap:7px;margin:11px 0}
.r4-link-picks label{font-size:12px;line-height:1.7}
.district-item .r4-action-strip{margin-top:10px}
.game-visual-prompt{font-size:16px;font-weight:900;line-height:1.65}
.game-visual-equation,.game-compare-cards,.game-pattern-steps,.game-illustrated-routes{
 display:flex;justify-content:center;flex-wrap:wrap;gap:12px;padding:20px 5px}
.game-count-group,.game-number-orb,.game-pattern-token,.game-memory-token{
 min-width:70px;min-height:65px;border:1px solid #d0cafa;background:#f0edff;
 border-radius:15px;padding:12px;display:grid;place-items:center;font-weight:850}
.game-count-group strong{font-size:29px}
.game-count-dots{display:flex;flex-wrap:wrap;gap:3px;color:#8c71db}
.game-number-orb{font-size:30px}
.game-route-card,.game-cipher-row,.game-logic-clue{display:grid;gap:8px;background:#f4faff;
 padding:12px;border-radius:12px;border:1px solid #e0eaff}
.game-maze-grid{display:grid;grid-template-columns:repeat(var(--maze-size),1fr);gap:4px;max-width:310px;margin:12px auto}
.maze-cell{display:grid;place-items:center;aspect-ratio:1;background:#eef4ff;border-radius:6px}
.maze-cell.obstacle{background:#c3dcc9}
.game-focus-stage{text-align:center;margin:20px 0}.game-focus-word{font-size:34px}
.game-focus-legend{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:16px}
.game-focus-legend-item{display:flex;align-items:center;gap:5px;font-size:11px}
.game-focus-legend-item i{display:inline-block;width:16px;height:16px;border-radius:50%}
.game-calm-note{color:#6e7695;font-size:12px}
@media(max-width:600px){.r4-dialog-body{padding:13px}.r4-story-picks{grid-template-columns:1fr}.r4-choices{gap:7px}.r4-cta{font-size:11px;padding:8px}}

/* R5 original co-presence on the existing owner Web/Android WebView. */
.r5-entry,.r5-new-room,.r5-my-rooms,.r5-room-header,.r5-scene,.r5-experience{
 border:1px solid #e0dcf8;border-radius:18px;padding:17px;margin:16px 0;
 background:linear-gradient(120deg,#fffcff,#f4faff)}
.r5-entry,.r5-new-room{display:grid;gap:11px;max-width:680px}
.r5-entry input,.r5-new-room select{min-height:44px;padding:9px;border:1px solid #d8d3f1;
 border-radius:10px;font:inherit;width:100%;background:white}
.r5-primary,.r5-back,.r5-room-entry,.r5-choice-grid button,.r5-watch-controls button,.r5-world-cta,.r5-watch-cta{
 font:inherit;font-size:12px;font-weight:780;padding:10px 13px;border:1px solid #ccc6e9;
 background:#eae6fb;border-radius:12px;color:#524498;cursor:pointer}
.r5-primary{background:#624ccf;color:white}.r5-back{background:#f8f9ff}
.r5-room-entry{display:block;width:100%;text-align:start;margin:7px 0}
.r5-room-header{background:linear-gradient(115deg,#f3e9ff,#dcfaff)}
.r5-room-header h3{font-size:21px}.r5-room-header small,.r5-subtle,.r5-note{color:#68738e;font-size:12px;line-height:1.75}
.r5-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:12px;margin:12px 0}
.r5-member{background:#fff8ec;border:1px solid #f1e4c7;border-radius:16px;padding:13px;
 display:grid;gap:7px;overflow-wrap:anywhere;font-size:12px}
.r5-member small{color:#66758c}.r5-scene{text-align:center;background:linear-gradient(120deg,#ecf5ff,#fff1f8)}
.r5-scene-art{font-size:46px;display:block;line-height:1.9}.r5-scene h4{font-size:20px}
.r5-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:9px;margin:13px 0}
.r5-choice-grid .r5-picked{border-color:#6e61dc;background:#7166e1;color:white}
.r5-game-board{padding:14px;border:1px solid #e9e0f4;border-radius:15px;background:white}
.r5-result{font-size:16px;font-weight:780;color:#247e74}
.r5-player{width:100%;max-height:360px;border-radius:14px;background:#0f142a}
.r5-watch-controls{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.r5-exit{margin:20px 0}.r5-error{color:#ad344c;font-size:13px;line-height:1.8}
@media(max-width:490px){.r5-entry,.r5-new-room,.r5-my-rooms,.r5-room-header{padding:12px}
.r5-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.r5-scene-art{font-size:32px}}

/* R6 original product-first social cards and adult seller/parent roles. */
.r6-editor,.r6-manage-item,.r6-orders,.r6-detail-box{
 border:1px solid #e0dcf7;border-radius:17px;padding:17px;
 margin:16px 0;background:linear-gradient(130deg,#fff,#faf6ff)}
.r6-editor summary{cursor:pointer;font-weight:850;color:#6854c7;padding:6px}
.r6-editor label{font-size:12px;display:grid;gap:7px;font-weight:760;margin:8px 0}
.r6-editor input:not([type=checkbox]),.r6-editor textarea,.r6-editor select,.r6-product-detail select{
 padding:11px 12px;min-height:42px;border:1px solid #d8d3ee;border-radius:10px;
 width:100%;font:inherit;background:white;max-width:100%}
.r6-ages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.r6-check{display:flex!important;align-items:center!important;gap:8px}
.r6-check input{width:18px;height:18px;flex:none}
.r6-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:15px;margin:20px 0}
.r6-card{padding:18px;border:1px solid #e4def9;border-radius:20px;background:linear-gradient(140deg,#fff,#f3fbff);
 display:grid;gap:10px;min-width:0;overflow-wrap:anywhere}
.r6-card img,.r6-manage-item img{width:100%;max-height:180px;object-fit:contain;border-radius:13px}
.r6-card h4{font-size:18px;margin:0}.r6-card p{font-size:12px;line-height:1.8}
.r6-primary,.r6-back{background:#6958d8;border:1px solid #6656c7;color:#fff;
 border-radius:12px;padding:10px 14px;cursor:pointer;font:inherit;font-size:12px;font-weight:800}
.r6-back{background:#eae8fe;color:#5544a1}
.r6-product-detail{display:grid;grid-template-columns:minmax(130px,220px) minmax(0,1fr);gap:18px}
.r6-product-detail img{width:100%;border-radius:15px;object-fit:contain}
.r6-product-detail p{line-height:1.8}.r6-product-detail label{display:grid;gap:6px;margin:9px 0}
.r6-note,.r6-status{color:#667395;font-size:12px;line-height:1.8}
.r6-error{color:#a83351;font-size:13px}
.r6-order{border-top:1px dashed #ddd7f5;padding:12px 0;display:grid;gap:7px}
.r6-order small{color:#6d7495}.r6-order-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:560px){.r6-product-detail{grid-template-columns:1fr}
.r6-ages{grid-template-columns:1fr}.r6-editor,.r6-manage-item{padding:12px}}

/* R7 original family controls and moderated private content on OWNER WebView */
.r7-hero{padding:24px;border-radius:22px;background:linear-gradient(115deg,#def5ff,#f4e7ff,#ffebf3);margin:19px 0}
.r7-art{font-size:42px}.r7-hero h3{font-size:22px;margin:10px 0}.r7-hero p{font-size:12px;color:#566285}
.r7-card{background:#fff;border:1px solid #e6dffa;border-radius:20px;padding:18px;margin:15px 0;box-shadow:0 10px 22px #4b38891a}
.r7-card summary,.r7-form summary{font-weight:850;color:#594ab3;cursor:pointer}
.r7-card label,.r7-form label{display:grid;gap:7px;margin:12px 0;font-size:12px;font-weight:750}
.r7-card input:not([type=checkbox]),.r7-card select{min-height:44px;padding:11px;width:100%;font:inherit;background:#fff;border-radius:12px;border:1px solid #dcd7f1}
.r7-profile-head{display:flex;gap:12px;align-items:center}.r7-avatar{display:grid;place-items:center;width:74px;height:74px;flex:none;font-size:36px;border-radius:25px;background:#e9e4ff}
.r7-header-text{min-width:0}.r7-header-text h3{margin:3px 0}.r7-header-text small{color:#7a7e9d}
.r7-note,.r7-status{color:#67748e;font-size:12px;line-height:1.85}
.r7-gates{display:flex;gap:9px;flex-wrap:wrap;margin:15px 0}.r7-gate{background:#f6f1fc;color:#64557b;border-radius:13px;padding:8px 10px;font-size:11px}
.r7-form{padding:14px;margin:13px 0;background:#f9faff;border-radius:15px;border:1px solid #e9e5fa}
.r7-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.r7-toggle-grid label{display:flex;align-items:center}.r7-toggle-grid input{width:18px;height:18px}
.r7-cta,.r7-main-cta,.r7-danger{font:inherit;font-size:12px;font-weight:820;color:white;border:0;background:#6655d0;border-radius:13px;padding:11px 15px;cursor:pointer;margin:6px}
.r7-danger{background:#a83d62}.r7-actions{display:flex;flex-wrap:wrap;gap:8px}
.r7-draft{padding:12px;border-radius:12px;background:#eef6ff;margin:9px 0;display:grid;gap:9px}.r7-draft small{color:#586587}
.r7-error{color:#af3051;font-size:12px;line-height:1.7}
@media(max-width:640px){.r7-card{padding:12px}.r7-toggle-grid{grid-template-columns:1fr}.r7-hero{padding:14px}.r7-hero h3{font-size:18px}.bottom-nav{overflow-x:auto;gap:12px}.bottom-nav button{min-width:46px;flex:0 0 auto}}

/* R10 product shell: authored display rules must never override hidden screens. */
[hidden]{display:none!important}
html,body{width:100%;max-width:100%;overflow-x:clip}
:where(main,section,.app-frame,.main-area,.details-panel,.r7-card,.r2-create-block,.r5-entry,.r6-editor,.feed-card){min-width:0;max-width:100%}
:where(h1,h2,h3,h4,p,span,strong,small,label,button,div){overflow-wrap:break-word}
:where(img,video,canvas,svg){max-width:100%}
:where(input,textarea,select){max-width:100%;min-width:0}
body.is-authenticated .mast{padding-block:9px}
body.is-authenticated .mast-note{display:none}
body.is-authenticated .login-shell{display:none!important}
body.is-authenticated main{padding-top:8px}
body.is-authenticated .owner-panel{padding:10px 17px;border-radius:16px}
.explore-view .rainbow-hero,.explore-view .story-row{display:none}
.explore-view .section-head:first-of-type{display:none}
.city-hero{border-radius:24px;padding:26px;background:linear-gradient(120deg,#5373e6,#955fe9 55%,#ff86b9);color:white}
.city-hero h3{font-size:clamp(24px,3vw,38px);margin:13px 0 6px}
.city-hero p{line-height:1.8;max-width:480px}.city-kicker{font-size:12px;letter-spacing:.1em}
.city-places{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:18px}
.city-place{border:1px solid #d9def7;border-radius:23px;background:linear-gradient(135deg,#fdf7ff,#ecf9ff);min-height:150px;display:flex;flex-direction:column;align-items:start;justify-content:space-between;text-align:right;gap:8px;padding:22px;color:#2c3f66}
.city-place .city-emoji{font-size:36px}.city-place strong{font-size:17px}.city-place small{font-size:11px;color:#63728e}.city-place[aria-pressed=true]{outline:3px solid #7158d9}
@media(max-width:950px){
 body.is-authenticated .mast{padding:8px 13px;min-height:48px}
 body.is-authenticated .brand small{display:none}
 body.is-authenticated .brand-icon{width:32px;height:32px;font-size:20px}
 body.is-authenticated .brand b{font-size:14px}
 main{padding:8px 12px 100px}
 .app-frame{min-height:calc(100dvh - 140px);overflow:visible;border-radius:21px}
 .main-area{padding-bottom:28px}
 .bottom-nav{position:fixed;left:0;right:0;bottom:0;bottom:env(safe-area-inset-bottom,0px);z-index:100;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:8px max(10px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));border:1px solid #e4e6f0;box-shadow:0 -8px 24px #27345b17}
 .bottom-nav button{min-width:0;min-height:49px;display:flex;align-items:center;justify-content:center;gap:2px;font-size:21px;padding:0 2px;white-space:nowrap}
 .bottom-nav button small{font-size:11px}
 .bottom-nav button.active{background:#f1edff;border-radius:14px;color:#5945d0}
 .owner-foot{padding-bottom:85px}
}
@media(max-width:640px){
 body.is-authenticated main{padding:8px 8px 110px}
 .owner-panel{gap:8px}
 .owner-left .spark{padding:9px}
 .owner-left p{font-size:10px}
 .city-places{gap:9px}
 .city-place{min-height:130px;padding:14px;border-radius:17px}
 .city-place .city-emoji{font-size:27px}
 .city-place strong{font-size:14px}
 .world-scene button{max-width:30%;min-width:0;font-size:9px}
 .district-detail,.details-panel{padding:14px;min-height:0}
 .section-head h3{font-size:18px}
 .app-top{align-items:flex-start}
 .feed-actions{justify-content:flex-start}
 .feed-actions>*{max-width:100%}
 .r3-stats,.role-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* R10 secondary navigation: no existing feature disappears when mobile tabs collapse. */
.more-wrap{position:relative;display:flex}
.more-menu{position:absolute;top:calc(100% + 9px);left:0;z-index:125;width:min(225px,82vw);padding:8px;border:1px solid #e5e4f7;border-radius:16px;background:#fff;box-shadow:0 18px 40px #22316f2d;display:grid;gap:3px}
.more-menu button{border:0;background:transparent;border-radius:10px;text-align:right;padding:12px;color:#48577d;font-weight:700;font-size:12px;min-height:41px}
.more-menu button:hover,.more-menu button.active{background:#efeaff;color:#594bc6}
@media(max-width:640px){.app-top-tools{gap:3px;flex-wrap:wrap;justify-content:flex-end}.app-top-tools .soft-btn{white-space:nowrap}.more-menu{left:0}}

/* R11: distinct media-first experiences, without cloning the feed ledger. */
.reels-view .rainbow-hero,.videos-view .rainbow-hero,
.reels-view .story-row,.videos-view .story-row{display:none}
.reels-view .section-head:first-of-type,.videos-view .section-head:first-of-type{display:none}
.reels-view .feed-grid{display:grid;grid-template-columns:minmax(0,470px);justify-content:center;gap:28px}
.reels-view .feed-card{border-radius:28px;box-shadow:0 15px 40px #2e37751e}
.reels-view .feed-media{height:auto;aspect-ratio:9/13;min-height:330px;background:linear-gradient(140deg,#5c48b7,#e271a8)}
.reels-view .feed-icon{font-size:98px;color:#fff}
.reels-view .feed-actions{justify-content:flex-start}
.reels-view .feed-info h4{font-size:19px}
.videos-view .feed-grid{grid-template-columns:minmax(0,1fr);gap:20px}
.videos-view .feed-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.videos-view .feed-media{height:auto;min-height:240px;aspect-ratio:16/9}
.videos-view .feed-info{display:flex;flex-direction:column;justify-content:center;min-width:0}
.videos-view .feed-info h4{font-size:20px}
@media(max-width:640px){
 .reels-view .feed-grid{grid-template-columns:minmax(0,1fr);gap:13px}
 .reels-view .feed-media{aspect-ratio:9/13;min-height:0}
 .reels-view .feed-card{border-radius:18px}
 .videos-view .feed-card{grid-template-columns:minmax(0,1fr)}
 .videos-view .feed-media{min-height:0}
}

/* R12: discover interactive content through the same original R4 actions. */
#feedFilters [data-filter="TAP"]{background:#edeaff;color:#5d45c9;font-weight:800;border:1px solid #cfc5fb}
#feedFilters [data-filter="TAP"].active{background:#6652cf;color:#fff;border-color:#6652cf}
@media(max-width:640px){#feedFilters{max-width:100%;flex-wrap:wrap;gap:7px}#feedFilters button{min-width:0;white-space:normal}}

/* R13: Domi City is a distinct neighborhood, not the Worlds island map. */
.city-scene{padding:clamp(12px,3vw,30px);background:linear-gradient(180deg,#b5eaff 0%,#d1f8ff 60%,#baf4d7 60%,#82dbab 100%);border-radius:28px;min-height:280px;overflow:hidden;border:1px solid #b7e2f3;box-shadow:inset 0 0 42px #ffffff55;margin:14px 0 20px}
.city-scene-sky{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#4f61a1;font-size:clamp(17px,2.5vw,27px);padding:4px 15px 22px}
.city-scene-sky strong{font-size:12px;letter-spacing:.15em;color:#47718d}
.city-scene-blocks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.city-house{min-width:0;min-height:160px;background:linear-gradient(150deg,#fff5ff,#ded6ff);border:3px solid white;border-bottom:13px solid #8a8fca;border-radius:25px 25px 13px 13px;box-shadow:0 18px 20px #41887c36;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:12px 8px;color:#3c486d}
.city-house:nth-child(2){background:linear-gradient(150deg,#fcf0ff,#bde6ff);border-bottom-color:#77abcb;min-height:190px}
.city-house:nth-child(3){background:linear-gradient(150deg,#e3fff2,#adecc4);border-bottom-color:#72b397;min-height:135px}
.city-house:nth-child(4){background:linear-gradient(150deg,#f5eaff,#e2d3ff);border-bottom-color:#9785ca;min-height:200px}
.city-house-icon{font-size:clamp(32px,5vw,59px);line-height:1.2}.city-house strong{font-size:clamp(10px,1.2vw,14px);text-align:center;overflow-wrap:anywhere}.city-house small{font-size:10px;color:#6f7ca6;text-align:center}
.city-house[aria-pressed=true]{outline:4px solid #6949d0;outline-offset:2px;transform:translateY(-5px)}
.city-scene-street{margin-top:7px;background:linear-gradient(95deg,#7b91ab,#5b7595);border-radius:15px;padding:11px;text-align:center;color:white;font-size:25px}
#cityPlaces .city-place[aria-pressed=true]{border-color:#6a4cce;box-shadow:0 6px 24px #6a4cce40}
.r13-open{border:0;background:#e7eaff;color:#5a4cc2;padding:10px 14px;border-radius:11px;font-weight:800;min-height:42px}
#cityDetail .district-item,#districtDetail .district-item{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;min-width:0}
#cityDetail .district-item span,#districtDetail .district-item span{flex:1 1 150px;min-width:0;overflow-wrap:anywhere}
#cityDetail .r4-action-strip,#districtDetail .r4-action-strip{flex:0 1 auto}
@media(max-width:700px){
 .city-scene{min-height:0;padding:14px;border-radius:19px}
 .city-scene-blocks{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .city-house,.city-house:nth-child(2),.city-house:nth-child(3),.city-house:nth-child(4){min-height:130px;padding:12px 6px;border-radius:17px;border-bottom-width:8px}
 .city-house-icon{font-size:38px}.city-house strong{font-size:12px}.city-scene-street{font-size:18px}
}

/* R14 responsive creator media composer */
.r14-media-preview{display:flex;flex-direction:column;gap:7px;min-width:0;max-width:100%;padding:7px}
.r14-selected-media{display:block;width:100%;max-width:480px;max-height:300px;object-fit:contain;border-radius:14px;background:#eef0ff}
.r14-media-preview small{overflow-wrap:anywhere;color:#627395}
.r2-editor-form label,.r2-create-block,.r2-video-block{min-width:0}
.r2-editor-form input[type=file]{width:100%;min-width:0;max-width:100%;overflow:hidden}
@media(max-width:640px){.r14-media-preview{padding:4px}.r14-selected-media{max-height:220px}}

/* R14 touch drawing (same original R2 upload as gallery photos) */
.r14-painter{grid-column:1/-1;border:1px solid #d5e2f5;padding:12px;background:#f6f4ff;border-radius:18px;min-width:0;max-width:100%}
.r14-painter strong{font-size:15px;color:#3f4f92}
.r14-painter canvas{touch-action:none;display:block;cursor:crosshair;background:white;border:1px solid #d8dded;border-radius:13px;width:100%;height:auto;max-width:650px}
.r14-drawing-palette,.r14-drawing-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.r14-color{background:white;border:1px solid #d7ddf4;border-radius:50%;min-width:44px;height:44px;font-size:33px;line-height:1}
.r14-drawing-actions button{border:0;border-radius:12px;background:#eceaff;color:#564abe;padding:12px;font-weight:800;min-height:44px}

/* R15: immersive original reels, age-scoped original social filters */
.r15-open-deck{grid-column:1/-1;border:0;border-radius:18px;padding:15px;background:linear-gradient(110deg,#6751cd,#e36bb3);color:white;font-size:15px;font-weight:900}
.reels-view .feed-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr))}
.reels-view .feed-media{height:260px}
.r15-reels-dialog{border:0;padding:0;border-radius:23px;background:#19182f;color:white;width:min(520px,97vw);height:min(850px,95dvh);max-height:95dvh;overflow:hidden;box-shadow:0 30px 90px #060a29cc}
.r15-reels-dialog::backdrop{background:#080b1bdb}
.r15-reel-bar,.r15-reel-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;min-height:58px;background:#161325}
.r15-reel-bar button,.r15-reel-nav button{min-height:43px;border:1px solid #ffffff4d;border-radius:13px;color:#fff;background:#ffffff20;padding:10px 14px;font-size:12px;font-weight:800}
.r15-reel-bar span,.r15-reel-nav span{font-size:12px;color:#ded9ff}
.r15-reel-stage{height:calc(100% - 118px);overflow-y:auto;overscroll-behavior:contain;min-width:0}
.r15-reel-card{height:100%;display:flex;flex-direction:column;gap:10px;padding:10px;background:linear-gradient(150deg,#312761,#1d1940)}
.r15-reel-media{position:relative;flex:1;min-height:125px;display:grid;place-items:center;border-radius:18px;background:#101024;overflow:hidden}
.r15-reel-media img,.r15-reel-media video{width:100%;height:100%;max-height:100%;object-fit:contain}
.r15-reel-media .r15-illustration{font-size:78px}
.r15-unplayable{position:absolute;bottom:10px;left:10px;right:10px;text-align:center;padding:8px;background:#211c3bd9;border-radius:10px;font-size:11px}
.r15-reel-info{min-height:0;max-height:45%;overflow-y:auto;padding:9px 8px;color:#fff}
.r15-reel-info h3{font-size:20px;line-height:1.5;margin:5px 0}
.r15-reel-kicker,.r15-reel-desc{font-size:12px;color:#ebe5ff;line-height:1.7}
.r15-reel-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
.r15-detail-button{border:0;border-radius:13px;background:#fff;color:#5648ad;padding:11px;font-weight:900}
.r15-reel-tools>.r3-item-social,.r15-reel-tools>.r4-action-strip{width:100%;flex:1 0 100%;min-width:0}
.r15-reel-tools .r3-caption{color:#d8d5f4}
.r15-reel-tools .r3-comments{color:#273657}
.r15-reel-tools .r3-social-button{min-height:43px}
@media(max-width:520px){
.r15-reels-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
.r15-reel-card{padding:7px}
.r15-reel-info h3{font-size:17px}
.r15-reel-bar,.r15-reel-nav{padding:8px;gap:7px}
.r15-reel-nav span{font-size:10px}
.r15-reel-info{max-height:42%}
}

/* R16 original catalogue discovery + improved owner video player */
.r16-search{background:linear-gradient(120deg,#f3ebff,#ecf8ff);padding:18px;border:1px solid #e0dbf6;border-radius:20px;display:grid;gap:10px;margin:20px 0 8px;min-width:0}
.r16-search[hidden]{display:none!important}
.r16-search>label{font-weight:900;color:#494182;font-size:17px}
.r16-search-row{display:flex;align-items:center;gap:8px;min-width:0}
.r16-search-row input{flex:1;min-width:0;width:100%;background:white;border:1px solid #d5d9f1;border-radius:15px;padding:14px 15px;min-height:47px;color:#2d3760;font-size:14px}
.r16-search-row button,.r16-scope button{border:1px solid #d8d1ed;border-radius:12px;padding:10px 12px;background:#fff;color:#5147a0;font-weight:800;font-size:12px;min-height:44px}
.r16-scope{display:flex;flex-wrap:wrap;gap:7px}
.r16-scope button[aria-pressed=true]{background:#6751ce;color:white;border-color:#6751ce}
.r16-search small{font-size:12px;color:#647298}
.r16-watch-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px 0}
.r16-watch-tools label{font-size:12px;color:#d9e2ff}
.r16-watch-tools select{padding:10px;background:#343e74;color:white;border:1px solid #6974b0;border-radius:10px;min-height:43px}
.r16-watch-next{border-top:1px solid #4d5485;padding:12px 0;display:grid;gap:9px}
.r16-watch-next strong{font-size:14px}
#r16WatchQueue{display:flex;gap:8px;flex-wrap:wrap;max-height:145px;overflow-y:auto}
#r16WatchQueue button{min-height:43px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:start}
#r16WatchQueue button:disabled{opacity:.8;background:#5748b1}
.r16-watch-empty{font-size:12px;color:#bdc7e2}
.media-dialog{overflow-y:auto;overscroll-behavior:contain}
.media-dialog video{height:min(48dvh,460px);border-radius:13px}
@media(max-width:600px){
.r16-search{padding:12px;border-radius:16px;margin:10px 0}
.r16-search-row{flex-wrap:wrap}
.r16-search-row input{flex-basis:100%}
.r16-watch-tools{gap:5px}
.r16-watch-tools button,.r16-watch-tools select{padding:8px;font-size:11px}
.media-dialog{width:100vw;max-width:100vw;max-height:96dvh;padding:10px;border-radius:12px}
.media-dialog video{height:min(40dvh,310px)}
}

/* R17 — creator profiles and genuinely followed approved works */
.r17-author-open{margin-top:8px;min-height:44px;border:0;border-radius:13px;padding:11px 14px;background:linear-gradient(105deg,#6f56ce,#9b6bce);color:#fff;font-weight:900;font-size:13px}
.r17-creator-portfolio{margin:18px 0;padding:18px;border:1px solid #d9d8f1;border-radius:19px;background:linear-gradient(120deg,#f3edff,#e9f7ff);min-width:0}
.r17-creator-portfolio[hidden]{display:none!important}
.r17-creator-portfolio h3{font-size:19px;color:#5542a8;overflow-wrap:anywhere}
.r17-creator-portfolio p{color:#657591;font-size:13px}
.r17-creator-portfolio button{display:block;width:100%;min-height:46px;text-align:right;border:1px solid #dfddf3;border-radius:12px;background:#fff;padding:12px;margin:8px 0;color:#5144aa;font-weight:800;overflow-wrap:anywhere}
.r17-creator-portfolio .r17-back{background:#6151cc;color:#fff}
.r3-club-card{min-width:0;overflow-wrap:anywhere}
.r3-club-card .r17-author-open{width:100%}
@media(max-width:600px){.r17-creator-portfolio{padding:12px}.r17-creator-portfolio h3{font-size:16px}}
/* R18 unified original story and audio reader: no demo slides */
.r18-story-dialog{width:min(630px,96vw);height:min(880px,94dvh);max-height:94dvh;max-width:96vw;overflow:hidden;padding:0;border:0;border-radius:25px;background:#f8f5ff;box-shadow:0 25px 85px #22124e88;direction:rtl}
.r18-story-dialog::backdrop{background:#171028cf}
.r18-story-top{height:65px;background:linear-gradient(108deg,#7760d7,#db78ac);display:flex;align-items:center;justify-content:space-between;gap:9px;padding:13px 18px;color:white}
.r18-story-top strong{font-size:16px;font-weight:900}
.r18-story-top span{font-size:12px}
.r18-story-top button{background:#ffffff33;border:1px solid #ffffff75;border-radius:12px;color:white;min-height:44px;padding:10px 14px;font-weight:800}
.r18-story-body{height:calc(100% - 65px);overflow-y:auto;overscroll-behavior:contain;padding:16px 20px 30px}
.r18-progress{display:flex;gap:5px;margin:5px 0 18px}
.r18-step{height:5px;background:#e0d9f6;border-radius:10px;flex:1}
.r18-step.r18-current{background:#8469de}
.r18-story-card{display:flex;flex-direction:column;gap:12px;min-width:0}
.r18-story-card h2{font-size:clamp(19px,3.5vw,28px);font-weight:950;text-align:center;color:#3d3a78;margin:0;line-height:1.5}
.r18-kicker{display:block;margin:auto;color:#715ac7;font-weight:800;font-size:13px}
.r18-story-art{display:block;max-width:100%;max-height:285px;width:auto;margin:0 auto;border-radius:19px;object-fit:contain;box-shadow:0 5px 25px #6a47c12e}
.r18-page{background:#fff;border-radius:23px;padding:22px;border:1px solid #e4def9;box-shadow:0 8px 22px #5943b00b}
.r18-page-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#7460bc;font-size:13px;font-weight:800}
.r18-story-text{color:#363452;font-size:clamp(17px,2.8vw,20px);line-height:2.0;overflow-wrap:anywhere;white-space:pre-wrap;text-align:right;min-height:74px}
.r18-page-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin-top:8px}
.r18-page-actions button,.r18-story-actions .r18-details{border:0;background:#e6dcff;color:#5a46b7;border-radius:13px;padding:12px 15px;min-height:44px;font-weight:900}
.r18-page-actions button:disabled{opacity:.4}
.r18-page-actions small{color:#706d89;font-size:11px;text-align:center}
.r18-audio-box{background:linear-gradient(105deg,#f3e8ff,#e8ebff);border-radius:19px;padding:18px;display:grid;gap:12px;text-align:center;color:#5946a3}
.r18-audio-box p{font-size:12px;color:#66719c;margin:0}
.r18-audio-box audio{width:100%;max-width:100%}
.r18-story-actions{display:grid;gap:9px;min-width:0}
.r18-story-actions .r3-item-social,.r18-story-actions .r4-action-strip{min-width:0;max-width:100%}
@media(max-width:600px){.r18-story-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.r18-story-body{padding:11px 12px 32px}.r18-story-art{max-height:210px}.r18-page{padding:15px}.r18-page-actions small{flex-basis:100%;order:3}}

/* R19 uses the existing R6 product cards and page grid, no independent shop shell. */
.r19-market-filters{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 8px}
.r19-market-filters label{display:flex;flex:1 1 180px;flex-direction:column;gap:6px;font-weight:700;color:#373454}
.r19-market-filters select,.r19-market-filters input{width:100%;min-height:46px;border:1px solid #d8d9ea;border-radius:12px;padding:10px;background:white;color:#292542}
.r19-market-heading{padding:16px 0}

/* R20 adult-only operations - same existing R6 page, accessible at 320px. */
.r20-operations{margin-top:20px;display:grid;gap:12px}
.r20-heading{display:grid;gap:3px}
.r20-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:9px}
.r20-stat{display:grid;gap:5px;border:1px solid #ddd8f6;background:#f8f6ff;border-radius:14px;padding:12px}
.r20-stat strong{font-size:22px;color:#5141a4}
.r20-stat span{font-size:12px;color:#635c80}
.r20-rows{display:grid;gap:11px}
.r20-order{display:grid;gap:6px;overflow-wrap:anywhere}
.r20-order .r6-order-actions{display:flex;flex-wrap:wrap;gap:8px}
.r20-order button:disabled{opacity:.5;cursor:progress}

/* R21 Business Desk uses existing R6 seller products. */
.r21-desk-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:9px;padding:12px 0}
.r21-desk-stats>h4,.r21-desk-stats>.r6-note{grid-column:1/-1;margin:0}
.r21-stat{background:#f1edff;border:1px solid #ddd5ff;border-radius:14px;padding:14px;display:grid;gap:5px}
.r21-stat b{color:#5140a3;font-size:23px}
.r21-stat span{color:#5b5f78;font-size:12px}
.r21-catalogue{display:grid;gap:14px}
.r21-stock-editor{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:12px;background:#f7f5ff;border-radius:12px;margin:10px 0}
.r21-stock-editor label{display:grid;gap:4px;max-width:190px}
.r21-stock-editor input{min-height:44px;width:100%;padding:8px;border:1px solid #d9d6ee;border-radius:9px}

/* R22 adult-only reviewed multi-product enquiry in original parent view. */
.r22-family-basket{margin:18px 0;padding:17px;border:1px solid #d8d0f7;border-radius:18px;background:#f9f7ff;display:grid;gap:12px;min-width:0}
.r22-basket-items{display:grid;gap:10px}
.r22-basket-line{border:1px solid #e7e1fa;background:white;border-radius:12px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.r22-basket-line strong{flex:1 1 135px;overflow-wrap:anywhere}
.r22-basket-line small{color:#615d80}
.r22-basket-controls button{min-height:44px}
.r22-basket-quote .r22-price{font-weight:800;color:#4c4295}
.r22-success{padding:14px;border-radius:12px;background:#eaf8ed;color:#225c36;overflow-wrap:anywhere}

/* R23 family groups: compact independent milestones per original R6 order. */
.r23-family-history{display:grid;gap:12px;min-width:0;padding:18px 0}
.r23-group-results{display:grid;gap:10px}
.r23-basket-group{padding:13px;border:1px solid #e0dbf0;border-radius:14px;background:#fff;overflow-wrap:anywhere}
.r23-basket-group summary{font-weight:800;color:#504395;cursor:pointer;padding:5px 0}
.r23-basket-group>small{display:block;color:#646779;margin:5px 0}
.r23-basket-item{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:10px;border-top:1px solid #eeecf5}
.r23-basket-item strong{flex:1 1 135px}
.r23-basket-item span{color:#52458e;font-weight:700}

/* R24 shared real paginated history for adult buyer and seller. */
.r24-history-pager{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:12px;padding:10px}
.r24-history-pager>button{min-height:44px}
.r24-history-pager>span{min-width:80px;text-align:center}

/* R25 original unpaid order support under existing cards, not a new market website. */
.r25-order-support{padding:12px;margin-top:10px;border-radius:12px;background:#f6f3ff;border:1px solid #e4dcfa;min-width:0}
.r25-order-support summary{cursor:pointer;color:#55429b;font-weight:800;padding:6px}
.r25-order-support details{display:grid;gap:9px}
.r25-order-support label{display:grid;gap:6px;margin-top:8px}
.r25-order-support textarea,.r25-order-support select{display:block;box-sizing:border-box;width:100%;min-height:44px;border:1px solid #d7d0eb;border-radius:10px;padding:10px}

/* R27 owner merchant application on original Shop screen */
.r27-merchant-application{display:grid;gap:10px;background:#f4f1ff;border:1px solid #ddd7fa;border-radius:15px;padding:15px;margin:12px 0}
.r27-merchant-application label{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:9px;min-height:35px;font-size:13px}
.r27-merchant-application input[type="checkbox"]{width:18px;height:18px}

.r54-business{padding:14px;border:1px solid #ddd9f0;border-radius:12px;margin-block:12px;overflow-wrap:anywhere}.r54-business label,.r54-admin label{display:block;margin-block:10px}.r54-business input,.r54-business textarea,.r54-business select,.r54-admin textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:44px;padding:10px;border:1px solid #ddd9f0;border-radius:8px;font:inherit}.r54-business textarea{min-height:90px}.r54-business button{margin-block:8px;white-space:normal}.r54-admin article{display:grid;gap:10px;overflow-wrap:anywhere}.r54-admin textarea{min-height:80px}

.is-merchant .sidebar,.is-merchant .bottom-nav,.is-merchant .owner-panel,.is-merchant .app-top-tools{display:none!important}.is-merchant .app-frame{display:block}.is-merchant .main-area{width:100%;min-width:0}
