/* CRM workspace proposal. Uses the validated September neutral shell tokens. */
.crw-record{min-width:0;background:var(--base);color:var(--ink)}
.crw-active .crw-record.qcu-host{padding-right:44px}
.crw-active .crw-record.qcu-host.qcu-with-composer{padding-right:var(--qcu-width,380px)}
.crw-wa-context{display:flex;flex-direction:column;gap:7px;padding:16px;border-bottom:1px solid var(--line);font-size:13px}.crw-wa-context>span{font-size:12px;color:var(--muted)}.crw-wa-context a{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink);text-decoration:none}.crw-wa-context a:hover{text-decoration:underline}
.crw-record :where(a,button,input,summary):focus-visible,#crw-finder :focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.crw-record svg,.crw-breadcrumb svg{width:16px;height:16px;flex-shrink:0}
.crw-record .crm-graph-visual{margin:20px 0 24px;border-radius:12px;overflow:auto;background:var(--surface)}
.crw-record .crm-graph-visual>svg{display:block;width:100%;min-width:600px;height:clamp(340px,52vh,540px)}
.crw-record .crm-graph-node text{font-size:15px;font-weight:500}
.crw-record .ct-graph-root{display:none}
.crw-graph{margin:24px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--base)}
.crw-graph-toolbar{padding:14px 16px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;border-bottom:1px solid var(--line)}
.crw-graph-toolbar>span{color:var(--muted);font-size:12px;margin-left:auto}
.crw-graph-filters{display:flex;gap:6px;flex-wrap:wrap}
.crw-graph-views{display:flex;gap:3px;padding:3px;margin-left:auto;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.crw-graph-views button{display:flex;align-items:center;gap:7px;padding:6px 9px;min-height:28px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.crw-graph-views button[aria-pressed=true]{background:var(--base);color:var(--ink);box-shadow:0 1px 3px #00000010}.crw-graph-views svg{width:14px;height:14px}
.crw-graph [hidden],.crw-relations-list[hidden],.crw-relations-list [hidden]{display:none!important}
.crw-graph[data-view=list]{margin-bottom:16px}
.crw-graph-depth{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.crw-graph-depth>div{display:flex;padding:3px;background:var(--surface);border:1px solid var(--line);border-radius:8px;gap:3px}.crw-graph-depth button{min-height:28px;border:0;border-radius:5px;background:none;font:inherit;color:inherit;padding:5px 9px;cursor:pointer}.crw-graph-depth button[aria-pressed=true]{background:var(--base);color:var(--ink);box-shadow:0 1px 3px #00000010}.crw-graph-depth>small{font-size:12px;margin-left:auto}
.crw-graph-branchbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.crw-graph-branchbar label{display:flex;align-items:center;gap:8px}.crw-graph-branchbar select{max-width:300px;min-height:32px;border:1px solid var(--line);border-radius:8px;background:var(--base);color:var(--ink);padding:4px 8px;font:inherit}.crw-graph-branchbar>span{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px}.crw-graph-branchbar>span svg{width:12px;height:12px}
.crw-graph-levels{display:grid;grid-template-columns:30% 40% 30%;min-width:900px;padding-top:18px;text-align:center;font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.crw-graph-multilevel .crw-graph-node{width:22%}.crw-graph-node.is-expanded{border-color:var(--ink);box-shadow:0 0 0 3px var(--base),0 0 0 4px var(--line)}.crw-graph-wires .is-focus{stroke:var(--ink);stroke-width:1.6}.crw-graph-empty{padding:28px 20px;color:var(--muted);font-size:14px}
@media(max-width:768px){.crw-graph-toolbar,.crw-graph-depth{align-items:flex-start}.crw-graph-depth{flex-wrap:wrap}.crw-graph-depth>small{width:100%;margin:0}.crw-graph-views{margin:0}.crw-graph-views button,.crw-graph-filter,.crw-graph-depth button{min-height:44px}.crw-graph-branchbar label{flex-direction:column;align-items:flex-start;width:100%}.crw-graph-branchbar select{width:100%;max-width:100%;font-size:16px;min-height:44px}.crw-graph-branchbar>span{display:none}}
.crw-graph-filter{display:flex;align-items:center;gap:7px;padding:6px 9px;min-height:32px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.crw-graph-filter small{font-size:11px;opacity:.8}.crw-graph-filter svg{width:14px;height:14px}
.crw-graph-filter[aria-pressed=true]{background:var(--ink);color:var(--base)}.crw-graph-filter:hover:not([aria-pressed=true]){border-color:var(--line);background:var(--surface)}
.crw-graph-scroll{overflow:auto;background-color:var(--surface);background-image:radial-gradient(var(--line) .8px,transparent .8px);background-size:18px 18px}
.crw-graph-canvas{position:relative;min-width:900px}
.crw-record .crw-graph-wires{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;stroke:var(--line);stroke-width:1.5}.crw-graph-wires circle{fill:var(--muted);stroke:none}
.crw-graph-node{position:absolute;transform:translate(-50%,-50%);width:24%;height:84px;display:flex;align-items:center;gap:11px;padding:13px;text-align:left;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--base);font:inherit;cursor:pointer;box-shadow:0 3px 8px #00000004;transition:border-color .18s,box-shadow .18s,transform .18s}
.crw-graph-node:hover{border-color:var(--muted);box-shadow:0 6px 20px #0000000b;transform:translate(-50%,calc(-50% - 2px))}
.crw-graph-node>.crw-graph-icon{width:32px;height:32px;border-radius:9px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;flex-shrink:0;color:var(--muted)}
.crw-graph-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.crw-graph-copy>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crw-graph-copy small{font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.crw-graph-copy strong{font-size:13px;font-weight:600}.crw-graph-copy>span{font-size:11px;color:var(--muted)}
.crw-graph-node>svg{width:13px;height:13px;color:var(--muted);align-self:flex-start;flex-shrink:0}
.crw-record .crw-graph-center{position:absolute;left:50%;transform:translate(-50%,-50%);width:22%;min-height:146px;padding:20px 16px;display:flex;align-items:center;flex-direction:column;gap:7px;text-align:center;border-radius:16px;background:var(--ink);color:var(--base);border:4px solid var(--base);box-shadow:0 0 0 1px var(--line),0 8px 24px #0000000c}
.crw-graph-center-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid #ffffff35;border-radius:9px}.crw-graph-center>small{font-size:10px;opacity:.65;text-transform:uppercase;letter-spacing:.07em}.crw-graph-center>strong{font-size:17px;font-weight:500;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crw-graph-center>span:last-child{display:flex;align-items:center;gap:8px;font-size:11px;opacity:.7}.crw-graph-center>span:last-child svg{width:12px;height:12px}
.crw-graph-overflow{padding:12px 16px;margin:0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
@media(prefers-reduced-motion:reduce){.crw-graph-node{transition:none}}
.crw-relations-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;gap:16px;align-content:start;overflow:auto;overscroll-behavior:contain;min-height:280px;height:var(--crw-list-height,580px);padding:0}
.crw-existing-content>.crw-relations-list{margin:0 24px 24px}
.crw-existing-content>.ct-section>.crw-graph{margin:16px 0}
.crw-relations-list .ct-relations{min-width:0;margin:0;align-self:start;border:1px solid var(--line);border-radius:12px;background:var(--base);overflow:hidden}
.crw-relations-list .ct-relations>summary{display:flex;align-items:center;gap:8px;padding:16px;font-size:14px;font-weight:600;background:var(--surface);list-style:none;cursor:pointer}
.crw-relations-list summary::-webkit-details-marker{display:none}
.crw-relations-list summary>span{margin-left:auto;min-width:24px;height:24px;padding:0 7px;border-radius:7px;background:var(--base);border:1px solid var(--line);display:grid;place-items:center;font-size:12px}
.crw-relations-list .ct-item{display:flex;align-items:center;gap:12px;margin:0;padding:16px!important;border-top:1px solid var(--line);border-bottom:0}
.crw-relations-list .ct-item .grow{min-width:0;flex:1}.crw-relations-list .ct-item h3{font-size:14px;font-weight:500;line-height:1.5;margin:0}
.crw-relations-list .ct-copy{font-size:12px;line-height:1.5;margin:4px 0 0;color:var(--muted)}
.crw-relations-list .btn{font-size:12px;min-height:32px;flex-shrink:0;gap:8px}.crw-relations-list .ct-empty{padding:16px;margin:0}
.crw-record a{color:inherit;text-decoration:none}
.crw-breadcrumb{display:flex;align-items:center;gap:12px;min-width:0;font-size:13px;white-space:nowrap}
.crw-breadcrumb>a{display:flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font-weight:500}
.crw-breadcrumb>span{color:var(--muted)}
.crw-header-actions{margin-left:auto}
.crw-identity{padding:24px;display:flex;align-items:flex-start;gap:16px;border-bottom:1px solid var(--line)}
.crw-avatar{width:56px;height:56px;display:grid;place-items:center;flex-shrink:0;background:var(--elevated);border:1px solid var(--line);border-radius:12px;font-size:20px;font-weight:600;letter-spacing:-.04em}
.crw-identity-copy{min-width:0;flex:1}
.crw-title-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.crw-title-line h1{font-size:24px;line-height:1.25;font-weight:600;letter-spacing:-.04em;margin:0;overflow-wrap:anywhere}
.crw-title-line .badge{font-size:12px;font-weight:500}
.crw-identity-copy>p{font-size:14px;color:var(--muted);margin:8px 0 0}
.crw-meta{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:12px}
.crw-meta>span,.crw-meta>button{display:inline-flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.crw-meta>button{font:inherit;color:inherit;background:none;border:0;padding:0;text-align:left;cursor:pointer;min-height:24px}
.crw-meta>button:hover{color:var(--ink)}
.crw-meta svg{width:14px;height:14px}
.crw-quick{display:flex;gap:8px;align-items:center;padding-top:4px}
.crw-quick .btn{min-height:32px;white-space:nowrap;font-size:13px;gap:8px}
.crw-nav{display:flex;gap:24px;align-items:center;border-bottom:1px solid var(--line);padding:0 24px;background:var(--base);overflow-x:auto;scrollbar-width:none;position:sticky;top:0;z-index:5}
.crw-nav::-webkit-scrollbar,.crw-subnav::-webkit-scrollbar{display:none}
.crw-nav>a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;min-height:56px;border-bottom:2px solid transparent;font-size:14px;color:var(--muted);font-weight:500}
.crw-nav>a[aria-current]{color:var(--ink);border-bottom-color:var(--ink)}
.crw-nav>a:hover{color:var(--ink)}
.crw-nav .crw-find{margin-left:auto;flex-shrink:0;min-width:32px}
.crw-subnav{display:flex;gap:8px;padding:12px 24px;border-bottom:1px solid var(--line);overflow-x:auto;background:var(--surface);scrollbar-width:none}
.crw-subnav>a{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid transparent;border-radius:8px;min-height:32px;padding:4px 12px;font-size:13px;color:var(--muted)}
.crw-subnav>a[aria-current]{background:var(--base);border-color:var(--line);color:var(--ink);font-weight:500}
.crw-metrics{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;border-bottom:1px solid var(--line)}
.crw-metrics>a{padding:24px;border-right:1px solid var(--line);transition:background .18s}
.crw-metrics>a:last-child{border-right:0}
.crw-metrics>a:hover{background:var(--surface)}
.crw-metrics>a>div{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px;font-weight:500}
.crw-metrics>a>div>svg:last-child{margin-left:auto;width:14px;height:14px}
.crw-metrics strong{display:block;font-size:24px;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.03em;margin-top:12px}
.crw-metrics small{display:block;font-size:12px;margin-top:4px;color:var(--muted)}
.crw-summary-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-width:0}
.crw-summary-main{min-width:0}
.crw-summary-main>section{padding:24px;border-bottom:1px solid var(--line)}
.crw-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;min-height:32px}
.crw-section-title h2{font-size:18px;line-height:1.35;font-weight:600;letter-spacing:-.02em;margin:0}
.crw-section-title p{font-size:12px;color:var(--muted);margin-top:4px}
.crw-text-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)!important;white-space:nowrap}
.crw-text-link:hover{color:var(--ink)!important;text-decoration:underline}
.crw-work-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}
.crw-work-row:last-child{border-bottom:0}
.crw-work-row>div{flex:1;min-width:0}
.crw-work-row strong{display:block;font-weight:500;overflow-wrap:anywhere}
.crw-work-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.crw-work-row>span:not(.crw-row-icon){font-variant-numeric:tabular-nums;flex-shrink:0}
.crw-row-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--surface);border:1px solid var(--line);flex-shrink:0}
.crw-work-row:hover strong{text-decoration:underline}
.crw-timeline .ct-item,.crw-timeline .co-event{position:relative;margin-left:8px;padding:0 0 24px 24px;border:0;border-left:1px solid var(--line);gap:16px}
.crw-timeline .ct-item::before,.crw-timeline .co-event::before{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:var(--subtle);border:3px solid var(--base);box-sizing:content-box;left:-7px;top:4px}
.crw-timeline .ct-item:last-child,.crw-timeline .co-event:last-child{padding-bottom:0;border-left-color:transparent}
.crw-timeline .ct-copy,.crw-timeline .co-copy{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:14px;margin:8px 0;white-space:normal}
.crw-timeline :is(h3,strong){font-size:14px;font-weight:500}
.crw-timeline .btn{min-height:32px;font-size:12px;padding:4px 12px}
.crw-context{border-left:1px solid var(--line);min-width:0;background:var(--surface)}
.crw-context>section{padding:24px;border-bottom:1px solid var(--line)}
.crw-context .crw-section-title h2{font-size:14px;letter-spacing:0}
.crw-facts{margin:0;display:grid;gap:16px}
.crw-facts>div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px}
.crw-facts dt{font-size:12px;color:var(--muted);line-height:1.5}
.crw-facts dd{margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.crw-facts dd a{display:inline-flex;align-items:center;gap:4px;text-decoration:underline;text-underline-offset:3px}
.crw-facts dd svg{width:12px;height:12px}
.crw-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}
.crw-score{display:flex;gap:16px;align-items:center}
.crw-score>strong{font-size:24px;font-weight:600;letter-spacing:-.02em}
.crw-score small{font-size:12px;color:var(--muted);font-weight:400;letter-spacing:0;margin-left:8px}
.crw-score>span,.crw-score~p{font-size:12px;color:var(--muted)}
.crw-score~p{margin-top:8px}
.crw-people>a{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.crw-people>a>div{flex:1;min-width:0}
.crw-people strong{font-size:14px;font-weight:500;display:block;overflow-wrap:anywhere}
.crw-people small{font-size:12px;color:var(--muted);display:block;overflow-wrap:anywhere;margin-top:4px}
.crw-people .avatar{width:32px;height:32px;font-size:12px;flex-shrink:0}
.crw-document-shortcut>svg{width:24px;height:24px;color:var(--muted)}
.crw-document-shortcut>h2{font-size:14px;font-weight:500;margin-top:12px}
.crw-document-shortcut>p{font-size:12px;color:var(--muted);margin:8px 0 16px}
.crw-document-shortcut>.btn{width:100%;gap:8px;font-size:13px}
.crw-context .btn{gap:8px;font-size:12px}
.crw-empty{padding:32px 16px;text-align:center;color:var(--muted)}
.crw-empty>svg{width:24px;height:24px;margin-bottom:12px}
.crw-empty>p{font-size:14px;line-height:1.6;margin:0 auto;max-width:440px}
.crw-empty>.btn{margin-top:16px}
.crw-profile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.crw-profile>.section{min-width:0;border-bottom:1px solid var(--line);padding:24px}
.crw-profile>.section:nth-child(odd){border-right:1px solid var(--line)}
.crw-profile .definition{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:0}
.crw-profile .definition>div{padding:12px 0;border-bottom:1px solid var(--line)}
.crw-profile .definition dt{font-size:12px;color:var(--muted);margin-bottom:8px}
.crw-profile .definition dd{font-size:14px;overflow-wrap:anywhere;min-height:20px;margin:0}
.crw-profile .section-heading{margin-bottom:16px}
.crw-profile h2{font-size:18px}
.crw-profile-actions{display:flex;gap:12px;flex-wrap:wrap}
.crw-wide{grid-template-columns:1fr}.crw-span{grid-column:1/-1}
.crw-source-note{font-size:12px;color:var(--muted);line-height:1.6;margin-top:16px}
.crw-web-journey>article{display:flex;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}
.crw-web-journey>article>span{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:12px}
.crw-web-journey>article>div{flex:1;min-width:0}.crw-web-journey strong{font-size:14px;font-weight:500}.crw-web-journey p,.crw-web-journey time{font-size:12px;color:var(--muted);margin-top:4px}
.crw-insight{font-size:14px;line-height:1.8;max-width:850px;padding:16px 24px;border-left:2px solid var(--line);background:var(--surface)}
.crw-company-node{display:flex;gap:16px;align-items:center;margin:24px 0;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.crw-profile .ct-empty{padding:12px 0;font-size:14px}
.crw-profile .co-actions{margin-top:24px}
.crw-company-profile{grid-template-columns:2fr 1fr}
.crw-existing-content{min-width:0}
.crw-existing-content .co-operator-tabs{display:none}
.crw-existing-content>.section{padding:24px}
.crw-existing-content .section-heading{margin-bottom:16px}
.crw-existing-content .ct-item{padding:16px 0}
.crw-existing-content .ct-copy{max-width:850px}
.crw-view-actions{display:flex;justify-content:flex-end;gap:8px;padding:16px 24px;border-bottom:1px solid var(--line)}
.crw-existing-content .co-stats{padding:16px 24px}
.crw-existing-content .co-stats dd{font-size:20px}
.crw-existing-content .co-filters{padding:12px 24px}
.crw-existing-content .co-filters .btn{min-height:32px}
.crw-note-list>article{padding:24px;border-bottom:1px solid var(--line);border-left:2px solid var(--warn);background:var(--warn-bg)}
.crw-note-list>article>span{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}
.crw-note-list>article>p{white-space:pre-wrap;font-size:14px;line-height:1.7;margin-top:12px}
.crw-docbar{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;gap:16px;border-bottom:1px solid var(--line)}
.crw-docbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;min-width:0}
.crw-docbar strong{font-weight:500}
.crw-docbar>div>span{font-size:12px;color:var(--muted)}
.crw-docbar>.btn{white-space:nowrap;gap:8px}
.crw-explorer{display:block;width:100%;height:max(520px,calc(100dvh - 400px));border:0;background:var(--base)}
.crw-embed{position:relative;min-height:520px}.crw-explorer:not(.is-ready){visibility:hidden}.crw-embed-loading{position:absolute;inset:32px 24px auto;font-size:14px;color:var(--muted)}
.crw-orgchart .co-contact{margin:16px 24px;border:1px solid var(--line);border-radius:var(--radius)}
#crw-finder{width:min(600px,calc(100vw - 32px));max-height:80dvh;max-height:80vh;padding:0;background:var(--base);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 40px -10px rgb(0 0 0 / .15)}
#crw-finder::backdrop{background:rgb(0 0 0 / .4)}
.crw-finder-head{display:flex;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}
.crw-finder-head h2{font-size:18px;flex:1;margin:0}
.crw-finder-search{display:flex;gap:12px;align-items:center;margin:16px 24px;border:1px solid var(--line);padding:8px 12px;border-radius:8px}
.crw-finder-search svg{width:18px;height:18px}
.crw-finder-search input{border:0;min-width:0;flex:1;font:inherit;font-size:16px;background:transparent;color:var(--ink);min-height:32px}
#crw-results{padding:0 12px 12px;max-height:52vh;overflow:auto}
#crw-results>a,#crw-results>button{display:flex;align-items:center;text-align:left;gap:12px;padding:12px;width:100%;min-height:44px;color:var(--ink);background:transparent;border:0;border-radius:8px;text-decoration:none;font:inherit;font-size:14px;cursor:pointer}
#crw-results>a:hover,#crw-results>button:hover{background:var(--elevated)}
#crw-results>*>span{flex:1}
#crw-results small{font-size:12px;color:var(--muted)}
#crw-results svg{width:16px;height:16px;flex-shrink:0}
.crw-no-result{padding:24px;color:var(--muted);font-size:14px}
@media(min-width:769px){.crw-active #a01-mobile-entry{display:none}}
@media(max-width:1200px){.crw-summary-grid{grid-template-columns:minmax(0,1fr) 280px}.crw-quick .btn:nth-child(2)>span{display:none}.crw-nav{gap:16px}.crw-identity{flex-wrap:wrap}.crw-quick{margin-left:72px}.crw-profile .definition{grid-template-columns:1fr}}
@media(max-width:960px){.crw-summary-grid{grid-template-columns:1fr}.crw-context{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr}.crw-context>section:nth-child(odd){border-right:1px solid var(--line)}.crw-company-profile{grid-template-columns:1fr}.crw-metrics>a{padding:16px}.crw-metrics>a>div>svg:last-child{display:none}.crw-metrics>a>div{gap:4px}.crw-nav{gap:20px}.crw-profile>.section{border-right:0!important}}
@media(max-width:768px){
  .crw-active .crw-record.qcu-host{padding-right:0}
  .crw-active .crw-record.qcu-host.qcu-with-composer{padding-right:0}
  .crw-graph{margin:16px}
  .crw-relations-list{grid-template-columns:1fr;gap:12px}.crw-existing-content>.crw-relations-list{margin:0 16px 16px}.crw-record .crm-graph-visual>svg{height:340px}
  .crw-active #qm-views{display:none!important}
  .crw-active #qm-page-header .sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .crw-identity{padding:16px;gap:12px}.crw-avatar{width:44px;height:44px;font-size:18px}
  .crw-title-line h1{font-size:24px}.crw-title-line{gap:8px}.crw-title-line .badge{font-size:12px}
  .crw-identity-copy>p{font-size:14px;line-height:1.5;margin-top:4px}.crw-meta{gap:4px 12px;margin-top:8px}.crw-meta>button{min-height:44px}
  .crw-quick{padding:0;margin:0;width:100%;display:grid;grid-template-columns:1fr 1fr 1fr}.crw-quick .btn{min-height:44px}.crw-quick .btn:nth-child(2)>span{display:inline}
  .crw-nav{padding:0 16px;gap:24px}.crw-nav>a{min-height:48px;font-size:14px}.crw-nav>a svg{display:none}.crw-nav .crw-find{min-width:44px;min-height:44px}
  .crw-subnav{padding:8px 16px;gap:4px}.crw-subnav>a{min-height:44px}
  .crw-metrics{grid-auto-flow:row;grid-template-columns:1fr 1fr}.crw-metrics>a{padding:16px;border-bottom:1px solid var(--line)}.crw-metrics>a:nth-child(even){border-right:0}.crw-metrics>a:last-child:nth-child(odd){grid-column:1/-1}.crw-metrics strong{margin-top:8px;font-size:24px}.crw-metrics small{line-height:1.5}
  .crw-summary-main>section,.crw-context>section{padding:16px}.crw-context{grid-template-columns:1fr}.crw-context>section{border-right:0!important}
  .crw-section-title{gap:8px}.crw-section-title h2{font-size:18px}.crw-section-title>.crw-text-link{min-height:44px}
  .crw-work-row{flex-wrap:wrap;padding:12px 0;gap:8px}.crw-work-row>div{flex-basis:calc(100% - 48px)}.crw-work-row>span:not(.crw-row-icon){margin-left:44px}.crw-work-row>svg{margin-left:auto}
  .crw-timeline .ct-item{flex-wrap:wrap}.crw-timeline .ct-item .grow{flex-basis:100%}.crw-timeline .btn{min-height:44px}
  .crw-profile{grid-template-columns:1fr}.crw-profile>.section,.crw-existing-content>.section{padding:16px!important}.crw-profile .definition{grid-template-columns:1fr 1fr;gap:16px}.crw-profile .definition dd{font-size:14px}
  .crw-record .btn,.crw-record .icon-btn{min-height:44px}.crw-record input,.crw-record select,.crw-record textarea{font-size:16px;min-height:44px}
  .crw-view-actions{padding:12px 16px;flex-wrap:wrap;justify-content:flex-start}.crw-existing-content .co-filters{padding:12px 16px}.crw-existing-content .co-stats{padding:16px}
  .crw-docbar{padding:16px;flex-wrap:wrap}.crw-docbar>.btn{width:100%}.crw-explorer{height:640px}
  .crw-finder-head{padding:16px}.crw-finder-search{margin:16px}.crw-finder-head h2{font-size:18px}
  .crw-profile-actions{gap:8px}.crw-note-list>article{padding:16px}
}
@media(max-width:380px){.crw-profile .definition{grid-template-columns:1fr}.crw-quick .btn{padding:8px;font-size:12px;gap:4px}.crw-quick .btn>svg{width:14px}.crw-identity-copy{flex-basis:calc(100% - 60px)}.crw-meta{margin-left:-56px;padding-top:8px}.crw-title-line h1{font-size:20px}.crw-section-title h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){.crw-record *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Same 44px rail as Inbox and Tickets; keep the label intact. */
.crw-record>.qcu-rail .tks-reply-reopen{width:100%;display:flex;align-items:center;flex-direction:column;gap:12px;padding:20px 0}
.crw-record>.qcu-rail .tks-reply-reopen>span{writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;word-break:normal}
.crw-record>.qcu-drawer .qcu-panel{height:100%}
.crw-record .ds-embedded{min-width:0}

/* The validated record groups use a single navigation and native disclosures. */
.crw-title-tools{display:flex;align-items:center;gap:8px;margin-left:8px}
.crw-title-tools>.btn{min-height:36px;padding:6px 12px;gap:8px;white-space:nowrap;font-size:13px}
.crw-disclosure{border-bottom:1px solid var(--line);min-width:0;scroll-margin-top:60px}
.crw-disclosure>summary{display:flex;align-items:center;gap:12px;min-height:68px;padding:16px 24px;list-style:none;cursor:pointer;font-size:16px;font-weight:500}
.crw-disclosure>summary::-webkit-details-marker{display:none}
.crw-disclosure>summary>small{padding:2px 8px;border:1px solid var(--line);border-radius:6px;font-size:12px;font-weight:400;color:var(--muted)}
.crw-disclosure>summary>svg:first-child{color:var(--muted)}
.crw-disclosure>summary>svg:last-child{margin-left:auto;transition:transform .16s;color:var(--muted)}
.crw-disclosure[open]>summary>svg:last-child{transform:rotate(180deg)}
.crw-disclosure>summary:hover{background:var(--surface)}
.crw-disclosure-content{min-width:0;padding:0 24px 24px}
.crw-disclosure-content>.ct-item{padding:16px 0}
.crw-disclosure-content .co-stats{padding:0 0 16px;border-top:0}
.crw-disclosure-content .co-filters{padding:0 0 16px;flex-wrap:wrap}
.crw-disclosure-content>.final-empty{min-height:0;padding:24px 0;margin:0}
.crw-disclosure-content>.ct-section,.crw-disclosure-content>.section{padding:0;border:0}
.crw-disclosure-content .table-wrap{max-width:100%;overflow:auto}
.crw-relation-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.crw-exchanges .ct-toolbar{padding:0 0 16px}
.crw-profile>[data-crw-section]{scroll-margin-top:60px}
@media(max-width:768px){.crw-title-tools{flex-basis:100%;margin-left:0}.crw-title-tools>.btn{min-height:44px}.crw-disclosure>summary{min-height:60px;padding:12px 16px}.crw-disclosure-content{padding:0 16px 16px}.crw-disclosure-content>.ct-section,.crw-disclosure-content>.section{padding:0!important}.crw-exchanges .ct-toolbar{flex-wrap:wrap}.crw-exchanges .ct-toolbar>*{min-width:0;max-width:100%}}
