/* Master console (components/master/*) + its session player (ms_player.js). ms- / msp- scoped. */
.ms-root { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; color: #e8e8e8;
  background: linear-gradient(109.6deg, rgb(0, 0, 0) 11.2%, rgb(20, 40, 60) 91.1%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ms-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 10px 20px 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ms-brand { display: flex; align-items: baseline; gap: 8px; color: #cfefff; padding-bottom: 6px; }
.ms-brand i { color: #f0a030; }
.ms-brand span { color: #9fb3c8; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.ms-tabs { margin-bottom: 0 !important; }
.ms-tabs label { font-size: .85rem; color: #9fb3c8; border-bottom: 2px solid transparent; }
.ms-right { margin-left: auto; display: flex; align-items: center; gap: 8px; padding-bottom: 6px; }
.ms-body { padding: 14px 20px 40px; }
.ms-loading { min-height: 60vh; }
.ms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ms-grid-au { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.ms-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 1100px) { .ms-grid, .ms-grid-au, .ms-grid2 { grid-template-columns: minmax(0, 1fr); } }
.ms-col { min-width: 0; }
.ms-col-r { position: sticky; top: 64px; }
.ms-card { margin-bottom: 14px; }
.ms-h3 { color: #cfefff; font-size: .78rem; font-weight: 600; margin: 12px 0 4px; }
.ms-mut { color: #9fb3c8; }
.ms-acc { color: #f0a030; }
.ms-warn { color: #fab219; }
.ms-bad { color: #ffb4ac; }
.ms-small { font-size: .72rem; }
.ms-ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-empty { color: #9fb3c8; font-size: .78rem; padding: 10px 2px; }
.ms-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.ms-btn { background: rgba(255, 255, 255, 0.06); color: #e8e8e8 !important; border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px; padding: 3px 10px; font-size: .74rem; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.ms-btn:hover:not(:disabled) { border-color: #f0a030; color: #f0a030 !important; }
.ms-btn:disabled { opacity: .45; cursor: default; }
.ms-btn-s { padding: 0 8px; font-size: .66rem; line-height: 1.7; }
.ms-btn-warn { border-color: rgba(250, 178, 25, 0.6); color: #fab219 !important; }
.ms-btn-acc { border-color: rgba(240, 160, 48, 0.7); color: #f5d6a3 !important; }
.ms-st { display: inline-block; font-size: .64rem; padding: 0 7px; border: 1px solid; border-radius: 10px; line-height: 1.7;
  white-space: nowrap; margin-right: 6px; }
.ms-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 8px; }
.ms-tscroll { overflow-x: auto; max-height: 460px; overflow-y: auto; }
.ms-table { width: 100%; border-collapse: collapse; font-size: .72rem; color: #e8e8e8; }
.ms-table th { color: #9fb3c8; font-weight: 500; text-align: left; padding: 4px 6px; position: sticky; top: 0;
  background: rgba(10, 14, 20, 0.95); border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.ms-table td { padding: 4px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: top; }
.ms-table code, .ms-errmsg { color: #cfdcea; font-size: .68rem; word-break: break-word; }
.ms-pre { background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 8px; padding: 8px;
  font-size: .68rem; color: #cfdcea; max-height: 260px; overflow: auto; white-space: pre-wrap; margin: 6px 0; }
.ms-details { margin-top: 4px; }
.ms-details > summary { cursor: pointer; color: #9fb3c8; font-size: .7rem; }
.ms-details > summary:hover { color: #cfefff; }
.ms-srow { padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px; }
.ms-srow-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ms-sname { font-size: .82rem; color: #e8e8e8; }
.ms-cron { font-family: ui-monospace, Consolas, monospace; font-size: .68rem; margin-left: auto; }
.ms-cmd code { font-size: .66rem; color: #9fb3c8; word-break: break-all; }
.ms-warns { font-size: .7rem; color: #fab219; margin: 4px 0; padding-left: 18px; }
.ms-legs { display: flex; gap: 12px; flex-wrap: wrap; margin: 2px 0 6px; }
.ms-leg { font-size: .68rem; color: #9fb3c8; display: inline-flex; align-items: center; gap: 5px; }
.ms-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ms-split { display: flex; width: 120px; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.ms-split > div { height: 100%; }
.ms-capctl { display: flex; gap: 14px; flex-wrap: wrap; margin: 2px 0 8px; }
.ms-capctl label { display: flex; flex-direction: column; gap: 3px; font-size: .7rem; color: #9fb3c8; }
.ms-in { background: rgba(255, 255, 255, 0.06) !important; color: #e8e8e8 !important; border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px; padding: 3px 8px; width: 110px; font-size: .78rem; }
.ms-note { width: 100%; margin-top: 6px; }
.ms-saved { border-color: rgba(95, 191, 106, 0.6) !important; }
.ms-reco { font-size: .9rem; color: #cfefff; margin: 2px 0 6px; }
.ms-filters { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ms-dd { width: 220px; font-size: .78rem; }
.ms-dd .Select-control { background: rgba(255, 255, 255, 0.06) !important; border-color: rgba(255, 255, 255, 0.15) !important; }
.ms-dd .Select-value-label, .ms-dd .Select-placeholder, .ms-dd input { color: #e8e8e8 !important; }
.ms-dd .Select-menu-outer { background: #141b23 !important; color: #e8e8e8; }
.ms-dd .VirtualizedSelectOption { color: #e8e8e8; }
.ms-dd .VirtualizedSelectFocusedOption { background: rgba(240, 160, 48, 0.2) !important; }
.ms-rad { margin: 0 !important; gap: 14px !important; }
.ms-rad label { font-size: .76rem; color: #9fb3c8; border-bottom: 2px solid transparent; }
.ms-chk { display: flex; gap: 10px; font-size: .74rem; color: #cfdcea; }
.ms-chk label { display: inline-flex; align-items: center; gap: 4px; margin: 0; cursor: pointer; }
.ms-chk input { accent-color: #f0a030; }
.ms-slist { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.ms-sl { text-align: left; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 8px;
  padding: 6px 9px; color: #e8e8e8; cursor: pointer; }
.ms-sl:hover:not(:disabled) { border-color: rgba(240, 160, 48, 0.6); }
.ms-sl:disabled { opacity: .5; cursor: default; }
.ms-sl-err { border-left: 3px solid #ff7b72; }
.ms-sl-h { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.ms-errn { color: #ff9d9d; font-size: .7rem; }
.ms-err { padding: 6px 8px; border-radius: 8px; background: rgba(255, 123, 114, 0.06); border: 1px solid rgba(255, 123, 114, 0.15);
  margin-bottom: 6px; }
.ms-erh { display: flex; align-items: center; gap: 8px; font-size: .74rem; }
.ms-erh .ms-btn { margin-left: auto; }
.ms-ph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ms-player { margin-top: 10px; }

/* ---- session player ---- */
.msp { display: grid; grid-template-columns: minmax(200px, 0.8fr) minmax(0, 2fr); gap: 10px; }
@media (max-width: 1300px) { .msp { grid-template-columns: minmax(0, 1fr); } }
.msp-load { color: #9fb3c8; font-size: .78rem; padding: 14px; }
.msp-list { max-height: 62vh; overflow-y: auto; font-size: .7rem; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 8px;
  background: rgba(0, 0, 0, 0.3); position: relative; }
.msp-it { display: flex; gap: 6px; align-items: baseline; padding: 3px 7px; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.msp-it:hover { background: rgba(255, 255, 255, 0.05); }
.msp-it i { color: #9fb3c8; width: 12px; text-align: center; flex: 0 0 auto; }
.msp-it .msp-say { color: #e8e8e8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msp-ctx .msp-say { color: #9fb3c8; font-style: italic; }
.msp-err { background: rgba(255, 123, 114, 0.1); }
.msp-err i, .msp-err .msp-say { color: #ff9d9d; }
.msp-on { background: rgba(240, 160, 48, 0.18) !important; box-shadow: inset 3px 0 0 #f0a030; }
.msp-t { color: #6f8295; font-variant-numeric: tabular-nums; flex: 0 0 52px; }
.msp-stagewrap { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: #06090d; }
.msp-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 48px),
              repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 48px),
              linear-gradient(109.6deg, #000 11.2%, #0b4f57 91.1%); }
.msp-wm { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-size: 140px; font-weight: 800;
  color: rgba(255, 255, 255, 0.05); text-transform: uppercase; letter-spacing: .06em; pointer-events: none; }
.msp-top { position: absolute; left: 0; right: 0; top: 0; height: 44px; line-height: 44px; padding: 0 24px; font-size: 20px;
  color: #9fb3c8; background: rgba(0, 0, 0, 0.45); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.msp-top b { color: #cfefff; }
.msp-box { position: absolute; border-radius: 8px; box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.5), 0 0 0 4px #f0a030, 0 0 40px 10px rgba(240, 160, 48, 0.5);
  transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; }
.msp-box span { position: absolute; left: 0; top: 100%; margin-top: 12px; white-space: nowrap; font-size: 22px; color: #f5d6a3;
  background: rgba(10, 14, 20, 0.9); padding: 4px 12px; border-radius: 8px; max-width: 900px; overflow: hidden; text-overflow: ellipsis; }
.msp-boxerr { box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.5), 0 0 0 4px #ff7b72, 0 0 40px 10px rgba(255, 123, 114, 0.5); }
.msp-ptr { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 4px solid #f0a030;
  background: rgba(240, 160, 48, 0.3); animation: msp-pulse 1.1s ease-out infinite; transition: left .3s ease, top .3s ease; }
@keyframes msp-pulse { 0% { transform: scale(.7); } 70% { transform: scale(1.3); opacity: .6; } 100% { transform: scale(1.4); opacity: 0; } }
.msp-ghosts i { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #cfefff; }
.msp-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #cfefff;
  font-size: 30px; background: rgba(10, 14, 20, 0.85); padding: 28px 40px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.12);
  max-width: 70%; }
.msp-center i { font-size: 54px; color: #4be9fa; margin-bottom: 10px; display: block; }
.msp-cerr { border-color: #ff7b72; }
.msp-cerr i { color: #ff7b72; }
.msp-none { display: none !important; }
.msp-cap { margin-top: 8px; font-size: .78rem; color: #e8e8e8; background: rgba(0, 0, 0, 0.35); border-left: 3px solid #f0a030;
  border-radius: 8px; padding: 7px 10px; min-height: 2.6em; }
.msp-caperr { border-left-color: #ff7b72; }
.msp-n { color: #f0a030; font-weight: 600; }
.msp-mut { color: #9fb3c8; font-size: .7rem; word-break: break-all; }
.msp-tb { font-size: .66rem; color: #ffb4ac; max-height: 200px; overflow: auto; white-space: pre-wrap; margin: 6px 0 0; }
.msp-ctl { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.msp-ctl button { background: rgba(255, 255, 255, 0.06); color: #e8e8e8; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px;
  width: 32px; height: 28px; cursor: pointer; }
.msp-ctl button:hover { border-color: #f0a030; color: #f0a030; }
.msp-ctl select { background: rgba(255, 255, 255, 0.06); color: #e8e8e8; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; height: 28px; }
.msp-ctl select option { background: #141b23; }
.msp-scrub { flex: 1; accent-color: #f0a030; min-width: 80px; }
.msp-pos { color: #9fb3c8; font-size: .7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Account requests tab (components/master/requests_tab.py) */
.ms-ar-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 8px; }
.ms-ar-notewrap { flex: 1 1 100%; }
.ms-ar-actions .ms-note { min-height: 44px; width: 100% !important; max-width: 520px; }
.ms-ar-step > summary { list-style: none; display: inline-block; padding: 4px 12px; font-size: .78rem; }
.ms-ar-step > summary::-webkit-details-marker { display: none; }
.ms-ar-step[open] > summary { opacity: .6; }
.ms-ar-confirm { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-width: 360px; }
.ms-ar-ok { border-color: rgba(95, 191, 106, 0.6) !important; color: #a9e6b0 !important; }
.ms-ar-no { border-color: rgba(230, 103, 103, 0.6) !important; color: #ffb4ac !important; }
.ms-ar-flash { margin: 4px 0 12px; padding: 8px 12px; border-radius: 8px; font-size: .8rem; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12); }
.ms-ar-table td:first-child { white-space: nowrap; }
.ms-tab-badge { display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 4px; border-radius: 8px; font-size: .64rem;
  line-height: 16px; text-align: center; color: #1b1205; background: #f0a030; }
/* Reach & marketing (reach_tab.py), Users & support (support_tab.py), Usefulness (usefulness_tab.py) */
.ms-rc-bar { width: 140px; }
.ms-rc-in { width: 190px; }
.ms-rc-link { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.ms-rc-link > span { flex: 0 0 150px; }
.ms-rc-link code, .ms-rc-url { color: #f5d6a3; font-size: .78rem; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px; padding: 2px 8px; user-select: all; word-break: break-all; }
.ms-rc-how { color: #cfdcea; padding-left: 18px; margin: 6px 0; line-height: 1.5; }
.ms-sp-ctl { align-items: flex-end; }
.ms-sp-ctl .ms-dd { width: 230px; }
.ms-sp-name { width: 260px; }
.ms-sp-out:empty { display: none; }
.ms-grid-uf { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .ms-grid-uf { grid-template-columns: minmax(0, 1fr); } }
.ms-uf-u { display: flex; align-items: center; gap: 6px; }
.ms-uf-score { color: #cfefff; font-weight: 600; min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.ms-uf-bar { width: 54px; height: 6px; }
.ms-uf-comps { display: flex; gap: 3px; align-items: center; }
.ms-uf-comps .ms-uf-bar { width: 30px; }
.ms-uf-table td { vertical-align: middle; white-space: nowrap; }
.ms-uf-table td:nth-child(8) { white-space: normal; min-width: 120px; }

/* ---- one-time codes (2026-10-05): the email to send by hand, in cells ready to copy (components/master/ui.mail_cells;
        the same box inside the mobile master view, tuned in ms_mobile.css) ---- */
.ms-mail { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.ms-mail-note { font-size: .74rem; color: #9fb3c8; }
.ms-mail-note i { color: #f0a030; }
.ms-mail-warn { padding: 8px 10px; border-radius: 8px; font-size: .78rem; line-height: 1.4; color: #ffd0cb;
                background: rgba(230, 103, 103, 0.10); border: 1px solid rgba(230, 103, 103, 0.5); }
.ms-mail-cell { border-radius: 10px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; }
.ms-mail-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 4px 10px;
             background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ms-mail-k { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: #9fb3c8; font-weight: 650; }
.ms-mail-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer;
                font-size: .74rem; font-weight: 650; color: #f5d6a3; background: rgba(240, 160, 48, 0.12); border: 1px solid rgba(240, 160, 48, 0.55); }
.ms-mail-copy:hover { background: rgba(240, 160, 48, 0.22); }
.ms-mail-copy.done { color: #a9e6b0; border-color: rgba(95, 191, 106, 0.7); background: rgba(95, 191, 106, 0.14); }
.ms-mail-copy.manual { color: #cfefff; border-color: rgba(75, 233, 250, 0.5); background: rgba(75, 233, 250, 0.10); }
.ms-mail-copy:active { transform: translateY(1px); }
.ms-mail-copy { font-family: inherit; line-height: 1.2; }
.ms-mail-v { padding: 8px 10px; font-size: .84rem; line-height: 1.45; color: #e8e8e8; white-space: pre-wrap; overflow-wrap: anywhere;
             user-select: all; -webkit-user-select: all; }
.ms-mail-v.body { max-height: 320px; overflow-y: auto; font-size: .8rem; }
.ms-mail-v.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.25rem; letter-spacing: .14em;
                  color: #ffd38a; font-weight: 650; }
.ms-mail-foot { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.ms-mail-foot .ms-mail-cell { flex: 1 1 220px; }
.ms-mail-open { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; min-height: 44px; border-radius: 10px;
                font-size: .8rem; font-weight: 650; color: #cfefff !important; text-decoration: none !important;
                background: rgba(75, 233, 250, 0.08); border: 1px solid rgba(75, 233, 250, 0.4); }
.ms-mail-open:hover { background: rgba(75, 233, 250, 0.16); }
.ms-mail-card { border-color: rgba(240, 160, 48, 0.5) !important; margin-bottom: 12px; }
/* password recovery: a code for any account */
.ms-rc-new { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.ms-rc-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.ms-rc-dd { width: 240px; }
/* push notifications (ui.push_box; assets/master/ms_push.js sets data-ms-push-state) */
.ms-push { margin-top: 8px; }
.ms-push-status { font-size: .8rem; line-height: 1.45; color: #e8e8e8; }
.ms-push-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ms-push .ms-push-on, .ms-push .ms-push-off, .ms-push .ms-push-test { display: none; }
.ms-push[data-ms-push-state="off"] .ms-push-on { display: inline-flex; }
.ms-push[data-ms-push-state="on"] .ms-push-off, .ms-push[data-ms-push-state="on"] .ms-push-test { display: inline-flex; }
.ms-push[data-ms-push-state="on"] .ms-push-status { color: #a9e6b0; }
.ms-push[data-ms-push-state="blocked"] .ms-push-status, .ms-push[data-ms-push-state="server"] .ms-push-status { color: #ffb4ac; }
.ms-push .ms-btn { align-items: center; gap: 6px; padding: 4px 12px; font-size: .78rem; }
