/* R1.26 internal visual system: ASK PIOC CORE across inherited pages. */
body:has(.pioc-app-shell) {
  --pioc-r126-ink: #f3f1e9;
  --pioc-r126-muted: #bdc9c0;
  --pioc-r126-amber: #edbd7c;
  --pioc-r126-line: rgba(185, 194, 179, .34);
  background: #111719 !important;
  color: var(--pioc-r126-ink) !important;
}
body:has(.pioc-app-shell) .pioc-workspace {
  min-width: 0;
  background: linear-gradient(90deg,rgba(17,23,24,.95),rgba(17,23,24,.81)),
              url('/static/pioc-field-installation.jpg') center top / cover fixed !important;
  color: var(--pioc-r126-ink) !important;
}
body:has(.pioc-app-shell) header,
body:has(.pioc-app-shell) .pioc-sidebar {
  background: #151b1d !important;
}
body:has(.pioc-app-shell) main,
body:has(.pioc-app-shell) .ops {
  width: 100%;
  max-width: 1500px;
  min-width: 0;
  margin-inline: auto;
}
body:has(.pioc-app-shell) h1,
body:has(.pioc-app-shell) h2,
body:has(.pioc-app-shell) h3,
body:has(.pioc-app-shell) .pioc-nav-heading,
body:has(.pioc-app-shell) .footer {
  font-family: "Lucida Sans Typewriter", Consolas, "Courier New", monospace !important;
}
body:has(.pioc-app-shell) h1,
body:has(.pioc-app-shell) h2 {color: #f4f1e8 !important;}
body:has(.pioc-app-shell) p,
body:has(.pioc-app-shell) li,
body:has(.pioc-app-shell) td {line-height: 1.5;}
body:has(.pioc-app-shell) .card,
body:has(.pioc-app-shell) .work,
body:has(.pioc-app-shell) .status-item,
body:has(.pioc-app-shell) .ops .panel {
  background: rgba(22,29,30,.89) !important;
  color: var(--pioc-r126-ink) !important;
  border: 1px solid var(--pioc-r126-line) !important;
  border-radius: 3px !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.16) !important;
}
body:has(.pioc-app-shell) .card > h3,
body:has(.pioc-app-shell) .ops .panel > h2 {
  background: rgba(37,46,45,.55) !important;
  color: #f5eedf !important;
}
body:has(.pioc-app-shell) .field,
body:has(.pioc-app-shell) input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body:has(.pioc-app-shell) select,
body:has(.pioc-app-shell) textarea,
body:has(.pioc-app-shell) .ops input:not([type=checkbox]),
body:has(.pioc-app-shell) .ops select,
body:has(.pioc-app-shell) .ops textarea {
  background: rgba(14,24,25,.97) !important;
  color: #f7f2e8 !important;
  border: 1px solid #78877b !important;
  border-radius: 2px !important;
  font-family: "Lucida Sans Typewriter", Consolas, "Courier New", monospace !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  min-height: 36px !important;
}
body:has(.pioc-app-shell) textarea {min-height: 94px !important;}
body:has(.pioc-app-shell) input:focus-visible,
body:has(.pioc-app-shell) select:focus-visible,
body:has(.pioc-app-shell) textarea:focus-visible,
body:has(.pioc-app-shell) a:focus-visible {
  outline: 2px solid var(--pioc-r126-amber) !important;
  outline-offset: 2px;
}
body:has(.pioc-app-shell) .text-link,
body:has(.pioc-app-shell) .ops a,
body:has(.pioc-app-shell) .ops .action,
body:has(.pioc-app-shell) button:not(.display-select) {
  color: var(--pioc-r126-amber) !important;
}
body:has(.pioc-app-shell) .muted,
body:has(.pioc-app-shell) .small,
body:has(.pioc-app-shell) .ops .muted {color: var(--pioc-r126-muted) !important;}
body:has(.pioc-app-shell) .tablewrap,
body:has(.pioc-app-shell) .ops .scroll {max-width: 100%; overflow-x: auto;}
body:has(.pioc-app-shell) th,
body:has(.pioc-app-shell) td {border-color: var(--pioc-r126-line) !important;}
body:has(.pioc-app-shell) .footer {
  background: #111719 !important;
  color: #c8cfc3 !important;
  border-top: 1px solid var(--pioc-r126-line) !important;
  font-size: 10px !important;
}
@media (max-width: 780px) {
  body:has(.pioc-app-shell) .pioc-workspace {background-attachment: scroll !important;}
  body:has(.pioc-app-shell) main {padding-inline: 14px !important;}
  body:has(.pioc-app-shell) .ops {padding: 14px !important;}
  body:has(.pioc-app-shell) .grid {grid-template-columns: minmax(0,1fr) !important;}
  body:has(.pioc-app-shell) .grid > * {grid-column: 1 / -1 !important; min-width: 0;}
}
@media print {
  body:has(.pioc-app-shell) .pioc-workspace,
  body:has(.pioc-app-shell) .card,
  body:has(.pioc-app-shell) .ops .panel {background: white !important; color: black !important; box-shadow: none !important;}
}

/* R1.26.1 final palette pass on inherited form, table, tab and alert surfaces. */
body:has(.pioc-app-shell) { --accent:#edbd7c; --blue:#edbd7c; --primary:#edbd7c; --surface:#151b1d; --border:#61716b; }
body:has(.pioc-app-shell) :is(.panel,.table-wrap,.toolbar,.tabs,.tab,.badge,.alert,.notice,.modal,.form-section,fieldset,table,thead,tbody,tr,th,td) { border-color:#61716b !important; }
body:has(.pioc-app-shell) :is(.panel,.table-wrap,.toolbar,.tabs,.modal,.form-section,fieldset,th) { background-color:#1b2525 !important; color:#f3f1e9 !important; }
body:has(.pioc-app-shell) :is(a,.text-link,.tab.active,.nav a:hover) { color:#edbd7c !important; }
body:has(.pioc-app-shell) :is(button,input[type=submit]) { background:#28322e !important;color:#f3f1e9 !important;border:1px solid #b99a70 !important; }
.core-page {max-width:1120px;margin:0 auto;padding:26px;color:#f3f1e9}.core-page h1,.core-page h2{font-family:'Lucida Sans Typewriter',Consolas,monospace}.core-page p,.core-page small{color:#bfc9c1}.core-panel{background:#182222;border:1px solid #61716b;padding:20px;margin:20px 0}.core-row{padding:14px 0;border-bottom:1px solid #61716b}.core-page form label{display:block;margin:12px 0}.core-page input,.core-page textarea,.core-page select{display:block;width:100%;max-width:650px;margin:7px 0;padding:9px}.core-page a{color:#edbd7c}.core-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.core-choices a{display:block;padding:28px 16px;text-align:center;border:1px solid #b99a70;background:#202b29}.core-good{color:#a7dbb2!important}@media(max-width:700px){.core-page{padding:15px}.core-choices{grid-template-columns:1fr}.core-choices a{padding:18px}}

/* Final board and shared navigation correction */
body:has(.pioc-app-shell){--navy:#151b1d;--navy2:#27362e;--card:#1b2525;--card-alt:#202b29;--line:#61716b;--muted:#bdc9c0;--field-bg:#151b1d;--field-border:#61716b}
body:has(.pioc-app-shell) :is(.board-controls,.board-lane,.board-card,.ops .alert,.pioc-nav-group,details.menu-group){background-color:#1b2525!important;border-color:#61716b!important;color:#f3f1e9!important}
body:has(.pioc-app-shell) .board-card{border-left-color:#edbd7c!important}body:has(.pioc-app-shell) :is(.board-help,.board-empty,.board-card .sub,.ops .muted){color:#bdc9c0!important}
body:has(.pioc-app-shell) .pioc-sidebar{background:#151b1d!important;color:#f3f1e9!important}body:has(.pioc-app-shell) .pioc-sidebar a{color:#e6e9df!important}body:has(.pioc-app-shell) .pioc-sidebar a:hover{color:#edbd7c!important}
body:has(.pioc-app-shell) .pioc-sidebar details{border-top:1px solid #61716b;padding:10px 0}body:has(.pioc-app-shell) .pioc-sidebar summary{cursor:pointer;color:#edbd7c;font-family:'Lucida Sans Typewriter',Consolas,monospace}
.controlled-log{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5;max-width:100%;overflow:auto;color:#f3f1e9}
