/* Fieldbase 2.0. Screen styling only: label and document print dimensions stay intact. */
@media screen {
  :root {
    --ink: #213b30;
    --muted: #667565;
    --green: #245541;
    --lime: #dce9cf;
    --bg: #f5f7f0;
    --line: #dfe6d8;
    --shadow: 0 12px 40px #1c3b2b0b;
  }
  html,
  body {
    background: #f5f7f0;
    color: var(--ink);
  }
  .fieldbase-v2 {
    min-height: 100dvh;
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .fieldbase-v2 .sidebar {
    width: 232px;
    background: #fcfdf9;
    border-right: 1px solid var(--line);
    padding: 26px 19px;
    z-index: 61;
  }
  .fieldbase-v2 .main {
    min-width: 0;
    background: var(--bg);
  }
  .fieldbase-v2 .topbar {
    height: 62px;
    min-height: 62px;
    position: sticky;
    top: 0;
    z-index: 35;
    padding: 0 30px;
    background: #fcfdf9ed;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .fieldbase-v2 .content {
    padding: 26px 30px 36px;
    max-width: 1600px;
    margin: 0 auto;
  }
  .fieldbase-v2 .heading {
    margin-bottom: 25px;
    gap: 20px;
    align-items: center;
  }
  .fieldbase-v2 h1 {
    font:
      800 clamp(28px, 3vw, 39px)/1.12 Outfit,
      Manrope,
      sans-serif;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 9px 0 8px;
  }
  .fieldbase-v2 h2 {
    font-family: Outfit, Manrope, sans-serif;
    font-weight: 800;
    letter-spacing: -0.015em;
  }
  .fieldbase-v2 h3 {
    letter-spacing: -0.01em;
  }
  .fieldbase-v2 .eyebrow {
    font-size: 10px;
    color: #66815b;
    letter-spacing: 0.13em;
    line-height: 1.5;
  }
  .fieldbase-v2 .sub {
    color: #657463;
    font-size: 13px;
    line-height: 1.65;
    max-width: 820px;
  }
  .fieldbase-v2 .hint {
    color: #667565;
    line-height: 1.7;
  }
  .fieldbase-v2 .panel {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 3px 16px #21362d03;
  }
  .fieldbase-v2 .panel-header {
    padding: 20px 21px;
    border-bottom-color: #e8eddf;
    gap: 14px;
  }
  .fieldbase-v2 .panel-header h2 {
    font-size: 20px;
    color: var(--ink);
  }
  .fieldbase-v2 .panel-header .sub {
    margin: 5px 0 0;
    font-size: 12px;
  }
  .fieldbase-v2 .btn,
  dialog .btn {
    border-radius: 10px;
    border-color: #d6e0ce;
    min-height: 40px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 12px;
    box-shadow: none;
    line-height: 1.3;
  }
  .fieldbase-v2 .btn.primary,
  dialog .btn.primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
  }
  .fieldbase-v2 .btn.primary:hover,
  dialog .btn.primary:hover {
    background: #183e2e;
    border-color: #183e2e;
  }
  .fieldbase-v2 .btn.text {
    background: transparent;
    border-color: transparent;
    color: var(--green);
  }
  .fieldbase-v2 .btn.small {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 11px;
  }
  .fieldbase-v2 .btn:disabled,
  dialog .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .fieldbase-v2
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
      [type="color"]
    ),
  .fieldbase-v2 select,
  .fieldbase-v2 textarea,
  dialog
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
      [type="color"]
    ),
  dialog select,
  dialog textarea {
    border-radius: 9px;
    border-color: #d5dfcb;
    color: #233d30;
    min-height: 42px;
    background-color: #fff;
    box-shadow: none;
  }
  .fieldbase-v2 input:focus-visible,
  .fieldbase-v2 select:focus-visible,
  .fieldbase-v2 textarea:focus-visible,
  dialog input:focus-visible,
  dialog select:focus-visible,
  dialog textarea:focus-visible {
    outline: 2px solid #598d61;
    outline-offset: 2px;
  }
  .fieldbase-v2 .badge {
    font-size: 10px;
    padding: 5px 8px;
    border-radius: 7px;
    background: #eaf2e1;
    color: #3b603b;
    white-space: normal;
    line-height: 1.4;
  }
  .fieldbase-v2 .badge.neutral {
    background: #edf0e9;
    color: #626f5d;
  }
  .fieldbase-v2 .badge.warn {
    background: #fcf0dd;
    color: #9a5b1c;
  }
  .fieldbase-v2 .stats {
    gap: 14px;
  }
  .fieldbase-v2 .stat {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    padding: 20px;
  }
  .fieldbase-v2 .stat-top {
    font-size: 11px;
    color: #67785e;
  }
  .fieldbase-v2 .stat-value {
    font:
      800 32px/1.2 Outfit,
      Manrope,
      sans-serif;
    margin: 12px 0 5px;
    color: var(--green);
  }
  .fieldbase-v2 .stat-note {
    font-size: 11px;
    color: #6d7966;
    line-height: 1.55;
  }
  .fieldbase-v2 .stat-icon {
    background: #edf3e6;
    color: #648057;
    border-radius: 8px;
  }
  .fieldbase-v2 table {
    font-size: 13px;
  }
  .fieldbase-v2 th {
    font-size: 10px;
    color: #718066;
    background: #f5f8f0;
    letter-spacing: 0.035em;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .fieldbase-v2 td {
    border-bottom-color: #e9eee1;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .fieldbase-v2 tbody tr:hover {
    background-color: #fafcf7;
  }
  .fieldbase-v2 .item-meta {
    color: #6a7864;
    line-height: 1.65;
  }
  .fieldbase-v2 .table-wrap {
    border-radius: 0 0 14px 14px;
  }
  .fieldbase-v2 .notice {
    border-radius: 11px;
    line-height: 1.7;
    background: #edf3e4;
    border-color: #d5e2c9;
    color: #3c5b34;
  }
  .fieldbase-v2 .notice.warn,
  .fieldbase-v2 .device-banner {
    background: #fff3dc;
    border-color: #eadbb9;
    color: #75501c;
  }
  .fieldbase-v2 .toolbar {
    border-radius: 12px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .fieldbase-v2 .toolbar input[type="search"] {
    flex: 1;
    min-width: 150px;
  }
  .fieldbase-v2 .segmented {
    border-radius: 9px;
    border-color: var(--line);
    background: #fff;
  }
  .fieldbase-v2 .segmented button.active {
    background: var(--green);
    color: white;
  }
  .fieldbase-v2 .segmented button {
    min-height: 35px;
    color: #566d4b;
  }
  .fieldbase-v2 .configuration-tabs .btn {
    background: #fff;
    border-color: var(--line);
    font-size: 11px;
  }
  .fieldbase-v2 .configuration-tabs .btn.primary {
    background: var(--green);
    color: white;
  }
  .fieldbase-v2 .configuration-body,
  .fieldbase-v2 .profile-contact,
  .fieldbase-v2 .property-tile {
    padding: 22px;
  }
  .fieldbase-v2 .property-tile:hover,
  .fieldbase-v2 .home-stats > a:hover {
    border-color: #789b65;
    box-shadow: 0 5px 20px #21362d09;
  }
  .fieldbase-v2 .home-job {
    padding: 18px 20px;
    border-bottom-color: #e6ecdf;
    border-left: 3px solid #8da971;
  }
  .fieldbase-v2 .home-job:hover {
    background: #f4f8ed;
  }
  .fieldbase-v2 .home-job-info strong {
    font-size: 16px;
    color: #234332;
  }
  .fieldbase-v2 .home-job-icon {
    background: #edf3e4;
    color: var(--green);
    border-radius: 10px;
  }
  .fieldbase-v2 .home-job-info small {
    font-size: 11px;
    line-height: 1.6;
    color: #63705c;
  }
  .fieldbase-v2[data-page="home"] .heading {
    background: var(--green);
    border: 1px solid #245541;
    border-radius: 18px;
    padding: 27px 28px;
    align-items: center;
  }
  .fieldbase-v2[data-page="home"] .heading h1 {
    color: #fff;
  }
  .fieldbase-v2[data-page="home"] .heading .eyebrow {
    color: #c7dcb8;
  }
  .fieldbase-v2[data-page="home"] .heading .sub {
    color: #dae7d0;
  }
  .fieldbase-v2[data-page="home"] .heading .btn {
    color: #fff;
    background: #ffffff0d;
    border-color: #ffffff45;
  }
  .fieldbase-v2[data-page="home"] .heading .btn.primary {
    color: var(--green);
    background: #edf5e2;
    border-color: #edf5e2;
  }
  .fieldbase-v2 .home-current {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    border-radius: 16px;
  }
  .fieldbase-v2 .home-current h2,
  .fieldbase-v2 .home-current a,
  .fieldbase-v2 .home-current .eyebrow,
  .fieldbase-v2 .home-current p {
    color: #fff;
  }
  .fieldbase-v2 .home-current .btn {
    color: #fff;
    border-color: #ffffff50;
    background: #ffffff14;
  }
  .fieldbase-v2 .home-current .home-timer-readout {
    color: #fff;
    background: #ffffff12;
  }
  .fieldbase-v2 .home-current .timer-status {
    color: #d1e6bf;
  }
  .fieldbase-v2 .running-timer {
    background: #eaf2e1;
    border-color: #d3e2c6;
    border-radius: 14px;
  }
  .fieldbase-v2 .timer-face {
    background: var(--green);
    color: #fff;
    border-radius: 12px;
  }
  .fieldbase-v2 .timer-face small,
  .fieldbase-v2 .timer-face .timer-status {
    color: #d4e6c6;
  }
  .fieldbase-v2 .brand {
    gap: 8px;
  }
  .fieldbase-v2 .brand-icon {
    width: 36px;
    height: 36px;
  }
  .fieldbase-v2 .brand-wordmark img {
    width: 112px;
    height: 20px;
  }
  .fieldbase-v2 .company {
    font-size: 8px;
    letter-spacing: 1.4px;
    margin: 13px 0 24px;
    color: #75876e;
  }
  .fieldbase-v2 .nav > a,
  .fieldbase-v2 .nav-group-pages > a {
    min-height: 43px;
    border-radius: 10px;
    padding: 11px 12px;
    color: #5d7152;
    font-size: 12px;
  }
  .fieldbase-v2 .nav a.active {
    background: var(--green);
    color: #fff;
  }
  .fieldbase-v2 .nav a.active svg {
    color: #d9e9cc;
  }
  .fieldbase-v2 .nav a:hover:not(.active) {
    background: #edf3e5;
  }
  .fieldbase-v2 .nav-group > summary {
    border-radius: 10px;
    color: #3b5734;
    padding: 11px 10px;
    margin-top: 5px;
  }
  .fieldbase-v2 .nav-group > summary:hover {
    background: #edf3e5;
  }
  .fieldbase-v2 .nav-category-icon {
    background: #eaf1e0;
    border-color: transparent;
    color: #537344;
  }
  .fieldbase-v2 .nav-group-pages {
    padding-left: 6px;
  }
  .fieldbase-v2 .sidebar-bottom .profile {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    color: #405a36;
    font-size: 12px;
    line-height: 1.6;
  }
  .fieldbase-v2 .profile small {
    font-size: 9px;
    color: #738068;
    display: block;
  }
  .fieldbase-v2 .crumb {
    font-size: 11px;
    color: #748269;
  }
  .fieldbase-v2 .crumb span {
    margin: 0 10px;
    color: #acb59f;
  }
  .fieldbase-v2 .crumb b {
    font-weight: 600;
    color: #37502e;
  }
  .fieldbase-v2 .top-actions {
    gap: 11px;
  }
  .fieldbase-v2 .operating-as {
    max-width: 220px;
    padding: 3px 7px 3px 10px;
    gap: 7px;
    border-left-width: 3px;
    background: #fff;
    min-height: 38px;
    border-radius: 10px;
  }
  .fieldbase-v2 .operating-as select {
    border: 0;
    min-height: 30px;
    padding: 4px 20px 4px 0;
    font-size: 12px !important;
    font-weight: 650;
    width: auto;
    max-width: 160px;
    background-color: transparent;
  }
  .fieldbase-v2 .operating-as .technician-dot {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
  }
  .fieldbase-v2 .sync-status {
    font-size: 10px;
  }
  .fieldbase-v2 .topbar-scan {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
  }
  .fieldbase-v2 .admin-header-badge {
    font-size: 9px;
  }
  .mobile-brand,
  .mobile-nav-frame,
  .mobile-page-context {
    display: none;
  }
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
  }
  .fieldbase-v2 .bottom-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: #738068;
    margin-top: 25px;
    line-height: 1.6;
  }
  .fieldbase-v2 .bottom-note span {
    margin-left: auto;
  }
  .live-timer-dock {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--green);
    color: #fff;
    border: 1px solid #356c50;
    border-radius: 14px;
    box-shadow: 0 6px 20px #1d3e2b19;
    min-width: 0;
    padding: 4px 6px;
  }
  .live-timer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    padding: 9px 8px;
    color: #fff;
    text-decoration: none;
  }
  .live-timer-link:hover {
    color: #fff;
    background: #ffffff0a;
    border-radius: 9px;
  }
  .live-timer-pulse {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: #c4e4a4;
    box-shadow: 0 0 0 4px #c4e4a41c;
    animation: v2-timer-pulse 1.5s ease-in-out infinite;
  }
  .is-paused .live-timer-pulse {
    animation: none;
    background: #d0d6c9;
    box-shadow: none;
  }
  .live-timer-info {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1;
  }
  .live-timer-info strong {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
  }
  .live-timer-info small {
    font-size: 10px;
    color: #d4e1ca;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .live-timer-link > b {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .dock-timer-control {
    display: grid;
    place-items: center;
    flex: none;
    width: 37px;
    height: 38px;
    min-height: 38px;
    border: 1px solid #ffffff35 !important;
    border-radius: 10px !important;
    padding: 5px !important;
    background: #ffffff10 !important;
    color: #fff !important;
    cursor: pointer;
  }
  .sidebar-bottom .live-timer-dock {
    margin-top: 16px;
  }
  .sidebar-bottom .live-timer-link {
    flex-wrap: wrap;
    gap: 7px;
  }
  .sidebar-bottom .live-timer-info {
    flex-basis: 100px;
  }
  .sidebar-bottom .live-timer-link > b {
    margin-left: 15px;
    font-size: 19px;
  }
  .sidebar-bottom .dock-timer-control {
    width: 30px;
  }
  .section-shade {
    position: fixed;
    inset: 0;
    background: #163b2b55;
    z-index: 110;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .section-sheet {
    background: #fcfdf9f5;
    border: 1px solid #fff9;
    border-bottom: 0;
    border-radius: 25px 25px 0 0;
    width: min(100%, 560px);
    max-height: 84dvh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 70px #153d2526;
    padding-bottom: env(safe-area-inset-bottom);
    animation: v2-sheet-enter 0.2s ease-out;
  }
  .section-sheet-grip {
    width: 44px;
    height: 5px;
    background: #c4d2b9;
    border-radius: 4px;
    margin: 11px auto 1px;
    flex-shrink: 0;
    touch-action: none;
    position: relative;
  }
  .section-sheet-grip:after {
    content: "";
    position: absolute;
    inset: -10px -25px;
  }
  .section-sheet-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 23px 19px;
  }
  .section-sheet-heading small {
    font-size: 9px;
    letter-spacing: 0.13em;
    color: #718269;
  }
  .section-sheet-heading h2 {
    font:
      800 28px/1.15 Outfit,
      sans-serif;
    color: var(--green);
    margin: 5px 0 0;
  }
  .section-sheet-heading .btn {
    background: #edf4e4;
    color: var(--green);
    border: 1px solid #d6e2cb;
    border-radius: 10px;
    min-height: 40px;
  }
  .section-sheet-pages {
    padding: 0 14px 24px;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .section-page {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    color: #344f2f;
    font:
      600 14px/1.4 "DM Sans",
      sans-serif;
    border-radius: 12px;
    min-height: 57px;
    padding: 10px 12px;
    cursor: pointer;
  }
  .section-page > span:nth-child(2) {
    flex: 1;
  }
  .section-page > svg {
    transform: rotate(-90deg);
    color: #91a284;
  }
  .section-page:hover,
  .section-page[aria-current="page"] {
    background: #e6f0dc;
  }
  .section-page-icon {
    display: grid;
    place-items: center;
    background: #edf3e7;
    border: 1px solid #e1e9d8;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #527442;
  }
  .section-page[aria-current="page"] .section-page-icon {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
  }
  .section-sheet-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 12px 3px;
    color: #718168;
  }
  .section-release {
    font-size: 10px;
    color: #708267;
    line-height: 1.7;
    margin: 18px 12px 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  body.section-sheet-open {
    overflow: hidden;
  }
  body.section-sheet-open .statusbar-surface {
    background: #fcfdf9;
  }
  dialog {
    border: 1px solid #dbe4d0;
    border-radius: 20px;
    box-shadow: 0 25px 90px #173a2b30;
    background: #fff;
    color: var(--ink);
  }
  dialog::backdrop {
    background: #17362966;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .dialog-head {
    padding: 23px 25px 18px;
    border-bottom-color: #e4ebda;
  }
  .dialog-head h2 {
    font:
      800 26px/1.15 Outfit,
      Manrope,
      sans-serif;
    color: var(--ink);
    letter-spacing: -0.02em;
  }
  .dialog-body {
    padding: 23px 25px;
  }
  .dialog-footer {
    border-top-color: #e4ebda;
    background: #fbfdf8;
    padding: 16px 25px;
    border-radius: 0 0 20px 20px;
  }
  .dialog-body .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #4a613e;
  }
  .dialog-body .hint {
    color: #718267;
    font-size: 12px;
    line-height: 1.6;
  }
  .dialog-body .form-grid {
    gap: 17px;
  }
  @keyframes v2-timer-pulse {
    50% {
      opacity: 0.45;
      box-shadow: 0 0 0 6px #c4e4a408;
    }
  }
  @keyframes v2-sheet-enter {
    from {
      transform: translateY(25px);
      opacity: 0.6;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
  @media (min-width: 1500px) {
    .fieldbase-v2 .content {
      padding: 35px 45px;
    }
    .fieldbase-v2 .heading {
      margin-bottom: 30px;
    }
  }
  @media (max-width: 1100px) and (min-width: 901px) {
    .fieldbase-v2 {
      grid-template-columns: 210px minmax(0, 1fr);
    }
    .fieldbase-v2 .sidebar {
      width: 210px;
      padding-left: 13px;
      padding-right: 13px;
    }
    .fieldbase-v2 .topbar {
      padding: 0 20px;
    }
    .fieldbase-v2 .content {
      padding: 24px 22px;
    }
    .fieldbase-v2 .sync-text {
      display: none;
    }
  }
  @media (max-width: 900px) {
    .fieldbase-v2 {
      display: block;
    }
    .fieldbase-v2 .sidebar,
    .fieldbase-v2 .mobile-menu,
    .fieldbase-v2 .menu-backdrop {
      display: none !important;
    }
    .fieldbase-v2 .topbar {
      height: calc(53px + env(safe-area-inset-top));
      min-height: calc(53px + env(safe-area-inset-top));
      padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0
        max(14px, env(safe-area-inset-left));
      gap: 10px;
      background: #fcfdf9ed;
    }
    .fieldbase-v2 .mobile-brand {
      display: flex;
      align-items: center;
      gap: 7px;
      flex: none;
    }
    .mobile-brand img:first-child {
      width: 27px;
      height: 27px;
      object-fit: contain;
    }
    .mobile-brand img:last-child {
      width: 96px;
      height: auto;
    }
    .fieldbase-v2 .topbar .crumb {
      display: none;
    }
    .fieldbase-v2 .top-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      min-width: 0;
    }
    .fieldbase-v2 .operating-as {
      max-width: 185px;
      min-height: 34px;
      padding: 2px 3px 2px 7px;
      gap: 5px;
    }
    .fieldbase-v2 .operating-as select {
      font-size: 12px !important;
      max-width: 144px;
      min-height: 29px;
      padding-right: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .fieldbase-v2 .topbar-scan {
      min-width: 33px;
      width: 33px;
      min-height: 34px;
      padding: 6px;
      justify-content: center;
      border-color: transparent;
      background: transparent;
    }
    .fieldbase-v2 .scan-button-label,
    .fieldbase-v2 .sync-text,
    .fieldbase-v2 .admin-header-badge {
      display: none;
    }
    .fieldbase-v2 .sync-status {
      width: 9px;
      min-width: 9px;
      padding: 0;
      gap: 0;
    }
    .fieldbase-v2 .sync-status .dot {
      width: 6px;
      height: 6px;
    }
    .fieldbase-v2 .content {
      padding: 17px max(18px, env(safe-area-inset-right))
        calc(104px + env(safe-area-inset-bottom))
        max(18px, env(safe-area-inset-left));
      max-width: 100%;
      min-width: 0;
    }
    .fieldbase-v2[data-has-timer="true"]:not([data-page="time"]) .content {
      padding-bottom: calc(165px + env(safe-area-inset-bottom));
    }
    .fieldbase-v2 .heading {
      margin: 0 0 21px;
      gap: 15px;
      align-items: flex-start;
    }
    .fieldbase-v2 h1 {
      font-size: 31px;
    }
    .fieldbase-v2 .heading .actions {
      flex-wrap: wrap;
      gap: 7px;
    }
    .fieldbase-v2 .mobile-page-context {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #74806d;
      margin: -5px 0 9px;
      font-size: 10px;
      min-width: 0;
    }
    .fieldbase-v2 .mobile-page-context .btn {
      display: flex;
      align-items: center;
      gap: 4px;
      min-height: 37px;
      font-size: 10px;
      padding: 7px 0;
      border: 0;
    }
    .mobile-page-context > span {
      border-left: 1px solid #dce4d3;
      padding-left: 8px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mobile-nav-frame {
      display: flex;
      flex-direction: column;
      gap: 7px;
      position: fixed;
      left: max(10px, env(safe-area-inset-left));
      right: max(10px, env(safe-area-inset-right));
      bottom: max(8px, env(safe-area-inset-bottom));
      z-index: 65;
      max-width: 650px;
      margin: 0 auto;
    }
    .mobile-tabs {
      position: relative;
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      align-items: center;
      border: 1px solid #fff;
      background: #fbfdf9eb;
      border-radius: 23px;
      padding: 6px;
      box-shadow:
        0 5px 30px #163b2b24,
        0 0 0 1px #dce4d36b;
      backdrop-filter: blur(22px) saturate(160%);
      -webkit-backdrop-filter: blur(22px) saturate(160%);
      isolation: isolate;
      touch-action: pan-y;
      user-select: none;
      -webkit-user-select: none;
    }
    .mobile-tab {
      background: transparent;
      border: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      min-width: 0;
      min-height: 49px;
      border-radius: 17px;
      color: #72806a;
      font:
        500 10px/1.25 "DM Sans",
        sans-serif;
      cursor: pointer;
      position: relative;
      padding: 5px 0;
      white-space: nowrap;
      z-index: 1;
    }
    .mobile-tab-icon {
      display: grid;
      place-items: center;
      transition: transform 0.16s;
    }
    .mobile-tab[aria-current="page"] {
      color: var(--green);
      font-weight: 700;
    }
    .mobile-tab[aria-current="page"] .mobile-tab-icon {
      transform: translateY(-1px);
    }
    .mobile-tab-indicator {
      position: absolute;
      left: 6px;
      top: 6px;
      bottom: 6px;
      width: calc((100% - 12px) / 5);
      background: linear-gradient(145deg, #e6efdce8, #dce9cfb8);
      border: 1px solid #ffffffac;
      border-radius: 17px;
      box-shadow: 0 2px 7px #5175360b;
      transform: translateX(calc(var(--tab-position, 0) * 100%));
      transition:
        transform 0.23s cubic-bezier(0.2, 0.9, 0.3, 1),
        border-radius 0.16s;
      pointer-events: none;
    }
    .mobile-tabs.is-scrubbing .mobile-tab-indicator {
      transition: none;
      border-radius: 20px;
      background: #d6e8c2cb;
      box-shadow: 0 2px 14px #41703722;
    }
    .mobile-nav-frame .live-timer-dock {
      min-height: 54px;
      margin: 0 2px;
      border-radius: 15px;
      background: #245541f5;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }
    body.keyboard-open .mobile-nav-frame {
      display: none;
    }
    body.keyboard-open .fieldbase-v2 .content {
      padding-bottom: 22px;
    }
    .fieldbase-v2 .stats {
      gap: 10px;
    }
    .fieldbase-v2 .stat {
      padding: 16px;
    }
    .fieldbase-v2 .stat-value {
      font-size: 29px;
    }
    .fieldbase-v2 .stat-top {
      font-size: 10px;
    }
    .fieldbase-v2 .panel-header {
      padding: 17px 18px;
    }
    .fieldbase-v2 .panel-header h2 {
      font-size: 19px;
    }
    .fieldbase-v2 .panel-header .btn {
      font-size: 10px;
      padding: 8px 10px;
      flex-shrink: 0;
    }
    .fieldbase-v2[data-page="home"] .heading {
      padding: 21px;
      border-radius: 16px;
      display: block;
    }
    .fieldbase-v2[data-page="home"] .heading .actions {
      margin-top: 17px;
      justify-content: flex-start;
    }
    .fieldbase-v2[data-page="home"] .heading h1 {
      font-size: 32px;
    }
    .fieldbase-v2[data-page="home"] .heading .sub {
      font-size: 12px;
    }
    .fieldbase-v2 .home-job {
      padding: 16px;
    }
    .fieldbase-v2 .home-job-info strong {
      font-size: 15px;
    }
    .fieldbase-v2 .home-columns {
      gap: 18px;
    }
    .fieldbase-v2 .home-dashboard {
      gap: 18px;
    }
    .fieldbase-v2 .btn {
      min-height: 42px;
    }
    .fieldbase-v2 .configuration-tabs {
      gap: 7px;
      flex-wrap: nowrap;
      overflow-x: auto;
      padding: 3px 2px 9px;
      margin-left: -2px;
      margin-right: -2px;
      scrollbar-width: thin;
    }
    .fieldbase-v2 .configuration-tabs .btn {
      flex-shrink: 0;
      min-height: 37px;
      padding: 9px 12px;
    }
    .fieldbase-v2 .property-columns > .panel,
    .fieldbase-v2 .profile-contact,
    .fieldbase-v2 .property-tile,
    .fieldbase-v2 .configuration-body {
      padding: 18px;
    }
    .fieldbase-v2 .dialog-body {
      padding: 18px;
    }
    .section-sheet-heading .btn {
      min-height: 44px;
    }
  }
  @media (max-width: 400px) {
    .mobile-brand img:last-child {
      width: 88px;
    }
    .fieldbase-v2 .topbar {
      gap: 5px;
      padding-left: 11px;
      padding-right: 11px;
    }
    .fieldbase-v2 .top-actions {
      gap: 5px;
    }
    .fieldbase-v2 .operating-as {
      max-width: 143px;
    }
    .fieldbase-v2 .operating-as select {
      max-width: 110px;
      font-size: 11px !important;
    }
    .fieldbase-v2 .sync-status {
      display: none;
    }
    .fieldbase-v2 h1 {
      font-size: 29px;
    }
    .live-timer-link {
      gap: 7px;
      padding-left: 5px;
    }
    .live-timer-link > b {
      font-size: 14px;
    }
    .live-timer-info small {
      font-size: 9px;
    }
  }
  @media (max-width: 340px) {
    .mobile-brand img:last-child {
      display: none;
    }
    .fieldbase-v2 .operating-as {
      max-width: 190px;
    }
    .fieldbase-v2 .operating-as select {
      max-width: 145px;
    }
    .fieldbase-v2 .content {
      padding-left: 13px;
      padding-right: 13px;
    }
    .mobile-tab {
      font-size: 9px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .mobile-tab-indicator,
    .mobile-tab-icon,
    .section-sheet,
    .live-timer-pulse {
      transition: none !important;
      animation: none !important;
    }
  }
}
@media print {
  .mobile-nav-frame,
  .mobile-page-context,
  #section-sheet-root,
  .live-timer-dock,
  .mobile-brand {
    display: none !important;
  }
}

@media screen and (pointer: coarse) {
  .fieldbase-v2 .operating-as select {
    font-size: 16px !important;
  }
}
@media screen and (min-width: 401px) and (max-width: 900px) {
  .fieldbase-v2 .sync-status {
    width: 26px;
    min-width: 26px;
    min-height: 34px;
    display: grid;
    place-items: center;
  }
}

@media screen {
  .fieldbase-v2 .heading > div:first-child {
    min-width: 0;
  }
  .fieldbase-v2 .heading h1 {
    overflow-wrap: anywhere;
  }
}
/* 2.1: bar gestures own both axes once begun on the bar. */
@media screen {
  .mobile-tabs {
    touch-action: none;
  }
  .mobile-tabs.is-scrubbing .mobile-tab-indicator {
    transform: translate(
        calc(var(--tab-position, 0) * 100%),
        calc(var(--tab-lift, 0) * -1px)
      )
      scale(1.04);
    will-change: transform;
  }
  .mobile-tabs.is-scrubbing .mobile-tab.is-preview {
    color: var(--green);
    font-weight: 700;
  }
  .mobile-tabs.is-scrubbing .mobile-tab[aria-current="page"]:not(.is-preview) {
    color: #73816b;
    font-weight: 500;
  }
  .mobile-tabs.is-peeking .mobile-tab-indicator {
    background: #d0e5b9ec;
    box-shadow: 0 5px 18px #37602930;
  }
  .calendar-panel {
    display: flex;
    flex-direction: column;
    --calendar-hour-height: 48px;
  }
  .calendar-toolbar-compact {
    padding: 10px 14px !important;
    gap: 9px !important;
    flex-shrink: 0;
  }
  .calendar-date-nav,
  .calendar-view-tools {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 0;
    flex-wrap: wrap;
  }
  .calendar-date-nav > .btn {
    width: auto;
    min-width: 34px;
    padding: 7px 10px !important;
  }
  .calendar-date-nav input {
    width: 139px;
    min-height: 34px !important;
    padding: 6px 8px;
    font-size: 12px;
  }
  .calendar-period {
    font-size: 12px !important;
    white-space: nowrap;
    margin: 0 5px;
  }
  .calendar-view-tools {
    margin-left: auto;
  }
  .calendar-view-tools .btn {
    min-height: 34px !important;
    padding: 7px 11px !important;
  }
  .calendar-span-switch {
    width: auto;
  }
  .calendar-span-switch .btn {
    min-width: 44px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .calendar-span-switch .btn.active {
    background: var(--green);
    color: white;
  }
  .calendar-compact-controls {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .calendar-compact-controls .btn {
    min-height: 33px !important;
    padding: 7px 11px !important;
    font-size: 11px;
  }
  .calendar-filter-summary {
    font-size: 10px;
    color: #64765d;
    flex: 1;
    line-height: 1.5;
  }
  .calendar-filter-panel {
    background: #f6faf0;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    max-height: 36dvh;
    overflow: auto;
  }
  .calendar-filter-panel[hidden] {
    display: none !important;
  }
  .calendar-filter-panel .calendar-options {
    padding: 13px 15px;
    gap: 12px;
    align-items: center;
  }
  .calendar-filter-panel .calendar-options label {
    font-size: 11px;
  }
  .calendar-filter-panel .calendar-options .form-label {
    min-width: 150px;
    max-width: 200px;
    margin: 0;
  }
  .calendar-guide {
    padding: 0 15px 14px;
    font-size: 11px;
    color: #68775f;
    line-height: 1.7;
  }
  .calendar-guide summary {
    cursor: pointer;
    color: var(--green);
    padding: 4px 0;
  }
  .calendar-guide a {
    text-decoration: underline;
  }
  .calendar-guide p {
    max-width: 1000px;
  }
  .calendar-outside-hours {
    padding: 8px 14px;
    background: #fff5e1;
    color: #865a24;
    border: 0;
    border-bottom: 1px solid #ebdfc5;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    flex-shrink: 0;
  }
  .calendar-work-hidden {
    margin: 8px 14px !important;
    flex-shrink: 0;
  }
  .calendar-panel .calendar-scroll {
    height: clamp(460px, 70dvh, 900px);
    max-height: none;
    min-height: 360px;
  }
  .calendar-panel .calendar-times > div {
    height: var(--calendar-hour-height);
    font-size: 11px;
    color: #738067;
  }
  .calendar-panel .calendar-day {
    background:
      repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent calc(var(--calendar-hour-height) / 4 - 1px),
        #eef3e7 calc(var(--calendar-hour-height) / 4 - 1px),
        #eef3e7 calc(var(--calendar-hour-height) / 4)
      ),
      repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent calc(var(--calendar-hour-height) - 1px),
        #d4e0ca calc(var(--calendar-hour-height) - 1px),
        #d4e0ca var(--calendar-hour-height)
      );
  }
  .calendar-panel .calendar-day-heading {
    border: 0;
    border-left: 1px solid #e2e9da;
    border-radius: 0;
    background: #f7faf2;
    cursor: pointer;
    padding: 6px;
    min-height: 42px;
    font-family: inherit;
  }
  .calendar-panel .calendar-day-heading.today {
    background: #e6f0db;
  }
  .calendar-panel .calendar-day-heading:hover {
    background: #dcebcf;
  }
  .calendar-panel .calendar-jobs-day {
    max-height: 132px;
  }
  .calendar-panel[data-span="day"] .calendar-canvas {
    min-width: 0;
    width: 100%;
  }
  .calendar-panel[data-span="day"] .calendar-heading,
  .calendar-panel[data-span="day"] .calendar-grid,
  .calendar-panel[data-span="day"] .calendar-job-days {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .calendar-panel[data-span="day"] .calendar-jobs-day {
    flex-direction: row;
    overflow: auto;
    max-height: 110px;
    align-items: stretch;
  }
  .calendar-panel[data-span="day"] .calendar-job-card {
    width: 230px;
    max-width: 85%;
    flex: 0 0 auto;
    gap: 3px;
    padding: 7px 9px;
  }
  .calendar-panel[data-span="day"] .calendar-job-card b {
    display: flex;
    gap: 5px;
    justify-content: space-between;
  }
  .calendar-panel[data-span="day"] .calendar-job-card b > span {
    display: inline;
  }
  .calendar-panel[data-span="day"] .calendar-event {
    font-size: 12px;
    padding: 6px 9px;
    border-radius: 8px;
  }
  .calendar-panel[data-span="day"] .calendar-event b,
  .calendar-panel[data-span="day"] .calendar-event span {
    font-size: 12px;
  }
  .calendar-panel[data-span="day"] .calendar-event small {
    font-size: 10px;
  }
  body.calendar-expanded {
    overflow: hidden;
  }
  body.calendar-expanded .mobile-nav-frame,
  body.calendar-expanded .topbar {
    visibility: hidden;
    pointer-events: none;
  }
  .fieldbase-v2 .calendar-panel.is-expanded {
    position: fixed;
    inset: 0;
    z-index: 90;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    margin: 0;
    background: #fcfdf9;
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
      env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .calendar-panel.is-expanded .calendar-scroll {
    flex: 1;
    min-height: 0;
    height: 0;
    max-height: none;
    overscroll-behavior: contain;
  }
  .calendar-panel.is-expanded .calendar-toolbar {
    border-radius: 0;
  }
  .calendar-panel.is-expanded .calendar-jobs-day {
    max-height: 105px;
  }
  .calendar-panel.is-expanded .calendar-filter-panel {
    max-height: min(40dvh, 290px);
    overflow: auto;
    flex-shrink: 0;
  }
  .calendar-panel .calendar-selection {
    z-index: 6;
    background: #d5eabfe6;
    border: 2px solid var(--green);
    border-radius: 5px;
    color: #173c28;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    white-space: nowrap;
  }
  @media (max-width: 900px) {
    .calendar-toolbar-compact {
      padding: 9px 11px !important;
      gap: 8px !important;
    }
    .calendar-period {
      display: none;
    }
    .calendar-date-nav {
      gap: 5px;
    }
    .calendar-date-nav .btn {
      min-height: 34px !important;
      padding: 7px 9px !important;
    }
    .calendar-date-nav input {
      font-size: 12px !important;
      min-height: 34px !important;
    }
    .calendar-view-tools {
      gap: 7px;
    }
    .calendar-compact-controls {
      padding: 7px 11px;
      gap: 8px;
    }
    .calendar-filter-summary {
      font-size: 9px;
    }
    .calendar-panel .calendar-scroll {
      height: 65dvh;
      min-height: 360px;
    }
    .calendar-panel.is-expanded .calendar-scroll {
      height: 0;
      min-height: 0;
    }
    .calendar-panel.is-expanded .calendar-toolbar {
      padding: 8px 11px !important;
    }
    .calendar-panel.is-expanded .calendar-view-tools {
      flex: 1;
      justify-content: flex-end;
    }
    .calendar-panel.is-expanded .calendar-jobs-day {
      max-height: 95px;
    }
  }
  @media (max-width: 400px) {
    .calendar-toolbar-compact {
      gap: 6px !important;
    }
    .calendar-date-nav {
      flex: 1;
    }
    .calendar-view-tools {
      width: 100%;
      justify-content: space-between;
      margin: 0;
    }
    .calendar-filter-summary {
      font-size: 9px;
    }
    .calendar-filter-panel .calendar-options {
      gap: 10px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .mobile-tabs.is-scrubbing .mobile-tab-indicator {
      will-change: auto;
    }
  }
}

/* 2.1.1: booking actions live in the header; no lower booking strip. */
@media screen {
  .calendar-toolbar-compact .calendar-compact-controls {
    padding: 0;
    border: 0;
    gap: 7px;
  }
  .calendar-toolbar-compact .calendar-filter-summary {
    max-width: 220px;
  }
  .calendar-panel .calendar-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    min-width: 36px;
    min-height: 36px !important;
    height: 36px;
    padding: 0 !important;
    flex: 0 0 auto;
  }
  .calendar-select-action[aria-pressed="true"] {
    box-shadow: 0 0 0 3px #cce0b5;
  }
  .calendar-select-action[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    right: 3px;
    top: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e5f6c9;
  }
  @media (max-width: 900px) {
    .calendar-panel .calendar-icon-action {
      width: 42px;
      min-width: 42px;
      height: 42px;
      min-height: 42px !important;
    }
    .calendar-panel[data-span="day"] .calendar-toolbar-compact {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 5px 6px !important;
      padding: 7px 10px !important;
    }
    .calendar-panel[data-span="day"] .calendar-date-nav {
      grid-column: 1 / -1;
      flex-wrap: nowrap;
    }
    .calendar-panel[data-span="day"] .calendar-view-tools {
      width: auto;
      margin: 0;
      justify-content: flex-start;
      gap: 5px;
    }
    .calendar-panel[data-span="day"] .calendar-compact-controls {
      padding: 0;
      gap: 5px;
    }
    .calendar-panel[data-span="day"] .calendar-filter-summary {
      display: none;
    }
    .calendar-panel[data-span="day"] .calendar-span-switch .btn {
      padding: 7px 9px !important;
      min-width: 39px;
    }
  }
}

/* The tray tracks the captured finger; it becomes a modal only on release. */
@media screen {
  #section-sheet-root[data-tray-phase] .section-sheet {
    animation: none;
    transform: translate3d(0, var(--tray-offset, 0px), 0);
    transition: transform 0.22s cubic-bezier(0.2, 0.85, 0.25, 1);
    will-change: transform;
  }
  #section-sheet-root[data-tray-phase] .section-shade {
    background: rgb(22 59 43 / calc(0.333 * var(--tray-progress, 1)));
    backdrop-filter: blur(calc(3px * var(--tray-progress, 1)));
    -webkit-backdrop-filter: blur(calc(3px * var(--tray-progress, 1)));
    transition:
      background 0.22s ease,
      backdrop-filter 0.22s ease;
  }
  #section-sheet-root[data-tray-phase="pulling"] .section-sheet,
  #section-sheet-root[data-tray-phase="pulling"] .section-shade {
    transition: none;
  }
  #section-sheet-root[data-tray-phase="pulling"] .section-shade,
  #section-sheet-root[data-tray-phase="closing"] .section-shade {
    pointer-events: none;
  }
  @media (prefers-reduced-motion: reduce) {
    #section-sheet-root[data-tray-phase] .section-sheet,
    #section-sheet-root[data-tray-phase] .section-shade {
      transition: none;
    }
  }
}
