/*
 * TAG Legal Desk v2.1, J152 (Tue 29 Sep 2026): the practice "i" and "This job, explained" (js/v21_practice_learn.js).
 * Practice only. The "i" sits on the right side of the open job; the panel sits beside the job (the job moves left to
 * make room from 1100 px), and is a sheet from the bottom on a narrow screen. Glass like the rest of the desk.
 */
.v21pl-dock { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 36; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 220px; }
.v21pl-i { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border: 0; color: var(--brand-text); background: var(--solid); box-shadow: inset 0 0 0 2px var(--brand-text), 0 6px 18px rgba(0, 0, 0, .18); }
.v21pl-i-glyph { font-family: Georgia, "Times New Roman", serif; font-size: 2.125rem; line-height: 1; font-weight: 700; font-style: italic; }
.v21pl-i:hover { transform: scale(1.05); }
.v21pl-i:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }
.v21pl-i.is-helped { background: var(--brand-text); color: var(--solid); }
.v21pl-cost { margin: 0; max-width: 104px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; line-height: 1.1rem; font-weight: 600; text-align: center; color: var(--ink-2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--glass-rim, rgba(0, 0, 0, .12)); }
.v21pl-ask { width: 220px; padding: 12px; border-radius: 14px; background: var(--solid); box-shadow: inset 0 0 0 2px var(--brand-text), 0 8px 22px rgba(0, 0, 0, .2); display: flex; flex-direction: column; gap: 10px; }
.v21pl-ask-t { margin: 0; font-size: .9375rem; line-height: 1.35rem; font-weight: 700; color: var(--ink); }
.v21pl-ask .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* The panel and the dock sit inside #job-layer, whose backdrop-filter makes it their containing block: top is
   measured from the layer (which already starts below the header). */
.v21pl-panel { position: fixed; right: 96px; top: 12px; bottom: 12px; width: 380px; max-width: calc(100vw - 120px); overflow-y: auto; z-index: 35;
  padding: 14px 18px 18px; border-radius: 16px; background: var(--solid); color: var(--ink); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
.v21pl-head { position: sticky; top: -14px; margin: -14px -18px 8px; padding: 12px 18px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--solid); z-index: 1; }
.v21pl-h { margin: 0; font-size: 1.125rem; line-height: 1.5rem; }
.v21pl-chip { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--ink); background: var(--solid-2, rgba(0, 0, 0, .06)); }
.v21pl-sec { padding: 10px 0; border-top: 1px solid var(--glass-rim, rgba(0, 0, 0, .1)); }
.v21pl-sec:first-of-type { border-top: 0; }
.v21pl-sh { margin: 0 0 4px; font-size: .8125rem; line-height: 1.2rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--brand-text); }
.v21pl-p { margin: 0 0 4px; font-size: .9375rem; line-height: 1.45rem; color: var(--ink); }
.v21pl-list { margin: 0; padding-left: 18px; font-size: .9375rem; line-height: 1.45rem; color: var(--ink); }
.v21pl-list li { margin: 0 0 4px; }
.v21pl-foot { margin: 10px 0 0; font-size: .75rem; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .v21pl-panel { top: calc(var(--top, 64px) + 12px); }
}
/* The "i" has its own room at the job's right edge, so it never sits over Fred's draft. */
@media (min-width: 720px) {
  .job-layer.v21pl-has { padding-right: 104px; }
}
/* From 900 px the job moves left so the panel sits beside it, not over it. */
@media (min-width: 900px) {
  .job-layer.v21pl-open { padding-right: 500px; }
}
/* 720 to 899 px: the panel is a sheet from the bottom (there is no room beside the job). */
@media (min-width: 720px) and (max-width: 899px) {
  .v21pl-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-width: none; max-height: 72vh; }
}
/* Narrow screens: a smaller "i" in its own lane at the edge (never over the email), and the panel as a sheet from the bottom. */
@media (max-width: 719px) {
  .job-layer.v21pl-has { padding-right: 58px; }
  .v21pl-dock { right: 6px; top: auto; bottom: 96px; transform: none; max-width: 160px; }
  .v21pl-i { width: 48px; height: 48px; }
  .v21pl-i-glyph { font-size: 1.625rem; }
  .v21pl-cost { font-size: .6875rem; }
  .v21pl-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-width: none; max-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) { .v21pl-i:hover { transform: none; } }
:root[data-theme="high_contrast"] .v21pl-i { background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 3px #000000; }
:root[data-theme="high_contrast"] .v21pl-i.is-helped { background: #000000; color: #FFFFFF; }
:root[data-theme="high_contrast"] .v21pl-panel, :root[data-theme="high_contrast"] .v21pl-ask, :root[data-theme="high_contrast"] .v21pl-cost { background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21pl-sh { color: #000000; }
@media (forced-colors: active) {
  .v21pl-i, .v21pl-panel, .v21pl-ask, .v21pl-cost { border: 2px solid CanvasText; }
}
@media print { .v21pl-dock, .v21pl-panel { display: none; } }
