/* Team Command Center — Lens redesign spec (Josh approved Nov 12). Light theme, charcoal header.
   Color roles: every color has one job. Vendor logo tiles (black) are content, not accent. */
@font-face{font-family:'Montserrat';src:url('/fonts/montserrat.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:'Figtree';src:url('/fonts/figtree.woff2') format('woff2');font-weight:600 800;font-style:normal;font-display:swap}
:root{
  --charcoal:#2B2F36; --page:#F2F3F5; --line:#DADDE2; --quiet:#6B7280; --white:#FFFFFF;
  --blue:#1F5FBF; /* provisional until CCM brand blue is confirmed */
  --green:#1E8E3E; --yellow:#F2C200; --red:#C62828;
  --heading:'Figtree','Visby CF',ui-rounded,system-ui,sans-serif; --body:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--page);color:var(--charcoal);font:400 14px/21px var(--body);font-variant-numeric:tabular-nums}
h1,h2,h3,h4{font-family:var(--heading);margin:0;color:var(--charcoal)}
h1{font-size:22px;line-height:28px;font-weight:700}h2{font-size:18px;line-height:24px;font-weight:700}h3{font-size:16px;line-height:22px;font-weight:600}
p{margin:0}
a{color:var(--blue);font-weight:600;text-decoration:none}a:hover{text-decoration:underline}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
button,input,select{font:inherit;color:inherit}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.meta,.meta-note{font-size:12px;line-height:16px;color:var(--quiet)}
.label{font-size:12px;line-height:16px;font-weight:600;color:var(--quiet)}
.unknown{color:var(--quiet);font-style:italic;font-weight:400}
.empty{color:var(--quiet);font-size:13px;padding:8px 0}

/* Header: one shared slim charcoal bar */
.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:16px;min-height:56px;padding:8px 24px;background:var(--charcoal);flex-wrap:wrap}
.topbar h1{color:var(--white);font-size:18px;white-space:nowrap}
.tabs{display:flex;gap:4px;margin:0 auto}
.tabs button{background:transparent;border:0;border-radius:8px;padding:8px 14px;color:var(--white);font-weight:600;cursor:pointer;font-size:14px}
.tabs button:hover{text-decoration:underline}
.tabs button[aria-selected="true"]{background:var(--blue)}
.topbar-actions{display:flex;align-items:center;gap:8px}
.sync-pill{font-size:12px;font-weight:600;color:var(--charcoal);background:var(--page);border-radius:999px;padding:4px 10px;white-space:nowrap}
.sync-pill.is-stale{background:var(--red);color:var(--white)}
.btn-ghost{background:transparent;border:1px solid var(--line);color:var(--white);border-radius:8px;padding:5px 12px;cursor:pointer;font-size:12px;font-weight:600}
.btn-ghost:hover{border-color:var(--white)}
.stale-bar{background:var(--red);color:var(--white);font-weight:600;padding:10px 24px}
main{max-width:1520px;margin:0 auto;padding:24px}
.notice{background:var(--white);border:1px solid var(--red);border-left:4px solid var(--red);border-radius:8px;padding:12px 16px;margin-bottom:16px}

/* Traffic lights: always a word, never color alone */
.light{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:16px;font-weight:600;border-radius:999px;padding:3px 10px;width:fit-content;white-space:nowrap}
.light::before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
.light-red{background:var(--red);color:var(--white)}
.light-yellow{background:var(--yellow);color:var(--charcoal)}
.light-green,.light-done{background:var(--green);color:var(--white)}
.light-none{background:var(--page);color:var(--quiet);border:1px solid var(--line)}.light-none::before{display:none}
.edge-red{border-left:4px solid var(--red)!important}.edge-yellow{border-left:4px solid var(--yellow)!important}.edge-green,.edge-done{border-left:4px solid var(--green)!important}.edge-none{border-left:4px solid var(--line)!important}
.chip-status{display:inline-block;font-size:12px;line-height:16px;font-weight:600;background:var(--page);color:var(--charcoal);border:1px solid var(--line);border-radius:999px;padding:3px 10px;white-space:nowrap}

/* Shared surfaces */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px 16px;margin:0}
.facts dt{font-size:12px;line-height:16px;color:var(--quiet)}.facts dd{margin:2px 0 0;font-weight:600}
.facts dd.unknown{font-weight:400}

/* Mission Control */
.focus-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px;margin-bottom:8px}
.focus-card{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:16px 20px;display:flex;flex-direction:column;gap:12px;min-width:0}
.focus-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.focus-days{display:flex;flex-direction:column;align-items:flex-end}
.display{font-family:var(--heading);font-size:28px;line-height:34px;font-weight:700}
.focus-next{display:flex;gap:12px;align-items:center}.focus-next .identity-name{font-size:12px}
.focus-blocker{font-size:13px}
#verify-note{margin:0 0 16px}
.lane{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:16px 20px;margin:16px 0}
.lane-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px}
.lane-sort{font-size:12px;color:var(--quiet)}
.lane-list{list-style:none;margin:0;padding:0}
.lane-row{display:grid;grid-template-columns:32px minmax(220px,2.4fr) repeat(var(--cols,5),minmax(90px,1fr)) auto;gap:12px;align-items:start;padding:12px 0;border-top:1px solid var(--line)}
.lane-row:first-child{border-top:0}
.lane-cell{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.lane-cell.wide strong,.lane-cell.wide a{display:block}
.lane-open{align-self:center}
.mini .identity{--circle:32px}.mini .identity-name{display:none}
.held{margin-top:8px;border-top:1px solid var(--line);padding-top:8px}
.held summary{cursor:pointer;font-weight:600;color:var(--blue)}
.held ul{margin:8px 0 0;padding-left:18px}.held li{margin:4px 0}
.glance{margin:16px 0}.glance h2{margin-bottom:8px}
.glance-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.glance-cell{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:12px 16px;display:flex;flex-direction:column}
.glance-cell strong{font-family:var(--heading);font-size:22px;line-height:28px}
.glance-sub{margin:16px 0 8px}
.chip-row{display:flex;flex-wrap:wrap;gap:8px}
.how-to{margin:24px 0 8px;font-size:13px}.how-to summary{cursor:pointer;color:var(--blue);font-weight:600}.how-to p{max-width:90ch;margin:8px 0}

/* Identity circles (approved: fill edge to edge; 168 px org, 56 px task, 8 px to name) */
.identity{--circle:56px;position:relative;display:inline-flex;flex-direction:column;align-items:center;gap:8px;max-width:100%;text-align:center;vertical-align:top}
.identity-frame{position:relative;display:block;flex:none;width:var(--circle);height:var(--circle);border-radius:50%;overflow:hidden;background:var(--tile,var(--page))}
.identity-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;max-width:none}
.identity-frame img.headshot{object-position:50% 30%}
.identity-name{min-width:0;line-height:1.2;overflow-wrap:anywhere;font-weight:600;font-size:13px}
.identity[data-brand="ChatGPT"],.identity[data-brand="Codex"]{--tile:#000}
.identity[data-brand="Grok Bot"]{--tile:#050505}
.identity[data-brand="Claude"],.identity[data-brand="Gemini"],.identity[data-brand="Copilot"]{--tile:var(--white)}
.identity[data-brand="Claude"] .identity-frame,.identity[data-brand="Gemini"] .identity-frame,.identity[data-brand="Copilot"] .identity-frame{box-shadow:inset 0 0 0 1px var(--line)}
.identity[data-brand="Claude"] .identity-frame img,.identity[data-brand="Copilot"] .identity-frame img{inset:19%;width:62%;height:62%;object-fit:contain}
.identity[data-brand="Gemini"] .identity-frame img{inset:22%;width:56%;height:56%;object-fit:contain}
.identity[data-brand="Script"]{--tile:var(--page)}
.identity[data-brand="Script"] .identity-frame{box-shadow:inset 0 0 0 1px var(--line)}
.asset-unavailable::after{content:'No logo';position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:var(--quiet)}
.identity[data-brand="Script"] .identity-frame::after{content:'⏱';font-size:calc(var(--circle)*.4);color:var(--charcoal)}
.identity-frame.sub-badge{--circle:48px;position:absolute;top:116px;left:calc(50% + 34px);background:var(--white);box-shadow:0 0 0 3px var(--white),inset 0 0 0 1px var(--line)}
.identity-frame.sub-badge img{inset:22%;width:56%;height:56%;object-fit:contain}

/* Org Chart: chart first, thin charcoal connectors, equal card heights */
.org-tree{display:flex;flex-direction:column;align-items:center}
.org-top{display:flex;justify-content:center}
.org-stem{width:2px;height:24px;background:var(--charcoal)}
.org-card{width:220px;background:var(--white);border:1px solid var(--line);border-radius:12px}
.org-node{height:330px;display:flex;flex-direction:column;align-items:center;padding:16px 12px 12px;text-align:center;list-style:none;cursor:pointer}
.org-node::-webkit-details-marker{display:none}
.org-josh .org-node{cursor:default}
.org-node .identity{--circle:168px}
.org-node .identity-name{font-family:var(--heading);font-size:26px;line-height:32px;font-weight:800}
.org-role{font-size:13px;font-weight:600;margin-top:4px}
.org-model{font-size:12px;line-height:16px;color:var(--quiet);margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.org-status{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.org-card[open]{width:300px}
.org-body{border-top:1px solid var(--line);padding:12px;display:flex;flex-direction:column;gap:12px;text-align:left}
.org-seat{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.org-groups{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;position:relative;padding-top:16px;border-top:2px solid var(--charcoal);width:100%}
.org-group{background:var(--page);padding:12px;border-radius:12px;display:flex;flex-direction:column;gap:4px}
.org-group h3{text-align:center}.org-group>.meta{text-align:center;margin-bottom:8px}
.org-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:flex-start}
.org-other{margin-top:24px;width:100%}.org-other h3{margin-bottom:8px}
.seat-chip{display:inline-flex;align-items:center;gap:8px;background:var(--white);border:1px solid var(--line);border-radius:999px;padding:4px 10px 4px 4px}
.seat-chip .identity{--circle:32px;flex-direction:row}
.heartbeat{font-size:13px}

/* Work Board */
.section-title{font-size:22px;line-height:28px;margin-bottom:16px}
.work-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;margin-bottom:16px}
.work-controls label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--quiet)}
.work-controls input,.work-controls select{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:8px 10px;min-width:220px;color:var(--charcoal);font-size:14px}
.work-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(360px,100%),1fr));gap:16px}
.work-card{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
.card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.owner{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.owner .identity{flex-direction:row}
.card-foot{display:flex;flex-wrap:wrap;gap:12px;align-items:center;border-top:1px solid var(--line);padding-top:8px}
.configuration summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;gap:8px 12px;font-size:12px}
.configuration summary::-webkit-details-marker{display:none}
.run-line{display:flex;flex-wrap:wrap;gap:4px 12px;color:var(--quiet)}.run-line b{color:var(--charcoal);font-weight:600}.run-line b.unknown{color:var(--quiet)}
.configuration .hint{color:var(--blue);font-weight:600}
.configuration[open]>*:not(summary){margin-top:8px}

/* Footer */
footer{max-width:1520px;margin:0 auto;padding:16px 24px 32px;display:flex;flex-wrap:wrap;gap:8px 24px;font-size:12px;line-height:16px;color:var(--quiet);border-top:1px solid var(--line)}
.notion-line{display:flex;align-items:center;gap:12px;flex-basis:100%}
.brand-credits{flex-basis:100%}.brand-credits summary{cursor:pointer;color:var(--blue);font-weight:600}.brand-credits p{margin:8px 0;max-width:100ch}

/* Login */
.login-page{min-height:100vh;display:grid;place-items:center;background:var(--page)}
.login-card{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:32px;width:min(380px,92vw);display:flex;flex-direction:column;gap:12px}
.login-card h1{font-size:22px}.login-card .sub{color:var(--quiet);font-size:13px}
.login-card form{display:flex;flex-direction:column;gap:8px}
.login-card label{font-size:12px;font-weight:600;color:var(--quiet)}
.login-card input{border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:14px}
.login-card button{background:var(--blue);color:var(--white);border:0;border-radius:8px;padding:10px 12px;font-weight:600;cursor:pointer}
#login-error{color:var(--red);font-size:13px;min-height:16px}

/* Phone */
@media(max-width:900px){
  .topbar{padding:8px 12px;gap:8px}.topbar h1{font-size:16px;flex:1}
  .tabs{order:3;width:100%;margin:0;justify-content:space-between}.tabs button{flex:1;padding:8px 6px;font-size:13px}
  main{padding:16px 12px}
  .lane-row{grid-template-columns:32px 1fr;gap:8px 12px}
  .lane-row>.lane-cell,.lane-row>.lane-open{grid-column:2}
  .work-controls input,.work-controls select{min-width:0;width:100%}.work-controls label{flex:1 1 140px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.proof{font-size:13px}
.health p{max-width:110ch}
.work-note{margin:0 0 12px}
