/* ============================================================
   SiteSight V1.99.6 — Field Ready Mobile
   ============================================================ */
:root{
  --ss-navy:#15384b;
  --ss-text:#173344;
  --ss-muted:#526876;
  --ss-action:#c94712;
  --ss-brand:#f28b18;
  --ss-success:#218457;
  --ss-warning:#946000;
  --ss-danger:#b62e2e;
  --ss-link:#216487;
  --ss-control-border:#758b98;
}

:focus-visible{outline:3px solid #1f75a7!important;outline-offset:3px!important}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.v1996-highlight{animation:v1996-highlight 2.2s ease;border-color:var(--ss-brand)!important;box-shadow:0 0 0 4px #f28b1838!important}
@keyframes v1996-highlight{0%,50%{background:#fff3dc}100%{background:inherit}}
.v1996-site-pill{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #cddde5;border-radius:11px;background:#eef5f8;color:var(--ss-navy);font-weight:850}
.v1996-single-site-select{opacity:1!important;color:var(--ss-navy)!important;background:#eef5f8!important}

/* Keep the blue desktop/tablet navigation independently scrollable. */
.sidebar{height:100dvh!important;max-height:100dvh!important;overflow:visible!important}
.sidebar>.brand,.sidebar>.profile,.sidebar>.sidebar-global-search,.sidebar>.company{flex:0 0 auto}
.sidebar>.nav{flex:1 1 auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:thin!important;scrollbar-color:#7fa0b2 transparent!important}
.sidebar>.nav::-webkit-scrollbar{display:block!important;width:6px!important}.sidebar>.nav::-webkit-scrollbar-thumb{border-radius:999px;background:#7fa0b2}

.v1996-landscape-hint{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:rgba(6,30,44,.72);backdrop-filter:blur(4px)}
.v1996-landscape-card{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:15px;width:min(430px,100%);padding:20px;border:1px solid #ffffff55;border-radius:18px;background:#fff;color:var(--ss-text);box-shadow:0 22px 65px #051d2c66}
.v1996-landscape-phone{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:linear-gradient(145deg,#15384b,#216487);color:#fff;font-size:34px;font-weight:950;box-shadow:inset 0 0 0 2px #ffffff25,0 8px 20px #15384b38}
.v1996-landscape-card h2{margin:3px 0 4px;color:var(--ss-navy)}.v1996-landscape-card p{margin:0 0 13px;color:var(--ss-muted)}.v1996-landscape-card .btn{min-width:128px}
.v1996-swipe-hint{display:none}

@media (max-width:720px), (orientation:landscape) and (max-height:600px) and (max-width:1024px){
  html,body{max-width:100%;overflow-x:hidden;background:#eef3f5;color:var(--ss-text)}
  body{font-size:16px;line-height:1.45}
  .sidebar{display:none!important}
  .main{width:100%!important;max-width:100%!important;margin-left:0!important;padding-left:max(12px,env(safe-area-inset-left))!important;padding-right:max(12px,env(safe-area-inset-right))!important;overflow-x:clip!important}
  .mobilebar{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:10010!important;display:grid!important;grid-template-columns:repeat(var(--v1992-nav-count,5),minmax(0,1fr))!important;width:100%!important;max-width:100%!important;min-width:0!important;padding-left:max(5px,env(safe-area-inset-left))!important;padding-right:max(5px,env(safe-area-inset-right))!important}
  .mobilebar button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;border:0!important}
  #root.v1996-operator .mobilebar{display:none!important}
  #root.v1996-operator .main{padding-bottom:calc(82px + env(safe-area-inset-bottom))!important}

  .v1995-mobile-header{left:0!important;right:0!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto!important;padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important}
  .v1995-mobile-mark,.v1995-header-account>span{background:#f6a23f!important;color:var(--ss-navy)!important}
  .v1995-header-search{min-width:0!important}
  .v1995-header-search b{color:#17384b!important}
  .v1995-header-search small{color:#526876!important}
  .v1996-sync-chip{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:0;border-radius:12px;background:#ffffff17;color:#fff;cursor:pointer}
  .v1996-sync-chip i{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#267d5b;color:#fff;box-shadow:inset 0 0 0 1px #ffffff4d;font-size:15px;font-style:normal;font-weight:950;line-height:1}
  .v1996-sync-chip i::after{content:"\2713"}
  .v1996-sync-chip.local i{background:#9a5d08}.v1996-sync-chip.local i::after{content:"D"}
  .v1996-sync-chip.saving i{background:#9a5d08;animation:v1996-pulse 1s infinite}.v1996-sync-chip.saving i::after{content:"\21BB"}
  .v1996-sync-chip.offline i,.v1996-sync-chip.error i{background:#a92d35}.v1996-sync-chip.offline i::after,.v1996-sync-chip.error i::after{content:"!"}
  .v1996-sync-chip span{display:none}
  @keyframes v1996-pulse{50%{opacity:.35}}

  h1{font-size:clamp(26px,8vw,34px)!important;line-height:1.12!important}
  h2{font-size:21px!important;line-height:1.22!important}
  h3{font-size:17px!important}
  p,.field input,.field textarea,.field select,.input,.select,.textarea,.btn{font-size:16px!important}
  .field label{font-size:14px!important;color:#364f5d!important}
  .muted,.sub,.imeta,.att-shift-row small{color:var(--ss-muted)!important;font-size:14px!important;line-height:1.4!important}
  small{font-size:14px!important;line-height:1.4!important}
  .v1995-header-search small{font-size:12px!important;line-height:14px!important}
  .v175-clock-hero small,.v195-director-sites small,.weekly-report-hero small,.v195-commercial-role-head small{color:#d7e7ef!important}
  .badge,.count,time,.v1993-payment-state,.v1993-run-state{font-size:12px!important}
  .input,.select,.textarea,input,select,textarea{border-color:var(--ss-control-border)!important}
  .btn,button,.input,.select{min-height:44px}
  .btn.orange,.btn.green,.btn.red,.btn.blue,.primary-action,.auth-login-btn{min-height:48px}
  .smallbtn,.workcard .workcard-quick-update,.v1993-filter-chips button,.payment-preset-row button{min-height:44px!important}
  .v1991-modal-close{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important}

  .v1995-mobile-header :focus-visible,.global-search-head :focus-visible{outline:3px solid #fff!important;outline-offset:2px!important;box-shadow:0 0 0 5px #1f75a7!important}

  .panel,.card,.work-section-card{border-color:#d7e3e8!important;border-radius:15px!important;box-shadow:0 5px 18px rgba(15,53,72,.075)!important}
  .panel{padding:15px!important}
  .topbar{gap:10px!important;margin-bottom:13px!important}
  .topbar .actions{width:100%;justify-content:flex-start!important}
  .topbar .sub{color:#526876!important}
  .demo-mode-banner{margin-top:0!important}

  /* Semantic quick actions: colour communicates meaning, not position. */
  .v1992-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .v1992-quick-actions>button{min-height:86px!important;padding:12px!important;border-radius:14px!important;color:var(--ss-navy)!important;box-shadow:0 4px 13px #12384b13!important}
  .v1992-quick-actions>button span{color:inherit!important}
  .v1992-quick-actions>.v1996-action--progress{background:#eff7ff!important;border-color:#c9e2f7!important}
  .v1992-quick-actions>.v1996-action--photo{background:#fff6e9!important;border-color:#f3dab8!important}
  .v1992-quick-actions>.v1996-action--issue{background:#fff0f0!important;border-color:#e8c6c6!important}
  .v1992-quick-actions>.v1996-action--diary{background:#f6f1ff!important;border-color:#ddd1f2!important}
  .v1992-today-metrics>button:disabled{cursor:default!important;opacity:1!important;color:var(--ss-text)!important}

  .v1994-back-overlay,.assist-fab{width:auto!important;min-width:84px!important;height:48px!important;padding:0 13px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;border-radius:14px!important}
  .v1994-back-overlay{left:max(12px,env(safe-area-inset-left))!important;right:auto!important}
  .assist-fab{left:auto!important;right:max(12px,env(safe-area-inset-right))!important}
  .v1994-back-overlay span,.assist-fab b{display:inline!important;position:static!important;width:auto!important;height:auto!important;margin:0!important;overflow:visible!important;clip:auto!important;white-space:normal!important}
  .assist-fab span{color:var(--ss-navy)!important;background:#f8a341!important}
  #root.v1996-operator .v1994-back-overlay,#root.v1996-operator~.assist-fab{bottom:calc(12px + env(safe-area-inset-bottom))!important}

  /* Search stays full screen and exposes one close control. */
  .global-search-modal{padding:0 max(0px,env(safe-area-inset-right)) 0 max(0px,env(safe-area-inset-left))!important}
  .global-search-head{padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important}
  .global-search-head button,.global-search-foot button,.v1995-search-examples button{min-width:48px!important;min-height:48px!important}
  .global-result-row{width:100%;min-height:72px!important;text-align:left}
  .global-result-group{font-size:13px!important;color:#405d6c!important}
  .v1996-search-group{display:block}
  .v1996-search-group h2{font-size:13px!important}

  /* Every long editor keeps Cancel and Save reachable. */
  .field-mobile-editor{max-height:calc(100dvh - env(safe-area-inset-top))!important;padding-bottom:calc(92px + env(safe-area-inset-bottom))!important;overflow:auto!important}
  .field-mobile-actions,.field-mobile-editor>.actions:last-child{position:sticky!important;left:0;right:0;bottom:-16px;z-index:8;display:grid!important;grid-template-columns:minmax(90px,.7fr) minmax(170px,1.3fr)!important;gap:9px!important;margin:18px -2px -16px!important;padding:11px 2px calc(11px + env(safe-area-inset-bottom))!important;border-top:1px solid #d8e3e8;background:#fff;box-shadow:0 -8px 22px #102f4230}
  .field-mobile-actions .btn,.field-mobile-editor>.actions:last-child .btn{width:100%!important;min-width:0!important;min-height:52px!important;margin:0!important}
  .v1996-duplicate-diary{padding-bottom:16px!important}
  .v1996-duplicate-diary .field-mobile-actions{position:static!important;margin:18px 0 0!important;padding:12px 0 0!important;box-shadow:none!important}

  .v1996-plot-search{margin:12px 0 4px!important}
  .v1992-plot-picker>div:last-of-type{max-height:55dvh!important;overflow:auto!important}
  .v1996-plot-choice[hidden]{display:none!important}
  .v1996-plot-choice{min-height:66px!important}

  /* Team Time is three clear queues; office setup stays off the phone. */
  .v1996-team-today{background:linear-gradient(145deg,#fff,#f2f8fa)!important}
  .v1996-team-queues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}
  .v1996-team-queues button{min-width:0;min-height:86px;padding:9px 5px;border:1px solid #cde0e8;border-radius:13px;background:#eaf5fa;color:var(--ss-navy)}
  .v1996-team-queues button.attention{border-color:#edc07d;background:#fff5e5;color:#744800}
  .v1996-team-queues small{display:block;font-size:12px!important;color:inherit!important}
  .v1996-team-queues b{display:block;margin-top:4px;font-size:27px}
  .v1996-team-today details{margin-top:8px;border:1px solid #d8e4e9;border-radius:12px;background:#fff}
  .v1996-team-today summary{min-height:48px;padding:12px;font-weight:850;cursor:pointer}
  .v1996-team-today details p{display:flex;justify-content:space-between;gap:8px;margin:0;padding:10px 12px;border-top:1px solid #edf1f3}
  .v1996-team-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:13px}
  .v1996-clock-readiness{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;margin:10px 0;padding:12px;border:1px solid #bfe0d1;border-radius:13px;background:#edf9f4}
  .v1996-clock-readiness.offline{grid-template-columns:auto minmax(0,1fr);border-color:#edc07d;background:#fff6e8}
  .v1996-clock-readiness>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--ss-success);color:#fff;font-weight:900}
  .v1996-clock-readiness.offline>span{background:var(--ss-warning)}
  .v1996-clock-readiness b,.v1996-clock-readiness small{display:block}
  .v1996-clock-readiness .btn{grid-column:1/-1;width:100%}
  .v1996-worker-deduction{margin:10px 0;padding:12px;border-left:4px solid var(--ss-warning);border-radius:10px;background:#fff6e8}
  .v1996-worker-deduction b,.v1996-worker-deduction span{display:block}
  .v1996-worker-deduction .btn{margin-top:9px}

  /* Commercial: visible scope and three stable phone destinations. */
  .v1996-commercial-scope{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;margin:0 0 8px;padding:10px 12px;border:1px solid #ddd4f1;border-radius:13px;background:#f6f1ff;color:#4e3b7b}
  .v1996-commercial-scope>span{font-size:13px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
  .v1996-commercial-scope .select{width:100%;background:#fff}
  .v1996-commercial-tabs{position:sticky!important;top:calc(var(--v1995-header) + env(safe-area-inset-top) + 8px)!important;z-index:12!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:5px!important;overflow:visible!important;border-radius:13px!important;background:#fff!important;box-shadow:0 5px 17px #17384b24!important}
  .v1996-commercial-tabs button{min-width:0!important;padding:7px 5px!important;font-size:13px!important;white-space:normal!important}
  .v1996-money-hero{padding:16px;border-radius:16px;background:linear-gradient(145deg,#2e2156,#60429a);color:#fff;box-shadow:0 10px 25px #31206048}
  .v1996-money-hero h2,.v1996-money-hero .att-kicker{color:#fff!important}
  .v1996-money-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
  .v1996-money-grid button{min-height:84px;padding:10px;border:1px solid #ffffff35;border-radius:13px;background:#ffffff15;color:#fff;text-align:left}
  .v1996-money-grid button.paid{background:#1f765b}.v1996-money-grid button.attention{background:#8b5507}
  .v1996-money-grid small,.v1996-money-grid b{display:block;color:#fff!important}.v1996-money-grid b{margin-top:5px;font-size:22px}
  .v1996-next-decision{margin-top:10px}.v1996-next-decision .btn{width:100%;margin-top:8px}
  .v1996-office-note{display:flex;gap:10px;align-items:flex-start;margin:10px 0;padding:12px;border-radius:12px;background:#eef3f5;color:#49616e}.v1996-office-note b,.v1996-office-note span{display:block}
  .v1996-approval-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px 0;border-top:1px solid #e4eaed}.v1996-approval-list article:first-of-type{border-top:0}.v1996-approval-list article b,.v1996-approval-list article small{display:block}.v1996-approval-list article .btn{min-width:95px}
  .v1996-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:13px 0}
  .v1996-review-grid>span{padding:10px;border:1px solid #dce5e9;border-radius:11px;background:#f7fafb}.v1996-review-grid small,.v1996-review-grid b{display:block}
  .v1993-payment-card-detail{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v1993-payment-card-detail small,.v1993-payment-card small{font-size:13px!important}

  /* Demo chooser is explicit and thumb-friendly. */
  .v1992-login>section:has(.v1992-demo-logins){width:min(100%,620px)}
  .v1992-demo-logins>div.v1996-demo-role-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .v1996-demo-role-grid button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:96px;padding:12px;border:1px solid #d6e1e6;border-radius:12px;background:#fff;text-align:left;color:var(--ss-text)}
  .v1996-demo-role-grid button b,.v1996-demo-role-grid button small,.v1996-demo-role-grid button span{display:block;width:100%}.v1996-demo-role-grid button b{font-size:14px;line-height:1.25}.v1996-demo-role-grid button small{color:var(--ss-muted);font-size:12px;line-height:1.35}.v1996-demo-role-grid button span{margin-top:auto;padding-top:6px;color:var(--ss-link);font-size:12px;font-weight:850}
  .v1996-route-account-note{margin:0 0 10px;padding:12px;border-left:4px solid var(--ss-link);border-radius:10px;background:#eef7ff;color:#315468}
  .v1996-archive-sheet article{margin:10px 0;padding:13px;border:1px solid #dbe5e9;border-radius:13px;background:#f7fafb}.v1996-archive-sheet article>div{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.v1996-archive-sheet article span{display:block;padding:8px;border-radius:9px;background:#fff}.v1996-archive-sheet small,.v1996-archive-sheet b{display:block}

  .v1996-account-sync{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;margin:9px 0;padding:10px;border:1px solid #d5e2e7;border-radius:12px;background:#f4f8fa;color:var(--ss-text);text-align:left}.v1996-account-sync span,.v1996-account-sync b,.v1996-account-sync small{display:block}.v1996-account-sync strong{align-self:center;color:var(--ss-link)}
  .v1996-swipe-hint{display:flex;align-items:center;gap:8px;margin:9px 0;padding:9px 11px;border-radius:10px;background:#eef6fa;color:#315d71;font-size:13px;font-weight:800}.v1996-swipe-hint span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:var(--ss-navy);color:#fff;font-size:18px}.att-timesheet-table th:first-child,.att-timesheet-table td:first-child{position:sticky;left:0;z-index:2;background:#fff;box-shadow:5px 0 8px -7px #071a2d99}.att-timesheet-table th:first-child{z-index:4;background:#f2f6f8}
}

@media (orientation:landscape) and (max-height:600px) and (max-width:1024px){
  :root{--v1995-header:58px;--v1995-bottom-nav:66px}
  .v1995-mobile-header{height:calc(var(--v1995-header) + env(safe-area-inset-top))!important;padding-top:calc(5px + env(safe-area-inset-top))!important;padding-bottom:5px!important}
  .v1995-mobile-mark{display:none!important}.v1995-header-search{height:46px!important}.v1995-header-account{height:46px!important}.v1996-sync-chip{height:42px!important}
  .main{padding-top:calc(var(--v1995-header) + env(safe-area-inset-top) + 10px)!important;padding-bottom:calc(var(--v1995-bottom-nav) + env(safe-area-inset-bottom) + 68px)!important}
  .mobilebar{height:calc(var(--v1995-bottom-nav) + env(safe-area-inset-bottom))!important;padding-top:4px!important;padding-bottom:calc(4px + env(safe-area-inset-bottom))!important;border-radius:15px 15px 0 0!important}
  .mobilebar button{height:55px!important;gap:1px!important}.mobilebar .v1995-nav-tile{width:29px!important;height:29px!important;font-size:15px!important}.mobilebar button>b{font-size:11px!important;line-height:12px!important}
  .v1994-back-overlay,.assist-fab{bottom:calc(var(--v1995-bottom-nav) + env(safe-area-inset-bottom) + 7px)!important;height:44px!important;min-width:74px!important;padding-inline:10px!important}
  .modalbox,.v1995-account-menu{max-height:calc(100dvh - 24px)!important;overflow-y:auto!important}.assist-panel{right:6px!important;bottom:6px!important;width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;border-radius:14px!important}.assist-chat{min-height:0!important;-webkit-overflow-scrolling:touch}
  .v1996-commercial-tabs{top:calc(var(--v1995-header) + env(safe-area-inset-top) + 5px)!important}
  .v1992-payment-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v1993-filter-toggle{display:inline-flex!important}.v1993-filter-drawer{display:none!important}.v1993-filter-drawer.open{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.v1992-payment-records>.v1992-desktop-table,.v1993-payment-filter-panel .v1992-desktop-table{display:none!important}.v1992-payment-records>.v1992-payment-cards{display:grid!important;gap:8px}.v1993-payment-card{display:block!important}.v1992-payment-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:62px;padding:9px;border:1px solid #d7e3e8;border-radius:10px;background:#fff;color:var(--ss-text);text-align:left}.v1992-payment-card>span{display:grid}.v1992-payment-card strong{color:var(--ss-navy)}
  .v1992-calendar-agenda{display:block!important;margin-bottom:10px!important}.v1992-month-view{display:none!important}.v1992-month-view.is-open{display:block!important}.v1992-calendar-agenda>button{grid-template-columns:82px minmax(0,1fr) auto;min-height:58px}
  .v1992-card-table,.analytics-table,.payment-history-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .takeoff-workspace,.v184-takeoff-workspace{max-height:100dvh!important}.takeoff-body{grid-template-rows:minmax(245px,68dvh) auto!important}.takeoff-drawing-stage{max-height:62dvh!important}.takeoff-toolbar{flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}.takeoff-toolbar button{flex:0 0 auto}.takeoff-toolbar span{flex:0 0 auto;width:auto!important;margin-left:4px!important}
  .v1996-landscape-card{grid-template-columns:54px minmax(0,1fr);padding:15px}.v1996-landscape-phone{width:54px;height:54px;border-radius:15px;font-size:29px}.v1996-landscape-card h2{font-size:19px!important}.v1996-landscape-card p{margin-bottom:9px}.v1996-landscape-card .btn{min-height:44px!important}
}

@media (orientation:portrait) and (max-width:720px){
  .mobilebar{border-top:3px solid var(--ss-brand)!important;background:linear-gradient(112deg,#08283b 0%,#123f58 72%,#174e69 100%)!important;box-shadow:0 -8px 25px rgba(6,34,50,.28)!important}
  .mobilebar button{background:transparent!important;color:#dce8ee!important}
  .mobilebar button[data-nav] .v1995-nav-tile{background:#ffffff18!important;color:#fff!important;box-shadow:inset 0 0 0 1px #ffffff32!important}
  .mobilebar button.active{transform:translateY(-2px);background:var(--ss-brand)!important;color:#102f42!important;box-shadow:0 5px 14px #020f1766!important}
  .mobilebar button.active:before{background:#102f42!important}
  .mobilebar button.active .v1995-nav-tile{background:#ffffff42!important;color:#102f42!important;box-shadow:inset 0 0 0 2px #ffffff80!important}
  .mobilebar .count{border-color:#123f58!important}
}

@media (max-width:430px){
  .v1995-mobile-header{grid-template-columns:minmax(0,1fr) auto auto!important}.v1995-mobile-mark{display:none!important}
}
@media (max-width:360px){
  .v1992-quick-actions{grid-template-columns:1fr!important}.v1996-money-grid{grid-template-columns:1fr!important}.v1992-demo-logins>div.v1996-demo-role-grid{grid-template-columns:1fr!important}.v1996-review-grid{grid-template-columns:1fr!important}.v1996-team-queues{gap:4px}.v1996-team-queues button{padding-inline:3px}.v1994-back-overlay,.assist-fab{min-width:74px!important;padding-inline:10px!important}
}
@media (prefers-reduced-motion:reduce){.v1996-highlight,.v1996-sync-chip.saving i{animation:none!important}}
@media print{.v1996-sync-chip{display:none!important}}

/* The desktop Demo role chooser keeps names and actions readable. */
.v1992-login>section:has(.v1992-demo-logins){width:min(100%,620px)}
.v1992-demo-logins>div.v1996-demo-role-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.v1996-demo-role-grid button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:96px;padding:12px;border:1px solid #d6e1e6;border-radius:12px;background:#fff;text-align:left;color:var(--ss-text)}
.v1996-demo-role-grid button b,.v1996-demo-role-grid button small,.v1996-demo-role-grid button span{display:block;width:100%}
.v1996-demo-role-grid button b{font-size:14px;line-height:1.25}.v1996-demo-role-grid button small{color:var(--ss-muted);font-size:12px;line-height:1.35}.v1996-demo-role-grid button span{margin-top:auto;padding-top:6px;color:var(--ss-link);font-size:12px;font-weight:850}

/* V1.99.8 — compact desktop density and clear account controls. */
.v1992-login>section>img[src*="sitesight-login-logo"]{
  display:block!important;width:190px!important;height:66px!important;max-height:none!important;margin:0 0 18px!important;padding:10px 14px!important;
  border:1px solid #244c61!important;border-radius:11px!important;background:linear-gradient(145deg,#0d2b3b,#174b62)!important;
  box-shadow:0 5px 14px rgba(8,38,54,.18)!important;object-fit:contain!important;object-position:left center!important
}
.v1998-operator-flag{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:10px;min-height:58px;margin:8px 0 12px;padding:10px 12px;border:1px solid #c8dce6;border-radius:10px;background:#eef6fa;color:var(--ss-text);cursor:pointer}
.v1998-operator-flag[hidden]{display:none!important}.v1998-operator-flag input{width:20px;height:20px;margin:2px 0 0}.v1998-operator-flag span{display:grid;gap:2px;min-width:0}.v1998-operator-flag b{color:var(--ss-navy)}.v1998-operator-flag small{color:var(--ss-muted);font-size:12px;line-height:1.35}
.v1998-accounts-time-note{display:grid;gap:3px;margin:8px 0 12px;padding:10px 12px;border-left:4px solid #d97706;border-radius:8px;background:#fff6e8;color:#5f430f}.v1998-accounts-time-note[hidden]{display:none!important}.v1998-accounts-time-note span{font-size:13px;line-height:1.4}

@media (min-width:901px) and (min-height:601px){
  .v190-pay-lines .v191-pay-person{display:block!important;gap:0!important;margin:5px 0!important;padding-top:0!important;border:1px solid #dce5ea!important}
  .v190-pay-lines .v191-pay-person:first-of-type{margin-top:0!important}
  .v191-pay-person>summary{grid-template-columns:minmax(190px,260px) repeat(4,minmax(96px,140px))!important;justify-content:start!important;column-gap:clamp(10px,1.4vw,20px)!important;row-gap:3px!important;min-height:0!important;padding:8px 10px!important}
  .v191-pay-person>summary>span{min-width:0;gap:1px!important}.v191-pay-person>summary>span:not(:first-child) b{white-space:nowrap;font-variant-numeric:tabular-nums}
  .v191-pay-totals{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important;gap:8px!important;margin-bottom:10px!important}.v191-pay-totals>div{gap:2px!important;padding:10px 12px!important}.v191-pay-totals b{font-size:19px!important}
  .v190-pay-line{gap:8px!important;padding:8px 2px!important}.v190-exceptions,.v190-pay-lines,.v190-run-actions{margin-bottom:10px!important}
}

@media (min-width:1101px){
  .main{padding:14px 18px 32px!important}.topbar{gap:10px!important;margin-bottom:10px!important;padding-bottom:6px!important}
  .panel{padding:12px!important}.card{padding:10px!important}.work-section-card{margin:8px 0!important;padding:10px!important}
  .section{padding:10px 10px 0!important}.section:last-child{padding-bottom:10px!important}.sectionhead{gap:8px!important;margin-bottom:6px!important;padding-bottom:4px!important}
  .field{gap:4px!important;margin:7px 0!important}.modalbox{padding:18px!important}
  .metrics,.calendarstat,.att-metrics,.analytics-grid,.v1992-today-metrics,.v1992-quick-actions{gap:8px!important;margin-top:8px!important;margin-bottom:8px!important}
  .metric{min-height:0!important;padding:9px 11px!important}.metric .num,.analytics-value{font-size:22px!important}.v1992-today-metrics button{min-height:68px!important;padding:9px 10px!important}.v1992-quick-actions button{min-height:52px!important;padding:8px 10px!important}
  .v195-my-work-summary{gap:8px!important;margin-bottom:10px!important}.v195-my-work-summary>div{gap:2px!important;padding:10px 12px!important}
  .workcard{align-self:start!important;min-height:0!important;padding:9px!important}.workcard .sectionhead{gap:6px!important;margin-bottom:4px!important;padding-bottom:4px!important}.workcard .type{font-size:11px!important}
  .workcard .meta{display:flex!important;flex-wrap:wrap!important;gap:2px 8px!important;margin-top:5px!important;line-height:1.3!important}
  .v1992-current-stage{gap:1px!important;margin:5px 0!important;padding:5px 7px!important}.workcard .progress-label{display:none!important}.workcard .progressrow{margin-top:5px!important;padding-top:0!important}
  .workcard .last-updated{margin-top:3px!important;overflow:hidden;font-size:11px!important;line-height:1.25!important;text-overflow:ellipsis;white-space:nowrap}.workcard .workcard-quick-update{min-height:36px!important;margin-top:5px!important}
  .v1992-work-group{margin:7px 0!important}.v1992-work-group-head{min-height:46px!important;padding:8px 10px!important}.v1992-work-group .v188-work-group-body{padding:8px!important}
  .v1998-dashboard-plots,.v1998-my-work-panel{margin-top:8px!important}.v1998-dashboard-plot-grid,.v1998-my-work-grid{align-items:start}
}
@media (min-width:1280px){.cards{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}}
@media (max-width:720px){
  .v1992-login>section>img[src*="sitesight-login-logo"]{width:180px!important;height:64px!important;margin:clamp(28px,8vh,70px) 0 20px!important}
  .v1998-operator-flag{min-height:64px;padding:11px 12px}
}

/* V1.99.8 — permission-led onboarding and confirmed Taskbot actions. */
.assist-fab{background:linear-gradient(135deg,#0c3144,#174f68)!important;border:1px solid #ffffff24!important}.assist-fab span{background:#f29a2e!important;color:#102f42!important}.assist-head{background:linear-gradient(135deg,#0b2d40,#154d67)!important}.assist-foot{border-top:1px solid #e2eaee;padding-top:8px!important;line-height:1.4}
.v1998-taskbot-confirm{width:min(620px,calc(100vw - 28px));overflow-x:hidden!important}.v1998-taskbot-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:13px 0}.v1998-taskbot-review-grid>div{display:grid;gap:2px;padding:9px 10px;border:1px solid #d8e4ea;border-radius:9px;background:#f8fbfc}.v1998-taskbot-review-grid dt{color:#607784;font-size:11px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.v1998-taskbot-review-grid dd{margin:0;color:#12394d;font-size:14px;font-weight:850;overflow-wrap:anywhere}
.v1998-guide-topbar{align-items:center}.v1998-guide-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:22px;margin-bottom:12px;padding:18px!important;background:linear-gradient(135deg,#0c3448,#17536e)!important;color:#fff;border:0!important}.v1998-guide-overview h2{margin:5px 0 7px;color:#fff}.v1998-guide-overview p{max-width:760px;margin:0;color:#dce9ef;line-height:1.55}.v1998-guide-role{display:inline-flex;padding:5px 8px;border-radius:999px;background:#ffffff18;color:#ffe0b1;font-size:11px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}.v1998-guide-facts{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.v1998-guide-facts span{padding:7px 9px;border:1px solid #ffffff24;border-radius:8px;background:#ffffff0f;color:#dce9ef;font-size:12px}.v1998-guide-facts b{color:#fff}.v1998-guide-screen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v1998-guide-screen-grid>button{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:72px;padding:10px;border:1px solid #d9e4e9;border-radius:10px;background:#fff;color:#153b4e;text-align:left;cursor:pointer}.v1998-guide-screen-grid>button:hover{border-color:#76a9bf;background:#f5fafc}.v1998-guide-screen-grid>button>span:first-child{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#eaf3f7;color:#174d65;font-weight:950}.v1998-guide-screen-grid>button>span:nth-child(2){display:grid;gap:2px;min-width:0}.v1998-guide-screen-grid b{font-size:13px}.v1998-guide-screen-grid small{color:#607684;font-size:12px;line-height:1.4}.v1998-guide-screen-grid strong{color:#d66f0a;font-size:12px;white-space:nowrap}
@media (max-width:720px){.v1998-taskbot-review-grid,.v1998-guide-screen-grid{grid-template-columns:1fr}.v1998-guide-overview{grid-template-columns:1fr;padding:14px!important}.v1998-guide-overview>.btn{width:100%}.v1998-guide-facts{display:grid;grid-template-columns:1fr}.v1998-guide-screen-grid>button{min-height:78px}.assist-panel{height:calc(100dvh - 12px)!important}.assist-input-row{padding-bottom:max(9px,env(safe-area-inset-bottom))!important}}
