/* Ver.54.8.7 重点強調Preview — accessibility and action emphasis only.
 * v66 boat identity/6-workflow, prediction, synchronization and saved data are unchanged.
 * All overrides restricted to the light theme; dark stays as in v66. */
:root[data-theme="light"] body.v66-fresh{
  --action:#075dba; --actionHover:#004b99;
}
/* A more vivid blue for primary actions, readable white text. */
:root[data-theme="light"] body.v66-fresh button.primary,
:root[data-theme="light"] body.v66-fresh button.primary:not(:disabled),
:root[data-theme="light"] body.v66-fresh .v65-next,
:root[data-theme="light"] body.v66-fresh .v65-foot-row .v65-next{
  background:#075db9!important;color:#fff!important;border:2px solid #064c96!important;
  font-weight:900;box-shadow:0 4px 11px #075db92e;
}
:root[data-theme="light"] body.v66-fresh button.primary:hover,
:root[data-theme="light"] body.v66-fresh .v65-next:hover{background:#034c97!important;}
:root[data-theme="light"] body.v66-fresh button:focus-visible{outline:3px solid #f1a70c!important;outline-offset:3px}
/* Active workflow: unmistakable but not confusing with the six boat colors. */
:root[data-theme="light"] body.v66-fresh #v47-tabs button[aria-selected="true"]{
  background:#064a89!important;color:#fff!important;border:2px solid #064a89!important;
  border-bottom:5px solid #f0b51c!important;box-shadow:0 4px 13px #064a8938!important;
  font-weight:950;
}
:root[data-theme="light"] body.v66-fresh .v65-guide{
  border-left:7px solid #085baa;background:linear-gradient(105deg,#dbeeff,#f7fbff);
  border-top:1px solid #a8d0f1;border-bottom:1px solid #a8d0f1;
}
:root[data-theme="light"] body.v66-fresh .v65-guide span{
  color:#063e79;font-size:14px;font-weight:950;
}
/* Stronger heads only on the top-of-step task, not on every panel. */
:root[data-theme="light"] body.v66-fresh .v47-pane>.v65-lead,
:root[data-theme="light"] body.v66-fresh .v65-step-heading{
  background:linear-gradient(100deg,#0b579d,#176cb8)!important;
  border:1px solid #07508b!important;border-left:6px solid #f2c23b!important;
  box-shadow:0 3px 10px #07549222;
  color:#fff!important;
}
:root[data-theme="light"] body.v66-fresh .v47-pane>.v65-lead strong,
:root[data-theme="light"] body.v66-fresh .v65-step-heading strong{color:#fff!important;font-size:18px}
:root[data-theme="light"] body.v66-fresh .v47-pane>.v65-lead small,
:root[data-theme="light"] body.v66-fresh .v65-step-heading small{color:#e9f5ff!important;font-weight:650}
/* Before betting: check panel has an amber accent rather than warning about a nonexisting issue. */
:root[data-theme="light"] body.v66-fresh #v64-check{
  border:2px solid #e1a12a!important;border-left:6px solid #e1a12a!important;
  background:#fffefa!important;box-shadow:0 4px 12px #a774191d;
}
:root[data-theme="light"] body.v66-fresh #v64-check>h3{color:#794608!important;font-weight:950}
:root[data-theme="light"] body.v66-fresh #v64-run{
  background:#095cae!important;color:white!important;border:2px solid #064885!important;
  min-height:47px;font-size:15px;font-weight:900;box-shadow:0 4px 11px #095cae29;
}
:root[data-theme="light"] body.v66-fresh .v64-issue{
  border:2px solid #dda039!important;border-left:6px solid #d48d13!important;
  background:#fff7e8!important;
}
:root[data-theme="light"] body.v66-fresh .v64-issue strong{color:#543307;font-weight:950}
:root[data-theme="light"] body.v66-fresh .v64-row button:first-child{background:#f2f4f6;color:#243a4d;border:1px solid #9cb1c0}
:root[data-theme="light"] body.v66-fresh .v64-row button:last-child{background:#075db9!important;color:#fff!important;border-color:#075db9!important}
:root[data-theme="light"] body.v66-fresh #v64-check .v64-status b{color:#744105;font-weight:950}
/* Results/confirmation: green is a positive status, not for all actions. */
:root[data-theme="light"] body.v66-fresh #v64-review{
  border-left:5px solid #16824c!important;
}
:root[data-theme="light"] body.v66-fresh #v64-review>h3{color:#14673e!important}
/* Secondary/reference sections remain quiet by contrast. */
:root[data-theme="light"] body.v66-fresh .v65-extra>summary{
  background:#f4f7fa!important;color:#4a6378!important;font-weight:750;
}
:root[data-theme="light"] body.v66-fresh .v65-extra{box-shadow:none!important;border-color:#c5d5e1!important}
@media(max-width:750px){
  :root[data-theme="light"] body.v66-fresh .v65-guide span{font-size:12px}
  :root[data-theme="light"] body.v66-fresh #v64-run{width:100%;min-height:48px}
  :root[data-theme="light"] body.v66-fresh #v47-tabs button[aria-selected="true"]{border-bottom-width:4px!important}
}

/* The traffic-light vocabulary requested by the users:
   blue=proceed, amber=be careful, red=stop/reset. Orange=review prompt.
   Boat colors are independent and never recolored by these state rules. */
:root[data-theme="light"] body.v66-fresh #quick-save-warning,
:root[data-theme="light"] body.v66-fresh .caution,
:root[data-theme="light"] body.v66-fresh .quick-notices .quick-file-note{
  background:#fff5cc!important;border:2px solid #e8b12c!important;
  border-left:6px solid #e8b12c!important;color:#513b0d!important;
}
/* Orange = needs attention / examine before committing, not a detected error. */
:root[data-theme="light"] body.v66-fresh #v64-check{
  border:2px solid #ea8b16!important;border-left:7px solid #ea8b16!important;
  background:#fff9ef!important;
}
:root[data-theme="light"] body.v66-fresh #v64-check>h3{color:#814507!important;}
:root[data-theme="light"] body.v66-fresh .v64-issue{
  background:#fff3d9!important;border:2px solid #e6aa2d!important;
  border-left:7px solid #db7b00!important;
}
/* Red = stop and think / destructive data operations only. */
:root[data-theme="light"] body.v66-fresh #quick-clear,
:root[data-theme="light"] body.v66-fresh #reset,
:root[data-theme="light"] body.v66-fresh [data-v58-clear-grades]{
  border:2px solid #c62834!important;background:#fff1f2!important;
  color:#ad1522!important;font-weight:850;
}
:root[data-theme="light"] body.v66-fresh #quick-clear:hover,
:root[data-theme="light"] body.v66-fresh #reset:hover,
:root[data-theme="light"] body.v66-fresh [data-v58-clear-grades]:hover{
  background:#fee2e4!important;
}
