/* Consolidated, contractor-scoped stylesheet. */
/* TraceCert SiteOS — contractor-only presentation layer.
   Existing authenticated data, capture callbacks and navigation are preserved. */
.cw-app {
  --ink:#142e3c;
  --muted:#526773;
  --line:#d5e0e1;
  --surface:#fff;
  background:#f4f7f7;
  font-size:16px;
  line-height:1.55;
}
.cw-screen{max-width:1480px;padding:clamp(22px,3vw,48px)}
.cw-heading{align-items:flex-start;gap:24px;margin-bottom:26px}
.cw-heading h1{font-size:clamp(33px,3.8vw,58px);letter-spacing:-.055em;line-height:1.1;margin:10px 0 12px}
.cw-heading p{font-size:clamp(15px,1.3vw,19px);line-height:1.5;max-width:610px}
.cw-heading .cw-eyebrow,.cw-eyebrow{font-size:12px;letter-spacing:.16em}
.cw-app .cw-project-select{font-size:13px;gap:9px;min-width:230px;max-width:350px}
.cw-app select{font-size:16px;height:53px;border-radius:13px;padding:0 40px 0 16px}
.cw-heading-actions{align-items:flex-end;gap:12px}
.cw-primary,.cw-link,.cw-white-button{font-size:15px;min-height:50px;border-radius:12px;padding:13px 20px}
.cw-nav{font-size:14px;min-height:52px}
.cw-workspace-label{font-size:11px;letter-spacing:.12em}
.cw-breadcrumb{font-size:14px}
.cw-account{font-size:14px}
.cw-metrics,.cw-dashboard-lower{gap:16px}
.cw-metrics>div,.cw-panel{border-radius:19px;border:1px solid #dce5e5;box-shadow:0 10px 35px rgba(11,39,51,.035)}
.cw-metrics>div{padding:21px 24px;min-height:124px}
.cw-metric-label{font-size:14px}
.cw-metrics strong{font-size:38px;line-height:1.1}
.cw-metrics small{font-size:13px}
.cw-panel{padding:24px}
.cw-panel h2{font-size:21px;letter-spacing:-.025em}
.cw-small-count,.cw-section-label{font-size:13px}
.cw-tasks li,.cw-recent-record,.cw-checklist li{font-size:15px}
.cw-spotlight{height:clamp(330px,32vw,460px);border-radius:24px}
.cw-spotlight-copy{inset:clamp(22px,4vw,42px)}
.cw-spotlight h2{font-size:clamp(30px,3vw,48px);line-height:1.13}
.cw-spotlight p,.cw-status{font-size:15px}
.cw-location{border-radius:24px;overflow:hidden}
.cw-field-deck{margin:0 0 23px;padding:clamp(19px,2.4vw,34px);border-radius:24px;color:#f8ffff;background:radial-gradient(circle at 95% 0%,rgba(50,193,194,.20),transparent 40%),linear-gradient(130deg,#103a49,#092936 70%);box-shadow:0 18px 35px #0f34451c}
.cw-field-deck-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:23px}
.cw-field-deck .cw-eyebrow{color:#8fdbdb;font-size:12px}
.cw-field-deck h2{font-size:clamp(25px,2.6vw,36px);line-height:1.18;letter-spacing:-.05em;margin:8px 0 9px}
.cw-field-deck p{font-size:15px;color:#d0e4e6;line-height:1.5}
.cw-field-deck p strong{color:white}
.cw-field-deck-mark{display:grid;place-items:center;min-width:58px;height:58px;border:1px solid #ffffff3a;border-radius:17px;background:#ffffff16}
.cw-field-deck-mark svg{width:30px!important;height:30px!important}
.cw-field-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cw-app .cw-field-action{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:172px;padding:22px;border-radius:17px;text-align:left;background:#fff;color:#163541;border:1px solid #ffffff45;transition:transform .18s ease,background .18s ease}
.cw-app .cw-field-action:not(:disabled):hover{transform:translateY(-3px);background:#edfbfb}
.cw-field-action-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#e4f4f4;color:#087e86;margin-bottom:14px}
.cw-field-action-icon svg{width:24px!important;height:24px!important}
.cw-field-action strong{font-size:17px;line-height:1.25;font-weight:700}
.cw-field-action small{display:block;font-size:13px;line-height:1.4;margin-top:5px;color:#526b76}
.cw-app .cw-field-action-main{background:#b4f1de;border-color:#b4f1de}
.cw-field-action-main .cw-field-action-icon{background:#ffffff80}
.cw-field-action-arrow{position:absolute;top:21px;right:17px}
.cw-dashboard-hero{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:17px}
.cw-screen :is(.cw-caption,.cw-card-copy small,.cw-collection-intro,.cw-filter-controls label,.cw-media-type,.cw-model-footer,.cw-acceptance-heading .cw-eyebrow){font-size:clamp(12px,1.1vw,15px)}
.cw-screen :is(input,textarea,select){font-size:16px}
.cw-screen :is(button,a,select,input){touch-action:manipulation}
@media(max-width:1120px){
  .cw-field-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cw-dashboard-hero{grid-template-columns:1fr}
}
@media(max-width:720px){
  .cw-app{font-size:16px}
  .cw-screen{padding:20px 17px calc(118px + env(safe-area-inset-bottom))}
  .cw-heading{display:flex;flex-direction:column;align-items:stretch;gap:18px;margin-bottom:21px}
  .cw-heading h1{font-size:clamp(31px,9vw,43px);line-height:1.11;letter-spacing:-.05em;margin:9px 0}
  .cw-heading p{font-size:17px;line-height:1.5}
  .cw-heading .cw-eyebrow,.cw-eyebrow{font-size:11px}
  .cw-heading-actions{width:100%;display:grid;grid-template-columns:1fr;gap:11px}
  .cw-heading-actions .cw-project-select{width:100%;max-width:none;min-width:0}
  .cw-heading-actions .cw-primary,.cw-heading-actions .cw-link{width:100%;font-size:16px;min-height:54px}
  .cw-project-select{font-size:14px}
  .cw-field-deck{padding:20px 16px;border-radius:21px;margin-bottom:20px}
  .cw-field-deck-heading{margin-bottom:19px}
  .cw-field-deck h2{font-size:27px}
  .cw-field-deck p{font-size:14px}
  .cw-field-deck-mark{min-width:44px;height:44px;border-radius:13px}
  .cw-field-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cw-app .cw-field-action{padding:16px 13px;min-height:159px;border-radius:15px}
  .cw-field-action strong{font-size:15px}
  .cw-field-action small{font-size:12px}
  .cw-field-action-icon{width:39px;height:39px;margin-bottom:12px}
  .cw-field-action-icon svg{width:21px!important;height:21px!important}
  .cw-field-action-arrow{top:12px;right:11px}
  .cw-spotlight{height:335px;border-radius:20px}
  .cw-spotlight-copy{inset:22px}
  .cw-spotlight h2{font-size:32px}
  .cw-dashboard-hero{display:contents}
  .cw-screen:has(.cw-dashboard-hero){display:flex;flex-direction:column}
  .cw-screen:has(.cw-dashboard-hero)>.cw-heading{order:0}
  .cw-screen:has(.cw-dashboard-hero)>.cw-field-deck{order:1}
  .cw-dashboard-hero>.cw-spotlight{order:2;margin-bottom:14px}
  .cw-screen:has(.cw-dashboard-hero)>.cw-metrics{order:3}
  .cw-dashboard-lower{order:4;gap:13px;margin-top:0}
  .cw-dashboard-hero>.cw-location{order:5}
  .cw-metrics{gap:9px}
  .cw-metrics>div{padding:15px 11px;min-height:102px;border-radius:15px}
  .cw-metrics strong{font-size:29px}
  .cw-metric-label{font-size:12px}
  .cw-metrics small{font-size:11px}
  .cw-panel{padding:18px 17px;border-radius:17px}
  .cw-panel h2{font-size:19px}
  .cw-sidebar{height:calc(84px + env(safe-area-inset-bottom));padding:6px 3px calc(6px + env(safe-area-inset-bottom))}
  .cw-sidebar nav{grid-template-columns:repeat(6,minmax(0,1fr))}
  .cw-nav{font-size:11px;min-height:69px;gap:6px}
  .cw-nav svg{width:23px!important;height:23px!important}
  .cw-screen .cw-caption,.cw-screen .cw-collection-intro,.cw-screen .cw-filter-controls label,.cw-screen .cw-media-type{font-size:13px}
  .cw-app .cw-project-select select{font-size:16px}
}
@media(max-width:375px){
  .cw-screen{padding-inline:13px}
  .cw-field-action strong{font-size:14px}
  .cw-nav{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .cw-app .cw-field-action{transition:none}
}

/* SiteOS property record: make the real project, not the generic schematic, primary. */
.cw-property-command{background:radial-gradient(circle at 95% 0%,rgba(108,210,207,.24),transparent 40%),linear-gradient(125deg,#0b3342,#0b2532);color:white;padding:clamp(23px,4vw,47px);border-radius:26px;margin-bottom:24px;min-height:290px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 20px 46px #123b4a1f}
.cw-property-command-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.cw-property-command .cw-eyebrow{color:#8ed8d6}
.cw-property-pill{border-radius:999px;background:#ffffff1a;border:1px solid #ffffff3b;padding:7px 13px;font-size:13px;font-weight:650}
.cw-property-command h2{font-size:clamp(31px,4vw,55px);letter-spacing:-.05em;line-height:1.13;margin:18px 0 7px}
.cw-property-command>p{font-size:17px;color:#c5dfe2}
.cw-property-command-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;max-width:760px;margin:27px 0}
.cw-property-command-stats>div{border:1px solid #ffffff2c;border-radius:16px;background:#ffffff0b;padding:17px}
.cw-property-command-stats strong{display:block;font-size:clamp(27px,3vw,39px);line-height:1.1}
.cw-property-command-stats span{display:block;font-size:13px;color:#d0e3e5;margin-top:8px}
.cw-property-command-actions{display:flex;gap:12px;flex-wrap:wrap}
.cw-property-command-actions .cw-primary{background:#b4f1de;color:#103a43!important;display:flex;align-items:center;gap:10px;font-size:16px}
.cw-property-command-actions .cw-link{color:white;border:1px solid #ffffff4a;display:flex;align-items:center;gap:10px;font-size:16px}
.cw-property-recent{background:white;border:1px solid #dce5e5;border-radius:23px;padding:clamp(21px,3vw,31px);margin-bottom:20px}
.cw-property-recent-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:19px}
.cw-property-recent h2{font-size:clamp(23px,2.4vw,31px);letter-spacing:-.04em;margin-top:7px}
.cw-property-recent-head>span{font-size:14px;color:#536976}
.cw-property-story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cw-app .cw-property-story{min-width:0;background:#f3f8f8;border:1px solid #dce8e7;border-radius:16px;padding:19px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-height:164px}
.cw-property-story-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#dcf4ef;color:#077d80}
.cw-property-story strong{display:block;font-size:16px;line-height:1.4}
.cw-property-story small{display:block;color:#546c74;font-size:13px;line-height:1.45;margin-top:5px}
.cw-property-story>svg{margin-top:auto;margin-left:auto}
.cw-property-story-empty{display:flex;align-items:center;gap:17px;padding:21px;background:#f0f7f6;border-radius:15px}
.cw-property-story-empty p{font-size:16px;line-height:1.5}
.cw-building-explorer{border:1px solid #dce5e4;border-radius:22px;background:#fff;margin-bottom:22px;overflow:hidden}
.cw-building-explorer>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 26px;cursor:pointer}
.cw-building-explorer>summary::-webkit-details-marker{display:none}
.cw-building-explorer>summary>span:first-child{display:flex;align-items:center;gap:16px}
.cw-building-explorer>summary>span:first-child>svg{width:32px!important;height:32px!important;color:#10858a}
.cw-building-explorer summary strong{display:block;font-size:19px}
.cw-building-explorer summary small{display:block;font-size:14px;color:#526b76;margin-top:3px}
.cw-explorer-chevron{font-size:30px;transition:transform .2s}
.cw-building-explorer[open] .cw-explorer-chevron{transform:rotate(180deg)}
.cw-building-explorer .cw-property-grid{margin:0;padding:16px 19px 25px;border-top:1px solid #e1e9e9}
.cw-building-explorer .cw-building{border-radius:17px;overflow:hidden}
body:has(.cw-app) #tc-roles-switcher{top:calc(10px + env(safe-area-inset-top));right:80px}
@media(max-width:950px){.cw-property-story-grid{grid-template-columns:1fr}.cw-app .cw-property-story{min-height:0;flex-direction:row;align-items:center}.cw-property-story>svg{margin:auto 0 auto auto}}
@media(max-width:720px){
  .cw-property-command{min-height:0;border-radius:21px;padding:25px 20px;margin-bottom:16px}
  .cw-property-command h2{font-size:34px;margin-top:16px}
  .cw-property-command>p{font-size:15px}
  .cw-property-pill{font-size:12px}
  .cw-property-command-stats{gap:7px;margin:22px 0}
  .cw-property-command-stats>div{padding:12px 9px;border-radius:12px}
  .cw-property-command-stats strong{font-size:28px}
  .cw-property-command-stats span{font-size:11px;line-height:1.35}
  .cw-property-command-actions{display:grid;grid-template-columns:1fr}
  .cw-property-command-actions .cw-primary,.cw-property-command-actions .cw-link{width:100%;min-height:54px;font-size:15px;justify-content:center}
  .cw-property-recent{padding:21px 16px;border-radius:20px}
  .cw-property-recent h2{font-size:25px}
  .cw-property-recent-head>span{font-size:12px}
  .cw-property-story-grid{gap:9px}
  .cw-app .cw-property-story{padding:14px;gap:13px;border-radius:13px}
  .cw-property-story strong{font-size:15px}
  .cw-property-story small{font-size:12px}
  .cw-building-explorer{border-radius:18px}
  .cw-building-explorer>summary{padding:18px 16px}
  .cw-building-explorer summary strong{font-size:17px}
  .cw-building-explorer summary small{font-size:12px}
  .cw-building-explorer .cw-property-grid{padding:10px}
  body:has(.cw-app) #tc-roles-switcher{top:calc(10px + env(safe-area-inset-top));right:75px}
}


/* Preserved stage browser and evidence views. */
.cw-app .cw-site-stage-explorer{margin:0 0 30px;padding:clamp(21px,3vw,32px)}
.cw-app .cw-site-stage-intro{margin-bottom:23px}
.cw-app .cw-site-stage-intro h2{font-size:clamp(27px,2.7vw,37px);letter-spacing:-.055em;line-height:1.14;margin:8px 0}
.cw-app .cw-site-stage-intro p{font-size:16px;color:#586b75}
.cw-app .cw-site-stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cw-app .cw-site-stage-card{
 display:flex;align-items:flex-start;gap:14px;text-align:left;min-width:0;min-height:122px;padding:20px 16px;
 background:rgba(241,247,249,.86);border:1px solid #e1eaef;border-radius:18px;transition:transform .2s,background .2s
}
.cw-app .cw-site-stage-card:hover{background:#e5f6f7;transform:translateY(-2px)}
.cw-app .cw-site-stage-number{flex:none;color:#127e8f;font-size:14px;font-weight:800;letter-spacing:.03em}
.cw-app .cw-site-stage-copy{display:grid;gap:6px;flex:1}
.cw-app .cw-site-stage-copy strong{font-size:17px;line-height:1.2}
.cw-app .cw-site-stage-copy small{font-size:13px;line-height:1.4;color:#5a707d}
.cw-app .cw-site-stage-card>svg{width:18px!important;flex:none;color:#367f8d}


/* Existing approved layout foundation. */

/* TraceCert Contractor Studio — production UI. Uses the approved data/API host.
   Official TraceCert colours sourced from lockbox.css: #061a35 / #00c8ff. */
body:has(.cw-app){background:#f4f6f9}
.cw-app{
 --ts-navy:#061a35;--ts-cyan:#00a4d5;--ts-light:#00c8ff;--ts-ink:#111d2a;--ts-muted:#4b5e70;
 --ink:#111d2a;--muted:#4b5e70;--line:#dce4ec;--surface:#fff;
 background:#f4f6f9!important;color:#111d2a!important;
 font:500 16px/1.53 -apple-system,BlinkMacSystemFont,CWManrope,"Segoe UI",sans-serif;
 -webkit-font-smoothing:antialiased
}
.cw-app .cw-sidebar{width:218px;background:#061a35;color:#cedcea;border-right:1px solid #12375d;padding:25px 14px}
.cw-app .cw-brand{font-size:23px}
.cw-app .cw-body{margin-left:218px}
.cw-app .cw-workspace-label{font-size:11px;letter-spacing:.11em;color:#bddaea}
.cw-app .cw-nav{font-size:14px;min-height:53px;padding:12px 13px;border-radius:12px;gap:12px}
.cw-app .cw-nav.active{background:#153b5e;box-shadow:inset 3px 0 #00c8ff;color:#fff}
.cw-app .cw-nav-capture{color:#fff;background:#066c8c;border:1px solid #278fab}
.cw-app .cw-nav-capture:hover{background:#087ca3}
.cw-app .cw-topbar{
 height:75px;border-bottom:1px solid #e0e8ee;background:rgba(255,255,255,.92);
 -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:0 31px
}
.cw-app .cw-screen{max-width:1450px;padding:30px 35px 50px}
.cw-app .cw-breadcrumb{font-size:14px}
.cw-app .cw-eyebrow,.cw-app .cw-heading .cw-eyebrow{
 font-size:12px;color:#116b8a;letter-spacing:.10em;font-weight:800
}
.cw-app .cw-heading h1{font-size:clamp(35px,4.2vw,56px);font-weight:760;letter-spacing:-.055em;line-height:1.04;color:#111d2a}
.cw-app .cw-heading p{font-size:17px;color:#435b6b;line-height:1.54}
.cw-app .cw-primary{
 background:#061a35!important;color:#fff!important;border-radius:15px;
 min-height:53px;font-size:15px;font-weight:700;border:1px solid #142e4c;
 box-shadow:0 8px 18px #061a3519
}
.cw-app .cw-primary:hover{background:#123d62!important}
.cw-app :is(.cw-panel,.cw-metrics>div,.cw-property-recent,.cw-site-stage-explorer,.cw-handover-summary,.cw-handover-checklist,.cw-project-dossier){
 background:#fff;border:1px solid #dfe5ec;box-shadow:0 9px 28px #061a3509;border-radius:21px;
 -webkit-backdrop-filter:none;backdrop-filter:none
}
.cw-app .cw-panel h2{font-size:20px;font-weight:700}
.cw-app .cw-metrics strong{font-size:34px}
.cw-app .cw-metric-label{font-size:14px}
.cw-app .cw-panel p,.cw-app .cw-small-count,.cw-app .cw-footnote{font-size:14px}
.cw-app .cw-link{color:#086b8d;border-radius:14px;font-size:15px;min-height:48px}
.cw-app .cw-link:hover{background:#e7f6fb}
.cw-app :is(input,textarea,select){font-size:16px;border-radius:13px;border-color:#cddae3;min-height:48px}
.cw-app :is(button,a,select,input,textarea):focus-visible{outline:3px solid #00a4d5;outline-offset:3px}
.cw-app button:disabled{opacity:.5;cursor:not-allowed}
.cw-app .ts-today{max-width:1375px;margin:0 auto}
.cw-app .ts-hero{
 display:grid;grid-template-columns:1fr 1.1fr;background:#fff;
 border-radius:27px;border:1px solid #dce5ed;overflow:hidden;
 box-shadow:0 14px 35px #061a350e
}
.cw-app .ts-welcome{
 min-width:0;padding:clamp(27px,4vw,55px);display:flex;flex-direction:column;justify-content:space-between;gap:26px
}
.cw-app .ts-topline{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px}
.cw-app .ts-count{font-size:13px;color:#587085;background:#f1f5f8;border:1px solid #dfe9ef;padding:7px 12px;border-radius:999px}
.cw-app .ts-welcome h1{
 font-size:clamp(44px,5vw,73px);font-weight:780;line-height:1.02;letter-spacing:-.068em;color:#101a29
}
.cw-app .ts-welcome>p{font-size:clamp(17px,1.4vw,20px);line-height:1.5;color:#465b6b;max-width:500px}
.cw-app .ts-hero-actions{display:grid;gap:12px}
.cw-app .ts-capture,.cw-app .ts-voice{
 width:100%;display:flex;align-items:center;gap:17px;min-height:91px;text-align:left;
 border-radius:20px;padding:18px 22px;transition:transform .18s,box-shadow .18s
}
.cw-app .ts-capture{background:#061a35;color:white;border:1px solid #082b50;box-shadow:0 12px 27px #061a3525}
.cw-app .ts-capture:hover{background:#0b3659}
.cw-app .ts-capture>svg:first-child,.cw-app .ts-voice>svg:first-child{width:29px;height:29px}
.cw-app .ts-capture>svg:last-child{margin-left:auto;width:24px}
.cw-app .ts-voice{background:#f2f7fa;border:1px solid #cfdee8;color:#142d44}
.cw-app .ts-voice>svg:first-child{color:#0099c8}
.cw-app .ts-hero-actions strong{display:block;font-size:19px;font-weight:740;line-height:1.3}
.cw-app .ts-hero-actions small{display:block;font-size:14px;margin-top:3px;opacity:.82}
.cw-app .ts-capture:not(:disabled):active,.cw-app .ts-voice:not(:disabled):active{transform:scale(.986)}
.cw-app .ts-feature{min-width:0;display:grid;grid-template-rows:minmax(210px,1fr) auto;background:#f8fafc;border-left:1px solid #dfe7ed}
.cw-app .ts-feature-image{min-height:310px;position:relative;overflow:hidden;background:linear-gradient(145deg,#dae6eb,#edf5f8)}
.cw-app .ts-feature-image>img{display:block;width:100%;height:100%;object-fit:cover}
.cw-app .ts-feature-image>.cw-photo-empty{height:100%;min-height:290px;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:14px;color:#507083;background:linear-gradient(145deg,#dce9ef,#f5f9fb);font-size:16px;text-align:center;padding:24px}
.cw-app .ts-feature-image>.cw-photo-empty svg{width:49px;height:49px;color:#0b779c}
.cw-app .ts-feature-details{padding:27px 30px 30px;background:#fff}
.cw-app .ts-feature-details h2{font-size:clamp(30px,2.7vw,41px);letter-spacing:-.055em;line-height:1.1;margin:7px 0 11px;font-weight:750}
.cw-app .ts-feature-details>p{font-size:17px;color:#526677}
.cw-app .ts-progress{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #e3eaf0;margin-top:21px;padding:18px 0 12px;font-size:15px}
.cw-app .ts-progress>b{color:#0a759b}
.cw-app .ts-text-link{
 display:inline-flex;align-items:center;gap:8px;color:#087eaa;background:transparent;
 min-height:44px;font-size:15px;font-weight:720;padding:8px 0;text-align:left
}
.cw-app .ts-text-link svg{width:18px;height:18px}
.cw-app .ts-no-project{padding:40px;align-content:center;gap:14px;display:flex;flex-direction:column}
.cw-app .ts-no-project h2{font-size:31px}
.cw-app .ts-no-project p{font-size:17px;color:#526b7a}
.cw-app .ts-main-columns{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(270px,.72fr);gap:27px;margin:47px 0 0}
.cw-app .ts-section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:0 0 18px;border-bottom:1px solid #dbe3eb}
.cw-app .ts-section-title h2{font-size:clamp(30px,3vw,41px);font-weight:750;line-height:1.12;letter-spacing:-.052em;margin-top:6px}
.cw-app .ts-timeline{display:grid}
.cw-app .ts-timeline-item{
 display:grid;grid-template-columns:116px minmax(0,1fr) 22px;gap:21px;
 align-items:center;text-align:left;width:100%;min-width:0;padding:21px 0;
 background:none;border-bottom:1px solid #dbe4eb;border-radius:0
}
.cw-app .ts-thumb{width:116px;height:112px;background:#e6eff3;border-radius:15px;overflow:hidden;display:grid;place-items:center}
.cw-app .ts-thumb>img{width:100%;height:100%;object-fit:cover}
.cw-app .ts-thumb>svg{width:37px;height:37px;color:#34829c}
.cw-app .ts-timeline-copy{display:grid;gap:7px;min-width:0}
.cw-app .ts-timeline-copy small{color:#08769b;font-size:13px;font-weight:700}
.cw-app .ts-timeline-copy strong{font-size:20px;font-weight:750;line-height:1.32;letter-spacing:-.018em}
.cw-app .ts-timeline-copy em{font-size:15px;line-height:1.45;color:#526776;font-style:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cw-app .ts-timeline-item>svg{color:#0e769a}
.cw-app .ts-mini-section,.cw-app .ts-ai-panel{padding:28px 25px;border:1px solid #dce5ed;border-radius:23px;background:#fff;box-shadow:0 10px 24px #061a3509}
.cw-app .ts-mini-section h2,.cw-app .ts-ai-panel h2{font-size:26px;letter-spacing:-.045em;line-height:1.13;margin:9px 0 16px;font-weight:750}
.cw-app .ts-mini-section .cw-empty{padding:16px 0}
.cw-app .ts-ai-panel{background:linear-gradient(150deg,#ebf7fb,#f9fcff);margin-top:16px}
.cw-app .ts-ai-panel p{font-size:15px;line-height:1.55;color:#425b6c;margin:0 0 20px}
.cw-app .ts-ai-panel .cw-primary{width:100%;justify-content:center}
.cw-app .ts-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:16px}
.cw-app .ts-stats span{display:grid;gap:3px;padding:18px 11px;text-align:center;background:#fff;border:1px solid #dbe5ed;border-radius:16px}
.cw-app .ts-stats strong{font-size:25px;line-height:1.1;color:#071f3b}
.cw-app .ts-stats small{font-size:12px;color:#4e6475;line-height:1.3}
.cw-app .cw-spotlight{height:clamp(310px,33vw,440px);border-radius:23px}
.cw-app .cw-spotlight h2{font-size:clamp(29px,3vw,41px)}
.cw-app .cw-project-workspace-hero{gap:18px}
.cw-app .cw-project-dossier{padding:30px}
.cw-app .cw-project-dossier h2{font-size:33px}
.cw-app .cw-project-card{border:1px solid #dee8ed;border-radius:22px;box-shadow:0 9px 25px #0e324c10}
.cw-app .cw-project-card strong{font-size:21px}
.cw-app .cw-project-card small{font-size:14px}
.cw-app .cw-portfolio-tools{padding:18px;border-radius:18px}
.cw-app .cw-portfolio-results{margin-top:18px}
.cw-app .cw-property-command{background:#061a35;border:1px solid #153f5e}
.cw-app .cw-property-command h2{font-size:clamp(32px,3vw,46px)}
.cw-app .cw-property-command .cw-eyebrow{color:#6edcfe}
.cw-app .cw-property-command .cw-primary{background:#fff!important;color:#061a35!important}
.cw-app .cw-property-command-actions .cw-link{color:#fff}
.cw-app .cw-site-stage-card{background:#f5f9fb;border:1px solid #dce6ee}
.cw-app .cw-site-stage-number{color:#047fa4}
.cw-app .cw-site-stage-card:hover{background:#eaf7fb}
.cw-app .cw-document{font-size:16px}
.cw-app .cw-media-card{border:1px solid #dde7ec;background:#fff;border-radius:21px}
.cw-app .cw-media-card .cw-card-copy strong{font-size:17px}
.cw-app .cw-media-card .cw-card-copy small{font-size:13px}
.cw-app .cw-handover-summary{background:#fff}
.cw-app .cw-readiness{--cw-ready:#00a4d5}
.cw-app .cw-acceptance-panel{border-radius:23px}
.cw-app .cw-acceptance-panel h2{font-size:33px}
body:has(.cw-app) #tc-roles-switcher{top:calc(10px + env(safe-area-inset-top));right:88px}
body:has(.cw-app) #tc-roles-switcher .tc-roles-toggle{background:#fff;border:1px solid #cbd9e4;color:#142d44;box-shadow:0 4px 15px #061a3516;font-size:12px}
body:has(.cw-app) #tc-pro-concierge{--tc-violet:#0b87ad;--tc-lilac:#ebf9fc;--tc-ink:#142638;--tc-muted:#526b77;font-family:CWManrope,-apple-system,system-ui,sans-serif}
body:has(.cw-app) #tc-pro-concierge .tc-trigger{
 background:#061a35;color:#fff;border:1px solid #153e5e;border-radius:22px;
 box-shadow:0 9px 25px #061a3529
}
body:has(.cw-app) #tc-pro-concierge .tc-brand-icon{background:#f6fafc}
body:has(.cw-app) #tc-pro-concierge .tc-brand-mark{filter:none}
body:has(.cw-app) #tc-pro-concierge .tc-ai-badge{background:linear-gradient(140deg,#17b4e1,#00759b);color:white}
body:has(.cw-app) #tc-pro-concierge .tc-panel{border-radius:23px;border:1px solid #d6e3ec;background:#fcfeff;box-shadow:0 18px 56px #061a3536}
body:has(.cw-app) #tc-pro-concierge .tc-top{background:#061a35;color:white}
body:has(.cw-app) #tc-pro-concierge .tc-top .tc-identity p{color:#d8eaf3}
body:has(.cw-app) #tc-pro-concierge .tc-primary{background:#061a35;color:#fff}
body:has(.cw-app) #tc-pro-concierge #tc-pro-voice{background:#e8f7fb;border:1px solid #a9dce8;color:#075d7d}
body:has(.cw-app) #tc-pro-concierge #tc-pro-voice.tc-voice-active{background:#d0f0f7;color:#093c55}
body:has(.cw-app) #tc-pro-concierge #tc-pro-input{color:#132839;background:#fff;font-size:16px}
@media(min-width:1200px){
 .cw-app .cw-screen{padding:34px 46px 55px}
}
@media(max-width:1110px){
 .cw-app .ts-hero{grid-template-columns:1fr}
 .cw-app .ts-feature{border-left:0;border-top:1px solid #dce5ed;grid-template-columns:1fr 1fr;grid-template-rows:auto}
 .cw-app .ts-feature-image{min-height:245px}
 .cw-app .ts-main-columns{grid-template-columns:1fr}
 .cw-app .ts-today-aside{display:grid;grid-template-columns:1fr 1fr;gap:14px}
 .cw-app .ts-ai-panel{margin-top:0}
 .cw-app .ts-stats{grid-column:1/-1}
}
@media(max-width:720px){
 .cw-app{font-size:16px}
 .cw-app .cw-body{margin:0}
 .cw-app .cw-topbar{height:70px;padding:0 16px}
 .cw-app .cw-screen{padding:18px 15px calc(129px + env(safe-area-inset-bottom))}
 .cw-app .cw-sidebar{
  left:10px;right:10px;bottom:calc(9px + env(safe-area-inset-bottom));top:auto;
  width:auto;height:74px;padding:5px 6px;border-radius:26px;
  background:rgba(253,254,255,.94);color:#445a68;border:1px solid rgba(255,255,255,.95);
  box-shadow:0 10px 32px #061a3526;
  -webkit-backdrop-filter:blur(25px);backdrop-filter:blur(25px)
 }
 .cw-app .cw-sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;align-items:center}
 .cw-app .cw-nav{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:5px 1px;min-height:61px;border-radius:17px;font-size:11px;color:#4b5e70}
 .cw-app .cw-nav svg{width:23px!important;height:23px!important}
 .cw-app .cw-nav.active{background:rgba(0,155,203,.11);color:#066d94;box-shadow:none}
 .cw-app .cw-nav-capture{
  display:flex;transform:translateY(-13px);border-radius:50%;width:61px;height:61px;
  align-items:center;justify-content:center;justify-self:center;gap:0;min-height:61px;
  padding:0;background:#061a35;color:#fff!important;box-shadow:0 5px 20px #061a3527;border:4px solid #fff
 }
 .cw-app .cw-nav-capture svg{width:27px!important;height:27px!important}
 .cw-app .cw-nav-capture span{display:none}
 .cw-app .ts-hero{border-radius:24px}
 .cw-app .ts-welcome{padding:25px 20px 24px;gap:25px}
 .cw-app .ts-topline{gap:8px}
 .cw-app .ts-count{font-size:11px;padding:6px 9px}
 .cw-app .ts-welcome h1{font-size:clamp(42px,11vw,57px);line-height:1.04;letter-spacing:-.065em}
 .cw-app .ts-welcome>p{font-size:17px}
 .cw-app .ts-capture,.cw-app .ts-voice{min-height:79px;padding:14px 17px;border-radius:17px;gap:14px}
 .cw-app .ts-hero-actions strong{font-size:17px}
 .cw-app .ts-hero-actions small{font-size:13px}
 .cw-app .ts-feature{grid-template-columns:1fr;grid-template-rows:auto}
 .cw-app .ts-feature-image{height:245px;min-height:245px}
 .cw-app .ts-feature-image>.cw-photo-empty{min-height:245px}
 .cw-app .ts-feature-details{padding:23px 20px 26px}
 .cw-app .ts-feature-details h2{font-size:33px}
 .cw-app .ts-feature-details>p{font-size:15px}
 .cw-app .ts-main-columns{margin-top:38px;gap:25px}
 .cw-app .ts-section-title h2{font-size:34px}
 .cw-app .ts-timeline-item{grid-template-columns:94px minmax(0,1fr) 14px;gap:13px;padding:18px 0}
 .cw-app .ts-thumb{width:94px;height:102px;border-radius:13px}
 .cw-app .ts-timeline-copy{gap:5px}
 .cw-app .ts-timeline-copy small{font-size:12px}
 .cw-app .ts-timeline-copy strong{font-size:16px;line-height:1.33}
 .cw-app .ts-timeline-copy em{font-size:13px;line-height:1.4;-webkit-line-clamp:2}
 .cw-app .ts-today-aside{grid-template-columns:1fr}
 .cw-app .ts-mini-section,.cw-app .ts-ai-panel{padding:23px 20px}
 .cw-app .ts-ai-panel{margin-top:0}
 .cw-app .ts-stats{grid-column:auto}
 .cw-app .cw-heading h1{font-size:37px}
 .cw-app .cw-heading p{font-size:16px}
 .cw-app .cw-panel{padding:19px}
 body:has(.cw-app) #tc-roles-switcher{top:calc(9px + env(safe-area-inset-top));right:73px}
 body:has(.cw-app) #tc-pro-concierge{bottom:calc(92px + env(safe-area-inset-bottom));right:12px}
 body:has(.cw-app) #tc-pro-concierge .tc-panel{width:calc(100vw - 16px);right:8px;bottom:calc(93px + env(safe-area-inset-bottom));height:min(740px,calc(100dvh - 105px))}
}
@media(max-width:355px){
 .cw-app .ts-timeline-item{grid-template-columns:75px minmax(0,1fr) 12px;gap:10px}
 .cw-app .ts-thumb{width:75px;height:85px}
 .cw-app .ts-timeline-copy strong{font-size:15px}
 .cw-app .cw-nav{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 .cw-app .ts-capture,.cw-app .ts-voice{transition:none!important}
}

/* Unified accessible records/document switcher; both modes use the existing authorised host. */
.cw-app .ts-record-nav{display:inline-flex;align-items:center;gap:6px;margin:0 0 23px;padding:5px;border:1px solid #d5e0e9;background:#eaf1f5;border-radius:16px;max-width:100%}
.cw-app .ts-record-nav button{padding:12px 17px;border-radius:12px;background:none;color:#3e586c;font-size:15px;font-weight:720;min-height:45px}
.cw-app .ts-record-nav button.active{background:#fff;color:#061a35;box-shadow:0 3px 12px #0e2c481a}
.cw-app .ts-record-nav button:focus-visible{outline:3px solid #00a4d5}
.cw-app .cw-collection-intro{font-size:14px;color:#516b7b}
.cw-app .cw-collection-intro>span{font-size:14px}
.cw-app .cw-library-toolbar{margin:18px 0}
.cw-app .cw-search input{font-size:16px}
.cw-app .cw-results-head{font-size:15px}
.cw-app .cw-result-count{font-size:15px}
.cw-app .cw-document-list{background:#fff;border:1px solid #dce5eb;border-radius:20px;overflow:hidden}
.cw-app .cw-document{padding:17px;border-bottom:1px solid #e3eaf0}
.cw-app .cw-document strong{font-size:16px}
.cw-app .cw-document small{font-size:13px}
.cw-app .cw-gallery{gap:17px}
@media(max-width:720px){
 .cw-app .ts-record-nav{width:100%;display:grid;grid-template-columns:1fr 1fr}
 .cw-app .ts-record-nav button{font-size:13px;padding:12px 9px;min-height:48px}
 .cw-app .cw-collection-intro,.cw-app .cw-collection-intro>span{font-size:12px}
}

.cw-app .cw-brand{display:flex;align-items:center;gap:11px;color:#fff;font-size:23px}
.cw-app .cw-brand .ts-trace-logo{width:37px;height:40px;object-fit:contain;flex:none;filter:none}
.cw-app .cw-mobile-brand{align-items:center;gap:9px;color:#061a35;font-size:18px}
.cw-app .cw-mobile-brand .ts-trace-logo{width:34px;height:37px}
.cw-app .cw-mobile-brand small{color:#516979;font-size:8px;letter-spacing:.11em}
.cw-app .cw-brand small{display:block;color:#a6d9ea;font-size:8px;letter-spacing:.09em}
@media(max-width:720px){
 body:has(.cw-app) #tc-roles-switcher{right:78px;top:calc(12px + env(safe-area-inset-top))}
 body:has(.cw-app) #tc-roles-switcher .tc-roles-toggle{
  display:grid;place-items:center;position:relative;width:45px;height:45px;
  min-width:45px;min-height:45px;border-radius:50%;font-size:0;padding:0;
  background:#fff;color:#10324c;border:1px solid #d5e0e7;box-shadow:0 3px 12px #061a3515
 }
 body:has(.cw-app) #tc-roles-switcher .tc-roles-toggle::before{
  content:"⇄";font-size:26px;font-weight:650;line-height:1
 }
 body:has(.cw-app) #tc-roles-switcher .tc-roles-toggle span{display:none}
 body:has(.cw-app) #tc-roles-switcher .tc-roles-list{right:0;top:52px;min-width:220px}
}

/* Authentic project story — real project photo and records from the signed-in host. */
.cw-app .ts-project-cover{display:grid;grid-template-columns:1.04fr .96fr;border:1px solid #dfe7ed;border-radius:26px;overflow:hidden;background:#fff;box-shadow:0 12px 32px #061a3510;margin-bottom:43px}
.cw-app .ts-project-photo{background:#e8f0f3;min-height:360px;overflow:hidden;position:relative}
.cw-app .ts-project-photo>img{width:100%;height:100%;object-fit:cover;display:block}
.cw-app .ts-project-photo>.cw-photo-empty{width:100%;height:100%;min-height:360px;display:grid;align-content:center;justify-items:center;gap:12px;color:#516c7a;text-align:center;padding:35px;font-size:16px}
.cw-app .ts-project-photo>.cw-photo-empty svg{width:47px;height:47px;color:#0d82a6}
.cw-app .ts-project-summary{padding:clamp(23px,3vw,40px);display:flex;flex-direction:column;justify-content:center;min-width:0}
.cw-app .ts-project-summary h2{font-size:clamp(34px,3.8vw,52px);font-weight:760;letter-spacing:-.06em;line-height:1.07;margin:12px 0}
.cw-app .ts-project-summary>p{font-size:17px;color:#516878}
.cw-app .ts-project-summary dl{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e1e9ee;margin:27px 0 25px}
.cw-app .ts-project-summary dl>div{padding:14px 10px 14px 0;border-bottom:1px solid #e1e9ee}
.cw-app .ts-project-summary dt{font-size:12px;color:#4f6576;text-transform:uppercase;letter-spacing:.065em;font-weight:700}
.cw-app .ts-project-summary dd{font-size:17px;font-weight:720;color:#162c3c;margin:5px 0 0}
.cw-app .ts-project-actions{display:flex;flex-wrap:wrap;gap:11px}
.cw-app .ts-project-actions .cw-primary,.cw-app .ts-project-actions .cw-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;font-size:15px}
.cw-app .ts-project-journal{margin:0 0 38px}
.cw-app .ts-project-journal>.ts-section-title{margin-bottom:5px}
.cw-app .ts-project-journal .ts-timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}
.cw-app .ts-project-journal .ts-timeline-item{grid-template-columns:99px minmax(0,1fr) 18px;gap:13px}
.cw-app .ts-project-journal .ts-thumb{height:95px;width:99px}
.cw-app .ts-project-journal .ts-timeline-copy strong{font-size:17px}
@media(max-width:1050px){
 .cw-app .ts-project-cover{grid-template-columns:1fr}
 .cw-app .ts-project-photo{height:340px;min-height:340px}
}
@media(max-width:720px){
 .cw-app .ts-project-cover{border-radius:23px;margin-bottom:32px}
 .cw-app .ts-project-photo{height:245px;min-height:245px}
 .cw-app .ts-project-photo>.cw-photo-empty{min-height:245px}
 .cw-app .ts-project-summary{padding:24px 20px}
 .cw-app .ts-project-summary h2{font-size:35px}
 .cw-app .ts-project-summary>p{font-size:15px}
 .cw-app .ts-project-summary dl{margin:20px 0}
 .cw-app .ts-project-summary dd{font-size:15px}
 .cw-app .ts-project-actions{display:grid;grid-template-columns:1fr}
 .cw-app .ts-project-actions .cw-primary,.cw-app .ts-project-actions .cw-link{width:100%;min-height:53px}
 .cw-app .ts-project-journal{margin-bottom:30px}
 .cw-app .ts-project-journal .ts-timeline{grid-template-columns:1fr}
 .cw-app .ts-project-journal .ts-timeline-item{grid-template-columns:86px minmax(0,1fr) 15px}
 .cw-app .ts-project-journal .ts-thumb{width:86px;height:92px}
}



/* Unified production experience: layouts follow the Lovable-approved SiteOS,
   while record, capture, AI and handover actions continue using TraceCert's
   authenticated host and private storage. This file replaces the three prior
   competing add-on style sheets. */
.cw-app{
 --ts-accent:#008da6;--ts-accent-strong:#08718c;--ts-accent-soft:#e4f5f8;
 --ts-paper:#f8fafc;--ts-text:#17242d;--ts-secondary:#4f6270;
 --ink:var(--ts-text);--muted:var(--ts-secondary);--line:#dde5ea;
 --surface:#fff;
 background:#f6f8fa!important;color:var(--ts-text)!important;
 font:500 16px/1.53 -apple-system,BlinkMacSystemFont,CWManrope,"Segoe UI",sans-serif;
}
body:has(.cw-app){background:#f6f8fa!important;overscroll-behavior-y:contain}
body:has(.cw-app)>aside.sidebar,
body:has(.cw-app)>.mobilehead,
body:has(.cw-app)>.mobilenav{display:none!important}
body:has(.cw-app)>main#app{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
.cw-app,.cw-app *{box-sizing:border-box}
.cw-app .cw-body{min-width:0}
.cw-app .cw-topbar{
 position:sticky;top:0;z-index:100;
 height:83px;padding:12px clamp(14px,2.4vw,36px);
 display:flex;gap:14px;align-items:center;
 background:rgba(248,250,251,.89);border-bottom:1px solid #e6eaef;
 -webkit-backdrop-filter:blur(24px) saturate(130%);backdrop-filter:blur(24px) saturate(130%);
}
.cw-app .cw-breadcrumb{min-width:0;flex:1;font-size:15px;color:#475c69}
.cw-app .cw-breadcrumb b{color:#172834}
.cw-app .cw-mobile-brand{display:none}
.cw-app .ts-header-actions{
 display:flex;align-items:center;justify-content:flex-end;gap:9px;
 margin-left:auto;min-width:0;flex:none
}
.cw-app .ts-header-ai{
 display:inline-flex;align-items:center;justify-content:center;gap:9px;
 padding:6px 15px 6px 7px;min-height:48px;
 border:1px solid #dfe6ea;border-radius:28px;
 background:#17252f;color:#fff;white-space:nowrap;box-shadow:0 6px 19px #13263114;
 font:700 14px/1.2 -apple-system,BlinkMacSystemFont,CWManrope,system-ui,sans-serif;
 transition:transform .18s ease,box-shadow .18s ease
}
.cw-app .ts-header-ai:not(:disabled):active{transform:scale(.97)}
.cw-app .ts-header-ai-icon{display:grid;place-items:center;position:relative;width:35px;height:35px;border-radius:12px;background:#fff;flex:none}
.cw-app .ts-header-ai-icon img{width:26px;height:29px;object-fit:contain}
.cw-app .ts-header-ai-icon i{
 position:absolute;right:-5px;top:-5px;display:grid;place-items:center;
 width:16px;height:16px;border:2px solid #fff;border-radius:50%;
 font-size:11px;line-height:1;font-style:normal;color:#fff;
 background:#8273ad
}
.cw-app .cw-account-menu{position:relative;flex:none;z-index:10}
.cw-app .cw-account-menu summary{
 list-style:none;display:flex;align-items:center;justify-content:center;
 min-width:47px;min-height:47px;border:1px solid #d6e0e5;border-radius:50%;
 background:#fff;color:#213b4b;cursor:pointer;padding:7px
}
.cw-app .cw-account-menu summary::-webkit-details-marker{display:none}
.cw-app .cw-account-menu summary>svg{width:24px!important;height:24px!important;padding:0!important}
.cw-app .cw-account-menu>div{
 top:calc(100% + 10px);right:0;min-width:225px;
 background:#fff;border:1px solid #dae5eb;border-radius:18px;
 box-shadow:0 14px 36px #172a3d25;z-index:1000
}
.cw-app .cw-account-menu>div :is(button,a){
 display:flex;align-items:center;min-height:44px;padding:11px 15px;
 font-size:14px;font-weight:650;color:#223a48;border-radius:11px
}
.cw-app .cw-account-menu>div :is(button,a):hover{background:#e7f7f9}
.cw-app .cw-account-menu summary:focus-visible,
.cw-app .ts-header-ai:focus-visible{outline:3px solid #008da6;outline-offset:3px}
body:has(.cw-app) #tc-roles-switcher{
 position:relative!important;top:auto!important;right:auto!important;
 left:auto!important;bottom:auto!important;z-index:30!important;
 margin:0;padding:0;flex:none
}
body:has(.cw-app) #tc-roles-switcher .tc-roles-toggle{
 display:grid!important;place-items:center!important;
 min-width:47px!important;width:47px!important;
 height:47px!important;min-height:47px!important;
 background:#fff!important;color:#163243!important;
 border:1px solid #d6e0e5!important;border-radius:50%!important;
 padding:0!important;font-size:0!important;
 box-shadow:0 3px 11px #172d4012!important
}
body:has(.cw-app) #tc-roles-switcher .tc-roles-toggle::before{
 content:"⇄";font:650 26px/1 -apple-system,BlinkMacSystemFont,system-ui,sans-serif
}
body:has(.cw-app) #tc-roles-switcher .tc-roles-toggle span{display:none}
body:has(.cw-app) #tc-roles-switcher .tc-roles-list{
 right:0;top:calc(100% + 10px);min-width:215px;
 border-radius:17px;border:1px solid #dbe5e9;box-shadow:0 15px 40px #0f2c3b25
}
.cw-app .cw-sidebar{
 width:218px;background:#fbfcfd!important;color:#526373!important;
 border-right:1px solid #e1e8ed!important;box-shadow:none!important;
 padding:27px 14px
}
.cw-app .cw-body{margin-left:218px}
.cw-app .cw-sidebar .cw-brand{font-size:23px;color:#18303f!important}
.cw-app .cw-brand small{color:#5d7180}
.cw-app .cw-workspace-label{font-size:12px;color:#637986}
.cw-app .cw-nav{
 color:#485f6e;display:flex;align-items:center;
 padding:14px 15px;font-size:15px;font-weight:680;min-height:55px;
 border-radius:15px;box-shadow:none
}
.cw-app .cw-nav.active{
 background:#e2f5f8!important;color:#006f89!important;
 box-shadow:none!important;border:1px solid #cceaf0
}
.cw-app .cw-nav-capture{
 background:#008da6!important;color:#fff!important;
 border:1px solid #008da6!important;box-shadow:0 4px 11px #008da621
}
.cw-app .cw-nav-capture:hover{background:#08728a!important}
.cw-app .cw-sidebar-bottom{color:#657984}
.cw-app .cw-screen{max-width:1450px;padding:34px 35px 75px}
.cw-app .cw-eyebrow,.cw-app .cw-heading .cw-eyebrow{color:#08738c!important;font-size:12px;font-weight:790;letter-spacing:.11em}
.cw-app .cw-heading h1,.cw-app .ts-welcome h1,.cw-app .ts-section-title h2{
 color:#15222c!important;font-weight:780;letter-spacing:-.055em
}
.cw-app .cw-heading p{color:#4f6170;font-size:17px;line-height:1.55}
.cw-app .ts-hero,.cw-app .ts-project-cover{
 background:#fff;border:1px solid #e1e6ea;
 box-shadow:0 12px 32px #283f5010;
 border-radius:27px
}
.cw-app .ts-welcome h1{font-size:clamp(43px,5.1vw,68px);line-height:1.04}
.cw-app .ts-welcome>p{color:#425663;font-size:18px}
.cw-app .ts-count{font-size:13px;border-color:#dbe5e9;background:#fff;color:#536978}
.cw-app .ts-capture{
 background:#008da6!important;border:1px solid #008da6!important;
 color:#fff!important;box-shadow:0 11px 24px #008da629!important;border-radius:20px
}
.cw-app .ts-capture:hover{background:#08748a!important}
.cw-app .ts-voice{
 background:#f1f5f7!important;border:1px solid #d8e2e8!important;
 color:#203645!important;box-shadow:none!important;border-radius:20px
}
.cw-app .ts-voice>svg:first-child{color:#008da6!important}
.cw-app .ts-hero-actions strong{font-size:18px;line-height:1.25}
.cw-app .ts-hero-actions small{font-size:14px;color:inherit;opacity:.88}
.cw-app .ts-feature{background:#fff;border-color:#e1e7eb}
.cw-app .ts-feature-details h2{color:#15222c;font-weight:770}
.cw-app .ts-progress>b{color:#087a94}
.cw-app .ts-text-link{color:#007b98;font-size:15px;font-weight:760}
.cw-app .ts-timeline-copy small{color:#057b97}
.cw-app .ts-timeline-copy strong{color:#132632;font-size:19px;line-height:1.35}
.cw-app .ts-timeline-copy em{color:#495e6d;font-size:15px}
.cw-app .ts-timeline-item{min-height:128px}
.cw-app .ts-mini-section,.cw-app .ts-ai-panel{
 background:#fff;border:1px solid #e1e7ec;box-shadow:0 10px 24px #142c4010;
 border-radius:23px
}
.cw-app .ts-ai-panel{background:linear-gradient(145deg,#f0fafb,#f9fcff)!important}
.cw-app .ts-ai-panel h2{color:#1d3441}
.cw-app .ts-ai-panel p{color:#48616e}
.cw-app .ts-stats span{background:#fff}
.cw-app .ts-stats strong{color:#18303e}
.cw-app .ts-record-nav{background:#eef4f7}
.cw-app .ts-record-nav button.active{background:#fff;color:#1b3441}
.cw-app .cw-primary{
 color:#fff!important;background:#008da6!important;border:1px solid #008da6!important;
 border-radius:15px;box-shadow:0 7px 17px #008da623!important;
 font-size:15px;font-weight:740
}
.cw-app .cw-primary:not(:disabled):hover{background:#067892!important}
.cw-app .cw-link{color:#007993!important}
.cw-app .cw-project-card{background:#fff}
.cw-app .cw-property-command{
 background:linear-gradient(148deg,#e7f6f8,#f8fbfc)!important;
 color:#19323f!important;border:1px solid #dcebee!important;box-shadow:0 10px 28px #17354311
}
.cw-app .cw-property-command h2{color:#152e3b!important}
.cw-app .cw-property-command>p{color:#516a77!important}
.cw-app .cw-property-command .cw-eyebrow{color:#007f9b!important}
.cw-app .cw-property-pill{color:#126077;background:#fff;border:1px solid #cfe7eb}
.cw-app .cw-property-command-stats>div{background:#fff;border:1px solid #dce8ed}
.cw-app .cw-property-command-stats span{color:#536b78}
.cw-app .cw-property-command-actions .cw-primary{color:#fff!important;background:#008da6!important}
.cw-app .cw-property-command-actions .cw-link{color:#007993!important;border:1px solid #abd7df!important}
.cw-app .cw-site-stage-explorer,.cw-app .cw-property-recent{
 background:#fff;border:1px solid #e0e8ed;box-shadow:0 10px 22px #1434470c
}
.cw-app .cw-site-stage-card{background:#f6f9fa}
.cw-app .cw-site-stage-number{color:#007993}
.cw-app .cw-handover-summary{background:#fff}
.cw-app .cw-acceptance-panel{background:#eef8fa;border-color:#cee6ec}
.cw-app .cw-readiness{--cw-ready:#008da6!important}
.cw-app :is(.cw-panel,.cw-metrics>div,.cw-handover-checklist){background:#fff}
.cw-app :is(input,textarea,select){font-size:16px!important;min-height:46px;color:#1b303e}
.cw-app :is(.cw-nav,.cw-primary,.cw-link,.ts-capture,.ts-voice,.ts-header-ai,button,a):focus-visible{
 outline:3px solid #008da6;outline-offset:3px
}
/* Only one TraceCert AI entry point and one Profile tools entry point on the
   contractor workspace. Their functional dialogs remain available. */
body:has(.cw-app) #tc-media-launch{display:none!important}
body:has(.cw-app) #tc-pro-concierge .tc-trigger{display:none!important}
body:has(.cw-app) #tc-pro-concierge{z-index:2700!important;--tc-violet:#047e9a;--tc-lilac:#eff9fb;font-family:-apple-system,BlinkMacSystemFont,CWManrope,system-ui,sans-serif}
body:has(.cw-app) #tc-pro-concierge .tc-panel{
 border-radius:25px;border:1px solid #d9e7ec;background:#fff;
 box-shadow:0 24px 68px #1937463d
}
body:has(.cw-app) #tc-pro-concierge .tc-top{
 background:#f7fafb!important;color:#203744!important;border-bottom:1px solid #dce9ec
}
body:has(.cw-app) #tc-pro-concierge .tc-top .tc-identity p{color:#45606e!important}
body:has(.cw-app) #tc-pro-concierge #tc-pro-input{color:#18303e;background:#fff}
body:has(.cw-app) #tc-pro-concierge #tc-pro-voice{background:#e6f4f7;border-color:#c6e5ec;color:#007a97}
body:has(.cw-app) #tc-pro-concierge #tc-pro-voice.tc-voice-active{background:#c9ecf4}
@media(min-width:721px) and (max-width:1180px){
 .cw-app .ts-hero{grid-template-columns:1fr}
 .cw-app .ts-feature{grid-template-columns:1fr 1fr}
 .cw-app .ts-main-columns{grid-template-columns:1fr}
}
@media(max-width:720px){
 body:has(.cw-app){max-width:100%;overflow-x:hidden}
 .cw-app{width:100%;min-width:0}
 .cw-app .cw-body{margin-left:0!important;padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
 .cw-app .cw-topbar{
  height:79px!important;padding:10px 14px!important;
  background:rgba(248,250,251,.92)!important;
  border-bottom:1px solid #e5ebee;
  gap:10px;justify-content:space-between;
  overflow:visible
 }
 .cw-app .cw-mobile-brand{
  display:flex!important;align-items:center;flex:1;min-width:0;
  white-space:nowrap;overflow:hidden;font-size:17px!important;color:#172d39!important;letter-spacing:-.045em
 }
 .cw-app .cw-mobile-brand .ts-trace-logo{width:30px!important;height:34px!important;flex:none}
 .cw-app .cw-mobile-brand>span{display:block;min-width:0;max-width:118px;overflow:hidden;text-overflow:ellipsis}
 .cw-app .cw-mobile-brand small{display:none!important}
 .cw-app .cw-breadcrumb{display:none!important}
 .cw-app .ts-header-actions{gap:6px;flex:none;max-width:calc(100% - 135px)}
 .cw-app .ts-header-ai{height:44px;min-height:44px;padding:5px 10px 5px 5px;gap:7px;font-size:12px;border-radius:23px}
 .cw-app .ts-header-ai-icon{width:31px;height:31px;border-radius:10px}
 .cw-app .ts-header-ai-icon img{width:24px;height:26px}
 .cw-app .cw-account-menu summary{width:43px;height:43px;min-width:43px;min-height:43px;padding:7px}
 body:has(.cw-app) #tc-roles-switcher .tc-roles-toggle{width:43px!important;min-width:43px!important;height:43px!important;min-height:43px!important}
 .cw-app .cw-screen{padding:16px 15px calc(200px + env(safe-area-inset-bottom))!important;max-width:100%}
 .cw-app .cw-sidebar{
  position:fixed!important;z-index:150!important;
  inset:auto 12px calc(16px + env(safe-area-inset-bottom)) 12px!important;
  width:calc(100% - 24px)!important;
  height:80px!important;min-height:80px!important;
  padding:7px!important;margin:0!important;
  background:rgba(252,253,254,.96)!important;color:#425969!important;
  border:1px solid rgba(255,255,255,.98)!important;
  border-radius:28px!important;
  box-shadow:0 12px 37px #203b4f2b,0 1px 3px #264a6110!important;
  -webkit-backdrop-filter:blur(24px) saturate(130%);backdrop-filter:blur(24px) saturate(130%)
 }
 .cw-app .cw-sidebar>.cw-brand,.cw-app .cw-sidebar .cw-workspace-label,.cw-app .cw-sidebar-bottom{display:none!important}
 .cw-app .cw-sidebar nav{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:3px!important;align-items:center!important;justify-content:stretch!important;
  width:100%!important;height:100%!important;margin:0!important
 }
 .cw-app .cw-sidebar .cw-nav{
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;gap:5px!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  min-height:64px!important;height:64px!important;
  padding:6px 1px!important;margin:0!important;
  border:none!important;border-radius:17px!important;
  background:transparent!important;color:#425765!important;
  font-size:11px!important;line-height:1.12!important;font-weight:690!important;
  white-space:normal!important;text-align:center!important;
  box-shadow:none!important;touch-action:manipulation;cursor:pointer
 }
 .cw-app .cw-sidebar .cw-nav svg{width:24px!important;height:24px!important;flex:none!important}
 .cw-app .cw-sidebar .cw-nav.active{background:#e7f5f8!important;color:#007a96!important}
 .cw-app .cw-sidebar .cw-nav-capture{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:66px!important;height:66px!important;min-height:66px!important;
  max-width:100%!important;justify-self:center!important;
  border:4px solid #fff!important;border-radius:50%!important;
  background:#008da6!important;color:#fff!important;
  transform:translateY(-13px)!important;
  box-shadow:0 7px 22px #057d9833!important;padding:0!important
 }
 .cw-app .cw-sidebar .cw-nav-capture svg{width:28px!important;height:28px!important}
 .cw-app .cw-sidebar .cw-nav-capture span{display:none!important}
 .cw-app .cw-sidebar .cw-nav-capture:focus-visible{outline:3px solid #00556c;outline-offset:2px}
 .cw-app .cw-sidebar .cw-nav-capture:disabled{opacity:.5}
 .cw-app .ts-hero{display:flex;flex-direction:column;border-radius:23px}
 .cw-app .ts-welcome{padding:27px 22px 24px!important;gap:23px}
 .cw-app .ts-welcome h1{font-size:clamp(41px,10.5vw,53px);letter-spacing:-.063em;line-height:1.05}
 .cw-app .ts-welcome>p{font-size:17px;line-height:1.5}
 .cw-app .ts-hero-actions{gap:11px}
 .cw-app .ts-capture,.cw-app .ts-voice{min-height:81px;padding:16px!important;border-radius:18px;gap:13px}
 .cw-app .ts-hero-actions strong{font-size:17px}
 .cw-app .ts-hero-actions small{font-size:13px}
 .cw-app .ts-feature{display:flex;flex-direction:column;border-top:1px solid #e0e7eb;border-left:0}
 .cw-app .ts-feature-image{min-height:270px;height:270px}
 .cw-app .ts-feature-image>.cw-photo-empty{min-height:270px;padding:25px}
 .cw-app .ts-feature-details{padding:25px 22px}
 .cw-app .ts-feature-details h2{font-size:33px}
 .cw-app .ts-main-columns{display:flex;flex-direction:column;margin-top:41px;gap:30px}
 .cw-app .ts-section-title h2{font-size:35px}
 .cw-app .ts-timeline-item{grid-template-columns:88px minmax(0,1fr) 16px;gap:13px;min-height:115px;padding:20px 0}
 .cw-app .ts-thumb{width:88px;height:100px;border-radius:15px}
 .cw-app .ts-timeline-copy small{font-size:13px}
 .cw-app .ts-timeline-copy strong{font-size:17px}
 .cw-app .ts-timeline-copy em{font-size:14px}
 .cw-app .ts-today-aside{display:flex;flex-direction:column;gap:16px}
 .cw-app .ts-mini-section,.cw-app .ts-ai-panel{padding:23px 20px;margin-top:0}
 .cw-app .ts-stats{margin-top:0}
 .cw-app .ts-stats small{font-size:12px}
 .cw-app .cw-heading h1{font-size:38px}
 .cw-app .cw-heading p{font-size:16px}
 .cw-app .cw-panel h2{font-size:20px}
 .cw-app .cw-project-card strong{font-size:20px}
 .cw-app .cw-project-workspace-hero{display:flex;flex-direction:column}
 .cw-app .cw-project-grid{grid-template-columns:1fr}
 .cw-app .ts-project-cover{display:flex;flex-direction:column}
 .cw-app .ts-project-photo{height:265px}
 .cw-app .ts-project-summary{padding:26px 22px}
 .cw-app .ts-project-journal .ts-timeline{display:grid;grid-template-columns:1fr}
 .cw-app .ts-record-nav{display:grid;grid-template-columns:1fr 1fr;gap:5px;width:100%}
 .cw-app .ts-record-nav button{padding:12px 9px;font-size:13px}
 .cw-app .cw-media-card .cw-card-copy strong,.cw-app .cw-document strong{font-size:16px}
 .cw-app .cw-readiness strong{font-size:40px}
 body:has(.cw-app) #tc-pro-concierge .tc-panel{
  position:fixed!important;
  left:8px!important;right:8px!important;top:auto!important;
  bottom:calc(8px + env(safe-area-inset-bottom))!important;
  width:calc(100vw - 16px)!important;
  height:calc(100dvh - 26px - env(safe-area-inset-bottom))!important;
  max-height:800px!important;border-radius:26px!important;
 }
 body:has(.cw-app) #tc-pro-concierge .tc-backdrop{z-index:2000!important}
 body:has(.cw-app) #tc-pro-concierge .tc-panel{z-index:2010!important}
}
@media(max-width:375px){
 .cw-app .cw-topbar{padding:10px 10px!important;gap:5px}
 .cw-app .cw-mobile-brand{font-size:15px!important}
 .cw-app .ts-header-actions{gap:4px}
 .cw-app .ts-header-ai{font-size:11px}
 .cw-app .ts-header-ai-icon{width:29px;height:29px}
 .cw-app .ts-header-ai span:last-child{display:none}
 .cw-app .ts-header-ai{padding:5px!important;width:43px}
 .cw-app .cw-sidebar{left:8px!important;right:8px!important;width:calc(100% - 16px)!important}
 .cw-app .cw-sidebar .cw-nav{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){
 .cw-app .ts-capture,.cw-app .ts-voice,.cw-app .ts-header-ai{transition:none!important}
}

/* Real construction records: accessible timeline / gallery modes. */
.cw-app .ts-record-layout{
 display:inline-flex;align-items:center;gap:5px;padding:5px;
 margin:0 12px 19px 0;background:#ebf3f5;border:1px solid #d9e7eb;
 border-radius:16px
}
.cw-app .ts-record-layout button{
 min-width:105px;min-height:44px;background:transparent;
 border-radius:12px;padding:9px 16px;
 font-size:15px;font-weight:730;color:#445b69
}
.cw-app .ts-record-layout button.active{
 background:#fff;color:#006e89;box-shadow:0 3px 11px #173a4d16
}
.cw-app .ts-record-timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px;margin:9px 0 25px}
.cw-app .ts-record-timeline .ts-timeline-item{
 grid-template-columns:98px minmax(0,1fr) 18px;gap:14px;
 min-width:0;min-height:125px;padding:20px 0
}
.cw-app .ts-record-timeline .ts-thumb{width:98px;height:110px}
.cw-app .ts-record-timeline .ts-timeline-copy strong{font-size:17px}
.cw-app .ts-record-timeline .ts-timeline-copy em{font-size:14px}
.cw-app .cw-project-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:21px}
.cw-app .cw-project-card{
 display:flex;flex-direction:column;overflow:hidden;padding:0!important;
 background:#fff;border:1px solid #e0e7eb;border-radius:26px;
 box-shadow:0 12px 32px #153a4a10
}
.cw-app .cw-project-card > img,.cw-app .cw-project-card > .cw-photo-empty{
 width:100%;height:280px;min-height:280px;object-fit:cover
}
.cw-app .cw-project-card > .cw-photo-empty{
 display:grid;place-content:center;justify-items:center;gap:10px;
 background:#e9f1f3;padding:25px;text-align:center;color:#567380;
 font-size:15px
}
.cw-app .cw-project-card > .cw-photo-empty svg{width:43px!important;height:43px!important;color:#008da6}
.cw-app .cw-project-card .cw-card-copy{display:grid;gap:9px;padding:24px 23px 26px}
.cw-app .cw-project-card .cw-card-copy small{color:#08738b;font-size:13px;font-weight:730}
.cw-app .cw-project-card .cw-card-copy strong{font-size:26px;font-weight:770;letter-spacing:-.042em;line-height:1.13}
.cw-app .cw-project-card .cw-card-copy>span{font-size:15px;color:#506572}
.cw-app .cw-project-card .cw-card-bottom{color:#007a94!important;font-weight:730}
.cw-app .cw-handover-grid{grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);gap:21px}
.cw-app .cw-handover-summary,.cw-app .cw-handover-checklist{
 background:#fff;border:1px solid #dfe7ed;border-radius:24px;
 box-shadow:0 12px 28px #173b4c0d;padding:clamp(22px,3vw,34px)
}
.cw-app .cw-handover-summary h2{font-size:29px;font-weight:760;letter-spacing:-.04em}
.cw-app .cw-handover-summary p{font-size:15px;line-height:1.55;color:#4f6473}
.cw-app .cw-handover-checklist h2{font-size:27px;font-weight:760;letter-spacing:-.04em}
.cw-app .cw-checklist li{padding:18px 0;font-size:16px;border-color:#e4ecf1}
.cw-app .cw-checklist li strong{font-size:16px}
.cw-app .cw-checklist li small{font-size:13px;color:#577081}
.cw-app .cw-acceptance-panel{
 background:#f0f9fb;border:1px solid #d6e8ed;
 border-radius:25px;margin-top:27px
}
.cw-app .cw-acceptance-panel h2{font-size:clamp(28px,3vw,38px);font-weight:760}
@media(max-width:1020px){
 .cw-app .ts-record-timeline{grid-template-columns:1fr}
 .cw-app .cw-handover-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
 .cw-app .ts-record-layout{display:grid;grid-template-columns:1fr 1fr;width:100%;margin:0 0 15px}
 .cw-app .ts-record-layout button{width:100%;font-size:15px}
 .cw-app .ts-record-timeline{display:grid;grid-template-columns:1fr;gap:0}
 .cw-app .ts-record-timeline .ts-timeline-item{
  grid-template-columns:88px minmax(0,1fr) 15px;gap:12px;
  min-height:115px;padding:18px 0
 }
 .cw-app .ts-record-timeline .ts-thumb{width:88px;height:99px;border-radius:14px}
 .cw-app .ts-record-timeline .ts-timeline-copy strong{font-size:16px}
 .cw-app .cw-project-grid{grid-template-columns:1fr;gap:17px}
 .cw-app .cw-project-card > img,.cw-app .cw-project-card > .cw-photo-empty{height:275px;min-height:275px}
 .cw-app .cw-project-card .cw-card-copy{padding:22px}
 .cw-app .cw-project-card .cw-card-copy strong{font-size:25px}
 .cw-app .cw-handover-summary,.cw-app .cw-handover-checklist{padding:23px 19px}
 .cw-app .cw-handover-summary h2{font-size:27px}
 .cw-app .cw-handover-checklist h2{font-size:26px}
 .cw-app .cw-acceptance-panel{padding:25px 20px}
}
