/* Flowly 10.37.33: approved UI/UX unification. Presentation only. */
:root{
 --fl33-bg:#080f1e;--fl33-panel:#101c30;--fl33-panel-2:#14243b;
 --fl33-border:#2b405e;--fl33-border-hover:#5176b4;
 --fl33-text:#e9f2ff;--fl33-muted:#a2b8d6;
 --fl33-primary:#6288f4;--fl33-radius:14px;--fl33-control:42px;
 --fl33-focus:0 0 0 3px rgba(109,150,255,.20);
}
/* Cards, report sections and high-level panels share a coherent visual rhythm. */
#analyticsPage .analyticsPanel,#channelLabelsPage .labelPanel,
#promotionPage .promotionPanel,#notificationsPage .panel,
#rsyaPage .rsya-panel,#maxAnalyticsPage .mxPanel,
#channelPage .panel{border-radius:var(--fl33-radius);border-color:var(--fl33-border);}
#analyticsPage .panelHead,#notificationsPage .panelHead,
#channelLabelsPage .panelHead{gap:14px;align-items:center;}
#analyticsPage .panelTitle,#channelLabelsPage .panelTitle,
#notificationsPage .panelTitle,#rsyaPage .rsya-panel-head h3{
 letter-spacing:-.018em;line-height:1.35;color:var(--fl33-text);
}
#analyticsPage .panelKicker,#channelLabelsPage .panelKicker,
#notificationsPage .panelKicker,#rsyaPage .rsya-panel-head p{line-height:1.55;color:var(--fl33-muted);}
/* Standard control height, stable hit areas, focus and disabled state. */
#notificationsPage button:not(.notifyToggle *),#rsyaPage button,
#channelLabelsPage button,#promotionPage button,#channelPage .queueCopyOne{
 border-radius:10px;transition:background-color .17s ease,border-color .17s ease,box-shadow .17s ease;
}
#notificationsPage input:not([type=checkbox]):not([type=radio]),
#notificationsPage select,#rsyaPage input:not([type=checkbox]),#rsyaPage select,
#channelLabelsPage select,#channelLabelsPage input:not([type=checkbox]){
 box-sizing:border-box;min-height:var(--fl33-control);border-radius:10px;
}
#notificationsPage button:focus-visible,#rsyaPage button:focus-visible,
#channelPage button:focus-visible,#analyticsPage button:focus-visible,
#channelLabelsPage button:focus-visible,#promotionPage button:focus-visible,
#notificationsPage input:focus-visible,#rsyaPage input:focus-visible{
 outline:2px solid #83aaff;outline-offset:2px;box-shadow:var(--fl33-focus);
}
#notificationsPage button:disabled,#rsyaPage button:disabled,#channelPage button:disabled{
 cursor:not-allowed;opacity:.58;
}
/* A calm, immediately legible status line while data is in flight. */
#rsyaPage[aria-busy=true] #rsyaStatus{color:#c7d9fc;background:rgba(74,112,220,.11)}
#rsyaPage[aria-busy=true] #rsyaKpis{opacity:.75;transition:opacity .2s ease}
/* Analytics: uniform filter columns, table spacing and compact hierarchy. */
#rsyaPage .rsya-filter-grid{gap:12px;padding:16px;background:var(--fl33-panel)}
#rsyaPage .rsya-kpis{gap:12px}
#rsyaPage .rsya-kpi{padding:17px 18px;min-height:100px}
#rsyaPage .rsya-panel-head{padding:16px 19px}
#rsyaPage .rsya-table th,#analyticsPage .analyticsTable th{white-space:nowrap;letter-spacing:.03em}
#rsyaPage .rsya-table td,#analyticsPage .analyticsTable td{vertical-align:middle;}
#rsyaPage .rsya-ranking-controls{gap:8px}
#rsyaPage .rsya-ranking-table td{padding-top:12px;padding-bottom:12px}
/* Queue: consistent spacing, media and accessible actions, no changes to post order. */
#channelPage .postCard{gap:14px;padding:14px 16px;border-radius:12px;min-height:93px}
#channelPage .postCard .preview{border-radius:11px}
#channelPage .postCard .postText{line-height:1.55;font-size:13px}
#channelPage .postCard .meta{row-gap:6px;column-gap:9px;line-height:1.45}
#channelPage .postCard .actions{gap:7px;align-items:center}
#channelPage .postCard .iconbtn{min-height:36px;min-width:36px}
#channelPage .postCard .publishNowBtn{min-height:37px}
#channelPage .queueCopyBulkActions{gap:8px}
/* Notification workspace quick navigation; no extra API requests. */
.ux33-notify-navigation{display:flex;align-items:center;gap:7px;position:sticky;top:0;z-index:9;
 background:rgba(9,18,32,.96);backdrop-filter:blur(14px);padding:9px;
 border:1px solid var(--fl33-border);border-radius:13px;margin:0 0 14px;
 overflow-x:auto;scrollbar-width:thin;scrollbar-color:#3e5e8d transparent;}
.ux33-notify-navigation button{flex:none;min-height:38px;padding:8px 13px;
 background:transparent;border:1px solid transparent;color:#a8bedb;
 font-weight:650;font-size:12px;white-space:nowrap;}
.ux33-notify-navigation button:hover,.ux33-notify-navigation button[aria-current=true]{
 color:#edf4ff;border-color:#365584;background:#18345b;}
#notificationsPage .notifySettingsPanel .notifySection{scroll-margin-top:70px}
#notificationsPage .rsya-alert-box{scroll-margin-top:70px;border-radius:var(--fl33-radius);border-color:var(--fl33-border)}
#notificationsPage .notifyReportScopes{gap:12px}
#notificationsPage .notifyReportScope{border-radius:12px}
#notificationsPage .notifyOptions{gap:10px}
#notificationsPage .notifyOption{border-radius:11px;min-height:68px}
#notificationsPage .notifySectionHead{margin-bottom:13px}
#notificationsPage #rsyaAlertsHelp[data-save-state=saved]{color:#55d0ad}
#notificationsPage #rsyaAlertsHelp[data-save-state=dirty]{color:#e2bd82}
/* Mobile: intuitive controls, no sideways overflow; scroll tables in their own wrappers. */
#analyticsPage .analyticsTableWrap,#rsyaPage .rsya-table-scroll,#maxAnalyticsPage .mxTableWrap{
 max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;}
@media(max-width:900px){
 #channelPage .postCard{padding:12px;gap:11px}
 #rsyaPage .rsya-kpis{gap:9px}
}
@media(max-width:760px){
 :root{--fl33-control:43px}
 .ux33-notify-navigation{margin:0 0 12px;padding:7px;border-radius:11px}
 .ux33-notify-navigation button{font-size:11px;min-height:39px;padding:8px 10px}
 #notificationsPage .notifySettingsBody{padding-left:12px;padding-right:12px}
 #notificationsPage .notifySection{padding:12px}
 #notificationsPage .rsya-form{gap:9px}
 #channelPage .postCard{padding:10px;grid-template-columns:22px 74px minmax(0,1fr)}
 #channelPage .postCard .actions{grid-column:2/-1;justify-content:flex-start;flex-wrap:wrap}
 #channelPage .postCard .postText{font-size:12px;max-height:72px}
 #rsyaPage .rsya-panel-head{padding:13px}
 #rsyaPage .rsya-filter-grid{gap:10px;padding:12px}
 #rsyaPage .rsya-kpi{min-height:84px;padding:12px}
}
@media(max-width:390px){
 #channelPage .postCard{grid-template-columns:20px 62px minmax(0,1fr);gap:8px}
 #channelPage .postCard .preview{width:62px;height:58px}
 #rsyaPage .rsya-filter-grid{grid-template-columns:minmax(0,1fr)}
 #notificationsPage .notifyReportScopeTools{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
 #channelPage .postCard,#rsyaPage button,#notificationsPage button{transition:none}
}

#notificationsPage #rsyaAlertsHelp[data-save-state=error]{color:#ff929a}
/* Editors and channel access dialogs: align permission rows and action sizes. */
#adminWrap .userCard,#adminWrap .accessCard,#adminWrap .accessSection,
#adminWrap .editorCard{border-radius:12px;border-color:var(--fl33-border)}
#adminWrap .userTop,#adminWrap .accessGrid{gap:12px}
#adminWrap button{min-height:39px;border-radius:9px}
#adminWrap input:not([type=checkbox]),#adminWrap select{min-height:40px;border-radius:9px}
#adminWrap input:focus-visible,#adminWrap select:focus-visible,#adminWrap button:focus-visible{
 outline:2px solid #83aaff;outline-offset:2px;
}
/* Promotion history and MAX: clear selected tab + consistent horizontal scrolling. */
#promotionPage .promotionFilters,#maxAnalyticsPage .mxFilters{gap:12px}
#promotionPage .promotionFilters input,#promotionPage .promotionFilters select,
#maxAnalyticsPage .mxFilters input,#maxAnalyticsPage .mxFilters select{min-height:var(--fl33-control);border-radius:10px}
#maxAnalyticsPage .mxTabs button,#channelPage .channelAnalyticsTabs button{min-height:40px}
#maxAnalyticsPage .mxTableWrap table,#promotionPage .analyticsTableWrap table{width:100%}
#channelLabelsPage .labelChannelsList{scrollbar-color:#49668f transparent;scrollbar-width:thin}
@media(max-width:760px){
 #adminWrap .userTop,#adminWrap .accessGrid{grid-template-columns:minmax(0,1fr)}
 #notificationsPage #rsyaRankingPreview{overflow-x:auto}
 #maxAnalyticsPage .mxTableWrap,#promotionPage .analyticsTableWrap{overflow-x:auto}
}
