/* GAS colour accents: decorative icons, no changes to permissions or workflow. */
:root{--gas-accent:#0878d1;--gas-tint:#eaf5ff}
.app-shell:not(.hidden)>.sidebar{background:linear-gradient(180deg,#f1f7ff 0%,#f7f5fc 70%,#f4fafb 100%)!important;border-right:1px solid #e0e9f3!important}
.app-shell:not(.hidden)>.main{background:#f8faff!important}
.app-shell:not(.hidden) .workspace{background:linear-gradient(140deg,#f2f8ff 0%,#fff 45%,#fbf8ff 100%);min-height:calc(100vh - 88px)}
.app-shell:not(.hidden) .topbar{background:linear-gradient(110deg,#fff 10%,var(--gas-tint) 100%)!important;border-bottom:1px solid #dfe9f2!important}
.app-shell .nav-button{align-items:center!important;gap:11px!important;border-radius:12px!important;margin:3px 0;min-height:45px!important}
.app-shell .nav-button::before,.app-shell .topbar h1::before,.gas-home-links a::before{content:"";flex:none;display:inline-block;width:29px;height:29px;border-radius:9px;background-color:var(--gas-accent);background-image:var(--gas-glyph);background-repeat:no-repeat;background-position:center;background-size:19px;box-shadow:0 2px 5px #15284018}
.app-shell .nav-button .nav-icon{display:none!important}
.app-shell .nav-button.active{background:var(--gas-tint)!important;color:#17324d!important;box-shadow:inset 3px 0 var(--gas-accent);font-weight:600!important}
.app-shell .nav-button:hover{background:#ffffffc9!important}
.app-shell .topbar h1{display:flex;align-items:center;gap:12px}.app-shell .topbar h1::before{width:38px;height:38px;border-radius:12px;background-size:24px}
.app-shell .portal-external-links a.nav-button{justify-content:flex-start!important}.portal-external-links a.nav-button>span:last-child{margin-left:auto}
.app-shell .gas-home-links{gap:14px}.app-shell .gas-home-links a{gap:12px;justify-content:flex-start;border-color:#dce7f2;background:linear-gradient(125deg,#fff,var(--gas-tint));box-shadow:0 3px 12px #2e527008;border-radius:17px;transition:box-shadow .18s,transform .18s}.gas-home-links a>span{margin-left:auto}.gas-home-links a::before{width:36px;height:36px;border-radius:11px;background-size:23px}.gas-home-links a:hover{box-shadow:0 5px 18px #2e527015;transform:translateY(-1px)}
.app-shell .workspace h2{display:flex;align-items:center;gap:9px}.app-shell .workspace h2::before{content:"";height:18px;width:4px;flex:none;border-radius:4px;background:var(--gas-accent)}
.app-shell .workspace .panel{border-color:#e3ebf3;background:#fff;border-radius:16px}
.app-shell .workspace .primary-button{background:linear-gradient(135deg,#1688ef,#0767ca)!important;box-shadow:0 3px 8px #0878d125!important}
.app-shell .workspace button:focus-visible,.app-shell a:focus-visible{outline:3px solid #6bb3f0;outline-offset:3px}
.app-shell .gas-home-news a{background:#ffffffb3;padding:15px;border:1px solid #e5eaf2;border-radius:12px;margin:8px 0}.gas-home-news a::before{content:"";width:8px;height:8px;border-radius:50%;background:#da9200;margin-right:10px;align-self:center}.gas-home-news a>span{margin-left:auto}
@media(max-width:680px){.app-shell .nav-button{gap:8px!important}.app-shell .nav-button::before{width:25px;height:25px;background-size:17px}.gas-home-links a{padding:15px!important}}
@media(prefers-reduced-motion:reduce){.gas-home-links a{transition:none!important;transform:none!important}}
.app-shell{--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207v10a1%201%200%200%201-1%201h-5v-7H9v7H4a1%201%200%200%201-1-1z%22%2F%3E%3C%2Fsvg%3E")}

.app-shell[data-view='finance'],.app-shell .nav-button[data-view='finance']{--gas-accent:#bb720a;--gas-tint:#fff4df;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M8%207V4h8v3M3%2012a20%2020%200%200%200%2018%200m-9%200v4%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='internal'],.app-shell .nav-button[data-view='internal']{--gas-accent:#168baf;--gas-tint:#e4f6fb;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M8%207V4h8v3M3%2012a20%2020%200%200%200%2018%200m-9%200v4%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='clients'],.app-shell .nav-button[data-view='clients']{--gas-accent:#4f5bd5;--gas-tint:#eef0ff;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%223%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%222.2%22%2F%3E%3Cpath%20d%3D%22M5.5%2017v-1a3.5%203.5%200%200%201%207%200v1M15%208h3M15%2012h3M15%2016h3%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='aircraft'],.app-shell .nav-button[data-view='aircraft']{--gas-accent:#168baf;--gas-tint:#e4f6fb;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22white%22%3E%3Cpath%20d%3D%22M12%202c-1%200-1.5%201.3-1.5%203v4L2%2014v2l8.5-2v5L8%2021v1l4-1%204%201v-1l-2.5-2v-5l8.5%202v-2l-8.5-5V5C13.5%203.3%2013%202%2012%202Z%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='parts'],.app-shell .nav-button[data-view='parts']{--gas-accent:#bb720a;--gas-tint:#fff4df;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%209%205v9l-9%205-9-5V8l9-5ZM3%208l9%205%209-5m-9%205v9M7%206l10%205%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='documents'],.app-shell .nav-button[data-view='documents']{--gas-accent:#168baf;--gas-tint:#e4f6fb;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207V5a2%202%200%200%201%202-2h5l2%203h7a2%202%200%200%201%202%202v11a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V7Z%22%2F%3E%3Cpath%20d%3D%22M3%209h18%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='stafflife'],.app-shell .nav-button[data-view='stafflife']{--gas-accent:#198765;--gas-tint:#e5f6ee;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2021v-3a6%206%200%200%201%2012%200v3m2-16a3%203%200%200%201%200%206m2%204a5%205%200%200%201%202%204v2%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='home'],.app-shell .nav-button[data-view='home']{--gas-accent:#0878d1;--gas-tint:#e5f2ff;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207v10a1%201%200%200%201-1%201h-5v-7H9v7H4a1%201%200%200%201-1-1z%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='settings'],.app-shell .nav-button[data-view='settings']{--gas-accent:#627797;--gas-tint:#edf2fa;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22m9%203-1%203-3%201-2%203%202%202-1%203%203%202%201%203h4l2-3%203-1%202-3-2-2%201-3-3-2-1-3H9Z%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='interventions'],.app-shell .nav-button[data-view='interventions']{--gas-accent:#007aff;--gas-tint:#e7f2ff;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M9%204V2h6v2M8%2010l1%201%202-2m2%201h3M8%2016l1%201%202-2m2%201h3%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='personaldocs'],.app-shell .nav-button[data-view='personaldocs']{--gas-accent:#cc557e;--gas-tint:#fff0f5;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207V5a2%202%200%200%201%202-2h5l2%203h7a2%202%200%200%201%202%202v11a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V7Z%22%2F%3E%3Cpath%20d%3D%22M3%209h18%22%2F%3E%3C%2Fsvg%3E")}
.app-shell[data-view='planning'],.app-shell .nav-button[data-view='planning']{--gas-accent:#7255d7;--gas-tint:#f0ebff;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M7%203v4m10-4v4M3%2010h18m-13%205h2m4%200h2m-8%203h2%22%2F%3E%3C%2Fsvg%3E")}
.gas-home-links a[href$='/sites/TECH']{--gas-accent:#168baf;--gas-tint:#e4f6fb;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14.7%206.3a5.5%205.5%200%200%200-6.9%207L3%2018.1a2%202%200%200%200%202.9%202.9l4.8-4.8a5.5%205.5%200%200%200%207-6.9l-3.4%203.4-3-3%203.4-3.4Z%22%2F%3E%3C%2Fsvg%3E")}
.gas-home-links a[href$='/sites/GAS-NAV']{--gas-accent:#7255d7;--gas-tint:#f0ebff;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207V5a2%202%200%200%201%202-2h5l2%203h7a2%202%200%200%201%202%202v11a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V7Z%22%2F%3E%3Cpath%20d%3D%22M3%209h18%22%2F%3E%3C%2Fsvg%3E")}
.gas-home-links a[href$='/sites/ADMIN']{--gas-accent:#bb720a;--gas-tint:#fff4df;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M8%207V4h8v3M3%2012a20%2020%200%200%200%2018%200m-9%200v4%22%2F%3E%3C%2Fsvg%3E")}
.gas-home-links a[href$='/sites/ESPACEPERSONNEL']{--gas-accent:#198765;--gas-tint:#e5f6ee;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2021v-3a6%206%200%200%201%2012%200v3m2-16a3%203%200%200%201%200%206m2%204a5%205%200%200%201%202%204v2%22%2F%3E%3C%2Fsvg%3E")}
.portal-external-links a{--gas-accent:#168baf;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10%2013%204-4m-5%207-2%202a4%204%200%200%201-6-6l4-4a4%204%200%200%201%206%200m2%201%202-2a4%204%200%200%201%206%206l-4%204a4%204%200%200%201-6%200%22%2F%3E%3C%2Fsvg%3E");--gas-tint:#e4f6fb}/* Keep icon labels inside the sidebar at every screen width. */
@media(min-width:681px){.app-shell:not(.hidden){grid-template-columns:260px minmax(0,1fr)!important}.app-shell:not(.hidden)>.sidebar{width:260px!important;padding-left:14px!important;padding-right:14px!important;box-sizing:border-box}}
.app-shell>.sidebar .mobile-navigation,.app-shell>.sidebar .nav-list,.app-shell>.sidebar .portal-external-links{min-width:0;max-width:100%;box-sizing:border-box}
.app-shell>.sidebar .nav-button{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35;padding:9px 10px!important;gap:10px!important}
.app-shell>.sidebar .nav-button>span{min-width:0;white-space:normal!important}
.app-shell>.sidebar .nav-button::before{flex:0 0 29px}
@media(max-width:680px){.app-shell>.sidebar .nav-list{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell>.sidebar .nav-button::before{flex-basis:25px}}

/* Visit time tracking: a single readable column, with personal controls first. */
.app-shell .workspace .intervention-treatment-panel{display:flex!important;flex-direction:column;align-items:stretch!important;gap:24px!important;max-width:960px;width:100%;margin:20px auto!important;padding:24px!important;border:1px solid #e3e8ef!important;border-radius:22px!important;background:#fff!important;box-sizing:border-box;box-shadow:0 8px 30px #243b5306!important}
.app-shell .intervention-treatment-summary{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid #edf0f4}
.app-shell .intervention-treatment-summary .eyebrow{display:none}.app-shell .intervention-treatment-summary h2{font-size:18px;margin:0 0 4px}.app-shell .intervention-treatment-summary span{font-size:13px;font-weight:400}
.app-shell .intervention-treatment-summary>strong{min-width:90px;width:auto!important;border:0;background:#f2f5fa;border-radius:12px;padding:10px 14px;font-size:22px;letter-spacing:-.5px}
.app-shell .intervention-mechanic-timers{display:block;min-width:0}.app-shell .intervention-mechanic-timers h3{margin:0 0 12px;font-size:15px;font-weight:600}
.app-shell .intervention-mechanic-timer{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:20px!important;padding:20px!important;border:1px solid #dce9f8!important;border-radius:16px!important;background:#f5f9ff!important;align-items:center!important}
.app-shell .intervention-mechanic-timer.is-active{background:#f0fbf5!important;border-color:#bce3cb!important}.app-shell .intervention-mechanic-timer strong{font-size:17px;font-weight:600}.app-shell .intervention-mechanic-timer span{font-size:13px;font-weight:400;margin-top:5px;overflow-wrap:anywhere}.app-shell .intervention-mechanic-timer b{font-size:25px;letter-spacing:-.6px;white-space:nowrap}
.app-shell .intervention-mechanic-actions{gap:8px;flex-wrap:nowrap}.app-shell .intervention-mechanic-actions .timer-button{width:46px!important;height:46px;min-height:46px;border-radius:13px!important;padding:0!important;display:grid;place-items:center;font-size:18px!important;background:#fff;color:#36506c;border:1px solid #dae4ef;box-shadow:none}
.app-shell .intervention-mechanic-actions .timer-button[data-action$=':play']:not(:disabled){background:#007aff;color:#fff;border-color:#007aff}.app-shell .intervention-mechanic-actions .timer-button[data-action$=':stop']:not(:disabled){color:#c43b40;background:#fff3f3;border-color:#f4d9dc}.app-shell .intervention-mechanic-actions .timer-button:disabled{opacity:.3}
.app-shell .assigned-mechanics{margin-top:24px;padding-bottom:22px;border-bottom:1px solid #edf0f4}.app-shell .assigned-mechanics>span{background:#f3f5f8;color:#526071;font-size:13px;padding:6px 11px;border-radius:20px;margin:0 6px 6px 0!important}
.app-shell .mechanic-task-history{margin:24px 0 0!important;padding:0!important}.app-shell .mechanic-task-history>article{padding:14px 0!important}.app-shell .mechanic-task-history>article>strong{font-size:15px}.app-shell .mechanic-task-history article div{font-size:14px;color:#637083}.app-shell .mechanic-task-history p{font-size:14px;color:#788392;margin-bottom:0}
.app-shell .intervention-treatment-actions{justify-content:flex-end;padding-top:18px;border-top:1px solid #edf0f4}.app-shell .intervention-treatment-actions .small-button{width:auto!important;min-height:36px;border-radius:10px;padding:7px 14px}
@media(max-width:600px){.app-shell .workspace .intervention-treatment-panel{padding:18px!important;margin:12px auto!important;gap:18px!important}.app-shell .intervention-mechanic-timer{grid-template-columns:minmax(0,1fr) auto!important;padding:16px!important;gap:14px!important}.app-shell .intervention-mechanic-actions{grid-column:1/-1;justify-content:flex-start}.app-shell .intervention-mechanic-timer b{font-size:22px}.app-shell .intervention-treatment-summary>strong{font-size:19px}.app-shell .intervention-treatment-summary span{font-size:12px}}

/* Phone layout: contained scrolling and comfortable touch targets. */
@media(max-width:680px){
 html,body{max-width:100%;margin:0}body{overflow-wrap:break-word}
 #appShell:not(.hidden){display:block!important;width:100%;min-width:0}
 #appShell:not(.hidden)>.sidebar{position:relative!important;width:100%!important;height:auto!important;max-height:none;padding:8px 14px!important;gap:0!important;border:0!important;border-bottom:1px solid #e2e8f0!important}
 #appShell>.sidebar>.brand,#appShell>.sidebar>.access-profile{display:none!important}
 #appShell .mobile-navigation>summary{display:flex!important;align-items:center;justify-content:space-between;min-height:44px;padding:6px 4px;font-size:15px;font-weight:600;cursor:pointer;list-style:none}
 #appShell .mobile-navigation>summary::after{content:'☰';font-size:20px}#appShell .mobile-navigation[open]>summary::after{content:'×'}
 #appShell .nav-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px 0 12px}
 #appShell .nav-button{min-height:48px!important;font-size:13px!important;white-space:normal;overflow-wrap:anywhere;padding:9px!important;gap:8px!important}
 #appShell .portal-external-links{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:6px;padding-top:8px}
 #appShell:not(.hidden)>.main{width:100%!important;min-width:0;padding:0!important}
 #appShell:not(.hidden) .topbar{position:relative!important;min-height:66px;padding:14px 16px!important;gap:10px;flex-wrap:nowrap!important}
 #appShell .topbar h1{font-size:21px;line-height:1.2;gap:8px;overflow-wrap:anywhere}#appShell .topbar h1::before{width:30px;height:30px;background-size:20px}
 #appShell .topbar-actions{width:auto!important;flex:none;gap:6px}#appShell .topbar-actions button{font-size:12px;min-height:40px;padding:8px}
 #appShell:not(.hidden) .workspace{padding:16px 12px!important;min-width:0;width:100%;box-sizing:border-box}
 #appShell .workspace>.panel{min-width:0;max-width:100%;box-sizing:border-box}
 #appShell button,#appShell .small-button,#appShell .ghost-button,#appShell .primary-button{min-height:44px;touch-action:manipulation}
 #appShell .toolbar{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start!important}#appShell .toolbar>button{flex:1 1 140px;white-space:normal}
 #appShell .grid-2,#appShell .grid-3{grid-template-columns:minmax(0,1fr)!important}
 #appShell .table-wrap{overflow-x:auto;max-width:100%;min-width:0;-webkit-overflow-scrolling:touch}#appShell .table-wrap table{min-width:520px}#appShell .table-wrap th,#appShell .table-wrap td{padding:12px}
 #appShell .visit-planner,#appShell .week-planner{min-width:0;max-width:100%}
 #appShell .slot-resource-grid{width:100%;min-width:0!important;max-width:100%;grid-template-columns:100px repeat(var(--day-count,5),150px)!important;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 #appShell .slot-position-title{position:sticky;left:0;z-index:1;background:#f1f5fa}#appShell .slot-resource-head:first-child{position:sticky;left:0;z-index:2;background:#f1f5fa}
 #appShell .planning-controls{padding:0;gap:10px}#appShell .planning-control-actions{justify-content:flex-start;gap:6px;flex-wrap:wrap}#appShell .planning-control-actions button{flex:1 1 70px}
 #appShell .planning-filter-actions{max-width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}#appShell .planning-filter-actions button{flex:none}
 #appShell .visit-heading-main{gap:12px}#appShell .visit-heading-actions,#appShell .visit-report-actions{width:100%;justify-content:flex-start!important;gap:8px!important}#appShell .visit-report-actions button{flex:1 1 130px;font-size:13px;white-space:normal}
 #appShell .intervention-treatment-panel{padding:16px!important;border-radius:18px!important}#appShell .intervention-treatment-summary{gap:8px}#appShell .intervention-treatment-summary>strong{min-width:70px;padding:9px}
 #appShell .intervention-treatment-summary span{max-width:180px;display:block}#appShell .intervention-mechanic-timer{gap:12px!important}#appShell .intervention-mechanic-actions .timer-button{width:52px!important;height:48px}
 #appShell .attendance-actions{display:flex;flex-wrap:wrap;gap:8px}#appShell .attendance-actions button{flex:1 1 110px}#appShell .attendance-times{gap:14px;flex-wrap:wrap}
 #appShell .gas-home-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}#appShell .gas-home-links a{padding:14px 10px!important;font-size:12px;gap:7px}#appShell .gas-home-links a::before{width:28px;height:28px;background-size:18px}#appShell .gas-home-links a>span{display:none}
 #appShell .gas-safety-header{flex-wrap:wrap;gap:12px}#appShell .gas-safety-header h2{font-size:19px}#appShell .publication-section article{flex-wrap:wrap;gap:10px!important}#appShell .publication-section article>div:last-child{margin-left:auto}
 #appShell .client-booking-controls{display:flex;flex-direction:column;align-items:stretch;gap:12px}#appShell .client-booking-controls h2{font-size:18px}#appShell .client-booking-controls .button-row{display:flex;gap:6px}#appShell .client-booking-controls .button-row button{flex:1}
 #appShell .client-month-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;min-width:0}#appShell .client-availability-day{padding:7px 1px;min-width:0;min-height:58px;border-radius:8px}#appShell .client-availability-day small{font-size:9px;letter-spacing:-.3px}#appShell .client-month-head{font-size:11px}
 dialog.modal,#recordDialog{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;margin:auto;padding:0;border-radius:18px}
 .modal .modal-panel{padding:16px;max-height:calc(100dvh - 18px);overflow-y:auto;box-sizing:border-box}.modal .modal-header{gap:12px}.modal .modal-header h2{font-size:21px;overflow-wrap:anywhere}.modal #dialogFields,.modal .form-grid{grid-template-columns:minmax(0,1fr)!important;gap:14px}.modal .field{min-width:0;grid-column:1!important}
 .modal input:not([type=checkbox]):not([type=radio]),.modal select,.modal textarea{font-size:16px!important;max-width:100%;width:100%;min-width:0;box-sizing:border-box}.modal button{min-height:44px}.modal .modal-actions{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:max(12px,env(safe-area-inset-bottom))}.modal .modal-actions button{flex:1}
 .login-screen{padding:12px}.login-access{width:100%;min-width:0;padding:22px!important}.login-access input{font-size:16px}.public-header{padding:12px 16px}.public-hero{padding:24px 16px!important;min-height:0!important}.public-hero-copy h1{font-size:28px!important}
}
@media(max-width:680px){#appShell:not(.hidden) .topbar{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;text-align:left!important}#appShell .topbar h1{font-size:19px}#appShell .topbar-actions{flex-direction:row!important;justify-content:flex-end!important}}
/* Client requests: simple cards, shared conversations, no duplicate visit rows. */
.client-section-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.client-section-intro p{color:#6b7280}.client-request-list,.client-aircraft-list{display:grid;gap:20px;max-width:1000px;margin:0 auto}.client-request{padding:24px;border:1px solid #e5eaf0;border-radius:20px;background:#fff}.client-request header{display:flex;justify-content:space-between;align-items:center;gap:16px}.client-request h2{margin:4px 0;font-size:22px}.client-request small{color:#758091}.client-state{padding:7px 12px;border-radius:18px;background:#edf5ff;color:#245f99;font-size:13px}.client-request-date{padding:15px 0}.client-request-date span{display:block;color:#6b7280;margin-top:6px}.client-description,.client-conversation p{white-space:pre-wrap;overflow-wrap:anywhere}.client-pending{color:#996011}.client-conversation{margin-top:18px;border-top:1px solid #e7ebf1;padding-top:14px;grid-column:1/-1;width:100%;min-width:0}.client-conversation summary{cursor:pointer;padding:6px 0;font-weight:500}.client-conversation>div{padding:8px 0}.client-conversation article{border-bottom:1px solid #edf0f4;padding:14px 0}.client-conversation img{max-width:100%;max-height:320px;object-fit:contain;border-radius:12px}.client-conversation p{margin:8px 0}.client-conversation button{margin-top:12px}
@media(max-width:680px){.client-section-intro{align-items:stretch;flex-direction:column;gap:10px}.client-request{padding:18px;border-radius:16px}.client-request header{align-items:flex-start;flex-wrap:wrap}.client-request h2{font-size:21px}.client-request button{max-width:100%;white-space:normal}.client-state{font-size:12px}.client-request-date{padding:8px 0}}

.app-shell[data-view='bookings'],.app-shell .nav-button[data-view='bookings']{--gas-accent:#7255d7;--gas-tint:#f0ebff;--gas-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M7%203v4m10-4v4M3%2010h18m-13%205h2m4%200h2m-8%203h2%22%2F%3E%3C%2Fsvg%3E")}

/* Aircraft photography */
.client-aircraft-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),420px));gap:24px;justify-content:start}
.client-aircraft-list .client-aircraft-card{padding:0;overflow:hidden;width:100%;margin:0;min-width:0}
.client-aircraft-body{padding:22px}
.client-aircraft-photo{aspect-ratio:16/10;background:linear-gradient(135deg,#edf5fb,#e4eaf3);overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8298b0;gap:8px}
.client-aircraft-photo img{display:block;width:100%;height:100%;object-fit:cover}
.client-aircraft-photo svg{width:76px;height:76px}.client-aircraft-photo span{font-size:13px}
.aircraft-photo-control{width:154px;display:grid;gap:8px}.aircraft-photo-control .client-aircraft-photo{border-radius:12px}.aircraft-photo-control .client-aircraft-photo svg{width:35px;height:35px}.aircraft-photo-control .client-aircraft-photo span{display:none}
@media(max-width:680px){.client-aircraft-list{grid-template-columns:minmax(0,1fr);gap:16px}.client-aircraft-body{padding:18px}}

.clients-clean{width:100%;min-width:0}.clients-actions{display:flex;justify-content:flex-end;margin-bottom:20px}.clients-detail-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.clients-detail-head h2{font-size:23px;flex:1;margin:0}.clients-contact{display:flex;gap:12px 24px;flex-wrap:wrap;color:#64748b;padding:18px 0 24px;border-bottom:1px solid #e5e7eb;font-size:14px}.clients-section{margin-top:28px}.clients-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.clients-section-head h2{margin:0;font-size:18px}.clients-row-actions{display:flex;gap:8px;white-space:nowrap}.clients-access{margin:20px 0;border-bottom:1px solid #e5e7eb;padding:16px 0}.clients-access>summary{cursor:pointer;color:#64748b}.clients-access[open]>summary{margin-bottom:16px}.clients-clean table td{vertical-align:middle}.clients-clean .table-wrap{border-radius:14px;background:#fff}.clients-clean table th{font-size:12px;color:#64748b}.clients-clean table td,.clients-clean table th{padding:15px 16px}@media(max-width:680px){.clients-detail-head h2{flex-basis:100%;font-size:20px}.clients-contact{flex-direction:column}.clients-section-head{flex-wrap:wrap}.clients-clean .table-wrap{overflow-x:auto}}
