/* FOUR FLAMES LLC · FACETED EMBER 005 · REAL WORKFLOW FINISHING PASS
   Approved user intent: unmistakable, tactile night-shift controls on all REAL
   Command Center screens. This layer changes presentation only; no JS handlers,
   field names, form order, API endpoints, authorizations or persistence semantics.
   Applied only to the existing opt-in Plateau Ember appearance; Classic, Station
   Night and High Contrast are not restyled. */
@media screen {
body[data-ff-mode="plateau_ember_preview"] {
  --ff-005-ink:#fff8ed;
  --ff-005-teal-ink:#eefef9;
  --ff-005-copper:linear-gradient(150deg,#ae5628 0%,#9a4624 55%,#633022 100%);
  --ff-005-river:linear-gradient(148deg,#287c75 0%,#205d58 58%,#123c3b 100%);
  --ff-005-raised:inset 0 2px 0 #ffe4b15f,inset 2px 0 #fff4d222,inset 0 -4px 0 #21130ca8,0 7px 14px #0008;
  --ff-005-teal-raised:inset 0 2px 0 #ddfff079,inset 0 -4px 0 #001f229c,0 7px 14px #0008;
  --ff-005-cut:15px 5px 15px 5px;
}
/* Navigation never impersonates a destructive or record-saving action. */
body[data-ff-mode="plateau_ember_preview"] #shell .side button:not(.active),
body[data-ff-mode="plateau_ember_preview"] #ff-handset button:not([aria-current]),
body[data-ff-mode="plateau_ember_preview"] #ff-station-bar button {
  color:#e8f6f1;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.panel,.card,.ops-step,.ff-admin-group,.tc-panel,.rb-controls) {
  border-color:#60827b;
}
body[data-ff-mode="plateau_ember_preview"] #content .ops-step,
body[data-ff-mode="plateau_ember_preview"] #content .ff-task-fields {
  border-radius:16px 5px 16px 5px;
  background:linear-gradient(148deg,#213739,#122428 90%);
  box-shadow:inset 0 1px #ddfff016,0 8px 19px #0005;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ops-step,.ff-task-fields,.ff-record-section) :is(h2,h3,legend) { color:#fff5e9; }
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-search-status,[role=status],[role=alert]) { overflow-wrap:anywhere; }

/* All real prominent entry/commit buttons: same bevel, no empty decorative cards. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.station-actions,.ff-workspace-primary,.ff-admin-tools,.ff-crew-toolbar) > button:not(.danger):not(.secondary):not(:disabled),
body[data-ff-mode="plateau_ember_preview"] #content :is(.ops-step,.panel,.ff-task-fields) > button:not(.secondary):not(.danger):not(:disabled),
body[data-ff-mode="plateau_ember_preview"] #content :is(.tc-dialog,.tc-form-actions) button[type="submit"]:not(.tc-danger):not(:disabled),
body[data-ff-mode="plateau_ember_preview"] #dialog #editForm button[type="submit"]:not(:disabled),
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-cart-review,.ff-task-review,.ff-stock-review) button[type="submit"]:not(:disabled) {
  color:var(--ff-005-ink);
  background:var(--ff-005-copper);
  border:1px solid #ffc082;
  border-radius:var(--ff-005-cut);
  box-shadow:var(--ff-005-raised);
  font-weight:800;
  line-height:1.28;
  min-height:53px;
  padding:11px 16px;
  text-shadow:0 1px 1px #140b0799;
  touch-action:manipulation;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-primary,.ff-admin-tools,.ff-crew-toolbar,.station-actions) > button.secondary:not(:disabled),
body[data-ff-mode="plateau_ember_preview"] #content :is(.ops-step,.ff-task-fields,.ff-cart-review,.ff-task-review) > button.secondary:not(:disabled),
body[data-ff-mode="plateau_ember_preview"] #dialog #editForm button.secondary:not(:disabled) {
  color:var(--ff-005-teal-ink);
  background:var(--ff-005-river);
  border:1px solid #9be9df;
  border-radius:var(--ff-005-cut);
  box-shadow:var(--ff-005-teal-raised);
  font-weight:750;
  min-height:50px;
  padding:10px 15px;
}
/* Compact controls in real tables must remain distinct from large task actions. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.table-scroll,.tc-table-form,.ff-record-section) table button:not(.danger):not(:disabled) {
  min-height:44px;
  padding:8px 11px;
  border-radius:12px 4px 12px 4px;
  background:var(--ff-005-river);
  color:#effef9;
  border:1px solid #72c3b9;
  box-shadow:inset 0 1px #f1fff04d,0 3px 9px #0006;
  font-weight:700;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.table-scroll,.tc-table-form) table button.danger:not(:disabled) {
  background:linear-gradient(150deg,#9f4145,#632b31);
  border:1px solid #ffa8a6;color:#fff2ee;
  box-shadow:inset 0 1px #ffdfdf55,0 3px 9px #0006;
  min-height:44px;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc-dialog) button:disabled {
  opacity:1;cursor:not-allowed;
  color:#b2bbb7!important;background:#334441!important;
  border-color:#68746e!important;box-shadow:none!important;
  text-shadow:none!important;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc-dialog) button:not(:disabled):active {
  transform:translateY(2px);
  box-shadow:inset 0 3px 7px #0008,0 1px 2px #0006;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc-dialog) button:focus-visible,
body[data-ff-mode="plateau_ember_preview"] #content details>summary:focus-visible {
  outline:3px solid #bcfff2;outline-offset:3px;
}

/* E-LOGBOOK: make the entry and draft actions unmissable. The incident editor's
   original field sequence, native required fields and submission rules stay. */
/* The real E-Logbook overview uses .station-actions (not the older
   .actions wrapper). Elevate the genuine Log a Call entry point without moving
   fields, changing the wizard, or altering any click handler. */
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] > .station-actions > button:first-child:not(:disabled) {
  background:var(--ff-005-copper);
  color:var(--ff-005-ink);
  border:1px solid #ffc082;
  border-radius:var(--ff-005-cut);
  box-shadow:var(--ff-005-raised);
  min-height:63px;
  padding:14px 20px;
  font-size:1.06rem;
  font-weight:830;
}
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] > .station-actions > button:not(:first-child):not(:disabled) {
  background:var(--ff-005-river);color:var(--ff-005-teal-ink);
  border:1px solid #8ce9dc;
  border-radius:var(--ff-005-cut);
  box-shadow:var(--ff-005-teal-raised);
  min-height:54px;padding:11px 17px;font-weight:750;
}
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] > .actions {
  display:flex;flex-wrap:wrap;gap:10px;margin:17px 0 15px;
}
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] > .actions > button:first-child:not(:disabled) {
  background:var(--ff-005-copper);color:var(--ff-005-ink);
  border:1px solid #ffc082;border-radius:var(--ff-005-cut);
  box-shadow:var(--ff-005-raised);
  min-height:58px;padding:12px 20px;font-size:1.05rem;font-weight:830;
}
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] > .actions > button.secondary:not(:disabled),
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] > .actions > button:not(:first-child):not(:disabled) {
  background:var(--ff-005-river);color:var(--ff-005-teal-ink);
  border:1px solid #8ce9dc;border-radius:var(--ff-005-cut);
  box-shadow:var(--ff-005-teal-raised);
  min-height:54px;padding:11px 17px;font-weight:750;
}
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] :is(.panel,.ops-step,.incident-section,.advanced-incident,.form-extra-panel) {
  border-color:#62857e;background-color:#1b3031;
}
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] :is(#op-editor,.ops-fields) :is(label,legend) {color:#dcf3eb;}
/* The E-Log form itself is intentionally excluded from the general size/layout
   pass; its final-submit, signatures and dispatch chronology are sensitive. */

/* TRAINING CENTER: clearly identify one primary daily task and preserve tabs. */
/* The actual Daily Training list opens in #tc-dialog. Its real
   data-tool=new button must be as obvious as the dashboard entry action. */
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-actions button[data-tool="new"]:not(:disabled) {
  background:var(--ff-005-copper);color:var(--ff-005-ink);
  border:1px solid #ffc082;border-radius:var(--ff-005-cut);
  box-shadow:var(--ff-005-raised);font-weight:830;
  min-height:53px;padding:11px 16px;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-actions button[data-tool="new"]:not(:disabled):active {
  transform:translateY(2px);box-shadow:inset 0 3px 7px #0008,0 1px 2px #0006;
}
body[data-ff-mode="plateau_ember_preview"] #tc-dialog .tc-actions button[data-tool="new"]:focus-visible {
  outline:3px solid #bcfff2;outline-offset:3px;
}
body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-header-actions button[data-tc="tools"][data-id="daily"]:not(:disabled) {
  background:var(--ff-005-copper);
  border:1px solid #ffc082;color:var(--ff-005-ink);
  border-radius:var(--ff-005-cut);box-shadow:var(--ff-005-raised);
  font-weight:830;
}
body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-header-actions button:not([data-id="daily"]):not(:disabled) {
  background:var(--ff-005-river);
  border:1px solid #90e5d9;color:var(--ff-005-teal-ink);
  border-radius:var(--ff-005-cut);box-shadow:var(--ff-005-teal-raised);
  font-weight:750;
}
body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-tabs {
  scrollbar-color:#66bdb2 #122e30;scroll-padding-inline:12px;
  overscroll-behavior-inline:contain;
}
body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-tabs button {
  border-radius:12px 4px 12px 4px;
  min-height:48px;
  border-color:#8b6947;
  color:#ffe5c6;
  background:linear-gradient(145deg,#6d361d,#412b24);
  scroll-snap-align:start;
  font-weight:750;
}
body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-tabs button[aria-current="page"] {
  background:var(--ff-005-river);color:#f5fffa;
  border-color:#9af3e6;
  box-shadow:inset 0 1px #d7fff073;
}
body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-form-actions button[type="submit"]:not(.tc-danger):not(:disabled) {
  background:var(--ff-005-copper);border-color:#ffc082;
  color:var(--ff-005-ink);border-radius:var(--ff-005-cut);
  box-shadow:var(--ff-005-raised);font-weight:830;
}
body[data-ff-mode="plateau_ember_preview"] #content .tc :is(.tc-panel,.tc-cycle,.tc-file-group,.tc-clock,.tc-stat) {
  border-color:#567c74;background-color:#1b3031;
}
/* Its tabs, hours bars, attendance declarations and approvals are not moved. */

/* ADMINISTRATION: setup cards and subpages use exact same tactile language. */
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="Administration"] :is(.ff-admin-group,.ff-admin-records) {
  border:1px solid #63847a;
  border-radius:17px 5px 17px 5px;
  padding:clamp(12px,2vw,20px);
  background:linear-gradient(145deg,#203534,#152727);
  box-shadow:0 8px 20px #0007;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-admin-tools,.station-actions) button:not(:disabled) {
  min-height:60px;
  text-align:left;
}
body[data-ff-mode="plateau_ember_preview"] #content .admin-back {
  min-height:48px;border-radius:12px 4px 12px 4px;
  background:var(--ff-005-river);border:1px solid #8ce0d4;
  color:#eafff6;font-weight:760;box-shadow:var(--ff-005-teal-raised);
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-admin-records,.ff-record-section,.ff-request-history)>summary {
  min-height:49px;padding:12px 14px;
  border:1px solid #608980;
  border-radius:12px 4px 12px 4px;
  background:linear-gradient(140deg,#234b47,#193331 85%);
  color:#d8fff5;font-weight:760;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-admin-records,.ff-record-section,.ff-request-history)[open]>summary {
  border-color:#e6a163;color:#fff4dd;
}

/* FINANCE, PURCHASING, EMS, MAINTENANCE, PPE, REPORTS:
   source-generated form controls, reviews, and record lists—not stand-ins. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-task-fields,.ff-ems-stock,.ff-restock-selection,.ff-cart-review,.ff-requisition-review) {
  border-color:#648b83;
  box-shadow:inset 0 1px #ecfff01b,0 7px 19px #0006;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-ems-tabs,.ff-report-topics,.ff-report-actions) button:not(:disabled) {
  min-height:50px;
  font-weight:760;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-ems-tabs,.ff-report-topics) button[aria-current="page"] {
  background:var(--ff-005-river);
  border-color:#99eee2;color:#fff;
  box-shadow:var(--ff-005-teal-raised);
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-report-filters,.rb-template,.rb-block,.ff-ems-stock,.ff-restock-selection) {
  border-radius:15px 5px 15px 5px;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.rb,.ff-report-actions,.tc) button:not(:disabled):not(.danger):not(.secondary):not([aria-current="page"]) {
  border-color:#a17e5c;
}
body[data-ff-mode="plateau_ember_preview"] #content .rb :is(.rb-featured,[data-add-block]):not(:disabled) {
  border-radius:var(--ff-005-cut);box-shadow:var(--ff-005-raised);
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-duty-priorities,.ff-finance-balances,.ff-ems-stock) > :is(section,article) {
  border-color:#57867b;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-stock-review,.ff-task-review,.ff-cart-review) {
  border-inline-start:4px solid #80dfd4;
}
/* Text entry, descriptions, and attached evidence keep their existing values. */
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc-dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea):not(:disabled) {
  color:#fff8f0;background-color:#0e272a;border-color:#719d94;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc-dialog) :is(label,legend) {
  color:#d4e8e2;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(table,.ff-list,.tc-list) {
  font-variant-numeric:tabular-nums;
}
body[data-ff-mode="plateau_ember_preview"] #content table :is(th,td) {
  vertical-align:top;
}
body[data-ff-mode="plateau_ember_preview"] #content table th {
  background:#20534b;color:#eafff5;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.table-scroll,.rb-table-wrap,.tc-table-form) {
  max-width:100%;overflow-x:auto;
}
/* Sign-in and account-security forms also need a tactile primary button. */
body[data-ff-mode="plateau_ember_preview"] #login button,
body[data-ff-mode="plateau_ember_preview"] :is(#passwordChange,#dpsstEnrollment) button[type="submit"] {
  min-height:56px;border-radius:var(--ff-005-cut);
  background:var(--ff-005-copper);border:1px solid #ffc082;
  box-shadow:var(--ff-005-raised);color:var(--ff-005-ink);font-weight:830;
}
body[data-ff-mode="plateau_ember_preview"] :is(#dialog,#accountSecurityDialog,.tc-dialog) {
  border-color:#759e90;
  box-shadow:0 20px 70px #000b;
}
}
@media screen and (max-width:760px) {
  body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] > .actions > button:first-child {
    flex:1 1 185px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-header-actions {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-header-actions button {
    min-width:0;min-height:58px;padding:9px 7px;
    white-space:normal;line-height:1.25;font-weight:770;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-header-actions button[data-tc="refresh"] {
    grid-column:1/-1;min-height:51px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-tabs {
    gap:6px;scroll-snap-type:x proximity;
    padding-block:8px 11px;
    border-bottom:1px solid #6d8d84;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-tabs button {
    min-height:52px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-admin-tools,.ff-workspace-primary,.station-actions) button,
  body[data-ff-mode="plateau_ember_preview"] #content .ff-quick,
  body[data-ff-mode="plateau_ember_preview"] #content .ff-home-tile {
    touch-action:manipulation;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-workspace-search {min-width:0;}
  body[data-ff-mode="plateau_ember_preview"] #content :is(input,select,textarea) {font-size:16px;}
  body[data-ff-mode="plateau_ember_preview"] #content .ff-admin-group {padding:12px;}
}
@media screen and (max-width:365px) {
  body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-header-actions {grid-template-columns:repeat(2,minmax(0,1fr));}
  body[data-ff-mode="plateau_ember_preview"] #content .tc .tc-header-actions button[data-tc="refresh"] {grid-column:1/-1;}
}
@media (prefers-reduced-motion:reduce) {
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc-dialog) button {transition:none!important;}
}
@media print {
  /* Never print the dark screen theme into E-Logbook, training certificates or
     the Report Builder's paper/PDF pages. */
  body[data-ff-mode="plateau_ember_preview"] #content .rb .rb-paper,
  body[data-ff-mode="plateau_ember_preview"] #content .tc-print-preview {background:#fff!important;color:#222!important;box-shadow:none!important;}
}
