/* =====================================================================================================
   DOC look 3 (24 Oct 2026, from Aswin's reference picture): bright blue / purple / green, soft white cards
   with 16 px corners and gentle shadows, the "DRONE OPERATION CONSOLE" text logo, a landscape banner on the
   dashboards with the figure cards overlapping it, and a projects table with thumbnails and progress bars.
   Loaded last; rolling back = dropping its <link>.
   ===================================================================================================== */
:root,:root[data-theme="light"]{
  --bg:#F4F7FB; --surface:#FFFFFF; --surface-2:#F3F6FB; --ink:#0E1726; --ink-2:#4A5568; --ink-3:#7A8699;
  --line:#E4EAF3; --line-2:#EDF1F7; --track:#E8EDF5; --hover-line:#C9D5E6;
  --navy:#1767F0; --navy-2:#0F56D2; --navy-3:#1767F0; --accent:#1767F0; --accent-ink:#FFFFFF; --on-primary:#FFFFFF;
  --info:#1767F0; --info-soft:#E8F0FE; --violet:#6B3FD8; --violet-soft:#F0EAFD;
  --good:#15964A; --good-soft:#E6F6EC; --warn:#9A6A00; --warn-soft:#FDF2CC; --bad:#D92D20; --bad-soft:#FDECEA;
  --focus:#1767F0; --radius:16px;
  --card-shadow:0 1px 2px rgba(16,24,40,.04),0 10px 30px -12px rgba(16,24,40,.10);
  --shadow:0 24px 48px -16px rgba(16,24,40,.25);
}
:root[data-theme="dark"]{
  --bg:#0D131D; --surface:#151D2A; --surface-2:#1B2535; --ink:#EAF0F8; --ink-2:#AAB6C6; --ink-3:#7C899B;
  --line:#263245; --line-2:#1F2A3B; --track:#253147; --hover-line:#3A4A63;
  --navy:#4D8DFF; --navy-2:#6EA2FF; --navy-3:#4D8DFF; --accent:#4D8DFF; --accent-ink:#06142B; --on-primary:#FFFFFF;
  --info:#6EA2FF; --info-soft:#17284A; --violet:#B39AF7; --violet-soft:#271D45;
  --good:#45C97A; --good-soft:#12301F; --warn:#F0C24B; --warn-soft:#352A0E; --bad:#F87171; --bad-soft:#3A1717;
  --focus:#6EA2FF;
  --card-shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px -12px rgba(0,0,0,.55);
  --shadow:0 24px 48px -16px rgba(0,0,0,.7);
}
body{background:var(--bg);font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}

/* ---- surfaces, buttons, inputs, badges ---- */
.card,.pcard,.kpi .k,.tools .tile,.toolcard,.wing,.empty.card{border-radius:16px;border-color:var(--line);box-shadow:var(--card-shadow)}
.card-head{padding:18px 22px}
.btn{border-radius:10px;min-height:40px;padding:8px 16px;font-weight:600}
.btn.sm{border-radius:8px;min-height:32px;padding:5px 12px}
.btn.primary{background:var(--navy);border-color:var(--navy);color:var(--on-primary);box-shadow:0 6px 16px -8px rgba(23,103,240,.7)}
.btn.primary:hover{background:var(--navy-2);border-color:var(--navy-2)}
.field input,.field select,.field textarea,.input{border-radius:10px}
.pill{border-radius:8px;padding:3px 10px;font-weight:600}
.pill.st-progress{background:var(--info-soft);color:var(--info);border-color:transparent}
.pill.st-plan{background:var(--warn-soft);color:var(--warn);border-color:transparent}
.pill.st-closed{background:var(--track);color:var(--ink-2);border-color:transparent}
.drawer{border-radius:18px}

/* ---- tables ---- */
.tbl th{background:var(--surface-2);color:var(--ink-2);font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;padding:12px 16px;border-bottom:0}
.tbl td{padding:14px 16px;border-bottom:1px solid var(--line-2);font-size:14px}
.tbl tr:last-child td{border-bottom:0}

/* ---- header (24 Oct 2026, Aswin's screenshot): the white wordmark on a #1B2632 navy bar in every theme;
   wide search, bell, you ---- */
.gnav{background:var(--surface);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(16,24,40,.02)}
.gnav-row{height:68px;padding:0 32px;gap:24px;background:#1B2632}
.brand-txt{display:none!important}
.gnav .mark .light-only{display:none!important}
.gnav .mark .dark-only{display:block!important;height:16px;width:auto}
.gnav .mark img{height:16px}
.gnav-right{flex:1;justify-content:flex-end}
.gnav .tb-search{flex:0 1 600px!important;margin:0 auto 0 8%;height:44px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:#AEBBCB;font-size:14px}
.gnav .tb-search:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.24)}
.gnav .tb-search kbd{background:transparent;border-color:rgba(255,255,255,.2);color:#AEBBCB}
.gnav .tb-search svg{width:18px;height:18px}
.tb-right .bell{border:0;background:transparent;color:#FFFFFF}
.tb-right .bell:hover{background:rgba(255,255,255,.1)}
.tb-right .bell .dot{border-color:#1B2632}
/* the Dashboard icon: back to Home and its module cards (24 Oct 2026); it replaces the module switcher in the menu row */
.tb-right .tb-home{border:0;background:transparent;color:#FFFFFF;display:grid;place-items:center}
.tb-right .tb-home:hover{background:rgba(255,255,255,.1);text-decoration:none}
.tb-right .tb-home svg{width:19px;height:19px}
.modrow .gmenu,.modrow .modsep{display:none!important}
@media (max-width:480px){.gnav-row{gap:6px!important}.gnav .mark .dark-only,.gnav .mark img{height:7.5px!important}.tb-right{gap:4px!important}.tb-who svg{display:none}}
.tb-who{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;color:#FFFFFF;text-decoration:none;cursor:pointer;white-space:nowrap}
.tb-who:hover{text-decoration:none}
.tb-who svg{width:16px;height:16px;color:#AEBBCB}
#tb-avatar.avatar{width:38px;height:38px}

/* ---- the module row ---- */
.modrow{padding:0 32px;height:50px;background:var(--surface)}
.gmenu{background:var(--surface-2);border-radius:12px}
.gmenu a{border-radius:9px;height:34px}
.gmenu a.on{background:var(--navy);color:#fff}
.subnav a.on{border-bottom-color:var(--navy);color:var(--ink)}

/* ---- page header and content ---- */
.topbar{padding:28px 32px 8px!important}
.page{padding-left:32px;padding-right:32px}
.topbar h1{font-size:26px;font-weight:700}
footer{background:transparent;border-top:0}

/* ---- the dashboards' banner ---- */
body.has-hero .topbar{display:none!important}
.hero-banner{position:relative;margin:0 -32px;min-height:300px;padding:56px 56px 120px;overflow:hidden;
  background:url(brand/hero-landscape.svg?v=1) center/cover no-repeat}
.hero-banner::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(244,247,251,.92) 0%,rgba(244,247,251,.65) 38%,rgba(244,247,251,0) 62%),linear-gradient(180deg,rgba(244,247,251,0) 70%,var(--bg) 100%)}
.hero-banner>*{position:relative}
.hero-banner .eyebrow{font-size:13px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-2)}
.hero-banner .eyebrow a{color:var(--navy)}
.hero-banner h1{font-size:46px;font-weight:800;letter-spacing:-.025em;line-height:1.1;margin:10px 0 10px;color:var(--ink)}
.hero-banner p{font-size:18px;color:var(--ink-2);margin:0;max-width:560px}
.hero-banner .acts{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.hero-banner .acts .btn:not(.primary){background:var(--surface)}
:root[data-theme="dark"] .hero-banner{background-image:url(brand/hero-landscape.svg?v=1);filter:none}
:root[data-theme="dark"] .hero-banner::before{background:linear-gradient(90deg,rgba(13,19,29,.95) 0%,rgba(13,19,29,.78) 40%,rgba(13,19,29,.35) 70%),linear-gradient(180deg,rgba(13,19,29,.1) 60%,var(--bg) 100%)}

/* ---- figure cards (dashboard modules and DaaS figures) overlapping the banner ---- */
.mcards{position:relative;margin-top:-92px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}
.mcard{position:relative;display:grid;grid-template-columns:64px 1fr 40px;gap:4px 18px;align-items:start;padding:24px;border-radius:18px;border:1px solid var(--line);
  background:var(--surface);box-shadow:var(--card-shadow);color:inherit;text-decoration:none;overflow:hidden;transition:transform .15s,box-shadow .15s}
.mcard:hover{transform:translateY(-2px);box-shadow:0 1px 2px rgba(16,24,40,.05),0 18px 40px -16px rgba(16,24,40,.22);text-decoration:none}
.mcard::after{content:"";position:absolute;inset:auto 0 0 0;height:60%;pointer-events:none;opacity:.55;background:linear-gradient(180deg,transparent,var(--tint))}
.mcard.blue{--tint:var(--info-soft);--solid:#1767F0}.mcard.violet{--tint:var(--violet-soft);--solid:#6B3FD8}.mcard.green{--tint:var(--good-soft);--solid:#15964A}
.mcard>*{position:relative;z-index:1}
.mcard .mi{grid-row:1/4;width:64px;height:64px;border-radius:16px;display:grid;place-items:center;background:var(--solid);color:#fff;box-shadow:0 10px 20px -10px var(--solid)}
.mcard .mi svg{width:30px;height:30px}
.mcard .mt{font-size:18px;font-weight:700;color:var(--ink);margin-top:2px}
.mcard .ms{font-size:14px;color:var(--ink-2);grid-column:2}
.mcard .mgo{grid-column:3;grid-row:1/3;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--surface);box-shadow:0 4px 14px -6px rgba(16,24,40,.25);color:var(--solid)}
.mcard .mgo svg{width:18px;height:18px}
.mcard .mv{grid-column:2/4;font-size:34px;font-weight:800;letter-spacing:-.02em;color:var(--ink);margin-top:14px;line-height:1.1}
.mcard .ml{grid-column:2/4;font-size:14px;color:var(--ink-2)}
.mcard .mbar{grid-column:2/4;height:9px;border-radius:999px;background:var(--track);overflow:hidden;margin-top:12px;max-width:260px}
.mcard .mbar i{display:block;height:100%;border-radius:999px;background:var(--solid)}
.mcard .mx{grid-column:2/4;font-size:13px;color:var(--ink-3);margin-top:8px}

/* ---- Recent projects: a table with thumbnails, progress, status and a menu ---- */
#wing-daas>.dash-body{display:block}
#wing-daas .sec-head{display:none}
.ptable .card-head{align-items:flex-start}
.ptable .card-head h2{font-size:20px;font-weight:700}
.ptable .card-head .sub{font-size:14px;color:var(--ink-2);margin-top:2px}
.ptable .tbl-wrap{padding:0 16px 8px;overflow-x:auto}
.ptable .tbl th:first-child{border-radius:10px 0 0 10px}.ptable .tbl th:last-child{border-radius:0 10px 10px 0}
.ptable .tbl tr.row{cursor:pointer}
.ptable .tbl tr.row:hover td{background:var(--surface-2)}
.ptable .thumb{width:78px;height:54px;border-radius:10px;background:#1C2B3A center/cover no-repeat;display:grid;place-items:center;color:#fff;font-weight:700;font-size:15px}
.ptable .thumb.none{background:var(--track);color:var(--ink-3)}
.ptable .pn b{display:block;font-size:15px;color:var(--ink)}
.ptable .pn span{font-size:13px;color:var(--ink-3)}
.ptable .loc{display:flex;align-items:center;gap:8px;color:var(--ink-2)}
.ptable .loc svg{width:18px;height:18px;flex:none;color:var(--ink-3)}
.ptable .pg b{display:block;font-size:14px;margin-bottom:6px}
.ptable .pg .bar{width:180px;max-width:100%;height:8px;border-radius:999px;background:var(--track);overflow:hidden}
.ptable .pg .bar i{display:block;height:100%;border-radius:999px;background:var(--navy)}
.ptable .pg .bar i.lo{background:#F2B705}.ptable .pg .bar i.mid{background:#15964A}
.kebab{position:relative;display:inline-block}
.kebab .kb{border:0;background:transparent;width:34px;height:34px;border-radius:8px;display:grid;place-items:center;color:var(--ink-2);cursor:pointer}
.kebab .kb:hover{background:var(--surface-2)}
.kebab .kb svg{width:18px;height:18px}
.kb-menu{position:absolute;right:0;top:100%;z-index:20;min-width:150px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:6px;display:flex;flex-direction:column}
.kb-menu a,.kb-menu button{display:block;text-align:left;padding:8px 12px;border-radius:8px;border:0;background:none;font:500 14px var(--font);color:var(--ink);text-decoration:none;cursor:pointer}
.kb-menu a:hover,.kb-menu button:hover{background:var(--surface-2);text-decoration:none}

@media (max-width:1100px){.gnav .tb-search{margin-left:16px}}
@media (max-width:900px){
  .gnav-row{padding:0 12px;height:60px;gap:10px}
  .gnav .mark .dark-only,.gnav .mark img{height:10px}
  .tb-who span{display:none}
  .modrow{padding:0 12px}
  .page{padding-left:12px;padding-right:12px}
  .topbar{padding:18px 12px 4px!important}
  .hero-banner{margin:0 -12px;padding:32px 20px 104px;min-height:0}
  .hero-banner h1{font-size:30px}
  .hero-banner p{font-size:15px}
  .mcards{grid-template-columns:minmax(0,1fr);margin-top:-80px}
  .ptable .hide-sm{display:none}
}
.ptable .pg .bar{display:block}
body.has-hero .page{padding-top:0}
#wing-daas .side-col{margin-top:20px}
@media (max-width:900px){.gnav .tb-search{flex:0 0 40px!important;width:40px;margin:0 0 0 auto}}
.hero-banner.solo{padding-bottom:56px;margin-bottom:8px}
#storage-card b{font-family:var(--font)!important;font-weight:700}
.emp-two{grid-template-columns:minmax(0,1fr)!important}
.emp-two .tbl-wrap{overflow-x:auto}

/* ---- My day: the punch card ---- */
.punch{padding:22px;display:flex;flex-direction:column;gap:18px}
.punch .pc-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.pc-date{font-size:14px;color:var(--ink-2)}
.pc-now{font-size:34px;font-weight:800;letter-spacing:-.02em;line-height:1.15;color:var(--ink);font-variant-numeric:tabular-nums}
.pc-st{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:var(--track);color:var(--ink-2);font-weight:600;font-size:13px;white-space:nowrap}
.pc-st i{width:8px;height:8px;border-radius:50%;background:currentColor}
.punch.on .pc-st{background:var(--good-soft);color:var(--good)}
.punch.on .pc-st i{animation:pcpulse 1.6s infinite}
.punch.done .pc-st{background:var(--info-soft);color:var(--info)}
@keyframes pcpulse{0%{box-shadow:0 0 0 0 rgba(21,150,74,.55)}70%{box-shadow:0 0 0 8px rgba(21,150,74,0)}100%{box-shadow:0 0 0 0 rgba(21,150,74,0)}}
.pc-mid{background:var(--surface-2);border-radius:14px;padding:14px 18px}
.pc-lbl{font-size:13px;color:var(--ink-2)}
.pc-el{font-size:28px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.pc-btn{width:100%;min-height:56px;border:0;border-radius:14px;font:700 18px var(--font);color:#fff;cursor:pointer;background:var(--good);box-shadow:0 12px 24px -14px var(--good);touch-action:manipulation}
.pc-btn.on{background:var(--bad);box-shadow:0 12px 24px -14px var(--bad)}
.pc-btn.done{background:var(--track);color:var(--ink-3);box-shadow:none;cursor:default}
.pc-btn.busy{opacity:.65;pointer-events:none}
.pc-btn:active:not(:disabled){transform:scale(.985)}
.pc-tl{list-style:none;margin:0 0 0 6px;padding:0;display:flex;flex-direction:column;gap:14px;border-left:2px solid var(--line)}
.pc-tl li{position:relative;padding-left:18px;display:grid;grid-template-columns:1fr auto;column-gap:10px}
.pc-tl li::before{content:"";position:absolute;left:-8px;top:3px;width:14px;height:14px;border-radius:50%;background:var(--surface);border:3px solid var(--good)}
.pc-tl li.out::before{border-color:var(--bad)}.pc-tl li.ping::before{border-color:var(--info)}
.pc-tl b{font-size:14px;color:var(--ink)}
.pc-tl span{font-size:14px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.pc-tl small{grid-column:1/-1;font-size:12.5px;color:var(--ink-3)}
.pc-hint{margin:0;font-size:13px;color:var(--ink-2);line-height:1.5}

/* ---- phones: one column, tabs that scroll, nothing cut off ---- */
@media (max-width:900px){
  #work-body .two{grid-template-columns:minmax(0,1fr)!important}
  .tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .tabs::-webkit-scrollbar{display:none}
  .tabs button{flex:none;white-space:nowrap}
  .topbar{flex-wrap:wrap}
  .topbar .acts{flex-wrap:wrap;width:100%}
  .topbar h1{font-size:22px}
  #work-body .tbl td,#work-body .tbl th{padding:10px 10px}
  #work-body .form{grid-template-columns:minmax(0,1fr)}
  .punch{padding:18px}
  .pc-now{font-size:30px}
  body{padding-bottom:env(safe-area-inset-bottom)}
}

/* ---- the clock-out alarm ---- */
.clk-alarm{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1300;width:min(620px,calc(100% - 24px));display:grid;grid-template-columns:48px 1fr;gap:6px 14px;align-items:center;
  padding:16px 18px;background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--bad);border-radius:16px;box-shadow:var(--shadow);animation:caIn .25s ease}
.clk-alarm[hidden]{display:none}
@keyframes caIn{from{transform:translate(-50%,20px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
.clk-alarm .ca-ic{grid-row:1/3;width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--bad-soft);color:var(--bad);animation:caShake 1.2s ease-in-out 3}
.clk-alarm .ca-ic svg{width:26px;height:26px}
@keyframes caShake{0%,100%{transform:rotate(0)}20%{transform:rotate(-12deg)}40%{transform:rotate(12deg)}60%{transform:rotate(-8deg)}80%{transform:rotate(8deg)}}
.clk-alarm .ca-tx b{display:block;font-size:16px;color:var(--ink)}
.clk-alarm .ca-tx span{font-size:13.5px;color:var(--ink-2)}
.clk-alarm .ca-acts{grid-column:2;display:flex;gap:8px;justify-content:flex-end}
.clk-alarm .ca-out{background:var(--bad);border-color:var(--bad);color:#fff}
.pc-rem{background:var(--warn-soft);color:var(--warn);border-radius:10px;padding:10px 12px}
.linkish{border:0;background:none;padding:0;font:inherit;color:var(--navy);text-decoration:underline;cursor:pointer}
@media (max-width:900px){.clk-alarm{bottom:calc(12px + env(safe-area-inset-bottom));grid-template-columns:44px 1fr}.clk-alarm .ca-acts{grid-column:1/-1}.clk-alarm .ca-acts .btn{flex:1;min-height:48px}}

/* ---- Management: four tiles (Clients, Vendors, Employees, Calendar) since Assets and Documents left (24 Oct 2026), two by two ---- */
@media (min-width:901px){#mgmt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---- User Management form: the Access blocks - projects (with the role on each), tools, modules ---- */
.access .acc-block{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-top:1px solid var(--line-2)}
.access .acc-block:first-child{border-top:0;padding-top:4px}
.access .acc-block .members{max-height:280px;overflow:auto}
.org-pick{display:flex;gap:8px;align-items:stretch}
.org-pick select{flex:1;min-width:0}
.org-pick .btn{flex:none}
.field textarea[readonly]{background:var(--surface-2);color:var(--ink-2)}

/* ---- Calendar (24 Oct 2026): a month bar, an icon on every entry, Sundays and holidays in red ---- */
.cal-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.cal-title{display:flex;align-items:center;gap:12px}
.cal-title b{display:block;font-size:22px;font-weight:700;letter-spacing:-.01em;color:var(--ink);line-height:1.2}
.cal-badge{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:var(--info-soft);color:var(--info);flex:none}
.cal-badge svg{width:22px;height:22px}
.cal-nav{display:flex;gap:6px;align-items:center}
.cal-nav .icon-btn{display:grid;place-items:center;padding:0;width:36px;min-height:36px}
.cal-nav .icon-btn svg{width:18px;height:18px}
.cal-chips{margin-bottom:12px;flex-wrap:wrap}
.cal-chips .ch-ic{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;margin-right:6px;color:#fff;vertical-align:-5px}
.cal-chips .ch-ic svg{width:12px;height:12px}
.cal-card{overflow:hidden;padding:0}
.cal-card .cal-head{padding:12px 0 10px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.cal-card .cal-head div{text-align:center}
.cal-card .cal-head .sun{color:var(--bad)}
.cal-card .cal{gap:0;background:transparent}
.cal-card .cal-cell{min-height:118px;padding:8px;border-right:1px solid var(--line-2);border-bottom:1px solid var(--line-2);gap:4px;background:var(--surface)}
.cal-card .cal-cell:nth-child(7n){border-right:0}
.cal-card .cal-cell:hover{background:var(--surface-2)}
.cal-card .cal-cell.pad{background:var(--surface-2);cursor:default}
.cal-card .cal-cell.sun,.cal-card .cal-cell.holi{background:color-mix(in srgb,var(--bad-soft) 55%,var(--surface))}
.cal-card .cal-cell.sun .cal-n,.cal-card .cal-cell.holi .cal-n{color:var(--bad)}
.cal-card .cal-n{margin:0 0 2px -2px;font-size:13.5px;width:28px;height:28px}
.cal-card .cal-cell.today .cal-n{background:var(--navy);color:#fff}
.cal-card .cal-cell.sel{box-shadow:inset 0 0 0 2px var(--navy)}
.cal-card .cal-tag{display:flex;align-items:center;gap:5px;font-size:12px;padding:3px 7px;border-radius:7px}
.cal-tag .ct-ic{flex:none;display:grid;place-items:center}
.cal-tag .ct-ic svg{width:13px;height:13px}
.cal-tag .ct-tx{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cal-card .cal-tag.hol{background:var(--bad-soft);color:var(--bad)}
.cal-card .cal-tag.hol.sunday{background:transparent;padding-left:0;font-weight:500}
.cal-more{font-size:11.5px;color:var(--ink-3);padding-left:4px}
.cal-legend{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:12px 2px 0;font-size:13px;color:var(--ink-2)}
.lg{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;margin-right:6px;vertical-align:-6px}
.lg svg{width:13px;height:13px}
.lg.hol{background:var(--bad-soft);color:var(--bad)}.lg.task{background:var(--info-soft);color:var(--info)}.lg.leave{background:var(--warn-soft);color:var(--warn)}
.cal-day{margin-top:16px}
.cal-day-hol{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cal-day .card-head .btn svg{width:15px;height:15px;margin-right:6px;vertical-align:-3px}
.ev-ic{display:inline-grid;vertical-align:-2px;margin-right:5px}
.ev-ic svg{width:12px;height:12px}
.ev-date.ev-hol{background:var(--bad)}
.cal-sub{border-top:1px solid var(--line-2)}
@media (max-width:700px){.cal-card .cal-cell{min-height:70px;padding:4px}.cal-tag .ct-ic{display:none}.cal-card .cal-tag{font-size:10.5px;padding:1px 4px}.cal-title b{font-size:18px}}

/* ---- Workforce attendance (24 Oct 2026): the kinds of day, waiting for approval, a manager's dropdowns ---- */
.cal-tag.duty{background:var(--violet-soft);color:var(--violet)}
.cal-tag.wfh{background:var(--info-soft);color:var(--info)}
.cal-tag.pend{background:transparent;border:1px dashed currentColor}
.cal-tag.rej{text-decoration:line-through;opacity:.7}
.cal-dot.duty{background:var(--violet)}.cal-dot.wfh{background:var(--info)}.cal-dot.pend{background:transparent;border:1.5px dashed var(--warn)}
.att-set{white-space:nowrap}
.att-set select{min-height:32px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:4px 8px;margin-right:6px;font:inherit;font-size:13px}
.input.sm{min-height:32px;padding:4px 10px;font-size:13px}
.doc-row{gap:10px}

/* =====================================================================================================
   App feel (24 Oct 2026, Aswin: "the best interface on mobile and desktop, like an application"):
   press feedback, a soft page fade, no double-tap zoom on inputs, a bottom tab bar and bottom sheets on phones,
   and a profile page with everything the admin set.
   ===================================================================================================== */
html{-webkit-tap-highlight-color:transparent}
body{overscroll-behavior-y:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,.btn,a,[data-day],[data-open-project]{touch-action:manipulation}
.btn{transition:background .15s,border-color .15s,box-shadow .15s,transform .08s}
.btn:active:not(:disabled),.mcard:active,.proj-row:active,.toolcard:active{transform:scale(.97)}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.page>section:not([hidden]){animation:pageIn .22s ease both}
@keyframes pageIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* moving between pages (27 Oct 2026): forward slides in from the right, back from the left */
.page{overflow-x:clip}
.page>section.pg-fwd:not([hidden]){animation:pgFwd .28s cubic-bezier(.2,.75,.25,1) both}
.page>section.pg-back:not([hidden]){animation:pgBack .28s cubic-bezier(.2,.75,.25,1) both}
.topbar.pg-fwd>div,.topbar.pg-back>div{animation:pgTitle .3s ease both}
@keyframes pgFwd{from{opacity:0;transform:translateX(32px)}to{opacity:1;transform:none}}
@keyframes pgBack{from{opacity:0;transform:translateX(-32px)}to{opacity:1;transform:none}}
@keyframes pgTitle{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.page>section:not([hidden]),.page>section.pg-fwd,.page>section.pg-back,.topbar>div{animation:none!important}}
/* the tools inside the console: the frame fills the window under the page bar */
body.tool-mode{overflow:hidden}
body.tool-mode .topbar{padding:10px 32px 10px!important}
body.tool-mode .topbar h1{font-size:19px}
body.tool-mode footer{display:none}
#page-tool{position:fixed;left:0;right:0;z-index:5;background:var(--bg);border-top:1px solid var(--line)}
#page-tool.pg-fwd,#page-tool.pg-back{animation-name:pageIn}
#page-tool.away{visibility:hidden;pointer-events:none;z-index:-1;animation:none!important}
.tool-frames{position:relative;width:100%;height:100%}
.tool-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:var(--bg);opacity:0;transition:opacity .25s}
.tool-frame.ready{opacity:1}
.tool-wait{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--ink-2);font-weight:600}
.tool-wait .spin{width:20px;height:20px;border-radius:50%;border:2.5px solid var(--line);border-top-color:var(--info);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (max-width:900px){body.tool-mode .topbar{padding:8px 12px!important}body.tool-mode .topbar h1{font-size:17px}body.tool-mode .topbar .crumb{display:none}}
.gnav{position:sticky;top:0;z-index:40}

/* ---- the phone's tab bar ---- */
.tabbar{display:none}
@media (max-width:900px){
  .tabbar{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);position:fixed;left:0;right:0;bottom:0;z-index:60;
    background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -10px 28px -20px rgba(16,24,40,.4)}
  .tabbar:empty,#app[hidden] ~ .tabbar{display:none!important}
  .tabbar a,.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:54px;min-width:0;border:0;background:none;
    color:var(--ink-3);font:600 11px/1.2 var(--font);text-decoration:none;border-radius:14px;cursor:pointer;padding:4px 2px}
  .tabbar a:hover{text-decoration:none}
  .tabbar .tb-ic{position:relative;display:grid;place-items:center;width:48px;height:30px;border-radius:999px;transition:background .18s,color .18s}
  .tabbar svg{width:21px;height:21px}
  .tabbar .on{color:var(--navy)}
  .tabbar .on .tb-ic{background:var(--info-soft)}
  .tabbar a:active .tb-ic,.tabbar button:active .tb-ic{transform:scale(.92)}
  .tabbar .tb-ic .cnt{position:absolute;top:-3px;right:4px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--bad);color:#fff;font-size:10px;font-weight:700;line-height:17px;display:grid;place-items:center;border:2px solid var(--surface)}
  .tabbar .tb-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .modrow{display:none!important}
  .tb-right .tb-home{display:none!important}
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  #toasts{bottom:calc(86px + env(safe-area-inset-bottom))!important}
  .clk-alarm{bottom:calc(86px + env(safe-area-inset-bottom))!important}
  input,select,textarea{font-size:16px!important}
  .btn{min-height:44px}
  .btn.sm{min-height:36px}
  footer{padding-bottom:8px}
}
@media (max-width:700px){
  .card .tbl{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* ---- forms and panels open as a bottom sheet on phones ---- */
@media (max-width:640px){
  html body .drawer{top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;height:auto!important;max-height:92vh!important;
    border-radius:22px 22px 0 0!important;border:0!important;transform:translateY(100%)!important;opacity:1!important;transition:transform .3s cubic-bezier(.2,.8,.2,1)!important}
  html body .drawer.show{transform:translateY(0)!important}
  html body .drawer-head{position:relative;padding-top:24px}
  html body .drawer-head::before{content:"";position:absolute;top:9px;left:50%;width:42px;height:5px;margin-left:-21px;border-radius:999px;background:var(--line)}
  html body .drawer-body{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  html body .drawer-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
}

/* ---- More (phones) ---- */
.more-list{display:flex;flex-direction:column;margin:-6px -6px}
.more-row{display:flex;align-items:center;gap:14px;padding:13px 12px;border:0;background:none;border-radius:12px;color:var(--ink);font:500 15px var(--font);text-decoration:none;text-align:left;cursor:pointer;width:100%}
.more-row:hover,.more-row:active{background:var(--surface-2);text-decoration:none}
.more-row svg{width:20px;height:20px;color:var(--ink-2);flex:none}
.more-row .cnt{margin-left:auto}
.more-row.danger,.more-row.danger svg{color:var(--bad)}
.more-sep{height:1px;background:var(--line-2);margin:6px 8px}

/* ---- the profile ---- */
.profile-grid{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:20px;align-items:start}
.profile-grid .profile-projects{grid-column:1/-1}
.profile-card{overflow:hidden;padding:0}
.profile-cover{height:96px;background:linear-gradient(120deg,#1B2632 0%,#1767F0 65%,#6B3FD8 100%)}
.profile-card .card-body{padding:0 22px 22px}
.profile-head{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:-46px}
.profile-head .avatar{border:4px solid var(--surface);box-shadow:var(--card-shadow)}
.profile-head h2{font-size:22px;font-weight:700;margin:6px 0 0;color:var(--ink)}
.profile-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.profile-contact{display:flex;flex-direction:column;gap:10px;margin:18px 0;font-size:14px}
.profile-contact a{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;word-break:break-all}
.profile-contact svg{width:17px;height:17px;color:var(--ink-3);flex:none}
.profile-acts{display:flex;flex-wrap:wrap;gap:8px}
.profile-kv{grid-template-columns:150px 1fr;row-gap:14px}
.proj-list{display:flex;flex-direction:column}
.proj-row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 20px;border-top:1px solid var(--line-2);color:inherit;text-decoration:none;transition:background .12s}
.proj-row:hover{background:var(--surface-2);text-decoration:none}
.pr-thumb{width:56px;height:42px;border-radius:10px;background:var(--track) center/cover no-repeat;display:grid;place-items:center;font-weight:700;color:var(--ink-3)}
.pr-tx{display:flex;flex-direction:column;min-width:0}
.pr-tx b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.pr-tags{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:900px){
  .profile-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .profile-kv{grid-template-columns:118px minmax(0,1fr)}
  .proj-row{grid-template-columns:48px minmax(0,1fr);padding:12px 16px}
  .pr-thumb{width:48px;height:38px}
  .pr-tags{grid-column:2;justify-content:flex-start}
}
.profile-grid .card-head{flex-wrap:wrap;gap:4px 12px}
.profile-grid .card-head h2{white-space:nowrap}

/* ---- Reports: Generate a file (24 Oct 2026) ---- */
.gen-card{margin-bottom:16px}
.gen-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:center;padding:8px 0}
.gen-lbl{font-size:13px;font-weight:600;color:var(--ink-2)}
.gen-row .seg{flex-wrap:wrap}
.gen-row .checks{display:flex;flex-wrap:wrap;gap:8px}
.gen-row .check.off{opacity:.55}
.gen-card .btn svg{width:16px;height:16px;margin-right:6px;vertical-align:-3px}
@media (max-width:700px){.gen-row{grid-template-columns:minmax(0,1fr);gap:6px}.gen-lbl:empty{display:none}}

/* ---- No access yet: the admin's contact (24 Oct 2026) ---- */
.na-contact{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px 0 18px;padding:14px 16px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}
.na-contact>span{font-size:12.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.na-contact>a{font-size:20px;color:var(--ink);text-decoration:none;letter-spacing:.01em}
.na-acts{display:flex;gap:8px;margin-top:6px}
.na-acts .btn{min-width:110px;justify-content:center}
.na-contact .na-name{font-size:16px;font-weight:600;color:var(--ink)}

/* ---- the project map workspace (28 Oct 2026, laid out after PIX4Dcloud): flight days on top, layers on the left,
   map tools along the bottom, coordinates underneath ---- */
.ws{display:flex;flex-direction:column;height:620px;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow-2)}
.ws>.timeline{flex:none;padding:8px 12px;border-bottom:1px solid var(--line)}
.ws-body{flex:1;min-height:0;display:flex;position:relative}
.ws-panel{width:310px;flex:none;display:flex;flex-direction:column;min-height:0;background:var(--surface);border-right:1px solid var(--line);transition:margin-left .22s ease}
.ws.lyr-hide .ws-panel{margin-left:-311px}
.ws-ph{display:flex;align-items:center;gap:2px;padding:12px 8px 8px 16px}
.ws-pt{flex:1;display:flex;align-items:center;gap:9px;font-weight:700;font-size:15px;color:var(--ink)}
.ws-pt svg{width:19px;height:19px}
.ws-ib{width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:var(--ink-2);display:grid;place-items:center;cursor:pointer}
.ws-ib:hover{background:var(--surface-2);color:var(--ink)}
.ws-ib svg{width:18px;height:18px}
.ws-q{display:flex;align-items:center;gap:8px;margin:0 14px 8px;padding:0 10px;height:38px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink-3)}
.ws-q:focus-within{border-color:var(--info)}
.ws-q svg{width:16px;height:16px;flex:none}
.ws-q input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:13.5px;color:var(--ink)}
.ws-tree{flex:1;min-height:0;overflow-y:auto;padding:2px 8px 10px}
.ws-pf{flex:none;padding:10px 16px 12px;border-top:1px solid var(--line-2);font-size:12px;line-height:1.45;color:var(--ink-3)}
.lyr+.lyr{border-top:1px solid var(--line-2)}
.lyr-row{display:flex;align-items:center;gap:8px;min-height:46px;padding:4px 2px;border-radius:9px;cursor:pointer;user-select:none}
.lyr-row:hover{background:var(--surface-2)}
.lyr-row.kid{min-height:38px;padding-left:24px}
.lyr-row.empty{cursor:default;opacity:.5}
.lyr-row.empty:hover{background:transparent}
.lyr-kids{padding-bottom:6px}
.lyr-car{width:22px;height:22px;flex:none;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ink-3);display:grid;place-items:center;cursor:pointer}
button.lyr-car:hover{background:var(--track);color:var(--ink)}
.lyr-car svg{width:15px;height:15px;transition:transform .18s}
.lyr-car.open svg{transform:rotate(90deg)}
.lyr-row input[type=checkbox]{width:17px;height:17px;flex:none;margin:0;accent-color:var(--info);cursor:pointer}
.lsw{width:16px;height:16px;flex:none;border-radius:4px;display:inline-block;position:relative;box-sizing:border-box}
.lsw.line{border:2.5px solid var(--c)}
.lsw.fill{background:var(--c);opacity:.8}
.lsw.dot{width:13px;height:13px;margin:0 1.5px;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(0,0,0,.18)}
.lsw.path{background:linear-gradient(135deg,transparent 42%,var(--c) 42%,var(--c) 58%,transparent 58%),#1B2632}
.lsw.text{border:1px solid var(--line)}
.lsw.text::after{content:"12";position:absolute;inset:0;display:grid;place-items:center;font-size:8.5px;font-weight:800;color:var(--ink-2)}
.lyr-nm{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.lyr-nm b{font-weight:600;font-size:13.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lyr-row.kid .lyr-nm b{font-weight:500;font-size:13px}
.lyr-nm small{font-size:11.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lyr-ct{flex:none;font-size:12px;color:var(--ink-3);white-space:nowrap;font-variant-numeric:tabular-nums}
.lyr-dl{width:30px;height:30px;flex:none;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ink-3);display:grid;place-items:center;cursor:pointer;opacity:0;transition:opacity .15s,background .15s}
.lyr-row:hover .lyr-dl,.lyr-dl:focus-visible{opacity:1}
.lyr-dl:hover{background:var(--info-soft);color:var(--info)}
.lyr-dl svg{width:16px;height:16px}
.lyr-dl.ph{visibility:hidden}
@media (hover:none){.lyr-dl{opacity:1}}
.ws-map{flex:1;min-width:0;position:relative;background:#13233D;isolation:isolate}
.ws-map #pmap{position:absolute;inset:0;height:auto;z-index:0}
.ws-map #pmap.measuring{cursor:crosshair}
.ws-show{position:absolute;top:12px;left:12px;z-index:500;display:none;align-items:center;gap:8px;height:40px;padding:0 14px;border:0;border-radius:10px;background:var(--surface);color:var(--ink);font:600 13.5px var(--font);box-shadow:0 6px 18px rgba(0,0,0,.28);cursor:pointer}
.ws-show svg{width:18px;height:18px}
.ws.lyr-hide .ws-show{display:flex}
.ws-bar{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:500;display:flex;align-items:center;gap:2px;padding:5px;border-radius:13px;background:rgba(22,32,44,.92);box-shadow:0 8px 24px rgba(0,0,0,.32);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.ws-bar button{width:40px;height:40px;padding:0;border:0;border-radius:9px;background:transparent;color:#E6EDF5;display:grid;place-items:center;cursor:pointer}
.ws-bar button:hover{background:rgba(255,255,255,.12)}
.ws-bar button.on{background:#2563EB;color:#fff}
.ws-bar button svg{width:19px;height:19px}
.ws-bar .sep{width:1px;height:24px;margin:0 4px;background:rgba(255,255,255,.18)}
.ws-bar .base{width:auto;display:flex;align-items:center;gap:8px;padding:0 12px 0 5px;font:600 12.5px var(--font)}
.ws-bar .base i{width:30px;height:30px;border-radius:7px;border:1.5px solid rgba(255,255,255,.6);background:linear-gradient(135deg,#55703f,#2c4a2a 55%,#7a8a63)}
.ws-bar .base.streets i{background:linear-gradient(135deg,#f4f1e8 0 40%,#f6c26b 40% 47%,#e9e5da 47% 70%,#a7cbe8 70%)}
.ws-meas{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:510;display:flex;align-items:center;gap:12px;max-width:calc(100% - 24px);padding:8px 8px 8px 14px;border-radius:11px;background:rgba(22,32,44,.94);color:#fff;font-size:13px;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.32)}
.ws-meas button{flex:none;border:0;border-radius:8px;background:rgba(255,255,255,.15);color:#fff;font:600 12.5px var(--font);padding:6px 11px;cursor:pointer}
.ws-meas button:hover{background:rgba(255,255,255,.25)}
.ws-map .map-empty{z-index:400}
.ws-status{flex:none;display:flex;align-items:center;gap:20px;height:34px;padding:0 16px;border-top:1px solid var(--line);font-size:12px;color:var(--ink-2);white-space:nowrap;overflow:hidden;font-variant-numeric:tabular-nums}
.ws-crs{font-weight:600;color:var(--ink)}
.ws-note{margin-left:auto;overflow:hidden;text-overflow:ellipsis;color:var(--ink-3)}
.lyr-menu{position:fixed;z-index:3000;width:260px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:0 18px 44px rgba(16,24,40,.24);animation:pageIn .14s ease both}
.lm-h{display:flex;align-items:center;gap:10px;padding:8px 8px 10px;margin-bottom:4px;border-bottom:1px solid var(--line-2)}
.lm-h>div{min-width:0}
.lm-h b{display:block;font-size:13.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lm-h small{display:block;font-size:12px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lm-l{padding:8px 8px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.lyr-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 8px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:600 13.5px var(--font);text-align:left;cursor:pointer}
.lyr-menu button:hover{background:var(--surface-2)}
.lyr-menu button small{margin-left:auto;font-weight:400;font-size:12px;color:var(--ink-3)}
.lyr-menu button svg{width:17px;height:17px;flex:none;color:var(--ink-3)}
.lyr-menu button:disabled{opacity:.6}
@media (max-width:900px){
  .ws{border-radius:12px}
  .ws-panel{position:absolute;top:0;bottom:0;left:0;z-index:600;width:min(310px,88%);margin-left:-105%;box-shadow:10px 0 30px rgba(0,0,0,.28)}
  .ws.lyr-open .ws-panel{margin-left:0}
  .ws.lyr-hide .ws-panel{margin-left:-105%}
  .ws-show{display:flex}
  .ws.lyr-open .ws-show{display:none}
  .ws-bar{bottom:10px;padding:4px}
  .ws-bar button{width:36px;height:36px}
  .ws-bar .base span{display:none}
  .ws-bar .base{padding:0 3px}
  .ws-status{gap:12px;padding:0 12px}
  .ws-status .ws-crs,.ws-status .ws-note{display:none}
  .ws-status #ws-utm{display:none}
  .ws-pf{display:none}
}

/* ---- the map workspace as a GIS (28 Oct 2026): a dark rail of panels and tools, map tools on the right,
   scale bar and north arrow, attribute popups ---- */
.ws-rail{width:72px;flex:none;display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:8px 6px;background:#1B2632;overflow-y:auto;scrollbar-width:none;z-index:2}
.ws-rail::-webkit-scrollbar{display:none}
.ws-rail .rl{display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 2px 5px;border:0;border-radius:10px;background:transparent;color:#AEBBCB;font:600 10.5px/1.15 var(--font);text-align:center;text-decoration:none;cursor:pointer;position:relative}
.ws-rail .rl:hover{background:rgba(255,255,255,.08);color:#fff;text-decoration:none}
.ws-rail .rl.on{background:rgba(56,217,245,.14);color:#fff}
.ws-rail .rl.on::before{content:"";position:absolute;left:-6px;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:#38D9F5}
.ws-rail .rl.off{opacity:.38;cursor:not-allowed}
.ws-rail .rl.off:hover{background:transparent;color:#AEBBCB}
.ws-rail .rl-ic{width:30px;height:30px;display:grid;place-items:center;border-radius:9px}
.ws-rail .rl-ic svg{width:20px;height:20px}
.ws-rail .rl.tool .rl-ic{background:rgba(255,255,255,.06)}
.ws-rail .tool-logo.rlg{width:30px;height:30px;border-radius:9px;display:block;object-fit:cover;background:#fff}
.ws-rail .rl-l{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.ws-rail .rl-sep{height:1px;margin:6px 6px 3px;background:rgba(255,255,255,.12);flex:none}
.ws-rail .rl-cap{font:700 9.5px var(--font);letter-spacing:.08em;text-transform:uppercase;color:#6F8196;text-align:center;padding:2px 0 4px}
.ws.no-panel .ws-panel{display:none}
.ws-sec{display:flex;flex-direction:column;min-height:0;flex:1}
.ws-sec[hidden]{display:none}
.ws-scroll{flex:1;min-height:0;overflow-y:auto;padding:4px 16px 16px}
/* legend */
.lg-g{padding:10px 0 4px;border-bottom:1px solid var(--line-2)}
.lg-g:last-child{border-bottom:0}
.lg-t{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin-bottom:6px}
.lg-r{display:flex;align-items:center;gap:10px;padding:4px 0;font-size:13px;color:var(--ink)}
/* project summary */
.if-prog{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--bg);margin-top:4px}
.if-prog b{font:700 26px/1 'Barlow Semi Condensed',var(--font);color:var(--ink)}
.if-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.if-f{padding:10px 12px;border:1px solid var(--line);border-radius:11px;display:flex;flex-direction:column;gap:2px;min-width:0}
.if-f span{font-size:11.5px;color:var(--ink-3);font-weight:600}
.if-f b{font-size:17px;color:var(--ink);font-variant-numeric:tabular-nums}
.if-f small{font-size:11px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.if-kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:14px 2px 0;font-size:13px}
.if-kv dt{color:var(--ink-3);font-weight:600}
.if-kv dd{margin:0;color:var(--ink);word-break:break-word}
.if-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
/* map tools on the right, base map, north arrow, scale */
.ws-rt{position:absolute;top:12px;right:12px;z-index:500;display:flex;flex-direction:column;gap:8px}
.rt-g{display:flex;flex-direction:column;background:var(--surface);border-radius:11px;box-shadow:0 4px 16px rgba(0,0,0,.22);overflow:hidden}
.rt-g button{width:40px;height:40px;padding:0;border:0;background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer}
.rt-g button+button{border-top:1px solid var(--line-2)}
.rt-g button:hover{background:var(--surface-2)}
.rt-g button.on{background:#2563EB;color:#fff}
.rt-g button svg{width:19px;height:19px}
.ws-base{position:absolute;left:12px;bottom:34px;z-index:500;display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 4px 5px;border:0;border-radius:11px;background:var(--surface);color:var(--ink);box-shadow:0 4px 16px rgba(0,0,0,.25);font:600 10.5px var(--font);cursor:pointer}
.ws-base i{width:54px;height:40px;border-radius:8px;background:linear-gradient(135deg,#55703f,#2c4a2a 55%,#7a8a63)}
.ws-base.streets i{background:linear-gradient(135deg,#f4f1e8 0 40%,#f6c26b 40% 47%,#e9e5da 47% 70%,#a7cbe8 70%)}
.ws-base:hover{box-shadow:0 0 0 2px #38D9F5,0 4px 16px rgba(0,0,0,.25)}
.ws-north{position:absolute;right:66px;top:12px;z-index:500;width:34px;height:44px;border-radius:10px;background:var(--surface);color:#EF4444;box-shadow:0 4px 16px rgba(0,0,0,.22);display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
.ws-north svg{width:16px;height:18px}
.ws-north b{font:800 10px var(--font);color:var(--ink);margin-top:1px}
.ws-map .leaflet-control-scale{margin-left:76px!important;margin-bottom:8px!important}
.ws-map .leaflet-control-scale-line{background:rgba(255,255,255,.88);border-color:#1B2632;color:#1B2632;font:600 11px var(--font)}
.ws.is-full{height:100vh!important;border-radius:0;border:0}
.ws .ws-bar,.ws .ws-show{display:none!important}
/* attribute popup */
.ws-pop .leaflet-popup-content-wrapper{border-radius:12px;padding:0;box-shadow:0 14px 36px rgba(16,24,40,.28)}
.ws-pop .leaflet-popup-content{margin:0;width:auto!important;min-width:220px}
.ws-attr{font:13px var(--font);color:#1B2632}
.ws-attr .wa-h{padding:10px 14px;font-weight:700;font-size:14px;border-bottom:1px solid #E5EAF0;background:#F6F8FB;border-radius:12px 12px 0 0;padding-right:30px}
.ws-attr table{border-collapse:collapse;width:100%;margin:4px 0 6px}
.ws-attr th{text-align:left;font-weight:600;color:#6B7A8C;padding:5px 10px 5px 14px;white-space:nowrap;vertical-align:top;font-size:12px}
.ws-attr td{padding:5px 14px 5px 0;color:#1B2632;font-variant-numeric:tabular-nums;word-break:break-word}
.ws-attr tr+tr th,.ws-attr tr+tr td{border-top:1px solid #F0F3F7}
@media (max-width:900px){
  .ws-rail{width:56px;padding:6px 4px}
  .ws-rail .rl-l{font-size:9px}
  .ws-rail .rl-cap{display:none}
  .ws-rail .rl-ic,.ws-rail .tool-logo.rlg{width:30px;height:30px}
  .ws-panel{left:56px!important;width:min(300px,calc(100% - 64px))!important;margin-left:0!important}
  .ws.no-panel .ws-panel{display:none}
  .ws-north{display:none}
  .ws-base{bottom:30px;left:8px}
  .ws-base i{width:42px;height:32px}
  .ws-base span{display:none}
  .ws-rt{top:8px;right:8px;gap:6px}
  .rt-g button{width:36px;height:36px}
  .ws-map .leaflet-control-scale{margin-left:60px!important}
}

/* ---- the project is its map (28 Oct 2026): fixed under the page bar on every screen; the old header and tabs are
   gone; the project's pages open in a wide panel; the flight days float over the map ---- */
body.pmap-mode{overflow:hidden}
body.pmap-mode footer,body.pmap-mode #phead,body.pmap-mode #ptabs{display:none!important}
body.pmap-mode .topbar{padding:10px 32px 10px!important}
body.pmap-mode .topbar h1{font-size:19px}
#ptab-map{position:fixed;left:0;right:0;top:120px;bottom:0;z-index:5;background:var(--bg)}
#ptab-map .ws{height:100%!important;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
#page-project:not([hidden]),#page-project.pg-fwd:not([hidden]),#page-project.pg-back:not([hidden]),#page-flightlog:not([hidden]),#page-flightlog.pg-fwd:not([hidden]),#page-flightlog.pg-back:not([hidden]){animation:pgFade .22s ease both}
@keyframes pgFade{from{opacity:0}to{opacity:1}}
/* wide panel: the project's pages */
.ws-panel.wide{width:min(660px,54vw)}
.ws.lyr-hide .ws-panel.wide{margin-left:0}
.ws-data{padding:6px 16px 20px;background:var(--bg)}
.ws-data>div{display:block}
.ws-data .two{grid-template-columns:minmax(0,1fr)!important}
.ws-data .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.ws-data .tbl-wrap{overflow-x:auto}
.ws-data .card{margin-bottom:14px}
/* counts on the rail */
.ws-rail .rl-ic{position:relative}
.ws-rail .rl-n{position:absolute;top:-4px;right:-9px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#38D9F5;color:#0B1526;font:800 9.5px/17px var(--font);font-style:normal;text-align:center;box-shadow:0 0 0 2px #1B2632}
/* the flight days, floating over the map */
.ws-days.timeline{position:absolute;top:12px;left:12px;right:120px;z-index:500;display:flex;gap:6px;overflow-x:auto;padding:0;border:0;background:transparent;scrollbar-width:none;pointer-events:none}
.ws-days.timeline::-webkit-scrollbar{display:none}
.ws-days.timeline>*{pointer-events:auto}
.ws-days .tl-lbl{flex:none;align-self:center;height:32px;line-height:32px;padding:0 12px;border-radius:999px;background:rgba(22,32,44,.9);color:#AEBBCB;font-size:12px;font-weight:600;margin:0}
.ws-days .tl{flex:none;height:32px;border:1px solid rgba(255,255,255,.14);background:rgba(22,32,44,.9);color:#E6EDF5;border-radius:999px;padding:0 12px;font:600 12.5px var(--font);box-shadow:0 4px 14px rgba(0,0,0,.25);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.ws-days .tl:hover{border-color:#38D9F5}
.ws-days .tl.on{background:#fff;color:#0B1526;border-color:#fff}
.ws-meas{top:12px}
.ws-north{top:auto;bottom:34px;right:12px}
@media (max-width:900px){
  body.pmap-mode .topbar{padding:8px 12px!important}
  body.pmap-mode .topbar h1{font-size:17px}
  body.pmap-mode .topbar .crumb{display:none}
  body.pmap-mode .topbar{flex-wrap:nowrap!important;gap:8px}
  body.pmap-mode .topbar>div:not(.acts){min-width:0;flex:1}
  body.pmap-mode .topbar h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.pmap-mode .topbar .acts{flex:none;width:auto!important;margin:0!important;gap:6px}
  body.pmap-mode .topbar .acts .btn{height:34px;padding:0 11px;font-size:13px}
  .ws-panel.wide{width:calc(100% - 56px)!important}
  .ws-days.timeline{top:8px;left:8px;right:56px}
  .ws-days .tl-lbl{display:none}
  .ws-days .tl{height:30px;padding:0 10px;font-size:12px}
  .ws-meas{top:8px}
  .ws-data .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ---- the tools dock (28 Oct 2026): the platform's tools in their own place, at the foot of the map ---- */
.ws-dock{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:520;display:flex;align-items:flex-end;gap:4px;padding:6px;border-radius:16px;background:rgba(22,32,44,.92);box-shadow:0 10px 30px rgba(0,0,0,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.ws-dock[hidden]{display:none}
.ws-dock .dk{width:68px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:6px 2px 5px;border-radius:11px;color:#C9D4E1;text-decoration:none;font:600 10.5px/1.15 var(--font);text-align:center;transition:background .15s,transform .15s}
.ws-dock a.dk:hover{background:rgba(255,255,255,.1);color:#fff;transform:translateY(-3px);text-decoration:none}
.ws-dock a.dk:active{transform:scale(.95)}
.ws-dock .dk.off{opacity:.38;cursor:not-allowed}
.ws-dock .dk-ic{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.08);overflow:hidden}
.ws-dock .dk-ic .tool-logo{width:40px;height:40px;border-radius:11px;display:block;object-fit:cover;background:#fff}
.ws-dock .dk-ic>.rl-ic{width:40px;height:40px;display:grid;place-items:center}
.ws-dock .dk-ic svg{width:22px;height:22px}
.ws-dock .dk-l{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-map .leaflet-control-scale{margin-left:76px!important;margin-bottom:8px!important}
@media (max-width:900px){
  .ws-dock{bottom:20px;gap:2px;padding:4px;border-radius:14px}
  .ws-dock .dk{width:52px;gap:3px;padding:4px 1px;font-size:9px}
  .ws-dock .dk-ic,.ws-dock .dk-ic .tool-logo,.ws-dock .dk-ic>.rl-ic{width:32px;height:32px;border-radius:9px}
  .ws-dock .dk-ic svg{width:19px;height:19px}
  .ws-base{bottom:30px}
  .ws-map .leaflet-control-scale{margin-left:60px!important;margin-bottom:8px!important}
}

/* ---- legend at the map's bottom right, under the north arrow; the admin's map style editor in it (29 Oct 2026) ---- */
.ws-north{bottom:82px!important;right:15px!important}
.ws-legbtn{position:absolute;right:12px;bottom:30px;z-index:520;width:40px;height:40px;padding:0;border:0;border-radius:11px;background:var(--surface);color:var(--ink);display:grid;place-items:center;box-shadow:0 4px 16px rgba(0,0,0,.25);cursor:pointer}
.ws-legbtn:hover{background:var(--surface-2)}
.ws-legbtn.on{background:#2563EB;color:#fff}
.ws-legbtn svg{width:19px;height:19px}
.ws-leg{position:absolute;right:60px;bottom:30px;z-index:530;width:290px;max-height:calc(100% - 60px);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:0 14px 40px rgba(0,0,0,.3);transform-origin:bottom right;animation:legIn .16s ease both}
.ws-leg[hidden]{display:none}
@keyframes legIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
.ws-leg-h{display:flex;align-items:center;gap:6px;padding:10px 6px 8px 14px;border-bottom:1px solid var(--line-2)}
.ws-leg-h b{flex:1;font-size:14px;color:var(--ink)}
.ws-leg-s{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:5px 10px;font:600 12.5px var(--font);cursor:pointer}
.ws-leg-s:hover{border-color:var(--info);color:var(--info)}
.ws-leg-b{flex:1;min-height:0;overflow-y:auto;padding:2px 14px 12px}
.ms-g{padding:10px 0 6px;border-bottom:1px solid var(--line-2)}
.ms-r{display:flex;align-items:center;gap:10px;padding:4px 0;font-size:12.5px;color:var(--ink-2)}
.ms-r>span:first-child{width:52px;flex:none;font-weight:600}
.ms-r input[type=color]{width:38px;height:26px;padding:0;border:1px solid var(--line);border-radius:6px;background:none;cursor:pointer}
.ms-r input[type=range]{flex:1;min-width:0;accent-color:var(--info)}
.ms-r em{width:42px;flex:none;text-align:right;font-style:normal;font-variant-numeric:tabular-nums;color:var(--ink)}
.ms-auto{display:flex;align-items:center;gap:5px;font-size:12px}
.ms-acts{display:flex;gap:6px;align-items:center;position:sticky;bottom:-12px;margin:0 -14px;padding:10px 14px 12px;background:var(--surface);border-top:1px solid var(--line-2)}
@media (max-width:900px){
  .ws-legbtn{right:8px;bottom:30px;width:36px;height:36px}
  .ws-leg{right:8px;bottom:74px;width:min(290px,calc(100% - 16px));max-height:calc(100% - 90px)}
}

/* the map style page of the Layers panel (29 Oct 2026) */
.ws-sec[data-sec=style] .ws-ph{padding-left:8px}
.ws-sec[data-sec=style] .ws-ph .ws-ib svg{width:18px;height:18px}
#ws-style-b .ms-acts{margin:0 -16px;bottom:-16px;padding:10px 16px 14px}
.ms-g.focus{background:var(--info-soft);margin:0 -16px;padding:10px 16px 6px;border-radius:0}

/* ---- map annotations (29 Oct 2026, after PIX4Dcloud): drawing tools, labels, corner handles, the panel on the right ---- */
.ann-label{background:rgba(22,32,44,.88);color:#fff;border:0;border-radius:6px;padding:2px 7px;font:600 11.5px var(--font);box-shadow:0 2px 8px rgba(0,0,0,.3);white-space:nowrap}
.ann-label.on{background:#2563EB}
.ann-label::before{display:none}
.ann-v{background:#fff;border:2px solid #1B2632;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.4);cursor:grab}
.ann-mid{background:rgba(255,255,255,.85);border:1.5px solid #1B2632;border-radius:50%;color:#1B2632;font:800 12px/13px var(--font);text-align:center;cursor:copy}
.ann-pin{filter:drop-shadow(0 2px 3px rgba(0,0,0,.4))}
.ann-pin svg{width:28px;height:36px;display:block}
.ann-hint{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:515;display:flex;align-items:center;gap:8px;max-width:calc(100% - 140px);padding:7px 7px 7px 14px;border-radius:11px;background:rgba(22,32,44,.94);color:#fff;font-size:12.5px;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.32)}
.ann-hint[hidden]{display:none}
.ann-hint span{overflow:hidden;text-overflow:ellipsis}
.ann-hint button{flex:none;border:0;border-radius:8px;background:rgba(255,255,255,.15);color:#fff;font:600 12.5px var(--font);padding:6px 11px;cursor:pointer}
.ann-hint button[data-ah=finish]{background:#2563EB}
.ws-ann{position:absolute;top:0;right:0;bottom:0;z-index:560;width:320px;display:flex;flex-direction:column;background:var(--surface);border-left:1px solid var(--line);box-shadow:-10px 0 30px rgba(0,0,0,.18)}
.ws-ann[hidden]{display:none}
.ws.ann-open .ws-rt{right:332px}
.ws.ann-open .ws-north{right:335px!important}
.ws.ann-open .ws-legbtn{right:332px}
.ws.ann-open .ws-leg{right:380px}
.an-h{display:flex;align-items:center;gap:4px;padding:12px 8px 10px 14px;border-bottom:1px solid var(--line-2)}
.an-h b{flex:1;font-size:15px;color:var(--ink)}
.an-ic{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:var(--surface-2)}
.an-ic svg{width:18px;height:18px}
.an-b{flex:1;min-height:0;overflow-y:auto;padding:12px 16px 16px}
.an-f{display:flex;flex-direction:column;gap:5px;margin-bottom:14px}
.an-f>span{font-size:12px;font-weight:600;color:var(--ink-3)}
.an-f input:not([type=color]),.an-f textarea{width:100%;border:0;border-bottom:1.5px solid var(--line);background:transparent;color:var(--ink);font:500 14.5px var(--font);padding:6px 0;outline:0;resize:vertical}
.an-f input:focus,.an-f textarea:focus{border-bottom-color:var(--info)}
.an-f input:disabled,.an-f textarea:disabled{color:var(--ink-2)}
.an-cols{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.an-col{width:24px;height:24px;border-radius:50%;border:2px solid rgba(0,0,0,.15);cursor:pointer;padding:0}
.an-col.on{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--info)}
.an-col:disabled{cursor:default;opacity:.6}
.an-cols input[type=color]{width:28px;height:26px;padding:0;border:1px solid var(--line);border-radius:6px;background:none;cursor:pointer}
.an-mh{font-size:13px;font-weight:700;color:var(--ink);margin:4px 0 6px}
.an-r{display:flex;align-items:center;gap:10px;min-height:38px;border-bottom:1px solid var(--line-2);font-size:13px}
.an-r>span{width:96px;flex:none;color:var(--ink-3);font-weight:600}
.an-r>b{flex:1;color:var(--ink);font-variant-numeric:tabular-nums;font-size:14px}
.an-u{flex:none;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font:600 12.5px var(--font);padding:4px 6px;cursor:pointer}
.an-note{font-size:11.5px;color:var(--ink-3);margin:12px 0 0;line-height:1.45}
@media (max-width:900px){
  .ws-ann{top:auto;left:0;width:auto;height:58%;border-left:0;border-top:1px solid var(--line);border-radius:14px 14px 0 0;box-shadow:0 -10px 30px rgba(0,0,0,.25)}
  .ws.ann-open .ws-rt,.ws.ann-open .ws-legbtn{right:8px}
  .ann-hint{top:8px;max-width:calc(100% - 60px);font-size:11.5px}
}

/* ---- the Flight Log as a workspace (29 Oct 2026): the steps on the left, the day's flight on the map, fixed under the page bar ---- */
body.flog-mode{overflow:hidden}
body.flog-mode footer{display:none}
body.flog-mode .topbar{padding:10px 32px 10px!important}
body.flog-mode .topbar h1{font-size:19px}
.flws{position:fixed;left:0;right:0;top:120px;bottom:0;z-index:5;display:flex;background:var(--bg);border-top:1px solid var(--line)}
.flws-panel{width:min(520px,44vw);flex:none;overflow-y:auto;padding:14px 16px 24px;border-right:1px solid var(--line);background:var(--bg)}
.flws-panel>.card{margin-top:12px!important}
.flws-panel .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.flws-panel .form{grid-template-columns:minmax(0,1fr)!important}
.flws-panel .form select,.flws-panel .form input{max-width:100%}
.flws-map{flex:1;min-width:0;position:relative;display:flex;flex-direction:column;background:#13233D}
#flmap{flex:1;min-height:0}
.flws-map .ws-status{background:var(--surface)}
.flws-empty{position:absolute;inset:0 0 34px 0;z-index:450;display:grid;place-items:center;padding:30px;text-align:center;color:#DCE6F5;font-size:14px;pointer-events:none;background:rgba(10,20,35,.35)}
.flws-empty[hidden]{display:none}
.flws-legend{position:absolute;right:12px;bottom:46px;z-index:460;display:flex;flex-wrap:wrap;gap:6px 14px;max-width:calc(100% - 180px);padding:8px 12px;border-radius:11px;background:var(--surface);box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:12px;color:var(--ink)}
.flws-legend[hidden]{display:none}
.flws-legend span{display:flex;align-items:center;gap:6px}
@media (max-width:900px){
  body.flog-mode .topbar{padding:8px 12px!important}
  .flws{flex-direction:column}
  .flws-map{order:-1;flex:none;height:42%}
  .flws-panel{width:auto;flex:1;border-right:0;border-top:1px solid var(--line);padding:10px 12px 20px}
  .flws-legend{left:8px;right:8px;max-width:none;bottom:42px}
  .flws-map .ws-status #fl-utm{display:none}
}

/* ---- survey progress in the project header (28 Oct 2026) ---- */
.hprog{display:flex;flex-direction:column;gap:4px;min-width:230px;max-width:300px;padding:6px 12px;margin-right:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.hprog:hover{border-color:#2B8AFF}
.hprog-t{display:flex;align-items:baseline;justify-content:space-between;gap:10px;line-height:1.1}
.hprog-l{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2)}
.hprog-t b{font-size:15px;font-weight:800;color:#22C55E}
.hprog.none .hprog-t b{font-size:13px;color:var(--ink-2)}
.hprog-bar{display:block;height:6px;border-radius:3px;background:rgba(127,140,160,.25);overflow:hidden}
.hprog-bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#16A34A,#22C55E);transition:width .5s ease}
.hprog.done .hprog-bar i{background:#22C55E}
.hprog-s{font-size:11.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:900px){
  .hprog{min-width:0;width:96px;padding:4px 8px;gap:3px;margin-right:0}
  .hprog-l,.hprog-s{display:none}
  .hprog-t{justify-content:center}
  .hprog-t b{font-size:13px}
  .hprog.none .hprog-t b{font-size:11px}
}

/* ---- flown outside the area of interest (28 Oct 2026) ---- */
.pill.out-pill{margin-top:4px;background:rgba(239,68,68,.14);color:#DC2626;border:1px solid rgba(239,68,68,.45);font-weight:700;white-space:nowrap}
[data-theme="dark"] .pill.out-pill{color:#FCA5A5}
.note.out-note{background:rgba(239,68,68,.10);border:1px solid rgba(239,68,68,.45);color:var(--ink)}
.note.out-note b{color:#DC2626}
[data-theme="dark"] .note.out-note b{color:#FCA5A5}

/* ---- the Reports list (28 Oct 2026): fits the panel beside the map, Download always in view ---- */
.rpt-list{display:flex;flex-direction:column}
.rpt-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--line)}
.rpt-list .rpt-row:first-child{border-top:0}
.rpt-ic{flex:none;display:grid;place-items:center;width:34px;height:34px}
.rpt-ic svg{width:20px;height:20px}
.rpt-m{flex:1;min-width:0}
.rpt-n{display:block;font-size:14px;overflow-wrap:anywhere}
.rpt-note{font-size:12.5px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rpt-meta{font-size:12px;color:var(--ink-2);margin-top:3px}
.rpt-acts{flex:none;display:flex;gap:6px}
.rpt-acts .btn{display:inline-flex;align-items:center;gap:6px}
.rpt-acts .btn svg{width:15px;height:15px}
@media (max-width:560px){
  .rpt-row{flex-wrap:wrap;align-items:flex-start}
  .rpt-acts{width:100%;padding-left:46px}
  .rpt-acts .btn.primary{flex:1;justify-content:center}
}

/* ---- the map status bars: the coordinates on the right (28 Oct 2026); a passing note (loading photos...) on the left ---- */
.ws-status{justify-content:flex-end}
.ws-status .ws-note{order:-1;margin-left:0;margin-right:auto}

/* ---- a wide table's sideways scroll bar stays in sight (28 Oct 2026) ---- */
.hbar{position:sticky;bottom:0;z-index:6;overflow-x:auto;overflow-y:hidden;background:var(--surface);border-radius:0 0 8px 8px}
.hbar>div{height:1px}
.tbl-wrap.has-hbar{scrollbar-width:none}
.tbl-wrap.has-hbar::-webkit-scrollbar{display:none}

/* ---- the data drawer under the map (28 Oct 2026): the project's pages full width, the map above, as a GIS shows its
   attribute table ---- */
.ws-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}
.ws-main>.ws-map{flex:1 1 auto;min-height:0}
.ws-sheet{flex:none;position:relative;z-index:560;display:flex;flex-direction:column;min-height:0;height:50%;background:var(--bg);border-top:1px solid var(--line);box-shadow:0 -10px 28px rgba(0,0,0,.22);animation:shUp .2s ease both}
@keyframes shUp{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
.ws-sheet[hidden]{display:none}
.ws-sheet.max{box-shadow:none;border-top:0}
.ws.sheet-drag,.ws.sheet-drag *{user-select:none!important;cursor:ns-resize!important}
.ws.sheet-drag .ws-sheet{animation:none}
.sh-grip{position:absolute;left:0;right:0;top:-7px;height:16px;z-index:3;cursor:ns-resize;touch-action:none}
.sh-grip::after{content:"";position:absolute;left:50%;top:11px;width:46px;height:4px;margin-left:-23px;border-radius:3px;background:var(--line);transition:background .15s}
.sh-grip:hover::after,.ws.sheet-drag .sh-grip::after{background:#38D9F5}
.ws-sheet.max .sh-grip{display:none}
.sh-head{flex:none;display:flex;align-items:flex-end;gap:8px;padding:8px 8px 0 10px;background:var(--surface);border-bottom:1px solid var(--line)}
.sh-tabs{flex:1;min-width:0;display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
.sh-tabs::-webkit-scrollbar{display:none}
.sh-tab{flex:none;display:flex;align-items:center;gap:8px;height:42px;padding:0 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--ink-2);font:600 13.5px var(--font);white-space:nowrap;cursor:pointer;transition:color .15s,border-color .15s}
.sh-tab:hover{color:var(--ink)}
.sh-tab.on{color:var(--ink);border-bottom-color:#38D9F5}
.sh-tab svg{width:17px;height:17px;flex:none}
.sh-tab em{font-style:normal;font-size:11px;font-weight:800;min-width:20px;height:18px;line-height:18px;padding:0 6px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);text-align:center}
.sh-tab.on em{background:rgba(56,217,245,.18);color:var(--ink)}
.sh-acts{flex:none;display:flex;gap:2px;align-self:center}
.sh-body{flex:1;min-height:0;display:flex;flex-direction:column}
.sh-pane{flex:1;min-height:0}
.sh-pane[hidden]{display:none}
.ws-sheet .ws-data{padding:14px 18px 22px}
.ws-sheet .ws-data .two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.ws-sheet .ws-data .stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.day-zoom{display:inline-grid;place-items:center;width:26px;height:26px;margin:0 8px 0 -4px;vertical-align:-7px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--ink-3);cursor:pointer}
.day-zoom:hover{background:rgba(56,217,245,.16);color:#0EA5C6}
.day-zoom svg{width:16px;height:16px}
@media (max-width:900px){
  .sh-head{padding:6px 4px 0 4px;gap:4px}
  .sh-tab{height:40px;padding:0 10px;gap:6px;font-size:13px}
  .sh-tab:not(.on) span{display:none}
  .ws-sheet .ws-data{padding:10px 10px 18px}
  .ws-sheet .ws-data .two{grid-template-columns:minmax(0,1fr)!important}
  .ws-sheet .ws-data .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* the map tools never run under the north arrow when the drawer leaves the map short (28 Oct 2026) */
.ws-rt{max-height:calc(100% - 140px);overflow-y:auto;scrollbar-width:none;padding-bottom:2px}
.ws-rt::-webkit-scrollbar{display:none}
.ws-rt>.rt-g{flex:none}
/* on a phone the drawer's tables are cards: one per row, each value under its column's name */
@media (max-width:900px){
  .ws-sheet table.tbl,.ws-sheet table.tbl>tbody,.ws-sheet table.tbl>tbody>tr,.ws-sheet table.tbl>tbody>tr>td{display:block;width:auto!important;min-width:0!important}
  .ws-sheet table.tbl>tbody>tr.hd{display:none}
  .ws-sheet table.tbl>tbody>tr{margin:0 0 10px;padding:4px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
  .ws-sheet table.tbl>tbody>tr>td{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 0!important;border:0!important;text-align:right!important;white-space:normal}
  .ws-sheet table.tbl>tbody>tr>td+td{border-top:1px solid var(--line-2)!important}
  .ws-sheet table.tbl>tbody>tr>td[data-label]:not([data-label=""])::before{content:attr(data-label);flex:none;max-width:45%;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3);text-align:left}
  .ws-sheet table.tbl>tbody>tr>td[data-label=""]{justify-content:flex-end}
  .ws-sheet table.tbl>tbody>tr>td.full{display:block;text-align:left!important;padding:8px 0!important}
  .ws-sheet table.tbl>tbody>tr>td:first-child{justify-content:flex-start;gap:6px;flex-wrap:wrap;font-size:15px}
  .ws-sheet table.tbl>tbody>tr>td:first-child::before{display:none}
  .ws-sheet table.tbl>tbody>tr>td.acts{gap:6px}
  .ws-sheet table.tbl>tbody>tr>td>.upcell{width:60%}
  .ws-sheet .tbl-wrap{overflow:visible}
  .ws-sheet .card.tbl-wrap{background:transparent;border:0;box-shadow:none}
}

/* ---- the data card floats over the map (28 Oct 2026): the map keeps its full size; the card sits over its lower part,
   clear of the map tools on the right ---- */
.ws-main>.ws-map{flex:1 1 auto}
.ws-sheet{position:absolute;left:14px;right:66px;bottom:14px;flex:none;border:1px solid var(--line);border-top:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 22px 60px rgba(4,10,20,.45),0 2px 8px rgba(4,10,20,.2)}
.ws-sheet.max{top:14px;height:auto!important;box-shadow:0 22px 60px rgba(4,10,20,.45)}
.sh-grip{top:0;height:12px}
.sh-grip::after{top:5px}
.sh-head{padding-top:12px}
@media (max-width:900px){
  .ws-sheet{left:6px;right:6px;bottom:6px;border-radius:14px}
  .ws-sheet.max{top:6px}
}

/* ---- areas of interest (29 Oct 2026): units in the details, the admin's actions, editing a shape on the map ---- */
.ua{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.ua-v{font-variant-numeric:tabular-nums}
.ua-u{height:26px;padding:0 4px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font:600 12px var(--font);cursor:pointer}
.wa-acts{display:flex;gap:6px;padding:8px 10px 10px;border-top:1px solid var(--line-2)}
.wa-acts button{flex:1 1 auto;white-space:nowrap;padding:0 8px;height:30px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:600 12px var(--font);cursor:pointer}
.wa-acts button:hover{border-color:#38D9F5}
.wa-acts button.del{color:#DC2626}
.ws-meas.aoi-ed{gap:8px;padding:8px}
.ws-meas.aoi-ed>span{display:flex;flex-direction:column;gap:2px;padding:0 6px}
.ws-meas.aoi-ed small{font-weight:400;font-size:11.5px;opacity:.75}
.ws-meas.aoi-ed button.save{background:#2B8AFF}
.ws-meas.aoi-ed button.save:hover{background:#4A9BFF}
.aoi-v{background:#fff;border:2.5px solid #0EA5C6;border-radius:50%;box-sizing:border-box;cursor:move;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.aoi-mid{background:rgba(14,165,198,.85);color:#fff;border-radius:50%;font:700 12px/16px var(--font);text-align:center;opacity:.75;cursor:copy}
.aoi-mid:hover{opacity:1}

/* an area's own style (29 Oct 2026) */
.as-sw{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:6px}
.as-sw button{width:30px;height:30px;border-radius:8px;border:2px solid var(--line);cursor:pointer;padding:0}
.as-sw button.on{border-color:var(--ink);box-shadow:0 0 0 2px var(--surface),0 0 0 4px #38D9F5}
.as-sw input[type=color]{width:42px;height:32px;padding:2px;border:1px solid var(--line);border-radius:8px;background:var(--surface);cursor:pointer}

/* each area's own buttons in Layers (29 Oct 2026) */
.lyr-row.aoi-kid .lyr-nm{cursor:text}
.lyr-acts{flex:none;display:flex;gap:2px;margin-left:auto}
.lyr-acts button{width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ink-3);display:grid;place-items:center;cursor:pointer}
.lyr-acts button:hover{background:rgba(56,217,245,.16);color:var(--ink)}
.lyr-acts button svg{width:16px;height:16px}

/* an area's name edited in place; the area units in a layer's menu (29 Oct 2026) */
.lm-name,.wa-name{display:flex;align-items:center;gap:6px;margin:-3px 0 1px -6px;padding:2px 6px;border:1px solid transparent;border-radius:7px;cursor:text}
.lm-name:hover,.wa-name:hover{border-color:var(--line)}
.lm-name:focus-within,.wa-name:focus-within{border-color:#38D9F5;background:var(--bg)}
.lm-name input,.wa-name input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:700 13.5px var(--font);padding:0}
.wa-name input{font-size:14px}
.lm-name svg,.wa-name svg{width:13px;height:13px;flex:none;color:var(--ink-3)}
.lm-units{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px 8px;margin-bottom:4px;border-bottom:1px solid var(--line-2);font-size:12.5px;color:var(--ink-2)}

/* GCP labels: font size and label size set in the map style (29 Oct 2026) */
#pmap .gcp-label{font-size:var(--gcp-fs,11px);padding:calc(var(--gcp-pad,5px) * .3) var(--gcp-pad,5px);line-height:1.15}
.ms-only{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 6px;font-size:14px;color:var(--ink)}
.ms-all{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink-2);font:600 12px var(--font);padding:5px 10px;cursor:pointer}
.ms-all:hover{color:var(--ink);border-color:#38D9F5}
