/* Study Quest — dock.css (V7.8 round 5, lane R, v78-screens): the practice window docks LEFT or right (js/ui-dock.js).
 * Middle takes the half of the screen on the chosen side; Small stays centred above the hotbar (the user's 18 Oct rule); Full is the whole
 * screen. Docked left, what sat under the page moves out: the "Not yet" line goes over the right half, the chat and the dock of quest offers
 * (#toast-layer .tl-dock, normally top left) move to the right, so nothing hides under the page you read. Flat colour, no gradients. */

/* the button: one of the size group's icons (same size and states as .pr-win) */
.pr-sizes .pr-dock { margin-left: 4px; }
.pr-sizes .pr-dock svg { display: block; }

/* Middle docked left: the left half */
.st-layer.pr-dock-left.pr-win-middle:not(.is-compact):not(.pr-hood) .st-lectern { right: auto; left: 22px; }
.st-layer.pr-dock-left.pr-win-middle:not(.is-compact):not(.pr-hood) .st-redline { right: 0; left: 50vw; }

/* the quest-offer dock leaves the left edge while the page is there */
body:has(#st-layer.pr-dock-left.pr-win-middle:not(.hidden):not(.is-compact):not(.pr-hood)) #toast-layer .tl-dock { left: auto; right: 24px; align-items: flex-end; }

/* the chat (combat, loot, the hero's lines) would sit under a left-docked page: it moves to the free right half, above the map's scale
   bar, while the page is on the left (it stays where it was in every other layout) */
body:has(#st-layer.pr-dock-left.pr-win-middle:not(.hidden):not(.is-compact):not(.pr-hood)) .hud .chat { left: auto; right: 8px; bottom: calc(var(--bar-top) + 76px); }
