:root{font-family:Inter,"Segoe UI",sans-serif;color:#17233c;background:#f5f5fb;--ink:#17233c;--muted:#69768e;--line:#e5e7f1;--purple:#7136e9}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;font-size:14px}button,.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:11px 16px;border:1px solid transparent;border-radius:9px;background:var(--purple);color:#fff;font-weight:600;text-decoration:none;cursor:pointer}button:disabled{opacity:.45;cursor:default}.secondary{background:#fff;color:#35415a;border-color:var(--line)}.textButton{background:transparent;color:#6934d0;padding:5px 0;font-size:13px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b6a0f6;outline-offset:3px}input,select,textarea{padding:11px 12px;border:1px solid #dce0ed;border-radius:9px;width:100%;min-width:0;color:var(--ink);background:#fff}textarea{resize:vertical;line-height:1.6}label{font-size:14px;color:#49566d;display:flex;flex-direction:column;gap:7px}form{display:flex;flex-direction:column;gap:17px}.check{display:flex;flex-direction:row;align-items:flex-start;gap:9px;line-height:1.6}.check input{width:auto;margin-top:5px;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:34px;letter-spacing:-1px;line-height:1.2}h2{font-size:21px;letter-spacing:-.4px}h3{font-size:17px}p{line-height:1.75}small{font-size:12px}.eyebrow{font-size:11px;font-weight:650;letter-spacing:.14em;color:#8b80a8;margin-bottom:9px}.muted{font-size:13px;color:var(--muted);line-height:1.75}.mfBrand{display:flex;align-items:center;gap:10px;font-size:24px;letter-spacing:-.8px;text-decoration:none;color:var(--ink);font-weight:700;white-space:nowrap}.mfLogo{background:linear-gradient(145deg,#a17af7,#6730e5);color:#fff;width:37px;height:37px;border-radius:11px;display:grid;place-items:center;font-size:26px;font-weight:600}.byline{font-size:11px;font-weight:400;letter-spacing:0;opacity:.7}.mfAuth{min-height:100dvh;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at top right,#e9e0ff,transparent 55%),#f5f5fb}.authLayout{display:grid;grid-template-columns:1fr 1fr;max-width:1030px;width:100%;min-height:670px;background:#fff;border-radius:22px;box-shadow:0 20px 80px #32205410;overflow:hidden}.authStory{background:linear-gradient(160deg,#111a31,#22183e);color:#fff;padding:46px;display:flex;flex-direction:column;justify-content:space-between;gap:38px}.authStory .mfBrand{color:#fff}.authStory h1{font-size:43px;letter-spacing:-1.5px;margin:17px 0}.authStory p{font-size:15px;color:#bfc4da;max-width:340px}.authStory .eyebrow{color:#b9a1ef}.storyFoot{display:flex;gap:8px;flex-wrap:wrap}.storyFoot span{font-size:11px;border:1px solid #ffffff25;border-radius:6px;padding:5px 8px;color:#ded5fa}.authCard{padding:50px 44px;display:flex;flex-direction:column;justify-content:center;gap:18px}.authCard h2{font-size:28px}.authCard #authContent{display:flex;flex-direction:column;gap:18px}.authCard a{color:#6d36d8;font-size:13px}.authCard .button{color:#fff}.authCard .button.secondary{color:#5e3c9e}.authCard .authFoot{display:flex;gap:19px;margin-top:15px}.authFoot a{font-size:11px;color:#7a8296}.accountState{text-transform:capitalize;background:#f0eafb;padding:10px 13px;color:#6b3bc0;border-radius:8px}.mfWorkspace{display:flex;min-height:100dvh}.mfRail{position:sticky;top:0;height:100dvh;width:225px;flex-shrink:0;background:#111a30;color:#c8d1e6;padding:26px 18px;display:flex;flex-direction:column;gap:28px}.mfRail .mfBrand{color:white;font-size:24px}.railIdentity{display:flex;flex-direction:column;gap:9px;background:#ffffff07;border:1px solid #ffffff15;border-radius:13px;padding:16px 13px;font-size:12px}.railIdentity small{font-size:10px;letter-spacing:.08em;color:#8a9bb9}.railIdentity strong{color:white;font-size:14px;overflow-wrap:anywhere}.mfRail nav{display:flex;flex-direction:column;gap:7px}.mfRail nav a,.mfRail nav button,.railBottom button{display:block;padding:12px 13px;border:0;text-align:left;border-radius:9px;color:#bcc7df;background:transparent;text-decoration:none;font-size:13px;font-weight:500}.mfRail nav a[aria-current=page]{background:#7136e9;color:white}.mfRail nav a:hover,.mfRail nav button:hover{background:#ffffff12}.railBottom{margin-top:auto;display:grid;gap:10px;font-size:12px;color:#afa1d6}.mfMain{max-width:1680px;min-width:0;flex:1;padding:32px}.pageTitle{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.pageTitle p:not(.eyebrow){font-size:15px;color:#7b87a0;margin-top:12px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.mfStats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.mfStats>div{background:#fff;border:1px solid var(--line);border-radius:13px;padding:19px 22px;display:flex;flex-direction:column;gap:9px}.mfStats span{font-size:12px;color:var(--muted)}.mfStats strong{font-size:27px;letter-spacing:-.5px}.studioGrid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px}.studioContent{display:flex;flex-direction:column;gap:22px;min-width:0}.panel{padding:23px;background:#fff;border:1px solid var(--line);border-radius:15px;min-width:0}.sectionTitle{display:flex;justify-content:space-between;align-items:center;gap:13px;margin-bottom:19px}.sectionTitle .actions select{width:auto;max-width:180px}.pageChoices{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:13px}.pageChoice{display:flex;flex-direction:row;align-items:center;gap:8px;padding:12px;background:#faf8ff;border:1px solid #e6def8;border-radius:9px;font-size:13px}.pageChoice input{width:auto}.pageChoice small{display:block;font-size:11px;color:var(--muted)}.pill{font-size:11px;background:#eee8fc;color:#6937ca;border-radius:6px;padding:5px 8px;display:inline-block;white-space:nowrap}.pill.trial,.pill.included,.pill.Scheduled{background:#e3f5ee;color:#157152}.pill.expired,.pill.suspended,.pill.rejected,.pill.Failed{background:#fce9ee;color:#b03b59}.dropZone{padding:30px 18px;border:1.5px dashed #d3c5ee;border-radius:12px;background:#fcfaff;text-align:center;align-items:center;gap:9px;cursor:pointer}.dropZone input{max-width:260px;font-size:12px;padding:6px}.dropZone span:not(.uploadPlus){font-size:12px}.dropZone small{font-size:11px;color:var(--muted)}.uploadPlus{font-size:27px;color:#8d66d9}.dropZone.dragging{background:#eee7fd}.libraryTools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:17px 0}.mediaGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:15px;margin-top:17px}.mediaCard{border:1px solid #e3e6ee;border-radius:11px;overflow:hidden}.mediaFrame{height:175px;background:#f0f1f7;position:relative}.mediaFrame img,.mediaFrame video{width:100%;height:100%;object-fit:contain}.mediaFrame .check{position:absolute;top:8px;left:8px;background:#fff;padding:5px;border-radius:5px}.mediaFrame .check input{margin:0}.mediaKind{position:absolute;right:8px;top:8px;background:#fff;border-radius:5px;padding:4px 7px;font-size:10px;color:#655079}.mediaBody{padding:12px;display:flex;flex-direction:column;gap:9px}.mediaBody>strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mediaBody textarea{font-size:13px;min-height:120px}.mediaActions{display:flex;gap:6px;flex-wrap:wrap}.mediaActions button{font-size:11px;padding:6px 8px}.empty{text-align:center;padding:40px 15px;color:#8b94a8}.empty p{font-size:13px;margin-top:9px}.planner .panel{position:sticky;top:20px}.planner h2{margin:0 0 21px}.planner form{gap:15px}.formPair{display:flex;gap:12px}.formPair>label{flex:1;min-width:0}.timeSlots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.timeSlots label{font-size:11px}.timeSlots input{font-size:12px;padding:8px 5px}.scheduleEstimate{display:flex;flex-direction:column;gap:7px;padding:13px;background:#f4f0fc;border-radius:9px;color:#6b548d;font-size:13px}.scheduleEstimate small{font-size:11px;line-height:1.7;color:#827292}#calendar{margin-top:22px}.tableWrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{font-size:10px;color:#7c869c;text-transform:uppercase;letter-spacing:.05em;font-weight:600}td,th{padding:15px 10px;border-bottom:1px solid var(--line);vertical-align:top}td small{display:block;font-size:11px;color:var(--muted);margin-top:5px;max-width:280px;overflow-wrap:anywhere}td strong{font-size:13px}td button{padding:6px 9px;font-size:11px;margin:0 4px 5px 0}dialog{width:min(540px,calc(100% - 26px));max-height:90dvh;border:1px solid #dddfee;border-radius:15px;overflow:auto;padding:26px;color:var(--ink);background:#fff}dialog::backdrop{background:#101a345e;backdrop-filter:blur(4px)}dialog h2{margin-bottom:10px}.wideDialog{width:min(880px,calc(100% - 26px))}.wideDialog .tableWrap{max-height:430px;margin-bottom:18px}#error,#authError,#adminError,#previewError,.dialogError,#decisionError{color:#b13354;font-size:13px;line-height:1.6}#error:empty,#feedback:empty,#authError:empty,#authFeedback:empty{display:none}#error,#feedback{margin-bottom:14px}#feedback,#authFeedback{color:#1c7a5b;font-size:13px}.notice{background:#edf5ff;border:1px solid #dce9fc;padding:12px;border-radius:9px;font-size:13px;margin-bottom:15px;color:#365b8f}#brandExamples{display:flex;flex-direction:column;gap:13px;margin-top:20px}.brandExample{padding:15px;background:#f6f3fc;border-radius:9px;font-size:13px;white-space:pre-wrap}.brandExample button{margin-top:8px}progress{width:100%;accent-color:var(--purple);margin-top:14px}.adminMain{max-width:1450px;padding:30px;margin:auto}.mfHeader{display:flex;align-items:center;gap:15px;margin-bottom:40px}.mfHeader>a:last-child{margin-left:auto;font-size:13px;color:var(--muted)}.adminFilters{display:flex;align-items:flex-end;gap:15px;margin:20px 0}.adminFilters label:first-child{flex:1}.adminFilters label:nth-child(2){width:210px}.adminFilters p{font-size:12px;color:var(--muted);padding-bottom:11px}.adminMain td:last-child{min-width:170px}.adminMain .panel p{margin:15px 0}.adminMain .panel .button{margin-right:10px}hr{border:0;border-top:1px solid var(--line);margin:25px 0}[hidden]{display:none!important}@media(max-width:1200px){.mfRail{width:185px;padding:24px 13px}.mfMain{padding:23px}.studioGrid{grid-template-columns:minmax(0,1fr) 290px;gap:16px}h1{font-size:29px}.panel{padding:18px}.pageTitle{align-items:flex-start}.mfStats>div{padding:17px}.mediaGrid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(max-width:950px){.mfRail{width:155px}.mfRail .mfBrand{font-size:20px;gap:6px}.mfLogo{width:29px;height:29px;font-size:21px}.studioGrid{grid-template-columns:minmax(0,1fr)}.planner .panel{position:static}.planner form{display:grid;grid-template-columns:1fr 1fr;align-items:start}.scheduleEstimate,.planner form>button{grid-column:1/-1}.planner .timeSlots{grid-template-columns:repeat(3,minmax(0,1fr))}.planner #captionContext{min-height:100px}.authStory{padding:33px}.authCard{padding:38px 29px}.authStory h1{font-size:35px}.byline{display:none}}
@media(max-width:650px){.mfAuth{padding:15px}.authLayout{grid-template-columns:1fr;min-height:0}.authStory{padding:23px;gap:20px}.authStory>div:nth-child(2){display:none}.storyFoot{display:none}.authCard{padding:29px 23px}.authCard h2{font-size:25px}.mfWorkspace{display:block}.mfRail{position:static;width:100%;height:auto;padding:13px 15px;display:flex;flex-direction:row;gap:14px;align-items:center;flex-wrap:wrap}.mfRail .mfBrand{font-size:22px}.railIdentity,.mfRail nav,.railBottom #logoutButton{display:none}.railBottom{margin:0 0 0 auto}.mfMain{padding:17px 12px}.pageTitle{flex-direction:column;gap:15px}h1{font-size:26px}.pageTitle p:not(.eyebrow){font-size:13px}.mfStats{grid-template-columns:1fr 1fr;gap:10px}.mfStats>div{padding:13px}.mfStats strong{font-size:23px}.sectionTitle{flex-wrap:wrap}.sectionTitle h2{font-size:19px}.panel{padding:16px}.mediaGrid{grid-template-columns:1fr}.mediaFrame{height:240px}.planner form{display:flex}.libraryTools{align-items:flex-start;gap:14px}.dropZone{padding:22px 10px}.dropZone strong{font-size:14px}.adminMain{padding:20px 12px}.mfHeader{gap:8px}.mfHeader .mfBrand{font-size:20px}.mfHeader>a:last-child{font-size:11px}.adminFilters{flex-wrap:wrap}.adminFilters label:first-child{min-width:100%}.adminFilters label:nth-child(2){flex:1}.adminMain td:last-child{min-width:150px}dialog{padding:20px}.mediaActions button{font-size:12px;padding:8px}#statusFilter{max-width:140px}}

@media(max-width:650px){.mfRail nav{display:flex;flex-direction:row;order:3;width:100%;overflow-x:auto;gap:7px;padding-bottom:3px}.mfRail nav a,.mfRail nav button{white-space:nowrap;flex-shrink:0;padding:8px 10px;font-size:13px}.railBottom #logoutButton{display:inline-flex;margin-top:7px;padding:6px 9px;font-size:12px}}

/* Clear signup completion, with the next action brought into view. */
.authCard #authContent{scroll-margin-top:24px}.signupNext{display:flex;flex-direction:column;gap:15px}.signupNextIcon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#e3f5ee;color:#157152;font-size:27px;font-weight:700}.signupNext .eyebrow{margin-bottom:0}.signupEmail{display:flex;flex-direction:column;gap:4px;padding:12px 15px;border:1px solid var(--line);border-radius:10px;background:#fafaff;overflow-wrap:anywhere}.signupEmail span{font-size:12px;color:var(--muted)}.signupEmail strong{font-size:14px}.signupApproval{padding:12px 15px;border:1px solid #f0dcad;border-radius:10px;background:#fff7e7;color:#86560e;font-size:14px;font-weight:600}.signupSteps{display:grid;gap:17px;margin:4px 0 0;padding-left:23px}.signupSteps li{padding-left:5px;line-height:1.5}.signupSteps li::marker{color:#7136e9;font-weight:700}.signupSteps strong{font-size:14px}.signupSteps p{margin-top:4px}.signupNext h2:focus{outline:none}

/* Task 4: MetaFlow colour and motion, preserving existing layout and controls. */
:root{--mf-ease:cubic-bezier(.2,.7,.3,1)}
.mfLogo{background:linear-gradient(140deg,#ae83ff,#793bea 55%,#5630cb);box-shadow:0 5px 16px #7136e92b;font-size:24px;font-weight:750;transition:box-shadow .18s var(--mf-ease),transform .18s var(--mf-ease)}.mfBrand:hover .mfLogo{box-shadow:0 7px 20px #7136e93b;transform:translateY(-1px)}
:is(.mfAuth,.mfWorkspace,.mfAdmin) :is(button,.button){transition:background-color .18s var(--mf-ease),border-color .18s var(--mf-ease),color .18s var(--mf-ease),box-shadow .18s var(--mf-ease),transform .14s var(--mf-ease)}
:is(.mfAuth,.mfWorkspace,.mfAdmin) :is(button,.button):not(.secondary):not(.textButton){box-shadow:0 3px 10px #7136e912}
@media(hover:hover){:is(.mfAuth,.mfWorkspace,.mfAdmin) :is(button,.button):not(:disabled):hover{transform:translateY(-1px);box-shadow:0 5px 16px #50328a18}:is(.mfAuth,.mfWorkspace,.mfAdmin) .secondary:not(:disabled):hover{background:#f5f1ff;border-color:#d6c7f7}.mediaCard:hover{border-color:#d6c5f6;box-shadow:0 6px 20px #43266f0b}}
:is(.mfAuth,.mfWorkspace,.mfAdmin) :is(button,.button):not(:disabled):active{transform:translateY(0) scale(.98);box-shadow:0 1px 5px #50328a15}
:is(.mfAuth,.mfWorkspace,.mfAdmin) :is(input,select,textarea){accent-color:var(--purple);transition:border-color .18s var(--mf-ease),box-shadow .18s var(--mf-ease),background-color .18s var(--mf-ease)}:is(.mfAuth,.mfWorkspace,.mfAdmin) :is(input,select,textarea):focus{border-color:#a483e8;box-shadow:0 0 0 3px #7136e90b}
.mfRail nav :is(a,button){transition:background-color .18s var(--mf-ease),color .18s var(--mf-ease),transform .18s var(--mf-ease)}.mfRail nav a[aria-current=page]{background:linear-gradient(105deg,#7136e9,#8750ec);box-shadow:0 5px 16px #7136e91a}
.mfStats>div{border-top-width:3px;transition:border-color .18s var(--mf-ease),box-shadow .18s var(--mf-ease)}.mfStats>div:nth-child(1){border-top-color:#9565ed;background:linear-gradient(140deg,#faf7ff,#fff 65%)}.mfStats>div:nth-child(1) strong{color:#7741cf}.mfStats>div:nth-child(2){border-top-color:#e8b14c;background:linear-gradient(140deg,#fffaf0,#fff 65%)}.mfStats>div:nth-child(2) strong{color:#a87618}.mfStats>div:nth-child(3){border-top-color:#43b78d;background:linear-gradient(140deg,#f0fbf6,#fff 65%)}.mfStats>div:nth-child(3) strong{color:#198263}.mfStats>div:nth-child(4){border-top-color:#df8199;background:linear-gradient(140deg,#fff5f8,#fff 65%)}.mfStats>div:nth-child(4) strong{color:#b84b6c}
.panel{transition:border-color .18s var(--mf-ease),box-shadow .18s var(--mf-ease)}.mediaCard,.pageChoice{transition:background-color .18s var(--mf-ease),border-color .18s var(--mf-ease),box-shadow .18s var(--mf-ease)}.pageChoice:has(input:checked){background:#f0e8ff;border-color:#af8be9;box-shadow:0 0 0 2px #7136e908}.pill.pending,.pill.unverified{background:#fff3db;color:#92651d}.pill.completed{background:#e3f5ee;color:#157152}
@keyframes mfSoftEnter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.authCard,.mfMain>.pageTitle,.adminMain>.pageTitle,.signupNext{animation:mfSoftEnter .24s var(--mf-ease) both}
:is(.mfAuth,.mfWorkspace,.mfAdmin) dialog {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s var(--mf-ease), transform .18s var(--mf-ease),
    display .18s allow-discrete, overlay .18s allow-discrete;
}
:is(.mfAuth,.mfWorkspace,.mfAdmin) dialog[open] {
  opacity: 1;
  transform: translateY(0);
}
:is(.mfAuth,.mfWorkspace,.mfAdmin) dialog::backdrop {
  opacity: 0;
  transition: opacity .18s ease, display .18s allow-discrete, overlay .18s allow-discrete;
}
:is(.mfAuth,.mfWorkspace,.mfAdmin) dialog[open]::backdrop {opacity: 1}
@starting-style {
  :is(.mfAuth,.mfWorkspace,.mfAdmin) dialog[open] {opacity: 0;transform: translateY(6px)}
  :is(.mfAuth,.mfWorkspace,.mfAdmin) dialog[open]::backdrop {opacity: 0}
}
@media(prefers-reduced-motion:reduce){:is(.mfAuth,.mfWorkspace,.mfAdmin) *,:is(.mfAuth,.mfWorkspace,.mfAdmin) *::before,:is(.mfAuth,.mfWorkspace,.mfAdmin) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}:is(.mfAuth,.mfWorkspace,.mfAdmin) :is(button,.button):hover,:is(.mfAuth,.mfWorkspace,.mfAdmin) :is(button,.button):active,.mfBrand:hover .mfLogo{transform:none!important}:is(.mfAuth,.mfWorkspace,.mfAdmin) dialog[open]::backdrop{animation:none!important}}

/* Shared Sinhala guide and password controls. */
.mfPasswordField{display:block;position:relative}.mfPasswordField input{padding-right:48px}.mfPasswordEye{position:absolute;right:5px;top:50%;transform:translateY(-50%)!important;width:36px;height:36px;padding:8px;background:transparent!important;border:0;color:#6c6285;box-shadow:none!important}.mfPasswordEye svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.mfPasswordEye .eyeSlash{display:none}.mfPasswordEye[aria-pressed=true] .eyeSlash{display:block}.mfPasswordEye:hover{color:#7136e9}.mfGuideButton{font-size:12px}.authFoot{flex-wrap:wrap;align-items:center}.authFoot .mfGuideButton{font-size:11px;padding:6px 9px}.mfGuide{line-height:1.85}.mfGuideHead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.mfGuideHead h2{font-size:25px;line-height:1.6}.mfGuideHead button{flex-shrink:0}.mfGuideIntro{padding:15px 18px;border-radius:11px;background:#f2ebff;color:#6133ac;font-size:15px;margin-bottom:23px}.mfGuideSteps{padding-left:28px;display:grid;gap:24px}.mfGuideSteps li{padding-left:7px}.mfGuideSteps li::marker{color:#7136e9;font-size:18px;font-weight:700}.mfGuideSteps h3{margin:0 0 8px;font-size:17px;line-height:1.8}.mfGuideSteps p,.mfGuideNote p{font-size:14px;line-height:1.95;color:#56637b}.mfGuideExample{padding:12px 15px;background:#edf7f3;border-radius:9px;margin-top:12px}.mfGuideNote{border:1px solid #f1ddaf;border-radius:11px;background:#fff9ec;padding:17px;margin-top:25px}.mfGuideNote>b{color:#93661f}.mfGuideNote p{margin-top:8px}@media(max-width:650px){.mfGuideHead{flex-direction:column;gap:12px}.mfGuideHead h2{font-size:21px}.mfGuideSteps{padding-left:22px}.mfGuideSteps li{padding-left:3px}.mfHeader{flex-wrap:wrap}.mfHeader .mfGuideButton{margin-left:auto}}

.mfHeader #adminSignOut{margin-left:auto;font-size:12px}

.mfAudience{min-width:0;margin:0 0 16px;padding:12px;border:1px solid var(--line,#e4e0ef);border-radius:12px}
.mfAudience legend{padding:0 6px;font-weight:700}
.mfAudience p{font-size:.82rem;margin:0 0 8px}
.mfAudiencePicker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.mfAudiencePicker input,.mfAudience select{min-width:0;width:100%}
.mfCountryList{display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:10px 0;list-style:none}
.mfCountryList:empty{display:none}
.mfCountryList li{display:flex;align-items:center;gap:5px;border-radius:16px;background:#f1eaff;color:#5934a1;padding:2px 3px 2px 9px;font-size:.8rem}
.mfCountryList button{min-width:26px;min-height:26px;padding:0;background:transparent;color:inherit;box-shadow:none}
.uploadQueue{display:grid;gap:6px;margin:12px 0}
.mfUploadRow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:9px 12px;border:1px solid #e4e0ef;border-radius:10px}
.mfUploadRow>div{flex:1 1 10rem;min-width:0;overflow-wrap:anywhere}
.mfUploadRow small{display:block;color:#69617d}

.mfUploadLayout,.mfScheduleLayout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(290px,1fr);gap:20px;align-items:start}
.mfSidebarStack,.mfFailedPanels,.mfCaptionSettings{display:grid;gap:16px;min-width:0}
.mfFailedPanels{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px}
.mfCaptionSettings,.mfSchedulePanel form{margin-top:17px}
.mfPanelActions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:18px}
.mfPanelActions>a:not(.button),#connectSchedulePage,#libraryEmpty>a{color:#6934d0;text-decoration:underline;font-size:14px}
.mfNavCount{display:inline-grid;place-items:center;min-width:22px;padding:2px 5px;margin-inline-start:4px;border-radius:20px;background:#fce8eb;color:#8f2540;font-size:11px}
.mfRail{overflow:auto}
.mfRail nav a[aria-current=page]:hover{background:#7136e9;color:white}
.mfDestinationHeading{margin:22px 0 13px}
#scheduleSelection{margin:12px 0 16px}
.mfSelectionList{list-style:none;margin:0;padding:0;max-height:min(48vh,380px);overflow:auto}
.mfSelectionList li{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.mfSelectionList li>div{min-width:0;overflow-wrap:anywhere}
.mfSelectionList small{display:block;color:var(--muted);line-height:1.55}
.mfSelectionList button{padding:7px 10px}
#library .libraryTools{position:sticky;top:0;z-index:2;background:white;padding:10px 0;border-bottom:1px solid var(--line);align-items:center}
#goSchedule{margin-inline-start:auto}
#workspaceHeading:focus{outline:none}
@media(max-width:950px){
 .mfUploadLayout,.mfScheduleLayout,.mfFailedPanels{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:650px){
 .mfRail nav{flex-wrap:wrap;overflow:visible}
 .mfRail nav a,.mfRail nav button{padding:7px 9px}
 #goSchedule{margin-inline-start:0}
 .mfPanelActions .button{white-space:normal}
}
.mfMediaStatuses{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:7px 0}
.mfMediaStatuses small{flex-basis:100%;color:#69617d}
.libraryTools{flex-wrap:wrap}
#previewRows td small{display:block;color:#69617d;margin-top:4px}
#jobs td:last-child button{margin:0 4px 4px 0}
#actionConfirmDialog{width:min(440px,calc(100% - 28px))}
#actionConfirmDialog form{gap:14px}
#actionConfirmDialog h2,#actionConfirmDialog p{margin:0}
#actionConfirmDialog p{overflow-wrap:anywhere}
#actionConfirmDialog .actions{justify-content:flex-end;flex-wrap:wrap}
#actionConfirmDialog .confirmDanger{background:#bd284c;color:#fff}
.captionKeywords{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}
.captionKeywords small{flex-basis:100%;color:#69617d}
.captionKeywords .pill{overflow-wrap:anywhere;max-width:100%}
.pill.Published,.pill.Submitted{background:#e3f5ee;color:#157152}

/* Content workspace controls */
.mfWorkspace {
  --purple: #6831d9;
  --muted: #57647c;
  background: #f5f5fb;
}
.mfWorkspace .mfMain {padding: clamp(18px, 3vw, 46px)}
.mfWorkspace .pageTitle {align-items: center; margin-bottom: 22px}
.mfWorkspace .panel {
  padding: clamp(16px, 2vw, 28px);
  border-radius: 18px;
  box-shadow: 0 2px 5px #20233d05;
}
.mfWorkspace .mfStats {margin-bottom: 24px}
.mfWorkspace .mfStats > div {gap: 6px}
.mfWorkspace :is(button, .button) {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}
.mfWorkspace .secondary {border-color: #dcddeb; color: #37415a}
.mfWorkspace :is(button, .button):not(.secondary, .textButton, .dangerButton):disabled {
  background: #eeebf5;
  color: #685e7b;
  opacity: 1;
  box-shadow: none;
}
.mfWorkspace .secondary:disabled, .mfWorkspace .textButton:disabled {opacity: .65}
.mfWorkspace .dangerButton {
  background: #fff6f7;
  border-color: #f0ced7;
  color: #9b2445;
}
.mfWorkspace .mfRail nav {gap: 5px}
.mfWorkspace .mfRail nav :is(a, button) {
  display: flex;
  align-items: center;
  min-height: 42px;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}
.mfWorkspace .mfRail nav a[aria-current=page] {
  background: #7540e8;
  box-shadow: inset 3px 0 #c0a5ff;
  font-weight: 700;
}
.mfWorkspace .mfRail button:disabled {background: transparent; color: #9aa5c0}
.mfWorkspace .railBottom #logoutButton {min-height: 36px}
.mfWorkspace .mfNavCount {margin-left: auto}
.mfWorkspace .mfCountryList button {min-height: 28px; min-width: 28px}
.mfWorkspace .mfAudiencePicker button {min-height: 43px}
.mfWorkspace .dropZone {
  position: relative;
  gap: 8px;
  padding: 28px 16px;
  border-color: #c9b5ee;
  border-radius: 15px;
}
.mfWorkspace .dropZone:is(:hover, :focus-within, .dragging) {
  background: #f5efff;
  border-color: #9660e7;
}
.mfWorkspace .dropZone:focus-within {outline: 3px solid #b6a0f6; outline-offset: 3px}
.mfWorkspace .dropZone input {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.mfWorkspace .dropZone:has(:disabled) :is(input, .button) {cursor: default}
.mfWorkspace .dropZone:has(:disabled) .button {opacity: .60}
.mfWorkspace .dropZone .mfChooseFile {font-size: 14px; margin: 4px 0}
.mfWorkspace .dropZone .uploadPlus {
  display: grid;
  place-items: center;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  background: #eee4ff;
  color: #6632c2;
  font-size: 25px;
}
.mfWorkspace .libraryTools label:has(select) {
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
}
.mfWorkspace #library .libraryTools {gap: 10px 14px; padding: 12px 0}
.mfWorkspace .mediaCard {border-radius: 14px}
.mfWorkspace .mediaCard:has(.mediaFrame input:checked) {
  border-color: #8854ea;
  box-shadow: 0 0 0 1px #8854ea;
}
.mfWorkspace .mediaFrame .check {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: 9px;
  cursor: pointer;
}
.mfWorkspace .mediaBody {padding: 14px}
.mfWorkspace .mediaBody > strong {white-space: normal; overflow-wrap: anywhere}
.mfWorkspace :is(.mediaActions, #jobs) button {
  min-height: 36px;
  font-size: 12px;
  padding: 6px 10px;
}
.mfWorkspace :is(.mfScheduleActions, .mfDialogActions) {
  justify-content: flex-end;
}
.mfWorkspace .mfDialogActions {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 3px;
}
.mfWorkspace .mfScheduleHeader {
  align-items: flex-start;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 10px;
}
.mfWorkspace .mfScheduleHeader h2 {margin-top: 9px}
.mfWorkspace .mfScheduleActions button {flex: 1 1 auto}
.mfWorkspace .mfScheduleActions button:first-child {flex-grow: 2}
.mfWorkspace #refreshTiming {justify-self: start; align-self: start}
.mfWorkspace dialog {
  border-radius: 18px;
  box-shadow: 0 24px 80px #18223a35;
}
.mfWorkspace input[type=checkbox] {width: 16px; height: 16px}
.mfWorkspace :is(.pageChoice, .mfUploadRow) {border-radius: 12px}
.mfWorkspace .pageChoice:has(input:checked) {border-color: #ab8beb}

.mfWorkspace .dropZone {
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* MetaFlow accounts and subscriptions */
.mfAuth {
  padding: clamp(14px, 4vw, 52px);
  background: radial-gradient(ellipse at 15% 10%, #e7dcff, transparent 55%), #f5f4fb;
}
.mfAuth .authLayout {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  min-height: 0;
  border: 1px solid #e9e6f3;
  border-radius: 24px;
}
.mfAuth .authStory {
  justify-content: flex-start;
  gap: clamp(45px, 12vh, 140px);
  padding: clamp(26px, 4vw, 52px);
  background: radial-gradient(ellipse at 40% 100%, #422584, transparent 72%), #151b34;
}
.mfAuth .authStory h1 {font-size: clamp(30px, 3.5vw, 48px); line-height: 1.12; margin-top: 0}
.mfAuth .authStory p {color: #d5d8ee; font-size: 16px}
.mfAuth .authCard {padding: clamp(26px, 4vw, 54px); gap: 12px}
.mfAuth .authCard h2 {font-size: clamp(25px, 3vw, 34px); line-height: 1.16}
.mfAuth .authCard h2:focus {outline: none}
.mfAuth .authCard #authContent {gap: 14px}
.mfAuth .authCard form {gap: 14px}
.mfAuth .authCard :is(input, select), .mfAdmin :is(input, select) {min-height: 44px}
.mfAuth .authCard :is(button, .button), .mfAdmin :is(button, .button) {min-height: 42px; border-radius: 10px}
.mfAuth .authCard .mfPasswordEye, .mfAdmin .mfPasswordEye {min-height: 36px}
.mfAuth .authCard p:is(#authFeedback, #authError):empty {display: none}
.mfAuth .authCard [type=submit] {min-height: 46px}
.mfAuth .authCard .mfCreateAccount {
  min-height: 46px;
  background: #efe7ff;
  color: #5525ad;
  border-color: #d9c7fa;
  font-size: 14px;
  font-weight: 700;
}
.mfAuth .authCard .mfCreateAccount:hover {background: #e8dbff; border-color: #bba1ef}
.mfAuth .mfOtpCode {letter-spacing: .34em; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums}
.mfAuthInline {display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center}
.mfAuth .authFoot {margin-top: 8px; border-top: 1px solid var(--line); padding-top: 15px}
.mfAuth.mfAccountPage .authLayout {display: block; max-width: 990px}
.mfAccountPage .authStory {padding: 19px clamp(20px, 4vw, 50px)}
.mfAccountPage .authStory > div {display: none}
.mfAccountSummary {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #f8f6ff;
  border: 1px solid #ece6fa;
  border-radius: 14px;
}
.mfAccountTitle {display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px}
.mfAccountTitle strong {font-size: 17px}
.mfAccountPackage {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid #e4d9fb;
  border-radius: 10px;
  background: #fff;
}
.mfAccountPackage h2 {margin: 0; font-size: 13px; font-weight: 650; color: var(--muted)}
.mfAccountPackage strong {font-size: 21px; line-height: 1.2; color: #492886}
.mfAccountBilling {display: grid; gap: 13px; margin-top: 5px}
.mfPackageOptions {border: 1px solid var(--line); border-radius: 12px}
.mfPackageOptions > summary {padding: 13px 14px; cursor: pointer; font-weight: 650; color: #56319d}
.mfPackageBody {display: grid; gap: 12px; padding: 0 14px 14px}
.mfBillingPages > .mfInvoiceCard {margin-top: 10px}
.mfPlanGrid {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px}
.mfPlanCard {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.mfPlanCard h4 {margin: 0; font-size: 15px}
.mfPlanCurrent {background: #f8f4ff; border-color: #b499ec}
.mfPlanCard button {width: 100%; margin-top: 2px}
.mfPlanPrice {font-size: 22px; font-weight: 720; letter-spacing: -.02em; line-height: 1.25}
.mfPlanPrice small {font-size: 12px; color: var(--muted); letter-spacing: 0; white-space: nowrap}
.mfInvoiceCard {padding: 13px 15px; border: 1px solid #e8defb; border-radius: 12px; background: #f8f4ff}
.mfInvoiceAmount {font-size: 17px; font-weight: 700; color: #56319d}
.mfBillingPages {padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px}
.mfBillingPages summary {font-size: 14px; font-weight: 650; cursor: pointer}
.mfBillingPage {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px}
.mfBillingPage button {font-size: 12px; color: #9b2445; border-color: #f0ced7}

.mfAdmin {background: #f5f4fb; min-height: 100dvh}
.mfAdmin .adminMain {padding: clamp(16px, 3vw, 40px)}
.mfAdmin .mfHeader {margin-bottom: 22px}
.mfAdmin .mfHeader .pill {font-weight: 650}
.mfAdmin .mfAdminTitle {margin-bottom: 18px; flex-wrap: wrap}
.mfAdminFeedback {color: #216d51; font-size: 13px; margin: 8px 0}
.mfAdminFeedback:empty, .mfAdmin #adminSignInError:empty, .mfAdmin #adminConfigNote:empty {display: none}
.mfAdmin:has(.mfAdminLogin:not([hidden])) {
  background: radial-gradient(ellipse at top right, #e8dcff, transparent 58%), #f3f4f7;
}
.mfAdmin:has(.mfAdminLogin:not([hidden])) .adminMain {
  min-height: 100dvh;
  display: grid;
  align-content: center;
}
.mfAdmin:has(.mfAdminLogin:not([hidden])) .mfHeader,
.mfAdmin #adminError:empty {display: none}
.mfAdmin .mfAdminLogin {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-height: 570px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 25px 70px #27324a17;
}
.mfAdminLogin .authStory {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #121727, #201538);
  padding: clamp(30px, 5vw, 55px);
}
.mfAdminLogin .authStory::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -165px;
  bottom: -160px;
  border: 66px solid #7047d64d;
  border-radius: 50%;
  pointer-events: none;
}
.mfAdminLogin .authStory > * {position: relative; z-index: 1}
.mfAdminLogin .authStory h2 {
  max-width: 400px;
  margin: 8px 0 14px;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.mfAdminLogin .authStory p {line-height: 1.65}
.mfAdminLoginFeatures {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  color: #e1dced;
  font-size: 13px;
  list-style: none;
}
.mfAdminLoginFeatures li {display: flex; align-items: center; gap: 9px}
.mfAdminLoginFeatures li::before {
  content: "✓" / "";
  display: grid;
  flex: 0 0 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: #ffcb29;
  color: #29203d;
  font-weight: 750;
}
.mfAdminLogin .authCard {min-width: 0; padding: clamp(26px, 4.5vw, 52px); gap: 22px}
.mfAdminLogin .authCard h1 {margin-bottom: 8px; font-size: clamp(26px, 3vw, 32px); line-height: 1.15}
.mfAdminLogin .authCard form {gap: 15px}
.mfAdminLogin form > label {font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase}
.mfAdminLogin form input {font-size: 16px; font-weight: 400; letter-spacing: normal; text-transform: none}
.mfAdminLogin form input[autocomplete="one-time-code"] {letter-spacing: .28em}
.mfAdminLogin .owner-verification {margin: 0}
.mfAdminLogin #adminSignInError {color: #b13354; font-size: 13px}
.mfAdminLogin #adminSignInButton {min-height: 44px; background: linear-gradient(105deg, #6728d5, #8654f8)}
.mfAdminLoginNav {display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px}
.mfAdminLoginNav a {display: inline-flex; align-items: center; min-height: 42px; font-weight: 650}
.mfAdminLoginNav .mfGuideButton {font-weight: 650}
@media (max-width: 720px) {
  .mfAdmin .mfAdminLogin {grid-template-columns: minmax(0, 1fr); min-height: 0}
  .mfAdminLogin .authStory {padding: 21px 24px; gap: 10px}
  .mfAdminLogin .authStory::after,
  .mfAdminLogin .mfAdminLoginFeatures,
  .mfAdminLogin .mfAdminLoginStory > :not(.eyebrow) {display: none}
  .mfAdminLogin .authStory .mfAdminLoginStory {display: block}
  .mfAdminLogin .authCard {padding: 24px; gap: 18px}
}
.mfAdminSummary {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px}
.mfAdminSummary .mfAdminStat {
  display: grid;
  justify-content: start;
  justify-items: start;
  gap: 5px;
  color: #4b5470;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}
.mfAdminStat strong {color: #5d2abf; font-size: 24px; line-height: 1}
.mfAdminSummary .mfAdminStat[aria-pressed=true] {border-color: #9b76e6; background: #f1e9ff}
.mfAdminTable {padding: 4px 16px; border-radius: 15px}
.mfAdminTable td {min-width: 105px; overflow-wrap: anywhere}
.mfAdminRowActions {display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px}
.mfAdmin .mfAdminRowActions button {min-height: 35px; margin: 0; font-size: 12px}
.mfAdminMore {min-width: 64px}
.mfAdminMore summary {padding: 8px 5px; font-size: 12px; font-weight: 650; cursor: pointer}
.mfAdminMore .actions {padding-top: 5px}
.mfAdminDialogActions {justify-content: flex-end}
.mfAdmin #billingForm fieldset {margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px}
.mfAdmin #billingForm fieldset legend {font-size: 13px; font-weight: 700}
.mfAdmin #billingForm fieldset .check {margin-top: 10px; align-items: center}
.mfAdmin #billingForm input[type=checkbox] {min-height: 0; margin: 0}
.mfAdmin #adminInvoice p, .mfAdmin #billingFeedback {margin: 0}

@media (max-width: 750px) {
  .mfAdminSummary {grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 650px) {
  .mfAuth .authLayout {grid-template-columns: 1fr}
  .mfAuth .authStory {padding: 18px 23px}
  .mfPlanGrid {grid-template-columns: 1fr}
  .mfPlanCard {grid-template-columns: minmax(0, 1fr) auto; align-items: center}
  .mfPlanCard > p:first-of-type {grid-column: 1}
  .mfPlanCard > p:last-of-type {grid-column: 1}
  .mfPlanCard > button {grid-column: 2; grid-row: 2 / span 2}
  .mfPlanPrice {font-size: 20px}
  .mfAdmin .mfHeader {gap: 10px; margin-bottom: 18px}
  .mfAdmin .mfHeader > a:last-child {margin-left: 0}
  .mfAdmin .adminFilters {gap: 8px}
  .mfAdmin .mfAdminTable {padding: 0; background: transparent; border: 0}
  .mfAdminTable table, .mfAdminTable tbody {display: block}
  .mfAdminTable thead {position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden}
  .mfAdminTable tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    gap: 8px;
    padding: 12px;
    margin-bottom: 9px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
  }
  .mfAdmin .mfAdminTable td {min-width: 0; padding: 2px 0; border: 0}
  .mfAdmin .mfAdminTable td:last-child {grid-column: 1/-1}
}
.mfWorkspace .mfUploadHead {flex-wrap: wrap}
.mfWorkspace .mfPanelActions:has(#uploadFailureLink[hidden]) {display: none}
.mfWorkspace .dropZone[data-uploading] {
  border-color: #9064e8;
  background: #f7f2ff;
  box-shadow: 0 0 0 3px #7846e311;
}
.mfWorkspace .dropZone.dragging .uploadPlus {animation: mfUploadArrow .9s ease-in-out infinite}
.mfUploadStatus {
  --upload-accent: #6831d9;
  --upload-surface: #f3edff;
  padding: 13px 15px;
  margin-top: 13px;
  border: 1px solid #e5d9f9;
  border-radius: 14px;
  background: var(--upload-surface);
  animation: mfUploadIn .24s var(--mf-ease) both;
}
.mfUploadStatus[data-phase="done"] {
  --upload-accent: #156649;
  --upload-surface: #edf8f1;
  border-color: #d4efdf;
}
.mfUploadStatus[data-phase="issue"] {
  --upload-accent: #87530b;
  --upload-surface: #fff8ec;
  border-color: #f2e1c3;
}
.mfUploadStatusHeader {display: flex; align-items: center; gap: 11px}
.mfUploadStatusCopy {flex: 1; min-width: 0; display: grid; gap: 3px}
.mfUploadStatusCopy strong {font-size: 14px; color: var(--ink)}
.mfUploadStatusCopy span {font-size: 12px; color: var(--muted); line-height: 1.45}
.mfUploadPercent {font-size: 13px; font-weight: 700; color: var(--upload-accent); font-variant-numeric: tabular-nums}
.mfUploadIndicator {
  flex: 0 0 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--upload-accent);
  font-weight: 750;
}
.mfUploadIndicator::before {content: ""}
.mfUploadStatus:is([data-phase="upload"], [data-phase="caption"]) .mfUploadIndicator::before {
  width: 15px;
  height: 15px;
  border: 2px solid #e3d4fb;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: mfUploadSpin .78s linear infinite;
}
.mfUploadStatus[data-phase="done"] .mfUploadIndicator::before {content: "✓"}
.mfUploadStatus[data-phase="issue"] .mfUploadIndicator::before {content: "!"}
.mfUploadStatus #uploadProgress {
  display: block;
  width: 100%;
  height: 6px;
  margin: 11px 0 0;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #0001;
  accent-color: var(--upload-accent);
}
.mfUploadStatus #uploadProgress::-webkit-progress-bar {border-radius: 9px; background: #0001}
.mfUploadStatus #uploadProgress::-webkit-progress-value {
  border-radius: 9px;
  background: var(--upload-accent);
  transition: width .26s var(--mf-ease);
}
.mfUploadStatus #uploadProgress::-moz-progress-bar {border-radius: 9px; background: var(--upload-accent)}
.mfWorkspace #uploadQueue {
  max-block-size: min(28vh, 220px);
  overflow: auto;
  padding: 2px 5px 2px 2px;
  scrollbar-gutter: stable;
}
.mfWorkspace :is(#uploadQueue, .mfSidebarStack) {
  scrollbar-color: #b8a7d7 #f2edf9;
  scrollbar-width: thin;
}
.mfWorkspace :is(#uploadQueue, .mfSidebarStack):focus-visible {outline: 2px solid #9f7dea; outline-offset: 3px}
.mfWorkspace #library .libraryTools {display: grid; gap: 9px}
.mfLibraryToolbar, .mfLibraryDelete {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
}
.mfLibraryDelete {
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mfLibraryDelete .muted {margin-inline-end: auto}
@keyframes mfUploadIn {from {opacity: 0; transform: translateY(5px)}}
@keyframes mfUploadSpin {to {transform: rotate(1turn)}}
@keyframes mfUploadArrow {50% {transform: translateY(-3px)}}

@media (min-width: 951px) {
  .mfWorkspace #upload .mfSidebarStack {
    max-block-size: max(256px, calc(100dvh - 215px));
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 2px 5px 8px 2px;
  }
}

@media (max-height: 760px) and (min-width: 651px) {
  .mfWorkspace .mfMain {padding-block: 23px}
  .mfWorkspace .pageTitle {margin-bottom: 15px}
  .mfWorkspace .mfStats {margin-bottom: 15px}
  .mfWorkspace .mfStats > div {padding-block: 9px; gap: 3px}
  .mfWorkspace .mfStats strong {font-size: 23px}
  .mfWorkspace .mfRail {padding-block: 18px; gap: 17px}
  .mfWorkspace .railIdentity {padding-block: 10px; gap: 5px}
  .mfWorkspace .mfRail nav :is(a, button) {min-height: 35px; padding-block: 7px}
  .mfWorkspace .dropZone {padding-block: 16px}
  .mfWorkspace .dropZone .uploadPlus {display: none}
}

@media (max-width: 650px) {
  .mfWorkspace .pageTitle {align-items: stretch; gap: 12px}
  .mfWorkspace .pageTitle .actions > button {flex: 1 1 0}
  .mfWorkspace .mfRail nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mfWorkspace .mfRail nav :is(a, button) {padding: 8px; font-size: 12px}
  .mfWorkspace .mfRail nav .mfNavCount {margin-inline-start: 2px}
  .mfWorkspace #library .libraryTools {position: static}
  .mfWorkspace .libraryTools label:has(select) {flex: 1 1 100%}
  .mfWorkspace #goSchedule {flex: 1 1 100%}
  .mfWorkspace .mfLibraryDelete .actions {width: 100%}
  .mfWorkspace .mfLibraryDelete .actions button {flex: 1 1 auto}
  .mfWorkspace .mfScheduleActions {width: 100%}
  .mfWorkspace .mfPanelActions > .button {width: 100%}
  .mfWorkspace :is(.mediaActions, #jobs) button {min-height: 42px}
  .mfWorkspace #calendar .tableWrap {overflow: visible}
  .mfWorkspace #calendar table {display: block}
  .mfWorkspace #calendar thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .mfWorkspace #jobs {display: grid; gap: 12px}
  .mfWorkspace #jobs tr {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .mfWorkspace #jobs td {display: block; padding: 0; border: 0; overflow-wrap: anywhere}
  .mfWorkspace #jobs td[data-label]::before {
    content: attr(data-label) " · ";
    font-weight: 700;
    color: var(--muted);
  }
  .mfWorkspace #jobs td:last-child:not(:empty) {padding-top: 4px}
}

/* Shared action and status colors */
:where(.mfAuth, .mfAdmin, .mfWorkspace) {
  --mf-violet: #612bcf;
  --mf-violet-dark: #5121b8;
  --mf-violet-surface: #f1ebff;
  --mf-warning: #80470c;
  --mf-warning-surface: #fff5e2;
  --mf-success: #146348;
  --mf-success-surface: #e6f6ee;
  --mf-danger: #9c2447;
  --mf-danger-surface: #fff1f4;
}
.mfWorkspace .mfPrimary, .mfAuth .authCard [type=submit] {
  background: linear-gradient(115deg, var(--mf-violet), var(--mf-violet-dark));
  border-color: transparent;
  color: #fff;
}
.mfWorkspace .mfPrimary:disabled {background: #eeebf5}
.mfWorkspace .mfSoft {
  background: var(--mf-violet-surface);
  border-color: #e0d4fb;
  color: #5426ab;
}
.mfWorkspace .mfWarning {
  background: var(--mf-warning-surface);
  border-color: #f0d9ad;
  color: var(--mf-warning);
}
:is(.mfWorkspace, .mfAuth) .dangerButton {
  background: var(--mf-danger-surface);
  border-color: #f0ced7;
  color: var(--mf-danger);
}
@media (hover:hover) {
  .mfWorkspace .mfWarning:not(:disabled):hover {background: #ffebc9; border-color: #e5c48d}
  :is(.mfWorkspace, .mfAuth) .dangerButton:not(:disabled):hover {background: #fce3eb; border-color: #e8b7c7}
}
:is(.mfWorkspace, .mfAuth, .mfAdmin) .pill:is(.expired,.Draft,.pending,.unverified) {
  background: var(--mf-warning-surface);
  color: var(--mf-warning);
}
:is(.mfWorkspace, .mfAuth, .mfAdmin) .pill:is(.trial,.included,.paid,.Scheduled,.Published,.Submitted) {
  background: var(--mf-success-surface);
  color: var(--mf-success);
}
:is(.mfWorkspace, .mfAuth, .mfAdmin) .pill:is(.Failed,.rejected,.suspended) {
  background: var(--mf-danger-surface);
  color: var(--mf-danger);
}
:is(.mfWorkspace, .mfAuth, .mfAdmin) :is(#error,#authError,#adminError,#feedback,#authFeedback,#adminFeedback):not(:empty) {
  padding: 10px 13px;
  border-radius: 10px;
}
:is(.mfWorkspace, .mfAuth, .mfAdmin) :is(#error,#authError,#adminError):not(:empty) {
  color: var(--mf-danger);
  background: var(--mf-danger-surface);
}
:is(.mfWorkspace, .mfAuth, .mfAdmin) :is(#feedback,#authFeedback,#adminFeedback):not(:empty) {
  color: var(--mf-success);
  background: var(--mf-success-surface);
}
.mfWorkspace .mfStats .mfStat {
  --stat-color: var(--mf-violet);
  --stat-surface: #f7f2ff;
  display: grid;
  justify-items: start;
  justify-content: stretch;
  text-align: start;
  gap: 5px;
  padding: 12px 17px;
  min-width: 0;
  border-color: var(--line);
  border-top: 3px solid var(--stat-color);
  border-radius: 13px;
  color: var(--muted);
  background: linear-gradient(130deg, var(--stat-surface), #fff 80%);
}
.mfWorkspace .mfStats .mfStat:hover {border-color: var(--stat-color); background: var(--stat-surface)}
.mfWorkspace .mfStat strong {font-size: clamp(22px, 2.2vw, 28px); color: var(--stat-color)}
.mfWorkspace .mfStat span {font-weight: 650}
.mfWorkspace .mfStat[data-job-status=Draft] {--stat-color: var(--mf-warning); --stat-surface: var(--mf-warning-surface)}
.mfWorkspace .mfStat[data-job-status=Scheduled] {--stat-color: var(--mf-success); --stat-surface: var(--mf-success-surface)}
.mfWorkspace .mfStat[data-show-view=failed] {--stat-color: var(--mf-danger); --stat-surface: var(--mf-danger-surface)}
.mfWorkspace #libraryEmpty .button {
  margin-top: 13px;
  color: #fff;
  text-decoration: none;
}
.mfAccessLink {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 9px;
  text-decoration: none;
  color: #e7dbff;
  background: #ffffff10;
}
.mfAccessLink.mfAccessTrial {color: #ffe2a9}
.mfAccessLink:hover {background: #ffffff20}
.mfAuth .authCard .mfRecovery {justify-self: start; align-self: start}
.mfAuth .authFoot a.button {color: #5532a0}
.mfAdminMore summary {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8ff;
  padding-inline: 9px;
}
.mfAdminMore summary:hover {background: var(--mf-violet-surface)}
.mfAdminSummary .mfAdminStat:nth-child(1) strong, .mfAdminSummary .mfAdminStat:nth-child(3) strong {color: var(--mf-warning)}
.mfAdminSummary .mfAdminStat:nth-child(4) strong {color: var(--mf-success)}
.mfAdmin .mfTermCountdown {margin-top: 8px; font-weight: 650; font-variant-numeric: tabular-nums}
.mfReelCover {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #faf8ff;
}
.mfReelCover span {flex: 1 0 100%; font-size: 11px; font-weight: 600; color: #59448a}
.mfReelCover button {font-size: 11px; padding: 6px 8px}
@media (max-width: 650px) {
  .mfWorkspace .mfStats .mfStat {padding: 10px 12px}
  .mfAuth .authCard .mfRecovery {align-self: stretch}
}

:root:has(.mfOwnerPortal){scrollbar-gutter:stable}
.mfOwnerPortal .adminMain{padding:20px;max-width:none}
.mfOwnerPortal .mfHeader{margin-bottom:16px}
@media(max-width:760px){.mfOwnerPortal .adminMain{padding:12px}}

/* MetaFlow account directory and Page connections */
.mfAdmin .adminMain{max-width:1470px}
.mfOwnerPortal .adminMain{width:100%;max-width:none}
.mfAdmin .mfAdminTitle{margin:18px 0 20px;align-items:flex-end}
.mfAdminTitle h1{font-weight:750;letter-spacing:-.055em}
.mfAdminTitle p:not(.eyebrow){margin-top:6px;color:#63708a}
.mfAdminSummary .mfAdminStat{padding:16px 17px;border-radius:14px;border:1px solid #e3dcee;background:linear-gradient(145deg,#fff,#faf7ff);box-shadow:0 5px 15px #3a216208;transition:border-color .18s,background .18s}
.mfAdminSummary .mfAdminStat:hover{border-color:#b297ea}
.mfAdminSummary .mfAdminStat[aria-pressed=true]{color:#50219f;border-color:#a679eb;background:#eee4ff}
.mfAdminStat strong{color:#5422a8}
.mfAdmin .adminFilters{background:#fff;border:1px solid #e8e2f1;border-radius:14px;padding:14px;align-items:end}
.mfAdminTable{padding:0 16px;overflow:visible;box-shadow:0 5px 16px #29174e06}
.mfAdminTable table{table-layout:fixed}
.mfAdminTable th{color:#555f7a;background:#faf8fe;padding-top:14px;padding-bottom:14px}
.mfAdminTable th:nth-child(1){width:25%}
.mfAdminTable th:nth-child(2){width:18%}
.mfAdminTable th:nth-child(3){width:23%}
.mfAdminTable th:nth-child(4){width:15%}
.mfAdminTable td,.mfAdmin .mfAdminTable td:last-child{min-width:0;padding-top:16px;padding-bottom:16px}
.mfAdminTable tbody tr:last-child td{border-bottom:0}
.mfAdminTable tbody tr:hover{background:#fbf9ff}
.mfAdminTable td:first-child strong{font-size:14px;color:#1e2842}
.mfAccountDetails{position:relative;margin-top:8px;width:max-content;max-width:100%}
.mfAccountDetails summary,.mfAdminMore summary{width:max-content;max-width:100%;color:#5927b6;font-size:12px;font-weight:700;cursor:pointer;border-radius:7px}
.mfAccountDetails summary:focus-visible,.mfAdminMore summary:focus-visible{outline:2px solid #9b76e6;outline-offset:3px}
.mfAccountMetadata{position:absolute;z-index:35;top:calc(100% + 8px);left:0;display:grid;gap:5px;width:min(300px,calc(100vw - 42px));padding:13px 14px;background:#fff;border:1px solid #e2d8f1;border-radius:13px;box-shadow:0 16px 42px #25133f2b}
.mfAccountDetails:not([open])>.mfAccountMetadata{display:none}
.mfAccountMetadata small{display:block;line-height:1.42;color:#47536d;overflow-wrap:anywhere}
.mfAdminRowActions{gap:7px}
.mfAdminRowActions>button{white-space:normal}
.mfAdminRowActions>small{flex:0 0 100%;line-height:1.45;margin:0}
.mfAdminMore{position:relative;min-width:0;max-width:100%}
.mfAdminMore summary{border:1px solid #e9ddf8;background:#faf6ff;padding:8px 9px}
.mfAdminMoreMenu{position:absolute;z-index:40;top:calc(100% + 8px);right:0;display:grid;gap:5px;width:min(250px,calc(100vw - 36px));max-height:min(430px,70vh);overflow:auto;padding:9px;background:#fff;border:1px solid #e2d8f1;border-radius:13px;box-shadow:0 18px 46px #25133f30}
.mfAdminMore:not([open])>.mfAdminMoreMenu{display:none}
.mfAdminActionLabel{margin:4px 3px 1px;color:#727d94;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.mfAdminActionLabel:not(:first-child){padding-top:7px;border-top:1px solid #eee8f6}
.mfAdmin .mfAdminMoreMenu button{justify-content:flex-start;line-height:1.3;text-align:left;width:100%}
.mfAdmin .mfAdminMoreMenu .mfAdminDanger{color:#9d2443;background:#fff3f5;border-color:#f3cbd4}
.mfPageConnections .sectionTitle{margin-bottom:11px}
.mfConnectActions{margin-bottom:16px}
.mfFacebookDialog{width:min(580px,calc(100% - 26px))}
.mfFacebookChoices{display:grid;gap:8px;max-height:min(48vh,410px);overflow:auto;padding:3px}
.mfFacebookChoice{flex-direction:row;align-items:center;gap:10px;padding:11px 13px;border:1px solid #e6def4;border-radius:12px;background:#fff;cursor:pointer}
.mfFacebookChoice:has(input:checked){border-color:#a781ee;background:#f5efff}
.mfFacebookChoice:has(input:disabled){opacity:.7;cursor:default}
.mfFacebookChoice input{width:18px;height:18px;flex:none;accent-color:#7136e9}
.mfFacebookAvatar{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;background:#ebdfff;color:#6028b8;font-weight:750}
.mfFacebookPageName{display:grid;gap:3px;overflow-wrap:anywhere}
.mfFacebookPageName small{color:#65718b}
#pageAiDialog h2,#facebookPickerTitle{margin-bottom:6px}
@media(max-width:820px){
 .mfAdmin .mfAdminTable{background:transparent;border:0;padding:0;box-shadow:none}
 .mfAdminTable table,.mfAdminTable tbody{display:block}
 .mfAdminTable thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .mfAdminTable tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;background:#fff;border:1px solid #e7def2;border-radius:14px;margin:0 0 11px;padding:12px 13px}
 .mfAdminTable tbody tr td{border:0;padding:0;min-width:0}
 .mfAdminTable tbody tr td:first-child,.mfAdminTable tbody tr td:last-child{grid-column:1/-1}
 .mfAdminTable td[data-label]:not(:first-child):not(:last-child)::before{content:attr(data-label);display:block;font-size:11px;color:#66738d;margin-bottom:3px}
 .mfAdminMoreMenu{left:0;right:auto}
 .mfAdmin .mfAdminTitle{align-items:flex-start}
}
@media(max-width:480px){.mfAdmin .adminFilters{display:grid;grid-template-columns:1fr;gap:8px}.mfAdmin .adminFilters label{width:100%}.mfAdmin .adminFilters p{padding-bottom:0}.mfAdminSummary .mfAdminStat{padding:12px}.mfAdminTable tbody tr{gap:9px}}
@media(prefers-reduced-motion:reduce){.mfAdminSummary .mfAdminStat{transition:none}}
.mfPlatformAiPanel{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(360px,1.2fr);gap:28px;align-items:start;margin:18px 0}.mfPlatformAiPanel h2{margin:.15rem 0}.mfPlatformAiPanel form{display:grid;grid-template-columns:1fr 220px;gap:12px 16px;align-items:end}.mfPlatformAiPanel form>.check,.mfPlatformAiPanel form>.actions,.mfPlatformAiPanel form>.dialogError{grid-column:1/-1}.mfPlatformAiPanel .actions{justify-content:space-between;align-items:center}@media(max-width:800px){.mfPlatformAiPanel,.mfPlatformAiPanel form{grid-template-columns:1fr}}
