/* style block 01 */
:root{--bg:#04101a;--bg2:#071628;--panel:#0a1627;--line:rgba(255,255,255,.07);--text:#eef3f9;--muted:#9cb0c7;--accent:#22c55e;--accent-dark:#16a34a;--accent-blue:#3b82f6;--shadow:0 18px 42px rgba(0,0,0,.34);--sidebar-w:var(--mf-shell-sidebar-width,132px);--gap:18px;--top-h:88px;}
    *{box-sizing:border-box} html,
body{width:100%;min-height:100%;background:#04101a;overscroll-behavior:none}
    body{margin:0;overflow:auto;overflow-x:hidden;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:radial-gradient(circle at 15% 12%, rgba(34,197,94,.08), transparent 22%),radial-gradient(circle at 86% 10%, rgba(59,130,246,.08), transparent 22%),linear-gradient(145deg,var(--bg) 0%,var(--bg2) 58%,#020814 100%)}
    a{text-decoration:none;color:inherit} button,
input,
textarea,
select{font:inherit}
    .app{min-height:100vh;align-items:stretch;}
    
    html,
body,
.content,
textarea,
.textarea{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.10) transparent} html::-webkit-scrollbar,
body::-webkit-scrollbar,
.content::-webkit-scrollbar,
textarea::-webkit-scrollbar,
.textarea::-webkit-scrollbar{width:10px;height:10px} html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track,
.textarea::-webkit-scrollbar-track{background:transparent} html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb,
.textarea::-webkit-scrollbar-thumb{background:rgba(255,255,255,.10);border-radius:999px}
    
    
    
    
    
    .nav-icon-field{width:28px;height:18px;display:block;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Crect x='2' y='2' width='60' height='36' rx='8' fill='none' stroke='%23bff4ce' stroke-width='3'/%3E%3Cpath d='M32 2v36M2 20h60' stroke='%23bff4ce' stroke-width='3'/%3E%3Ccircle cx='32' cy='20' r='6' fill='none' stroke='%23bff4ce' stroke-width='3'/%3E%3Cpath d='M2 12h9v16H2M53 12h9v16h-9' stroke='%23bff4ce' stroke-width='3' fill='none'/%3E%3C/svg%3E")}
    

    
    
    
    
    
    .main{min-width:0;grid-column:2;display:flex;flex-direction:column;gap:18px}
    .topbar{border:1px solid var(--line);border-radius:30px;background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));box-shadow:var(--shadow);padding:0 24px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;overflow:hidden;min-height:var(--top-h)}
    .title{margin:0;font-size:30px;line-height:1.02;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .top-pills{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
    .pill{min-height:38px;padding:0 16px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--text)}
    .pill.accent{border-color:rgba(34,197,94,.22);background:rgba(22,163,74,.12);color:#d8ffe6}
    .content{display:flex;flex-direction:column;gap:18px;overflow:visible;padding:0 6px 16px 0}
    .card,
.panel{min-height:0;border-radius:28px;border:1px solid var(--line);background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));box-shadow:var(--shadow);overflow:hidden}
    .hero{padding:20px 24px;display:grid;grid-template-columns:minmax(0,1.16fr) minmax(280px,.84fr);gap:16px;align-items:start;min-height:0;position:relative;z-index:1}
    .hero:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at top right, rgba(59,130,246,.10), transparent 28%),radial-gradient(circle at 20% 0, rgba(34,197,94,.08), transparent 22%)}
    .hero > *{position:relative;z-index:1}
    .hero-main,
.hero-side{min-width:0}
    .hero-main{display:flex;flex-direction:column;justify-content:flex-start;gap:12px}
    .hero-copy-wrap{display:grid;gap:8px;align-content:start}
    .hero-title{margin:0;font-size:42px;line-height:1.05;font-weight:900}
    .hero-copy{font-size:14px;line-height:1.6;color:var(--muted);max-width:760px} .hero-copy:empty,
.status:empty{display:none}
    .hero-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:2px}
    .btn{min-height:40px;padding:0 16px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:var(--text);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;white-space:nowrap;cursor:pointer;transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease}
    .btn.primary{background:linear-gradient(180deg, rgba(34,197,94,.24), rgba(22,163,74,.16));border-color:rgba(34,197,94,.26)}
    .btn.subtle{background:rgba(255,255,255,.03)} .btn.danger{background:rgba(127,29,29,.32);border-color:rgba(248,113,113,.18);color:#fecaca}
    .metrics{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-content:start}
    .metric{min-height:92px;border-radius:20px;border:1px solid rgba(255,255,255,.05);background:rgba(255,255,255,.03);padding:14px 16px}
    .metric-k{font-size:11px;color:#8de5ad;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
    .metric-v{margin-top:7px;font-size:20px;line-height:1.1;font-weight:900;overflow:hidden;text-overflow:ellipsis}
    .metric-m{margin-top:4px;font-size:12px;line-height:1.4;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
    .status{color:var(--muted);font-size:13px;line-height:1.5;min-height:18px}
    .status.success{color:#c9f8d6} .status.warn{color:#fbd38d} .status.error{color:#fecaca}
    .section-panel{padding:20px;display:grid;gap:18px}
    .section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
    .section-title{margin:0;font-size:22px;font-weight:900}
    .section-copy{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.45;max-width:860px}
    .module-kicker{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#8de5ad;font-weight:800}
    .surface-card,
.note-card,
.principle-card,
.scheme-card,
.position-card,
.lane-card{border-radius:22px;border:1px solid rgba(255,255,255,.05);background:rgba(255,255,255,.03);box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}
    .surface-card{padding:18px;display:grid;gap:16px}
    .surface-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
    .surface-title{font-size:16px;font-weight:900;line-height:1.1}
    .surface-copy{font-size:12px;color:var(--muted);line-height:1.45;margin-top:4px}
    .system-shell{display:grid;grid-template-columns:minmax(360px,.86fr) minmax(0,1.14fr);gap:18px;align-items:stretch}
    .system-right,
.phase-groups,
.system-phase-block,
.system-position-block{display:grid;gap:18px}.system-right{height:100%}.image-surface{height:100%}
    .system-phase-block,
.system-position-block{grid-column:1 / -1}
    .behavior-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;grid-auto-rows:minmax(0,1fr);height:100%}.behavior-grid > .note-card{height:100%}
    .note-card{padding:16px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;align-items:stretch}
    .note-title{font-size:13px;font-weight:800;line-height:1.3}
    .field{display:grid;gap:6px;min-width:0} .field.full{grid-column:1 / -1}
    .label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#8de5ad;font-weight:800}
    .input,
.textarea{min-height:40px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:var(--text);padding:0 14px;font:inherit;min-width:0;outline:none;appearance:none;-webkit-appearance:none;-moz-appearance:none;box-shadow:none}
    .textarea{min-height:118px;padding:12px 14px;resize:vertical}
    .note-area{min-height:0;height:100%;flex:1 1 auto} .position-area{min-height:108px} .lane-area{min-height:180px} .scheme-area{min-height:122px}
    .input:focus,
.textarea:focus{border-color:rgba(34,197,94,.34);box-shadow:0 0 0 3px rgba(34,197,94,.12)}
    .image-picker{display:grid;gap:12px;align-content:start} .image-picker.large{gap:14px} .image-picker.compact{gap:10px}
    .picker-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
    .picker-title{font-size:12px;line-height:1.35;font-weight:800}
    .picker-state{font-size:11px;color:var(--muted);text-align:right}
    .image-preview{width:100%;aspect-ratio:16/10;border-radius:22px;border:1px dashed rgba(255,255,255,.12);background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}
    .image-picker.compact .image-preview{aspect-ratio:16/10;border-radius:20px;min-height:240px}
    .image-picker.large .image-preview{aspect-ratio:16/11;min-height:240px}
    .image-preview img{width:100%;height:100%;object-fit:contain;display:none;background:rgba(255,255,255,.02);}
    .image-preview.has-image img{display:block}
    .image-preview.has-image .image-placeholder{display:none}
    .image-placeholder{font-size:12px;line-height:1.45;color:var(--muted);text-align:center;padding:20px;max-width:220px}
    .picker-actions{display:flex;gap:10px;flex-wrap:wrap}
    .phase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
    .position-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
    .position-card{padding:14px;display:grid;gap:10px}
    .position-title{font-size:12px;font-weight:900;line-height:1.2}
    .principles-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
    .principle-card{padding:18px;display:grid;gap:14px}
    .principle-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
    .principle-title{font-size:17px;font-weight:900;line-height:1.15}
    .principle-lanes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
    .lane-card{padding:14px;display:grid;gap:10px}
    .lane-title{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#8de5ad;font-weight:800}
    .scheme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
    .scheme-card{padding:18px;display:grid;gap:14px}
    .scheme-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
    .scheme-title{font-size:16px;font-weight:900;line-height:1.1}
    .export-choice-modal{position:fixed;inset:0;z-index:2650;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(2,6,23,.64);backdrop-filter:blur(12px)}
.export-choice-modal.open{display:flex}
.export-choice-card{width:min(100%,640px);border-radius:28px;border:1px solid var(--line);background:radial-gradient(circle at top right, rgba(34,197,94,.08), transparent 24%),linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),#0a1527;box-shadow:0 32px 80px rgba(2,6,23,.5);padding:28px;display:grid;gap:18px}
.export-choice-badge{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 18px;border-radius:999px;border:1px solid rgba(34,197,94,.24);background:rgba(22,163,74,.12);color:#d8ffe6;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:900;justify-self:start}
.export-choice-title{margin:0;font-size:28px;line-height:1.05;font-weight:900;color:var(--text)}
.export-choice-copy{margin:0;font-size:14px;line-height:1.55;color:var(--muted)}
.export-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.export-choice-grid .btn{min-height:54px;font-size:16px;font-weight:900}
.export-choice-actions{display:flex;justify-content:flex-end}
.modal{position:fixed;inset:0;z-index:2650;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(2,6,23,.64);backdrop-filter:blur(12px)}
    .modal.open{display:flex}
    .modal-card{width:min(100%,640px);border-radius:28px;border:1px solid var(--line);background:radial-gradient(circle at top right, rgba(34,197,94,.08), transparent 24%),linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),#0a1527;box-shadow:0 32px 80px rgba(2,6,23,.5);padding:28px;display:grid;gap:16px}
.pdf-modal-card{width:min(100%,640px)}
.modal-badge{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 18px;border-radius:999px;border:1px solid rgba(34,197,94,.24);background:rgba(22,163,74,.12);color:#d8ffe6;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:900;justify-self:start}
.modal-title{margin:0;font-size:28px;line-height:1.05;font-weight:900;color:var(--text)}
.modal-copy{margin:0;font-size:14px;line-height:1.55;color:var(--muted)}
.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.modal-actions.single{grid-template-columns:1fr}
.pdf-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pdf-option{appearance:none;-webkit-appearance:none;min-height:142px;padding:18px;border-radius:20px;border:1px solid rgba(255,255,255,.05);background:rgba(255,255,255,.03);box-shadow:inset 0 1px 0 rgba(255,255,255,.02);display:grid;align-content:start;gap:10px;text-align:left;cursor:pointer;transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;color:var(--text)}
.pdf-option-kicker{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#8de5ad;font-weight:800}
.pdf-option-title{font-size:18px;font-weight:900;line-height:1.12;color:var(--text)}
.pdf-option-copy{font-size:13px;line-height:1.55;color:var(--muted)}
.print-root{display:none}
.print-page{display:grid;gap:10mm}
.print-hero,
.print-section,
.print-block,
.print-subsection{border-radius:18px;border:1px solid rgba(16,24,40,.12);background:#fff}
.print-hero{padding:18px 20px;display:grid;gap:14px}
.print-kicker{font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:800;color:#157347}
.print-title{margin:0;font-size:30px;line-height:1.05;font-weight:900}
.print-meta{font-size:12px;line-height:1.45;color:#667085}
.print-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.print-stat{border-radius:14px;border:1px solid rgba(16,24,40,.10);padding:12px 14px;background:rgba(16,24,40,.02)}
.print-stat-label{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#157347}
.print-stat-value{margin-top:6px;font-size:20px;line-height:1.05;font-weight:900}
.print-stat-meta{margin-top:4px;font-size:12px;line-height:1.4;color:#667085}
.print-section{padding:16px 18px;display:grid;gap:14px;break-inside:avoid-page;page-break-inside:avoid}
.print-section-head{display:grid;gap:4px}
.print-section-title{margin:0;font-size:22px;line-height:1.08;font-weight:900}
.print-section-copy{font-size:12px;line-height:1.45;color:#667085}
.print-grid{display:grid;gap:12px}
.print-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.print-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.print-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.print-grid.auto{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.print-block{padding:14px;display:grid;gap:12px;break-inside:avoid;page-break-inside:avoid}
.print-block-title{margin:0;font-size:14px;line-height:1.2;font-weight:900}
.print-block-subtitle{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#374151;font-weight:800}
.print-lines{display:grid;gap:7px}
.print-lines p{margin:0;font-size:12px;line-height:1.5}
.print-empty{font-size:12px;line-height:1.4;color:#98a2b3}
.print-image-frame{aspect-ratio:16/10;border-radius:14px;border:1px solid rgba(16,24,40,.12);background:#f3f6fb;overflow:hidden;display:flex;align-items:center;justify-content:center}
.print-image-frame img{width:100%;height:100%;object-fit:contain;display:block;background:rgba(255,255,255,.02);}
.print-image-frame.empty{border-style:dashed}
.print-empty-image{font-size:12px;line-height:1.4;color:#667085;text-align:center;padding:18px}
.print-system-top{display:grid;grid-template-columns:minmax(260px,.82fr) minmax(0,1.18fr);gap:12px;align-items:start}
.print-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.print-phase-stack{display:grid;gap:12px}
@media print{
  @page{size:A4;margin:12mm}
  html,
body{background:#fff !important;min-height:auto !important;height:auto !important;overflow:visible !important}
  body{margin:0;color:#101828;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .app,
.modal{display:none !important}
  .print-root{display:block !important;padding:12mm}
  .print-root,
.print-root *{box-sizing:border-box}
  body.print-mode-color .print-hero,
body.print-mode-color .print-section,
body.print-mode-color .print-block,
body.print-mode-color .print-subsection{background:#071628 !important;border-color:rgba(255,255,255,.08) !important;color:#eef3f9 !important;box-shadow:none !important}
  body.print-mode-color .print-stat{background:rgba(255,255,255,.03) !important;border-color:rgba(255,255,255,.08) !important}
  body.print-mode-color .print-kicker,
body.print-mode-color .print-stat-label,
body.print-mode-color .print-block-subtitle{color:#8de5ad !important}
  body.print-mode-color .print-meta,
body.print-mode-color .print-stat-meta,
body.print-mode-color .print-section-copy,
body.print-mode-color .print-empty{color:#9cb0c7 !important}
  body.print-mode-color .print-image-frame{background:#091423 !important;border-color:rgba(255,255,255,.08) !important}
  body.print-mode-color .print-empty-image{color:#9cb0c7 !important}
  body.print-mode-white .print-hero,
body.print-mode-white .print-section,
body.print-mode-white .print-block,
body.print-mode-white .print-subsection{background:#fff !important;border-color:rgba(16,24,40,.12) !important;color:#101828 !important;box-shadow:none !important}
  body.print-mode-white .print-stat{background:rgba(16,24,40,.02) !important;border-color:rgba(16,24,40,.10) !important}
  body.print-mode-white .print-kicker,
body.print-mode-white .print-stat-label,
body.print-mode-white .print-block-subtitle{color:#374151 !important}
  body.print-mode-white .print-meta,
body.print-mode-white .print-stat-meta,
body.print-mode-white .print-section-copy,
body.print-mode-white .print-empty{color:#667085 !important}
  body.print-mode-white .print-image-frame{background:#f3f6fb !important;border-color:rgba(16,24,40,.12) !important}
  @page{size:A4 portrait;margin:10mm}
}
    @media (hover:hover){.btn:hover,
.pdf-option:hover{transform:translateY(-1px);border-color:rgba(34,197,94,.24);box-shadow:0 10px 20px rgba(2,6,23,.18)} }
    @media (max-width:1420px){.system-shell,
.hero{grid-template-columns:1fr} .position-grid{grid-template-columns:repeat(2,minmax(0,1fr))} .principle-lanes{grid-template-columns:1fr} }
    @media (max-width:1180px){.behavior-grid,
.principles-grid,
.scheme-grid,
.phase-grid,
.pdf-options{grid-template-columns:1fr 1fr} }
    @media (max-width:900px){html,
body{height:auto;min-height:100%} body{overflow:auto;-webkit-overflow-scrolling:touch} .app{min-height:100vh;height:auto;overflow:visible;}  .main,
.content{display:block;height:auto;overflow:visible} .topbar,
.hero,
.panel,
.card,
.surface-card,
.scheme-card,
.principle-card,
.position-card,
.lane-card,
.note-card{border-radius:22px} .topbar,
.hero,
.section-panel,
.surface-card,
.scheme-card,
.principle-card{padding:16px} .topbar{margin-bottom:18px;grid-template-columns:1fr} .hero-actions,
.picker-actions,
.modal-actions,
.pdf-options,
.export-choice-grid{display:grid;grid-template-columns:1fr;gap:10px} .hero-actions .btn,
.picker-actions .btn,
.modal-actions .btn,
.pdf-options .pdf-option,
.export-choice-grid .btn{width:100%} .metrics,
.behavior-grid,
.principles-grid,
.scheme-grid,
.phase-grid,
.position-grid,
.principle-lanes{grid-template-columns:1fr} .content{padding-right:0} .input,
.textarea,
input,
textarea{font-size:16px} }
  
/* --- mobile navigation aligned with Tactical Animations --- */

@media(max-width:760px){
  html,
body{width:100%;max-width:100%;height:auto;min-height:100%;overflow-x:hidden!important;overflow-y:auto!important}
  body{min-height:100svh}
  .app{
    
    
    
    
    height:auto!important;
    min-height:100svh!important;
    overflow:visible!important;
    
  }
  
  
  
  
  
  
  
  
  
  
  .nav-icon-field{width:24px!important;height:16px!important}
  
  .main,
.content,
.workspace,
.editor-grid,
.editor-host,
.editor-scroll,
.preview-panel,
.list,
.panel,
.card,
.hero,
.topbar{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .main{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    display:grid!important;
    gap:10px!important;
  }
  .content,
.workspace,
.editor-grid,
.editor-host,
.editor-scroll,
.preview-panel,
.list{height:auto!important;min-height:0!important;overflow:visible!important}
  .hero,
.topbar{grid-template-columns:1fr!important;padding:12px!important;border-radius:22px!important;gap:12px!important}
  .hero-actions,
.toolbar,
.savebar,
.row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important}
  .hero-actions .btn,
.toolbar .btn,
.savebar .btn,
.row .btn{width:100%!important;min-height:38px!important;font-size:12px!important}
  
}

/* style block 02 */
:root{
    --bg:#04101a;
    --bg2:#071628;
    --panel:#0a1627;
    --panel-soft:rgba(255,255,255,.03);
    --line:rgba(255,255,255,.07);
    --text:#eef3f9;
    --muted:#9cb0c7;
    --accent:#22c55e;
    --accent-dark:#16a34a;
    --shadow:0 18px 42px rgba(0,0,0,.34);
    --radius-xl:28px;
    --radius-lg:22px;
    --radius-md:18px;
    --sidebar-w:var(--mf-shell-sidebar-width,132px);
    --gap:18px;
    --top-h:88px;
  }
  body{background:radial-gradient(circle at 15% 12%, rgba(34,197,94,.08), transparent 22%), radial-gradient(circle at 86% 10%, rgba(59,130,246,.08), transparent 22%), linear-gradient(145deg, var(--bg) 0%, var(--bg2) 58%, #020814 100%) !important;}
  
  
  
  
  .nav-icon-field{width:28px;height:18px;display:block;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Crect x='2' y='2' width='60' height='36' rx='8' fill='none' stroke='%23bff4ce' stroke-width='3'/%3E%3Cpath d='M32 2v36M2 20h60' stroke='%23bff4ce' stroke-width='3'/%3E%3Ccircle cx='32' cy='20' r='6' fill='none' stroke='%23bff4ce' stroke-width='3'/%3E%3Cpath d='M2 12h9v16H2M53 12h9v16h-9' stroke='%23bff4ce' stroke-width='3' fill='none'/%3E%3C/svg%3E");}

/* style block 03 */
body.is-app-loading{overflow:hidden !important;}
  .app-loading-overlay{
    position:fixed;
    inset:0;
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:
      radial-gradient(circle at 20% 12%, rgba(34,197,94,.10), transparent 28%),
      radial-gradient(circle at 82% 8%, rgba(59,130,246,.10), transparent 26%),
      linear-gradient(145deg, rgba(4,16,26,.96) 0%, rgba(7,22,40,.98) 60%, rgba(2,8,20,.99) 100%);
    backdrop-filter:blur(10px);
    opacity:1;
    visibility:visible;
    transition:opacity .35s ease, visibility .35s ease;
  }
  .app-loading-overlay.is-hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }
  .app-loading-card{
    width:min(430px, calc(100vw - 32px));
    padding:28px 24px 24px;
    border-radius:28px;
    border:1px solid rgba(255,255,255,.08);
    background:
      radial-gradient(circle at top, rgba(34,197,94,.16), transparent 36%),
      linear-gradient(180deg, rgba(15,23,42,.96), rgba(2,6,23,.98));
    box-shadow:0 30px 80px rgba(0,0,0,.44);
    text-align:center;
  }
  .app-loading-logo-wrap{
    width:84px;height:84px;margin:0 auto 16px;padding:10px;border-radius:24px;
    background:linear-gradient(135deg, rgba(34,197,94,.18), rgba(21,128,61,.22));
    border:1px solid rgba(34,197,94,.24);box-shadow:0 16px 34px rgba(34,197,94,.18);
    display:flex;align-items:center;justify-content:center;
  }
  .app-loading-logo{width:100%;height:100%;object-fit:contain;display:block;border-radius:18px;}
  .app-loading-badge{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 12px;margin-bottom:14px;border-radius:999px;border:1px solid rgba(34,197,94,.22);background:rgba(34,197,94,.10);color:#bbf7d0;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;}
  .app-loading-title{margin:0;font-size:clamp(24px, 3vw, 28px);line-height:1.05;font-weight:900;color:#f8fafc;white-space:nowrap;}
  .app-loading-copy{margin:10px 0 0;color:#cbd5e1;font-size:14px;line-height:1.55;}
  .app-loading-progress-wrap{margin-top:22px;display:grid;gap:12px;}
  .app-loading-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;}
  .app-loading-status{min-width:0;color:#e2e8f0;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .app-loading-percent{color:#86efac;font-size:13px;font-weight:900;letter-spacing:.04em;}
  .app-loading-bar{position:relative;height:14px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.22);}
  .app-loading-bar-fill{position:absolute;inset:0 auto 0 0;width:0%;border-radius:inherit;background:linear-gradient(90deg, #22c55e 0%, #4ade80 55%, #86efac 100%);box-shadow:0 0 24px rgba(34,197,94,.28);transition:width .3s ease;overflow:hidden;}
  .app-loading-bar-fill::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.26) 45%, transparent 100%);transform:translateX(-100%);animation:appLoadingShine 1.3s linear infinite;}
  .app-loading-foot{margin-top:14px;color:#94a3b8;font-size:12px;}
  @keyframes appLoadingShine{to{transform:translateX(100%);}}
  @media (max-width: 640px){
    .app-loading-card{padding:24px 18px 20px;border-radius:24px;}
    .app-loading-logo-wrap{width:74px;height:74px;border-radius:22px;}
    .app-loading-title{font-size:22px;white-space:normal;}
  }

/* style block 04 */
body.print-mode-white img,
body.print-mode-white .print-image-frame img{filter:none !important;-webkit-filter:none !important;}

/* style block 05 */
@media (max-width: 760px){
    
    
    
    
    
    
    
    
    
    
    
    .nav-icon-field{width:24px !important;height:16px !important;}
    
  }

/* style block 06 */
/* My Football App - global theme layer */
:root{
  color-scheme:dark;
  --mfe-surface-plain:rgba(255,255,255,.03);
  --mfe-surface-soft:rgba(255,255,255,.04);
  --mfe-card-bg:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  --mfe-card-bg-strong:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  --mfe-input-bg:rgba(255,255,255,.04);
  --mfe-input-border:rgba(255,255,255,.09);
  --mfe-accent-rgb:34,197,94;
  --mfe-accent-bg:rgba(var(--mfe-accent-rgb),.12);
  --mfe-accent-bg-strong:rgba(var(--mfe-accent-rgb),.22);
  --mfe-accent-border:rgba(var(--mfe-accent-rgb),.26);
  --mfe-accent-text:#d8ffe6;
  --mfe-danger:#ef4444;
  --mfe-warning:#f59e0b;
  --mfe-success:#22c55e;
  --mfe-scroll-track:rgba(255,255,255,.04);
  --mfe-scroll-thumb:rgba(var(--mfe-accent-rgb),.42);
  --mfe-scroll-thumb-hover:rgba(var(--mfe-accent-rgb),.62);
}
html[data-mfe-theme="light"]{
  color-scheme:light;
  --bg:#eef4f1;
  --bg2:#f8fafc;
  --panel:#ffffff;
  --line:rgba(15,23,42,.13);
  --text:#102018;
  --muted:#5b6b7c;
  --accent:#16a34a;
  --accent-dark:#15803d;
  --accent-blue:#2563eb;
  --shadow:0 18px 42px rgba(15,23,42,.12);
  --mfe-surface-plain:rgba(255,255,255,.86);
  --mfe-surface-soft:rgba(255,255,255,.92);
  --mfe-card-bg:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,252,.90));
  --mfe-card-bg-strong:linear-gradient(180deg, rgba(255,255,255,1), rgba(241,245,249,.96));
  --mfe-input-bg:rgba(255,255,255,.96);
  --mfe-input-border:rgba(15,23,42,.16);
  --mfe-accent-rgb:22,163,74;
  --mfe-accent-bg:rgba(22,163,74,.10);
  --mfe-accent-bg-strong:rgba(22,163,74,.18);
  --mfe-accent-border:rgba(22,163,74,.30);
  --mfe-accent-text:#064e3b;
  --mfe-scroll-track:rgba(15,23,42,.05);
  --mfe-scroll-thumb:rgba(22,163,74,.40);
  --mfe-scroll-thumb-hover:rgba(22,163,74,.58);
}
html[data-mfe-theme="gray"]{
  color-scheme:dark;
  --bg:#111315;
  --bg2:#1d2024;
  --panel:#171a1f;
  --line:rgba(255,255,255,.09);
  --text:#f3f4f6;
  --muted:#a8b0bb;
  --accent:#d1d5db;
  --accent-dark:#9ca3af;
  --accent-blue:#cbd5e1;
  --shadow:0 18px 42px rgba(0,0,0,.38);
  --mfe-surface-plain:rgba(255,255,255,.035);
  --mfe-surface-soft:rgba(255,255,255,.05);
  --mfe-card-bg:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  --mfe-card-bg-strong:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  --mfe-input-bg:rgba(255,255,255,.05);
  --mfe-input-border:rgba(255,255,255,.11);
  --mfe-accent-rgb:209,213,219;
  --mfe-accent-bg:rgba(209,213,219,.10);
  --mfe-accent-bg-strong:rgba(209,213,219,.18);
  --mfe-accent-border:rgba(209,213,219,.26);
  --mfe-accent-text:#f8fafc;
  --mfe-scroll-track:rgba(255,255,255,.04);
  --mfe-scroll-thumb:rgba(209,213,219,.32);
  --mfe-scroll-thumb-hover:rgba(209,213,219,.50);
}
html[data-mfe-theme="custom"]{
  color-scheme:dark;
  --bg:#04101a;
  --bg2:#071628;
  --panel:#0a1627;
  --line:rgba(255,255,255,.07);
  --text:#eef3f9;
  --muted:#9cb0c7;
  --accent:var(--mfe-custom-primary,#22c55e);
  --accent-dark:var(--mfe-custom-primary-dark,#16a34a);
  --mfe-accent-rgb:var(--mfe-custom-primary-rgb,34,197,94);
  --mfe-accent-bg:rgba(var(--mfe-accent-rgb),.12);
  --mfe-accent-bg-strong:rgba(var(--mfe-accent-rgb),.22);
  --mfe-accent-border:rgba(var(--mfe-accent-rgb),.28);
  --mfe-accent-text:#ffffff;
  --mfe-scroll-thumb:rgba(var(--mfe-accent-rgb),.42);
  --mfe-scroll-thumb-hover:rgba(var(--mfe-accent-rgb),.62);
}
html[data-mfe-theme] body{
  color:var(--text)!important;
  scrollbar-color:var(--mfe-scroll-thumb) var(--mfe-scroll-track);
}
html[data-mfe-theme="light"] body{
  background:radial-gradient(circle at 15% 12%, rgba(22,163,74,.10), transparent 24%),radial-gradient(circle at 86% 10%, rgba(37,99,235,.08), transparent 24%),linear-gradient(145deg, var(--bg) 0%, var(--bg2) 58%, #e2e8f0 100%)!important;
}
html[data-mfe-theme="gray"] body{
  background:radial-gradient(circle at 15% 12%, rgba(209,213,219,.08), transparent 24%),radial-gradient(circle at 86% 10%, rgba(148,163,184,.08), transparent 24%),linear-gradient(145deg, var(--bg) 0%, var(--bg2) 58%, #090a0c 100%)!important;
}
html[data-mfe-theme="custom"] body{
  background:radial-gradient(circle at 15% 12%, rgba(var(--mfe-accent-rgb),.10), transparent 22%),radial-gradient(circle at 86% 10%, rgba(59,130,246,.08), transparent 22%),linear-gradient(145deg, var(--bg) 0%, var(--bg2) 58%, #020814 100%)!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .topbar,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .header,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .card,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .panel,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .modal-card,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .modal-content,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .block,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .metric,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .empty,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .toolbar,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .mobile-drawer,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .drawer,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .app-loading-card{
  border-color:var(--line)!important;
  background:var(--mfe-card-bg)!important;
  color:var(--text)!important;
  box-shadow:var(--shadow)!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .pill,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .btn,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .chip,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .tag,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .badge{
  border-color:var(--mfe-input-border)!important;
  background:var(--mfe-surface-plain)!important;
  color:var(--text)!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .pill.accent,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .btn.primary,
html[data-mfe-theme] .theme-option.is-active{
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-bg-strong)!important;
  color:var(--mfe-accent-text)!important;
}

html[data-mfe-theme] .eyebrow,
html[data-mfe-theme] .label,
html[data-mfe-theme] .metric-k,
html[data-mfe-theme] .section-kicker,
html[data-mfe-theme] .app-loading-badge{color:var(--accent)!important;}
html[data-mfe-theme] input,
html[data-mfe-theme] select,
html[data-mfe-theme] textarea,
html[data-mfe-theme] .input{
  background:var(--mfe-input-bg)!important;
  border-color:var(--mfe-input-border)!important;
  color:var(--text)!important;
}
html[data-mfe-theme] input::placeholder,
html[data-mfe-theme] textarea::placeholder{color:var(--muted)!important;opacity:.88;}
html[data-mfe-theme] select option{background:var(--panel)!important;color:var(--text)!important;}
html[data-mfe-theme] .muted,
html[data-mfe-theme] .helper,
html[data-mfe-theme] .section-copy,
html[data-mfe-theme] .hero-copy,
html[data-mfe-theme] .metric-m,
html[data-mfe-theme] .status{color:var(--muted)!important;}
html[data-mfe-theme] ::-webkit-scrollbar{width:10px;height:10px;}
html[data-mfe-theme] ::-webkit-scrollbar-track{background:var(--mfe-scroll-track);border-radius:999px;}
html[data-mfe-theme] ::-webkit-scrollbar-thumb{background:var(--mfe-scroll-thumb);border-radius:999px;border:2px solid transparent;background-clip:padding-box;}
html[data-mfe-theme] ::-webkit-scrollbar-thumb:hover{background:var(--mfe-scroll-thumb-hover);background-clip:padding-box;}
html[data-mfe-theme="light"] .app-loading-overlay{background:rgba(238,244,241,.88)!important;}
html[data-mfe-theme="light"] .app-loading-copy,
html[data-mfe-theme="light"] .app-loading-status,
html[data-mfe-theme="light"] .app-loading-foot{color:var(--muted)!important;}
.theme-settings-card{position:relative;}
.theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.theme-option{min-height:112px;border:1px solid var(--mfe-input-border);border-radius:18px;background:var(--mfe-surface-plain);padding:12px;display:grid;gap:9px;cursor:pointer;color:var(--text);transition:transform .18s ease,border-color .18s ease,background .18s ease;}
.theme-option:hover{transform:translateY(-1px);border-color:var(--mfe-accent-border);}
.theme-option input{position:absolute;opacity:0;pointer-events:none;}
.theme-swatch{height:42px;border-radius:14px;border:1px solid var(--mfe-input-border);display:block;overflow:hidden;}
.theme-swatch.base{background:linear-gradient(135deg,#04101a 0%,#071628 55%,#22c55e 56%,#16a34a 100%);}
.theme-swatch.light{background:linear-gradient(135deg,#f8fafc 0%,#ffffff 55%,#16a34a 56%,#dcfce7 100%);}
.theme-swatch.gray{background:linear-gradient(135deg,#111315 0%,#27272a 55%,#d1d5db 56%,#71717a 100%);}
.theme-swatch.custom{background:linear-gradient(135deg,#04101a 0%,#071628 55%,var(--mfe-custom-primary,#22c55e) 56%,var(--mfe-custom-primary-dark,#16a34a) 100%);}
.theme-name{font-weight:900;font-size:13px;line-height:1.15;}
.theme-desc{font-size:11px;color:var(--muted);line-height:1.3;}
.theme-custom-controls{display:grid;grid-template-columns:160px 1fr;gap:12px;align-items:end;}
.theme-color-input{height:44px!important;min-height:44px;width:100%!important;padding:5px!important;border-radius:14px!important;cursor:pointer;}
@media(max-width:900px){.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.theme-custom-controls{grid-template-columns:1fr;}.theme-option{min-height:104px;}}
@media(max-width:520px){.theme-grid{grid-template-columns:1fr;}}

/* style block 07 */
/* Theme-aware progress bars, export modals and Dashboard daily report refinements */
html[data-mfe-theme] .app-loading-logo-wrap{
  background:linear-gradient(135deg,var(--accent),var(--accent-dark))!important;
}
html[data-mfe-theme] .app-loading-badge{
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-bg)!important;
  color:var(--accent)!important;
}
html[data-mfe-theme] .app-loading-bar,
html[data-mfe-theme] .progress-bar,
html[data-mfe-theme] .asset-upload-progress,
html[data-mfe-theme] .sequence-progress-track,
html[data-mfe-theme] .mfe-progress-track{
  background:var(--mfe-input-bg)!important;
  border-color:var(--mfe-input-border)!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.12)!important;
}
html[data-mfe-theme] .app-loading-bar-fill,
html[data-mfe-theme] .progress-fill,
html[data-mfe-theme] .asset-upload-progress-fill,
html[data-mfe-theme] .sequence-progress-fill,
html[data-mfe-theme] .mfe-progress-fill{
  background:linear-gradient(90deg,var(--accent) 0%,rgba(var(--mfe-accent-rgb),.78) 55%,rgba(var(--mfe-accent-rgb),.44) 100%)!important;
  box-shadow:0 0 24px rgba(var(--mfe-accent-rgb),.28)!important;
}
html[data-mfe-theme] input[type="range"],
html[data-mfe-theme] .range,
html[data-mfe-theme] .stage-player-range{
  accent-color:var(--accent)!important;
}
html[data-mfe-theme] .stage-player-range::-webkit-slider-thumb{
  background:var(--accent)!important;
  border-color:var(--accent-dark)!important;
  box-shadow:0 0 0 3px rgba(var(--mfe-accent-rgb),.18)!important;
}
html[data-mfe-theme] .stage-player-range::-moz-range-thumb{
  background:var(--accent)!important;
  box-shadow:0 0 0 3px rgba(var(--mfe-accent-rgb),.18), inset 0 0 0 2px var(--accent-dark)!important;
}
html[data-mfe-theme] .mfe-export-choice-overlay,
html[data-mfe-theme] .mfe-export-progress-overlay{
  background:rgba(2,6,23,.66)!important;
}
html[data-mfe-theme="light"] .mfe-export-choice-overlay,
html[data-mfe-theme="light"] .mfe-export-progress-overlay{
  background:rgba(238,244,241,.72)!important;
}
html[data-mfe-theme] .mfe-export-choice-card,
html[data-mfe-theme] .mfe-export-progress-card{
  border-color:var(--line)!important;
  background:var(--mfe-card-bg-strong)!important;
  color:var(--text)!important;
  box-shadow:var(--shadow)!important;
}
html[data-mfe-theme] .mfe-export-choice-card p,
html[data-mfe-theme] .mfe-export-progress-card p,
html[data-mfe-theme] .mfe-progress-meta{
  color:var(--muted)!important;
}
html[data-mfe-theme] .daily-report-card{
  border:1px solid var(--line)!important;
  background:radial-gradient(circle at 8% 0%,rgba(var(--mfe-accent-rgb),.10),transparent 32%),var(--mfe-card-bg)!important;
  color:var(--text)!important;
}
html[data-mfe-theme] .daily-report-kicker,
html[data-mfe-theme] .daily-report-eyebrow{
  color:var(--accent)!important;
}
html[data-mfe-theme] .daily-report-title,
html[data-mfe-theme] .daily-report-modal-title,
html[data-mfe-theme] .daily-count-value,
html[data-mfe-theme] .daily-section-title,
html[data-mfe-theme] .daily-item-title{
  color:var(--text)!important;
}
html[data-mfe-theme] .daily-report-copy,
html[data-mfe-theme] .daily-report-generated,
html[data-mfe-theme] .daily-count-meta,
html[data-mfe-theme] .daily-section-sub,
html[data-mfe-theme] .daily-item-note{
  color:var(--muted)!important;
}
html[data-mfe-theme] .daily-report-modal{
  background:rgba(1,7,15,.72)!important;
}
html[data-mfe-theme="light"] .daily-report-modal{
  background:rgba(238,244,241,.74)!important;
}
html[data-mfe-theme] .daily-report-dialog{
  border-color:var(--line)!important;
  background:radial-gradient(circle at top left,rgba(var(--mfe-accent-rgb),.12),transparent 28%),var(--mfe-card-bg-strong)!important;
  color:var(--text)!important;
  box-shadow:var(--shadow)!important;
}
html[data-mfe-theme] .daily-report-head,
html[data-mfe-theme] .daily-section-head{
  border-color:var(--line)!important;
}
html[data-mfe-theme] .daily-report-toggle,
html[data-mfe-theme] .daily-report-close,
html[data-mfe-theme] .daily-report-section,
html[data-mfe-theme] .daily-section-badge,
html[data-mfe-theme] .daily-player-pill,
html[data-mfe-theme] .daily-item,
html[data-mfe-theme] .daily-count-card{
  border-color:var(--mfe-input-border)!important;
  background:var(--mfe-surface-plain)!important;
  color:var(--text)!important;
}
html[data-mfe-theme] .daily-report-switch-track{
  border-color:var(--mfe-input-border)!important;
  background:var(--mfe-input-bg)!important;
}
html[data-mfe-theme] .daily-report-toggle input:checked + .daily-report-switch-track{
  border-color:var(--mfe-accent-border)!important;
  background:linear-gradient(180deg,rgba(var(--mfe-accent-rgb),.82),rgba(var(--mfe-accent-rgb),.58))!important;
  box-shadow:0 0 0 3px rgba(var(--mfe-accent-rgb),.10), inset 0 1px 0 rgba(255,255,255,.16)!important;
}
html[data-mfe-theme] .daily-report-toggle input:focus-visible + .daily-report-switch-track{
  outline-color:rgba(var(--mfe-accent-rgb),.78)!important;
}
html[data-mfe-theme] .daily-report-body{
  scrollbar-color:var(--mfe-scroll-thumb) var(--mfe-scroll-track)!important;
}
html[data-mfe-theme] .daily-report-body::-webkit-scrollbar-track{
  background:var(--mfe-scroll-track)!important;
  box-shadow:none!important;
}
html[data-mfe-theme] .daily-report-body::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,rgba(var(--mfe-accent-rgb),.78),rgba(var(--mfe-accent-rgb),.46))!important;
  border-color:var(--panel)!important;
}
html[data-mfe-theme] .daily-report-md,
html[data-mfe-theme] .daily-report-md-pill{
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-bg)!important;
  color:var(--mfe-accent-text)!important;
}
html[data-mfe-theme] .daily-report-md-title,
html[data-mfe-theme] .daily-report-md-meta{
  color:var(--text)!important;
}
html[data-mfe-theme] .daily-report-md-meta{color:var(--muted)!important;}
html[data-mfe-theme="light"] .daily-report-chip,
html[data-mfe-theme="light"] .daily-report-global,
html[data-mfe-theme="light"] .daily-player-pill,
html[data-mfe-theme="light"] .daily-item,
html[data-mfe-theme="light"] .daily-section-badge,
html[data-mfe-theme="light"] .daily-count-label,
html[data-mfe-theme="light"] .daily-player-name,
html[data-mfe-theme="light"] .daily-item-meta{
  color:#102018!important;
}
html[data-mfe-theme="light"] .daily-report-chip.ok,
html[data-mfe-theme="light"] .daily-report-global.ok,
html[data-mfe-theme="light"] .daily-player-pill.ok,
html[data-mfe-theme="light"] .daily-count-card.ok,
html[data-mfe-theme="light"] .daily-item.ok{
  color:#064e3b!important;
  background:rgba(22,163,74,.10)!important;
  border-color:rgba(22,163,74,.24)!important;
}
html[data-mfe-theme="light"] .daily-report-chip.moderate,
html[data-mfe-theme="light"] .daily-report-global.moderate,
html[data-mfe-theme="light"] .daily-player-pill.moderate,
html[data-mfe-theme="light"] .daily-count-card.moderate,
html[data-mfe-theme="light"] .daily-item.moderate{
  color:#78350f!important;
  background:rgba(245,158,11,.13)!important;
  border-color:rgba(245,158,11,.28)!important;
}
html[data-mfe-theme="light"] .daily-report-chip.severe,
html[data-mfe-theme="light"] .daily-report-global.severe,
html[data-mfe-theme="light"] .daily-player-pill.severe,
html[data-mfe-theme="light"] .daily-count-card.severe,
html[data-mfe-theme="light"] .daily-item.severe{
  color:#7f1d1d!important;
  background:rgba(239,68,68,.12)!important;
  border-color:rgba(239,68,68,.28)!important;
}
html[data-mfe-theme="light"] .daily-avatar{
  border-color:rgba(15,23,42,.16)!important;
  background:rgba(15,23,42,.06)!important;
  color:#102018!important;
}

/* style block 08 */
html[data-mfe-theme] .app-loading-percent,
html[data-mfe-theme] .asset-upload-progress-value,
html[data-mfe-theme] .sequence-progress-time,
html[data-mfe-theme] #progressPercent,
html[data-mfe-theme] #exportProgressPercent,
html[data-mfe-theme] #mfeProgressPercent{
  color:var(--accent)!important;
}
html[data-mfe-theme] .app-loading-progress-head,
html[data-mfe-theme] #progressStatus,
html[data-mfe-theme] #exportProgressStatus,
html[data-mfe-theme] #mfeProgressStatus{
  color:var(--muted)!important;
}

/* style block 09 */
/* My Football App - complete theme accent correction */
html[data-mfe-theme]{
  --mfe-accent-glow:rgba(var(--mfe-accent-rgb),.24);
  --mfe-accent-glow-soft:rgba(var(--mfe-accent-rgb),.12);
  --mfe-accent-fill:linear-gradient(180deg, rgba(var(--mfe-accent-rgb),.24), rgba(var(--mfe-accent-rgb),.14));
  --mfe-accent-fill-strong:linear-gradient(180deg, rgba(var(--mfe-accent-rgb),.90), rgba(var(--mfe-accent-rgb),.72));
  --mfe-progress-fill:linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
}
html[data-mfe-theme="gray"]{
  color-scheme:light;
  --bg:#f3f4f6;
  --bg2:#e5e7eb;
  --panel:#ffffff;
  --line:rgba(17,24,39,.14);
  --text:#111827;
  --muted:#4b5563;
  --accent:#111827;
  --accent-dark:#000000;
  --accent-blue:#374151;
  --shadow:0 18px 42px rgba(17,24,39,.13);
  --mfe-surface-plain:rgba(255,255,255,.92);
  --mfe-surface-soft:rgba(255,255,255,.96);
  --mfe-card-bg:linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,244,246,.94));
  --mfe-card-bg-strong:linear-gradient(180deg, rgba(255,255,255,1), rgba(229,231,235,.96));
  --mfe-input-bg:rgba(255,255,255,.96);
  --mfe-input-border:rgba(17,24,39,.16);
  --mfe-accent-rgb:17,24,39;
  --mfe-accent-bg:rgba(17,24,39,.08);
  --mfe-accent-bg-strong:rgba(17,24,39,.14);
  --mfe-accent-border:rgba(17,24,39,.26);
  --mfe-accent-text:#ffffff;
  --mfe-scroll-track:rgba(17,24,39,.06);
  --mfe-scroll-thumb:rgba(17,24,39,.36);
  --mfe-scroll-thumb-hover:rgba(17,24,39,.58);
}
html[data-mfe-theme="gray"] body{
  background:radial-gradient(circle at 15% 12%, rgba(17,24,39,.07), transparent 24%),radial-gradient(circle at 86% 10%, rgba(75,85,99,.08), transparent 24%),linear-gradient(145deg, var(--bg) 0%, var(--bg2) 58%, #d1d5db 100%)!important;
}
html[data-mfe-theme="gray"] .theme-swatch.gray{background:linear-gradient(135deg,#f9fafb 0%,#e5e7eb 55%,#111827 56%,#000 100%)!important;}

/* text accents: section labels, card labels, small titles */
html[data-mfe-theme]:not([data-mfe-theme="base"]) .eyebrow,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .label,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .metric-k,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .section-kicker,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .kicker,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .card-kicker,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .block-kicker,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .tile-kicker,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .stat-k,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .stat-label,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .mini-label,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .form-label,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .field-label,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .panel-label,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .panel-kicker,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .modal-badge,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .export-file-badge,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .export-choice-badge,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .confirm-action-badge,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .rename-plan-badge,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .upgrade-badge,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .pm-kicker,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .dashboard-media-label,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .app-loading-badge,
html[data-mfe-theme]:not([data-mfe-theme="base"]) [class*="-kicker"],
html[data-mfe-theme]:not([data-mfe-theme="base"]) [class*="__kicker"]{
  color:var(--accent)!important;
}

/* active/primary UI */
html[data-mfe-theme]:not([data-mfe-theme="base"]) .player-card-photo-fallback{
  background:linear-gradient(135deg,var(--accent),var(--accent-dark))!important;
  color:var(--mfe-accent-text)!important;
  border-color:var(--mfe-accent-border)!important;
  box-shadow:0 14px 28px var(--mfe-accent-glow-soft)!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .pill.accent,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .pill.active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .btn.primary,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .btn.pri,
html[data-mfe-theme]:not([data-mfe-theme="base"]) button.primary,
html[data-mfe-theme]:not([data-mfe-theme="base"]) button.pri,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .btn.active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .upgrade-btn,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .btn-upgrade,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .export-choice-btn.is-active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .player-display-toggle-btn.is-active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .matchday-role-switch-btn.is-active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .color-swatch.is-active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .theme-option.is-active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .dashboard-user-welcome{
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-fill)!important;
  color:var(--mfe-accent-text)!important;
  box-shadow:0 14px 28px var(--mfe-accent-glow-soft)!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .btn.primary:hover,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .btn.pri:hover,
html[data-mfe-theme]:not([data-mfe-theme="base"]) button.primary:hover,
html[data-mfe-theme]:not([data-mfe-theme="base"]) button.pri:hover,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .upgrade-btn:hover,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .btn-upgrade:hover{
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-fill-strong)!important;
  color:var(--mfe-accent-text)!important;
  box-shadow:0 18px 34px var(--mfe-accent-glow)!important;
}


/* selected cards and accent cards */
html[data-mfe-theme]:not([data-mfe-theme="base"]) .item-card.active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .item.active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .player-card.active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .archive-saved-item.active,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .selection-card,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .export-choice-card,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .export-file-card,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .upgrade-box,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .field-popover,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .ve-seq-placeholder,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .drop-zone,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .tactical-chip,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .tactical-area,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .daily-report-md,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .daily-report-md-pill{
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-bg)!important;
  color:var(--text)!important;
  box-shadow:inset 0 0 0 1px rgba(var(--mfe-accent-rgb),.08),0 12px 24px rgba(0,0,0,.10)!important;
}

/* input and form focus */
html[data-mfe-theme] .input:focus,
html[data-mfe-theme] .select:focus,
html[data-mfe-theme] .textarea:focus,
html[data-mfe-theme] input:focus,
html[data-mfe-theme] select:focus,
html[data-mfe-theme] textarea:focus,
html[data-mfe-theme] .micro-input:focus,
html[data-mfe-theme] .micro-textarea:focus,
html[data-mfe-theme] .micro-title-input:focus,
html[data-mfe-theme] .micro-select:focus,
html[data-mfe-theme] .rename-plan-input:focus,
html[data-mfe-theme] .export-file-input:focus{
  border-color:var(--mfe-accent-border)!important;
  box-shadow:0 0 0 3px var(--mfe-accent-glow-soft)!important;
}

/* progress bars, exports, uploads, sync and video editor timeline */
html[data-mfe-theme]:not([data-mfe-theme="base"]) .progress-fill,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .asset-upload-progress-fill,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .sequence-progress-fill,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .app-loading-bar-fill,
html[data-mfe-theme]:not([data-mfe-theme="base"]) [class$="progress-fill"],
html[data-mfe-theme]:not([data-mfe-theme="base"]) [class*="-progress-fill"]{
  background:var(--mfe-progress-fill)!important;
  box-shadow:0 0 24px var(--mfe-accent-glow)!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .app-loading-logo-wrap,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .loading-logo-wrap{
  border-color:var(--mfe-accent-border)!important;
  background:linear-gradient(135deg, rgba(var(--mfe-accent-rgb),.18), rgba(var(--mfe-accent-rgb),.10))!important;
  box-shadow:0 16px 34px var(--mfe-accent-glow-soft)!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .app-loading-percent{
  color:var(--accent)!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .trim-wave span,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .trend-bar{
  background:linear-gradient(180deg,rgba(var(--mfe-accent-rgb),.62),rgba(var(--mfe-accent-rgb),.16))!important;
}

html[data-mfe-theme]:not([data-mfe-theme="base"]) .trim-handle,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .sequence-item.drop-before::before,
html[data-mfe-theme]:not([data-mfe-theme="base"]) .sequence-item.drop-after::after{
  background:linear-gradient(180deg,var(--accent),var(--accent-dark))!important;
  border-color:var(--mfe-accent-border)!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .stage-player-range::-webkit-slider-thumb,
html[data-mfe-theme]:not([data-mfe-theme="base"]) input[type="range"]::-webkit-slider-thumb{
  background:var(--accent)!important;
  border-color:var(--accent-dark)!important;
  box-shadow:0 0 0 3px var(--mfe-accent-glow-soft)!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .stage-player-range::-moz-range-thumb,
html[data-mfe-theme]:not([data-mfe-theme="base"]) input[type="range"]::-moz-range-thumb{
  background:var(--accent)!important;
  box-shadow:0 0 0 3px var(--mfe-accent-glow-soft), inset 0 0 0 2px var(--accent-dark)!important;
}

/* switches */
html[data-mfe-theme] .daily-report-toggle input:checked + .daily-report-switch-track,
html[data-mfe-theme] input:checked + .switch-track,
html[data-mfe-theme] input:checked + .toggle-track,
html[data-mfe-theme] input:checked + .slider,
html[data-mfe-theme] .switch.is-on,
html[data-mfe-theme] .toggle.is-on,
html[data-mfe-theme] [role="switch"][aria-checked="true"]{
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-fill-strong)!important;
  box-shadow:0 0 0 3px var(--mfe-accent-glow-soft), inset 0 1px 0 rgba(255,255,255,.18)!important;
}

/* scrollbars: make every local scrollbar follow the selected theme */
html[data-mfe-theme],
html[data-mfe-theme] *{
  scrollbar-color:var(--mfe-scroll-thumb) var(--mfe-scroll-track)!important;
}


/* preserve functional alert colors where they are semantic, not branding */
html[data-mfe-theme] .daily-report-chip.ok,
html[data-mfe-theme] .daily-report-global.ok,
html[data-mfe-theme] .daily-player-pill.ok,
html[data-mfe-theme] .daily-count-card.ok,
html[data-mfe-theme] .daily-item.ok,
html[data-mfe-theme] .tag.status-available{
  border-color:rgba(34,197,94,.28)!important;
  background:rgba(34,197,94,.10)!important;
  color:var(--text)!important;
}
html[data-mfe-theme="light"] .daily-report-chip.ok,
html[data-mfe-theme="light"] .daily-report-global.ok,
html[data-mfe-theme="light"] .daily-player-pill.ok,
html[data-mfe-theme="light"] .daily-count-card.ok,
html[data-mfe-theme="light"] .daily-item.ok,
html[data-mfe-theme="light"] .tag.status-available{
  color:#064e3b!important;
  background:rgba(22,163,74,.12)!important;
}

/* style block 10 */
/* Final theme polish: all brand/accent UI follows the selected theme. Semantic warning/error colours remain untouched. */
html[data-mfe-theme]:not([data-mfe-theme="base"]) :is(.metric-k, .module-kicker, .data-label, .column-label, .info-label, .kpi-label, .form-label, .field-label, .panel-label, .panel-kicker, .section-label, .section-kicker, .section-eyebrow, .eyebrow, .kicker, .card-kicker, .block-kicker, .tile-kicker, .stat-k, .stat-label, .mini-label, .menu-title, .tab-label, .toolbar-field label, .accordion summary, .daily-report-kicker, .daily-report-eyebrow, .app-loading-badge, .modal-badge, .confirm-action-badge, .rename-plan-badge, .export-file-badge, .export-choice-badge, .upgrade-badge, .pm-kicker, .dashboard-media-label, [class*="-kicker"], [class*="__kicker"], [class*="-eyebrow"], [class*="__eyebrow"], [class*="-label"], [class*="__label"]){
  color:var(--accent)!important;
}

html[data-mfe-theme]:not([data-mfe-theme="base"]) :is(.pill.accent, .pill.active, .btn.primary, .btn.pri, button.primary, button.pri, .btn.active, .dashboard-user-welcome, .theme-option.is-active, .export-choice-btn.is-active, .player-display-toggle-btn.is-active, .matchday-role-switch-btn.is-active, .color-swatch.is-active, .upgrade-btn, .btn-upgrade){
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-fill)!important;
  color:var(--mfe-accent-text)!important;
  box-shadow:0 14px 28px var(--mfe-accent-glow-soft)!important;
}

html[data-mfe-theme]:not([data-mfe-theme="base"]) .player-card-photo-fallback{
  background:linear-gradient(135deg,var(--accent),var(--accent-dark))!important;
  border-color:var(--mfe-accent-border)!important;
  color:var(--mfe-accent-text)!important;
}

html[data-mfe-theme]:not([data-mfe-theme="base"]) :is(.btn.primary:hover, .btn.pri:hover, button.primary:hover, button.pri:hover, .upgrade-btn:hover, .btn-upgrade:hover){
  background:var(--mfe-accent-fill-strong)!important;
  border-color:var(--mfe-accent-border)!important;
  color:var(--mfe-accent-text)!important;
  box-shadow:0 18px 34px var(--mfe-accent-glow)!important;
}

html[data-mfe-theme]:not([data-mfe-theme="base"]) :is(input[type="range"], .range, .stage-player-range){
  accent-color:var(--accent)!important;
}

html[data-mfe-theme]:not([data-mfe-theme="base"]) :is(.progress-fill, .asset-upload-progress-fill, .sequence-progress-fill, .app-loading-bar-fill, .mfe-progress-fill, [class$="progress-fill"], [class*="-progress-fill"]){
  background:var(--mfe-progress-fill)!important;
  box-shadow:0 0 24px var(--mfe-accent-glow)!important;
}

html[data-mfe-theme]:not([data-mfe-theme="base"]) :is(.trim-wave span, .trend-bar){
  background:linear-gradient(180deg,rgba(var(--mfe-accent-rgb),.62),rgba(var(--mfe-accent-rgb),.16))!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) .trim-selection{
  border-color:var(--mfe-accent-border)!important;
  background:linear-gradient(180deg,rgba(var(--mfe-accent-rgb),.24),rgba(var(--mfe-accent-rgb),.10))!important;
}
html[data-mfe-theme]:not([data-mfe-theme="base"]) :is(.trim-handle, .sequence-item.drop-before::before, .sequence-item.drop-after::after){
  background:linear-gradient(180deg,var(--accent),var(--accent-dark))!important;
  border-color:var(--mfe-accent-border)!important;
}

html[data-mfe-theme]:not([data-mfe-theme="base"]) :is(input:checked + .switch-track, input:checked + .toggle-track, input:checked + .slider, .daily-report-toggle input:checked + .daily-report-switch-track, .switch.is-on, .toggle.is-on, [role="switch"][aria-checked="true"]){
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-fill-strong)!important;
  box-shadow:0 0 0 3px var(--mfe-accent-glow-soft), inset 0 1px 0 rgba(255,255,255,.18)!important;
}

html[data-mfe-theme]:not([data-mfe-theme="base"]) :is(.selection-card, .item-card.active, .item.active, .player-card.active, .archive-saved-item.active, .video-project-card.active, .saved-project.active, .daily-report-md, .daily-report-md-pill){
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-bg)!important;
  color:var(--text)!important;
  box-shadow:inset 0 0 0 1px rgba(var(--mfe-accent-rgb),.08),0 12px 24px rgba(0,0,0,.10)!important;
}

/* Dashboard daily report: in gray/custom themes, remove leftover base green from non-critical UI. */
html[data-mfe-theme="gray"] :is(.daily-report-chip.ok, .daily-report-global.ok, .daily-player-pill.ok, .daily-count-card.ok, .daily-item.ok, .daily-empty, .daily-report-md, .daily-report-md-pill),
html[data-mfe-theme="custom"] :is(.daily-report-chip.ok, .daily-report-global.ok, .daily-player-pill.ok, .daily-count-card.ok, .daily-item.ok, .daily-empty, .daily-report-md, .daily-report-md-pill){
  border-color:var(--mfe-accent-border)!important;
  background:var(--mfe-accent-bg)!important;
  color:var(--text)!important;
}
html[data-mfe-theme="gray"] .daily-report-chip.ok::before,
html[data-mfe-theme="gray"] .daily-severity-dot,
html[data-mfe-theme="custom"] .daily-report-chip.ok::before,
html[data-mfe-theme="custom"] .daily-severity-dot{
  background:var(--accent)!important;
  box-shadow:0 0 0 3px var(--mfe-accent-glow-soft)!important;
}
html[data-mfe-theme="gray"] .daily-item.moderate .daily-severity-dot,
html[data-mfe-theme="custom"] .daily-item.moderate .daily-severity-dot{
  background:#f59e0b!important;
  box-shadow:0 0 0 3px rgba(245,158,11,.16)!important;
}
html[data-mfe-theme="gray"] .daily-item.severe .daily-severity-dot,
html[data-mfe-theme="custom"] .daily-item.severe .daily-severity-dot{
  background:#ef4444!important;
  box-shadow:0 0 0 3px rgba(239,68,68,.16)!important;
}
html[data-mfe-theme="gray"] :is(.daily-report-modal-title, .daily-section-title, .daily-count-value, .daily-item-title, .daily-player-name),
html[data-mfe-theme="custom"] :is(.daily-report-modal-title, .daily-section-title, .daily-count-value, .daily-item-title, .daily-player-name){
  color:var(--text)!important;
}
html[data-mfe-theme="gray"] :is(.daily-report-body, .daily-report-dialog, .daily-report-toggle, .daily-report-section, .daily-count-card, .daily-player-pill, .daily-item),
html[data-mfe-theme="custom"] :is(.daily-report-body, .daily-report-dialog, .daily-report-toggle, .daily-report-section, .daily-count-card, .daily-player-pill, .daily-item){
  scrollbar-color:var(--mfe-scroll-thumb) var(--mfe-scroll-track)!important;
}

/* Gray theme loading modal contrast: no white-on-light text. */
html[data-mfe-theme="gray"] .app-loading-card,
html[data-mfe-theme="gray"] .loading-card{
  background:linear-gradient(180deg,#ffffff,#e5e7eb)!important;
  border-color:rgba(17,24,39,.16)!important;
  color:#111827!important;
}
html[data-mfe-theme="gray"] :is(.app-loading-title, .app-loading-subtitle, .app-loading-copy, .app-loading-progress-head, .app-loading-progress-label, .app-loading-step, .app-loading-status, .app-loading-percent, .loading-title, .loading-subtitle, .loading-status, .loading-percent, #progressStatus, #progressPercent){
  color:#111827!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-mfe-theme="gray"] .app-loading-bar,
html[data-mfe-theme="gray"] .loading-bar{
  background:rgba(17,24,39,.10)!important;
  border-color:rgba(17,24,39,.16)!important;
}
html[data-mfe-theme="gray"] :is(.app-loading-bar-fill, .loading-bar-fill){
  background:linear-gradient(90deg,#111827,#000000)!important;
  box-shadow:0 0 20px rgba(17,24,39,.18)!important;
}

/* Scrollbars follow the selected theme, including page-local panels. */
html[data-mfe-theme],
html[data-mfe-theme] *{
  scrollbar-color:var(--mfe-scroll-thumb) var(--mfe-scroll-track)!important;
}
html[data-mfe-theme] *::-webkit-scrollbar,
html[data-mfe-theme]::-webkit-scrollbar{width:10px!important;height:10px!important;}
html[data-mfe-theme] *::-webkit-scrollbar-track,
html[data-mfe-theme]::-webkit-scrollbar-track{background:var(--mfe-scroll-track)!important;border-radius:999px!important;}
html[data-mfe-theme] *::-webkit-scrollbar-thumb,
html[data-mfe-theme]::-webkit-scrollbar-thumb{background:var(--mfe-scroll-thumb)!important;border-radius:999px!important;border:2px solid transparent!important;background-clip:padding-box!important;}
html[data-mfe-theme] *::-webkit-scrollbar-thumb:hover,
html[data-mfe-theme]::-webkit-scrollbar-thumb:hover{background:var(--mfe-scroll-thumb-hover)!important;background-clip:padding-box!important;}

/* Keep semantic warning/error states readable. */
html[data-mfe-theme] :is(.daily-report-chip.moderate, .daily-report-global.moderate, .daily-player-pill.moderate, .daily-count-card.moderate, .daily-item.moderate){
  color:#78350f!important;
  background:rgba(245,158,11,.13)!important;
  border-color:rgba(245,158,11,.28)!important;
}
html[data-mfe-theme] :is(.daily-report-chip.severe, .daily-report-global.severe, .daily-player-pill.severe, .daily-count-card.severe, .daily-item.severe){
  color:#fee2e2!important;
  background:rgba(239,68,68,.14)!important;
  border-color:rgba(239,68,68,.34)!important;
}
html[data-mfe-theme="light"] :is(.daily-report-chip.severe, .daily-report-global.severe, .daily-player-pill.severe, .daily-count-card.severe, .daily-item.severe){
  color:#7f1d1d!important;
}

/* style block 11 */
.mfe-pro-lock-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px;background:radial-gradient(circle at 20% 10%,rgba(34,197,94,.12),transparent 28%),linear-gradient(145deg,#04101a 0%,#071628 58%,#020814 100%);color:#eef3f9;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box;}
  .mfe-pro-lock-card{width:min(620px,100%);border:1px solid rgba(255,255,255,.09);border-radius:30px;background:linear-gradient(180deg,rgba(10,22,39,.96),rgba(4,16,26,.94));box-shadow:0 28px 80px rgba(0,0,0,.48);padding:30px;display:grid;gap:16px;text-align:left;}
  .mfe-pro-lock-badge{width:max-content;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 14px;border-radius:999px;border:1px solid rgba(34,197,94,.24);background:rgba(34,197,94,.12);color:#bbf7d0;font-size:12px;font-weight:900;letter-spacing:.1em;}
  .mfe-pro-lock-title{margin:0;font-size:clamp(30px,6vw,46px);line-height:1.02;font-weight:950;letter-spacing:-.04em;}
  .mfe-pro-lock-copy{margin:0;color:#cbd5e1;font-size:15px;line-height:1.65;}
  .mfe-pro-lock-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:4px;}
  .mfe-pro-lock-actions a{min-height:44px;padding:0 18px;border-radius:15px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;border:1px solid rgba(255,255,255,.1);color:#eef3f9;background:rgba(255,255,255,.05);}
  .mfe-pro-lock-actions a.primary{background:linear-gradient(135deg,#22c55e,#15803d);border-color:rgba(34,197,94,.36);color:white;box-shadow:0 14px 30px rgba(34,197,94,.20);}
  @media(max-width:560px){.mfe-pro-lock-card{padding:24px;border-radius:24px}.mfe-pro-lock-actions{display:grid}.mfe-pro-lock-actions a{width:100%;box-sizing:border-box}}

/* style block 12 */
html,
body{overscroll-behavior:none!important;}
/* MFA safe root overscroll boundary — 2026-06-29
   Keeps normal wheel/touch scrolling. Only the document/root page containers stop browser rubber-band; inner cards/lists/tables are left free to pass wheel scroll to the page. */
html,
body{
  overscroll-behavior:none!important;
  overscroll-behavior-x:none!important;
  overscroll-behavior-y:none!important;
  scroll-behavior:auto!important;
}
.app-shell,
.shell,
.page-shell,
.page,
.main,
main,
.content,
.workspace,
.gps-page-shell{
  overscroll-behavior-y:none!important;
  overscroll-behavior-x:none!important;
  scroll-behavior:auto!important;
}.app{
  overscroll-behavior-y:none!important;
  overscroll-behavior-x:none!important;
  scroll-behavior:auto!important;
}
/* MFA wheel-safe inner scroll recovery — 2026-06-29
   Inner panels/lists/tables must not trap mouse-wheel scrolling at their edges; root containers above still stop the browser bounce. */
.panel,
.card,
.module,
.list,
.history-list,
.table-wrap,
.modal,
.modal-card,
.drawer,
.mobile-drawer,
.panel-roster .list,
.match-stats-list-inline,
.editor-scroll,
.preview-panel,
.daily-report-body,
.dropdown-menu,
.select-menu,
.roster-list{
  overscroll-behavior:auto!important;
  overscroll-behavior-x:auto!important;
  overscroll-behavior-y:auto!important;
}

/* Game Model visual shell restructure — 2026-07-06 */
.game-model-workspace{min-height:0;display:grid;gap:14px;}
.game-model-systems-grid,
.game-model-modules-grid{min-width:0;display:grid;gap:14px;}
.game-model-system-card,
.game-model-module-card{min-width:0;min-height:0;}
.game-model-system-image{min-width:0;min-height:0;display:grid;overflow:hidden;}
.game-model-system-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.game-model-system-actions .btn{width:100%;}
.game-model-module-action .btn{width:100%;}
.game-model-module-card{display:grid;grid-template-columns:1fr;align-items:start;gap:14px;}
.game-model-module-copy{min-width:0;display:grid;gap:4px;}
.game-model-module-subtitle{margin:0;color:var(--muted);font-size:13px;line-height:1.35;font-weight:600;}
.game-model-module-action{min-width:0;width:100%;}

/* Game Model nested image library modal — keep library search above game-model overlays */
#exerciseLibraryModal.modal{z-index:2960;}
#exerciseLibraryModal .exercise-library-card{position:relative;}
.game-model-overlay{position:fixed;inset:0;z-index:2860;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(2,6,23,.72);backdrop-filter:blur(14px);}
.game-model-overlay.open{display:flex;}
.game-model-overlay-card{width:min(1480px,calc(100vw - 48px));height:min(900px,calc(100vh - 48px));min-height:0;border-radius:30px;border:1px solid var(--line);background:radial-gradient(circle at top right,rgba(34,197,94,.10),transparent 24%),linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02)),#0a1527;box-shadow:0 34px 90px rgba(2,6,23,.62);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;}
.game-model-overlay-head{padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.07);display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
.game-model-overlay-titleblock{min-width:0;display:grid;gap:7px;}
.game-model-overlay-title{margin:0;font-size:clamp(24px,2.1vw,34px);line-height:1.05;font-weight:900;color:var(--text);}
.game-model-overlay-copy{margin:0;color:var(--muted);font-size:14px;line-height:1.45;}
.game-model-overlay-body{min-height:0;padding:22px 24px 24px;overflow:auto;display:grid;gap:18px;align-content:start;}
.game-model-modal-active{overflow:hidden;}
.game-model-overlay-body .surface-card,
.game-model-overlay-body .principle-card,
.game-model-overlay-body .scheme-card,
.game-model-overlay-body .position-card,
.game-model-overlay-body .note-card,
.game-model-overlay-body .lane-card{background:rgba(255,255,255,.035);}
.game-model-overlay-body .note-area{min-height:220px;}
.game-model-overlay-body .position-area{min-height:170px;}
.game-model-overlay-body .lane-area{min-height:190px;}
.game-model-overlay-body .scheme-area{min-height:180px;}
.game-model-overlay-body .behavior-grid{height:auto;grid-auto-rows:minmax(250px,auto);}
.game-model-overlay-body .position-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.game-model-overlay-body .phase-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.game-model-overlay-body .phase-grid .image-preview{min-height:320px;}
.game-model-overlay-body .principles-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.game-model-overlay-body .scheme-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.game-model-overlay-body .scheme-card .image-preview{min-height:320px;}
.game-model-overlay-body .image-picker.compact .image-preview{min-height:320px;}

@media (min-width:901px){
  html,
body{height:100%;overflow:hidden;}
  .app{height:100dvh;min-height:100dvh;overflow:hidden;}
  .main{height:calc(100dvh - 36px);min-height:0;overflow:hidden;}
  .content{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px;overflow:hidden;padding:0 6px 0 0;}
  .hero{padding:14px 18px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;}
  .hero-main{gap:10px;}
  .hero-title{font-size:34px;line-height:1;}
  .hero-actions{gap:8px;margin:0;}
  .hero-actions .btn{min-height:36px;padding:0 12px;font-size:12px;border-radius:12px;}
  .hero-side{width:274px;}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .metric{min-height:64px;padding:10px 12px;border-radius:16px;}
  .metric-k{font-size:10px;}
  .metric-v{font-size:18px;margin-top:5px;}
  .metric-m{font-size:11px;line-height:1.25;}
  .game-model-workspace{height:100%;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;}
  .game-model-systems-grid{min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;}
  .game-model-system-card{padding:16px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;overflow:hidden;}
  .game-model-system-card .section-head{display:block;min-height:0;}
  .game-model-system-card .section-title{font-size:20px;}
  .game-model-system-card .section-copy{font-size:12px;line-height:1.35;margin-top:4px;}
  .game-model-system-image .image-picker.large{height:100%;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;}
  .game-model-system-image .image-picker.large .picker-head{min-height:0;}
  .game-model-system-image .image-picker.large .image-preview{height:100%;min-height:0;aspect-ratio:auto;border-radius:20px;}
  .game-model-system-image .image-picker.large .picker-actions{gap:8px;}
  .game-model-system-image .image-picker.large .picker-actions .btn{min-height:34px;font-size:12px;border-radius:12px;}
  .game-model-system-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .game-model-system-actions .btn{min-height:38px;padding:0 10px;font-size:12px;border-radius:12px;}
  .game-model-modules-grid{grid-template-columns:1.08fr 1fr 1fr;align-items:stretch;}
  .game-model-module-card{min-height:126px;padding:16px;overflow:hidden;grid-template-rows:auto auto;}
  .game-model-module-card .section-title{font-size:18px;line-height:1.1;margin:0;}
  .game-model-module-subtitle{font-size:13px;}
  .game-model-module-action .btn{min-height:42px;padding:0 14px;border-radius:13px;font-size:12px;}
}

/* Game Model App header color correction — keep header metrics neutral in this page shell */
@media (min-width:901px){
  .hero:before{background:radial-gradient(circle at 20% 0, rgba(34,197,94,.08), transparent 22%);}
  .hero .metric{background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.06)!important;box-shadow:none!important;}
}

@media (max-width:1080px) and (min-width:901px){
  .hero{grid-template-columns:1fr;align-items:start;}
  .hero-side{display:none;}
  .game-model-module-card{grid-template-columns:1fr;align-items:start;}
  .game-model-module-action{min-width:0;width:100%;}
  .game-model-system-actions{grid-template-columns:1fr;}
  .game-model-modules-grid{grid-template-columns:1fr 1fr 1fr;}
  .game-model-overlay-body .position-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:900px){
  .hero-title{font-size:30px;}
  .game-model-workspace,
.game-model-systems-grid,
.game-model-modules-grid{display:grid;grid-template-columns:1fr;gap:16px;}
  .game-model-system-card,
.game-model-module-card{display:grid;grid-template-columns:1fr;gap:14px;}
  .game-model-module-action{min-width:0;width:100%;}
  .game-model-system-actions{grid-template-columns:1fr;}
  .game-model-overlay{padding:12px;}
  .game-model-overlay-card{width:100%;height:calc(100vh - 24px);border-radius:24px;}
  .game-model-overlay-head{padding:16px;display:grid;grid-template-columns:1fr;}
  .game-model-overlay-body{padding:16px;}
  .game-model-overlay-body .behavior-grid,
.game-model-overlay-body .position-grid,
.game-model-overlay-body .phase-grid,
.game-model-overlay-body .principles-grid,
.game-model-overlay-body .scheme-grid{grid-template-columns:1fr;}
  .game-model-overlay-body .note-area,
.game-model-overlay-body .position-area,
.game-model-overlay-body .lane-area,
.game-model-overlay-body .scheme-area{min-height:180px;}
  .game-model-overlay-body .image-preview,
.game-model-overlay-body .phase-grid .image-preview,
.game-model-overlay-body .scheme-card .image-preview,
.game-model-overlay-body .image-picker.compact .image-preview{min-height:230px;}
}
/* Game Model visual shell restructure corrections — 2026-07-06 */
@media (min-width:901px){
  .game-model-system-image .image-picker.large .picker-actions,
.game-model-overlay-body .picker-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
  .game-model-system-image .image-picker.large .picker-actions .btn,
.game-model-overlay-body .picker-actions .btn{width:100%;min-width:0;white-space:normal;line-height:1.15;}
}
