/* Product consolidation — light premium IA, mobile safe-area, Create Hub, workspaces */

.create-hub{
  position:fixed;inset:0;z-index:120;display:grid;place-items:center;
  background:rgba(18,24,26,.32);backdrop-filter:blur(10px) saturate(.9);
  padding:max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));
}
.create-hub-sheet{
  width:min(620px,100%);max-height:min(82vh,700px);overflow:auto;
  border-radius:30px;padding:24px;
  background:radial-gradient(circle at 88% 6%,rgba(213,173,112,.19),transparent 28%),linear-gradient(155deg,rgba(255,255,255,.99),rgba(238,245,243,.96));
  border:1px solid rgba(255,255,255,.96);box-shadow:0 38px 110px rgba(18,25,27,.30),inset 0 1px 0 #fff;
}
.create-hub-sheet header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;margin-bottom:20px}
.create-hub-sheet header h2{margin:0;font-size:28px;font-weight:620;letter-spacing:-.045em}
.create-hub-sheet header .eyebrow{grid-column:1/-1}
.create-hub-sheet header .create-hub-close{grid-column:3;grid-row:2;width:40px;height:40px;padding:0}
.create-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.create-hub-item{
  position:relative;min-height:126px;padding:16px;border-radius:20px;text-align:left;cursor:pointer;overflow:hidden;
  border:1px solid rgba(255,255,255,.94);
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(237,244,242,.82));
  color:var(--sy-graphite,#292630);display:grid;grid-template-rows:auto 1fr auto;gap:7px;align-content:center;
  box-shadow:0 10px 30px rgba(38,52,55,.055),inset 0 1px 0 #fff;
  transition:transform var(--sy-motion-fast,120ms) ease,box-shadow var(--sy-motion-ui,200ms) ease;
}
.create-hub-item:before{content:"+";display:grid;width:35px;height:35px;place-items:center;border-radius:12px;background:linear-gradient(145deg,#fff,#e4eeeb);color:#6f5c3f;font-size:18px;box-shadow:inset 0 1px 0 #fff}
.create-hub-item[data-id="post"]:before{content:"✎"}.create-hub-item[data-id="clip"]:before{content:"▷"}.create-hub-item[data-id="live"]:before{content:"◉"}.create-hub-item[data-id="room"]:before{content:"◌"}.create-hub-item[data-id="project"]:before{content:"▱"}.create-hub-item[data-id="community"]:before{content:"◎"}.create-hub-item[data-id="course"]:before{content:"⌬"}.create-hub-item[data-id="event"]:before{content:"◇"}.create-hub-item[data-id="studio"]:before{content:"✦"}
.create-hub-item b{align-self:end;font-size:13px}.create-hub-item small{font-size:9px;color:#8f858b}
.create-hub-item:hover:not(.is-disabled){transform:translateY(-3px);box-shadow:0 20px 48px rgba(38,52,55,.12),inset 0 1px 0 #fff}
.create-hub-item.is-disabled{opacity:.55;cursor:not-allowed}

.ecosystem-feed{display:grid;gap:14px;margin:14px 0 18px;min-width:0}
.eco-strip{width:100%;min-width:0;max-width:100%;padding:16px 14px;border-radius:22px;background:rgba(255,253,250,.86);border:1px solid rgba(255,255,255,.92);box-shadow:0 14px 40px rgba(102,76,91,.06)}
.eco-strip-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.eco-strip-head b{font-size:14px}.eco-strip-head button{font-size:11px}
.eco-carousel{display:flex;min-width:0;max-width:100%;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.eco-carousel::-webkit-scrollbar{display:none}
.eco-card{
  flex:0 0 min(220px,72vw);scroll-snap-align:start;min-height:96px;padding:14px;
  border-radius:18px;border:1px solid rgba(151,115,98,.08);text-align:left;cursor:pointer;
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(250,246,255,.78));color:inherit
}
.eco-card small{display:block;margin-top:4px;color:#8f858b;font-size:11px}
.eco-card.live{background:linear-gradient(145deg,rgba(255,244,246,.95),rgba(255,253,250,.88))}
.inbox-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
.inbox-tabs button{
  border:0;border-radius:999px;padding:8px 12px;font-size:11px;font-weight:700;cursor:pointer;
  color:#746d71;background:rgba(255,255,255,.55)
}
.inbox-tabs button.active{
  color:#8b672d;background:linear-gradient(120deg,rgba(244,218,168,.55),rgba(241,232,255,.6))
}
.inbox-panel[hidden],.live-panel[hidden]{display:none!important}
.org-workspace{display:grid;gap:12px;margin-top:12px}
.org-workspace .grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.science-research-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.command-palette{
  position:fixed;inset:0;z-index:130;display:grid;place-items:start center;padding-top:12vh;
  background:rgba(48,38,45,.32);backdrop-filter:blur(8px)
}
.command-palette-sheet{
  width:min(640px,94vw);border-radius:22px;padding:14px;
  background:linear-gradient(160deg,rgba(255,253,250,.98),rgba(249,245,255,.96));
  border:1px solid rgba(255,255,255,.95);box-shadow:0 28px 80px rgba(84,65,75,.22)
}
.command-palette-sheet input{
  width:100%;border:1px solid rgba(143,105,88,.12);border-radius:14px;padding:12px 14px;
  background:rgba(255,255,255,.86);font:inherit;outline:0
}
.command-palette-results{margin-top:10px;max-height:48vh;overflow:auto;display:grid;gap:6px}
.command-palette-results button{
  text-align:left;border:0;border-radius:14px;padding:10px 12px;cursor:pointer;
  background:rgba(255,255,255,.55);color:inherit
}
.command-palette-results button:hover{background:linear-gradient(110deg,rgba(245,224,183,.4),rgba(244,239,255,.5))}

/* Compact mobile dock + safe content clearance */
@media(max-width:720px){
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
  #app{padding-bottom:12px}
  .mobile-dock{
    height:58px!important;padding:4px 4px!important;border-radius:20px!important;
    bottom:max(6px,env(safe-area-inset-bottom))!important
  }
  .mobile-dock .nav{height:48px!important;gap:1px!important;font-size:7.5px!important}
  .mobile-dock .nav>span:first-child{font-size:16px!important}
  .mobile-dock .nav>span:last-child{font-size:7.5px!important;letter-spacing:0}
  .messages-shell{grid-template-columns:1fr!important;min-height:auto}
  .chat-placeholder,.chat-card{min-height:360px}
  .message-compose{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important;position:sticky;bottom:0;background:rgba(255,251,248,.94);z-index:5}
  .chat-card{padding-bottom:8px}
  .incoming-call-banner{left:10px;right:10px;bottom:calc(78px + env(safe-area-inset-bottom))}
  .ai-compose,.composer{margin-bottom:8px}
  .science-research-grid,.org-workspace .grid3{grid-template-columns:1fr}
  .create-hub{place-items:end center;padding:12px 10px calc(78px + env(safe-area-inset-bottom))}
  .create-hub-sheet{width:100%;max-height:min(74vh,620px);padding:18px;border-radius:26px 26px 22px 22px}
  .create-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .create-hub-item{min-height:104px;padding:13px}
  #toast{bottom:calc(72px + env(safe-area-inset-bottom))!important}
}

@media(min-width:721px) and (max-width:1100px){
  .eco-card{flex-basis:200px}
  .science-research-grid{grid-template-columns:1fr 1fr}
}

@media(min-width:1261px){
  .ecosystem-feed{grid-template-columns:1fr}
  .eco-carousel{padding-bottom:4px}
}

.sylora-degraded{
  position:sticky;top:0;z-index:90;padding:8px 14px;text-align:center;font-size:12px;font-weight:650;
  color:#6a4a1f;background:linear-gradient(90deg,rgba(255,244,214,.95),rgba(245,236,255,.92));
  border-bottom:1px solid rgba(217,168,75,.2)
}
.privacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.privacy-toggle{display:flex;align-items:center;gap:8px;font-size:12px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.55)}
@media(max-width:720px){.privacy-grid{grid-template-columns:1fr}}
.home-continue .eco-card{background:linear-gradient(145deg,rgba(255,248,230,.95),rgba(246,241,255,.85))}

/* P0 Call Engine + incoming ring */
.incoming-call-banner{
  position:fixed;z-index:90;left:50%;transform:translateX(-50%);
  bottom:max(88px,calc(72px + env(safe-area-inset-bottom)));
  width:min(520px,calc(100% - 24px));
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;border-radius:18px;
  border:1px solid rgba(255,255,255,.95);
  background:rgba(255,251,248,.96);
  box-shadow:0 18px 40px rgba(84,65,75,.18);
}
.incoming-call-banner span{display:grid;gap:2px}
.incoming-call-banner small{color:#7c7480}
.call-stage{min-height:420px}
.call-media{position:relative;margin:14px 0;min-height:180px;border-radius:18px;background:#120f16;overflow:hidden}
.call-media video#callRemote{width:100%;min-height:220px;object-fit:cover;background:#0b0910}
.call-media video#callLocal{position:absolute;right:10px;bottom:10px;width:28%;max-width:160px;border-radius:12px;border:1px solid rgba(255,255,255,.4)}
.call-controls{flex-wrap:wrap;gap:8px}
