/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 1  ===== */
: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%)}
     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;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}
  
}

/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 2 id="app-nav-coherence-overrides" ===== */
: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");}

/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 3 id="app-loading-overlay-styles" ===== */
body.is-app-loading{overflow:hidden !important;}
  
  
  .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;}
  }

/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 4 id="mfe-white-export-greyscale-guard" ===== */
body.print-mode-white img,
body.print-mode-white .print-image-frame img{filter:none !important;-webkit-filter:none !important;}

/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 5 id="mfe-mobile-menu-compact-final" ===== */
@media (max-width: 760px){
    
    
    
    
    
    
    
    
    
    
    
    .nav-icon-field{width:24px !important;height:16px !important;}
    
  }

/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 6 id="mfe-theme-system-css" ===== */
/* My Football Editor - 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="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="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;
}






























@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;}}

/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 7 id="mfe-theme-progress-overlay-fix" ===== */
/* Theme-aware progress bars, export modals and Dashboard daily report refinements */



































/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 8 id="mfe-theme-progress-text-fix" ===== */



/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 9 id="mfe-theme-accent-complete-fix" ===== */
/* My Football Editor - complete theme accent correction */

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;
}


/* text accents: section labels, card labels, small titles */


/* active/primary UI */





/* selected cards and accent cards */


/* input and form focus */


/* progress bars, exports, uploads, sync and video editor timeline */




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;
}




/* switches */


/* 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;
}
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;}

/* preserve functional alert colors where they are semantic, not branding */



/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 10 id="mfe-theme-final-polish-v2" ===== */
/* 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"]) .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;
}






/* Dashboard daily report: in gray/custom themes, remove leftover base green from non-critical UI. */







/* Gray theme loading modal contrast: no white-on-light text. */





/* 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. */




/* ===== Fase 8 - Modelo de Jogo: bloco CSS original 11 id="mfe-pro-page-lock-styles" ===== */
.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}}


/* 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;}
}

@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;}
}
