/* TUL - the Launchpad's workspace pane (tul-workspaces-v1.js, TUL_WS; W0-A, 2026-11-04). Beside the conversation on a
   desk, the whole screen at 820px and under. Tokens only (the sheet is linked last); class prefix tws-. */
.tws-pane{flex:0 1 58%;min-width:420px;max-width:1100px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;
  border-left:1px solid var(--line);background:var(--s0);color:var(--ink)}
.tws-pane[hidden]{display:none}
.tws-hd{display:flex;align-items:center;gap:8px;min-height:56px;padding:0 12px 0 16px;border-bottom:1px solid var(--line-soft)}
.tws-h{margin:0;min-width:0;font-family:var(--fdisplay);font-weight:600;font-size:16px;line-height:1.3;color:var(--ink-bright);
  overflow-wrap:anywhere}
.tws-h:focus{outline:none}
.tws-h:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* the host's own move of the focus to the heading (opening a workspace, the crumb) draws no ring */
.tws-h[data-quiet]:focus,.tws-h[data-quiet]:focus-visible{outline:none}
.tws-grow{flex:1 1 auto}
/* WS-2a (ruling 3): the head slot a module with head: 'module' fills (the Workspace board's mode and Add), between the
   heading and Close - the module's own controls, on the module's own sheet */
.tws-slot{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.tws-slot[hidden]{display:none}
.tws-ic{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tws-ib,.tws-btn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid var(--line);
  border-radius:var(--r-ctl);background:none;color:var(--ink);font:inherit;font-size:13px;text-decoration:none;cursor:pointer;white-space:nowrap}
.tws-ib:hover,.tws-btn:hover{border-color:var(--accent-deep);background:var(--s2)}
.tws-ib:focus-visible,.tws-btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tws-ib[hidden],.tws-btn[hidden]{display:none}
/* Release 1.181.0: the back-crumb - "< <ledger>", quiet (no box), the ledger's name never cut */
.tws-crumb{border-color:transparent;padding:0 8px 0 4px;color:var(--ink-2);max-width:min(320px,45vw);white-space:normal;text-align:left}
.tws-crumb:hover{border-color:transparent;color:var(--ink)}
.tws-cw{overflow-wrap:anywhere}
.tws-sub{margin:0;padding:6px 16px;border-bottom:1px solid var(--line-soft);font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.tws-sub[hidden]{display:none}
.tws-body{flex:1 1 auto;min-height:0;overflow:auto;position:relative}
.tws-quiet{margin:16px;font-size:13px;color:var(--muted)}
.tws-lede{margin:0 0 12px;color:var(--ink-2)}
.tws-fail{padding:16px}
.tws-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* a full-size workspace (the frame's data-kind="full" - the Registers' second pass, P1): the window beside the side menu,
   under the top bar, no conversation beside it; its body scrolls, the page does not */
@media (min-width:821px){
  [data-kind="full"]>.tws-pane{grid-column:2;grid-row:2;flex:none;position:relative;top:auto;width:auto;min-width:0;max-width:none;height:auto;min-height:0;
    border-left:0;border-top:1px solid var(--line-soft)}
}
/* a full-size workspace keeps its foot clear of the TUL Chat button in the corner (its height and its gaps): the last
   row, a scrollbar's end and a framed page's bottom controls are never under it */
[data-kind="full"]>.tws-pane .tws-body{padding-bottom:72px}
/* a desk narrower than the side menu and the pane together: the conversation keeps its room, the pane takes the rest */
@media (max-width:1100px){
  .tws-pane{flex-basis:56%;min-width:380px}
}
/* a phone: the pane is the whole screen, over the conversation (which keeps its place under it) */
@media (max-width:820px){
  .tws-pane{position:fixed;inset:0;z-index:78;width:100vw;max-width:none;min-width:0;height:100%;border-left:0}
  .tws-hd{padding:0 8px 0 12px;gap:6px}
  .tws-ib,.tws-btn{min-height:44px;padding:0 10px}
  .tws-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tws-xw{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  /* a full workspace on a phone is the page: under the top bar, which stays in view and reachable; below the drawers and
     their scrim (the side menu, Decisions, TUL Chat) */
  [data-kind="full"]>.tws-pane{top:var(--tlp-top-h,56px);height:auto;z-index:50}
  [data-kind="full"]>.tws-pane .tws-body{padding-bottom:68px}
}
@media print{
  html.tws-on .tlp-col{display:none!important}
  .tws-pane{position:static;height:auto;border:0}
  .tws-hd{display:none}
}
