/* Document-canvas themes: color, border color, font family, and non-geometric shadow only. */
@media screen{
body.lcars-prototype #document[data-turn-theme="command"]{
  --td-canvas:#fff;--td-panel:#f7f9fc;--td-field:#edf3f8;--td-text:#172333;--td-muted:#5d6d80;
  --td-border:#9aabba;--td-heading:#17375c;--td-heading-text:#f7fbff;--td-accent:#65a0ef;
  --td-label:#ffd2b2;--td-label-text:#28160d;--td-action:#ffa531;--td-action-text:#17100a;
  --td-hover:#fff4e9;--td-focus:#3d8fe0;--td-heading-font:'Antonio','Barlow Condensed',Arial,sans-serif;--td-content-font:'Inter','Segoe UI',Arial,sans-serif;--td-shadow:none;
}
body.lcars-prototype #document[data-turn-theme="tactical"]{
  --td-canvas:#fff;--td-panel:#f5f8f8;--td-field:#fff;--td-text:#142a2d;--td-muted:#526b6e;
  --td-border:#55777a;--td-heading:#173f43;--td-heading-text:#f7ffff;--td-accent:#2d8992;
  --td-label:#d8eeee;--td-label-text:#102d30;--td-action:#dceff0;--td-action-text:#102d30;
  --td-hover:#e8f5f5;--td-focus:#167b86;--td-heading-font:'Exo 2','Segoe UI',Arial,sans-serif;--td-content-font:'Exo 2','Segoe UI',Arial,sans-serif;--td-shadow:none;
}
body.lcars-prototype #document[data-turn-theme="crimson"]{
  --td-canvas:#fff;--td-panel:#fffafa;--td-field:#fff;--td-text:#32191d;--td-muted:#765d60;
  --td-border:#9d6a70;--td-heading:#722737;--td-heading-text:#fffafa;--td-accent:#a44658;
  --td-label:#f3dadd;--td-label-text:#4b1822;--td-action:#f4e1e4;--td-action-text:#4b1822;
  --td-hover:#fff0f2;--td-focus:#9b3549;--td-heading-font:'Barlow Condensed',Arial,sans-serif;--td-content-font:Arial,'Segoe UI',sans-serif;--td-shadow:none;
}
body.lcars-prototype #document[data-turn-theme="emerald"]{
  --td-canvas:#fff;--td-panel:#f8fbf9;--td-field:#fff;--td-text:#173126;--td-muted:#5d746a;
  --td-border:#648473;--td-heading:#245b43;--td-heading-text:#f8fffb;--td-accent:#3f8a67;
  --td-label:#dcefe4;--td-label-text:#173d2b;--td-action:#e0f0e7;--td-action-text:#173d2b;
  --td-hover:#edf8f1;--td-focus:#2b7b57;--td-heading-font:'Inter','Segoe UI',Arial,sans-serif;--td-content-font:'Inter','Segoe UI',Arial,sans-serif;--td-shadow:none;
}
body.lcars-prototype #document[data-turn-theme="nebula"]{
  --td-canvas:#09070d;--td-panel:#15101f;--td-field:#211831;--td-text:#f2edff;--td-muted:#b9add2;
  --td-border:#5d4a7c;--td-heading:#2b1746;--td-heading-text:#fff;--td-accent:#b590ff;
  --td-label:#0f0b15;--td-label-text:#e6d8ff;--td-action:#31194f;--td-action-text:#fff;
  --td-hover:#2a1f3b;--td-focus:#b590ff;--td-heading-font:'Orbitron','Exo 2','Segoe UI',Arial,sans-serif;--td-content-font:'Exo 2','Segoe UI',Arial,sans-serif;--td-shadow:none;
}
body.lcars-prototype #document[data-turn-theme="paper-mono"]{
  --td-canvas:#fff;--td-panel:#fff;--td-field:#fff;--td-text:#000;--td-muted:#444;
  --td-border:#555;--td-heading:#fff;--td-heading-text:#000;--td-accent:#000;
  --td-label:#fff;--td-label-text:#000;--td-action:#fff;--td-action-text:#000;
  --td-hover:#f3f3f3;--td-focus:#111;--td-heading-font:Arial,Helvetica,sans-serif;--td-content-font:Arial,Helvetica,sans-serif;--td-shadow:none;
}
body.lcars-prototype #document[data-turn-theme]{background:var(--td-canvas);color:var(--td-text)}
body.lcars-prototype #document[data-turn-theme]::before{display:none;content:none}
body.lcars-prototype #document[data-turn-theme] .doc-section:not(.turn-header){background:var(--td-panel);color:var(--td-text);border-color:var(--td-border)}
body.lcars-prototype #document[data-turn-theme] .section-title,
body.lcars-prototype #document[data-turn-theme] .old-bases-subheading{background:var(--td-heading);color:var(--td-heading-text);border-color:var(--td-border);font-family:var(--td-heading-font);box-shadow:var(--td-shadow)}
body.lcars-prototype #document[data-turn-theme] .field-label,
body.lcars-prototype #document[data-turn-theme] .after-field label,
body.lcars-prototype #document[data-turn-theme] .fleet-name-line,
body.lcars-prototype #document[data-turn-theme] .fleet-name-edit,
body.lcars-prototype #document[data-turn-theme] .fleet-group-header,
body.lcars-prototype #document[data-turn-theme] .turn-field-label,
body.lcars-prototype #document[data-turn-theme] .status-label{color:var(--td-text);font-family:var(--td-heading-font)}

body.lcars-prototype #document[data-turn-theme] .doc-area,
body.lcars-prototype #document[data-turn-theme] .line-input,
body.lcars-prototype #document[data-turn-theme] .cell-input:not([class*="-highlight-"]),
body.lcars-prototype #document[data-turn-theme] .economy-details:not([class*="-highlight-"]),
body.lcars-prototype #document[data-turn-theme] .after-field input.line-box,
body.lcars-prototype #document[data-turn-theme] .status-grid input:not(.status-label-edit){background:var(--td-field);color:var(--td-text);border-color:var(--td-border)}
body.lcars-prototype #document[data-turn-theme] .doc-area:hover,
body.lcars-prototype #document[data-turn-theme] .line-input:hover,
body.lcars-prototype #document[data-turn-theme] .cell-input:hover,
body.lcars-prototype #document[data-turn-theme] .economy-details:hover,
body.lcars-prototype #document[data-turn-theme] .after-field input.line-box:hover{background:var(--td-hover);border-color:var(--td-focus)}
body.lcars-prototype #document[data-turn-theme] .doc-area:focus,
body.lcars-prototype #document[data-turn-theme] .line-input:focus,
body.lcars-prototype #document[data-turn-theme] .cell-input:focus,
body.lcars-prototype #document[data-turn-theme] .economy-details:focus,
body.lcars-prototype #document[data-turn-theme] .after-field input.line-box:focus,
body.lcars-prototype #document[data-turn-theme] .status-grid input:focus{background:var(--td-field)!important;color:var(--td-text)!important;border-color:var(--td-focus)!important;outline-color:var(--td-focus);box-shadow:0 0 0 4px color-mix(in srgb,var(--td-focus) 18%,transparent)}
body.lcars-prototype #document[data-turn-theme] #section-01{background:var(--td-canvas);color:var(--td-text);border-color:var(--td-border)}
body.lcars-prototype #document[data-turn-theme] #section-01::before{background:var(--td-heading);color:var(--td-heading-text);font-family:var(--td-heading-font)}
body.lcars-prototype #document[data-turn-theme] #section-01 .turn-field-wrap{background:var(--td-panel);border-color:var(--td-border);box-shadow:var(--td-shadow)}
body.lcars-prototype #document[data-turn-theme] #section-01 .turn-field-label{color:var(--td-accent)}
body.lcars-prototype #document[data-turn-theme] #section-01 .empire-input,
body.lcars-prototype #document[data-turn-theme] #section-01 .turn-input{background:var(--td-field);color:var(--td-text);border-color:var(--td-border);font-family:var(--td-heading-font);box-shadow:var(--td-shadow)}
body.lcars-prototype #document[data-turn-theme] #section-02{background:var(--td-panel)!important;border-color:var(--td-border)!important}
body.lcars-prototype #document[data-turn-theme] #section-02 .section-title{background:var(--td-heading);color:var(--td-heading-text)}
body.lcars-prototype #document[data-turn-theme] #section-02 .status-grid td{background:var(--td-field);color:var(--td-text);border-color:var(--td-border)}
body.lcars-prototype #document[data-turn-theme] #section-02 .status-grid .status-label{background:var(--td-label);color:var(--td-label-text)}
body.lcars-prototype #document[data-turn-theme] #section-05{background:var(--td-panel)}
body.lcars-prototype #document[data-turn-theme] #section-05 .section-title{background:var(--td-heading);color:var(--td-heading-text)}
body.lcars-prototype #document[data-turn-theme] #section-05 .section-title::after{color:var(--td-accent)}
body.lcars-prototype #document[data-turn-theme] #notesToGm{background:var(--td-field);color:var(--td-text);border-color:var(--td-border);box-shadow:inset 0 3px 0 var(--td-accent)}
body.lcars-prototype #document[data-turn-theme] .fleet-card{background:var(--td-panel);border-color:var(--td-border);color:var(--td-text)}
body.lcars-prototype #document[data-turn-theme] .fleet-card-controls,
body.lcars-prototype #document[data-turn-theme] .fleet-group-header,
body.lcars-prototype #document[data-turn-theme] .fleet-aux,
body.lcars-prototype #document[data-turn-theme] .route-step,
body.lcars-prototype #document[data-turn-theme] .fleet-supply-panel{background:var(--td-field);border-color:var(--td-border);color:var(--td-text)}
body.lcars-prototype #document[data-turn-theme] .fleet-card-controls button,
body.lcars-prototype #document[data-turn-theme] .fleet-card-controls .fleet-card-handle,
body.lcars-prototype #document[data-turn-theme] .fleet-list-tools button,
body.lcars-prototype #document[data-turn-theme] .fleet-line-tools button,
body.lcars-prototype #document[data-turn-theme] .fleet-line-tools .ship-line-handle,
body.lcars-prototype #document[data-turn-theme] .fleet-group-handle,
body.lcars-prototype #document[data-turn-theme] .fleet-group-move,
body.lcars-prototype #document[data-turn-theme] .fleet-group-delete{color:var(--td-muted);border-color:var(--td-border)}
body.lcars-prototype #document[data-turn-theme] .fleet-aux label+label{border-color:var(--td-border)}
body.lcars-prototype #document[data-turn-theme] .fleet-aux label span,
body.lcars-prototype #document[data-turn-theme] .fleet-aux-value,
body.lcars-prototype #document[data-turn-theme] .route-label,
body.lcars-prototype #document[data-turn-theme] .route-value,
body.lcars-prototype #document[data-turn-theme] .fleet-supply-panel>label>span{color:var(--td-text)}
body.lcars-prototype #document[data-turn-theme] .fleet-supply-panel input[type="text"]{background:var(--td-field);border-color:var(--td-border);color:var(--td-text)}
body.lcars-prototype #document[data-turn-theme] .fleet-ad-status{background:var(--td-field);border-color:var(--td-border);color:var(--td-accent)}
body.lcars-prototype #document[data-turn-theme] .fleet-action{border-color:var(--td-accent)}
body.lcars-prototype #document[data-turn-theme] .fleet-ship{background:var(--td-field);border-color:var(--td-border);border-left-color:var(--td-accent);color:var(--td-text)}
body.lcars-prototype #document[data-turn-theme] .fleet-ship-main>.fleet-rich,
body.lcars-prototype #document[data-turn-theme] .fleet-ship-main>.fleet-rich:not(:focus)::after{color:var(--td-text)}
body.lcars-prototype #document[data-turn-theme] .fleet-ship:hover{background:var(--td-hover);border-left-color:var(--td-focus)}
body.lcars-prototype #document[data-turn-theme] table.data-table{background:var(--td-panel);color:var(--td-text);border-color:var(--td-border)}
body.lcars-prototype #document[data-turn-theme] table.data-table th{background:var(--td-heading);color:var(--td-heading-text);border-color:var(--td-border);font-family:var(--td-heading-font)}
body.lcars-prototype #document[data-turn-theme] table.data-table td,
body.lcars-prototype #document[data-turn-theme] table.data-table tfoot td{background:var(--td-panel);color:var(--td-text);border-color:var(--td-border)}
body.lcars-prototype #document[data-turn-theme] table.data-table[data-table='economy'] .cell-input:not([class*='-highlight-']),
body.lcars-prototype #document[data-turn-theme] table.data-table[data-table='economy'] .economy-details:not([class*='-highlight-']),
body.lcars-prototype #document[data-turn-theme] table.data-table[data-table='building'] .cell-input:not([class*='-highlight-']){background:transparent;color:var(--td-text);border-color:transparent;box-shadow:none}
body.lcars-prototype #document[data-turn-theme] .workspace-strip,
body.lcars-prototype #document[data-turn-theme] .checker-panel,
body.lcars-prototype #document[data-turn-theme] .checker-card,
body.lcars-prototype #document[data-turn-theme] .build-derived{background:var(--td-field);color:var(--td-text);border-color:var(--td-border)}
body.lcars-prototype #document[data-turn-theme] .economy-next-turn-button,
body.lcars-prototype #document[data-turn-theme] .fleet-next-turn-button,
body.lcars-prototype #document[data-turn-theme] .fleet-to-combat-button,
body.lcars-prototype #document[data-turn-theme] .build-to-fleets-button,
body.lcars-prototype #document[data-turn-theme] .add-row,
body.lcars-prototype #document[data-turn-theme] .ship-add,
body.lcars-prototype #document[data-turn-theme] .fleet-add-global,
body.lcars-prototype #document[data-turn-theme] .fleet-group-add{background:var(--td-action)!important;border-color:var(--td-border)!important;color:var(--td-action-text)!important;font-family:var(--td-heading-font)}
body.lcars-prototype #document[data-turn-theme="paper-mono"] .section-title,
body.lcars-prototype #document[data-turn-theme="paper-mono"] .old-bases-subheading{border-color:transparent;box-shadow:none}
body.lcars-prototype #document[data-turn-theme="paper-mono"]{border-top-color:transparent}
body.lcars-prototype #document[data-turn-theme="paper-mono"] .doc-section{border-color:transparent!important;box-shadow:none!important}
body.lcars-prototype #document[data-turn-theme="paper-mono"] #section-02{border-color:transparent!important;box-shadow:none!important}
body.lcars-prototype #document[data-turn-theme="paper-mono"] #notesToGm{box-shadow:none}
body.lcars-prototype #document[data-turn-theme="paper-mono"] #section-01,
body.lcars-prototype #document[data-turn-theme="paper-mono"] #section-01 .turn-field-wrap{border-color:transparent!important}
body.lcars-prototype #document[data-turn-theme="paper-mono"] .fleet-card{border-color:transparent!important;box-shadow:inset 0 1px 0 #b8b8b8,inset 0 -1px 0 #b8b8b8}
body.lcars-prototype #document[data-turn-theme="paper-mono"] .section-title::before{background:transparent!important}
body.lcars-prototype #document[data-turn-theme="paper-mono"],
body.lcars-prototype #document[data-turn-theme="paper-mono"] input,
body.lcars-prototype #document[data-turn-theme="paper-mono"] textarea,
body.lcars-prototype #document[data-turn-theme="paper-mono"] button,
body.lcars-prototype #document[data-turn-theme="paper-mono"] select,
body.lcars-prototype #document[data-turn-theme="paper-mono"] .doc-area,
body.lcars-prototype #document[data-turn-theme="paper-mono"] .fleet-rich,
body.lcars-prototype #document[data-turn-theme="paper-mono"] table{font-family:Arial,Helvetica,sans-serif}
body.lcars-prototype #document[data-turn-theme="paper-mono"] .rowctl,
body.lcars-prototype #document[data-turn-theme="paper-mono"] table.data-table th.rowctl-col{background:#fff;color:#000}
body.lcars-prototype #document[data-turn-theme="paper-mono"] .rowctl button,
body.lcars-prototype #document[data-turn-theme="paper-mono"] .rowctl .drag-handle{color:#000;border-color:transparent}
body.lcars-prototype #document[data-turn-theme="paper-mono"] .column-resize-handle{background:linear-gradient(90deg,transparent 5px,rgba(0,0,0,.28) 5px,rgba(0,0,0,.28) 6px,transparent 6px)}
body.lcars-prototype #document[data-turn-theme="paper-mono"] .checker-head a#openBuildCheckerLink,
body.lcars-prototype #document[data-turn-theme="paper-mono"] .building-sort-button,
body.lcars-prototype #document[data-turn-theme="paper-mono"] .fleet-jump-link,
body.lcars-prototype #document[data-turn-theme="paper-mono"] .section-fleet-jump{background:#fff;color:#000;border-color:#555;box-shadow:none}
body.lcars-prototype #document[data-turn-theme="paper-mono"] .checker-head a#openBuildCheckerLink:hover,
body.lcars-prototype #document[data-turn-theme="paper-mono"] .building-sort-button:hover,
body.lcars-prototype #document[data-turn-theme="paper-mono"] .fleet-jump-link:hover,
body.lcars-prototype #document[data-turn-theme="paper-mono"] .section-fleet-jump:hover{background:#f3f3f3;color:#000;border-color:#000}
body.lcars-prototype #document[data-turn-theme="nebula"] .rowctl button,
body.lcars-prototype #document[data-turn-theme="nebula"] .rowctl .drag-handle{color:var(--td-muted)}
body.lcars-prototype #document[data-turn-theme="nebula"] .workspace-strip strong{color:var(--td-text)}
body.lcars-prototype #document[data-turn-theme="nebula"] table.data-table .cell-input.supply-used-computed,
body.lcars-prototype #document[data-turn-theme="nebula"] .fleet-supply-requirement{color:#172333!important}
body.lcars-prototype #document[data-turn-theme="nebula"] .checker-head a#openBuildCheckerLink{background:var(--td-action)!important;border-color:var(--td-border)!important;color:var(--td-action-text)!important}

/* The Empire / Turn row is the document header; the former redundant banner is intentionally removed. */
body.lcars-prototype #document[data-turn-theme] #section-01{padding-top:14px}
body.lcars-prototype #document[data-turn-theme] #section-01::before{display:none;content:none}
body.lcars-prototype #document[data-turn-theme] #section-01 .turn-title .turn-field-wrap:first-child,
body.lcars-prototype #document[data-turn-theme] #section-01 .turn-title .turn-field-wrap:last-child{grid-row:1}
body.lcars-prototype #document[data-turn-theme] #section-01 .turn-field-label,
body.lcars-prototype #document[data-turn-theme] #section-01 .empire-input,
body.lcars-prototype #document[data-turn-theme] #section-01 .turn-input{font-family:var(--td-heading-font)}
body.lcars-prototype #document[data-turn-theme] #section-01 .turn-field-label{font-size:clamp(16px,1.6vw,20px)}
body.lcars-prototype #document[data-turn-theme] #section-01 .empire-input,
body.lcars-prototype #document[data-turn-theme] #section-01 .turn-input{font-size:clamp(22px,2.2vw,27px)}
}

@media screen and (max-width:720px){body.lcars-prototype #turnThemeSelect{display:none}}
