/* ========================================================================
   WEB / MASAÜSTÜ — sidebar'lı panel yerleşimi (bottom bar yok).
   Tümü body.web altında; mobil tasarıma hiç dokunmaz (eklemeli).
   JS matchMedia('(min-width:1024px) and (pointer:fine)') ile açılır.
   ======================================================================== */

body.web{ --sb:268px; }

/* ---- mobil chrome'u gizle ---- */
body.web .tabbar,
body.web .who-fab,
body.web .app-scrim,
body.web .hdr-fade{ display:none !important; }
/* webde header logosu yok; giriş işareti üste uçup sönmesin */
body.web .brand{ opacity:0 !important; visibility:hidden !important; pointer-events:none !important; transition:none !important; }
/* ilk açılışta panel küçülüp bulanmasın; kart glow'u köşeden taşmasın. sayfa geçişi aynı kalır */
body.web:not(.in-app) .app{ transform:none; filter:none; }

/* ---- içerik alanı: sidebar'ın sağında ---- */
body.web .app{ left:var(--sb); width:calc(100vw - var(--sb)); top:0; height:var(--vh); transform-origin:50% 45%; }
body.web .view{
  padding-top:42px; padding-bottom:76px;
  padding-left:max(32px,calc((100% - 900px) / 2));
  padding-right:max(32px,calc((100% - 900px) / 2));
}
body.web .nb{ top:42px; right:max(32px, calc((100vw - var(--sb) - 900px) / 2)); }
body.web .ph{ padding-top:4px; }
body.web .back + .ph{ padding-top:14px; }
/* geniş ekranda ızgaraları biraz daha doldur */
body.web .tools-grid,
body.web .shortcuts{ grid-template-columns:repeat(3,1fr); }

/* ======================= SIDEBAR ======================= */
.sb{ display:none; }
body.web .sb{
  display:flex; flex-direction:column; gap:4px;
  position:fixed; left:0; top:0; bottom:0; width:var(--sb); z-index:40;
  padding:24px 16px calc(18px + var(--sab));
  background:
    radial-gradient(120% 50% at 50% 0%,rgba(255,255,255,.05),rgba(255,255,255,0) 46%),
    #0a0a0a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), inset -1px 0 0 rgba(255,255,255,.07), 1px 0 60px -28px rgba(0,0,0,.9);
  opacity:0; transform:translate3d(0,14px,0); filter:blur(6px);
  transition:opacity .9s var(--out) 140ms, transform 1.05s var(--soft) 140ms, filter .9s var(--out) 140ms;
}
body.web.in-app .sb{ opacity:1; transform:none; filter:none; transition-delay:140ms; }

.sb-brand{ display:flex; align-items:center; gap:11px; height:46px; padding:0 12px; margin-bottom:14px; }
.sb-brand img{ width:28px; height:28px; }
.sb-brand .chrome{ font-size:17px; font-weight:600; letter-spacing:.02em; }

.sb-nav{ display:flex; flex-direction:column; gap:3px; }
.sb-link{
  position:relative; display:flex; align-items:center; gap:13px; height:48px; padding:0 14px; border-radius:14px;
  text-align:left; color:var(--ink-mute); transition:background .2s ease, color .2s ease, box-shadow .2s ease;
}
.sb-link{ transition:background .25s ease, color .25s ease, box-shadow .25s ease; }
.sb-link:hover{ color:var(--ink-soft);
  background:radial-gradient(130% 130% at 0% 50%,rgba(255,255,255,.06),rgba(255,255,255,0) 72%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.08);
}
.sb-link.is-on{
  color:var(--ink);
  background:radial-gradient(130% 130% at 0% 50%,rgba(255,255,255,.08),rgba(255,255,255,0) 72%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.1);
}
.sb-link.is-on::before{
  content:''; position:absolute; left:5px; top:14px; bottom:14px; width:3px; border-radius:3px;
  background:linear-gradient(180deg,#cfd1d6,#8a8c92); box-shadow:0 0 8px rgba(190,193,200,.16);
}
.sb-ic{ width:24px; height:24px; flex:0 0 auto; display:grid; place-items:center; }
.sb-ic svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.sb-tx{ flex:1 1 auto; min-width:0; font-size:14px; font-weight:500; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-lock{ height:21px; width:auto; opacity:.8; transition:opacity .2s ease, transform .2s var(--spring-over); }
.sb-link:hover .sb-lock{ opacity:1; transform:scale(1.03); }
.sb-link.is-on .sb-lock{ opacity:1; }
.sb-tag{ flex:0 0 auto; font-size:10px; font-weight:500; color:var(--ink-mute); padding:3px 8px; border-radius:999px;
  background:var(--gl-fill); box-shadow:var(--gl-rim); }

.sb-foot{ margin-top:auto; display:flex; flex-direction:column; gap:9px; padding-top:12px; }
.sb-who{
  height:42px; border-radius:13px; display:grid; place-items:center; font-size:12px; font-weight:600; letter-spacing:.16em;
  background:linear-gradient(180deg,rgba(40,40,44,.5),rgba(22,22,26,.56));
  -webkit-backdrop-filter:blur(26px) saturate(180%); backdrop-filter:blur(26px) saturate(180%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 .5px rgba(255,255,255,.08), 0 8px 24px -14px rgba(0,0,0,.6);
  transition:transform .14s ease;
}
.sb-who span{ padding-left:.16em; }
.sb-who:active{ transform:scale(.98); }
.sb-me{ height:54px; }
.sb-av{ width:30px; height:30px; flex:0 0 auto; border-radius:50%; overflow:hidden; display:grid; place-items:center;
  background:#151517; box-shadow:0 0 0 1px rgba(255,255,255,.14); font-size:12px; font-weight:600; }
.sb-av img{ width:100%; height:100%; object-fit:cover; }

/* ======================= WEB MODAL (detay sheet ortalanır) ======================= */
body.web .sheet-wrap{ z-index:120; }
body.web .sheet-bg{ background:rgba(0,0,0,.5); }
body.web .sheet{
  left:50%; right:auto; top:50%; bottom:auto;
  width:min(440px,calc(100vw - var(--sb) - 64px)); max-height:min(78vh,700px);
  margin-left:calc(var(--sb) / 2);
  border-radius:28px;
  transform:translate3d(-50%,calc(-50% + 20px),0) scale(.98);
  transition:transform .5s var(--apple), opacity .4s var(--out);
  opacity:0;
}
body.web .sheet-wrap.is-on .sheet{ transform:translate3d(-50%,-50%,0) scale(1); opacity:1; }
body.web .grab{ display:none; }
body.web .sheet-in{ padding:14px 16px 18px; }
body.web .sheet .notes-edge.top{border-radius:28px 28px 0 0}
body.web .sheet .notes-edge.bot{border-radius:0 0 28px 28px}
body.web .sheet:has(.notes){height:calc(14px + 18px + 4 * 84px + 3 * 6px)}
body.web .sheet:has(.cf-board){width:min(520px,calc(100vw - var(--sb) - 64px));height:min(720px,calc(var(--vh) - 120px));max-height:none}
body.web .sheet-in:has(.cf-board){padding:0 16px 14px}
body.web .cf-line,body.web .cf-msg{max-width:80%}
body.web .cf-tiles{grid-template-rows:minmax(0,1fr) 150px;gap:10px}
body.web .cf-tile{border-radius:18px}
body.web .cf-tile.is-main .av{width:112px;height:112px}
body.web .cf-tile .av{width:60px;height:60px}
body.web .cf-meta{left:12px;right:12px;bottom:12px}
@media (hover:hover){ body.web .cf-tile:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)} body.web .cf-tile.is-talk:hover{box-shadow:inset 0 0 0 1px rgba(242,243,246,.55),0 0 26px rgba(242,243,246,.28)} }
body.web .sheet-in:has(.notes){padding:0 16px}

/* içerik, modal/who açılınca hafif içe ölçeklenir */
body.web.sheet-on .app,
body.web.who-on .app{ transform:scale(.986) translate3d(0,0,0); filter:brightness(.9); border-radius:18px; overflow:hidden; }

/* ======================= WHO (web'de ortalanmış) ======================= */
body.web .who-dock{ left:var(--sb); width:calc(100vw - var(--sb)); align-items:center; padding:0 24px; }
body.web #whoComposer{ left:calc(var(--sb) + (100vw - var(--sb)) / 2); }
body.web.who-on #whoComposer{ width:min(640px,calc(100vw - var(--sb) - 96px)); }

body.web .view[data-view="conference"]{ display:flex; flex-direction:column; overflow:hidden; padding-bottom:28px; }

/* büyük ekranda satırlar biraz daha nefes alsın */
@media (min-width:1500px){
  body.web .view{ padding-left:max(32px,calc((100% - 1040px) / 2)); padding-right:max(32px,calc((100% - 1040px) / 2)); }
  body.web .nb{ right:max(32px, calc((100vw - var(--sb) - 1040px) / 2)); }
}
