.work-provider-tabs, .work-line-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.work-provider-tabs button, .work-line-tabs button { flex: 1; padding: 13px 10px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); font-weight: 800; min-height: 48px; }
.work-provider-tabs button[aria-pressed="true"], .work-line-tabs button[aria-pressed="true"] { background: var(--brand); color: white; border-color: var(--brand); }
.work-provider-tabs button:disabled { color: #8492a2; background: #eef2f6; opacity: 1; }
.work-provider-tabs small { display: block; margin-top: 3px; font-size: .65rem; font-weight: 500; }
.work-setup, .work-session, .work-recent { max-width: 980px; margin: 0 auto 22px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 22px; min-width: 0; }
.work-setup { display: grid; gap: 22px; }
.work-line-tabs { margin: 0; }
.work-cycles { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.work-cycles legend { font-weight: 800; margin-bottom: 10px; }
.work-cycles label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 800; }
.work-cycles label:has(input:checked) { border-color: #225885; background: #eaf4fc; color: #173d63; }
.work-cycles input { min-height: 20px; width: 20px; height: 20px; accent-color: var(--brand); padding: 0; }
.work-cycles small { flex-basis: 100%; color: var(--muted); font-size: .78rem; }
.work-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.work-setup label > span, .work-location-select > span { font-weight: 800; font-size: .88rem; }
.work-meta label, .work-range, .work-location-select { display: grid; gap: 8px; min-width: 0; }
.work-setup input:not([type="checkbox"]), .work-setup select, .work-location-select select { width: 100%; min-width: 0; min-height: 52px; font-size: 16px; }
.work-start { min-height: 58px; font-size: 1rem; }
.work-order { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.work-order button { min-height: 46px; }
.work-order button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: white; }
.work-order > span { font-size: .78rem; color: var(--muted); }
.work-recent h2 { font-size: 1rem; margin: 0 0 12px; }
.work-recent-item { display: grid; gap: 7px; padding: 16px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: left; margin-top: 8px; overflow-wrap: anywhere; }
.work-recent-item strong { color: var(--ink); font-size: .85rem; }
.work-recent-item span { color: var(--muted); font-size: .8rem; }
.work-session-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.work-session-head strong { font-size: .95rem; }
.work-session-head p { font-size: .81rem; color: var(--muted); line-height: 1.6; margin: 6px 0; }
.work-session-head button { flex-shrink: 0; min-height: 42px; padding: 8px 12px; font-size: .8rem; }
.work-progress { display: flex; flex-wrap: wrap; gap: 7px 14px; justify-content: space-between; padding: 14px 0 18px; font-size: .8rem; color: #17695b; }
.work-current { margin-top: 18px; scroll-margin-top: 100px; }
.work-current-head { background: #153b62; color: white; padding: 22px; border-radius: 16px; margin-bottom: 16px; }
.work-current-head > span { color: #afdce7; font-size: .78rem; font-weight: 700; }
.work-current-head h2 { margin: 8px 0 12px; font-size: 1.35rem; overflow-wrap: anywhere; }
.work-current-head p { margin: 12px 0 0; font-size: .78rem; line-height: 1.7; color: #d8e7f6; }
.work-insulators { display: flex; flex-wrap: wrap; gap: 6px; }
.work-insulators span { display: grid; gap: 4px; background: #ffffff15; padding: 7px 10px; border-radius: 8px; font-size: .8rem; }
.work-insulators small { color: #c6dbec; font-size: .69rem; }
.work-task { border: 1px solid var(--line); border-radius: 15px; padding: 18px; margin-bottom: 14px; }
.work-task > header, .work-task > header > div { display: flex; align-items: center; gap: 9px; }
.work-task > header { justify-content: space-between; align-items: flex-start; }
.work-task h3 { font-size: .95rem; margin: 0; }
.work-cycle { flex-shrink: 0; border-radius: 6px; padding: 5px 8px; font-size: .7rem; font-weight: 800; background: #fff3d7; color: #8b5b10; }
.work-cycle.annual { background: #e9edff; color: #3f529b; }
.work-result { flex-shrink: 0; font-size: .75rem; color: #377467; background: #edf7f3; border-radius: 7px; padding: 5px 8px; }
.work-result.is-warning { color: #a12231; background: #ffedef; }
.work-criteria { margin: 12px 0 16px; color: #637488; font-size: .75rem; line-height: 1.65; }
.work-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.work-measurement { min-width: 0; display: grid; gap: 7px; }
.work-measurement > span { font-size: .78rem; font-weight: 700; }
.work-measurement-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; }
.work-measurement > .work-measurement-heading > .work-previous { color: var(--muted); font-size: .68rem; font-weight: 400; line-height: 1.4; text-align: right; margin-left: auto; max-width: 100%; overflow-wrap: anywhere; }
.work-measurement > span small { color: #58789b; font-size: .65rem; }
.work-measurement > div { position: relative; }
.work-measurement input { width: 100%; min-width: 0; min-height: 54px; padding: 12px 35px 12px 12px; font-size: 20px; font-weight: 700; }
.work-measurement b { position: absolute; right: 12px; top: 18px; font-size: .75rem; color: var(--muted); }
.work-measurement input[readonly] { background: #eef4f8; color: #4c6880; }
.work-measurement.is-warning input { border-color: #d04b57; background: #fff3f4; }
.work-wear { margin: 14px 0 0; font-size: .8rem; color: #3c617f; }
.work-cell-states { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: .7rem; }
.work-cell-states small:empty { display: none; }
.work-next { border-left: 4px solid #d9ac42; border-radius: 11px; padding: 16px 18px; background: #fff9ec; display: grid; gap: 7px; margin: 18px 0; }
.work-next > span { color: #976415; font-size: .72rem; font-weight: 800; }
.work-next strong { font-size: .93rem; }
.work-next p { margin: 0; font-size: .79rem; line-height: 1.6; color: #796740; }
.work-move { display: flex; gap: 10px; }
.work-move button { flex: 1; min-height: 54px; }
.work-bottom-actions { display: grid; gap: 18px; margin-top: 18px; }
.work-bottom-actions summary, .work-evidence summary, .work-mapping-warning summary { cursor: pointer; font-size: .84rem; font-weight: 700; min-height: 32px; }
.work-linked-books { display: grid; gap: 8px; margin-top: 12px; }
.work-linked-books button { text-align: left; font-size: .78rem; justify-content: flex-start; }
.work-locations-dialog { width: min(980px, calc(100vw - 32px)); max-width: none; max-height: 84vh; max-height: 84dvh; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 20px 80px #102b4c40; overflow: hidden; }
.work-locations-dialog::backdrop { background: #0c1c2f99; backdrop-filter: blur(2px); }
.work-locations-panel { display: flex; flex-direction: column; max-height: 83vh; max-height: 83dvh; }
.work-locations-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px; border-bottom: 1px solid var(--line); }
.work-locations-head > div { min-width: 0; }
.work-locations-head h2 { font-size: 1.2rem; margin: 0 0 8px; }
.work-locations-head p { margin: 0 0 8px; color: var(--muted); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.work-locations-head span { color: #17695b; font-size: .8rem; font-weight: 700; }
.work-locations-head button { flex-shrink: 0; min-height: 44px; padding: 8px 14px; }
.work-locations-list { list-style: none; margin: 0; padding: 14px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 9px; }
.work-location-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fc; }
.work-location-row.is-complete { border-color: #49a77a55; background: linear-gradient(177deg, #eaf8ef55 3%, #53c98230 7%, #53c98230 92%, #eaf8ef55 96%); }
.work-location-row > button { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 72px; padding: 14px; border: 0; border-radius: 11px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.work-location-row > button[aria-current="location"] { box-shadow: inset 3px 0 #214d79; }
.work-location-row > button:focus-visible { outline: 3px solid #3577b9; outline-offset: -3px; }
.work-location-number { flex: 0 0 26px; color: var(--muted); font-size: .8rem; text-align: center; }
.work-location-text { min-width: 0; display: grid; gap: 5px; overflow-wrap: anywhere; }
.work-location-text strong { font-size: .9rem; }
.work-location-text small { color: var(--muted); font-size: .72rem; }
.work-location-row.is-complete small { color: #267447; }
.work-location-row > input[type="checkbox"] { appearance: none; width: 22px; height: 22px; min-height: 22px; margin: 0; padding: 0; border: 2px solid #bdcbd5; border-radius: 5px; background: #fff; opacity: 1; justify-self: center; }
.work-location-row > input[type="checkbox"]:checked { border-color: #27864e; background: #27864e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-9' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.work-evidence { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.work-evidence p { font-size: .76rem; line-height: 1.7; }
.work-mapping-warning { margin: 12px 0; padding: 12px; background: #fff5df; border-radius: 10px; color: #825c14; font-size: .77rem; line-height: 1.6; }
@media (max-width: 580px) {
  .work-locations-dialog { width: calc(100vw - 24px); border-radius: 17px; }
  .work-locations-head { padding: 18px 14px; gap: 10px; }
  .work-locations-list { padding: 10px; }
  .work-location-row > button { padding: 12px 9px; gap: 7px; }
  .work-setup, .work-session, .work-recent { padding: 16px; border-radius: 17px; }
  .work-provider-tabs { gap: 5px; }
  .work-provider-tabs button { font-size: .8rem; padding-inline: 4px; }
  .work-task { padding: 14px 12px; }
  .work-task h3 { font-size: .86rem; }
  .work-task > header > div { gap: 6px; }
  .work-current-head { padding: 18px 14px; }
  .work-current-head h2 { font-size: 1.12rem; }
  .work-session-head { flex-wrap: wrap; }
  .work-session-head > div { flex: 1 1 190px; }
  .work-meta { gap: 10px; }
  .work-criteria { font-size: .72rem; }
}
