/* Foundry interface system. Screen chrome only; user artwork and device screens are excluded. */
body[data-foundry-reskin]{--ui-a:#d9e5cf;--ui-b:#ebdfc2;--ui-c:#edf1e5;--ui-edge:#c5d3bc;--ui-strong:#285340;--ui-action-a:#214d3d;--ui-action-b:#456944;--ui-action-ink:#fff;--ui-radius:18px;--ui-shadow:0 6px 22px #253b2910}
html[data-theme=light] body[data-foundry-reskin]{--ui-a:#d8ebdf;--ui-b:#e5eddb;--ui-c:#f1f6f0;--ui-edge:#bed5c5;--ui-strong:#2d684d;--ui-action-a:#225640;--ui-action-b:#496f4b;--ui-shadow:0 6px 22px #203e2b0e}
html[data-theme=dark] body[data-foundry-reskin]{--ui-a:#294b3b;--ui-b:#3b4632;--ui-c:#242e27;--ui-edge:#4b6752;--ui-strong:#b4d8ba;--ui-action-a:#a8ceb4;--ui-action-b:#c6d6af;--ui-action-ink:#192d21;--ui-shadow:0 8px 24px #0002}
html[data-theme=halloween] body[data-foundry-reskin]{--ui-a:#503525;--ui-b:#463047;--ui-c:#29202a;--ui-edge:#79543e;--ui-strong:#f5bb7c;--ui-action-a:#efab68;--ui-action-b:#f3ca91;--ui-action-ink:#2b190f;--ui-shadow:0 8px 24px #0003}
@media screen{
/* Actual rendered components are marked once by interface-polish; no artwork descendants are marked. */
body[data-foundry-reskin] :is(.tf-ui-surface.tf-ui-surface,.tf-ui-hero.tf-ui-hero){box-sizing:border-box;border:1px solid var(--ui-edge);border-radius:var(--ui-radius);background-color:var(--site-surface);background-image:linear-gradient(115deg,var(--site-surface) 4%,var(--ui-c) 36%,var(--ui-a) 72%,var(--ui-b) 100%);background-size:220% 180%;box-shadow:var(--ui-shadow);animation:tf-surface-flow 24s ease-in-out infinite;animation-play-state:paused}
body[data-foundry-reskin] :is(.tf-ui-surface.tf-ui-visible,.tf-ui-hero.tf-ui-visible){animation-play-state:running}
body[data-foundry-reskin] #dashboard .tf-ui-hero.tf-ui-hero,body[data-foundry-reskin] :is(.tools-heading,.news-heading,.support-hero,.driver-heading,.setup-intro).tf-ui-hero{padding:32px 36px;margin:0 0 24px;min-height:160px;display:flex;align-items:center;justify-content:space-between;gap:24px;background-image:linear-gradient(115deg,var(--ui-a),var(--ui-c) 45%,var(--ui-b));background-size:220% 180%;border-radius:24px;line-height:1.65}
body[data-foundry-reskin] #dashboard .tf-ui-hero.tf-ui-hero h1,body[data-foundry-reskin] .tf-ui-hero h1{font-size:clamp(30px,4vw,48px);margin:8px 0 12px;line-height:1.12;letter-spacing:-.045em}
body[data-foundry-reskin] .tf-ui-hero :is(p,.tools-lead){margin:8px 0 0;max-width:72ch;color:var(--site-fg);opacity:.85;font-size:14px;line-height:1.8}
body[data-foundry-reskin] .tf-ui-hero>.button{flex:none;align-self:center;margin:0}
body[data-foundry-reskin] .tf-ui-hero .eyebrow{color:var(--ui-strong);font-size:10px;letter-spacing:.16em;font-weight:750}
body[data-foundry-reskin] :is(main,dialog,.tf-site-header,.site-footer,.top,.maker-header,.poster-toolbar,.driver-nav) .tf-ui-action.tf-ui-action:not(:disabled):not([aria-disabled=true]){background:linear-gradient(110deg,var(--ui-action-a),var(--ui-action-b),var(--ui-action-a));background-size:240% 100%;color:var(--ui-action-ink);border-color:var(--ui-action-a);animation:tf-action-flow 8s ease-in-out infinite;animation-play-state:paused;box-shadow:0 3px 10px color-mix(in srgb,var(--ui-action-a) 18%,transparent)}
body[data-foundry-reskin] :is(main,dialog,.tf-site-header,.site-footer,.top,.maker-header,.poster-toolbar,.driver-nav) .tf-ui-action.tf-ui-action.tf-ui-visible:not(:disabled):not([aria-disabled=true]){animation-play-state:running}
body[data-foundry-reskin] .tf-site-header.nav{border-radius:17px;box-shadow:0 5px 20px var(--site-shadow);background:linear-gradient(115deg,var(--site-surface),var(--ui-a),var(--ui-c));background-size:220% 140%;animation:tf-surface-flow 24s ease-in-out infinite}
body[data-foundry-reskin] .tf-site-header .nav-browse{background:var(--site-surface);border-radius:11px;border-color:var(--ui-edge)}
body[data-foundry-reskin] .tf-site-header .nav-account summary{border:1px solid var(--ui-edge);border-radius:12px;padding:10px 12px;background:var(--site-surface)}
body[data-foundry-reskin] .nav-account-menu{border-radius:16px;border:1px solid var(--ui-edge);padding:12px;background:var(--site-surface);box-shadow:0 14px 40px #0002}
body[data-foundry-reskin] .nav-account-menu :is(a,button){border-radius:9px;padding:11px 13px;min-height:40px}
body[data-foundry-reskin] :is(.page-section-nav,.market-tabs,.driver-tabs,.planning-tabs,.ops-tabs,.tools-tabs){border-radius:14px}
body[data-foundry-reskin] :is(.page-section-nav,.market-tabs,.driver-tabs,.planning-tabs,.ops-tabs,.tools-tabs) :is(a,button){border-radius:9px;transition:background-color .18s,border-color .18s,box-shadow .18s}
body[data-foundry-reskin] :is(.page-section-nav,.market-tabs,.driver-tabs,.planning-tabs,.ops-tabs,.tools-tabs) :is([aria-selected=true],[aria-pressed=true],[aria-current=page]){background:var(--ui-action-a);border-color:var(--ui-action-a);color:var(--ui-action-ink);box-shadow:0 3px 9px var(--site-shadow)}
body[data-foundry-reskin] .tf-ui-surface :is(h2,h3,h4){letter-spacing:-.025em}
body[data-foundry-reskin] :is(.support-topic,.planning-card,.ops-card,.tool-card,.dashboard-tool-card,.driver-card,.policy-section,.setup-step).tf-ui-surface{padding:24px}
body[data-foundry-reskin] :is(.support-form,.news-form,.tool-form,.planning-dialog,.ops-dialog) :is(input:not([type=checkbox]):not([type=color]),textarea,select){border-radius:10px;border-color:var(--ui-edge);padding:11px 12px;background:var(--site-surface)}
body[data-foundry-reskin] :is(.support-form,.news-form,.tool-form,.planning-dialog,.ops-dialog) :is(input,textarea,select):focus{outline:2px solid var(--ui-strong);outline-offset:2px}
body[data-foundry-reskin] :is(.staff-panel,.tools-wrap,.support-wrap,.news-wrap,.driver-content,.account-content) :is(table){border-spacing:0;width:100%;border-collapse:separate}
body[data-foundry-reskin] :is(.staff-panel,.tools-wrap,.support-wrap,.news-wrap,.driver-content,.account-content) :is(th,td){padding:14px;border-bottom:1px solid var(--site-line);text-align:left}
body[data-foundry-reskin] :is(.staff-panel,.tools-wrap,.support-wrap,.news-wrap,.driver-content,.account-content) th{background:var(--site-soft);font-size:12px;font-weight:700}
body[data-foundry-reskin] .footer-support-centre{background:linear-gradient(115deg,var(--ui-a),var(--site-surface),var(--ui-b));background-size:220% 140%;animation:tf-surface-flow 24s ease-in-out infinite;border:1px solid var(--ui-edge);border-radius:20px;padding:24px 28px}
body[data-foundry-reskin] .tf-footer{border-top:1px solid var(--ui-edge);padding-top:24px}
/* Workspace: a padded welcome, compact continuation cards and a useful one-company layout. */
body[data-foundry-reskin] #dashboard .workspace-heading.workspace-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:30px 34px;border:1px solid var(--ui-edge);margin:0 0 22px}
body[data-foundry-reskin] #dashboard .workspace-heading.workspace-heading p{max-width:80ch;line-height:1.85}
body[data-foundry-reskin] #dashboard .return-links{padding:22px 26px;margin:22px 0}
body[data-foundry-reskin] #dashboard .return-list{gap:12px;margin:16px 0}
body[data-foundry-reskin] #dashboard .return-list>a{background:var(--site-surface);border:1px solid var(--ui-edge);padding:17px;border-radius:12px;gap:12px;box-shadow:0 2px 4px var(--site-shadow)}
body[data-foundry-reskin] #dashboard .return-list strong{font-size:14px;line-height:1.65;gap:5px}
body[data-foundry-reskin] #dashboard .return-list small{border-top:1px solid var(--site-line);padding-top:10px;font-weight:600;color:var(--ui-strong)}
body[data-foundry-reskin] #dashboard .workspace-action-panel{gap:0;padding:0;margin:22px 0;background-size:220% 180%}
body[data-foundry-reskin] #dashboard .workspace-action-panel>div{padding:26px 28px}
body[data-foundry-reskin] #dashboard .workspace-action-panel h2{font-size:21px;margin:0 0 8px}
body[data-foundry-reskin] #dashboard .workspace-action-panel p{font-size:13px;line-height:1.7;margin:0 0 18px}
body[data-foundry-reskin] #dashboard .workspace-action-panel .actions{gap:9px;align-items:center;justify-content:flex-start}
body[data-foundry-reskin] #dashboard .workspace-company-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px}
body[data-foundry-reskin] #dashboard .workspace-company-card{padding:24px;gap:15px;border-color:var(--ui-edge);background:var(--site-surface);box-shadow:var(--ui-shadow)}
body[data-foundry-reskin] #dashboard .workspace-company-title{gap:14px}
body[data-foundry-reskin] #dashboard .workspace-company-title h3{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:22px;line-height:1.4;letter-spacing:-.035em}
body[data-foundry-reskin] #dashboard .workspace-company-title .company-initial{width:54px;height:54px;min-width:54px;flex:0 0 54px;border-radius:13px;background:var(--ui-c);border:1px solid var(--ui-edge)}
body[data-foundry-reskin] #dashboard .workspace-company-title img{width:100%;height:100%;object-fit:contain;border-radius:12px}
body[data-foundry-reskin] #dashboard .workspace-company-card>p{line-height:1.8;max-width:75ch;font-size:14px}
body[data-foundry-reskin] #dashboard .workspace-company-card>.button{padding:11px 16px;min-height:44px;border-color:var(--ui-edge);border-radius:10px}
body[data-foundry-reskin] #dashboard .workspace-company-card>.button:first-of-type{background:var(--ui-action-a);color:var(--ui-action-ink)}
body[data-foundry-reskin] #dashboard .workspace-company-section{margin-top:26px}
body[data-foundry-reskin] #dashboard .workspace-company-heading{margin-bottom:16px;gap:18px}
body[data-foundry-reskin] #dashboard .workspace-company-heading h2{font-size:24px}
body[data-foundry-reskin] #dashboard .company-management>summary{padding:20px 24px;background:linear-gradient(115deg,var(--ui-a),var(--ui-c));border-bottom:1px solid var(--ui-edge)}
body[data-foundry-reskin] #dashboard .company-management .company-management-grid :is(.actions>a,.actions>button,.tf-plus-control>a,.tf-plus-control>button){border-color:var(--ui-edge);background:var(--site-surface);box-shadow:0 2px 4px var(--site-shadow);border-radius:10px;padding:13px 30px 13px 15px}
body[data-foundry-reskin] #dashboard .company-management-grid>section>h3{font-size:16px;color:var(--ui-strong);margin-bottom:8px}
/* Marketplace: the old table rows become readable vehicle cards; action handlers stay attached. */
body[data-foundry-reskin] #dashboard .market-page-heading{display:block}
body[data-foundry-reskin] #dashboard .market-tabs{display:flex;gap:8px;padding:7px;margin:0 0 20px;background:var(--site-surface);border:1px solid var(--ui-edge);width:fit-content}
body[data-foundry-reskin] #dashboard .market-tabs button{margin:0;padding:11px 20px;min-height:43px;background:transparent;color:var(--site-fg);border:1px solid transparent;font-size:13px}
body[data-foundry-reskin] #dashboard .market-tabs button[aria-selected=true]{background:var(--ui-action-a);color:var(--ui-action-ink);border-color:var(--ui-action-a)}
body[data-foundry-reskin] #dashboard .market-search{display:block;max-width:none;padding:18px 22px;background:var(--site-surface);border:1px solid var(--ui-edge);border-radius:14px;font-size:12px;font-weight:700}
body[data-foundry-reskin] #dashboard .market-search input{margin:9px 0 0;padding:13px 15px;max-width:none;border-radius:9px;background:var(--site-bg);font-size:14px}
body[data-foundry-reskin] #dashboard #marketContent.market-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:20px;margin-top:24px}
body[data-foundry-reskin] #dashboard .market-table-heading{display:none}
body[data-foundry-reskin] #dashboard .market-card.market-card{display:flex;flex-direction:column;gap:18px;margin:0;min-width:0;min-height:0;padding:24px;border:1px solid var(--ui-edge);border-radius:18px;overflow:visible;background-color:var(--site-surface);box-shadow:var(--ui-shadow)}
body[data-foundry-reskin] #dashboard .market-card-heading{display:flex;align-items:center;gap:12px;min-width:0;padding:0 0 16px;border-bottom:1px solid var(--ui-edge)}
body[data-foundry-reskin] #dashboard .market-card-heading>div{min-width:0}
body[data-foundry-reskin] #dashboard .market-card-heading h3{font-size:24px;line-height:1.25;margin:0 0 6px;overflow-wrap:anywhere}
body[data-foundry-reskin] #dashboard .market-card-heading a{font-size:13px;font-weight:650;text-decoration:none}
body[data-foundry-reskin] #dashboard .market-card-heading small{font-size:12px;margin-top:5px;color:var(--site-muted)}
body[data-foundry-reskin] #dashboard .market-card .vehicle-photo{order:-1;width:100%;height:190px;max-width:none;object-fit:cover;border-radius:12px}
body[data-foundry-reskin] #dashboard .market-card dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0}
body[data-foundry-reskin] #dashboard .market-card dl>div{display:block;min-width:0;padding:0;border:0}
body[data-foundry-reskin] #dashboard .market-card dt{font-size:11px;color:var(--site-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
body[data-foundry-reskin] #dashboard .market-card dd{font-size:14px;font-weight:600;margin:0;overflow-wrap:anywhere}
body[data-foundry-reskin] #dashboard .market-listing-info{padding:14px 16px;background:var(--site-surface);border:1px solid var(--ui-edge);border-radius:11px;font-size:12px;line-height:1.75;display:grid;gap:7px}
body[data-foundry-reskin] #dashboard .market-listing-info :is(p,small){margin:0;max-width:none;font-size:12px}
body[data-foundry-reskin] #dashboard .market-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding:0;border:0;align-items:stretch}
body[data-foundry-reskin] #dashboard .market-card-actions button{flex:1 1 120px;min-height:42px;padding:10px 13px;border-radius:10px}
body[data-foundry-reskin] #dashboard .market-card-actions .market-primary-action{background:var(--ui-action-a);color:var(--ui-action-ink);border-color:var(--ui-action-a)}
body[data-foundry-reskin] #dashboard #marketContent>.empty{grid-column:1/-1;min-height:160px;display:grid;place-content:center;text-align:center;border:1px dashed var(--ui-edge);border-radius:16px;background:var(--ui-c);padding:30px;line-height:1.8}
body[data-foundry-reskin] .market-dialog{padding:26px;border:1px solid var(--ui-edge);border-radius:20px;box-shadow:0 20px 70px #0004}
/* Loops run while visible and stop for reduced motion / background tabs. No animation network traffic. */
body[data-foundry-reskin].tf-ui-paused :is(.tf-ui-surface,.tf-ui-hero,.tf-ui-action,.tf-site-header,.footer-support-centre){animation-play-state:paused!important}
@media(min-width:900px){body[data-foundry-reskin] #dashboard .workspace-company-card:only-child{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:10px 34px;align-items:center;min-height:210px}body[data-foundry-reskin] #dashboard .workspace-company-card:only-child>.workspace-company-title{grid-column:1;grid-row:1/3;align-self:end}body[data-foundry-reskin] #dashboard .workspace-company-card:only-child>p{grid-column:1;grid-row:3/5;align-self:start}body[data-foundry-reskin] #dashboard .workspace-company-card:only-child>.button{grid-column:2;margin:0;align-self:center}}
@media(max-width:700px){body[data-foundry-reskin] #dashboard .tf-ui-hero.tf-ui-hero,body[data-foundry-reskin] :is(.tools-heading,.news-heading,.support-hero,.driver-heading,.setup-intro).tf-ui-hero{padding:24px;min-height:0;display:flex;flex-direction:column;align-items:flex-start;gap:16px;border-radius:18px}body[data-foundry-reskin] #dashboard .workspace-heading.workspace-heading{display:flex;padding:24px;gap:18px}body[data-foundry-reskin] .tf-ui-hero>.button{align-self:flex-start}body[data-foundry-reskin] #dashboard .workspace-action-panel>div{padding:22px}body[data-foundry-reskin] #dashboard .workspace-company-card{padding:22px}body[data-foundry-reskin] #dashboard .workspace-company-title h3{font-size:21px}body[data-foundry-reskin] #dashboard .market-tabs{width:100%;box-sizing:border-box;gap:4px}body[data-foundry-reskin] #dashboard .market-tabs button{padding:10px;flex:1;font-size:12px}body[data-foundry-reskin] #dashboard .market-card.market-card{padding:20px}body[data-foundry-reskin] #dashboard .return-links{padding:20px}body[data-foundry-reskin] #dashboard .return-list{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-foundry-reskin] #dashboard .return-list>a{padding:13px}body[data-foundry-reskin] .footer-support-centre{padding:22px}}
@media(max-width:420px){body[data-foundry-reskin] #dashboard .return-list{grid-template-columns:1fr}body[data-foundry-reskin] #dashboard .workspace-company-title{align-items:flex-start}}
}
@keyframes tf-surface-flow{0%,100%{background-position:0% 45%}50%{background-position:100% 55%}}
@keyframes tf-action-flow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){body[data-foundry-reskin] :is(.tf-ui-surface,.tf-ui-hero,.tf-ui-action,.tf-site-header.nav,.footer-support-centre){animation:none!important}}
@media print{.tf-ui-surface,.tf-ui-hero,.tf-ui-action{animation:none!important;background-image:none!important;box-shadow:none!important}}
/* Status colours are semantic, independent of the active decorative theme. */
body[data-foundry-reskin] .news-wrap[data-page=status]{--status-up:#23794d;--status-warn:#986218;--status-down:#b73543;--status-maint:#356b9e;--status-unknown:#677780;max-width:1160px;margin:auto}
html:is([data-theme=dark],[data-theme=halloween]) body[data-foundry-reskin] .news-wrap[data-page=status]{--status-up:#77dca0;--status-warn:#edc36b;--status-down:#ff98a2;--status-maint:#94c3f0;--status-unknown:#a7b5bc}
.news-wrap[data-page=status] [data-state=operational],.news-wrap[data-page=status] [data-state=clear]{--health-tone:var(--status-up)}
.news-wrap[data-page=status] [data-state=degraded]{--health-tone:var(--status-warn)}
.news-wrap[data-page=status] [data-state=outage]{--health-tone:var(--status-down)}
.news-wrap[data-page=status] [data-state=maintenance]{--health-tone:var(--status-maint)}
.news-wrap[data-page=status] :is([data-state=unchecked],[data-state=checking]){--health-tone:var(--status-unknown)}
body[data-foundry-reskin] .news-wrap[data-page=status] .news-heading{display:block;min-height:0;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0 0 12px;margin:0 0 24px}
body[data-foundry-reskin] .news-wrap[data-page=status] .news-heading h1{font-size:36px;line-height:1.15}
body[data-foundry-reskin] .news-wrap[data-page=status] .status-overview{display:flex;align-items:center;gap:24px;padding:30px 34px;border:1px solid color-mix(in srgb,var(--health-tone) 45%,var(--site-line));border-left:5px solid var(--health-tone);border-radius:20px;background:linear-gradient(110deg,color-mix(in srgb,var(--health-tone) 13%,var(--site-surface)),var(--site-surface));box-shadow:var(--ui-shadow);margin:0}
body[data-foundry-reskin] .status-orb{display:block;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:var(--health-tone);box-shadow:0 0 0 9px color-mix(in srgb,var(--health-tone) 10%,transparent);animation:tf-status-pulse 3s ease-in-out infinite}
body[data-foundry-reskin] .status-overview-copy{flex:1;min-width:0}
body[data-foundry-reskin] .status-overview-copy .eyebrow{color:var(--health-tone);font-size:10px;letter-spacing:.14em}
body[data-foundry-reskin] .status-overview-copy h2{margin:7px 0 8px;color:var(--health-tone);font-size:clamp(23px,3vw,32px);line-height:1.2;letter-spacing:-.035em}
body[data-foundry-reskin] .status-overview-copy p{margin:0;line-height:1.65;font-size:13px;color:var(--site-muted)}
body[data-foundry-reskin] .status-overview button{flex:none;margin:0;padding:10px 15px;min-height:42px}
body[data-foundry-reskin] .status-meta{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:11px;color:var(--site-muted);margin:16px 0 24px}
body[data-foundry-reskin] .status-meta p{margin:0}
body[data-foundry-reskin] .status-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 32px}
body[data-foundry-reskin] .status-fact{display:flex;align-items:center;gap:14px;padding:20px 24px;background:var(--site-surface);border:1px solid var(--site-line);border-radius:14px}
body[data-foundry-reskin] .status-fact strong{font-size:30px;line-height:1;color:var(--health-tone);font-weight:750}
body[data-foundry-reskin] .status-fact span{font-size:12px;color:var(--site-muted)}
body[data-foundry-reskin] .status-service-panel{border:1px solid var(--site-line);border-radius:20px;background:var(--site-surface);padding:24px 28px;margin-bottom:30px;box-shadow:var(--ui-shadow)}
body[data-foundry-reskin] .status-services-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:14px}
body[data-foundry-reskin] .status-services-heading h2{margin:0 0 6px;font-size:22px}
body[data-foundry-reskin] .status-services-heading p{margin:0;color:var(--site-muted);font-size:12px}
body[data-foundry-reskin] .status-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:var(--site-muted)}
body[data-foundry-reskin] .status-legend span{display:flex;align-items:center;gap:5px}
body[data-foundry-reskin] .status-legend span::before{content:'';height:7px;width:7px;border-radius:50%;background:var(--health-tone)}
body[data-foundry-reskin] .news-wrap[data-page=status] .component-grid{display:block}
body[data-foundry-reskin] .news-wrap[data-page=status] .component-grid .component{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(100px,1.6fr) auto;align-items:center;gap:12px 24px;background:transparent;border:0;border-bottom:1px solid var(--site-line);border-radius:0;margin:0;padding:23px 0;box-shadow:none;animation:none}
body[data-foundry-reskin] .news-wrap[data-page=status] .component-grid .component:last-child{border-bottom:0}
body[data-foundry-reskin] .component-name h3{font-size:14px;margin:0 0 5px;line-height:1.5;font-weight:700}
body[data-foundry-reskin] .component-name small{font-size:10px;margin:0;color:var(--site-muted)}
body[data-foundry-reskin] .news-wrap[data-page=status] .component-grid .status-pill{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:112px;max-width:160px;box-sizing:border-box;color:var(--health-tone);background:color-mix(in srgb,var(--health-tone) 12%,var(--site-surface));border:1px solid color-mix(in srgb,var(--health-tone) 30%,var(--site-line));border-radius:25px;padding:7px 12px;margin:0;font-size:11px;font-weight:700;text-align:center;line-height:1.5}
body[data-foundry-reskin] .component-grid .status-pill::before{content:'';flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:currentColor}
body[data-foundry-reskin] .component-history{min-width:0}
body[data-foundry-reskin] .component-history-bars{display:flex;gap:3px;height:27px;min-width:0}
body[data-foundry-reskin] .component-history-bars span{flex:1;min-width:1px;background:var(--health-tone);border-radius:3px;opacity:.9}
body[data-foundry-reskin] .component-history-bars span[data-state=unchecked]{opacity:.25}
body[data-foundry-reskin] .component-history-bars span:hover{opacity:1;outline:1px solid var(--site-fg);outline-offset:2px}
body[data-foundry-reskin] .component-history-range{display:flex;justify-content:space-between;color:var(--site-muted);font-size:9px;margin-top:6px}
body[data-foundry-reskin] .component-grid .component-note{grid-column:1/-1;color:var(--site-muted);font-size:11px;line-height:1.7;padding-left:0;margin:0;max-width:100ch}
body[data-foundry-reskin] .status-history-note{font-size:10px;line-height:1.7;color:var(--site-muted);margin:12px 0 0;padding-top:16px;border-top:1px solid var(--site-line)}
body[data-foundry-reskin] #platformView[data-stale=true] .component-history{opacity:.45}
body[data-foundry-reskin] #platformView[data-stale=true] .status-pill{background:var(--site-soft);color:var(--site-muted);border-color:var(--site-line)}
body[data-foundry-reskin] :is(#activeIncidents,#pastIncidents)>h2{font-size:22px;margin:28px 0 18px}
body[data-foundry-reskin] #activeIncidents>p{padding:22px 24px;background:var(--site-surface);border:1px solid var(--site-line);border-radius:14px;font-size:13px;color:var(--site-muted)}
body[data-foundry-reskin] .incident-card[data-impact=minor]{border-left:4px solid var(--status-warn)}
body[data-foundry-reskin] .incident-card[data-impact=major]{border-left:4px solid var(--status-down)}
body[data-foundry-reskin] .status-report-history{margin:24px 0;padding:22px 24px;border:1px solid var(--site-line);border-radius:16px;background:var(--site-surface)}
body[data-foundry-reskin] .status-report-history h2{font-size:18px;margin-top:0}
body[data-foundry-reskin] .status-report-history small{font-size:11px;line-height:1.6;color:var(--site-muted)}
/* Dedicated maintenance screen: indeterminate activity, never a fabricated completion percentage. */
body[data-foundry-reskin].maintenance-page .maintenance-card{box-sizing:border-box;width:min(680px,calc(100% - 32px));max-width:680px;margin:40px auto;padding:42px 46px;text-align:center;border:1px solid var(--ui-edge);border-radius:28px;background:linear-gradient(120deg,var(--site-surface),var(--ui-a),var(--ui-c),var(--ui-b));background-size:240% 180%;animation:tf-surface-flow 20s ease-in-out infinite;box-shadow:0 20px 80px var(--site-shadow)}
body[data-foundry-reskin].maintenance-page .maintenance-card>img{width:52px;height:52px;object-fit:contain;margin:0 auto 8px}
body[data-foundry-reskin] .maintenance-card h1{font-size:clamp(32px,5vw,48px);line-height:1.12;margin:16px 0 22px;letter-spacing:-.045em}
body[data-foundry-reskin] .maintenance-card>p{font-size:14px;line-height:1.85;margin:15px auto;max-width:52ch}
body[data-foundry-reskin] .maintenance-card>.eyebrow{font-size:10px;letter-spacing:.18em;color:var(--ui-strong)}
body[data-foundry-reskin] .maintenance-progress{margin:16px auto 24px;max-width:320px;position:relative}
body[data-foundry-reskin] .maintenance-orbit{position:relative;width:74px;height:74px;margin:0 auto 18px;animation:tf-maintenance-spin 12s linear infinite}
body[data-foundry-reskin] .maintenance-orbit span{position:absolute;inset:0;border:2px solid var(--ui-edge);border-top:3px solid var(--ui-strong);border-radius:50%}
body[data-foundry-reskin] .maintenance-orbit span:nth-child(2){inset:12px;border-top-color:transparent;border-bottom:3px solid var(--ui-strong);animation:tf-maintenance-spin 5s linear infinite reverse}
body[data-foundry-reskin] .maintenance-orbit span:nth-child(3){inset:28px;border:0;background:var(--ui-strong);animation:tf-status-pulse 3s ease-in-out infinite}
body[data-foundry-reskin] .maintenance-route{height:34px;position:relative;border-bottom:2px solid var(--ui-edge);margin:0 18px 12px;display:flex;justify-content:space-between;align-items:flex-end}
body[data-foundry-reskin] .maintenance-route i{height:8px;width:8px;border:2px solid var(--ui-strong);background:var(--site-surface);border-radius:50%;margin-bottom:-5px}
body[data-foundry-reskin] .maintenance-bus{position:absolute;left:0;bottom:7px;width:33px;height:25px;background:var(--ui-action-a);color:var(--ui-action-ink);font-size:12px;line-height:25px;font-weight:800;border-radius:6px 7px 4px 4px;animation:tf-maintenance-drive 5s ease-in-out infinite}
body[data-foundry-reskin] .maintenance-progress>p{display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px;letter-spacing:.16em;font-weight:700;color:var(--ui-strong);margin:18px 0 0}
body[data-foundry-reskin] .maintenance-dots{display:flex;gap:4px;font-size:14px}
body[data-foundry-reskin] .maintenance-dots b{animation:tf-maintenance-dot 1.5s ease-in-out infinite}
body[data-foundry-reskin] .maintenance-dots b:nth-child(2){animation-delay:.2s}body[data-foundry-reskin] .maintenance-dots b:nth-child(3){animation-delay:.4s}
body[data-foundry-reskin] .maintenance-reassurance{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:24px 0}
body[data-foundry-reskin] .maintenance-reassurance span{font-size:10px;border:1px solid var(--ui-edge);background:var(--site-surface);border-radius:20px;padding:6px 11px;color:var(--ui-strong)}
body[data-foundry-reskin] .maintenance-card>.actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:22px 0 0}
@keyframes tf-status-pulse{0%,100%{opacity:1}50%{opacity:.6}}
@keyframes tf-maintenance-spin{to{transform:rotate(360deg)}}
@keyframes tf-maintenance-drive{0%,100%{left:0}50%{left:calc(100% - 33px)}}
@keyframes tf-maintenance-dot{0%,100%{opacity:.2;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
@media(max-width:800px){body[data-foundry-reskin] .status-services-heading{display:block}body[data-foundry-reskin] .status-legend{margin-top:16px}body[data-foundry-reskin] .news-wrap[data-page=status] .component-grid .component{grid-template-columns:minmax(0,1fr) auto;gap:15px}body[data-foundry-reskin] .component-history{grid-column:1/-1;grid-row:2}body[data-foundry-reskin] .component-grid .status-pill{grid-column:2;grid-row:1}body[data-foundry-reskin] .status-fact{padding:18px 14px;gap:10px;flex-direction:column;align-items:flex-start}body[data-foundry-reskin] .status-facts{gap:10px}body[data-foundry-reskin] .news-wrap[data-page=status] .status-overview{padding:24px;gap:20px;flex-wrap:wrap}body[data-foundry-reskin] .status-overview-copy{flex-basis:calc(100% - 70px)}body[data-foundry-reskin] .status-overview button{margin-left:45px}body[data-foundry-reskin] .status-service-panel{padding:20px}body[data-foundry-reskin] .component-history-bars{gap:2px;height:24px}body[data-foundry-reskin] .status-fact strong{font-size:26px}body[data-foundry-reskin] .status-fact span{font-size:10px}body[data-foundry-reskin].maintenance-page .maintenance-card{padding:30px 24px;margin:24px auto}body[data-foundry-reskin] .status-meta>span{display:none}}
@media(prefers-reduced-motion:reduce){body[data-foundry-reskin] :is(.maintenance-card,.maintenance-orbit,.maintenance-orbit span,.maintenance-bus,.maintenance-dots b,.status-orb){animation:none!important}}
body[data-foundry-reskin].tf-ui-paused :is(.maintenance-card,.maintenance-orbit,.maintenance-orbit span,.maintenance-bus,.maintenance-dots b,.status-orb){animation-play-state:paused!important}
@media screen{body[data-foundry-reskin] #dashboard .dashboard-page-heading.tf-ui-hero,body[data-foundry-reskin] :is(.news-heading,.setup-intro).tf-ui-hero{display:block}body[data-foundry-reskin] .support-hero.tf-ui-hero{flex-wrap:wrap}body[data-foundry-reskin] .driver-heading.tf-ui-hero{flex-wrap:wrap}body[data-foundry-reskin] .driver-heading.tf-ui-hero>div{flex:1 1 250px}}
@media screen{body[data-foundry-reskin] :is(.tf-ui-surface,.tf-ui-hero,.status-service-panel,.status-overview,.market-card) :is(h1,h2,h3,h4,p,dl,dt,dd,small){font-family:var(--modern-font)}body[data-foundry-reskin] .news-wrap[data-page=status] .component-grid .component{grid-template-columns:minmax(150px,.8fr) minmax(100px,1.6fr) 145px}body[data-foundry-reskin] .component-grid .status-pill{justify-self:end}}
@media(max-width:800px){body[data-foundry-reskin] .news-wrap[data-page=status] .component-grid .component{grid-template-columns:minmax(0,1fr) auto}}
@media screen{body[data-foundry-reskin] .support-hero.tf-ui-hero{display:block}body[data-foundry-reskin] #dashboard>h1{font-size:clamp(32px,4vw,46px);letter-spacing:-.04em;margin:12px 0 26px;padding-bottom:18px;border-bottom:1px solid var(--ui-edge)}body[data-foundry-reskin] :is(.staff-overview,.staff-settings,.staff-extras,.support-auth).tf-ui-surface{padding:24px}body[data-foundry-reskin] .staff-queue-card.tf-ui-surface{padding:20px;border-radius:15px;text-align:left;color:var(--site-fg)}body[data-foundry-reskin] .staff-queue-card strong{font-size:32px;color:var(--ui-strong)}body[data-foundry-reskin] .staff-queue-card small{line-height:1.6;font-size:11px}body[data-foundry-reskin] .staff-queue-card.has-pending{border-left:4px solid var(--ui-strong)}}
@media screen{
body[data-foundry-reskin] #dashboard .market-page-heading.tf-ui-hero.tf-ui-hero{display:block}
body[data-foundry-reskin] #dashboard .market-page-heading.tf-ui-hero h1{max-width:none;margin:10px 0 14px}
body[data-foundry-reskin] #dashboard #marketContent.market-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));align-items:stretch;border:0;border-radius:0;padding:0;background:transparent;overflow:visible}
body[data-foundry-reskin] #dashboard .market-card.market-card{align-items:stretch;text-align:left}
body[data-foundry-reskin] #dashboard .market-card.market-card>*{align-self:stretch;max-width:none}
body[data-foundry-reskin] #dashboard .market-card .market-card-heading{align-self:stretch}
body[data-foundry-reskin] #dashboard .market-card .vehicle-photo{aspect-ratio:auto}
body[data-foundry-reskin] #dashboard .market-card .market-card-actions{flex-direction:row;align-self:stretch}
body[data-foundry-reskin] #dashboard .market-card-actions button{flex:1 1 120px;min-height:42px;height:auto}
}
@media screen{body[data-foundry-reskin] .maker-layout .workspace-heading.tf-ui-hero{min-height:0;padding:18px 22px;border-radius:14px;margin-bottom:12px}body[data-foundry-reskin] .maker-layout .workspace-heading.tf-ui-hero h1{font-size:28px}}
@media screen{body[data-foundry-reskin]>.top,body[data-foundry-reskin] :is(.maker-header,.poster-toolbar,.driver-nav,.rm-header,.rm-toolbar){background:linear-gradient(115deg,var(--site-surface),var(--ui-a),var(--ui-c));background-size:220% 140%;animation:tf-surface-flow 24s ease-in-out infinite;border-color:var(--ui-edge)}body[data-foundry-reskin] .maintenance-bus::before,body[data-foundry-reskin] .maintenance-bus::after{content:'';position:absolute;bottom:-3px;width:6px;height:6px;background:var(--site-fg);border:1px solid var(--site-surface);border-radius:50%}body[data-foundry-reskin] .maintenance-bus::before{left:5px}body[data-foundry-reskin] .maintenance-bus::after{right:5px}}
@media(prefers-reduced-motion:reduce){body[data-foundry-reskin]>.top,body[data-foundry-reskin] :is(.maker-header,.poster-toolbar,.driver-nav,.rm-header,.rm-toolbar){animation:none!important}}
body[data-foundry-reskin].tf-ui-paused>.top,body[data-foundry-reskin].tf-ui-paused :is(.maker-header,.poster-toolbar,.driver-nav,.rm-header,.rm-toolbar){animation-play-state:paused!important}
body[data-foundry-reskin]{--modern-tint:var(--ui-c);--modern-glow:var(--ui-a);--modern-action-end:var(--ui-action-b);--modern-surface-flow:linear-gradient(115deg,var(--site-surface),var(--ui-c) 35%,var(--ui-a) 75%,var(--ui-b));--ui-muted:#4c5b50}
html[data-theme=light] body[data-foundry-reskin]{--ui-muted:#4d6256}html[data-theme=dark] body[data-foundry-reskin]{--ui-muted:#b9c9be}html[data-theme=halloween] body[data-foundry-reskin]{--ui-muted:#e2cbbd}
@media screen{body[data-foundry-reskin] .tf-ui-surface :is(.muted,small,dt,.tool-meta,.company-role-label){color:var(--ui-muted)}body[data-foundry-reskin] .news-wrap[data-page=status]{--status-unknown:#53636b}html:is([data-theme=dark],[data-theme=halloween]) body[data-foundry-reskin] .news-wrap[data-page=status]{--status-unknown:#a7b5bc}}
body[data-foundry-reskin] .tf-ui-action:is(:disabled,[aria-disabled=true]){animation:none!important;box-shadow:none}
@media screen{body[data-foundry-reskin] #dashboard .welcome-home::before{background-size:220% 140%;animation:tf-surface-flow 30s ease-in-out infinite;animation-play-state:paused}body[data-foundry-reskin] #dashboard .welcome-home.tf-ui-visible::before{animation-play-state:running}body[data-foundry-reskin].tf-ui-paused #dashboard .welcome-home::before{animation-play-state:paused}}
@media(prefers-reduced-motion:reduce){body[data-foundry-reskin] #dashboard .welcome-home::before{animation:none!important}}

/* User-selected card colours override decoration only; all geometry stays shared. */
html body[data-foundry-reskin] .company-colour-card.company-colour-card{background-color:var(--card-background)!important;background-image:none!important;color:var(--card-textColor)!important;border-color:var(--card-borderColor)!important;animation:none!important}
html body[data-foundry-reskin] .company-colour-card.company-colour-card[data-card-mode=gradient]{background-image:linear-gradient(var(--card-angle),var(--card-background),var(--card-gradientEnd),var(--card-background))!important;background-size:220% 180%!important}
html body[data-foundry-reskin] .company-colour-card.company-colour-card[data-card-motion=true]{animation:tf-surface-flow 24s ease-in-out infinite!important;animation-play-state:paused!important}
html body[data-foundry-reskin] .company-colour-card.company-colour-card.tf-ui-visible[data-card-motion=true]{animation-play-state:running!important}
html body[data-foundry-reskin] .company-colour-card.company-colour-card :is(h3,.directory-copy>strong,.featured-company-name,.company-initial,.directory-mark,.featured-company-initials){color:var(--card-textColor)!important}
html body[data-foundry-reskin] .company-colour-card.company-colour-card :is(p,.directory-copy>span,.company-role-label){color:var(--card-mutedColor)!important;opacity:1}
html body[data-foundry-reskin] .company-colour-card.company-colour-card :is(.button,.directory-copy>small,.featured-company-arrow){color:var(--card-accentColor)!important;border-color:var(--card-borderColor)!important}
html body[data-foundry-reskin] .company-colour-card.company-colour-card .button{background:transparent!important;animation:none!important}
html body[data-foundry-reskin] .company-colour-card.company-colour-card:focus-visible{outline:3px solid var(--card-accentColor);outline-offset:3px}
body[data-foundry-reskin] .appearance-card-preview{grid-column:1/-1;max-width:550px;width:100%;box-sizing:border-box;pointer-events:none}
body[data-foundry-reskin] .tool-form>h3{grid-column:1/-1;margin:22px 0 0}
html body[data-foundry-reskin].tf-ui-paused .company-colour-card.company-colour-card[data-card-motion=true]{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){html body[data-foundry-reskin] .company-colour-card.company-colour-card[data-card-motion=true]{animation:none!important}}
body[data-foundry-reskin] .tool-form label[hidden]{display:none!important}
html body[data-foundry-reskin] .company-colour-card.company-colour-card :is(.directory-mark,.company-initial,.featured-company-logo){background:var(--card-background)!important}
body[data-foundry-reskin] .appearance-card-preview.directory-card{display:flex;align-items:flex-start;gap:16px;padding:22px;height:170px;min-height:170px;border:1px solid var(--site-line);border-radius:18px;background:var(--site-surface);color:var(--site-fg);text-decoration:none}
body[data-foundry-reskin] .appearance-card-preview .directory-mark{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:12px;background:var(--site-soft);color:var(--site-fg);font-size:18px;font-weight:700;overflow:hidden}
body[data-foundry-reskin] .appearance-card-preview .directory-mark img{width:100%;height:100%;object-fit:contain}
body[data-foundry-reskin] .appearance-card-preview .directory-copy{display:flex;flex-direction:column;gap:8px;height:100%;min-width:0}
body[data-foundry-reskin] .appearance-card-preview .directory-copy>strong{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
body[data-foundry-reskin] .appearance-card-preview .directory-copy>span{font-size:14px;line-height:1.5;color:var(--site-muted)}
body[data-foundry-reskin] .appearance-card-preview .directory-copy>small{margin-top:auto;font-size:13px;line-height:1.5;color:var(--site-brand)}

/* Company gradients own both endpoints; global theme colours cannot leak in. */
html body[data-foundry-reskin] .company-button-scope{--ui-action-a:var(--company-buttonStart);--ui-action-b:var(--company-buttonEnd);--ui-action-ink:var(--company-buttonText);--modern-action-end:var(--company-buttonEnd)}
html body[data-foundry-reskin] .company-button-scope :is(button,.button):not(:disabled):not([aria-disabled=true]):not(:where(.sheet *,.leaflet-container *,.map-stage *,.simulation-map *)){background:linear-gradient(110deg,var(--company-buttonStart),var(--company-buttonEnd),var(--company-buttonStart))!important;background-color:var(--company-buttonStart)!important;background-size:240% 100%!important;color:var(--company-buttonText)!important;border-color:var(--company-buttonStart)!important;animation:var(--company-button-animation,tf-action-flow 8s ease-in-out infinite)!important;animation-play-state:var(--company-button-motion,running)!important}
html body[data-foundry-reskin] .company-button-scope[data-company-buttons=solid] :is(button,.button):not(:disabled):not([aria-disabled=true]):not(:where(.sheet *,.leaflet-container *)){background:var(--company-buttonStart)!important;animation:none!important}
html body[data-foundry-reskin] .company-button-scope :is(button.secondary,.button.secondary):not(:disabled):not([aria-disabled=true]):not(:where(.sheet *,.leaflet-container *)){background:var(--company-secondaryBackground)!important;color:var(--company-secondaryText)!important;animation:none!important}
body.tf-ui-paused .company-button-scope{--company-button-motion:paused}
@media(prefers-reduced-motion:reduce){.company-button-scope{--company-button-animation:none}}

@media screen{body[data-foundry-reskin] :is(.tools-tabs,.market-tabs,.page-section-nav){scroll-padding-inline:12px}body[data-foundry-reskin] :is(.tools-tabs,.market-tabs,.page-section-nav) :focus-visible{outline:2px solid var(--site-focus);outline-offset:3px}body[data-foundry-reskin] :is(.tool-form,.news-form,.market-dialog) button{touch-action:manipulation}}
.rm-directions{display:flex;flex-wrap:wrap;gap:14px;padding:12px 20px;border-bottom:1px solid var(--site-line)}.rm-directions label{min-width:170px;max-width:100%;display:grid;gap:5px;font-size:12px}.rm-directions select{min-height:40px}
#sheet .tt th small{display:block;font-size:.8em;font-weight:400}

.rm-directions{flex-shrink:0}.rm-directions label{margin:0;min-width:130px;flex:1;max-width:320px}.rm-directions select{width:100%;margin:0}
