/* Field-service instruments share the colony's existing visual language. */
#title { overflow-y: auto; justify-content: safe flex-end; padding-top: 28px; }
#title > :not(.title-foot) { flex-shrink: 0; }
@media (max-height: 720px) { #title .wordmark { font-size: clamp(52px, 10vh, 90px); } #title .lede { margin: 15px 0 20px; } #title .btn { padding-top: 9px; padding-bottom: 9px; } }
.field-strip { position: absolute; top: 28px; right: 32px; display: flex; align-items: center; gap: 16px; font: 11px var(--mono); color: var(--muted); letter-spacing: .07em; }
#tasks-open { pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px; color: var(--text); background: rgba(3,15,22,.85); }
#tasks-open strong { color: var(--accent); font-weight: normal; }
#tasks-open:focus-visible, .work-order button:focus-visible, #service button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#tasks .card, #service .card { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; background: linear-gradient(135deg, #0a202b, #041017 65%); }
.service-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-right: 25px; }
.service-header h2 { margin-bottom: 8px; }
#task-count { font: 12px var(--mono); color: var(--accent); white-space: nowrap; }
.work-intro { margin: 0 0 24px; color: var(--muted); }
#work-orders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.work-order { border: 1px solid rgba(154,199,216,.18); background: rgba(9,27,36,.65); padding: 20px; display: flex; flex-direction: column; }
.work-code { display: flex; gap: 10px; justify-content: space-between; font: 12px var(--mono); color: var(--accent); }
.work-code span { font-size: 10px; color: var(--warn); }
.work-order.certified { border-color: rgba(86,255,154,.3); }
.work-order.certified .work-code span { color: var(--ok); }
.work-order h3 { font-size: 19px; font-weight: 600; margin: 18px 0 8px; }
.work-order p { font-size: 13px; color: #a6bcc7; line-height: 1.6; margin: 0 0 12px; }
.work-order .work-location { color: var(--accent); font: 11px var(--mono); }
.work-reward { color: #d7e6ec; border-top: 1px solid rgba(154,199,216,.13); padding-top: 12px; font-size: 12px; margin-top: auto; line-height: 1.6; }
.work-footer { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.work-footer > span { font: 9px var(--mono); color: #91a9b4; letter-spacing: .05em; }
.work-order button, #service-actions button { background: rgba(79,242,255,.08); color: var(--accent); border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; cursor: pointer; font-size: 12px; }
.work-order button:hover, #service-actions button:hover:not(:disabled) { background: rgba(79,242,255,.15); border-color: var(--accent); }
.work-order button:disabled, #service-actions button:disabled { opacity: .42; cursor: default; }
#service-description { color: #afc4cf; line-height: 1.7; max-width: 680px; }
#service-readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
#service-readings > div { background: #030e14; padding: 20px 16px; border: 1px solid rgba(154,199,216,.16); }
#service-readings span { display: block; font: 10px var(--mono); color: #829eac; letter-spacing: .1em; }
#service-readings strong { display: block; font: 26px var(--mono); color: var(--accent); margin-top: 12px; overflow-wrap: anywhere; }
#service-readings small { font-size: 12px; margin-left: 6px; color: #9fbbc7; }
#service-procedure { padding-left: 24px; color: #bccbd2; font-size: 14px; line-height: 2; }
#service-procedure:empty { display: none; }
#service-procedure .checked { color: var(--ok); text-decoration: line-through; }
.service-slider { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: center; margin: 20px 0; font-size: 13px; color: #b9cbd4; }
.service-slider input { width: 100%; accent-color: var(--accent); cursor: pointer; min-height: 28px; }
#service-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
#service-actions button { min-height: 44px; padding: 12px 18px; }
#service-feedback { min-height: 44px; font-size: 13px; color: var(--muted); line-height: 1.6; margin: 20px 0; }
#service-feedback[data-kind=warn] { color: var(--warn); }
#service-feedback[data-kind=ok] { color: var(--ok); }
.service-progress-track { height: 3px; background: #18313c; overflow: hidden; }
#service-progress { width: 0; height: 100%; background: var(--accent); transition: width .1s linear; }
#service-test-status { font: 10px var(--mono); letter-spacing: .12em; color: #7d9daa; margin-top: 10px; }
.certified #service-test-status, .certified #service-readings strong { color: var(--ok); }
.service-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 24px; }
.service-bottom > span { font: 10px var(--mono); color: #6f8c99; }
#service-close { background: transparent; border: 1px solid var(--line); color: var(--text); padding: 10px 20px; cursor: pointer; }
.touch-actions { display: none; position: absolute; right: 18px; bottom: 28px; gap: 10px; pointer-events: auto; }
.touch-actions button { background: rgba(4,19,27,.85); border: 1px solid var(--line); color: var(--text); border-radius: 50%; width: 52px; height: 52px; font: 12px var(--mono); touch-action: none; user-select: none; }
@media (pointer: coarse) { .touch-actions { display: flex; } .keys { display: none; } #view { touch-action: none; } }
@media (max-width: 700px) {
  .field-strip { top: auto; bottom: 12px; left: 14px; right: auto; gap: 8px; }
  #field-depth { display: none; }
  #tasks-open { padding: 9px; font-size: 10px; }
  #work-orders { grid-template-columns: 1fr; }
  #tasks .card, #service .card { padding: 24px 18px; }
  .service-header { display: block; }
  #task-count { display: block; margin-bottom: 18px; }
  #service-readings { gap: 6px; }
  #service-readings > div { padding: 14px 9px; }
  #service-readings strong { font-size: 20px; }
  #service-readings span { font-size: 9px; }
  .service-slider { grid-template-columns: 1fr; gap: 4px; }
  .service-bottom > span { display: none; }
  .touch-actions { bottom: 60px; }
}
