/* Shadow R9: in-place source-bound capabilities in the existing Matter World depth.
 * R8 public recovery link stays independent and no inherited-shell CSS is revived.
 */
#shadow-matter-world #shadow-living-capability-plane-r9 {
  position:relative;
  isolation:isolate;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  overflow:hidden;
  border-top:1px solid rgba(161,195,218,.16);
  margin-top:1.35rem;
  padding:.9rem 0 1.1rem;
  color:#dce7ed;
}
#shadow-living-capability-plane-r9 * {box-sizing:border-box}
#shadow-living-capability-plane-r9 .shadow-cap-r9-eyebrow {
  font-size:.67rem;
  letter-spacing:.17em;
  font-weight:650;
  color:#a3c6d8;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-heading h3 {
  font-size:clamp(1.25rem,3.5vw,2rem);
  font-weight:500;
  letter-spacing:-.025em;
  margin:.6rem 0;
  color:#e5eef3;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-summary {
  font-size:.82rem;
  line-height:1.55;
  max-width:55ch;
  color:#9eb3c0;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-orbit {
  height:315px;
  max-width:620px;
  width:100%;
  position:relative;
  isolation:isolate;
  margin:1rem auto 0;
  background:repeating-radial-gradient(circle at center,transparent 0,
    transparent 40px,rgba(143,191,230,.08) 41px,transparent 42px,
    transparent 78px);
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-centre{
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:104px;height:104px;
  border-radius:50%;
  border:1px solid rgba(144,196,234,.41);
  box-shadow:0 0 37px rgba(79,142,191,.13);
  background:radial-gradient(circle at 48% 10%,rgba(100,149,183,.21),rgba(19,39,55,.31));
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:.15rem;
  pointer-events:none;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-centre strong{font-size:1rem;letter-spacing:.18em}
#shadow-living-capability-plane-r9 .shadow-cap-r9-centre small{font-size:.62rem;letter-spacing:.1em;color:#98b7c9}
#shadow-living-capability-plane-r9 button{cursor:pointer;font:inherit;color:inherit}
#shadow-living-capability-plane-r9 .shadow-cap-r9-area{
  position:absolute;
  left:calc(50% + var(--cap-x,0%));
  top:calc(50% + var(--cap-y,0%));
  transform:translate(-50%,-50%);
  min-width:75px;
  max-width:102px;
  width:100px;
  min-height:55px;
  padding:.35rem .45rem;
  border-radius:999px;
  border:1px solid rgba(145,190,220,.3);
  font-size:.67rem;
  line-height:1.22;
  text-align:center;
  background:rgba(12,30,46,.78);
  transition:border-color .2s,background .2s,transform .2s;
  overflow-wrap:anywhere;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-area:hover,
#shadow-living-capability-plane-r9 .shadow-cap-r9-area.is-selected,
#shadow-living-capability-plane-r9 .shadow-cap-r9-area:focus-visible{
  border-color:#95c9ec;
  background:rgba(48,89,122,.59);
  box-shadow:0 0 16px rgba(72,126,172,.16);
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-area:focus-visible {
  outline:2px solid #deb778;
  outline-offset:3px;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-inspect {
  margin:0 auto;
  max-width:680px;
  min-width:0;
  border-top:1px solid rgba(151,186,213,.18);
  padding:.85rem 0 .1rem;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-inspect h4{
  margin:.25rem 0 .35rem;
  font-size:1.12rem;
  font-weight:550;
  color:#d6e8f3;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-area-desc {
  font-size:.76rem;color:#9eb5c2;line-height:1.5;margin:.25rem 0 .75rem;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-source-list {
  margin:0;padding:0;list-style:none;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-source-item {
  display:flex;
  gap:.85rem;
  align-items:start;
  padding:.75rem .15rem;
  border-top:1px solid rgba(175,199,213,.11);
  min-width:0;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-numeral {
  width:30px;height:30px;
  border-radius:50%;
  border:1px solid rgba(155,198,222,.35);
  display:flex;align-items:center;justify-content:center;
  font-size:.67rem;
  flex:none;
  color:#b6d5e4;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-source-words{
  flex:1;min-width:0;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-source-words strong{
  display:block;font-size:.83rem;font-weight:570;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-source-words p {
  margin:.35rem 0;
  font-size:.74rem;line-height:1.43;
  color:#9db1be;
  overflow-wrap:anywhere;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-source-words small {
  font-size:.64rem;color:#829db0;
  overflow-wrap:anywhere;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-pagination {
  display:flex;align-items:center;justify-content:center;
  gap:.7rem;padding:1rem .2rem .35rem;
  font-size:.75rem;color:#a8bdc8;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-pagination button {
  border-radius:99rem;
  border:1px solid rgba(139,175,205,.26);
  background:transparent;
  padding:.45rem .7rem;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-pagination button:disabled{opacity:.33;cursor:default}
#shadow-living-capability-plane-r9 .shadow-cap-r9-boundary{
  font-size:.69rem;line-height:1.5;margin:1rem 0 .55rem;color:#86a1b0;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-public {
  display:inline-flex;
  align-items:center;justify-content:center;
  min-height:44px;
  border:1px solid rgba(144,187,213,.25);
  border-radius:99rem;padding:.55rem .85rem;
  color:#c0dceb;text-decoration:none;
  font-size:.75rem;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-pending{
  font-size:.79rem;line-height:1.5;color:#b2c5d0;
}
@media(max-width:680px){
 #shadow-living-capability-plane-r9 .shadow-cap-r9-orbit{
   height:295px;
   max-width:100%;
   margin:.8rem 0 0;
 }
 #shadow-living-capability-plane-r9 .shadow-cap-r9-centre{
   width:76px;height:76px;
 }
 #shadow-living-capability-plane-r9 .shadow-cap-r9-centre strong{font-size:.77rem}
 #shadow-living-capability-plane-r9 .shadow-cap-r9-centre small{font-size:.52rem}
 #shadow-living-capability-plane-r9 .shadow-cap-r9-area{
   width:72px;min-width:60px;
   max-width:76px;
   min-height:52px;
   font-size:.61rem;
   padding:.2rem;
 }
}
@media(max-width:340px){
 #shadow-living-capability-plane-r9 .shadow-cap-r9-orbit{height:310px}
 #shadow-living-capability-plane-r9 .shadow-cap-r9-area{width:64px;min-width:54px;font-size:.57rem}
 #shadow-living-capability-plane-r9 .shadow-cap-r9-centre{width:62px;height:62px}
}
@media(prefers-reduced-motion:reduce){
 #shadow-living-capability-plane-r9 *{transition:none!important}
}

/* Search uses the exact same public source catalogue, never private Matter context. */
#shadow-living-capability-plane-r9 .shadow-cap-r9-search{
  width:100%;max-width:550px;min-height:44px;
  padding:.75rem 1rem;
  background:rgba(11,32,48,.65);
  border:1px solid rgba(138,184,220,.34);
  color:#e0edf5;border-radius:99rem;font:inherit;font-size:.82rem;
}
#shadow-living-capability-plane-r9 .shadow-cap-r9-search:focus-visible{
  outline:2px solid #d6b57a;outline-offset:3px;
}

/* R9 current capability depth contextual typography — no global Matter World change. */
#shadow-matter-world[data-depth="plane:capability"] #mw-depth-title{
  font-size:clamp(1.55rem,5.4vw,2.3rem);
  letter-spacing:-.035em;
  line-height:1.09;
  margin:.3rem 0 .55rem;
}
#shadow-matter-world[data-depth="plane:capability"] #mw-depth-lead{
  max-width:54ch;
  font-size:.79rem;
  line-height:1.48;
  margin:.3rem 0 .7rem;
}

/* R11: inspect stable recorded-source identities, never capability dispatch. */
#shadow-living-capability-plane-r9 .shadow-cap-r11-inspect-source{
  margin-top:.6rem;
  display:inline-flex;
  min-height:44px;
  align-items:center;
  max-width:100%;
  padding:.5rem .9rem;
  border:1px solid rgba(145,182,212,.32);
  border-radius:99rem;
  background:rgba(62,103,130,.12);
  color:#c5ddeb;
  font:inherit;font-size:.74rem;
}
#shadow-living-capability-plane-r9 .shadow-cap-r11-inspect-source[aria-pressed=true]{
  border-color:#91c0df;
  background:rgba(83,141,181,.19);
}
#shadow-living-capability-plane-r9 .shadow-cap-r11-inspect-source:focus-visible{
  outline:2px solid #deb778;
  outline-offset:3px;
}
#shadow-living-capability-plane-r9 .shadow-cap-r11-source-inspection{
  margin:1rem 0 .35rem;
  padding:1rem;
  border:1px solid rgba(147,186,211,.23);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(52,88,116,.15),rgba(10,24,39,.27));
}
#shadow-living-capability-plane-r9 .shadow-cap-r11-source-inspection[hidden]{display:none}
#shadow-living-capability-plane-r9 .shadow-cap-r11-inspect-kicker{
  font-size:.63rem;letter-spacing:.15em;color:#9fc5d9;
}
#shadow-living-capability-plane-r9 .shadow-cap-r11-source-inspection h5{
  font-size:1rem;font-weight:580;margin:.6rem 0;
}
#shadow-living-capability-plane-r9 .shadow-cap-r11-source-inspection p{
  margin:.45rem 0;font-size:.75rem;line-height:1.45;color:#aec1cb;overflow-wrap:anywhere;
}
#shadow-living-capability-plane-r9 .shadow-cap-r11-source-inspection .shadow-cap-r11-source-ceiling{
  color:#d4bd93;
}
#shadow-living-capability-plane-r9 .shadow-cap-r11-public-source{
  display:inline-flex;align-items:center;min-height:44px;margin-top:.4rem;
  color:#b7d9ee;font-size:.75rem;text-decoration:underline;text-underline-offset:4px;
}

/* R12 — existing read-only Matter depth handoff from a recorded source. */
#shadow-living-capability-plane-r9 .shadow-cap-r12-related-depth{
  display:inline-flex;
  margin:.65rem 0 .25rem;
  max-width:100%;
  min-height:44px;
  align-items:center;
  padding:.56rem .95rem;
  border-radius:99rem;
  border:1px solid rgba(158,200,229,.4);
  background:rgba(58,105,144,.17);
  color:#c7e0ee;
  font:inherit;font-size:.77rem;font-weight:560;
}
#shadow-living-capability-plane-r9 .shadow-cap-r12-related-depth:focus-visible{
  outline:2px solid #d6b57a;outline-offset:3px;
}
@media(prefers-reduced-motion:reduce){
  #shadow-living-capability-plane-r9 .shadow-cap-r12-related-depth{transition:none}
}

/* R16 — browser-origin observation in the existing Matter depth. */
#shadow-living-capability-plane-r9 .shadow-cap-r16-web{
  margin:1rem 0;padding:1rem 0;border-block:1px solid rgba(140,183,208,.18);
}
#shadow-living-capability-plane-r9 .shadow-cap-r16-web small{font-size:.64rem;letter-spacing:.14em;color:#a7cddd}
#shadow-living-capability-plane-r9 .shadow-cap-r16-web h4{font-size:1.24rem;font-weight:520;margin:.55rem 0}
#shadow-living-capability-plane-r9 .shadow-cap-r16-web p{font-size:.76rem;line-height:1.52;color:#a8becb;overflow-wrap:anywhere}
#shadow-living-capability-plane-r9 .shadow-cap-r16-actions,#shadow-living-capability-plane-r9 .shadow-cap-r16-links{
 display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;
}
#shadow-living-capability-plane-r9 .shadow-cap-r16-actions button,#shadow-living-capability-plane-r9 .shadow-cap-r16-links a{
 display:inline-flex;align-items:center;justify-content:center;min-height:44px;
 max-width:100%;padding:.58rem .85rem;border:1px solid rgba(149,190,214,.31);
 border-radius:99rem;background:rgba(45,88,124,.13);font:inherit;font-size:.74rem;
 color:#c7dde9;text-decoration:none;
}
#shadow-living-capability-plane-r9 .shadow-cap-r16-actions button:disabled{opacity:.44;cursor:default}
#shadow-living-capability-plane-r9 .shadow-cap-r16-permissions{margin:1rem 0;padding:0;list-style:none}
#shadow-living-capability-plane-r9 .shadow-cap-r16-permissions li{
 display:flex;justify-content:space-between;gap:.6rem;padding:.52rem .15rem;
 border-bottom:1px solid rgba(134,176,204,.12);font-size:.73rem;overflow-wrap:anywhere;
}
#shadow-living-capability-plane-r9 .shadow-cap-r16-permissions li strong{font-weight:560;color:#d9e8f2;text-align:right}
@media(prefers-reduced-motion:reduce){
 #shadow-living-capability-plane-r9 .shadow-cap-r16-web *{transition:none!important}
}
