/* Trace2Trace OPS R211 — Operator Profile visual polish */
.r211-operator{
 --r211-ink:#123640;--r211-muted:#71858a;--r211-line:#dbe5e1;--r211-soft:#f5f8f5;
 --r211-gold:#b39256;--r211-shadow:0 9px 27px rgba(18,54,64,.05);
}

/* Search: exactly one rounded input shell, not two */
.r211-search{
 padding:19px 21px!important;
 grid-template-columns:minmax(0,1fr) minmax(420px,.72fr)!important;
 border-radius:14px!important;
 border-color:#d9e4e0!important;
 box-shadow:var(--r211-shadow)!important;
 background:linear-gradient(120deg,#fff 0%,#fbfcfa 76%,#f7f2e8 100%)!important;
}
.r211-search .op113SearchCopy h2{font-size:25px!important;line-height:1.08!important;letter-spacing:-.04em!important;margin:4px 0 6px!important}
.r211-search .op113SearchCopy p{font-size:10px!important;line-height:1.55!important;max-width:640px!important}
.r211-search-form{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;
 background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;
}
.r211-input-shell{
 height:42px!important;border:1px solid #cfdcd7!important;border-radius:9px!important;
 background:#fff!important;padding:0 12px!important;gap:9px!important;
 box-shadow:0 2px 8px rgba(18,54,64,.025)!important;
}
.r211-input-shell:focus-within{
 border-color:#91aaa1!important;box-shadow:0 0 0 3px rgba(91,129,117,.10)!important;
}
.r211-input{
 border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
 border-radius:0!important;padding:0!important;height:auto!important;
}
.r211-search-form>button{
 height:42px!important;border-radius:9px!important;padding:0 18px!important;
 background:#153d47!important;box-shadow:0 4px 12px rgba(18,54,64,.10)!important;
}

/* Recent / profile history */
.r211-recent,.r211-profile-history{
 border-radius:12px!important;border-color:#dce5e1!important;background:#fff!important;
 box-shadow:0 6px 18px rgba(18,54,64,.035)!important;
}
.r211-recent{padding:14px 16px!important}
.r211-profile-history{padding:12px 15px!important}
.r211-recent h3,.r211-recent h4,.r211-profile-history h3,.r211-profile-history h4{letter-spacing:-.02em!important}

/* Hero refinement */
.r211-profile .r210-hero{
 grid-template-columns:225px minmax(0,1fr) 135px!important;
 min-height:150px!important;padding:14px!important;
 box-shadow:0 12px 34px rgba(18,54,64,.065)!important;
}
.r211-profile .r210-hero-shot{height:130px!important;border-radius:9px!important}
.r211-profile .r210-hero-copy h1{font-size:30px!important}
.r211-profile .r210-confidence{padding-left:13px!important}
.r211-profile .op113Ring{width:62px!important;height:62px!important}

/* One command bar, no repeated action rows */
.r211-commandbar{
 margin:10px 0 14px!important;padding:8px!important;background:#f3f7f4!important;
 border:1px solid #dce6e1!important;border-radius:11px!important;gap:6px!important;
}
.r211-commandbar a,.r211-commandbar button{
 background:#fff!important;border-color:#d5e0dc!important;min-height:34px!important;border-radius:7px!important;
 padding:0 10px!important;font-size:9px!important;box-shadow:none!important;
}
.r211-commandbar .r211-native-action:first-child,
.r211-commandbar .r210-primary{
 background:#153d47!important;color:#fff!important;border-color:#153d47!important;
}

/* Interpretation panel */
.r211-profile .r210-summary{
 background:linear-gradient(120deg,#fff 0,#fbfcfa 100%)!important;
 border-top:3px solid var(--r211-gold)!important;border-radius:14px!important;
 padding:18px 19px!important;
}
.r211-profile .r210-summary-facts article{background:#f3f7f4!important}
.r211-profile .r210-boundary{background:#f8faf7;margin:2px -3px -2px;padding:10px 10px 0!important;border-radius:7px}

/* Metrics: one restrained evidence band */
.r211-profile .r210-metrics{
 display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;
 border-radius:11px!important;box-shadow:none!important;background:#fff!important;
}
.r211-profile .r210-metrics>div{padding:11px 12px!important;min-height:58px!important}
.r211-profile .r210-metrics b{font-size:18px!important}
.r211-profile .r210-metrics span{font-size:6.5px!important;letter-spacing:.055em!important}

/* Reorganised profile flow */
.r211-flow{display:grid;gap:12px;margin-top:0}
.r211-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.r211-identity-pair{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)}
.r211-context-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.r211-full{width:100%!important}
.r211-flow>.op113Card,.r211-flow>.op113Panel,.r211-flow>.r210-licence-wrap,
.r211-pair>.op113Card,.r211-pair>.op113Panel,.r211-pair>.r210-licence-wrap{
 height:auto!important;align-self:start!important;margin:0!important;
}

/* Domains get a clear full-width network strip */
.r211-flow .r210-domains{padding:13px 14px!important}
.r211-flow .r210-domains .op113Domains{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.r211-flow .r210-domains .op113Domains.compact{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.r211-flow .r210-domains .op113DomainShot{height:62px!important}

/* Providers use the page width instead of forcing an empty jurisdiction column */
.r211-provider-section{padding:13px 14px!important}
.r211-provider-section .op113ProviderGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}
.r211-provider-section .op113ProviderGrid article{
 padding:8px!important;border-radius:9px!important;background:#fbfcfb!important;
 transition:transform .13s ease,border-color .13s ease,box-shadow .13s ease;
}
.r211-provider-section .op113ProviderGrid article:hover{
 transform:translateY(-1px);border-color:#cbd9d4!important;box-shadow:0 6px 15px rgba(18,54,64,.055)!important;
}
.r211-provider-section .op113ProviderLogo{background:#f2f6f4!important}

/* Context row no longer stretches to the tallest previous panel */
.r211-context-pair>.r210-markets,.r211-context-pair>.r210-infra{min-height:0!important}
.r211-context-pair .op113MarketGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.r211-context-pair .op113MarketGrid article{background:#fbfcfb!important;border-radius:9px!important}
.r211-context-pair .r210-infra .op113Infra>div{padding:7px 3px!important}

/* Identity + licence */
.r211-identity-pair .r210-identity,
.r211-identity-pair .r210-licence-wrap{
 min-height:100%!important;
}
.r211-identity-pair .r210-licence-wrap{border-top-width:3px!important;padding:12px 14px!important}

/* History and retained scan observations */
.r211-flow .r210-history{padding:13px 14px!important}
.r211-scan-history{
 margin-top:13px!important;border-radius:13px!important;
 box-shadow:0 7px 20px rgba(18,54,64,.035)!important;
}
.r211-scan-history>header{background:#fbfcfa!important}

/* General */
.r211-profile .r210-panel-note{font-size:7.5px!important;padding:7px 9px!important}
.r211-profile .op113Card>header{margin-bottom:9px!important}
.r211-profile .op113Card header h3{font-size:12px!important}
.r211-profile .op113SectionIcon{background:#f4f7f5!important}
.r211-profile .muted{color:#839397!important}

/* Avoid empty old rows if other scripts leave them around */
.r211-profile .op113Grid:empty{display:none!important}

@media(max-width:1250px){
 .r211-provider-section .op113ProviderGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .r211-flow .r210-domains .op113Domains{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:1000px){
 .r211-search{grid-template-columns:1fr!important}
 .r211-pair{grid-template-columns:1fr!important}
 .r211-provider-section .op113ProviderGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .r211-profile .r210-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .r211-profile .r210-hero{grid-template-columns:190px 1fr!important}
 .r211-profile .r210-confidence{grid-column:1/-1;border-left:0!important;border-top:1px solid #e3e9e6!important;padding:10px 0 0!important;justify-content:flex-start!important}
}
@media(max-width:680px){
 .r211-search-form{grid-template-columns:1fr!important}
 .r211-search-form>button{width:100%!important}
 .r211-provider-section .op113ProviderGrid,
 .r211-flow .r210-domains .op113Domains,
 .r211-flow .r210-domains .op113Domains.compact{grid-template-columns:1fr!important}
 .r211-profile .r210-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .r211-profile .r210-hero{grid-template-columns:1fr!important}
 .r211-profile .r210-hero-shot{display:none!important}
 .r211-commandbar>*{flex:1 1 100%;justify-content:center!important}
}
@media(prefers-reduced-motion:reduce){
 .r211-provider-section .op113ProviderGrid article{transition:none!important}
}
