/* composer.css — copied from maa-ya.com (Maaya: wwwroot/dg/css/dg-composer.css, owner 2026-11-16), its values kept.
   The window (Maaya's .modal): fixed over the page, opened with .open */
.modal.dgc { position: fixed; inset: 0; z-index: 90; display: none; justify-content: center; background: rgba(0,0,0,.5); overflow: auto; }
.modal.dgc.open { display: flex; }
.dgc .dgc-sheet, .dgc .dgc-sheet * { box-sizing: border-box; }
.dgc .dgc-head .poplogo .mk { display: block; width: 58px; height: 58px; }
.dgc button { font-family: inherit; }

/* dg-composer.css — the "Create a post" wizard: HTML.zip's #createpostModal (style.css: .formstep, .cstradio-post,
   .chooseimg*, .otherigmlisting, .bottomfilterslider, .createpostcontentwrapper, .photouploadslider, .customimguploader,
   .createpostlistinglinks, .cmbutton), its values kept, adapted to phones. Loaded the first time the window opens. */
.dgc .dgc-sheet { width: 100%; max-width: 640px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 17px; padding: 14px 22px 18px; position: relative; }
.dgc { align-items: center !important; padding: 20px 12px !important; }
.dgc-head { display: flex; justify-content: center; align-items: center; position: relative; min-height: 56px; }
.dgc-head .poplogo { margin: 0; } .dgc-head .poplogo img { width: 58px; height: 58px; border-radius: 50%; }
.dgc-x { position: absolute; right: -6px; top: 0; font-size: 30px; line-height: 1; color: #7E95A9; background: none; border: 0; cursor: pointer; }
.dgc .formstep { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.dgc .formstep.active { display: block; }
.createpostbodytop > strong { font: 700 26px/1.2 Poppins, system-ui, sans-serif; color: #4F5368; display: block; margin: 8px 0 0; }
.createpostbodybottom { margin-top: 20px; }
.createpostbodybottom ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.cstradio-post { position: relative; cursor: pointer; }
.cstradio-post:before { content: ''; position: absolute; top: 7px; right: 7px; background: url(/img/cmp/radiotick.svg) no-repeat 0 0; width: 21px; height: 21px; opacity: 0; z-index: 2; }
.cstradio-post.active:before { opacity: 1; }
.cstradio-post label { display: block; background: #fff; border: #7E95A9 solid 1px; border-radius: 17px; width: 100%; padding: 26px 8px; cursor: pointer; margin: 0; }
.cstradio-post.active label { border-color: #1DA1F2; }
.cstradio-post label img { width: 72px; height: 72px; padding: 18px; background: #7E95A9; border-radius: 50%; display: block; margin: 0 auto; opacity: .7; }
.cstradio-post.active label img { background: #1DA1F2; opacity: 1; }
.cstradio-post label strong { font-size: 16px; color: #7E95A9; font-weight: 600; display: block; margin-top: 8px; text-align: center; }
.cstradio-post.active label strong { color: #1DA1F2; }
/* 2 — the gallery */
.chooseimgtop figure { width: 100%; height: 349px; margin: 0; border-radius: 12px; overflow: hidden; background: #F7F9FA; display: grid; place-items: center; position: relative; }
.chooseimgtop figure img, .chooseimgtop figure video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.dgc-empty { color: #7E95A9; font-weight: 600; padding: 20px; text-align: center; }
.chooseimgbottomtop { margin: 11px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chooseimgbottomtop > strong > span { font-size: 22px; color: #4F5368; }
.cmbutton { background: #1DA1F2; font-size: 16px; font-weight: bold; color: #fff; padding: 10px 36px; border: 1px solid transparent; border-radius: 50px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.cmbutton:hover { border-color: #1DA1F2; color: #1DA1F2; background: transparent; }
.cmbutton-outline { border: #1DA1F2 solid 1px; color: #1DA1F2; background: transparent; padding: 8px 18px; }
.cmbutton-outline:hover { background: #F7F9FA; }
.cmbutton[disabled] { opacity: .55; pointer-events: none; }
.otherigmlisting { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.otherigmlisting li { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; cursor: pointer; background: #F7F9FA; }
.otherigmlisting li:before { content: ''; position: absolute; top: 7px; right: 7px; background: url(/img/cmp/whitetickcheck.svg); width: 18px; height: 18px; opacity: 0; z-index: 2; }
.otherigmlisting li.selected:before { opacity: 1; }
.otherigmlisting li.current { outline: 3px solid #1DA1F2; outline-offset: -3px; }
.otherigmlisting li img, .otherigmlisting li video { width: 100%; height: 100%; object-fit: cover; display: block; }
.otherigmlisting li .dgc-vid { position: absolute; left: 6px; bottom: 6px; width: 18px; height: 18px; }
/* 3 — a filter per photo, the cover of a video */
.dgc-slide { position: relative; }
.dgc-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.25); display: grid; place-items: center; cursor: pointer; }
.dgc-nav.prev { left: 8px; } .dgc-nav.next { right: 8px; } .dgc-nav img { width: 8px; height: 13px; } .dgc-nav[hidden] { display: none; }
.dgc-count { position: absolute; right: 10px; top: 10px; z-index: 3; background: rgba(0,0,0,.55); color: #fff; font: 800 12px/1 Nunito, sans-serif; padding: 5px 8px; border-radius: 999px; }
.bottomfilterslider { margin: 18px 0 10px; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.bottomfilterslider .item { flex: 0 0 96px; cursor: pointer; }
.bottomfilterslider .item span { display: block; font-size: 14px; font-weight: 600; color: #002D56; text-align: center; margin-bottom: 8px; }
.bottomfilterslider .item figure { width: 96px; height: 96px; margin: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.bottomfilterslider .item.on figure { border-color: #1DA1F2; } .bottomfilterslider .item.on span { color: #1DA1F2; }
.bottomfilterslider .item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dgc-adjust { margin-top: 6px; } .dgc-adjust summary { cursor: pointer; font-weight: 800; color: #1DA1F2; }
.dgc-adjust label { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin-top: 8px; font-weight: 600; color: #4F5368; font-size: 14px; }
.dgc-cover { margin-top: 14px; } .dgc-cover b { display: block; color: #4F5368; margin-bottom: 6px; } .dgc-cover input { width: 100%; }
/* 4 — the caption and the thumbnails */
.createpostcontentwrappertop { padding-bottom: 14px; margin-bottom: 18px; border-bottom: #99DBF8 solid 1px; }
.createpostcontentwrappertop textarea { width: 100%; min-height: 96px; border: 0; outline: 0; resize: vertical; font: 16px/1.5 Nunito, system-ui, sans-serif; color: #002D56; }
.photouploadslider { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.photouploadslider .item { flex: 0 0 100px; position: relative; }
.photouploadslider .item figure { width: 100px; height: 100px; margin: 0; border-radius: 7px; overflow: hidden; }
.photouploadslider .item figure img, .photouploadslider .item figure video { width: 100%; height: 100%; object-fit: cover; }
.photouploadslider .item .del { position: absolute; top: 4px; right: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.customimguploader { position: relative; background: #F7F9FA; border: #1DA1F2 solid 1px; border-radius: 7px; height: 100px; padding: 19px 2px; cursor: pointer; display: block; }
.customimguploader input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.customimguploader img { background: #1DA1F2; border-radius: 50%; border: #89CDF5 solid 4px; display: block; margin: 0 auto; width: 36px; height: 36px; padding: 6px; }
.customimguploader span { font-size: 13px; font-weight: 600; color: #1DA1F2; display: block; text-align: center; margin-top: 4px; }
.createpostlistinglinks { margin: 20px 0 0; list-style: none; padding: 0; }
.createpostlistinglinks li a { font-size: 18px; padding: 0 0 10px; margin: 0 0 10px; border-bottom: #99DBF8 solid 1px; display: block; color: #002D56; text-decoration: none; }
.createpostlistinglinks li:last-child a { border-bottom: 0; font-size: 16px; text-transform: uppercase; color: #1DA1F2; }
.createpostlistinglinks input { width: 100%; border: 1px solid #99DBF8; border-radius: 8px; padding: 8px 10px; margin: -4px 0 12px; font: inherit; }
.dgc-adv { background: #F7F9FA; border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.dgc-adv label { font-weight: 600; color: #4F5368; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.dgc-adv .dgc-check { justify-content: flex-start; }
.dgc-adv select { border: 1px solid #99DBF8; border-radius: 8px; padding: 6px 8px; font: inherit; }
/* 2b — the text post editor */
.dgc-tpreview { margin: 6px 0 12px; }
.dgc-tpreview textarea { width: 100%; height: 100%; min-height: 220px; background: transparent; border: 0; outline: 0; resize: none; color: inherit; font: inherit; text-align: inherit; display: flex; }
.dgc-tpreview textarea::placeholder { color: inherit; opacity: .7; }
.dgc-tools { display: grid; gap: 10px; }
.dgc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .dgc-row > b { width: 120px; color: #4F5368; font-size: 14px; }
.dgc-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.dgc-chip { width: 30px; height: 30px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px #D9E2EA; cursor: pointer; padding: 0; background-size: cover; background-position: center; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #002D56; }
.dgc-chip.on { box-shadow: 0 0 0 2px #1DA1F2; }
.dgc-chip.txt { width: auto; padding: 0 10px; background: #F7F9FA; }
.dgc-upload img { width: 16px; height: 16px; }
/* the message and the footer (← back · Next) */
.dgc-msg { min-height: 20px; margin-top: 10px; font-weight: 700; color: #E21B2D; font-size: 14px; }
.dgc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.stepbackarrow a { display: block; visibility: hidden; } .stepbackarrow a.on { visibility: visible; }
@media (max-width: 600px) {
  .dgc .dgc-sheet { padding: 10px 14px 14px; max-height: calc(100vh - 20px); }
  .createpostbodytop > strong { font-size: 21px; }
  .createpostbodybottom ul { grid-template-columns: repeat(2, 1fr); }
  .cstradio-post label { padding: 18px 6px; } .cstradio-post label img { width: 58px; height: 58px; padding: 14px; }
  .chooseimgtop figure { height: 260px; }
  .otherigmlisting { grid-template-columns: repeat(4, 1fr); }
  .bottomfilterslider .item { flex-basis: 76px; } .bottomfilterslider .item figure { width: 76px; height: 76px; }
  .dgc-row > b { width: 100%; }
  .createpostlistinglinks li a { font-size: 16px; }
}
.dgc-adv[hidden], .createpostlistinglinks input[hidden], .dgc-cover[hidden], .bottomfiltersliderwrapper[hidden] { display: none; }
.createpostcontentwrappertop[hidden], .photouploadslider[hidden], .createpostlistinglinks li[hidden] { display: none; }
.cstradio-post label img[src*="quoteicon"] { padding: 25px; } @media (max-width: 600px) { .cstradio-post label img[src*="quoteicon"] { padding: 20px; } }

/* a link in the text: a plain text (no background) and the link's preview below it, as on Facebook */
.dgc-tpreview.dgc-plain { background: #fff; color: #14171A; border: 1px solid #E9EDF1; border-radius: 12px; padding: 12px 14px; text-align: left; }
.dgc-tpreview.dgc-plain textarea { min-height: 96px; font: 400 16px/1.45 Nunito, system-ui, sans-serif; }
.dgc-linkpv { position: relative; margin: 0 0 12px; border: 1px solid #E9EDF1; border-radius: 12px; overflow: hidden; min-height: 60px; }
.dgc-linkpv[hidden] { display: none; }
.dgc-linkpv.loading { background: linear-gradient(90deg, #F2F4F6 25%, #E9EDF1 50%, #F2F4F6 75%) 0 0 / 200% 100%; animation: dgcShim 1.2s linear infinite; }
@keyframes dgcShim { to { background-position: -200% 0; } }
.dgc-linkpv .dg-lk, .dgc-linkpv .dg-link, .dgc-linkpv .dg-lk-x, .dgc-linkpv .dg-lk-audio { margin: 0; border: 0; }
.dgc-linkpv .dg-lk-short .dg-lk-frame, .dgc-linkpv .dg-lk-post .dg-lk-frame { height: 300px; }
.dgc-linkpv .dg-lk-video .dg-lk-frame { max-height: 300px; }
.dgc-lpx { position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

/* a Reel's sound (phase 5): the row in step 4, the picker (trending sounds, a search, ▶ preview, Choose) */
.dgc-snd { display: flex; align-items: center; gap: 6px; }
.dgc-snd a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.dgc-snd a img { width: 18px; height: 18px; flex: none; }
.dgc-snd a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dgc-snd.on a { color: #E21B2D; font-weight: 700; }
.dgc-snd-x { border: 0; background: #EFF3F4; width: 24px; height: 24px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; flex: none; }
.dgc-sndpick { background: #F7F9FA; border-radius: 12px; padding: 10px; margin: 6px 0 10px; }
.dgc-sndpick input { width: 100%; border: 1px solid #E1E8ED; border-radius: 999px; padding: 8px 14px; font: 15px Inter, system-ui, sans-serif; background: #fff; }
.dgc-sndlist { max-height: 260px; overflow-y: auto; margin-top: 8px; }
.dgc-sndrow { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.dgc-sndcov { position: relative; flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; border: 0; padding: 0; background: #E9EDF1; cursor: pointer; }
.dgc-sndcov img { width: 100%; height: 100%; object-fit: cover; }
.dgc-sndcov i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .25); }
.dgc-sndcov i::before { content: ''; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; margin-left: 2px; }
.dgc-sndcov.on i::before { width: 11px; height: 13px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 4px, transparent 4px 7px, #fff 7px 11px); }
.dgc-sndwho { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dgc-sndwho b { font: 550 14px Inter, system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgc-sndwho small { color: #536471; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgc-sndchoose { flex: none; border: 1px solid rgba(15, 20, 25, .2); background: #fff; border-radius: 999px; padding: 5px 12px; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.dgc-sndnone { color: #536471; text-align: center; margin: 12px 0; }
.dgc-sndwait { height: 44px; border-radius: 8px; background: linear-gradient(90deg, #EEF1F4, #F7F9FA, #EEF1F4); background-size: 200% 100%; animation: dgcw 1.2s infinite linear; }
@keyframes dgcw { to { background-position: -200% 0; } }
/* the preview frame (owner 2026-10-29): it takes the picture's / video's own shape — a 9:16 reel or a tall photo is seen
   WHOLE (never cut), at most 62 % of the screen's height; empty, it keeps a comfortable tap area */
html .chooseimgtop figure { height: auto !important; min-height: 220px; max-height: none; background: #000; }
html .chooseimgtop figure:has(> .dgc-pick) { min-height: 260px; background: #F7F9FA; }
html .chooseimgtop figure > img, html .chooseimgtop figure > video { width: 100% !important; height: auto !important; max-height: 62vh; object-fit: contain; display: block; }
/* a reel or a story is ONE video / picture: no "Select Multiple" */
.dgc.dgc-single .chooseimgbottomtop .cmbutton-outline { display: none !important; }

/* the upload's progress (owner 2026-10-29): a bar, the %, the MB, under the step */
.dgc-up { margin: 10px 0 4px; }
.dgc-up-bar { height: 8px; border-radius: 8px; background: #E7ECF0; overflow: hidden; }
.dgc-up-bar i { display: block; height: 100%; width: 0; background: #1D9BF0; transition: width .25s; }
.dgc-up-t { display: block; margin-top: 6px; font: 500 13px/1.35 Inter, system-ui, sans-serif; color: #14171A; }

/* simple text / coloured background switch (owner 2026-11-04) */
.dgc-modes { display: flex; justify-content: flex-start; margin: 10px 0 4px; }
.dgc-mode { border: 1px solid #F6D3D6; background: #FFF7F8; color: #E21B2D; border-radius: 999px; padding: 7px 14px; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.dgc-mode[hidden] { display: none; }
/* the video's thumbnail (owner 2026-11-05, as YouTube / Instagram): the chosen frame large, a strip of 8 frames with a
   draggable selector, "Import a picture"; the link's own thumbnail under its preview */
.dgc-thumbrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.dgc-thumbbtn { display: inline-flex; align-items: center; } .dgc-thumbbtn span[hidden] { display: none; }
#dgcEdit { position: relative; }
#dgcEdit .dgc-editcv { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; background: #000; }
#dgcEdit .dgc-vthumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.dgc-cover { margin-top: 14px; }
.dgc-cv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dgc-cv-head b { font: 600 15px Inter, system-ui, sans-serif; color: #14171A; margin: 0; }
.dgc-cv-head span { font: 400 13px Inter, system-ui, sans-serif; color: #8A8FA3; text-align: right; }
.dgc-strip { position: relative; height: 64px; border-radius: 10px; background: #14171A; cursor: grab; touch-action: none; user-select: none; outline: none; padding: 0; }
.dgc-strip.drag { cursor: grabbing; }
.dgc-strip:focus-visible { box-shadow: 0 0 0 3px rgba(29,155,240,.35); }
.dgc-strip-frames { position: absolute; inset: 0; display: flex; border-radius: 10px; overflow: hidden; }
.dgc-strip-frames img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; opacity: .55; pointer-events: none; }
.dgc-strip-sel { position: absolute; top: -6px; left: 0; height: 76px; aspect-ratio: 16 / 9; border: 3px solid #fff; border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .06s linear; pointer-events: none; }
.dgc-strip.portrait .dgc-strip-sel { aspect-ratio: 9 / 16; }
.dgc-strip-sel canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.dgc-strip.loading .dgc-strip-sel { opacity: 0; }
.dgc-strip.loading::after { content: ''; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(90deg, #2a2f36 0%, #3a4048 50%, #2a2f36 100%); background-size: 200% 100%; animation: dgcShim 1.1s linear infinite; }
@keyframes dgcShim { from { background-position: 200% 0; } to { background-position: 0 0; } }
.dgc-strip.own .dgc-strip-sel { opacity: .35; }
.dgc-cv-acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.dgc-cv-up { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 600 14px Inter, system-ui, sans-serif; color: #1D9BF0; }
.dgc-cv-up img { width: 28px; height: 28px; padding: 3px; border-radius: 50%; background: #1D9BF0; box-sizing: border-box; }
.dgc-cv-up span[hidden], .dgc-cv-x[hidden] { display: none; }
.dgc-cv-x { border: 0; background: none; padding: 0; font: 500 13px Inter, system-ui, sans-serif; color: #4F5368; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* thefederalists.io: profile.css's .txt (a profile tile) must not reach the composer's text chips (Font, Size, Height) */
.dgc .dgc-chip.txt { position: static; inset: auto; display: grid; place-items: center; padding: 0 10px; text-align: center; overflow: visible; font-weight: 800; font-size: 13px; line-height: normal; text-wrap: nowrap; }
