/* Brand tokens shared by every page, popup and report screen. */
:root{--brand:#855fce;--brand-strong:#6540a8;--brand-deep:#352747;--brand-pale:#f0eaf8;--brand-muted:#76658b;--ink13:#292532}
body[data-brand13="pilot"]{--brand:#9dec20;--brand-strong:#526d00;--brand-deep:#2d3522;--brand-pale:#f1f6e5;--brand-muted:#63734c}
body[data-brand13="terrain"]{--ft-violet:#855fce;--orange:#855fce;--blue:#855fce;--cyan:#855fce}
body[data-brand13] {color:var(--ink13);font-family:Arial,sans-serif}
body[data-brand13] h1,body[data-brand13] h2,body[data-brand13] h3{color:var(--ink13)!important}
body[data-brand13] p,body[data-brand13] small,body[data-brand13] label,body[data-brand13] td{color:#504b59}
body[data-brand13] button,body[data-brand13] .button12{background:#fff!important;color:#3c3447!important;border:1px solid #d4ccd9!important;box-shadow:none!important;border-radius:9px;min-height:44px}
body[data-brand13] button.primary,body[data-brand13] button.pm-primary11,body[data-brand13] button.active,body[data-brand13] .terrain-side button.current,body[data-brand13] #return-pilot11{background:var(--brand)!important;border-color:var(--brand)!important;color:#fff!important}
body[data-brand13="pilot"] button.pm-primary11,body[data-brand13="pilot"] button.active{color:#26311b!important}
body[data-brand13] button:hover{border-color:var(--brand-strong)!important}body[data-brand13] button:focus-visible,body[data-brand13] input:focus-visible,body[data-brand13] select:focus-visible{outline:3px solid var(--brand-strong);outline-offset:2px}
body[data-brand13] .page-head,body[data-brand13] .work-console-bar,body[data-brand13] .session-banner,body[data-brand13] .notice,body[data-brand13] .journal-card10 header,body[data-brand13] .report-header,body[data-brand13] .terrain-context,body[data-brand13] .showcase-session,body[data-brand13] .page-header{background:var(--brand-pale)!important;color:var(--ink13)!important;border-color:#d8d0e0!important;background-image:none!important}
body[data-brand13] .card,body[data-brand13] .report-panel,body[data-brand13] .journal-card10,body[data-brand13] .pm-card11{box-shadow:0 2px 8px #29253207!important;border:1px solid #ddd7e2!important;border-radius:12px!important}
body[data-brand13] .terrain-side nav button svg,body[data-brand13] .terrain-side-footer svg,body[data-brand13] .showcase-intro em,body[data-brand13] .showcase-intro span{color:var(--brand-strong)!important}
body[data-brand13] .terrain-side button.current svg{color:#fff!important}
body[data-brand13] .landscape-day-stats strong,body[data-brand13] .dossier-stats strong{color:var(--brand-strong)!important}
body[data-brand13] .progress>span{background:var(--brand)!important}body[data-brand13] progress{accent-color:var(--brand)}
body[data-brand13] .terrain-side{height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:8px!important}
body[data-brand13] .terrain-side nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
body[data-brand13] .terrain-side-footer{flex:0 0 auto;display:flex;flex-direction:column;gap:7px;margin-top:7px;padding-top:7px!important}
body[data-brand13] .terrain-side-footer>button{width:100%;font-size:12px;min-height:44px;flex-shrink:0}
body[data-brand13] .terrain-side-footer>p{display:none}.terrain-side-footer .avatar{width:28px;height:28px}.terrain-side-footer>div{font-size:11px}
.formovia-logo12,.pm-sidefoot11,#oldpilot11{display:none!important}
body[data-brand13] .terrain-side nav button{width:100%;white-space:normal;min-width:0!important}.work-brand .official-logo12,.showcase-brand .official-logo12{height:58px;max-width:190px}
body[data-brand13] #modal{background:#fff;color:#292532;border:1px solid #d4ccd9;border-radius:15px;box-shadow:0 20px 70px #241b3733;padding:24px;max-height:90dvh;overflow:auto}
body[data-brand13] #modal input,body[data-brand13] #modal select,body[data-brand13] #modal textarea{border:1px solid #cbc3d3;border-radius:7px;color:#292532;background:#fff;width:100%;padding:10px}
body[data-brand13] #modal input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--brand-strong)}
.pm-formgrid11 textarea{width:100%;min-height:92px}.prep-list13{display:grid;gap:12px;max-height:390px;overflow:auto;padding:2px}.prep-card13{display:block;text-align:left;width:100%;padding:16px!important;border:1px solid #e1e5da!important;background:#fff!important}
.prep-heading13{display:flex;align-items:center;justify-content:space-between;gap:8px}.prep-heading13 strong{font-size:16px}.status13{display:inline-flex;border-radius:30px;background:var(--brand-pale);color:#3d4730;font-size:11px;font-weight:bold;padding:6px 9px;white-space:nowrap}.prep-card13 small{display:block;margin-top:7px;font-size:12px}.prep-progress13{display:flex;align-items:center;gap:12px;margin:15px 0 10px}.prep-progress13 progress{appearance:none;border:0;border-radius:8px;height:9px;flex:1;background:#e9ece4;overflow:hidden;width:100%}.prep-progress13 progress::-webkit-progress-bar{background:#e9ece4}.prep-progress13 progress::-webkit-progress-value{background:#9dec20;border-radius:8px}.prep-progress13 progress::-moz-progress-bar{background:#9dec20}.prep-progress13 b{font-size:14px}.next13{font-size:12px;line-height:1.5;display:flex;justify-content:space-between;border-top:1px solid #edf0e7;padding-top:10px}.prep-panel13{grid-column:1/-1}.prep-panel13 .prep-list13{grid-template-columns:repeat(2,minmax(0,1fr))}
.draft-danger13{border-top:1px solid #e4d9de;margin-top:28px;padding-top:18px;display:flex;align-items:center;gap:12px}.draft-danger13 small{font-size:12px}body[data-brand13] .draft-danger13 button,body[data-brand13] .danger13{color:#9b243c!important;border-color:#e4b6bf!important;background:#fff5f6!important}
.calendar13{padding:18px!important}.calendar-toolbar13{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.calendar-toolbar13>div{display:flex;gap:5px}.calendar-toolbar13>b{text-transform:capitalize;font-size:19px}.calendar-filters13{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:18px}.calendar-filters13 label{font-size:12px;display:grid;gap:6px;flex:1;min-width:130px}.calendar-filters13 select,.calendar-filters13 input{width:100%;min-height:44px;border:1px solid #d0d8c7;padding:9px;border-radius:8px;background:white}.calendar-grid13{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid #e0e5dc;border-top:1px solid #e0e5dc;overflow:hidden;border-radius:9px}.calendar-day13{min-width:0;min-height:250px;border-right:1px solid #e0e5dc;border-bottom:1px solid #e0e5dc;padding:7px;background:#fff}.calendar-grid13.month .calendar-day13{min-height:125px}.calendar-grid13.day{grid-template-columns:1fr}.calendar-grid13.day .calendar-day13{min-height:350px}.calendar-date13{border:0!important;background:transparent!important;text-transform:capitalize;width:100%;font-size:12px;padding:5px;min-height:36px!important;margin-bottom:8px}.today13 .calendar-date13{background:var(--brand)!important;border-radius:8px!important}.outside13{background:#f4f5f2;opacity:.55}body[data-brand13] .calendar-event13{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;background:var(--brand-pale)!important;border:0!important;border-left:4px solid var(--brand)!important;border-radius:6px!important;width:100%;padding:10px 7px;margin-bottom:8px;overflow-wrap:anywhere;line-height:1.4}.calendar-event13 b{font-size:12px}.calendar-event13 span,.calendar-event13 small{font-size:10px;color:#49533d!important}.calendar-grid13.day .calendar-event13{max-width:650px;padding:18px}.calendar-grid13.day .calendar-event13 b{font-size:17px}.calendar-grid13.day .calendar-event13 small,.calendar-grid13.day .calendar-event13 span{font-size:13px}.calendar-empty13{display:block;text-align:center;color:#969c91}.calendar-grid13.month .calendar-event13 span,.calendar-grid13.month .calendar-event13>small{display:none}
.archive-stats13{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.archive-stats13>div{padding:18px;background:white;border-radius:12px;border:1px solid #dce3d6;display:grid;gap:6px}.archive-stats13 b{font-size:23px}.archive-stats13 span{font-size:12px;color:#65715b}.archive-list13{display:grid;gap:12px}.archive-card13{display:flex;align-items:center;text-align:left;justify-content:space-between;gap:16px;padding:18px!important;width:100%}.archive-card13>div{display:grid;gap:7px}.archive-card13 b{font-size:16px}.archive-card13 span,.archive-card13 small{font-size:12px}.archive-identity13{border-left:5px solid var(--brand);background:#fff;padding:15px;margin:12px 0;border-radius:8px}.archive-identity13 h2{margin-top:0;font-size:20px}.report-photo13{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #ded6e5;border-radius:8px;margin:8px 0}.report-photo13 img{width:110px;height:75px;object-fit:contain}.report-photo13 span{font-size:12px}.report-consent13{display:flex;align-items:center;gap:9px;margin:18px 0}.client-preview13{border-top:3px solid var(--brand);padding:20px;margin-top:20px;background:#fff}.client-preview13 table{width:100%;border-collapse:collapse}.client-preview13 td{padding:12px;border:1px solid #dcd5e3;vertical-align:top;font-size:12px;line-height:1.6}.client-preview13 td:first-child{font-weight:bold;width:27%;background:var(--brand-pale)}.client-preview13 img{max-height:250px;max-width:100%;object-fit:contain}.client-preview13 figure{margin:20px 0}.client-preview13 figcaption{font-size:12px;margin-top:8px}
body[data-brand13] .badge.green,body[data-brand13] .status-green{background:#e0f0e3!important;color:#245c36!important}body[data-brand13] .badge.red,body[data-brand13] .error{background:#fbe5e9!important;color:#9b243c!important}
@media(max-width:1100px){.pm-main11{padding:0 14px}.calendar13{padding:12px!important}.calendar-day13{padding:4px}.calendar-event13{padding:8px 5px!important}.prep-heading13{align-items:flex-start;flex-direction:column}.calendar-toolbar13>b{font-size:16px}.calendar-filters13{gap:8px}.calendar-filters13 label{min-width:115px}.archive-stats13>div{padding:12px}.archive-stats13 b{font-size:18px}}
@media(max-width:760px){.prep-panel13 .prep-list13{grid-template-columns:1fr}.calendar-grid13.week{grid-template-columns:repeat(7,minmax(90px,1fr));overflow-x:auto}.archive-stats13{grid-template-columns:repeat(2,1fr)}}

body[data-brand13=terrain] .blue-session{background:#eee8f7!important;color:#332b3d!important;background-image:none!important;border:1px solid #d8cbea!important;box-shadow:none!important}body[data-brand13=terrain] .blue-session *:not(img):not(svg):not(path){color:#3e3152!important}body[data-brand13=terrain] .session-flag,body[data-brand13=terrain] .session-code{background:#ded1f0!important}body[data-brand13=terrain] .showcase-intro h1 span{color:#855fce!important}body[data-brand13=pilot] .pm-side11 nav button.active{background:#9dec20!important}body[data-brand13=terrain] .landscape-day-stats span{color:#64576e!important}

body[data-brand13] .card p,body[data-brand13] .card small,body[data-brand13] .card label,body[data-brand13] .card li,body[data-brand13] .card td,body[data-brand13] .card span,body[data-brand13] .pm-card11 p,body[data-brand13] .pm-card11 small{color:#514959!important}
body[data-brand13] button *{color:inherit!important}body[data-brand13] .page-head *,body[data-brand13] .work-console-bar *,body[data-brand13] .notice *{color:#51415f!important}
body[data-brand13] .pm-mapbody11 svg path{fill:var(--brand-pale)!important;stroke:#9da991!important}body[data-brand13] .pm-mapbody11 svg circle{fill:var(--brand)!important;stroke:#5c7138!important}
body[data-brand13] .pm-dot11{background:var(--brand)!important}body[data-brand13] .pm-dot11.orange{background:#b8bfb0!important}
body[data-brand13] .badge.orange{background:var(--brand-pale)!important;color:var(--brand-strong)!important}
body[data-brand13] .terrain-side-footer .avatar{background:#ddd3ed!important;color:#45345e!important}

body[data-brand13] .pm-mapbody11 svg text{fill:#36452b!important}

/* Pilot dashboard: explicit areas prevent a third implicit row from overlapping.
   The map has the entire left column; the secondary totals remain a compact strip. */
body.pilot-tablet11[data-brand13="pilot"]{--ft-paper:#fff;--ft-ink:#293224;--ft-line:#dce3d5;background:#f5f7f2}
body[data-brand13="pilot"] .pm-shell11{background:#f5f7f2}
body[data-brand13="pilot"] .pm-dashboard11{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);grid-template-areas:"map alerts" "map preparation" "totals totals";grid-template-rows:minmax(160px,.44fr) minmax(180px,.56fr) 70px;gap:12px;flex:none;height:max(434px,calc(100dvh - 265px));min-height:434px;align-items:stretch}
body[data-brand13="pilot"] .pm-dashboard11>.pm-card11{min-height:0!important;background:#fff!important;overflow:hidden;padding:16px}
body[data-brand13="pilot"] .pm-dashboard11>.pm-card11:nth-child(1){grid-area:map;display:flex;flex-direction:column}
body[data-brand13="pilot"] .pm-dashboard11>.pm-card11:nth-child(2){grid-area:alerts;display:flex;flex-direction:column}
body[data-brand13="pilot"] .pm-dashboard11>.pm-card11:nth-child(3){grid-area:preparation;display:flex;flex-direction:column}
body[data-brand13="pilot"] .pm-dashboard11>.pm-card11:nth-child(4){grid-area:totals;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 18px}
body[data-brand13="pilot"] .pm-dashboard11 h2{font-size:15px;margin:0}
body[data-brand13="pilot"] .pm-cardhead11{flex:none;margin-bottom:12px;min-height:32px}
body[data-brand13="pilot"] .pm-cardhead11 button{padding:7px 10px;min-width:72px;white-space:nowrap;font-size:11px}
body[data-brand13="pilot"] .pm-mapbody11{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;padding:0 0 17px}
body[data-brand13="pilot"] .pm-mapbody11>div{position:static;align-self:flex-start;display:flex;gap:6px;align-items:center;line-height:1.4;font-size:10px;flex:none;margin-bottom:8px}
body[data-brand13="pilot"] .pm-mapbody11>div br,body[data-brand13="pilot"] .pm-mapbody11>div small{display:none}
body[data-brand13="pilot"] .pm-mapbody11>svg{display:block;flex:1;width:100%;height:100%;max-height:none;min-height:0;overflow:visible}
body[data-brand13="pilot"] .pm-mapbody11 svg path{fill:#dbe8d0!important;stroke:#8b9e7c!important;stroke-width:1.2}
body[data-brand13="pilot"] .pm-mapbody11 svg circle{fill:#9dec20!important;stroke:#496633!important;stroke-width:2}
body[data-brand13="pilot"] .pm-mapbody11 svg text{fill:#293c21!important;font-size:13px;font-weight:600}
body[data-brand13="pilot"] .pm-alerts11{flex:1;min-height:0;overflow:auto;max-height:none;display:grid;align-content:start;gap:6px}
body[data-brand13="pilot"] .pm-alerts11 button{padding:10px 12px;min-height:55px}
body[data-brand13="pilot"] .prep-panel13 .prep-list13{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0;max-height:none;overflow:auto;gap:10px;align-content:start}
body[data-brand13="pilot"] .prep-card13{padding:12px!important;min-height:0;flex:none}
body[data-brand13="pilot"] .prep-heading13{flex-direction:row;align-items:flex-start;gap:8px}
body[data-brand13="pilot"] .prep-heading13 strong{font-size:14px;line-height:1.35}
body[data-brand13="pilot"] .prep-card13 small{font-size:11px;line-height:1.4}
body[data-brand13="pilot"] .prep-progress13{margin:11px 0 8px}
body[data-brand13="pilot"] .next13{font-size:11px;padding-top:8px}
body[data-brand13="pilot"] .pm-dashboard11>.pm-card11:nth-child(4) .pm-cardhead11{margin:0}
body[data-brand13="pilot"] .pm-donutwrap11{height:auto;gap:16px;font-size:12px}
body[data-brand13="pilot"] .pm-donut11{height:48px;width:48px}
body[data-brand13="pilot"] .pm-donut11 b{font-size:17px}
body[data-brand13="pilot"] .pm-donutwrap11>div:last-child{display:flex;gap:20px;align-items:center}
body[data-brand13="pilot"] .pm-donutwrap11 p{margin:0;white-space:nowrap}
body[data-brand13="pilot"] .pm-donutwrap11 small{display:none}
@media(max-width:760px){body[data-brand13="pilot"] .pm-dashboard11{height:auto;display:flex;flex-direction:column;min-height:0}body[data-brand13="pilot"] .pm-dashboard11>.pm-card11:first-child{height:430px;flex:none}body[data-brand13="pilot"] .pm-dashboard11>.pm-card11:nth-child(2),body[data-brand13="pilot"] .pm-dashboard11>.pm-card11:nth-child(3){height:280px;flex:none}body[data-brand13="pilot"] .pm-dashboard11>.pm-card11:nth-child(4){min-height:90px;flex-wrap:wrap}body[data-brand13="pilot"] .prep-heading13{flex-direction:column}}
