/* Flowly 10.37.23 — a final shared visual layer. Presentation only, no event or data changes.
   Applies to all user-facing pages, reuses the current Flowly color system and layout.
   Keep this sheet LAST so older feature modules retain their logic and markup. */
:root{
  --fl22-surface:#101c2f;
  --fl22-surface-deep:#0c1729;
  --fl22-border:#2a405e;
  --fl22-border-strong:#3b5576;
  --fl22-text:#ebf2fd;
  --fl22-muted:#99adca;
  --fl22-blue:#76aaff;
  --fl22-focus:rgba(111,162,252,.20);
  --fl22-radius:16px;
}
/* Only real work pages: avoid auth or overlay styling regression. */
#promotionPage,#analyticsPage,#maxAnalyticsPage,#rsyaPage,#notificationsPage,#systemPage,#helpPage,#channelLabelsPage{
  min-width:0;max-width:100%;font-variant-numeric:tabular-nums;
}
#promotionPage .analyticsHero,#analyticsPage .analyticsHero,#maxAnalyticsPage .analyticsHero,
#rsyaPage .rsya-topline.analyticsHero,#channelLabelsPage .analyticsHero,
#notificationsPage .notificationsHero,#systemPage .systemHero,#helpPage .helpHero{
  margin:0 0 22px!important;padding:7px 2px 0!important;display:flex;align-items:flex-end;
  justify-content:space-between;gap:16px 24px;flex-wrap:wrap;min-height:0;
}
#promotionPage .analyticsHero>div:first-child,#analyticsPage .analyticsHero>div:first-child,#maxAnalyticsPage .analyticsHero>div:first-child,
#notificationsPage .notificationsHero>div:first-child,#systemPage .systemHero>div:first-child,#helpPage .helpHero>div:first-child{min-width:0;flex:1 1 510px}
#promotionPage .analyticsHero h1,#analyticsPage .analyticsHero h1,#maxAnalyticsPage .analyticsHero h1,
#rsyaPage .rsya-topline h1,#channelLabelsPage .analyticsHero h1,
#notificationsPage .notificationsHero h1,#systemPage .systemHero h1,#helpPage .helpHero h1{
  font-size:clamp(30px,3.0vw,41px)!important;line-height:1.13!important;font-weight:800!important;
  letter-spacing:-.045em!important;margin:5px 0 9px!important;
  background:linear-gradient(100deg,#75adff 0%,#648dff 62%,#817cff 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent!important;
}
#promotionPage .analyticsHero .eyebrow,#analyticsPage .analyticsHero .eyebrow,#maxAnalyticsPage .analyticsHero .eyebrow,
#rsyaPage .rsya-topline .eyebrow,#channelLabelsPage .analyticsHero .eyebrow,
#notificationsPage .notificationsHero .eyebrow,#systemPage .systemHero .eyebrow,#helpPage .helpHero .eyebrow{
  color:#6b9cff!important;font-size:11px!important;font-weight:800!important;letter-spacing:.16em!important;line-height:1.4;
}
#promotionPage .analyticsHero p,#analyticsPage .analyticsHero p,#maxAnalyticsPage .analyticsHero p,
#rsyaPage .rsya-topline .rsya-sub,#channelLabelsPage .analyticsHero p,
#notificationsPage .notificationsHero p,#systemPage .systemHero p,#helpPage .helpHero p{
  color:var(--fl22-muted)!important;font-size:13.5px!important;font-weight:450!important;
  line-height:1.65!important;max-width:780px!important;margin:0!important;
}
/* Buttons remain visually balanced without overwriting active / destructive states. */
#promotionPage .secondary,#analyticsPage .secondary,#maxAnalyticsPage .secondary,#rsyaPage .secondary,
#notificationsPage .secondary,#systemPage .secondary,#helpPage .secondary,#channelLabelsPage .secondary{
  border-radius:10px!important;min-height:38px;color:#b8cee9;border-color:#304866;background:#112139;
  font-weight:650;box-shadow:none;transition:background .16s,border-color .16s,color .16s;
}
#promotionPage .secondary:hover,#analyticsPage .secondary:hover,#maxAnalyticsPage .secondary:hover,#rsyaPage .secondary:hover,
#notificationsPage .secondary:hover,#systemPage .secondary:hover,#helpPage .secondary:hover,#channelLabelsPage .secondary:hover{
  border-color:#4f74a6;background:#18304f;color:#f0f6ff;
}
#promotionPage .primary,#analyticsPage .primary,#maxAnalyticsPage .primary,#rsyaPage .primary,
#notificationsPage .primary,#systemPage .primary,#helpPage .primary,#channelLabelsPage .primary{
  border-radius:10px!important;background:linear-gradient(125deg,#3479ec,#685df5)!important;
  border-color:rgba(133,174,255,.34)!important;color:#fff!important;font-weight:750;
}
#promotionPage .primary:hover,#rsyaPage .primary:hover,#notificationsPage .primary:hover{
  filter:brightness(1.10);box-shadow:0 6px 20px rgba(53,112,225,.16);
}
/* Light browser autofill overrides made token fields yellow, even in dark mode. */
#rsyaPage input,#rsyaPage select,#rsyaPage textarea,#promotionPage input,#promotionPage select,
#notificationsPage input,#notificationsPage select,#helpPage input,#systemPage input{
  color-scheme:dark;accent-color:#678cff;
}
#rsyaPage input:-webkit-autofill,#rsyaPage input:-webkit-autofill:hover,#rsyaPage input:-webkit-autofill:focus,
#promotionPage input:-webkit-autofill,#notificationsPage input:-webkit-autofill{
  -webkit-text-fill-color:#eaf1fc!important;caret-color:#eaf1fc!important;
  -webkit-box-shadow:0 0 0 1000px #0e1c32 inset!important;
  box-shadow:0 0 0 1000px #0e1c32 inset!important;
  transition:background-color 9999s ease-out 0s!important;
}
/* Cohesive panels, sections and KPI density across the app. */
#notificationsPage .panel,#systemPage .panel,#promotionPage .panel,#analyticsPage .panel,#maxAnalyticsPage .panel,
#rsyaPage .rsya-panel,#channelLabelsPage .panel,#helpPage .helpSection{
  border:1px solid var(--fl22-border)!important;border-radius:var(--fl22-radius)!important;
  background:linear-gradient(165deg,rgba(17,31,53,.99),rgba(11,22,39,.99))!important;
  box-shadow:0 6px 24px rgba(1,5,14,.09)!important;
}
#notificationsPage .panelHead,#systemPage .panelHead,#promotionPage .panelHead,#analyticsPage .panelHead,
#channelLabelsPage .panelHead,#maxAnalyticsPage .panelHead{
  border-bottom-color:rgba(112,150,209,.18)!important;gap:13px;min-width:0;
}
#notificationsPage .panelTitle,#systemPage .panelTitle,#promotionPage .panelTitle,#analyticsPage .panelTitle,
#channelLabelsPage .panelTitle,#maxAnalyticsPage .panelTitle{
  font-weight:780;letter-spacing:-.025em;color:var(--fl22-text);
}
#notificationsPage .panelKicker,#systemPage .panelKicker,#promotionPage .panelKicker,#analyticsPage .panelKicker,
#channelLabelsPage .panelKicker,#maxAnalyticsPage .panelKicker{
  color:var(--fl22-muted)!important;line-height:1.55;
}
#notificationsPage .telegramInfoCard,#notificationsPage .notifySection,
#notificationsPage .notifyOption,#notificationsPage .notifyReportScope,
#systemPage .healthMini,#helpPage .helpQuickStep,
#promotionPage .promotionStats>.statCard,#maxAnalyticsPage .mxKpi,
#analyticsPage .analyticsStatCard{
  background:linear-gradient(145deg,#112138,#0d192c)!important;
  border:1px solid #2b405e!important;border-radius:var(--fl22-radius)!important;
  box-shadow:none!important;
}
/* Small metadata must remain readable on dark backgrounds. */
#notificationsPage .telegramInfoCard span,#notificationsPage .notifySectionHead p,
#notificationsPage .notifyOptionText span,#notificationsPage .telegramIdentityText span,
#systemPage .healthLabel,#systemPage .healthMeta,#systemPage .healthMini span,
#helpPage .helpQuickStep span,#helpPage .helpSectionHead p,
#promotionPage .statCard span,#promotionPage .statCard small,
#promotionPage .promotionStatus,#promotionPage .autoPromoStatus{
  color:#9aafcd!important;line-height:1.55;
}
#promotionPage .promotionStatus{font-size:12px!important;background:#0e1c30!important;border:1px solid #2b4465!important;border-radius:14px!important;padding:13px 16px!important;margin-bottom:16px!important;min-height:46px}
#systemPage .healthGrid,#systemPage .healthSummary{gap:13px}
#systemPage .healthCard{background:linear-gradient(145deg,#112138,#0d192c)!important;border:1px solid #2b405e!important;min-height:142px}
#systemPage .healthValue{color:#eff5ff;font-size:clamp(22px,2vw,27px)}
#systemPage .healthMeta{font-size:12px!important;overflow-wrap:anywhere}
#systemPage .healthMini b{font-size:24px}
#systemPage .systemMembershipNote,#systemPage .systemNote{color:#98adca;background:#0d1b2e;border-color:#29415f}
#notificationsPage .telegramStatusRow,#notificationsPage .telegramSecurity,#notificationsPage .notifyStageNote,
#notificationsPage .telegramFutureCard{border-color:#2b4361;background:#0d1c30;color:#94acc9}
#notificationsPage .notifySectionHead h3,#notificationsPage .notifyOptionText b,#notificationsPage .telegramInfoCard b{
  color:#e6eefc;
}
#notificationsPage .notifySearch input,#notificationsPage .notifyMetaFilters select,#notificationsPage .notifyReportScopeTools input{
  background:#0e1b30;color:#e9f1fb;border-color:#304764;
}
/* The guide steps were squeezed and its 4th card clipped on mid-width screens. */
#helpPage .helpQuick{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:19px;min-width:0}
#helpPage .helpQuickStep{min-width:0;min-height:132px;padding:17px 18px;overflow-wrap:anywhere;transition:border-color .16s ease,background .16s ease}
#helpPage .helpQuickStep:hover{border-color:#416491!important;background:#132640!important}
#helpPage .helpQuickStep b{color:#ecf3fd;font-size:13px;line-height:1.45;margin-bottom:6px}
#helpPage .helpQuickStep span{font-size:12px!important}
#helpPage .helpQuickN{width:35px;height:35px;font-size:14px;border-radius:11px}
#helpPage .helpGuideNav{gap:8px;margin:0 0 19px}
#helpPage .helpGuideNav button{padding:10px 14px;border:1px solid #355077;border-radius:10px;color:#b8d4f8;background:#112239;font-size:12px;min-height:39px}
#helpPage .helpGuideNav button:hover{background:#1a3151;border-color:#648fd0;color:#f4f8ff}
#helpPage .helpRoleContext{background:#10223a;border-color:#34517a;color:#b9cce4;font-size:12px;padding:14px 16px}
#helpPage .helpSectionHead{border-bottom:1px solid rgba(112,150,209,.18)}
#helpPage .helpBody p,#helpPage .helpBody li{color:#adc0d9;font-size:12px;line-height:1.75}
#helpPage .helpNote{color:#b7cbe4}
/* Charts/tables: do not alter calculations or sorting; just clear text hierarchy. */
#promotionPage .promotionFilters,#rsyaPage .rsya-filter-grid,#maxAnalyticsPage .mxFilters{
  border-color:#304763;background:#101e32;
}
#promotionPage .promotionFilters label,#rsyaPage .rsya-filter-grid label,#maxAnalyticsPage .mxFilters label{color:#a7bedb}
#promotionPage .analyticsTable th,#analyticsPage .analyticsTable th,#maxAnalyticsPage table th,#rsyaPage .rsya-table th{color:#a4bedc}
#promotionPage .analyticsTable td,#analyticsPage .analyticsTable td,#maxAnalyticsPage table td,#rsyaPage .rsya-table td{color:#bbcee5}
#rsyaPage .rsya-kpi{border-color:#2d4565!important}
#rsyaPage .rsya-panel-head p{color:#a2b7d2}
#rsyaPage .rsya-smallnote{color:#a5b9d4;line-height:1.6}
#rsyaPage .rsya-panel-body{min-width:0}
/* Owner's Yandex vault: compact account cards with visible edit/read affordances. */
#rsyaPage .rsya-accounts-box .rsya-panel-body{padding:18px}
#rsyaPage .rsya-account-list{display:grid;grid-template-columns:1fr;gap:11px;margin:14px 0 17px}
#rsyaPage .rsya-account-card{min-width:0;background:linear-gradient(145deg,#12253e,#0e1d32);border:1px solid #345174;border-radius:15px;padding:15px 17px}
#rsyaPage .rsya-account-overview{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
#rsyaPage .rsya-account-identity{flex:1 1 260px;min-width:0}
#rsyaPage .rsya-account-titleline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:7px}
#rsyaPage .rsya-account-titleline>b{font-size:15px;font-weight:760;line-height:1.4;color:#f0f6ff;overflow-wrap:anywhere}
#rsyaPage .rsya-account-meta{display:flex;gap:7px 16px;flex-wrap:wrap;font-size:11px;color:#a9bedb;line-height:1.5}
#rsyaPage .rsya-account-meta span:first-child{color:#8fbaff;font-weight:700;letter-spacing:.015em}
#rsyaPage .rsya-account-error{font-size:11px;margin-top:7px;color:#f5af9e;overflow-wrap:anywhere}
#rsyaPage .rsya-account-toolbar{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
#rsyaPage .rsya-account-toolbar button{font-size:11.5px;min-height:36px!important;padding:8px 11px!important;white-space:nowrap}
#rsyaPage .rsya-account-secret,#rsyaPage .rsya-account-editor{margin-top:14px;padding:16px;border:1px solid #345477;background:#0c1b2f;border-radius:12px}
#rsyaPage .rsya-account-secret[hidden],#rsyaPage .rsya-account-editor[hidden],#rsyaPage .rsya-account-secret-output[hidden],#rsyaPage .rsya-account-secret-confirm[hidden]{display:none!important}
#rsyaPage .rsya-account-note{font-size:11.5px;color:#a7bdd9;line-height:1.6;margin:0 0 12px}
#rsyaPage .rsya-account-secret-confirm,#rsyaPage .rsya-account-secret-output{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
#rsyaPage .rsya-account-secret-confirm input{flex:1 1 250px}
#rsyaPage .rsya-account-secret-output label{min-width:0;flex:1 1 380px;display:flex;flex-direction:column;gap:7px;font-size:11px;color:#a9c0dd}
#rsyaPage .rsya-account-secret-output input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px!important;letter-spacing:.02em}
#rsyaPage .rsya-account-secret input,#rsyaPage .rsya-account-editor input{min-width:0;min-height:40px;border:1px solid #385475;background:#0c192b;color:#ebf4ff;border-radius:10px;padding:9px 12px}
#rsyaPage .rsya-account-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:12px}
#rsyaPage .rsya-account-editor-grid label{min-width:0;display:flex;flex-direction:column;gap:7px;font-size:11.5px;color:#b8cee8;font-weight:680}
#rsyaPage .rsya-account-editor-grid small{display:block;font-weight:400;color:#96acc9}
#rsyaPage .rsya-account-editor .rsya-actions{margin-top:13px}
#rsyaPage .rsya-account-add{border-top:1px solid #2c4261;padding:18px 0 0;margin:18px 0 20px}
#rsyaPage .rsya-account-add-title{font-size:14px;font-weight:760;color:#e8f1fd;margin-bottom:13px}
#rsyaPage .rsya-account-add-title span{display:block;font-size:11px;font-weight:400;color:#9bafca;margin-top:5px}
#rsyaPage .rsya-account-add input{min-height:42px;border-color:#385273;background:#0d1d30;color:#ebf3ff}
#rsyaPage .rsya-pill{line-height:1.5;font-size:10px}
#rsyaPage .rsya-table-scroll{scrollbar-width:thin}
/* Keep the highest-risk controls usable on phones and narrower windows. */
@media(max-width:1180px){
 #systemPage .healthGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #helpPage .helpQuick{grid-template-columns:repeat(2,minmax(0,1fr))}
 #rsyaPage .rsya-account-toolbar{width:100%}
}
@media(max-width:800px){
 #promotionPage .analyticsHero,#analyticsPage .analyticsHero,#maxAnalyticsPage .analyticsHero,
 #rsyaPage .rsya-topline.analyticsHero,#notificationsPage .notificationsHero,#systemPage .systemHero,#helpPage .helpHero{align-items:flex-start;flex-direction:column}
 #systemPage .healthSummary{grid-template-columns:repeat(2,minmax(0,1fr))}
 #notificationsPage .telegramInfoGrid{grid-template-columns:1fr}
 #rsyaPage .rsya-account-editor-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
 #promotionPage .analyticsHero h1,#analyticsPage .analyticsHero h1,#maxAnalyticsPage .analyticsHero h1,
 #rsyaPage .rsya-topline h1,#notificationsPage .notificationsHero h1,#systemPage .systemHero h1,#helpPage .helpHero h1{font-size:30px!important}
 #helpPage .helpQuick,#systemPage .healthGrid{grid-template-columns:1fr}
 #helpPage .helpQuickStep{min-height:0}
 #helpPage .helpGuideNav button{flex:1 1 auto}
 #rsyaPage .rsya-account-toolbar button{flex:1 1 44%}
 #rsyaPage .rsya-account-card{padding:13px}
 #rsyaPage .rsya-account-secret-confirm button,#rsyaPage .rsya-account-secret-output button{flex:1 1 120px}
 #notificationsPage .telegramStatusRow{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
 #helpPage .helpQuickStep,#helpPage .helpGuideNav button{transition:none}
}
/* Core posting view: keep the same family of panels, buttons and section typography.
   Structure and controls are untouched; this layer only changes presentation. */
#channelPage{min-width:0;max-width:100%;font-variant-numeric:tabular-nums}
#channelPage .channelHead{display:flex;align-items:center;gap:14px;min-width:0;margin-bottom:20px}
#channelPage .channelHead>div:last-child{min-width:0}
#channelPage .channelHead h1{font-size:clamp(25px,2.7vw,37px);letter-spacing:-.045em;line-height:1.17;color:#eaf1fc;overflow-wrap:anywhere}
#channelPage .channelHead .sub{color:#99adcb;line-height:1.5}
#channelPage .toolbar{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;min-width:0;margin-bottom:17px}
#channelPage .toolbar .sub{color:#9eb4d3;font-weight:680}
#channelPage .filters{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
#channelPage .filters .filter{border-radius:10px;border:1px solid #334b6b;background:#112239;color:#afc5e3;min-height:38px;transition:background .15s,border-color .15s}
#channelPage .filters .filter:hover{border-color:#577cab;background:#172d4a}
#channelPage .filters .filter.active{background:linear-gradient(125deg,rgba(52,116,229,.27),rgba(94,87,232,.21));color:#edf4ff;border-color:#547ac0}
#channelPage .panel,#channelPage .guardCard,#channelPage #autoPromoChannelPanel{
 border-radius:16px!important;border-color:#2a405e!important;
 background:linear-gradient(160deg,#11213a,#0d192b)!important;box-shadow:0 5px 22px rgba(1,5,14,.08)!important;
}
#channelPage .panelHead{background:transparent!important;border-bottom-color:rgba(115,154,208,.17)!important}
#channelPage .panelTitle,#channelPage .guardTitle,#channelPage .autoPromoTop>b{color:#eaf1fb;font-weight:770;letter-spacing:-.02em}
#channelPage .guardDesc,#channelPage .settingsHint,#channelPage .guardHelp,#channelPage .autoPromoMuted{color:#9db2d0;line-height:1.65}
#channelPage .field label{color:#aec3de}
#channelPage .field input,#channelPage .field select{background:#0e1d30;color:#ecf2fc;border-color:#344c6c;border-radius:10px;min-height:39px;color-scheme:dark}
#channelPage .field input:focus,#channelPage .field select:focus{border-color:#719ef0;box-shadow:0 0 0 3px var(--fl22-focus)}
#channelPage .secondary{background:#13263e;color:#bdcfe8;border-color:#344d6d;border-radius:10px}
#channelPage .secondary:hover{background:#1a3150;border-color:#5476a5;color:#eef5ff}
#channelPage .primary{border-radius:10px;background:linear-gradient(120deg,#3175ea,#695df3);color:white}
#channelPage .helpInlineBtn{color:#8ebcff}
#channelPage .field input:-webkit-autofill,#channelPage .field input:-webkit-autofill:hover{ -webkit-text-fill-color:#eaf1fc!important;-webkit-box-shadow:0 0 0 1000px #0e1c32 inset!important;box-shadow:0 0 0 1000px #0e1c32 inset!important }
@media(max-width:620px){#channelPage .channelHead h1{font-size:27px}#channelPage .filters .filter{flex:1 1 auto}#channelPage .toolbar{align-items:stretch}}

/* 10.37.23: after owner confirmation the revealed OAuth token must be visually readable. */
#rsyaPage .rsya-account-secret-output input[type="text"]{-webkit-text-security:none!important;}


/* 10.37.24: compact one-row expenses disclosure (same visual density as posting settings). */
#promotionPage #promotionDailyReportPanel{
 border:1px solid #2b4265;border-radius:14px;background:#102038;overflow:hidden;
 box-shadow:none;transition:border-color .18s,background .18s
}
#promotionPage #promotionDailyReportPanel:hover{border-color:#5476a7}
#promotionPage #promotionDailyReportPanel>summary.panelHead{
 display:flex!important;flex-direction:row!important;justify-content:space-between!important;
 align-items:center!important;min-height:64px;box-sizing:border-box;gap:16px;
 padding:11px 15px!important;margin:0!important;border:0!important;
 background:transparent!important;cursor:pointer;list-style:none;user-select:none
}
#promotionPage #promotionDailyReportPanel>summary.panelHead::-webkit-details-marker{display:none}
#promotionPage #promotionDailyReportPanel>summary.panelHead::marker{content:''}
#promotionPage #promotionDailyReportPanel>summary:focus-visible{outline:2px solid #77aaff;outline-offset:-3px;border-radius:13px}
#promotionPage #promotionDailyReportPanel .promotionReportHeadContent{
 display:flex!important;align-items:center;gap:11px;min-width:0;flex:1 1 auto
}
#promotionPage #promotionDailyReportPanel .promotionReportHeading{min-width:0;flex:1 1 auto}
#promotionPage #promotionDailyReportPanel .promotionReportHeading .panelTitle{font-size:14px!important;font-weight:760;line-height:1.3}
#promotionPage #promotionDailyReportPanel .promotionReportHeading .panelKicker{
 font-size:11px!important;line-height:1.45;margin-top:3px;white-space:normal
}
#promotionPage #promotionDailyReportPanel .promotionReportIcon{
 width:32px;height:32px;min-width:32px;border-radius:10px;display:grid;place-items:center;
 background:rgba(72,118,206,.17);border:1px solid #34537b;color:#aacbff
}
#promotionPage #promotionDailyReportPanel .promotionReportDisclosure{
 display:inline-flex!important;align-items:center;justify-content:center;gap:6px;
 width:auto!important;max-width:max-content;min-width:0;flex:0 0 auto;align-self:center;
 white-space:nowrap;color:#bcd3f3;font-size:12px;font-weight:700;
 padding:7px 9px 7px 11px;border-radius:9px;background:#12223a;
 border:1px solid #344968;transition:background .15s,border-color .15s,color .15s
}
#promotionPage #promotionDailyReportPanel>summary:hover .promotionReportDisclosure{background:#1a3151;border-color:#557bb2;color:#f0f6ff}
#promotionPage #promotionDailyReportPanel .promotionReportLabelOpen{display:none}
#promotionPage #promotionDailyReportPanel[open] .promotionReportLabelOpen{display:inline}
#promotionPage #promotionDailyReportPanel[open] .promotionReportLabelClosed{display:none}
#promotionPage #promotionDailyReportPanel .promotionReportChevron{
 display:grid;place-items:center;width:17px;height:17px;color:#aacbff;transition:transform .2s
}
#promotionPage #promotionDailyReportPanel[open] .promotionReportChevron{transform:rotate(180deg)}
#promotionPage #promotionDailyReportPanel[open]>summary.panelHead{border-bottom:1px solid #334968!important}
#promotionPage #promotionDailyReportPanel .promotionReportBody{padding-top:12px}
@media(max-width:540px){
 #promotionPage #promotionDailyReportPanel>summary.panelHead{gap:9px;padding:11px!important}
 #promotionPage #promotionDailyReportPanel .promotionReportHeadContent{gap:8px}
 #promotionPage #promotionDailyReportPanel .promotionReportIcon{width:29px;height:29px;min-width:29px}
 #promotionPage #promotionDailyReportPanel .promotionReportDisclosure{padding:7px;min-width:30px}
 #promotionPage #promotionDailyReportPanel .promotionReportDisclosureLabel{display:none}
}
/* Internal promotion tab is never shown to non-administrators, including stale UI states. */
#channelLabelsPage #ux20TabPromotionBtn[hidden],#channelLabelsPage #ux20TabPromotion[hidden]{display:none!important}


/* Post navigation reuses EXACTLY the Analytics hub's .rsya-hub button styling
   from rsya.css: same 12px font and 12px/14px padding, no duplicate tab CSS. */
#channelPage .channelHead{margin-bottom:19px!important}
#channelPage .toolbar{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
#channelPage .toolbar .channelTabsSrOnly{
 position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
 margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
 white-space:nowrap!important;border:0!important
}
#channelPage .toolbar .channelAnalyticsTabs{
 position:relative;top:auto;z-index:auto;width:100%;box-sizing:border-box;
 -webkit-overflow-scrolling:touch
}
/* Only addition: small numeric badges; button itself is the real Analytics button. */
#channelPage .toolbar .channelAnalyticsTabs button b{
 display:inline-flex;align-items:center;justify-content:center;
 min-width:16px;height:15px;padding:0 5px;border-radius:999px;
 background:#1b2e49;color:#a5bcdb;font-size:10px;font-weight:750;
 font-variant-numeric:tabular-nums;line-height:1
}
#channelPage .toolbar .channelAnalyticsTabs button.is-active b{background:#315fa9;color:#fff}
#channelPage .toolbar .channelAnalyticsTabs button:focus-visible{outline:2px solid #8db4ff;outline-offset:2px}
@media(max-width:760px){#channelPage .toolbar .channelAnalyticsTabs button b{height:14px}}
/* Even if another component specifies display:flex, hidden privilege-bound panels stay hidden. */
#autoPromoChannelPanel .autoPromoAdminOnly[hidden],
#helpPage .helpPromoAdminOnly[hidden],
#helpPage .helpPromotionRestricted[hidden],
#autoPromoChannelPanel[hidden],
#channelLabelsPage #autoPromoBulkPanel[hidden]{display:none!important}



/* 10.37.24: keep Posts navigation visible while the central .main pane scrolls.
   The Analytics bar is sticky; make the POSTS TOOLBAR the sticky element as
   well, because its nested .rsya-hub cannot stick beyond a nonsticky parent. */
#channelPage > .toolbar{
 position:sticky!important;
 top:0!important;
 z-index:17!important;
 background:#070c18!important;
}

/* Flowly 10.37.30 — queued-post copy controls (source order preserved). */
#channelPage .queueCopyBar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 16px 3px;padding:11px 12px;background:#0e1c31;border:1px solid #2a4266;border-radius:11px;color:#b9cce8;font-size:12px}
#channelPage .queueCopyBar[hidden]{display:none!important}
#channelPage .queueCopyBar .queueCopyAll{display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-weight:620}
#channelPage .queueCopyBar input[type=checkbox],#channelPage .queueCopyPick input{width:17px;height:17px;accent-color:#4988ff;cursor:pointer}
#channelPage .queueCopyBar button{min-height:33px;font-size:11px;padding:7px 11px}
#channelPage .queueCopyBar button:disabled{opacity:.46;cursor:not-allowed;box-shadow:none!important}
#channelPage .queueCopyCount{color:#92aace;margin-right:auto;white-space:nowrap}
#channelPage .postCard .drag{gap:7px}
#channelPage .postCard .queueCopyPick{display:flex;align-items:center;justify-content:center;cursor:pointer}
#channelPage .postCard.queueCopyChosen{background:#14243c!important;border-color:#3a6ec4!important}
#channelPage .postCard .queueCopyOne{padding:6px 9px;white-space:nowrap;min-height:30px;font-size:11px;border-radius:8px}
#queueCopyWrap .queueCopyModal{width:min(590px,96vw)}
#queueCopyWrap .queueCopySource{margin:0 0 17px;font-size:12px;line-height:1.6;color:#a9c0df}
#queueCopyWrap .queueCopyField{display:flex;flex-direction:column;gap:6px;margin:11px 0;color:#b4cae9;font-size:12px;font-weight:650}
#queueCopyWrap .queueCopyField input,#queueCopyWrap .queueCopyField select{width:100%;min-width:0;height:40px;padding:8px 11px;border-radius:9px;border:1px solid #304764;background:#0a1629;color:#eff6ff;font-size:12px}
#queueCopyWrap .queueCopyHint{font-size:11px;color:#8fa8c9;line-height:1.5}
#queueCopyWrap .queueCopyPreviewTitle{display:block;margin:15px 0 6px;color:#e0eaff;font-size:12px}
#queueCopyWrap .queueCopyPreview{margin:0 0 11px;padding:10px 10px 10px 27px;max-height:180px;overflow:auto;border-radius:9px;border:1px solid #243956;background:#101e34;color:#c6d7f0;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
#queueCopyWrap .queueCopyResult:not(:empty){margin-top:10px;font-size:12px;line-height:1.5;color:#f1c39f}
/* Mass Content Protection settings reuse the Flowly channel-management palette. */
#channelLabelsPage .bulkGuardConfig{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;border-top:1px solid #29405b;padding-top:13px}
#channelLabelsPage .bulkGuardConfig label{display:flex;flex-direction:column;gap:6px;min-width:0;color:#acc0dd;font-size:11px;font-weight:650}
#channelLabelsPage .bulkGuardConfig input,#channelLabelsPage .bulkGuardConfig select{width:100%;height:39px;min-width:0;padding:7px 10px;background:#0a172a;border:1px solid #304764;border-radius:9px;color:#e8f2ff;font-size:12px}
#channelLabelsPage .bulkGuardApply{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid #29405b}
#channelLabelsPage .bulkGuardApply .primary{min-height:38px;font-size:11px;white-space:normal}
#channelLabelsPage .bulkGuardApply span{font-size:10px;color:#8ba2c2;line-height:1.45;flex:1 1 200px}
@media(max-width:760px){
 #channelPage .queueCopyBar{margin:10px 10px 3px;gap:8px}
 #channelPage .queueCopyBar .queueCopyCount{width:100%;order:2}
 #channelPage .postCard .queueCopyOne{font-size:10px}
 #channelLabelsPage .bulkGuardConfig{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #channelLabelsPage .bulkGuardApply .primary{width:100%}
}

/* 10.37.31: clear destructive bulk action and accessible multi-channel destination list. */
#channelPage .queueCopyBar .queueDeleteSelected{border:1px solid #8f3d4d!important;color:#ffb3be!important;background:#3c1a28!important}
#channelPage .queueCopyBar .queueDeleteSelected:hover:not(:disabled){background:#572032!important;border-color:#df526e!important;color:#fff!important}
#queueCopyWrap .queueCopyDestHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:13px 0 8px;color:#d7e6ff;font-size:12px}
#queueCopyWrap .queueCopyDestHeader span{color:#9dbce6;font-size:11px;white-space:nowrap}
#queueCopyWrap .queueCopyDestActions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:9px}
#queueCopyWrap .queueCopyDestActions button{font-size:11px;min-height:31px;padding:6px 10px}
#queueCopyWrap .queueCopyDestList{max-height:218px;min-height:68px;overflow-y:auto;border:1px solid #304764;border-radius:10px;background:#0a1629;padding:5px}
#queueCopyWrap .queueCopyDestination{display:flex;align-items:center;gap:10px;padding:9px 10px;cursor:pointer;border-radius:7px;font-size:12px;color:#e6f0ff}
#queueCopyWrap .queueCopyDestination:hover{background:#172e4d}
#queueCopyWrap .queueCopyDestination:has(input:checked){background:#1a3354}
#queueCopyWrap .queueCopyDestination input{accent-color:#4988ff;width:17px;height:17px;flex:none;cursor:pointer}
#queueCopyWrap .queueCopyDestName{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}
#queueCopyWrap .queueCopyDestination small{color:#87a6cc;font-size:10px;white-space:nowrap}
#queueCopyWrap .queueCopyDestEmpty{padding:14px;color:#94accb;font-size:12px}
@media(max-width:760px){#channelPage .queueCopyBar .queueDeleteSelected{flex:1 1 auto}#queueCopyWrap .queueCopyDestination small{font-size:9px;max-width:80px;overflow:hidden;text-overflow:ellipsis}}

/* 10.37.33 · Shared taxonomy */
.taxonomy-dictionary{margin:14px 0}
.taxonomy-groups{display:grid;gap:16px}.taxonomy-group h4{margin:0 0 4px;font-size:14px;color:#eaf2ff}.taxonomy-group h4 small{color:#93adca;font-weight:500}.taxonomy-group p{color:#8aa4c1;font-size:12px;margin:0 0 9px}.taxonomy-group .labelCuratorList{display:flex;flex-wrap:wrap;gap:7px}.taxonomy-group .labelCuratorChip small{font-size:10px;color:#9db0c8}.taxonomy-group .labelCuratorRemove{min-width:23px;min-height:23px}.taxonomy-go-ecpm{margin:8px 0 16px;display:inline-flex;align-items:center;justify-content:center}.notifyReportScopeFilters select,.notifyMetaFilters select{min-width:120px}#rsyaRankCategoryFilter{background:#0c1b30;color:#e1eafe;border:1px solid #364963;border-radius:8px;padding:7px;min-width:180px;max-width:100%}
@media(max-width:680px){.taxonomy-go-ecpm{width:100%}.taxonomy-dictionary .labelCreate{display:flex;flex-wrap:wrap}.taxonomy-dictionary .labelCreate input{min-width:0;flex:1 1 180px}.notifyMetaFilters,.notifyReportScopeFilters{flex-wrap:wrap}}

/* 10.37.33: consistent curator / category / audience filters for channel pickers. */
.flowly-triplet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:9px 0 12px;min-width:0;width:100%;box-sizing:border-box}
.flowly-triplet label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:10px!important;font-weight:600;color:#90a8c9}
.flowly-triplet select{display:block;width:100%;max-width:100%;min-width:0;min-height:36px;box-sizing:border-box;border:1px solid #344c6e;border-radius:9px;background:#0c192d;color:#d9e8ff;padding:7px 9px;font-family:inherit;font-size:11px}
.flowly-triplet select:focus{outline:2px solid #477fc4;outline-offset:1px}
.flowly-side-filters{margin:0 4px 11px;border:1px solid #273a55;background:#0d1a2f;border-radius:10px;padding:7px 9px}
.flowly-side-filters>summary{cursor:pointer;color:#a8bfdc;font-size:11px;font-weight:700;list-style:none}
.flowly-side-filters>summary::-webkit-details-marker{display:none}
.flowly-side-filters>.flowly-triplet{grid-template-columns:1fr;margin-bottom:3px;gap:7px}
#queueCopyTriplet,#rsyaRankTriplet{margin:8px 0 12px}
#queueCopyTriplet select,#rsyaRankTriplet select{height:36px}
#promotionOrdersTriplet,#prTriplet{flex:3 1 480px;margin:0;align-self:end}
#promotionOrdersTriplet select,#prTriplet select{min-height:38px}
#analyticsPickerTriplet{grid-template-columns:1fr;gap:7px}
#maxStatsTriplet{flex:3 1 400px;margin:0;align-self:end}
@media(max-width:720px){.flowly-triplet{grid-template-columns:1fr;gap:7px}#rsyaRankTriplet{grid-template-columns:1fr 1fr}#rsyaRankTriplet label:last-child{grid-column:1/-1}}
@media(max-width:760px){#mainSidebar .flowly-side-filters{margin:0 0 6px;position:relative;padding:6px 4px;width:100%;box-sizing:border-box}#mainSidebar .flowly-side-filters>summary{font-size:0;text-align:center}#mainSidebar .flowly-side-filters>summary::before{content:'⚙';font-size:17px}#mainSidebar .flowly-side-filters>.flowly-triplet{position:fixed;left:75px;top:230px;width:230px;z-index:500;padding:12px;background:#0d1a2f;border:1px solid #42618a;border-radius:12px;box-shadow:0 12px 30px #0008}}

/* Keep shared selects narrow inside legacy promotion flex controls. */
#promotionPage .promotionFilters .flowly-triplet label{flex:none;min-width:0;width:auto} 
#promotionPage .promotionFilters .flowly-triplet{grid-template-columns:repeat(3,minmax(0,1fr))} 
@media(max-width:720px){#promotionPage .promotionFilters .flowly-triplet{grid-template-columns:1fr}}
