/* DG55: one DomiGram, visual hierarchy modelled on approved three-screen
   concept and the original Dominogram social experience. No shadow feed,
   playback, login, creator or child publisher is introduced. */
body.dg55-social{
 --dg55-purple:#704fd4;--dg55-ink:#30274d;--dg55-line:#ebe4f6;
 --dg55-bg:#fbfaff;--dg55-mint:#dff9f1;
 background:var(--dg55-bg);color:var(--dg55-ink);
}
body.dg55-social .app-shell{max-width:1180px;padding-inline:clamp(10px,2.4vw,28px)}
body.dg55-social .app-header{min-height:58px;padding-block:7px;border-bottom:1px solid #f1ecf8}
body.dg55-social .brand-mark{border-radius:15px}
body.dg55-social .bottom-nav{
 border-radius:20px;border:1px solid #e8e0fa;background:#ffffffed;
 box-shadow:0 10px 28px #38305c25;max-width:590px
}
body.dg55-social .bottom-nav button{font-weight:850}
body.dg55-social .bottom-nav button[data-nav="create"]{
 border-radius:16px;background:linear-gradient(155deg,#8969ea,#6243cf);
 color:#fff;box-shadow:0 5px 14px #6849c54a
}
body.dg55-social .bottom-nav button[data-nav="create"] svg{display:none}
body.dg55-social .bottom-nav button[data-nav="create"]::before{
 content:"+";display:block;color:#fff;font-size:29px;font-weight:650;line-height:1;
}
body.dg55-social .bottom-nav button:focus-visible,
body.dg55-social #page-home button:focus-visible,
body.dg55-social #page-create button:focus-visible,
body.dg55-social #page-profile button:focus-visible{
 outline:3px solid #168f86;outline-offset:2px
}
/* HOME: creator feed appears immediately after actual original moments.
   Keep all original nodes, buttons, dataset age rules and event handlers. */
body.dg55-social #page-home:not([hidden]){display:flex;flex-direction:column;gap:0}
body.dg55-social #page-home>.social-hero{order:0;min-height:75px;max-height:none;padding:10px 15px;
 background:#fff;border:0;border-bottom:1px solid #eee8fa;border-radius:16px;
 box-shadow:none;margin:0 0 7px}
body.dg55-social #page-home>.social-hero:before,body.dg55-social #page-home>.social-hero:after{display:none}
body.dg55-social #page-home>.social-hero img{display:none}
body.dg55-social #page-home>.social-hero .dg31-simple-label{font-size:10px;color:#8877b4}
body.dg55-social #page-home>.social-hero h1{font-size:19px;line-height:1.35;margin:4px 0;color:#413174;max-width:none}
body.dg55-social #page-home>.social-hero p{display:none}
body.dg55-social #page-home #dg37FeedFirst{display:none}
body.dg55-social #page-home>.social-section-header:has(+ #socialMoments){order:1;margin:5px 3px 0}
body.dg55-social #page-home>#socialMoments{order:2;display:flex;gap:14px;overflow-x:auto;
 border-bottom:1px solid #eeeafa;padding:10px 7px 16px;margin-bottom:8px}
body.dg55-social #page-home #socialMoments .u2-moment{min-width:76px;flex:0 0 76px}
body.dg55-social #page-home #socialMoments .u2-moment-img{
 width:65px;height:65px;margin:auto;border-radius:50%;
 background:linear-gradient(130deg,#e2f8ef,#f1e9ff);
 border:3px solid #9a7bea;box-shadow:inset 0 0 0 3px #fff,0 3px 10px #6d57b924;
 display:grid;place-items:center;font-size:22px
}
body.dg55-social #page-home #socialMoments small{font-weight:750;max-width:78px;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.dg55-social #page-home>.social-age-setting{order:3;padding:7px 11px;
 background:#fff;border-radius:12px;border-color:#eee8f7;margin:2px 0 8px}
body.dg55-social #page-home>.social-section-header:not(:has(+ #socialMoments)){order:4;margin:7px 3px 0}
body.dg55-social #page-home>#dg3HomeSwitch{order:5}
body.dg55-social #page-home>#feedFilters{order:6;margin:3px 0 8px}
body.dg55-social #page-home>#dg3FollowingStage{order:7}
body.dg55-social #page-home>.r121-social-surface{order:8;background:transparent;padding:0;
 border:0;border-radius:0;box-shadow:none;margin:0}
body.dg55-social #page-home>.r121-social-surface .r121-feed-summary{display:none}
body.dg55-social #page-home .r121-feed-canvas{grid-template-columns:minmax(0,1fr);
 gap:15px;max-width:690px;margin-inline:auto}
body.dg55-social #page-home .r121-feed-canvas .u2-post,
body.dg55-social #page-home .r121-feed-canvas .u3-adult-post{
 border:1px solid var(--dg55-line);border-radius:19px;background:#fff;
 box-shadow:0 7px 22px #4b347e12
}
body.dg55-social #page-home .u2-post-head,
body.dg55-social #page-home .u3-adult-post-top{padding:11px 14px}
body.dg55-social #page-home .u2-source-avatar{width:38px;height:38px;border-radius:50%;
 background:linear-gradient(145deg,#9a7cf1,#6443c0);color:white}
body.dg55-social #page-home .u2-post-art{min-height:285px;border-radius:0;position:relative}
body.dg55-social #page-home .u2-post-art .u2-post-symbol{font-size:clamp(36px,8vw,69px)}
body.dg55-social #page-home .u2-post-foot{padding:12px 16px 16px}
body.dg55-social #page-home .u2-post-foot p{line-height:1.7;overflow-wrap:anywhere}
body.dg55-social #page-home>.social-disclosure{order:9;background:#f8f5ff;
 border-radius:12px;line-height:1.8;padding:12px;margin:9px 0 15px}
body.dg55-social #page-home>#r122QuickCreate{order:10;margin:7px 0;padding:14px;
 border:1px solid #e6ddf7;background:#f8f5ff}
body.dg55-social #page-home>.dg9-guide{order:11}
body.dg55-social #page-home>.dg34-search-bridge{order:12}
body.dg55-social #page-home>.u3-adult-feed-zone{order:13}
body.dg55-social #page-home>.r109-start,body.dg55-social #page-home>.social-compose{order:14}
/* Reels: full portrait immersion. Scroll, source rights, captions, actions,
   age scopes and video lifecycles continue to use original DG4. */
body.dg55-social #page-reels{max-width:none}
body.dg55-social #page-reels>.social-page-head.dg53-one-reels-head{
 max-width:480px;min-height:39px;padding:5px 12px!important;
 background:transparent;border:0;box-shadow:none;border-radius:0;
 margin:0 auto 2px!important;overflow:visible
}
body.dg55-social #page-reels>.social-page-head h1{font-size:17px;color:#513b98;margin:0}
body.dg55-social #page-reels>.social-page-head p{display:none}
body.dg55-social #page-reels>.social-page-head:before{display:none}
body.dg55-social #page-reels>.social-page-head .dg10-reel-button{
 min-height:34px;border-radius:99px;background:#efe9ff;
 border:1px solid #ddd2fa;color:#573eb3;font-size:11px;padding:6px 13px
}
body.dg55-social #reelsList.dg4-player-enabled{position:relative;max-width:480px;margin:0 auto}
body.dg55-social #page-reels #dg4ReelFrame{height:min(calc(100dvh - 215px),760px);height:min(calc(100svh - 215px),760px);
 border-radius:20px;border:0;box-shadow:0 15px 40px #1d123e29;
 background:#141023}
body.dg55-social .dg4-reel{background:#201834}
body.dg55-social .dg4-reel:before{display:none}
body.dg55-social .dg4-reel:after{background:linear-gradient(180deg,#0d091b7a,transparent 24%,transparent 48%,#080817e8)}
body.dg55-social .dg4-top{inset:14px 12px auto}
body.dg55-social .dg4-top strong{font-size:10px;border:1px solid #ffffff32;
 background:#1310217a;padding:7px 9px}
body.dg55-social .dg4-bottom{inset:auto 66px 25px 15px;gap:4px;
 border:0!important;border-radius:0!important;padding:0!important;
 background:transparent!important;backdrop-filter:none!important}
body.dg55-social .dg4-bottom::before{display:none!important}
body.dg55-social .dg4-bottom small{font-size:12px;color:#fff;font-weight:850}
body.dg55-social .dg4-bottom h3{font-size:18px;font-weight:900;color:#fff}
body.dg55-social .dg4-bottom p{font-size:12px;line-height:1.6;color:#fff;opacity:.95}
body.dg55-social .dg4-rail{right:10px;bottom:52px;gap:13px}
body.dg55-social .dg4-action{background:transparent;box-shadow:none;border:0;
 padding:2px;min-width:45px;min-height:45px;border-radius:14px;
 font-size:29px;text-shadow:0 2px 12px #0009}
body.dg55-social .dg4-action span{font-size:10px;line-height:1.35;
 text-shadow:0 1px 8px #09071add}
body.dg55-social .dg4-action[aria-pressed="true"]{background:#ffffff40;color:#fff}
body.dg55-social .dg4-progress{bottom:7px;left:10px;right:10px;width:calc(100% - 20px);height:3px}
body.dg55-social .dg4-manual{top:50%;border:1px solid #fff8;
 background:#18112e88;width:68px;height:68px}
body.dg55-social #page-reels .dg4-controls{position:absolute;z-index:6;
 top:65px;left:10px;right:auto;width:42px;max-width:42px;
 margin:0;display:grid;gap:8px}
body.dg55-social #page-reels .dg4-controls button{min-width:40px;width:40px;min-height:40px;
 height:40px;flex:none;padding:0;border-radius:50%;overflow:hidden;
 font-size:0;background:#120e23a0;color:#fff;border:1px solid #ffffff59;
 backdrop-filter:blur(7px)}
body.dg55-social #page-reels .dg4-controls button::before{font-size:19px;font-weight:750}
body.dg55-social #page-reels .dg4-controls button:first-child::before{content:"↑"}
body.dg55-social #page-reels .dg4-controls button:nth-child(2)::before{content:"↓"}
body.dg55-social #page-reels .dg4-controls button:nth-child(3)::before{content:"+"}
/* CREATE: real four starting choices, wired to existing R122 source workflow. */
body.dg55-social #page-create{max-width:750px;margin-inline:auto}
body.dg55-social #page-create>.page-intro{padding:15px 16px;min-height:90px;
 border:0;border-radius:17px;background:#fff;margin-bottom:10px;box-shadow:none}
body.dg55-social #page-create>.page-intro img{width:65px;max-height:70px}
body.dg55-social #page-create>.page-intro .eyebrow{display:none}
body.dg55-social #page-create>.page-intro h1{font-size:21px;color:#493377}
body.dg55-social #page-create>.page-intro p{font-size:12px;line-height:1.6}
body.dg55-social .dg55-create-chooser{background:#fff;border:1px solid #e9e2f7;
 padding:15px;border-radius:22px;margin:6px 0 12px}
body.dg55-social .dg55-create-chooser h2{font-size:20px;color:#443171;
 margin:2px 0 6px;text-align:center}
body.dg55-social .dg55-create-chooser>p{font-size:12px;color:#80758f;text-align:center}
body.dg55-social .dg55-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;margin:16px 0}
body.dg55-social .dg55-create-option{min-height:116px;display:flex;
 flex-direction:column;align-items:center;justify-content:center;gap:9px;
 border:1px solid #e9e2f8;border-radius:19px;background:#f3edff;color:#3c2c6c;
 font-weight:900;font-size:14px;cursor:pointer;transition:transform .16s}
body.dg55-social .dg55-create-option:nth-child(2){background:#e2f8f5}
body.dg55-social .dg55-create-option:nth-child(3){background:#fff0e7}
body.dg55-social .dg55-create-option:nth-child(4){background:#e8f0ff}
body.dg55-social .dg55-create-option .dg55-format-icon{width:49px;height:49px;
 display:grid;place-items:center;border-radius:15px;background:#ffffffa8;color:#6948c7}
body.dg55-social .dg55-create-option .dg55-format-icon svg{width:29px;height:29px;
 stroke:currentColor;stroke-width:2.1;fill:none}
body.dg55-social .dg55-create-option:active{transform:scale(.98)}
body.dg55-social .dg55-create-foot{background:#f5f1ff;border-radius:14px;
 color:#625681;padding:10px 12px;font-size:11px;line-height:1.7}
body.dg55-social #page-create .dg9-context{margin:6px 0}
body.dg55-social #page-create .u3-studio-panel{border:1px solid #e3daf1;background:#fff}
/* PROFILE: unified social identity, without fabricated followers or a second login. */
body.dg55-social #page-profile{max-width:750px;margin-inline:auto}
body.dg55-social #page-profile>.page-intro{min-height:72px;padding:12px 16px;
 background:#fff;border:1px solid #eee7f9;border-radius:17px;box-shadow:none}
body.dg55-social #page-profile>.page-intro h1{font-size:21px;color:#453176}
body.dg55-social #page-profile>.page-intro p{font-size:11px}
body.dg55-social #page-profile>.page-intro img{width:58px;max-height:60px}
body.dg55-social #dg11PersonalHub{background:#fff;border:1px solid #e8e2f6;
 box-shadow:0 9px 25px #35265b0a;border-radius:21px}
body.dg55-social #dg11PersonalHub .dg11-head{padding:16px;gap:15px}
body.dg55-social #dg11PersonalHub .dg11-mark{
 width:74px;height:74px;flex:none;border-radius:50%;
 display:grid;place-items:center;background:linear-gradient(135deg,#b6a7fa,#6850d0);
 color:#fff;border:4px solid #f4f0ff;font-size:31px;box-shadow:0 5px 14px #5340a130}
body.dg55-social #dg11PersonalHub .dg11-title{font-size:20px}
body.dg55-social #dg11PersonalHub .dg32-role-art{display:none}
body.dg55-social #dg11PersonalHub .dg11-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.dg55-social #dg11PersonalHub .dg11-action{min-height:74px;border-radius:14px}
body.dg55-social #page-profile #dg39FamilyClarity{border-radius:18px;margin-top:13px}
body.dg55-social #page-profile #dg32OneAccountDetails{border-radius:16px}
body.dg55-social #page-explore>.social-page-head{padding:8px 12px}
body.dg55-social #page-explore>.social-page-head h1{font-size:21px;margin:4px 0}
@media(max-width:660px){
 body.dg55-social .app-header{min-height:54px;padding:6px 0}
 body.dg55-social .bottom-nav{left:5px;right:5px;width:calc(100% - 10px);
 border-radius:18px;padding:5px 5px calc(5px + env(safe-area-inset-bottom))}
 body.dg55-social .bottom-nav button{min-height:55px;font-size:10px}
 body.dg55-social #page-home .r121-feed-canvas .u2-post-art{min-height:230px}
 body.dg55-social #page-reels>.social-page-head{min-height:36px}
 body.dg55-social #reelsList.dg4-player-enabled{max-width:none;width:calc(100% + 20px);margin-inline:-10px}
 body.dg55-social #page-reels #dg4ReelFrame{height:calc(100dvh - 190px - env(safe-area-inset-bottom));
  min-height:320px;border-radius:13px;box-shadow:none}
 body.dg55-social #page-reels .dg4-controls{top:54px;left:8px}
 body.dg55-social #page-reels .dg4-controls button{width:37px;min-width:37px;height:37px;min-height:37px}
 body.dg55-social .dg4-bottom{inset:auto 63px 28px 12px}
 body.dg55-social .dg4-bottom h3{font-size:16px}
 body.dg55-social .dg4-rail{right:7px;bottom:47px;gap:9px}
 body.dg55-social .dg4-action{font-size:25px;min-height:43px}
}
@media(max-width:345px){
 body.dg55-social #page-home .social-moments{gap:9px}
 body.dg55-social #dg11PersonalHub .dg11-mark{width:59px;height:59px;font-size:25px}
 body.dg55-social .dg55-create-option{min-height:102px;font-size:12px}
 body.dg55-social .dg4-action{font-size:22px;min-height:40px}
 body.dg55-social .dg4-rail{gap:5px}
}
@media(prefers-reduced-motion:reduce){
 body.dg55-social *{scroll-behavior:auto!important;transition:none!important}
}

/* T11 — 320px portrait Reels: preserve one frame without horizontal overflow.
 * At 320px the original app has 6px shell inset, not the 10px assumed above.
 * Narrow-only repair; 390px and wider keep their existing edge-to-edge framing. */
@media(max-width:345px){
 body.dg55-social #reelsList.dg4-player-enabled{
  width:100%;max-width:100%;margin-inline:0;
 }
}
