/* ============================================================
   SiteSight V1.99.5 — focused, engaging mobile workspace
   ============================================================ */

.v1995-mobile-header{display:none}
.v1995-search-examples{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 18px}
.v1995-search-examples button{min-height:36px;padding:7px 12px;border:1px solid #cddce4;border-radius:999px;background:#f4f9fb;color:#173e54;font-weight:800}
.global-search-foot button{display:none}
.v1995-account-menu{max-width:520px!important}
.v1995-account-identity{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:12px;padding:0 38px 16px 0;border-bottom:1px solid #e2e9ed}
.v1995-account-identity>span{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:linear-gradient(145deg,#f28b18,#f5aa3f);color:#fff;font-size:22px;font-weight:950;box-shadow:0 8px 18px #e47e1d35}
.v1995-account-identity h2{margin:0;color:#102f42;font-size:21px}
.v1995-account-identity p{margin:3px 0 0;color:#647985;font-size:13px;line-height:1.35}
.v1995-account-actions{display:grid;gap:8px;margin:15px 0}
.v1995-account-actions>button{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;min-height:67px;padding:10px;border:1px solid #dce6eb;border-radius:12px;background:#fff;color:#17384b;text-align:left}
.v1995-account-actions i{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;font-style:normal;font-weight:950}.v1995-account-actions i.blue{background:#deefff;color:#176aa3}.v1995-account-actions i.orange{background:#fff0df;color:#c46508}.v1995-account-actions i.green{background:#e0f5e9;color:#24734b}.v1995-account-actions i.purple{background:#eee8ff;color:#6446ad}
.v1995-account-actions span{display:grid;gap:2px}.v1995-account-actions b{font-size:15px}.v1995-account-actions small{color:#687d89;font-size:13px}.v1995-account-actions strong{color:#3e718c}.v1995-account-actions em{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#cf3f3f;color:#fff;font-size:11px;font-style:normal}
.v1995-sign-out{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:50px;border:1px solid #efc6c6;border-radius:11px;background:#fff4f4;color:#a92f2f;font-weight:900}.v1995-sign-out span{font-size:20px}.v1995-account-close{display:none}
.v1995-diary-heading h2{margin:3px 0 5px}.v1995-diary-heading p{margin:0 0 14px;color:#607582;line-height:1.5}.v1995-diary-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.v1995-diary-actions .btn.orange{min-width:190px}
.v1995-phone-scope{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:10px;margin:0 0 13px;padding:12px;border:1px solid #cfe2eb;border-radius:12px;background:linear-gradient(135deg,#edf7fb,#f8fbfc)}
.v1995-phone-scope>span{padding:5px 8px;border-radius:7px;background:#173e54;color:#fff;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.v1995-phone-scope div{display:grid;gap:3px}.v1995-phone-scope b{font-size:14px;color:#17384b}.v1995-phone-scope small{color:#617682;line-height:1.4}

@media (max-width:720px), (orientation:landscape) and (max-height:600px) and (max-width:1024px){
  :root{--v1995-header:68px;--v1995-bottom-nav:80px}
  html{scroll-behavior:auto!important;background:#eef4f7}
  body{background:linear-gradient(180deg,#eaf2f6 0,#f5f7f8 230px,#f5f7f8 100%)!important}
  .v1995-mobile-header{position:fixed;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:8px;left:0;right:0;top:0;height:calc(var(--v1995-header) + env(safe-area-inset-top));padding:calc(8px + env(safe-area-inset-top)) 10px 8px;background:linear-gradient(112deg,#08283b 0%,#123f58 72%,#174e69 100%);border-bottom:3px solid #f28b18;box-shadow:0 6px 20px rgba(6,34,50,.24);z-index:9985}
  .v1995-mobile-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#f28b18,#ffb54f);color:#fff;font-size:21px;font-weight:950;box-shadow:inset 0 0 0 1px #ffffff38,0 5px 13px #031d2d42}
  .v1995-header-search{display:grid;grid-template-columns:27px minmax(0,1fr);grid-template-rows:20px 16px;column-gap:7px;align-items:center;min-width:0;height:47px;padding:5px 10px;border:1px solid #ffffff4a;border-radius:13px;background:#fff;color:#17384b;text-align:left;box-shadow:0 3px 10px #031d2d33}
  .v1995-header-search>span{grid-row:1/3;display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#e9f2f6;color:#174e69;font-size:18px;font-weight:900}.v1995-header-search>b{align-self:end;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:17px}.v1995-header-search>small{align-self:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#748792;font-size:12px;line-height:14px}
  .v1995-header-account{position:relative;display:grid;grid-template-columns:32px;justify-items:center;gap:1px;min-width:48px;height:49px;padding:2px 4px;border:0;border-radius:11px;background:transparent;color:#fff}.v1995-header-account>span{display:grid;place-items:center;width:30px;height:30px;border:1px solid #ffffff75;border-radius:10px;background:#ffffff1f;color:#fff;font-weight:950}.v1995-header-account>b{font-size:12px;line-height:13px}.v1995-header-account>em{position:absolute;right:0;top:-3px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid #123f58;border-radius:999px;background:#d94343;color:#fff;font-size:9px;font-style:normal;font-weight:900}
  .mobile-global-search{display:none!important}
  .main{padding:calc(var(--v1995-header) + env(safe-area-inset-top) + 16px) 12px calc(148px + env(safe-area-inset-bottom))!important;background:transparent!important}
  .main>*{scroll-margin-top:calc(var(--v1995-header) + env(safe-area-inset-top) + 12px)}
  .demo-mode-banner{border:0!important;border-left:4px solid #f28b18!important;border-radius:11px!important;background:#fff8ed!important;color:#74501f!important;box-shadow:0 4px 13px #18384a12!important}
  .topbar{padding:3px 2px 0}.topbar h1{position:relative;padding-left:12px;color:#102f42!important}.topbar h1:before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:4px;border-radius:999px;background:#f28b18}.topbar .sub{padding-left:12px;color:#657b87!important;font-size:14px!important;line-height:1.4}
  .panel,.card,.work-section-card{border-color:#dbe6eb!important;box-shadow:0 5px 18px rgba(15,53,72,.075)!important}.panel{border-radius:14px!important}.workcard{border-radius:13px!important;box-shadow:0 4px 14px rgba(15,53,72,.07)!important}
  .v1992-site-progress{overflow:hidden;border:0!important;background:linear-gradient(135deg,#0e354c 0%,#185671 100%)!important;color:#fff!important;box-shadow:0 10px 24px #0a30454a!important}.v1992-site-progress h2,.v1992-site-progress p,.v1992-site-progress small{color:#fff!important}.v1992-site-progress .bar{background:#ffffff2e!important}.v1992-site-progress .bar i{background:linear-gradient(90deg,#f28b18,#ffc260)!important}
  .v1992-today-metrics>button,.v1992-quick-actions>button{border-width:1px!important;border-radius:13px!important;box-shadow:0 4px 13px #12384b13!important;transition:transform .15s ease,box-shadow .15s ease}.v1992-today-metrics>button:active,.v1992-quick-actions>button:active{transform:scale(.98)}
  .v1992-today-metrics>button:nth-child(4n+1),.v1992-quick-actions>button:nth-child(4n+1){background:#eff7ff!important;border-color:#c9e2f7!important}.v1992-today-metrics>button:nth-child(4n+2),.v1992-quick-actions>button:nth-child(4n+2){background:#fff6e9!important;border-color:#f3dab8!important}.v1992-today-metrics>button:nth-child(4n+3),.v1992-quick-actions>button:nth-child(4n+3){background:#eef9f4!important;border-color:#cde8db!important}.v1992-today-metrics>button:nth-child(4n),.v1992-quick-actions>button:nth-child(4n){background:#f6f1ff!important;border-color:#ddd1f2!important}
  .metrics .metric:nth-child(5n+1){background:linear-gradient(145deg,#fff,#eef7ff)}.metrics .metric:nth-child(5n+2){background:linear-gradient(145deg,#fff,#fff6e9)}.metrics .metric:nth-child(5n+3){background:linear-gradient(145deg,#fff,#eef9f4)}.metrics .metric:nth-child(5n+4){background:linear-gradient(145deg,#fff,#fff1f1)}.metrics .metric:nth-child(5n){background:linear-gradient(145deg,#fff,#f5f0ff)}

  /* Coloured, learnable bottom navigation tiles */
  .mobilebar{height:calc(var(--v1995-bottom-nav) + env(safe-area-inset-bottom))!important;padding:6px 5px calc(6px + env(safe-area-inset-bottom))!important;gap:3px!important;border:0!important;border-radius:19px 19px 0 0!important;background:#fff!important;box-shadow:0 -7px 25px rgba(8,37,54,.18)!important;overflow:visible!important}
  .mobilebar button{position:relative!important;height:68px!important;padding:4px 2px!important;gap:3px!important;border-radius:12px!important;background:#fff!important;color:#536a76!important;overflow:visible!important;transition:background .16s ease,transform .16s ease!important}
  .mobilebar button:active{transform:scale(.96)}.mobilebar button>b{font-size:12px!important;line-height:13px!important;font-weight:850!important}.mobilebar .v1995-nav-tile{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border-radius:10px!important;font-size:17px!important;line-height:1!important;box-shadow:inset 0 0 0 1px #ffffff70!important}
  .mobilebar [data-nav="dashboard"] .v1995-nav-tile{background:#dcefff!important;color:#176da7!important}.mobilebar [data-nav="work-items"] .v1995-nav-tile,.mobilebar [data-nav="my-work"] .v1995-nav-tile{background:#fff0d9!important;color:#b75d00!important}.mobilebar [data-nav="issues"] .v1995-nav-tile{background:#ffe4e4!important;color:#b52f35!important}.mobilebar [data-nav="attendance"] .v1995-nav-tile{background:#dcf4ea!important;color:#227454!important}.mobilebar [data-nav="commercial"] .v1995-nav-tile{background:#ece4ff!important;color:#6547ae!important}.mobilebar [data-nav="gangs"] .v1995-nav-tile{background:#e3f5f6!important;color:#24747a!important}.mobilebar [data-nav="diary"] .v1995-nav-tile{background:#e1f1ff!important;color:#2f6f9f!important}.mobilebar [data-nav="site-drawings"] .v1995-nav-tile,.mobilebar [data-nav="documents"] .v1995-nav-tile{background:#e7eaff!important;color:#4c5eaf!important}.mobilebar [data-nav="calendar"] .v1995-nav-tile{background:#fff0ea!important;color:#b95a36!important}.mobilebar [data-nav="more"] .v1995-nav-tile{background:#e9eef1!important;color:#38576a!important}
  .mobilebar button.active{transform:translateY(-2px);color:#102f42!important;background:#edf5f8!important;box-shadow:0 4px 12px #15384a1a!important}.mobilebar button.active:before{content:"";position:absolute;top:-6px;left:22%;right:22%;height:4px;border-radius:0 0 5px 5px;background:#f28b18}.mobilebar button.active .v1995-nav-tile{filter:saturate(1.28);box-shadow:inset 0 0 0 2px #ffffffa8,0 3px 8px #15384a22!important}.mobilebar .count{top:1px!important;right:calc(50% - 24px)!important;z-index:2!important;min-width:18px!important;height:18px!important;padding:0 4px!important;border:2px solid #fff!important;border-radius:999px!important;background:#d33f3f!important;color:#fff!important;font-size:9px!important;font-style:normal!important;line-height:14px!important}

  /* Back and Help occupy opposite corners; Search is now in the header. */
  .v1994-back-overlay{left:12px!important;right:auto!important;bottom:calc(var(--v1995-bottom-nav) + env(safe-area-inset-bottom) + 10px)!important;width:48px!important;height:48px!important;min-width:48px!important;padding:0!important;border-radius:14px!important;background:#123f58!important;border:2px solid #fff!important;box-shadow:0 7px 20px #092b3e4d!important}.v1994-back-overlay span{display:none!important}
  .assist-fab{left:auto!important;right:12px!important;bottom:calc(var(--v1995-bottom-nav) + env(safe-area-inset-bottom) + 10px)!important;width:48px!important;height:48px!important;padding:0!important;border-radius:14px!important}.assist-fab span{width:27px!important;height:27px!important}.assist-fab b{display:block!important;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}
  .toast,.saved-toast,.undo-snackbar{bottom:calc(var(--v1995-bottom-nav) + env(safe-area-inset-bottom) + 67px)!important;z-index:10060!important}

  /* More uses bright icon tiles without turning into a noisy grid. */
  .v1995-phone-scope{grid-template-columns:1fr}.v1995-phone-scope>span{justify-self:start}
  .v1995-more-section{padding:13px!important}.v1995-more-section>div{gap:8px!important}.v1992-more-card{min-height:70px!important;border:1px solid #dce6eb!important;border-radius:13px!important;box-shadow:0 3px 10px #14384b0c!important}.v1992-more-card>span:first-child{width:40px!important;height:40px!important;border-radius:12px!important;background:#e4f2f8!important;color:#175979!important}.v1992-more-card:nth-child(4n+2)>span:first-child{background:#fff0df!important;color:#b65e0c!important}.v1992-more-card:nth-child(4n+3)>span:first-child{background:#e2f5eb!important;color:#287650!important}.v1992-more-card:nth-child(4n)>span:first-child{background:#eee8ff!important;color:#6547ae!important}

  /* Search is a real full-screen phone tool, not a narrow desktop modal. */
  .modal{z-index:10020!important}.global-search-modal{align-items:stretch!important;padding:0!important}.global-search-box{display:flex!important;flex-direction:column!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;background:#f4f7f8!important}.global-search-head{position:sticky;top:0;flex:0 0 auto;grid-template-columns:38px minmax(0,1fr) 42px!important;gap:7px!important;padding:calc(10px + env(safe-area-inset-top)) 10px 10px!important;background:linear-gradient(112deg,#08283b,#174e69)!important;border:0!important}.global-search-head>span{display:grid;place-items:center;width:38px;height:44px;border-radius:11px;background:#ffffff20;color:#fff!important;font-size:21px!important}.global-search-head input{height:46px!important;padding:8px 11px!important;border:0!important;border-radius:12px!important;background:#fff!important;color:#17384b!important;font-size:16px!important}.global-search-head button{width:42px!important;height:44px!important;border-radius:11px!important;background:#ffffff20!important;color:#fff!important;font-size:27px!important}.global-search-results{flex:1 1 auto;max-height:none!important;padding:10px 9px 18px!important;overflow:auto!important}.global-result-group{position:sticky;top:0;z-index:1;margin:5px 2px!important;padding:8px 8px 5px!important;background:#f4f7f8!important;color:#53707f!important;font-size:11px!important}.global-result-row{min-height:68px!important;margin:0 0 7px!important;padding:9px!important;border:1px solid #dce6eb!important;border-radius:13px!important;background:#fff!important;box-shadow:0 3px 10px #14384b0d!important}.global-result-row i{width:39px!important;height:39px!important;border-radius:11px!important;background:#e7f2f7!important;color:#185d7c!important;font-size:18px!important}.global-result-row b{font-size:14px!important}.global-result-row small{font-size:12px!important;line-height:1.35!important}.global-search-start{padding:18px 8px!important}.global-search-start>b{margin-top:5px;color:#102f42!important;font-size:20px!important;line-height:1.25}.global-search-start>p{font-size:14px!important}.v1995-search-examples{display:grid;grid-template-columns:repeat(3,1fr)}.v1995-search-examples button{min-height:43px}.global-search-recent button{min-height:58px;padding:8px!important;border:1px solid #e0e8ec!important;border-radius:10px!important;background:#fff!important}.global-search-foot{flex:0 0 auto;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:10px 11px calc(10px + env(safe-area-inset-bottom))!important;background:#fff!important}.global-search-foot span{font-size:11px;line-height:1.3}.global-search-foot kbd{display:none}.global-search-foot button{display:block;min-width:70px;min-height:42px;border:0;border-radius:10px;background:#173e54;color:#fff;font-weight:850}

  /* Account and diary are purpose-built phone sheets. */
  .v1995-account-modal{align-items:end!important}.v1995-account-menu{padding:16px 14px calc(18px + env(safe-area-inset-bottom))!important}.v1995-account-close{display:block;width:100%;margin-top:8px}.v1995-account-actions>button{min-height:64px}
  .v1995-diary-modal{align-items:stretch!important}.v1995-diary-editor{height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:calc(18px + env(safe-area-inset-top)) 14px calc(112px + env(safe-area-inset-bottom))!important}.v1995-diary-editor .field label{font-size:13px!important}.v1995-diary-editor textarea{min-height:96px!important;line-height:1.45}.v1995-diary-actions{position:fixed;left:0;right:0;bottom:0;z-index:10035;display:grid;grid-template-columns:minmax(90px,.7fr) minmax(180px,1.3fr);gap:9px;margin:0;padding:11px 12px calc(11px + env(safe-area-inset-bottom));border-top:1px solid #d8e3e8;background:#fff;box-shadow:0 -8px 22px #102f4230}.v1995-diary-actions .btn{width:100%;min-width:0!important;min-height:52px!important}.v1995-diary-actions .btn.orange{box-shadow:0 5px 13px #df781d35}
  .assist-scrim{z-index:10028!important}.assist-panel{z-index:10029!important}
}

@media(max-width:390px){
  .v1995-mobile-header{grid-template-columns:minmax(0,1fr) auto}.v1995-mobile-mark{display:none}.v1995-header-search{padding-inline:8px}.v1995-header-account{min-width:47px}.mobilebar .v1995-nav-tile{width:30px!important;height:30px!important}.v1995-search-examples{grid-template-columns:1fr}.v1995-account-actions small{font-size:12px}
}

@media(prefers-reduced-motion:reduce){.mobilebar button,.v1992-today-metrics>button,.v1992-quick-actions>button{transition:none!important}}

@media print{.v1995-mobile-header{display:none!important}}
