.gdocs{
  height:100%;
  display:flex;
  flex-direction:column;
  background:#0b1020;
  border-radius:16px;
  overflow:hidden;
}

.gdocs-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  background:#0f172a;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.gdocs-left{ display:flex; align-items:center; gap:12px; min-width:0; }
.gdocs-badge{
  background:rgba(29,78,216,.18);
  border:1px solid rgba(29,78,216,.35);
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
}
.gdocs-title{
  width:360px;
  max-width:45vw;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.95);
  outline:none;
}
.gdocs-status{ font-size:12px; opacity:.7; }

.gdocs-right{ display:flex; gap:8px; align-items:center; }

.gdocs-toolbar{
  display:flex;
  gap:8px;
  align-items:center;
  padding:10px 14px;
  background:#0b1324;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.tool{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.92);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
}

.gdocs-canvas{
  flex:1;
  overflow:auto;
  padding:28px 0;
  background:#0b1020;
}

.page{
  width:min(900px, 92%);
  margin:0 auto;
  background:#ffffff;
  color:#111;
  border-radius:12px;
  min-height:900px;
  padding:64px 72px;
  box-shadow:0 30px 70px rgba(0,0,0,.55);
  outline:none;
}
.page p{ margin:0 0 12px; }
.page h1{ font-size:32px; margin:18px 0; }
.page h2{ font-size:24px; margin:18px 0; }
.page blockquote{
  border-left:4px solid #1d4ed8;
  padding-left:12px;
  color:#334155;
  margin:12px 0;
}

/* Side panels */
.sidepanel{
  position:fixed;
  right:18px;
  top:110px;
  width:360px;
  height:calc(100vh - 160px);
  background:#0f172a;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  display:none;
  overflow:hidden;
  z-index:9999;
}
.sidepanel.open{ display:flex; flex-direction:column; }

.sidepanel-header{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.sidepanel-body{ padding:12px; overflow:auto; flex:1; min-height:0; }

.ver{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  margin-bottom:10px;
}
.ver-sub{ font-size:12px; opacity:.7; }

.comment{
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  margin-bottom:10px;
}
.comment.resolved{ opacity:.55; }
.comment-head{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  opacity:.85;
}
.comment-body{ margin-top:8px; white-space:pre-wrap; }

.comment-box{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.comment-box textarea{
  min-height:90px;
  resize:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  outline:none;
}