/*
  Gener8 style kit — share links (js/share.js).

  A page opened from /s/<code> has .share-mode on <html>, and .lock-<option> for every
  option the link does not allow. Those rules take the matching controls off the screen
  in every viewer (ids are shared across the viewers where they exist).
  .share-wait hides the panels until the link's settings have arrived.
*/

/* Never on a shared link: staff tools, the story maker, saving */
.share-mode #staffBox, .share-mode #closeStaffBox, .share-mode #storyMaker,
.share-mode #saveDlg { display: none !important; }

/* Until the settings arrive */
.share-wait #parts, .share-wait #partsTab, .share-wait #tools, .share-wait #closeTools, .share-wait #toolsTab { display: none !important; }

/* Left panel (layers; condition and settings in G8 Circulation and G8 Nerves) */
.lock-left #parts, .lock-left #partsTab { display: none !important; }

/* Tools panel, and the close-up tools that take its place */
.lock-right #tools, .lock-right #closeTools, .lock-right #toolsTab { display: none !important; }

/* Single tools inside the Tools panel */
.lock-labels #tLabels { display: none !important; }
.lock-search #tSearch, .lock-search .searchsheet { display: none !important; }
.lock-draw #tDraw, .lock-draw #drawTools { display: none !important; }
.lock-cuts #tCut, .lock-cuts #cutTools { display: none !important; }
.lock-skin .range:has(#skin), .lock-skin .range:has(#fade) { display: none !important; }

/* Part card: no card at all, or the card without the buttons that change what shows */
.lock-highlight #card { display: none !important; }
.lock-partActions #card .card-acts, .lock-partActions #card .card-main,
.lock-partActions #card #bFollow { display: none !important; }

/* Other stories: no Stories button, no list */
.lock-otherStories #tStories, .lock-otherStories #fStories { display: none !important; }

/* The story sits on the reach line at the right, where the Tools panel would be */
.share-mode.lock-right .story:not(.floating) { right: calc(var(--u) * 2); }
