/* pearlblack Portal shell - the controlled private environment.
   Canonical site tokens; served only behind the Worker Portal gate. */
.shell-page{min-height:100svh;background:var(--bg);display:flex;flex-direction:column}
.shell-frame{width:min(1280px,calc(100% - 64px));margin-inline:auto}
.shell-header{
  height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;
  background:color-mix(in srgb,var(--bg) 90%,transparent);
  position:sticky;top:0;z-index:20;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
.shell-header-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
.shell-surface{
  color:var(--accent);font-size:10px;font-weight:700;
  letter-spacing:.18em;text-transform:uppercase
}
.shell-actions{justify-self:end;display:flex;align-items:center;gap:24px}
.shell-logout{
  font-size:12px;font-weight:650;color:var(--muted);
  border:1px solid var(--line);border-radius:3px;padding:9px 14px;
  transition:color .2s ease,border-color .2s ease
}
.shell-logout:hover{color:var(--text);border-color:var(--text)}

.shell-main{flex:1;padding:56px 0 84px}
.shell-nav{
  display:flex;flex-wrap:wrap;gap:2px 22px;margin-bottom:44px;
  padding-bottom:14px;border-bottom:1px solid var(--line);
  font-size:12px;color:var(--muted)
}
.shell-nav a{padding:6px 0;min-height:32px;display:inline-flex;align-items:center}
.shell-nav a:hover{color:var(--text)}
.shell-nav a[aria-current="page"]{
  color:var(--accent);border-bottom:1px solid var(--accent)
}
.shell-kicker{
  display:flex;justify-content:space-between;gap:20px;
  color:var(--muted);font-size:9px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;margin-bottom:26px
}
.shell-title{
  margin:0;font-size:clamp(38px,4.4vw,64px);
  line-height:1;letter-spacing:-.05em;font-weight:640
}
.shell-lede{max-width:560px;margin:20px 0 0;color:var(--muted);font-size:15px;line-height:1.65}

/* Portal home hero: the designed entry moment. Copy is primary; the
   pearl is a supporting object, edge-dissolved, still. */
.shell-hero{
  display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,32%,440px);
  gap:clamp(28px,4vw,60px);align-items:center;margin-bottom:26px
}
.shell-eyebrow{
  margin:26px 0 18px;color:var(--accent);font-size:11px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;display:flex;align-items:center;gap:14px
}
.shell-eyebrow::before{content:"";width:24px;height:1px;background:var(--accent)}
.shell-statement{
  margin:12px 0 0;font-size:clamp(21px,2vw,30px);line-height:1.1;
  letter-spacing:-.035em;color:var(--muted)
}
.shell-principles{
  display:grid;grid-template-columns:repeat(3,1fr);
  max-width:620px;margin-top:38px;border-top:1px solid var(--line)
}
.shell-principles>div{padding:16px 20px 0 0;border-right:1px solid var(--line);min-height:86px}
.shell-principles>div+div{padding-left:20px}
.shell-principles>div:last-child{border-right:0}
.shell-principles span{
  display:block;color:var(--accent);font-size:9px;letter-spacing:.14em;margin-bottom:10px
}
.shell-principles strong{display:block;font-size:13px;font-weight:650}
.shell-principles p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.45}
.shell-hero-visual{
  position:relative;aspect-ratio:1;width:100%;
  display:grid;place-items:center;isolation:isolate
}
.shell-orbit{
  position:absolute;border:1px solid color-mix(in srgb,var(--accent) 26%,var(--line));
  border-radius:50%;pointer-events:none
}
.orbit-a{width:96%;aspect-ratio:1;transform:rotate(-17deg) scaleY(.46)}
.orbit-b{width:78%;aspect-ratio:1;transform:rotate(34deg) scaleY(.55);opacity:.6}
.shell-hero-visual img{
  position:absolute;inset:6%;width:88%;height:88%;object-fit:contain;
  -webkit-mask-image:radial-gradient(ellipse 52% 52% at 50% 50%,#000 0 62%,rgba(0,0,0,.9) 76%,rgba(0,0,0,.3) 90%,transparent 99%);
  mask-image:radial-gradient(ellipse 52% 52% at 50% 50%,#000 0 62%,rgba(0,0,0,.9) 76%,rgba(0,0,0,.3) 90%,transparent 99%);
}
.shell-pearl-dark{opacity:0}
html[data-theme="dark"] .shell-pearl-light{opacity:0}
html[data-theme="dark"] .shell-pearl-dark{opacity:1}

.shell-hero-visual-sm{max-width:340px;justify-self:end}
.shell-filters{margin-top:8px}
.shell-library{margin-top:26px;border-top:1px solid var(--line)}
.shell-row{
  display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto;
  gap:14px 28px;align-items:center;
  padding:20px 2px;border-bottom:1px solid var(--line);
  color:var(--text);transition:background .2s ease
}
.shell-row:hover{background:color-mix(in srgb,var(--accent) 4%,transparent)}
.shell-row-title{display:block;font-size:17px;font-weight:650;letter-spacing:-.02em}
.shell-row-desc{display:block;margin-top:5px;color:var(--muted);font-size:13px;line-height:1.55}
.shell-row-meta{
  display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;
  color:var(--muted);font-size:11px;letter-spacing:.04em
}
.shell-tag{
  border:1px solid var(--line);border-radius:3px;padding:3px 8px;
  font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase
}
.shell-tag.locked{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
.shell-tag.open{color:var(--muted)}
.shell-tag.fixture{color:var(--muted);border-style:dashed}
.shell-row-action{font-size:12px;font-weight:650;white-space:nowrap}
.shell-library-note{
  margin:22px 0 0;max-width:560px;color:var(--muted);font-size:12px;line-height:1.6
}

.shell-table{margin-top:42px;border-top:1px solid var(--line)}
.shell-table-head{
  display:grid;grid-template-columns:2.4fr 1fr .8fr 1fr 1fr .9fr;gap:14px;
  padding:13px 0;border-bottom:1px solid var(--line);
  color:var(--muted);font-size:10px;font-weight:700;
  letter-spacing:.13em;text-transform:uppercase
}
.shell-empty{padding:52px 0 8px;max-width:520px}
.shell-empty-title{margin:0 0 8px;font-size:16px;font-weight:650;color:var(--text)}
.shell-empty p{color:var(--muted);font-size:13.5px;line-height:1.6;margin:0}

.shell-footer{min-height:58px;border-top:1px solid var(--line);display:flex;align-items:center}
.shell-footer-inner{
  display:flex;justify-content:space-between;gap:20px;
  color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase
}
.shell-sovereign::after{
  content:"";display:inline-block;width:22px;height:1px;background:var(--accent);
  margin-left:11px;vertical-align:middle
}

@media(max-width:900px){
  .shell-hero{grid-template-columns:1fr}
  .shell-hero-visual{max-width:min(400px,72%);margin-inline:auto}
  .shell-principles{max-width:none}
  .shell-row{grid-template-columns:1fr;gap:10px}
  .shell-row-action{justify-self:start}
}
@media(max-width:560px){
  .shell-hero-visual{max-width:min(280px,78%)}
  .shell-row{padding:16px 0}
  .shell-row-meta{gap:5px 10px}
  .shell-principles{grid-template-columns:1fr}
  .shell-principles>div,.shell-principles>div+div{
    min-height:auto;padding:13px 0;border-right:0;border-bottom:1px solid var(--line)
  }
  .shell-principles>div:last-child{border-bottom:0}
}
@media(max-width:760px){
  .shell-frame{width:calc(100% - 32px)}
  .shell-header{height:76px}
  .shell-surface{display:none}
  .shell-header-inner{grid-template-columns:1fr auto}
  .shell-main{padding:40px 0 64px}
  .shell-table-head{display:none}
}
@media(max-width:560px){
  .shell-nav{gap:2px 16px}
}

/* Phone landscape: the Portal hero holds copy left, pearl right. */
@media (max-width:1100px) and (orientation:landscape) and (max-height:500px){
  .shell-hero{grid-template-columns:minmax(0,1fr) clamp(160px,28%,260px)}
  .shell-hero-visual{max-width:none;margin-inline:0}
}
